Skip to content

Commit 6679d0d

Browse files
committed
Update video openapi Spec
1 parent 7ccc604 commit 6679d0d

36 files changed

+3030
-600
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: 51 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -726,26 +726,26 @@ components:
726726
items:
727727
$ref: '#/components/schemas/SharedLocation'
728728
type: array
729-
x-stream-index: "034"
729+
x-stream-index: "035"
730730
auto_translation_enabled:
731731
type: boolean
732-
x-stream-index: "029"
732+
x-stream-index: "030"
733733
auto_translation_language:
734734
type: string
735-
x-stream-index: "030"
735+
x-stream-index: "031"
736736
cid:
737737
type: string
738738
x-stream-index: "003"
739739
config:
740740
$ref: '#/components/schemas/ChannelConfig'
741-
x-stream-index: "026"
741+
x-stream-index: "027"
742742
config_overrides:
743743
$ref: '#/components/schemas/ConfigOverrides'
744-
x-stream-index: "027"
744+
x-stream-index: "028"
745745
cooldown:
746746
format: int32
747747
type: integer
748-
x-stream-index: "031"
748+
x-stream-index: "032"
749749
created_at:
750750
format: date-time
751751
type: string
@@ -774,10 +774,10 @@ components:
774774
items:
775775
$ref: '#/components/schemas/ChannelMember'
776776
type: array
777-
x-stream-index: "022"
777+
x-stream-index: "023"
778778
last_campaigns:
779779
type: string
780-
x-stream-index: "032"
780+
x-stream-index: "033"
781781
last_message_at:
782782
format: date-time
783783
type: string
@@ -791,17 +791,22 @@ components:
791791
$ref: '#/components/schemas/ChannelMember'
792792
type: array
793793
x-stream-index: "020"
794+
members_lookup:
795+
additionalProperties:
796+
$ref: '#/components/schemas/ChannelMemberLookup'
797+
type: object
798+
x-stream-index: "022"
794799
message_count:
795800
format: int64
796801
type: integer
797-
x-stream-index: "035"
802+
x-stream-index: "036"
798803
message_count_updated_at:
799804
format: date-time
800805
type: string
801-
x-stream-index: "036"
806+
x-stream-index: "037"
802807
team:
803808
type: string
804-
x-stream-index: "028"
809+
x-stream-index: "029"
805810
truncated_by:
806811
$ref: '#/components/schemas/User'
807812
x-stream-index: "015"
@@ -1523,6 +1528,39 @@ components:
15231528
- notifications_muted
15241529
title: Channel member
15251530
type: object
1531+
ChannelMemberLookup:
1532+
nullable: true
1533+
properties:
1534+
archived:
1535+
type: boolean
1536+
x-stream-index: "003"
1537+
archived_at:
1538+
format: date-time
1539+
type: string
1540+
x-stream-index: "006"
1541+
ban_expires:
1542+
format: date-time
1543+
type: string
1544+
x-stream-index: "007"
1545+
banned:
1546+
type: boolean
1547+
x-stream-index: "004"
1548+
hidden:
1549+
type: boolean
1550+
x-stream-index: "001"
1551+
pinned:
1552+
type: boolean
1553+
x-stream-index: "002"
1554+
pinned_at:
1555+
format: date-time
1556+
type: string
1557+
x-stream-index: "005"
1558+
required:
1559+
- hidden
1560+
- pinned
1561+
- archived
1562+
- banned
1563+
type: object
15261564
ChannelMemberResponse:
15271565
properties:
15281566
channel_role:
@@ -4487,7 +4525,7 @@ components:
44874525
type: array
44884526
x-stream-index: "001.002"
44894527
type:
4490-
default: message.new
4528+
default: notification.thread_message_new
44914529
type: string
44924530
x-stream-index: "004.001"
44934531
user:
@@ -11740,7 +11778,7 @@ components:
1174011778
type: apiKey
1174111779
info:
1174211780
title: Stream API
11743-
version: v193.9.0
11781+
version: v194.6.4
1174411782
openapi: 3.0.3
1174511783
paths:
1174611784
/app:

openapi/chat-openapi.json

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

openapi/chat-openapi.yaml

Lines changed: 117 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ components:
588588
type: string
589589
x-stream-index: "002.001"
590590
type:
591-
default: export.channels.error
591+
default: export.users.error
592592
type: string
593593
x-stream-index: "003.002"
594594
required:
@@ -1516,26 +1516,26 @@ components:
15161516
items:
15171517
$ref: '#/components/schemas/SharedLocation'
15181518
type: array
1519-
x-stream-index: "034"
1519+
x-stream-index: "035"
15201520
auto_translation_enabled:
15211521
type: boolean
1522-
x-stream-index: "029"
1522+
x-stream-index: "030"
15231523
auto_translation_language:
15241524
type: string
1525-
x-stream-index: "030"
1525+
x-stream-index: "031"
15261526
cid:
15271527
type: string
15281528
x-stream-index: "003"
15291529
config:
15301530
$ref: '#/components/schemas/ChannelConfig'
1531-
x-stream-index: "026"
1531+
x-stream-index: "027"
15321532
config_overrides:
15331533
$ref: '#/components/schemas/ConfigOverrides'
1534-
x-stream-index: "027"
1534+
x-stream-index: "028"
15351535
cooldown:
15361536
format: int32
15371537
type: integer
1538-
x-stream-index: "031"
1538+
x-stream-index: "032"
15391539
created_at:
15401540
format: date-time
15411541
type: string
@@ -1564,10 +1564,10 @@ components:
15641564
items:
15651565
$ref: '#/components/schemas/ChannelMember'
15661566
type: array
1567-
x-stream-index: "022"
1567+
x-stream-index: "023"
15681568
last_campaigns:
15691569
type: string
1570-
x-stream-index: "032"
1570+
x-stream-index: "033"
15711571
last_message_at:
15721572
format: date-time
15731573
type: string
@@ -1581,17 +1581,22 @@ components:
15811581
$ref: '#/components/schemas/ChannelMember'
15821582
type: array
15831583
x-stream-index: "020"
1584+
members_lookup:
1585+
additionalProperties:
1586+
$ref: '#/components/schemas/ChannelMemberLookup'
1587+
type: object
1588+
x-stream-index: "022"
15841589
message_count:
15851590
format: int64
15861591
type: integer
1587-
x-stream-index: "035"
1592+
x-stream-index: "036"
15881593
message_count_updated_at:
15891594
format: date-time
15901595
type: string
1591-
x-stream-index: "036"
1596+
x-stream-index: "037"
15921597
team:
15931598
type: string
1594-
x-stream-index: "028"
1599+
x-stream-index: "029"
15951600
truncated_by:
15961601
$ref: '#/components/schemas/User'
15971602
x-stream-index: "015"
@@ -2293,6 +2298,39 @@ components:
22932298
- notifications_muted
22942299
title: Channel member
22952300
type: object
2301+
ChannelMemberLookup:
2302+
nullable: true
2303+
properties:
2304+
archived:
2305+
type: boolean
2306+
x-stream-index: "003"
2307+
archived_at:
2308+
format: date-time
2309+
type: string
2310+
x-stream-index: "006"
2311+
ban_expires:
2312+
format: date-time
2313+
type: string
2314+
x-stream-index: "007"
2315+
banned:
2316+
type: boolean
2317+
x-stream-index: "004"
2318+
hidden:
2319+
type: boolean
2320+
x-stream-index: "001"
2321+
pinned:
2322+
type: boolean
2323+
x-stream-index: "002"
2324+
pinned_at:
2325+
format: date-time
2326+
type: string
2327+
x-stream-index: "005"
2328+
required:
2329+
- hidden
2330+
- pinned
2331+
- archived
2332+
- banned
2333+
type: object
22962334
ChannelMemberResponse:
22972335
properties:
22982336
channel_role:
@@ -7663,7 +7701,7 @@ components:
76637701
type: array
76647702
x-stream-index: "001.002"
76657703
type:
7666-
default: notification.thread_message_new
7704+
default: message.new
76677705
type: string
76687706
x-stream-index: "004.001"
76697707
user:
@@ -8592,6 +8630,9 @@ components:
85928630
x-stream-docs-page-id: send_message
85938631
ModerationDashboardPreferences:
85948632
properties:
8633+
disable_flagging_reviewed_entity:
8634+
type: boolean
8635+
x-stream-index: "003"
85958636
flag_user_on_flagged_content:
85968637
type: boolean
85978638
x-stream-index: "002"
@@ -13303,6 +13344,9 @@ components:
1330313344
x-stream-index: "001"
1330413345
speech_segment_config:
1330513346
$ref: '#/components/schemas/SpeechSegmentConfig'
13347+
x-stream-index: "006"
13348+
translation:
13349+
$ref: '#/components/schemas/TranslationSettings'
1330613350
x-stream-index: "005"
1330713351
required:
1330813352
- mode
@@ -13379,6 +13423,20 @@ components:
1337913423
required:
1338013424
- language
1338113425
type: object
13426+
TranslationSettings:
13427+
properties:
13428+
enabled:
13429+
type: boolean
13430+
x-stream-index: "001"
13431+
languages:
13432+
items:
13433+
type: string
13434+
type: array
13435+
x-stream-index: "002"
13436+
required:
13437+
- enabled
13438+
- languages
13439+
type: object
1338213440
TruncateChannelRequest:
1338313441
nullable: true
1338413442
properties:
@@ -16363,7 +16421,7 @@ components:
1636316421
type: apiKey
1636416422
info:
1636516423
title: Stream API
16366-
version: v193.9.0
16424+
version: v194.6.4
1636716425
openapi: 3.0.3
1636816426
paths:
1636916427
/app:
@@ -19289,6 +19347,51 @@ paths:
1928919347
summary: Commit message
1929019348
tags:
1929119349
- product:chat
19350+
/messages/{id}/ephemeral:
19351+
patch:
19352+
description: |
19353+
Updates message fields without storing in database, only sends update event
19354+
19355+
Sends events:
19356+
- message.updated
19357+
- message.updated
19358+
operationId: EphemeralMessageUpdate
19359+
parameters:
19360+
- in: path
19361+
name: id
19362+
required: true
19363+
schema:
19364+
type: string
19365+
writeOnly: true
19366+
x-stream-index: "003.001"
19367+
requestBody:
19368+
content:
19369+
application/json:
19370+
schema:
19371+
$ref: '#/components/schemas/UpdateMessagePartialRequest'
19372+
required: true
19373+
responses:
19374+
"200":
19375+
content:
19376+
application/json:
19377+
schema:
19378+
$ref: '#/components/schemas/UpdateMessagePartialResponse'
19379+
description: Successful response
19380+
"400":
19381+
content:
19382+
application/json:
19383+
schema:
19384+
$ref: '#/components/schemas/APIError'
19385+
description: Bad request
19386+
"429":
19387+
content:
19388+
application/json:
19389+
schema:
19390+
$ref: '#/components/schemas/APIError'
19391+
description: Too many requests
19392+
summary: Ephemeral message update
19393+
tags:
19394+
- product:chat
1929219395
/messages/{id}/reaction:
1929319396
post:
1929419397
description: |

openapi/clientside-api.json

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

0 commit comments

Comments
 (0)