Skip to content

Commit

Permalink
Update video openapi Spec (#535)
Browse files Browse the repository at this point in the history
Co-authored-by: GH Action CI Stream <[email protected]>
  • Loading branch information
stream-ci-bot and stream-ci-zz authored Apr 24, 2024
1 parent 568ea59 commit 2d32cad
Show file tree
Hide file tree
Showing 12 changed files with 721 additions and 89 deletions.
2 changes: 1 addition & 1 deletion openapi/chat-openapi-clientside.json

Large diffs are not rendered by default.

99 changes: 96 additions & 3 deletions openapi/chat-openapi-clientside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3971,7 +3971,6 @@ components:
- mentioned_users
- silent
- pinned
- poll_id
title: Message
type: object
x-stream-docs-page-id: send_message
Expand Down Expand Up @@ -6380,6 +6379,58 @@ components:
- polls
- duration
type: object
QueryReactionsRequest:
properties:
MessageID:
type: string
writeOnly: true
x-stream-index: "001"
filter:
type: object
x-stream-index: "002"
limit:
format: int32
maximum: 25
minimum: 0
type: integer
x-stream-index: "006.001"
next:
type: string
x-stream-index: "006.002"
prev:
type: string
x-stream-index: "006.003"
sort:
items:
$ref: '#/components/schemas/SortParamRequest'
maximum: 2
type: array
x-stream-index: "003"
required:
- MessageID
type: object
QueryReactionsResponse:
properties:
duration:
description: Duration of the request in human-readable format
title: Duration
type: string
x-stream-index: "002.001"
next:
type: string
x-stream-index: "003.001"
prev:
type: string
x-stream-index: "003.002"
reactions:
items:
$ref: '#/components/schemas/ReactionResponse'
type: array
x-stream-index: "001"
required:
- reactions
- duration
type: object
QueryThreadsRequest:
nullable: true
properties:
Expand Down Expand Up @@ -7103,7 +7154,6 @@ components:
- mentioned_users
- silent
- pinned
- poll_id
type: object
SearchWarning:
properties:
Expand Down Expand Up @@ -9414,7 +9464,7 @@ components:
type: apiKey
info:
title: Stream API
version: v108.2.1
version: v108.6.0
openapi: 3.0.3
paths:
/app:
Expand Down Expand Up @@ -11389,6 +11439,49 @@ paths:
tags:
- Messages
- Reactions
post:
description: |
Get reactions on a message
Required permissions:
- ReadChannel
operationId: QueryReactions
parameters:
- in: path
name: id
required: true
schema:
type: string
writeOnly: true
x-stream-index: "001"
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/QueryReactionsRequest'
required: true
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/QueryReactionsResponse'
description: Successful 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
tags:
- Messages
- Reactions
/messages/{id}/translate:
post:
description: |
Expand Down
2 changes: 1 addition & 1 deletion openapi/chat-openapi.json

Large diffs are not rendered by default.

105 changes: 102 additions & 3 deletions openapi/chat-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5380,7 +5380,6 @@ components:
- mentioned_users
- silent
- pinned
- poll_id
title: Message
type: object
x-stream-docs-page-id: send_message
Expand Down Expand Up @@ -7387,6 +7386,64 @@ components:
- polls
- duration
type: object
QueryReactionsRequest:
properties:
MessageID:
type: string
writeOnly: true
x-stream-index: "001"
filter:
type: object
x-stream-index: "002"
limit:
format: int32
maximum: 25
minimum: 0
type: integer
x-stream-index: "006.001"
next:
type: string
x-stream-index: "006.002"
prev:
type: string
x-stream-index: "006.003"
sort:
items:
$ref: '#/components/schemas/SortParamRequest'
maximum: 2
type: array
x-stream-index: "003"
user:
$ref: '#/components/schemas/UserRequest'
x-stream-index: "004.002"
user_id:
type: string
x-stream-index: "004.001"
required:
- MessageID
type: object
QueryReactionsResponse:
properties:
duration:
description: Duration of the request in human-readable format
title: Duration
type: string
x-stream-index: "002.001"
next:
type: string
x-stream-index: "003.001"
prev:
type: string
x-stream-index: "003.002"
reactions:
items:
$ref: '#/components/schemas/ReactionResponse'
type: array
x-stream-index: "001"
required:
- reactions
- duration
type: object
QueryThreadsRequest:
nullable: true
properties:
Expand Down Expand Up @@ -8104,7 +8161,6 @@ components:
- mentioned_users
- silent
- pinned
- poll_id
type: object
SearchWarning:
properties:
Expand Down Expand Up @@ -10641,7 +10697,7 @@ components:
type: apiKey
info:
title: Stream API
version: v108.2.1
version: v108.6.0
openapi: 3.0.3
paths:
/app:
Expand Down Expand Up @@ -13498,6 +13554,49 @@ paths:
tags:
- Messages
- Reactions
post:
description: |
Get reactions on a message
Required permissions:
- ReadChannel
operationId: QueryReactions
parameters:
- in: path
name: id
required: true
schema:
type: string
writeOnly: true
x-stream-index: "001"
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/QueryReactionsRequest'
required: true
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/QueryReactionsResponse'
description: Successful 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
tags:
- Messages
- Reactions
/messages/{id}/translate:
post:
description: |
Expand Down
2 changes: 1 addition & 1 deletion openapi/clientside-api.json

Large diffs are not rendered by default.

Loading

0 comments on commit 2d32cad

Please sign in to comment.