Skip to content

Commit d5115b4

Browse files
committed
Update video openapi Spec
1 parent b8cb621 commit d5115b4

36 files changed

+5403
-1335
lines changed

openapi/chat-openapi-clientside.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

openapi/chat-openapi-clientside.yaml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4743,7 +4743,7 @@ components:
47434743
type: array
47444744
x-stream-index: "001.002"
47454745
type:
4746-
default: notification.thread_message_new
4746+
default: message.new
47474747
type: string
47484748
x-stream-index: "004.001"
47494749
user:
@@ -6690,6 +6690,24 @@ components:
66906690
type: integer
66916691
x-stream-index: "002"
66926692
type: object
6693+
ParsedPredefinedFilterResponse:
6694+
properties:
6695+
filter:
6696+
additionalProperties: {}
6697+
type: object
6698+
x-stream-index: "002"
6699+
name:
6700+
type: string
6701+
x-stream-index: "001"
6702+
sort:
6703+
items:
6704+
$ref: '#/components/schemas/SortParamRequest'
6705+
type: array
6706+
x-stream-index: "003"
6707+
required:
6708+
- name
6709+
- filter
6710+
type: object
66936711
PendingMessageEvent:
66946712
description: Pending message event for async moderation
66956713
nullable: true
@@ -7795,7 +7813,13 @@ components:
77957813
description: Duration of the request in milliseconds
77967814
title: Duration
77977815
type: string
7798-
x-stream-index: "002.001"
7816+
x-stream-index: "003.001"
7817+
predefined_filter:
7818+
$ref: '#/components/schemas/ParsedPredefinedFilterResponse'
7819+
description: The parsed predefined filter with interpolated values, only
7820+
present when using a predefined filter
7821+
title: Predefined Filter
7822+
x-stream-index: "002"
77997823
required:
78007824
- channels
78017825
- duration
@@ -12233,7 +12257,7 @@ components:
1223312257
type: apiKey
1223412258
info:
1223512259
title: Stream API
12236-
version: v215.4.0
12260+
version: v218.4.0
1223712261
openapi: 3.0.3
1223812262
paths:
1223912263
/app:

openapi/chat-openapi.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

openapi/chat-openapi.yaml

Lines changed: 174 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ components:
606606
type: string
607607
x-stream-index: "002.001"
608608
type:
609-
default: export.bulk_image_moderation.error
609+
default: export.moderation_logs.error
610610
type: string
611611
x-stream-index: "003.002"
612612
required:
@@ -1751,6 +1751,18 @@ components:
17511751
x-stream-event-doc-group: other
17521752
x-stream-is-event: true
17531753
x-stream-ws-base-event-name: VideoEvent
1754+
ChannelBatchMemberRequest:
1755+
nullable: true
1756+
properties:
1757+
channel_role:
1758+
type: string
1759+
x-stream-index: "002"
1760+
user_id:
1761+
type: string
1762+
x-stream-index: "001"
1763+
required:
1764+
- user_id
1765+
type: object
17541766
ChannelBatchStartedEvent:
17551767
nullable: true
17561768
properties:
@@ -1813,6 +1825,66 @@ components:
18131825
x-stream-event-doc-group: other
18141826
x-stream-is-event: true
18151827
x-stream-ws-base-event-name: VideoEvent
1828+
ChannelBatchUpdateRequest:
1829+
nullable: true
1830+
properties:
1831+
data:
1832+
$ref: '#/components/schemas/ChannelDataUpdate'
1833+
x-stream-index: "005"
1834+
filter:
1835+
additionalProperties: {}
1836+
type: object
1837+
x-stream-index: "002"
1838+
filter_tags_update:
1839+
items:
1840+
type: string
1841+
maximum: 10
1842+
type: array
1843+
x-stream-index: "004"
1844+
members:
1845+
items:
1846+
$ref: '#/components/schemas/ChannelBatchMemberRequest'
1847+
maximum: 100
1848+
type: array
1849+
x-stream-index: "003"
1850+
operation:
1851+
enum:
1852+
- addMembers
1853+
- removeMembers
1854+
- inviteMembers
1855+
- invites
1856+
- assignRoles
1857+
- addModerators
1858+
- demoteModerators
1859+
- hide
1860+
- show
1861+
- archive
1862+
- unarchive
1863+
- updateData
1864+
- addFilterTags
1865+
- removeFilterTags
1866+
type: string
1867+
x-stream-index: "001"
1868+
required:
1869+
- operation
1870+
- filter
1871+
type: object
1872+
ChannelBatchUpdateResponse:
1873+
description: Basic response information
1874+
nullable: true
1875+
properties:
1876+
duration:
1877+
description: Duration of the request in milliseconds
1878+
title: Duration
1879+
type: string
1880+
x-stream-index: "002.001"
1881+
task_id:
1882+
type: string
1883+
x-stream-index: "001"
1884+
required:
1885+
- duration
1886+
title: Response
1887+
type: object
18161888
ChannelConfig:
18171889
description: Channel configuration overrides
18181890
properties:
@@ -2068,6 +2140,31 @@ components:
20682140
x-stream-event-doc-group: other
20692141
x-stream-is-event: true
20702142
x-stream-ws-base-event-name: VideoEvent
2143+
ChannelDataUpdate:
2144+
properties:
2145+
auto_translation_enabled:
2146+
type: boolean
2147+
x-stream-index: "006"
2148+
auto_translation_language:
2149+
type: string
2150+
x-stream-index: "007"
2151+
config_overrides:
2152+
$ref: '#/components/schemas/ChannelConfig'
2153+
x-stream-index: "005"
2154+
custom:
2155+
additionalProperties: {}
2156+
type: object
2157+
x-stream-index: "003"
2158+
disabled:
2159+
type: boolean
2160+
x-stream-index: "002"
2161+
frozen:
2162+
type: boolean
2163+
x-stream-index: "001"
2164+
team:
2165+
type: string
2166+
x-stream-index: "004"
2167+
type: object
20712168
ChannelDeletedEvent:
20722169
properties:
20732170
channel:
@@ -7131,12 +7228,18 @@ components:
71317228
type: object
71327229
ImportV2TaskSettings:
71337230
properties:
7231+
mode:
7232+
type: string
7233+
x-stream-index: "002"
7234+
path:
7235+
type: string
7236+
x-stream-index: "003"
71347237
s3:
71357238
$ref: '#/components/schemas/ImportV2TaskSettingsS3'
71367239
x-stream-index: "001"
71377240
skip_references_check:
71387241
type: boolean
7139-
x-stream-index: "002"
7242+
x-stream-index: "004"
71407243
type: object
71417244
ImportV2TaskSettingsS3:
71427245
properties:
@@ -9973,6 +10076,24 @@ components:
997310076
type: integer
997410077
x-stream-index: "002"
997510078
type: object
10079+
ParsedPredefinedFilterResponse:
10080+
properties:
10081+
filter:
10082+
additionalProperties: {}
10083+
type: object
10084+
x-stream-index: "002"
10085+
name:
10086+
type: string
10087+
x-stream-index: "001"
10088+
sort:
10089+
items:
10090+
$ref: '#/components/schemas/SortParamRequest'
10091+
type: array
10092+
x-stream-index: "003"
10093+
required:
10094+
- name
10095+
- filter
10096+
type: object
997610097
PendingMessageEvent:
997710098
description: Pending message event for async moderation
997810099
nullable: true
@@ -11259,7 +11380,13 @@ components:
1125911380
description: Duration of the request in milliseconds
1126011381
title: Duration
1126111382
type: string
11262-
x-stream-index: "002.001"
11383+
x-stream-index: "003.001"
11384+
predefined_filter:
11385+
$ref: '#/components/schemas/ParsedPredefinedFilterResponse'
11386+
description: The parsed predefined filter with interpolated values, only
11387+
present when using a predefined filter
11388+
title: Predefined Filter
11389+
x-stream-index: "002"
1126311390
required:
1126411391
- channels
1126511392
- duration
@@ -17359,7 +17486,7 @@ components:
1735917486
type: apiKey
1736017487
info:
1736117488
title: Stream API
17362-
version: v215.4.0
17489+
version: v218.4.0
1736317490
openapi: 3.0.3
1736417491
paths:
1736517492
/app:
@@ -18902,6 +19029,49 @@ paths:
1890219029
summary: Get or create channel
1890319030
tags:
1890419031
- product:chat
19032+
/channels/batch:
19033+
put:
19034+
description: |
19035+
Update channels in batch
19036+
19037+
Sends events:
19038+
- channel.frozen
19039+
- channel.hidden
19040+
- channel.unfrozen
19041+
- channel.updated
19042+
- channel.visible
19043+
- member.added
19044+
- member.removed
19045+
- member.updated
19046+
operationId: ChannelBatchUpdate
19047+
requestBody:
19048+
content:
19049+
application/json:
19050+
schema:
19051+
$ref: '#/components/schemas/ChannelBatchUpdateRequest'
19052+
required: true
19053+
responses:
19054+
"201":
19055+
content:
19056+
application/json:
19057+
schema:
19058+
$ref: '#/components/schemas/ChannelBatchUpdateResponse'
19059+
description: Response
19060+
"400":
19061+
content:
19062+
application/json:
19063+
schema:
19064+
$ref: '#/components/schemas/APIError'
19065+
description: Bad request
19066+
"429":
19067+
content:
19068+
application/json:
19069+
schema:
19070+
$ref: '#/components/schemas/APIError'
19071+
description: Too many requests
19072+
summary: Update channels in batch
19073+
tags:
19074+
- product:chat
1890519075
/channels/delete:
1890619076
post:
1890719077
description: |

openapi/clientside-api.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)