Skip to content

Commit 0c54300

Browse files
committed
Update video openapi Spec
1 parent b8cb621 commit 0c54300

36 files changed

+8412
-2500
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: 158 additions & 76 deletions
Large diffs are not rendered by default.

openapi/chat-openapi.json

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

openapi/chat-openapi.yaml

Lines changed: 227 additions & 83 deletions
Large diffs are not rendered by default.

openapi/clientside-api.json

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

openapi/clientside-api.yaml

Lines changed: 1019 additions & 338 deletions
Large diffs are not rendered by default.

openapi/moderation-clientside-api.json

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

openapi/moderation-clientside-api.yaml

Lines changed: 91 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,11 @@ components:
493493
type: object
494494
x-stream-index: "035"
495495
restrict_replies:
496-
description: 'Controls who can reply to this activity. Values: everyone,
497-
people_i_follow, nobody'
496+
description: Controls who can add comments/replies to this activity
497+
enum:
498+
- everyone
499+
- people_i_follow
500+
- nobody
498501
title: Restrict Replies
499502
type: string
500503
x-stream-index: "007"
@@ -1795,6 +1798,9 @@ components:
17951798
polls:
17961799
type: boolean
17971800
x-stream-index: "001.017"
1801+
push_level:
1802+
type: string
1803+
x-stream-index: "001.033"
17981804
push_notifications:
17991805
type: boolean
18001806
x-stream-index: "001.014"
@@ -1864,6 +1870,7 @@ components:
18641870
- automod
18651871
- automod_behavior
18661872
- skip_last_msg_update_for_system_msgs
1873+
- push_level
18671874
- created_at
18681875
- updated_at
18691876
- commands
@@ -1959,6 +1966,9 @@ components:
19591966
polls:
19601967
type: boolean
19611968
x-stream-index: 001.002.017
1969+
push_level:
1970+
type: string
1971+
x-stream-index: 001.002.033
19621972
push_notifications:
19631973
type: boolean
19641974
x-stream-index: 001.002.014
@@ -2030,6 +2040,7 @@ components:
20302040
- automod
20312041
- automod_behavior
20322042
- skip_last_msg_update_for_system_msgs
2043+
- push_level
20332044
- commands
20342045
type: object
20352046
ChannelMember:
@@ -2563,6 +2574,15 @@ components:
25632574
maximum: 20000
25642575
type: integer
25652576
x-stream-index: "007"
2577+
push_level:
2578+
enum:
2579+
- all
2580+
- all_mentions
2581+
- mentions
2582+
- direct_mentions
2583+
- none
2584+
type: string
2585+
x-stream-index: "015"
25662586
quotes:
25672587
type: boolean
25682588
x-stream-index: "004"
@@ -4243,7 +4263,7 @@ components:
42434263
x-stream-index: "013"
42444264
before_message_send_failed:
42454265
type: boolean
4246-
x-stream-index: "047"
4266+
x-stream-index: "048"
42474267
cid:
42484268
type: string
42494269
x-stream-index: "029"
@@ -4264,7 +4284,7 @@ components:
42644284
x-stream-index: "034"
42654285
deleted_for_me:
42664286
type: boolean
4267-
x-stream-index: "061"
4287+
x-stream-index: "062"
42684288
deleted_reply_count:
42694289
format: int32
42704290
type: integer
@@ -4276,7 +4296,7 @@ components:
42764296
additionalProperties:
42774297
type: string
42784298
type: object
4279-
x-stream-index: "045"
4299+
x-stream-index: "046"
42804300
id:
42814301
type: string
42824302
x-stream-index: "002"
@@ -4294,7 +4314,10 @@ components:
42944314
x-stream-index: "014"
42954315
member:
42964316
$ref: '#/components/schemas/ChannelMember'
4297-
x-stream-index: "060"
4317+
x-stream-index: "061"
4318+
mentioned_channel:
4319+
type: boolean
4320+
x-stream-index: "045"
42984321
mentioned_users:
42994322
items:
43004323
$ref: '#/components/schemas/User'
@@ -4303,13 +4326,13 @@ components:
43034326
message_text_updated_at:
43044327
format: date-time
43054328
type: number
4306-
x-stream-index: "053"
4329+
x-stream-index: "054"
43074330
mml:
43084331
type: string
43094332
x-stream-index: "006"
43104333
moderation:
43114334
$ref: '#/components/schemas/ModerationV2Response'
4312-
x-stream-index: "057"
4335+
x-stream-index: "058"
43134336
own_reactions:
43144337
items:
43154338
$ref: '#/components/schemas/Reaction'
@@ -4321,23 +4344,23 @@ components:
43214344
pin_expires:
43224345
format: date-time
43234346
type: number
4324-
x-stream-index: "052"
4347+
x-stream-index: "053"
43254348
pinned:
43264349
type: boolean
4327-
x-stream-index: "048"
4350+
x-stream-index: "049"
43284351
pinned_at:
43294352
format: date-time
43304353
type: number
4331-
x-stream-index: "049"
4354+
x-stream-index: "050"
43324355
pinned_by:
43334356
$ref: '#/components/schemas/User'
4334-
x-stream-index: "051"
4357+
x-stream-index: "052"
43354358
poll:
43364359
$ref: '#/components/schemas/Poll'
4337-
x-stream-index: "055"
4360+
x-stream-index: "056"
43384361
poll_id:
43394362
type: string
4340-
x-stream-index: "054"
4363+
x-stream-index: "055"
43414364
quoted_message:
43424365
$ref: '#/components/schemas/Message'
43434366
x-stream-index: "026"
@@ -4363,7 +4386,7 @@ components:
43634386
x-stream-index: "017"
43644387
reminder:
43654388
$ref: '#/components/schemas/MessageReminder'
4366-
x-stream-index: "059"
4389+
x-stream-index: "060"
43674390
reply_count:
43684391
format: int32
43694392
type: integer
@@ -4378,13 +4401,13 @@ components:
43784401
x-stream-index: "037"
43794402
shared_location:
43804403
$ref: '#/components/schemas/SharedLocation'
4381-
x-stream-index: "056"
4404+
x-stream-index: "057"
43824405
show_in_channel:
43834406
type: boolean
43844407
x-stream-index: "022"
43854408
silent:
43864409
type: boolean
4387-
x-stream-index: "046"
4410+
x-stream-index: "047"
43884411
text:
43894412
type: string
43904413
x-stream-index: "004"
@@ -4423,6 +4446,7 @@ components:
44234446
- custom
44244447
- shadowed
44254448
- mentioned_users
4449+
- mentioned_channel
44264450
- silent
44274451
- pinned
44284452
type: object
@@ -4509,14 +4533,14 @@ components:
45094533
x-stream-index: "026"
45104534
deleted_for_me:
45114535
type: boolean
4512-
x-stream-index: "045"
4536+
x-stream-index: "046"
45134537
deleted_reply_count:
45144538
format: int32
45154539
type: integer
45164540
x-stream-index: "019"
45174541
draft:
45184542
$ref: '#/components/schemas/DraftResponse'
4519-
x-stream-index: "042"
4543+
x-stream-index: "043"
45204544
html:
45214545
description: Contains HTML markup of the message. Can only be set when using
45224546
server-side API
@@ -4531,7 +4555,7 @@ components:
45314555
title: Internationalization info
45324556
type: object
45334557
x-stream-docs-page-id: translation
4534-
x-stream-index: "031"
4558+
x-stream-index: "032"
45354559
id:
45364560
description: Message ID is unique string identifier of the message
45374561
title: ID
@@ -4559,6 +4583,11 @@ components:
45594583
`channel_role`
45604584
title: Member object
45614585
x-stream-index: "008"
4586+
mentioned_channel:
4587+
description: Whether the message mentioned the channel tag
4588+
title: Mentioned Channel
4589+
type: boolean
4590+
x-stream-index: "031"
45624591
mentioned_users:
45634592
description: List of mentioned users
45644593
items:
@@ -4569,7 +4598,7 @@ components:
45694598
message_text_updated_at:
45704599
format: date-time
45714600
type: number
4572-
x-stream-index: "037"
4601+
x-stream-index: "038"
45734602
mml:
45744603
description: Should be empty if `text` is provided. Can only be set when
45754604
using server-side API
@@ -4579,7 +4608,7 @@ components:
45794608
x-stream-index: "003"
45804609
moderation:
45814610
$ref: '#/components/schemas/ModerationV2Response'
4582-
x-stream-index: "040"
4611+
x-stream-index: "041"
45834612
own_reactions:
45844613
description: List of 10 latest reactions of authenticated user to this message
45854614
items:
@@ -4599,34 +4628,34 @@ components:
45994628
title: Pin expiration date
46004629
type: number
46014630
x-stream-docs-page-id: pinned_messages
4602-
x-stream-index: "036"
4631+
x-stream-index: "037"
46034632
pinned:
46044633
description: Whether message is pinned or not
46054634
title: Pinned
46064635
type: boolean
46074636
x-stream-docs-page-id: pinned_messages
4608-
x-stream-index: "033"
4637+
x-stream-index: "034"
46094638
pinned_at:
46104639
description: Date when message got pinned
46114640
format: date-time
46124641
title: Pinned at
46134642
type: number
46144643
x-stream-docs-page-id: pinned_messages
4615-
x-stream-index: "034"
4644+
x-stream-index: "035"
46164645
pinned_by:
46174646
$ref: '#/components/schemas/UserResponse'
46184647
description: Contains user who pinned the message
46194648
title: Pinned by
46204649
x-stream-docs-page-id: pinned_messages
4621-
x-stream-index: "035"
4650+
x-stream-index: "036"
46224651
poll:
46234652
$ref: '#/components/schemas/PollResponseData'
4624-
x-stream-index: "039"
4653+
x-stream-index: "040"
46254654
poll_id:
46264655
description: Identifier of the poll to include in the message
46274656
title: Poll ID
46284657
type: string
4629-
x-stream-index: "038"
4658+
x-stream-index: "039"
46304659
quoted_message:
46314660
$ref: '#/components/schemas/MessageResponse'
46324661
description: Contains quoted message
@@ -4663,7 +4692,7 @@ components:
46634692
x-stream-index: "013"
46644693
reminder:
46654694
$ref: '#/components/schemas/ReminderResponseData'
4666-
x-stream-index: "043"
4695+
x-stream-index: "044"
46674696
reply_count:
46684697
description: Number of replies to this message
46694698
format: int32
@@ -4678,7 +4707,7 @@ components:
46784707
type: string
46794708
title: Restricted visibility
46804709
type: array
4681-
x-stream-index: "041"
4710+
x-stream-index: "042"
46824711
shadowed:
46834712
description: Whether the message was shadowed or not
46844713
title: Shadowed
@@ -4689,7 +4718,7 @@ components:
46894718
$ref: '#/components/schemas/SharedLocationResponseData'
46904719
description: Contains shared location data
46914720
title: Shared Location
4692-
x-stream-index: "044"
4721+
x-stream-index: "045"
46934722
show_in_channel:
46944723
description: Whether thread reply should be shown in the channel as well
46954724
title: Show in channel
@@ -4700,7 +4729,7 @@ components:
47004729
description: Whether message is silent or not
47014730
title: Silent
47024731
type: boolean
4703-
x-stream-index: "032"
4732+
x-stream-index: "033"
47044733
text:
47054734
description: Text of the message. Should be empty if `mml` is provided
47064735
title: Text
@@ -4757,6 +4786,7 @@ components:
47574786
- custom
47584787
- shadowed
47594788
- mentioned_users
4789+
- mentioned_channel
47604790
- silent
47614791
- pinned
47624792
- restricted_visibility
@@ -5132,6 +5162,28 @@ components:
51325162
x-stream-index: "001"
51335163
title: NotificationContext
51345164
type: object
5165+
NotificationParentActivity:
5166+
properties:
5167+
attachments:
5168+
items:
5169+
$ref: '#/components/schemas/Attachment'
5170+
type: array
5171+
x-stream-index: "005"
5172+
id:
5173+
type: string
5174+
x-stream-index: "001"
5175+
text:
5176+
type: string
5177+
x-stream-index: "004"
5178+
type:
5179+
type: string
5180+
x-stream-index: "003"
5181+
user_id:
5182+
type: string
5183+
x-stream-index: "002"
5184+
required:
5185+
- id
5186+
type: object
51355187
NotificationTarget:
51365188
properties:
51375189
attachments:
@@ -5157,6 +5209,12 @@ components:
51575209
title: User Name
51585210
type: string
51595211
x-stream-index: "006"
5212+
parent_activity:
5213+
$ref: '#/components/schemas/NotificationParentActivity'
5214+
description: The parent of the target activity (e.g. when target is a share/repost
5215+
with no text)
5216+
title: Parent Activity
5217+
x-stream-index: "008"
51605218
text:
51615219
description: The text content of the target activity (for activity targets)
51625220
title: Activity Text
@@ -7783,7 +7841,7 @@ components:
77837841
type: apiKey
77847842
info:
77857843
title: Stream API
7786-
version: v215.4.0
7844+
version: v219.10.0
77877845
openapi: 3.0.3
77887846
paths:
77897847
/api/v2/moderation/appeal:

openapi/moderation-serverside-api.json

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

0 commit comments

Comments
 (0)