Skip to content

Commit

Permalink
Update video openapi Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
stream-ci-zz committed Sep 3, 2024
1 parent 2cc09df commit ad5dfec
Show file tree
Hide file tree
Showing 14 changed files with 592 additions and 260 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docusaurus/video/docusaurus/docs/api/video-openapi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion openapi/chat-openapi-clientside.json

Large diffs are not rendered by default.

95 changes: 57 additions & 38 deletions openapi/chat-openapi-clientside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ components:
title: More info
type: string
x-stream-index: "006"
unrecoverable:
description: Flag that indicates if the error is unrecoverable, requests
that return unrecoverable errors should not be retried, this error only
applies to the request that caused it
title: Unrecoverable
type: boolean
x-stream-index: "008"
required:
- code
- message
Expand Down Expand Up @@ -1303,53 +1310,53 @@ components:
description: Enable or disable auto translation
title: Auto translation
type: boolean
x-stream-index: "007"
x-stream-index: "005"
auto_translation_language:
description: Switch auto translation language
title: Auto translation language
type: string
x-stream-index: "008"
x-stream-index: "006"
config_overrides:
$ref: '#/components/schemas/ChannelConfig'
x-stream-index: "026"
x-stream-index: "024"
created_by:
$ref: '#/components/schemas/UserObject'
x-stream-index: "011"
$ref: '#/components/schemas/UserRequest'
x-stream-index: "009"
created_by_id:
type: string
x-stream-index: "010"
x-stream-index: "008"
custom:
additionalProperties: {}
type: object
x-stream-index: "017"
x-stream-index: "015"
disabled:
type: boolean
x-stream-index: "016"
x-stream-index: "014"
frozen:
description: Freeze or unfreeze the channel
title: Frozen
type: boolean
x-stream-index: "015"
x-stream-index: "013"
invites:
items:
$ref: '#/components/schemas/ChannelMember'
maximum: 100
type: array
x-stream-index: "018"
x-stream-index: "016"
members:
items:
$ref: '#/components/schemas/ChannelMember'
maximum: 100
type: array
x-stream-index: "020"
x-stream-index: "018"
team:
description: Team the channel belongs to (if multi-tenant mode is enabled)
title: Team
type: string
x-stream-index: "006"
x-stream-index: "004"
truncated_by_id:
type: string
x-stream-index: "012"
x-stream-index: "010"
type: object
ChannelKickedEvent:
properties:
Expand Down Expand Up @@ -3586,19 +3593,15 @@ components:
LabelThresholds:
properties:
block:
description: Threshold for automatic message block
format: float
maximum: 1
minimum: 0
title: Block
type: number
x-stream-index: "002"
flag:
description: Threshold for automatic message flag
format: float
maximum: 1
minimum: 0
title: Flag
type: number
x-stream-index: "001"
type: object
Expand Down Expand Up @@ -4270,50 +4273,74 @@ components:
x-stream-is-event: true
x-stream-ws-base-event-name: VideoEvent
MessageModerationResult:
description: Result of the message moderation
properties:
action:
description: Action taken by automod
title: Action
type: string
x-stream-index: "004"
x-stream-index: "002"
ai_moderation_response:
$ref: '#/components/schemas/ModerationResponse'
x-stream-index: "009"
description: Response from AI moderation
title: AI moderation response
x-stream-index: "007"
blocked_word:
description: Word that was blocked
title: Blocked word
type: string
x-stream-index: "006"
x-stream-index: "004"
blocklist_name:
description: Name of the blocklist
title: Blocklist name
type: string
x-stream-index: "007"
x-stream-index: "005"
created_at:
description: Date/time of creation
format: date-time
title: Created at
type: string
x-stream-index: "012"
x-stream-index: "010"
message_id:
description: ID of the message
title: Message ID
type: string
x-stream-index: "003"
x-stream-index: "001"
moderated_by:
description: User who moderated the message
title: Moderated by
type: string
x-stream-index: "005"
x-stream-index: "003"
moderation_thresholds:
$ref: '#/components/schemas/Thresholds'
x-stream-index: "008"
description: Thresholds for AI moderation
title: Moderation thresholds
x-stream-index: "006"
updated_at:
description: Date/time of the last update
format: date-time
title: Updated at
type: string
x-stream-index: "013"
x-stream-index: "011"
user_bad_karma:
description: Whether user has bad karma
title: User bad karma
type: boolean
x-stream-index: "011"
x-stream-index: "009"
user_karma:
description: Karma of the user
format: float
title: User karma
type: number
x-stream-index: "010"
x-stream-index: "008"
required:
- message_id
- action
- user_karma
- user_bad_karma
- created_at
- updated_at
title: Message moderation result
type: object
MessageNewEvent:
properties:
Expand Down Expand Up @@ -4342,7 +4369,7 @@ components:
type: array
x-stream-index: "001.002"
type:
default: notification.thread_message_new
default: message.new
type: string
x-stream-index: "004.001"
user:
Expand Down Expand Up @@ -8455,24 +8482,16 @@ components:
x-stream-is-event: true
x-stream-ws-base-event-name: VideoEvent
Thresholds:
description: Sets thresholds for AI moderation
properties:
explicit:
$ref: '#/components/schemas/LabelThresholds'
description: Thresholds for explicit messages
title: Explicit
x-stream-index: "001"
spam:
$ref: '#/components/schemas/LabelThresholds'
description: Thresholds for spam
title: Spam
x-stream-index: "002"
toxic:
$ref: '#/components/schemas/LabelThresholds'
description: Thresholds for toxic messages
title: Toxic
x-stream-index: "003"
title: Auto moderation thresholds
type: object
Time:
type: object
Expand Down Expand Up @@ -10386,7 +10405,7 @@ components:
type: apiKey
info:
title: Stream API
version: v130.1.0
version: v130.6.3
openapi: 3.0.3
paths:
/app:
Expand Down
2 changes: 1 addition & 1 deletion openapi/chat-openapi.json

Large diffs are not rendered by default.

Loading

0 comments on commit ad5dfec

Please sign in to comment.