Skip to content

Commit ba392a4

Browse files
author
Darko
authored
Update video openapi Spec (#1697)
2 parents 086ea62 + 65a42bd commit ba392a4

File tree

56 files changed

+18407
-4185
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+18407
-4185
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: 2680 additions & 1732 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: 1906 additions & 828 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: 1512 additions & 126 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: 67 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ components:
330330
description: Enriched collection data referenced by this activity
331331
title: Collections
332332
type: object
333-
x-stream-index: "038"
333+
x-stream-index: "039"
334334
comment_count:
335335
description: Number of comments on the activity
336336
format: int32
@@ -356,7 +356,7 @@ components:
356356
only to one feed, it's always set. If an activity is added to multiple
357357
feeds, it's only set when calling the GetOrCreateFeed endpoint.
358358
title: Current Feed
359-
x-stream-index: "041"
359+
x-stream-index: "042"
360360
custom:
361361
additionalProperties: {}
362362
description: Custom data for the activity
@@ -400,20 +400,20 @@ components:
400400
format: int32
401401
title: Friend Reaction Count
402402
type: integer
403-
x-stream-index: "040"
403+
x-stream-index: "041"
404404
friend_reactions:
405405
description: Reactions from users the current user follows or has mutual
406406
follows with
407407
items:
408408
$ref: '#/components/schemas/FeedsReactionResponse'
409409
title: Friend Reactions
410410
type: array
411-
x-stream-index: "039"
411+
x-stream-index: "040"
412412
hidden:
413413
description: If this activity is hidden by this user (using activity feedback)
414414
title: Hidden
415415
type: boolean
416-
x-stream-index: "042"
416+
x-stream-index: "043"
417417
id:
418418
description: Unique identifier for the activity
419419
title: ID
@@ -426,16 +426,28 @@ components:
426426
title: Interest Tags
427427
type: array
428428
x-stream-index: "027"
429+
is_read:
430+
description: Whether this activity has been read. Only set for feed groups
431+
with notification config (track_seen/track_read enabled).
432+
title: Is Read
433+
type: boolean
434+
x-stream-index: "047"
435+
is_seen:
436+
description: Whether this activity has been seen. Only set for feed groups
437+
with notification config (track_seen/track_read enabled).
438+
title: Is Seen
439+
type: boolean
440+
x-stream-index: "046"
429441
is_watched:
430442
type: boolean
431-
x-stream-index: "044"
443+
x-stream-index: "045"
432444
latest_reactions:
433445
description: Recent reactions to the activity
434446
items:
435447
$ref: '#/components/schemas/FeedsReactionResponse'
436448
title: Latest Reactions
437449
type: array
438-
x-stream-index: "034"
450+
x-stream-index: "035"
439451
location:
440452
$ref: '#/components/schemas/ActivityLocation'
441453
description: Geographic location related to the activity
@@ -448,6 +460,12 @@ components:
448460
title: Mentioned Users
449461
type: array
450462
x-stream-index: "011"
463+
metrics:
464+
additionalProperties:
465+
format: int64
466+
type: integer
467+
type: object
468+
x-stream-index: "034"
451469
moderation:
452470
$ref: '#/components/schemas/ModerationV2Response'
453471
description: Moderation information
@@ -468,14 +486,14 @@ components:
468486
$ref: '#/components/schemas/BookmarkResponse'
469487
title: Own Bookmarks
470488
type: array
471-
x-stream-index: "037"
489+
x-stream-index: "038"
472490
own_reactions:
473491
description: Current user's reactions to this activity
474492
items:
475493
$ref: '#/components/schemas/FeedsReactionResponse'
476494
title: Own Reactions
477495
type: array
478-
x-stream-index: "036"
496+
x-stream-index: "037"
479497
parent:
480498
$ref: '#/components/schemas/ActivityResponse'
481499
description: Parent activity (if this is a reply/comment)
@@ -497,7 +515,7 @@ components:
497515
where you want to show a preview
498516
title: Preview
499517
type: boolean
500-
x-stream-index: "043"
518+
x-stream-index: "044"
501519
reaction_count:
502520
description: Number of reactions to the activity
503521
format: int32
@@ -510,7 +528,7 @@ components:
510528
description: Grouped reactions by type
511529
title: Reaction Groups
512530
type: object
513-
x-stream-index: "035"
531+
x-stream-index: "036"
514532
restrict_replies:
515533
description: 'Controls who can add comments/replies to this activity. One
516534
of: everyone, people_i_follow, nobody'
@@ -969,6 +987,9 @@ components:
969987
title: Channel Ban Only
970988
type: boolean
971989
x-stream-index: "004"
990+
channel_cid:
991+
type: string
992+
x-stream-index: "005"
972993
delete_messages:
973994
description: 'Message deletion mode: soft, pruning, or hard'
974995
enum:
@@ -977,12 +998,12 @@ components:
977998
- hard
978999
title: Delete Messages
9791000
type: string
980-
x-stream-index: "006"
1001+
x-stream-index: "007"
9811002
ip_ban:
9821003
description: Whether to ban by IP address
9831004
title: IP Ban
9841005
type: boolean
985-
x-stream-index: "005"
1006+
x-stream-index: "006"
9861007
reason:
9871008
description: Reason for the ban
9881009
title: Reason
@@ -1003,7 +1024,7 @@ components:
10031024
format: int32
10041025
title: Timeout
10051026
type: integer
1006-
x-stream-index: "007"
1027+
x-stream-index: "008"
10071028
title: BanActionRequest
10081029
type: object
10091030
BanInfoResponse:
@@ -1148,13 +1169,16 @@ components:
11481169
type: boolean
11491170
x-stream-index: "001"
11501171
enabled:
1172+
type: boolean
1173+
x-stream-index: "003"
1174+
match_substring:
11511175
type: boolean
11521176
x-stream-index: "002"
11531177
rules:
11541178
items:
11551179
$ref: '#/components/schemas/BlockListRule'
11561180
type: array
1157-
x-stream-index: "003"
1181+
x-stream-index: "004"
11581182
required:
11591183
- enabled
11601184
- rules
@@ -3342,7 +3366,8 @@ components:
33423366
title: Feed Member
33433367
type: object
33443368
FeedOwnCapability:
3345-
description: All possibility of string to use
3369+
description: Represents a feed capability value and enumerates all possible
3370+
capability strings.
33463371
enum:
33473372
- add-activity
33483373
- add-activity-bookmark
@@ -4343,14 +4368,14 @@ components:
43434368
x-stream-index: "027"
43444369
deleted_for_me:
43454370
type: boolean
4346-
x-stream-index: "049"
4371+
x-stream-index: "050"
43474372
deleted_reply_count:
43484373
format: int32
43494374
type: integer
43504375
x-stream-index: "020"
43514376
draft:
43524377
$ref: '#/components/schemas/DraftResponse'
4353-
x-stream-index: "046"
4378+
x-stream-index: "047"
43544379
html:
43554380
description: Contains HTML markup of the message. Can only be set when using
43564381
server-side API
@@ -4365,7 +4390,7 @@ components:
43654390
title: Internationalization info
43664391
type: object
43674392
x-stream-docs-page-id: translation
4368-
x-stream-index: "035"
4393+
x-stream-index: "036"
43694394
id:
43704395
description: Message ID is unique string identifier of the message
43714396
title: ID
@@ -4397,12 +4422,21 @@ components:
43974422
description: Whether the message mentioned the channel tag
43984423
title: Mentioned Channel
43994424
type: boolean
4425+
x-stream-index: "034"
4426+
mentioned_group_ids:
4427+
description: List of user group IDs mentioned in the message. Group members
4428+
who are also channel members will receive push notifications based on
4429+
their push preferences. Max 10 groups
4430+
items:
4431+
type: string
4432+
title: Mentioned Groups
4433+
type: array
44004434
x-stream-index: "033"
44014435
mentioned_here:
44024436
description: Whether the message mentioned online users with @here tag
44034437
title: Mentioned Here
44044438
type: boolean
4405-
x-stream-index: "034"
4439+
x-stream-index: "035"
44064440
mentioned_roles:
44074441
description: List of roles mentioned in the message (e.g. admin, channel_moderator,
44084442
custom roles). Members with matching roles will receive push notifications
@@ -4422,7 +4456,7 @@ components:
44224456
message_text_updated_at:
44234457
format: date-time
44244458
type: number
4425-
x-stream-index: "041"
4459+
x-stream-index: "042"
44264460
mml:
44274461
description: Should be empty if `text` is provided. Can only be set when
44284462
using server-side API
@@ -4432,7 +4466,7 @@ components:
44324466
x-stream-index: "003"
44334467
moderation:
44344468
$ref: '#/components/schemas/ModerationV2Response'
4435-
x-stream-index: "044"
4469+
x-stream-index: "045"
44364470
own_reactions:
44374471
description: List of 10 latest reactions of authenticated user to this message
44384472
items:
@@ -4452,34 +4486,34 @@ components:
44524486
title: Pin expiration date
44534487
type: number
44544488
x-stream-docs-page-id: pinned_messages
4455-
x-stream-index: "040"
4489+
x-stream-index: "041"
44564490
pinned:
44574491
description: Whether message is pinned or not
44584492
title: Pinned
44594493
type: boolean
44604494
x-stream-docs-page-id: pinned_messages
4461-
x-stream-index: "037"
4495+
x-stream-index: "038"
44624496
pinned_at:
44634497
description: Date when message got pinned
44644498
format: date-time
44654499
title: Pinned at
44664500
type: number
44674501
x-stream-docs-page-id: pinned_messages
4468-
x-stream-index: "038"
4502+
x-stream-index: "039"
44694503
pinned_by:
44704504
$ref: '#/components/schemas/UserResponse'
44714505
description: Contains user who pinned the message
44724506
title: Pinned by
44734507
x-stream-docs-page-id: pinned_messages
4474-
x-stream-index: "039"
4508+
x-stream-index: "040"
44754509
poll:
44764510
$ref: '#/components/schemas/PollResponseData'
4477-
x-stream-index: "043"
4511+
x-stream-index: "044"
44784512
poll_id:
44794513
description: Identifier of the poll to include in the message
44804514
title: Poll ID
44814515
type: string
4482-
x-stream-index: "042"
4516+
x-stream-index: "043"
44834517
quoted_message:
44844518
$ref: '#/components/schemas/MessageResponse'
44854519
description: Contains quoted message
@@ -4516,7 +4550,7 @@ components:
45164550
x-stream-index: "013"
45174551
reminder:
45184552
$ref: '#/components/schemas/ReminderResponseData'
4519-
x-stream-index: "047"
4553+
x-stream-index: "048"
45204554
reply_count:
45214555
description: Number of replies to this message
45224556
format: int32
@@ -4531,7 +4565,7 @@ components:
45314565
type: string
45324566
title: Restricted visibility
45334567
type: array
4534-
x-stream-index: "045"
4568+
x-stream-index: "046"
45354569
shadowed:
45364570
description: Whether the message was shadowed or not
45374571
title: Shadowed
@@ -4542,7 +4576,7 @@ components:
45424576
$ref: '#/components/schemas/SharedLocationResponseData'
45434577
description: Contains shared location data
45444578
title: Shared Location
4545-
x-stream-index: "048"
4579+
x-stream-index: "049"
45464580
show_in_channel:
45474581
description: Whether thread reply should be shown in the channel as well
45484582
title: Show in channel
@@ -4553,7 +4587,7 @@ components:
45534587
description: Whether message is silent or not
45544588
title: Silent
45554589
type: boolean
4556-
x-stream-index: "036"
4590+
x-stream-index: "037"
45574591
text:
45584592
description: Text of the message. Should be empty if `mml` is provided
45594593
title: Text
@@ -7511,7 +7545,7 @@ components:
75117545
type: apiKey
75127546
info:
75137547
title: Stream API
7514-
version: v221.12.1
7548+
version: v223.14.1
75157549
openapi: 3.0.3
75167550
paths:
75177551
/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)