Skip to content

Commit 47cfe64

Browse files
committed
Update video openapi Spec
1 parent 7bcd03f commit 47cfe64

36 files changed

+4793
-4554
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: 315 additions & 332 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: 376 additions & 284 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: 487 additions & 327 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: 100 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -312,63 +312,63 @@ components:
312312
$ref: '#/components/schemas/Attachment'
313313
title: Attachments
314314
type: array
315-
x-stream-index: "009"
315+
x-stream-index: "010"
316316
bookmark_count:
317317
description: Number of bookmarks on the activity
318318
format: int32
319319
title: Bookmark Count
320320
type: integer
321-
x-stream-index: "029"
321+
x-stream-index: "030"
322322
comment_count:
323323
description: Number of comments on the activity
324324
format: int32
325325
title: Comment Count
326326
type: integer
327-
x-stream-index: "028"
327+
x-stream-index: "029"
328328
comments:
329329
description: Comments on this activity
330330
items:
331331
$ref: '#/components/schemas/CommentResponse'
332332
title: Comments
333333
type: array
334-
x-stream-index: "015"
334+
x-stream-index: "016"
335335
created_at:
336336
description: When the activity was created
337337
format: date-time
338338
title: Created At
339339
type: number
340-
x-stream-index: "007"
340+
x-stream-index: "008"
341341
current_feed:
342342
$ref: '#/components/schemas/FeedResponse'
343343
description: Feed context for this activity view. If an activity is added
344344
only to one feed, it's always set. If an activity is added to multiple
345345
feeds, it's only set when calling the GetOrCreateFeed endpoint.
346346
title: Current Feed
347-
x-stream-index: "036"
347+
x-stream-index: "037"
348348
custom:
349349
additionalProperties: {}
350350
description: Custom data for the activity
351351
title: Custom Data
352352
type: object
353-
x-stream-index: "011"
353+
x-stream-index: "012"
354354
deleted_at:
355355
description: When the activity was deleted
356356
format: date-time
357357
title: Deleted At
358358
type: number
359-
x-stream-index: "021"
359+
x-stream-index: "022"
360360
edited_at:
361361
description: When the activity was last edited
362362
format: date-time
363363
title: Edited At
364364
type: number
365-
x-stream-index: "020"
365+
x-stream-index: "021"
366366
expires_at:
367367
description: When the activity will expire
368368
format: date-time
369369
title: Expires At
370370
type: number
371-
x-stream-index: "022"
371+
x-stream-index: "023"
372372
feeds:
373373
description: List of feed IDs containing this activity
374374
items:
@@ -382,12 +382,12 @@ components:
382382
type: string
383383
title: Filter Tags
384384
type: array
385-
x-stream-index: "024"
385+
x-stream-index: "025"
386386
hidden:
387387
description: If this activity is hidden by this user (using activity feedback)
388388
title: Hidden
389389
type: boolean
390-
x-stream-index: "037"
390+
x-stream-index: "038"
391391
id:
392392
description: Unique identifier for the activity
393393
title: ID
@@ -399,115 +399,121 @@ components:
399399
type: string
400400
title: Interest Tags
401401
type: array
402-
x-stream-index: "025"
402+
x-stream-index: "026"
403403
is_watched:
404404
type: boolean
405-
x-stream-index: "039"
405+
x-stream-index: "040"
406406
latest_reactions:
407407
description: Recent reactions to the activity
408408
items:
409409
$ref: '#/components/schemas/FeedsReactionResponse'
410410
title: Latest Reactions
411411
type: array
412-
x-stream-index: "032"
412+
x-stream-index: "033"
413413
location:
414414
$ref: '#/components/schemas/ActivityLocation'
415415
description: Geographic location related to the activity
416416
title: Location
417-
x-stream-index: "017"
417+
x-stream-index: "018"
418418
mentioned_users:
419419
description: Users mentioned in the activity
420420
items:
421421
$ref: '#/components/schemas/UserResponse'
422422
title: Mentioned Users
423423
type: array
424-
x-stream-index: "010"
424+
x-stream-index: "011"
425425
moderation:
426426
$ref: '#/components/schemas/ModerationV2Response'
427427
description: Moderation information
428428
title: Moderation
429-
x-stream-index: "026"
429+
x-stream-index: "027"
430430
moderation_action:
431431
type: string
432-
x-stream-index: "027"
432+
x-stream-index: "028"
433433
notification_context:
434434
$ref: '#/components/schemas/NotificationContext'
435435
description: Notification context data for the activity (if this is a reaction,
436436
comment, follow, etc.)
437437
title: Notification Context
438-
x-stream-index: "012"
438+
x-stream-index: "013"
439439
own_bookmarks:
440440
description: Current user's bookmarks for this activity
441441
items:
442442
$ref: '#/components/schemas/BookmarkResponse'
443443
title: Own Bookmarks
444444
type: array
445-
x-stream-index: "035"
445+
x-stream-index: "036"
446446
own_reactions:
447447
description: Current user's reactions to this activity
448448
items:
449449
$ref: '#/components/schemas/FeedsReactionResponse'
450450
title: Own Reactions
451451
type: array
452-
x-stream-index: "034"
452+
x-stream-index: "035"
453453
parent:
454454
$ref: '#/components/schemas/ActivityResponse'
455455
description: Parent activity (if this is a reply/comment)
456456
title: Parent
457-
x-stream-index: "018"
457+
x-stream-index: "019"
458458
poll:
459459
$ref: '#/components/schemas/PollResponseData'
460460
description: Poll attached to this activity
461461
title: Poll
462-
x-stream-index: "019"
462+
x-stream-index: "020"
463463
popularity:
464464
description: Popularity score of the activity
465465
format: int32
466466
title: Popularity
467467
type: integer
468-
x-stream-index: "013"
468+
x-stream-index: "014"
469469
preview:
470470
description: If this activity is obfuscated for this user. For premium content
471471
where you want to show a preview
472472
title: Preview
473473
type: boolean
474-
x-stream-index: "038"
474+
x-stream-index: "039"
475475
reaction_count:
476476
description: Number of reactions to the activity
477477
format: int32
478478
title: Reaction Count
479479
type: integer
480-
x-stream-index: "031"
480+
x-stream-index: "032"
481481
reaction_groups:
482482
additionalProperties:
483483
$ref: '#/components/schemas/ReactionGroupResponse'
484484
description: Grouped reactions by type
485485
title: Reaction Groups
486486
type: object
487-
x-stream-index: "033"
487+
x-stream-index: "034"
488+
restrict_replies:
489+
description: 'Controls who can reply to this activity. Values: everyone,
490+
people_i_follow, nobody'
491+
title: Restrict Replies
492+
type: string
493+
x-stream-index: "007"
488494
score:
489495
description: Ranking score for this activity
490496
format: float
491497
title: Score
492498
type: number
493-
x-stream-index: "014"
499+
x-stream-index: "015"
494500
search_data:
495501
additionalProperties: {}
496502
description: Data for search indexing
497503
title: Search Data
498504
type: object
499-
x-stream-index: "023"
505+
x-stream-index: "024"
500506
share_count:
501507
description: Number of times the activity was shared
502508
format: int32
503509
title: Share Count
504510
type: integer
505-
x-stream-index: "030"
511+
x-stream-index: "031"
506512
text:
507513
description: Text content of the activity
508514
title: Text
509515
type: string
510-
x-stream-index: "016"
516+
x-stream-index: "017"
511517
type:
512518
description: Type of activity
513519
title: Type
@@ -518,7 +524,7 @@ components:
518524
format: date-time
519525
title: Updated At
520526
type: number
521-
x-stream-index: "008"
527+
x-stream-index: "009"
522528
user:
523529
$ref: '#/components/schemas/UserResponse'
524530
description: User who created the activity
@@ -544,6 +550,7 @@ components:
544550
- user
545551
- feeds
546552
- visibility
553+
- restrict_replies
547554
- created_at
548555
- updated_at
549556
- attachments
@@ -5560,46 +5567,82 @@ components:
55605567
title: RTMPSettingsResponse
55615568
type: object
55625569
Reaction:
5563-
nullable: true
55645570
properties:
5571+
activity_id:
5572+
type: string
5573+
x-stream-index: "001.003"
5574+
children_counts:
5575+
additionalProperties: {}
5576+
type: object
5577+
x-stream-index: "005"
55655578
created_at:
55665579
format: date-time
5567-
readOnly: true
5580+
type: number
5581+
x-stream-index: "006"
5582+
data:
5583+
additionalProperties: {}
5584+
type: object
5585+
x-stream-index: "001.005"
5586+
deleted_at:
5587+
format: date-time
55685588
type: number
55695589
x-stream-index: "008"
5570-
custom:
5590+
id:
5591+
type: string
5592+
x-stream-index: "001.001"
5593+
kind:
5594+
type: string
5595+
x-stream-index: "001.002"
5596+
latest_children:
5597+
additionalProperties:
5598+
items:
5599+
$ref: '#/components/schemas/Reaction'
5600+
type: array
5601+
type: object
5602+
x-stream-index: "003"
5603+
moderation:
55715604
additionalProperties: {}
55725605
type: object
55735606
x-stream-index: "010"
5574-
message_id:
5607+
own_children:
5608+
additionalProperties:
5609+
items:
5610+
$ref: '#/components/schemas/Reaction'
5611+
type: array
5612+
type: object
5613+
x-stream-index: "004"
5614+
parent:
55755615
type: string
5576-
x-stream-index: "003"
5616+
x-stream-index: "001.008"
55775617
score:
5578-
format: int32
5579-
type: integer
5580-
x-stream-index: "007"
5581-
type:
5582-
maxLength: 30
5583-
type: string
5584-
x-stream-index: "006"
5618+
format: float
5619+
type: number
5620+
x-stream-index: "009"
5621+
target_feeds:
5622+
items:
5623+
type: string
5624+
type: array
5625+
x-stream-index: "001.006"
5626+
target_feeds_extra_data:
5627+
additionalProperties: {}
5628+
type: object
5629+
x-stream-index: "001.007"
55855630
updated_at:
55865631
format: date-time
5587-
readOnly: true
55885632
type: number
5589-
x-stream-index: "009"
5633+
x-stream-index: "007"
55905634
user:
55915635
$ref: '#/components/schemas/User'
5592-
x-stream-index: "005"
5636+
x-stream-index: "002"
55935637
user_id:
55945638
type: string
5595-
x-stream-index: "004"
5639+
x-stream-index: "001.004"
55965640
required:
5597-
- message_id
5598-
- type
5599-
- score
5641+
- kind
5642+
- activity_id
5643+
- user_id
56005644
- created_at
56015645
- updated_at
5602-
- custom
56035646
type: object
56045647
ReactionGroupResponse:
56055648
description: ReactionGroupResponse contains all information about a reaction
@@ -5748,7 +5791,7 @@ components:
57485791
type: number
57495792
x-stream-index: "008"
57505793
message:
5751-
$ref: '#/components/schemas/Message'
5794+
$ref: '#/components/schemas/MessageResponse'
57525795
x-stream-index: "005"
57535796
message_id:
57545797
type: string
@@ -5762,7 +5805,7 @@ components:
57625805
type: number
57635806
x-stream-index: "009"
57645807
user:
5765-
$ref: '#/components/schemas/User'
5808+
$ref: '#/components/schemas/UserResponse'
57665809
x-stream-index: "007"
57675810
user_id:
57685811
type: string
@@ -6133,6 +6176,7 @@ components:
61336176
x-stream-index: "001"
61346177
type: object
61356178
SharedLocation:
6179+
nullable: true
61366180
properties:
61376181
channel:
61386182
$ref: '#/components/schemas/Channel'
@@ -7236,7 +7280,7 @@ components:
72367280
type: apiKey
72377281
info:
72387282
title: Stream API
7239-
version: v200.1.0
7283+
version: v202.1.3
72407284
openapi: 3.0.3
72417285
paths:
72427286
/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)