Skip to content

Commit c810de4

Browse files
committed
Update video openapi Spec
1 parent 1f0a515 commit c810de4

36 files changed

+1733
-292
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: 50 additions & 12 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:
@@ -11740,7 +11778,7 @@ components:
1174011778
type: apiKey
1174111779
info:
1174211780
title: Stream API
11743-
version: v193.9.0
11781+
version: v194.1.0
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: 96 additions & 13 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.moderation_logs.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:
@@ -16363,7 +16401,7 @@ components:
1636316401
type: apiKey
1636416402
info:
1636516403
title: Stream API
16366-
version: v193.9.0
16404+
version: v194.1.0
1636716405
openapi: 3.0.3
1636816406
paths:
1636916407
/app:
@@ -19289,6 +19327,51 @@ paths:
1928919327
summary: Commit message
1929019328
tags:
1929119329
- product:chat
19330+
/messages/{id}/ephemeral:
19331+
patch:
19332+
description: |
19333+
Updates message fields without storing in database, only sends update event
19334+
19335+
Sends events:
19336+
- message.updated
19337+
- message.updated
19338+
operationId: EphemeralMessageUpdate
19339+
parameters:
19340+
- in: path
19341+
name: id
19342+
required: true
19343+
schema:
19344+
type: string
19345+
writeOnly: true
19346+
x-stream-index: "003.001"
19347+
requestBody:
19348+
content:
19349+
application/json:
19350+
schema:
19351+
$ref: '#/components/schemas/UpdateMessagePartialRequest'
19352+
required: true
19353+
responses:
19354+
"200":
19355+
content:
19356+
application/json:
19357+
schema:
19358+
$ref: '#/components/schemas/UpdateMessagePartialResponse'
19359+
description: Successful response
19360+
"400":
19361+
content:
19362+
application/json:
19363+
schema:
19364+
$ref: '#/components/schemas/APIError'
19365+
description: Bad request
19366+
"429":
19367+
content:
19368+
application/json:
19369+
schema:
19370+
$ref: '#/components/schemas/APIError'
19371+
description: Too many requests
19372+
summary: Ephemeral message update
19373+
tags:
19374+
- product:chat
1929219375
/messages/{id}/reaction:
1929319376
post:
1929419377
description: |

openapi/clientside-api.json

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

0 commit comments

Comments
 (0)