Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openapi/chat-openapi-clientside.json

Large diffs are not rendered by default.

103 changes: 90 additions & 13 deletions openapi/chat-openapi-clientside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1382,6 +1382,11 @@ components:
disabled:
type: boolean
x-stream-index: "014"
filter_tags:
items:
type: string
type: array
x-stream-index: "026"
frozen:
description: Freeze or unfreeze the channel
title: Frozen
Expand Down Expand Up @@ -1463,13 +1468,13 @@ components:
x-stream-index: "016"
blocked:
type: boolean
x-stream-index: "029"
x-stream-index: "031"
channel:
$ref: '#/components/schemas/DenormalizedChannelFields'
x-stream-index: "027"
x-stream-index: "029"
channel_role:
type: string
x-stream-index: "024"
x-stream-index: "026"
created_at:
format: date-time
type: string
Expand All @@ -1486,10 +1491,10 @@ components:
items:
type: string
type: array
x-stream-index: "030"
x-stream-index: "032"
hidden:
type: boolean
x-stream-index: "028"
x-stream-index: "030"
invite_accepted_at:
format: date-time
type: string
Expand All @@ -1509,7 +1514,7 @@ components:
x-stream-index: "007"
notifications_muted:
type: boolean
x-stream-index: "026"
x-stream-index: "028"
pinned_at:
format: date-time
type: string
Expand Down Expand Up @@ -2329,6 +2334,7 @@ components:
- domain
- domain_allowlist
- email
- email_allowlist
- word
title: Type
type: string
Expand Down Expand Up @@ -2667,6 +2673,15 @@ components:
- duration
title: Response
type: object
DeliveredMessagePayload:
properties:
cid:
type: string
x-stream-index: "001"
id:
type: string
x-stream-index: "002"
type: object
DeliveryReceipts:
properties:
enabled:
Expand Down Expand Up @@ -3667,7 +3682,7 @@ components:
reactions:
description: List of reactions
items:
$ref: '#/components/schemas/Reaction'
$ref: '#/components/schemas/ReactionResponse'
title: Reactions
type: array
x-stream-index: "001"
Expand Down Expand Up @@ -3992,6 +4007,28 @@ components:
type: object
x-stream-index: "001"
type: object
MarkDeliveredRequest:
nullable: true
properties:
latest_delivered_messages:
items:
$ref: '#/components/schemas/DeliveredMessagePayload'
type: array
x-stream-index: "001"
type: object
MarkDeliveredResponse:
description: Basic response information
nullable: true
properties:
duration:
description: Duration of the request in milliseconds
title: Duration
type: string
x-stream-index: "001.001"
required:
- duration
title: Response
type: object
MarkReadRequest:
nullable: true
properties:
Expand Down Expand Up @@ -4030,8 +4067,15 @@ components:
title: Message ID
type: string
x-stream-index: "001"
message_timestamp:
description: Timestamp of the message from where the channel is marked unread
format: date-time
title: Message Timestamp
type: string
x-stream-index: "004"
thread_id:
description: Mark a thread unread, specify both the thread and message id
description: Mark a thread unread, specify one of the thread, message timestamp,
or message id
title: Thread ID
type: string
x-stream-index: "003"
Expand Down Expand Up @@ -6376,15 +6420,15 @@ components:
avg_response_time:
format: int32
type: integer
x-stream-index: "046"
x-stream-index: "047"
banned:
type: boolean
x-stream-index: "016"
blocked_user_ids:
items:
type: string
type: array
x-stream-index: "045"
x-stream-index: "046"
channel_mutes:
items:
$ref: '#/components/schemas/ChannelMute'
Expand Down Expand Up @@ -10984,7 +11028,7 @@ components:
format: int32
readOnly: true
type: integer
x-stream-index: "046"
x-stream-index: "047"
ban_expires:
format: date-time
type: string
Expand Down Expand Up @@ -11040,7 +11084,7 @@ components:
revoke_tokens_issued_before:
format: date-time
type: string
x-stream-index: "042"
x-stream-index: "043"
role:
type: string
x-stream-index: "004"
Expand Down Expand Up @@ -12167,7 +12211,7 @@ components:
type: apiKey
info:
title: Stream API
version: v200.1.0
version: v202.3.0
openapi: 3.0.3
paths:
/app:
Expand Down Expand Up @@ -13613,6 +13657,39 @@ paths:
summary: Deletes channels asynchronously
tags:
- product:chat
/channels/delivered:
post:
description: |
Mark the status of a channel message delivered.
operationId: MarkDelivered
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/MarkDeliveredRequest'
required: true
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/MarkDeliveredResponse'
description: Response
"400":
content:
application/json:
schema:
$ref: '#/components/schemas/APIError'
description: Bad request
"429":
content:
application/json:
schema:
$ref: '#/components/schemas/APIError'
description: Too many requests
summary: Mark channel message delivery status
tags:
- product:chat
/channels/read:
post:
description: |
Expand Down
2 changes: 1 addition & 1 deletion openapi/chat-openapi.json

Large diffs are not rendered by default.

Loading