Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23,628 changes: 921 additions & 22,707 deletions bundled.yaml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"scripts": {
"lint": "redocly lint swagger.yaml",
"build": "redocly bundle swagger.yaml -o bundled.yaml",
"build-admin": "redocly bundle swagger-admin.yaml -o bundled.yaml",
"prepare-local": "npm run build && rm -rf ./local && cp -r build local && cp ./bundled.yaml ./local/bundled.yaml && sh ./scripts/prepare-local.sh",
"prepare-local-admin": "npm run build-admin && rm -rf ./local && cp -r build local && cp ./bundled.yaml ./local/bundled.yaml && sh ./scripts/prepare-local.sh",
"prepare": "husky",
"changelog:gen": "git-cliff --output CHANGELOG.md",
"changelog:patch": "git-cliff --bump patch --output CHANGELOG.md",
Expand Down
90 changes: 90 additions & 0 deletions schema/content.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
Content:
type: object
properties:
contentId:
type: string
description: Internal ID of the content.
contentPublicId:
type: string
description: Public ID of the content.
contentType:
type: string
enum:
- post
- comment
description: Type of the content.
flagCount:
type: integer
description: Number of flags on the content.
lastFlaggedAt:
type: string
format: date-time
description: Timestamp of the last flag on the content.
lastReviewedAt:
type: string
format: date-time
description: Timestamp of the last review on the content.
manualReview:
type: object
properties:
reviewedType:
type: string
enum:
- delete
- clearFlag
description: Type of manual review action.
reviewedAt:
type: string
format: date-time
description: Timestamp of the manual review action.
reviewedBy:
type: string
description: Internal ID of the user who performed the manual review.
tags:
type: array
items:
type: string
maxLength: 24
max: 5
description: List of tags associated with the content.
aiModeration:
type: object
properties:
type:
type: string
enum:
- text
- image
- video
moderatedAction:
type: string
enum:
- delete
- flag
description: Type of AI moderation action.
moderatedAt:
type: string
format: date-time
description: Timestamp of the AI moderation action.
categories:
type: array
items:
type: object
description: List of categories identified by AI moderation.
properties:
name:
type: string
description: Category name.
score:
type: number
format: float
description: Confidence score of the category.
targetId:
type: string
description: ID of the target (user or community) associated with the content.
targetType:
type: string
description: Type of the target (user or community) associated with the content.
userId:
type: string
description: ID of the user who created the content.
9 changes: 9 additions & 0 deletions schema/network-setting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ NetworkSetting:
type: boolean
tierHandler:
type: string
premiumReport:
$ref: "#/PremiumReportNetworkSetting"

SocialNetworkSetting:
type: object
Expand Down Expand Up @@ -356,3 +358,10 @@ SemanticSearchNetworkSetting:
default: false
minScore:
type: number

PremiumReportNetworkSetting:
type: object
properties:
enabled:
type: boolean
default: false
13 changes: 13 additions & 0 deletions schema/premium-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
PremiumReport:
type: object
properties:
fileName:
type: string
description: The name of the report file.
lastModified:
type: string
format: date-time
description: The date and time when the report was last modified.
fileSize:
type: integer
description: The size of the report file in bytes.
60 changes: 60 additions & 0 deletions swagger-admin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
openapi: "3.0.0"
info:
title: "Social+ Cloud SDK"
description:
$ref: "./description.md"
version: "4.99.1"
servers:
- url: "https://apix.us.amity.co"
description: "API Endpoint for US Region"
- url: "https://apix.eu.amity.co"
description: "API Endpoint for EU Region"
- url: "https://apix.sg.amity.co"
description: "API Endpoint for SG Region"
paths:
/admin/v1/moderation-feeds:
$ref: "./v1-admin/moderation-feeds/index.yaml#/root"

/admin/v1/network-settings/premium-reports:
$ref: "./v1-admin/network-settings/index.yaml#/premium-reports"

/admin/v1/premium-reports:
$ref: "./v1-admin/premium-reports/index.yaml#/root"

/admin/v1/premium-reports/download:
$ref: "./v1-admin/premium-reports/index.yaml#/download"

/internal/v1/premium-reports/list-networks:
$ref: "./v1-internal/premium-reports/index.yaml#/list-networks"

/internal/v1/network-settings/premium-report:
$ref: "./v1-internal/network-settings/index.yaml#/premium-report"

/admin/v1/admin:
$ref: "./v1-admin/admin/index.yaml#/root"

/admin/v1/admin/update:
$ref: "./v1-admin/admin/index.yaml#/update"

/admin/v1/admin/roles:
$ref: "./v1-admin/admin/index.yaml#/roles"

/admin/v1/admin/roles/{roleId}:
$ref: "./v1-admin/admin/index.yaml#/_roleId"

components:
securitySchemes:
ApiKeyAuth:
type: "apiKey"
in: "header"
name: "X-API-Key"
BearerAuth:
type: "http"
scheme: "bearer"
cookieAuth: # arbitrary name for the security scheme; will be used in the "security" key later
type: apiKey
in: cookie
name: connect.sid # cookie name
basicAuth:
type: http
scheme: basic
Loading