Skip to content

Commit 2624ca5

Browse files
committed
Update video openapi Spec
1 parent 66d32b0 commit 2624ca5

36 files changed

+2727
-2612
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: 137 additions & 211 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: 137 additions & 211 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: 159 additions & 213 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: 55 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,6 +2259,14 @@ components:
22592259
- channel_role
22602260
- notifications_muted
22612261
type: object
2262+
ChannelMemberResponse:
2263+
properties:
2264+
channel_role:
2265+
type: string
2266+
x-stream-index: "001"
2267+
required:
2268+
- channel_role
2269+
type: object
22622270
ChannelMute:
22632271
nullable: true
22642272
properties:
@@ -4044,7 +4052,7 @@ components:
40444052
x-stream-index: "033"
40454053
deleted_for_me:
40464054
type: boolean
4047-
x-stream-index: "059"
4055+
x-stream-index: "060"
40484056
deleted_reply_count:
40494057
format: int32
40504058
type: integer
@@ -4072,6 +4080,9 @@ components:
40724080
$ref: '#/components/schemas/Reaction'
40734081
type: array
40744082
x-stream-index: "013"
4083+
member:
4084+
$ref: '#/components/schemas/ChannelMember'
4085+
x-stream-index: "059"
40754086
mentioned_users:
40764087
items:
40774088
$ref: '#/components/schemas/User'
@@ -4256,12 +4267,12 @@ components:
42564267
title: Message attachments
42574268
type: array
42584269
x-stream-docs-page-id: message_format#attachment-format
4259-
x-stream-index: "008"
4270+
x-stream-index: "009"
42604271
cid:
42614272
description: Channel unique identifier in <type>:<id> format
42624273
title: Channel CID
42634274
type: string
4264-
x-stream-index: "022"
4275+
x-stream-index: "023"
42654276
command:
42664277
description: Contains provided slash command
42674278
title: Command
@@ -4273,27 +4284,27 @@ components:
42734284
format: date-time
42744285
title: Created at
42754286
type: number
4276-
x-stream-index: "023"
4287+
x-stream-index: "024"
42774288
custom:
42784289
additionalProperties: {}
42794290
type: object
4280-
x-stream-index: "026"
4291+
x-stream-index: "027"
42814292
deleted_at:
42824293
description: Date/time of deletion
42834294
format: date-time
42844295
title: Deleted at
42854296
type: number
4286-
x-stream-index: "025"
4297+
x-stream-index: "026"
42874298
deleted_for_me:
42884299
type: boolean
4289-
x-stream-index: "044"
4300+
x-stream-index: "045"
42904301
deleted_reply_count:
42914302
format: int32
42924303
type: integer
4293-
x-stream-index: "018"
4304+
x-stream-index: "019"
42944305
draft:
42954306
$ref: '#/components/schemas/DraftResponse'
4296-
x-stream-index: "041"
4307+
x-stream-index: "042"
42974308
html:
42984309
description: Contains HTML markup of the message. Can only be set when using
42994310
server-side API
@@ -4308,7 +4319,7 @@ components:
43084319
title: Internationalization info
43094320
type: object
43104321
x-stream-docs-page-id: translation
4311-
x-stream-index: "030"
4322+
x-stream-index: "031"
43124323
id:
43134324
description: Message ID is unique string identifier of the message
43144325
title: ID
@@ -4322,25 +4333,31 @@ components:
43224333
description: Contains image moderation information
43234334
title: Image moderation labels
43244335
type: object
4325-
x-stream-index: "028"
4336+
x-stream-index: "029"
43264337
latest_reactions:
43274338
description: List of 10 latest reactions to this message
43284339
items:
43294340
$ref: '#/components/schemas/ReactionResponse'
43304341
title: Latest reactions
43314342
type: array
4332-
x-stream-index: "009"
4343+
x-stream-index: "010"
4344+
member:
4345+
$ref: '#/components/schemas/ChannelMemberResponse'
4346+
description: Channel member data for the message sender including only the
4347+
`channel_role`
4348+
title: Member object
4349+
x-stream-index: "008"
43334350
mentioned_users:
43344351
description: List of mentioned users
43354352
items:
43364353
$ref: '#/components/schemas/UserResponse'
43374354
title: Mentioned Users
43384355
type: array
4339-
x-stream-index: "029"
4356+
x-stream-index: "030"
43404357
message_text_updated_at:
43414358
format: date-time
43424359
type: number
4343-
x-stream-index: "036"
4360+
x-stream-index: "037"
43444361
mml:
43454362
description: Should be empty if `text` is provided. Can only be set when
43464363
using server-side API
@@ -4350,65 +4367,65 @@ components:
43504367
x-stream-index: "003"
43514368
moderation:
43524369
$ref: '#/components/schemas/ModerationV2Response'
4353-
x-stream-index: "039"
4370+
x-stream-index: "040"
43544371
own_reactions:
43554372
description: List of 10 latest reactions of authenticated user to this message
43564373
items:
43574374
$ref: '#/components/schemas/ReactionResponse'
43584375
title: Own reactions
43594376
type: array
4360-
x-stream-index: "010"
4377+
x-stream-index: "011"
43614378
parent_id:
43624379
description: ID of parent message (thread)
43634380
title: Parent message ID
43644381
type: string
43654382
x-stream-docs-page-id: threads
4366-
x-stream-index: "015"
4383+
x-stream-index: "016"
43674384
pin_expires:
43684385
description: Date when pinned message expires
43694386
format: date-time
43704387
title: Pin expiration date
43714388
type: number
43724389
x-stream-docs-page-id: pinned_messages
4373-
x-stream-index: "035"
4390+
x-stream-index: "036"
43744391
pinned:
43754392
description: Whether message is pinned or not
43764393
title: Pinned
43774394
type: boolean
43784395
x-stream-docs-page-id: pinned_messages
4379-
x-stream-index: "032"
4396+
x-stream-index: "033"
43804397
pinned_at:
43814398
description: Date when message got pinned
43824399
format: date-time
43834400
title: Pinned at
43844401
type: number
43854402
x-stream-docs-page-id: pinned_messages
4386-
x-stream-index: "033"
4403+
x-stream-index: "034"
43874404
pinned_by:
43884405
$ref: '#/components/schemas/UserResponse'
43894406
description: Contains user who pinned the message
43904407
title: Pinned by
43914408
x-stream-docs-page-id: pinned_messages
4392-
x-stream-index: "034"
4409+
x-stream-index: "035"
43934410
poll:
43944411
$ref: '#/components/schemas/PollResponseData'
4395-
x-stream-index: "038"
4412+
x-stream-index: "039"
43964413
poll_id:
43974414
description: Identifier of the poll to include in the message
43984415
title: Poll ID
43994416
type: string
4400-
x-stream-index: "037"
4417+
x-stream-index: "038"
44014418
quoted_message:
44024419
$ref: '#/components/schemas/MessageResponse'
44034420
description: Contains quoted message
44044421
title: Quoted message
44054422
x-stream-docs-page-id: threads#quote-message
4406-
x-stream-index: "020"
4423+
x-stream-index: "021"
44074424
quoted_message_id:
44084425
title: ID of quoted message
44094426
type: string
44104427
x-stream-docs-page-id: threads#quote-message
4411-
x-stream-index: "019"
4428+
x-stream-index: "020"
44124429
reaction_counts:
44134430
additionalProperties:
44144431
format: int32
@@ -4417,12 +4434,12 @@ components:
44174434
reaction type (string), value: number of reactions (int)'
44184435
title: Reaction counts
44194436
type: object
4420-
x-stream-index: "011"
4437+
x-stream-index: "012"
44214438
reaction_groups:
44224439
additionalProperties:
44234440
$ref: '#/components/schemas/ReactionGroupResponse'
44244441
type: object
4425-
x-stream-index: "014"
4442+
x-stream-index: "015"
44264443
reaction_scores:
44274444
additionalProperties:
44284445
format: int32
@@ -4431,16 +4448,16 @@ components:
44314448
reaction type (string), value: total score of reactions (int)'
44324449
title: Reaction scores
44334450
type: object
4434-
x-stream-index: "012"
4451+
x-stream-index: "013"
44354452
reminder:
44364453
$ref: '#/components/schemas/ReminderResponseData'
4437-
x-stream-index: "042"
4454+
x-stream-index: "043"
44384455
reply_count:
44394456
description: Number of replies to this message
44404457
format: int32
44414458
title: Reply count
44424459
type: integer
4443-
x-stream-index: "017"
4460+
x-stream-index: "018"
44444461
restricted_visibility:
44454462
description: A list of user ids that have restricted visibility to the message,
44464463
if the list is not empty, the message is only visible to the users in
@@ -4449,29 +4466,29 @@ components:
44494466
type: string
44504467
title: Restricted visibility
44514468
type: array
4452-
x-stream-index: "040"
4469+
x-stream-index: "041"
44534470
shadowed:
44544471
description: Whether the message was shadowed or not
44554472
title: Shadowed
44564473
type: boolean
44574474
x-stream-docs-page-id: moderation#shadow-ban
4458-
x-stream-index: "027"
4475+
x-stream-index: "028"
44594476
shared_location:
44604477
$ref: '#/components/schemas/SharedLocationResponseData'
44614478
description: Contains shared location data
44624479
title: Shared Location
4463-
x-stream-index: "043"
4480+
x-stream-index: "044"
44644481
show_in_channel:
44654482
description: Whether thread reply should be shown in the channel as well
44664483
title: Show in channel
44674484
type: boolean
44684485
x-stream-docs-page-id: threads
4469-
x-stream-index: "016"
4486+
x-stream-index: "017"
44704487
silent:
44714488
description: Whether message is silent or not
44724489
title: Silent
44734490
type: boolean
4474-
x-stream-index: "031"
4491+
x-stream-index: "032"
44754492
text:
44764493
description: Text of the message. Should be empty if `mml` is provided
44774494
title: Text
@@ -4484,7 +4501,7 @@ components:
44844501
title: Thread participants
44854502
type: array
44864503
x-stream-docs-page-id: threads#quote-message
4487-
x-stream-index: "021"
4504+
x-stream-index: "022"
44884505
type:
44894506
description: Contains type of the message
44904507
enum:
@@ -4503,7 +4520,7 @@ components:
45034520
format: date-time
45044521
title: Updated at
45054522
type: number
4506-
x-stream-index: "024"
4523+
x-stream-index: "025"
45074524
user:
45084525
$ref: '#/components/schemas/UserResponse'
45094526
description: Sender of the message. Required when using server-side API
@@ -7593,7 +7610,7 @@ components:
75937610
type: apiKey
75947611
info:
75957612
title: Stream API
7596-
version: v191.1.0
7613+
version: v192.0.0
75977614
openapi: 3.0.3
75987615
paths:
75997616
/api/v2/moderation/ban:

openapi/moderation-serverside-api.json

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

0 commit comments

Comments
 (0)