Skip to content

Commit

Permalink
Update video openapi Spec
Browse files Browse the repository at this point in the history
  • Loading branch information
stream-ci-zz committed May 17, 2024
1 parent 0cd1033 commit 93276b3
Show file tree
Hide file tree
Showing 14 changed files with 256 additions and 16 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docusaurus/video/docusaurus/docs/api/video-openapi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion openapi/chat-openapi-clientside.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions openapi/chat-openapi-clientside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3503,7 +3503,7 @@ components:
type: array
x-stream-index: "001.002"
type:
default: message.new
default: notification.thread_message_new
type: string
x-stream-index: "004.001"
user:
Expand Down Expand Up @@ -8647,7 +8647,7 @@ components:
type: apiKey
info:
title: Stream API
version: v113.1.0
version: v114.0.0
openapi: 3.0.3
paths:
/app:
Expand Down
2 changes: 1 addition & 1 deletion openapi/chat-openapi.json

Large diffs are not rendered by default.

122 changes: 121 additions & 1 deletion openapi/chat-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5270,6 +5270,40 @@ components:
- created_at
- updated_at
type: object
MessageHistoryEntry:
nullable: true
properties:
Custom:
additionalProperties: {}
type: object
writeOnly: true
x-stream-index: "008"
attachments:
items:
$ref: '#/components/schemas/Attachment'
type: array
x-stream-index: "007"
message_id:
type: string
x-stream-index: "003"
message_updated_at:
format: date-time
type: string
x-stream-index: "005"
message_updated_by_id:
type: string
x-stream-index: "004"
text:
type: string
x-stream-index: "006"
required:
- message_id
- message_updated_by_id
- message_updated_at
- text
- attachments
- Custom
type: object
MessageModerationResult:
properties:
action:
Expand Down Expand Up @@ -7188,6 +7222,59 @@ components:
- flags
- duration
type: object
QueryMessageHistoryRequest:
nullable: true
properties:
filter:
additionalProperties: {}
maximum: 3
minimum: 1
type: object
x-stream-index: "001"
limit:
format: int32
maximum: 25
minimum: 0
type: integer
x-stream-index: "004.001"
next:
type: string
x-stream-index: "004.002"
prev:
type: string
x-stream-index: "004.003"
sort:
items:
$ref: '#/components/schemas/SortParam'
maximum: 5
type: array
x-stream-index: "002"
required:
- filter
type: object
QueryMessageHistoryResponse:
nullable: true
properties:
duration:
description: Duration of the request in human-readable format
title: Duration
type: string
x-stream-index: "003.001"
message_history:
items:
$ref: '#/components/schemas/MessageHistoryEntry'
type: array
x-stream-index: "001"
next:
type: string
x-stream-index: "002.001"
prev:
type: string
x-stream-index: "002.002"
required:
- message_history
- duration
type: object
QueryPollVotesRequest:
nullable: true
properties:
Expand Down Expand Up @@ -10592,7 +10679,7 @@ components:
type: apiKey
info:
title: Stream API
version: v113.1.0
version: v114.0.0
openapi: 3.0.3
paths:
/app:
Expand Down Expand Up @@ -13855,6 +13942,39 @@ paths:
summary: Get replies
tags:
- product:chat
/messages/history:
post:
description: |
Queries history for one message
operationId: QueryMessageHistory
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/QueryMessageHistoryRequest'
required: true
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/QueryMessageHistoryResponse'
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
summary: Query message history
tags:
- product:chat
/moderation/ban:
delete:
description: |
Expand Down
2 changes: 1 addition & 1 deletion openapi/clientside-api.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions openapi/clientside-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5955,7 +5955,7 @@ components:
type: array
x-stream-index: "001.002"
type:
default: notification.thread_message_new
default: message.new
type: string
x-stream-index: "004.001"
user:
Expand Down Expand Up @@ -12607,7 +12607,7 @@ components:
type: apiKey
info:
title: Stream API
version: v113.1.0
version: v114.0.0
openapi: 3.0.3
paths:
/api/v2/app:
Expand Down
2 changes: 1 addition & 1 deletion openapi/serverside-api.json

Large diffs are not rendered by default.

122 changes: 121 additions & 1 deletion openapi/serverside-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6569,6 +6569,40 @@ components:
- created_at
- updated_at
type: object
MessageHistoryEntry:
nullable: true
properties:
Custom:
additionalProperties: {}
type: object
writeOnly: true
x-stream-index: "008"
attachments:
items:
$ref: '#/components/schemas/Attachment'
type: array
x-stream-index: "007"
message_id:
type: string
x-stream-index: "003"
message_updated_at:
format: date-time
type: number
x-stream-index: "005"
message_updated_by_id:
type: string
x-stream-index: "004"
text:
type: string
x-stream-index: "006"
required:
- message_id
- message_updated_by_id
- message_updated_at
- text
- attachments
- Custom
type: object
MessageModerationResult:
properties:
action:
Expand Down Expand Up @@ -8757,6 +8791,59 @@ components:
- flags
- duration
type: object
QueryMessageHistoryRequest:
nullable: true
properties:
filter:
additionalProperties: {}
maximum: 3
minimum: 1
type: object
x-stream-index: "001"
limit:
format: int32
maximum: 25
minimum: 0
type: integer
x-stream-index: "004.001"
next:
type: string
x-stream-index: "004.002"
prev:
type: string
x-stream-index: "004.003"
sort:
items:
$ref: '#/components/schemas/SortParam'
maximum: 5
type: array
x-stream-index: "002"
required:
- filter
type: object
QueryMessageHistoryResponse:
nullable: true
properties:
duration:
description: Duration of the request in human-readable format
title: Duration
type: string
x-stream-index: "003.001"
message_history:
items:
$ref: '#/components/schemas/MessageHistoryEntry'
type: array
x-stream-index: "001"
next:
type: string
x-stream-index: "002.001"
prev:
type: string
x-stream-index: "002.002"
required:
- message_history
- duration
type: object
QueryPollVotesRequest:
nullable: true
properties:
Expand Down Expand Up @@ -13058,7 +13145,7 @@ components:
type: apiKey
info:
title: Stream API
version: v113.1.0
version: v114.0.0
openapi: 3.0.3
paths:
/api/v2/app:
Expand Down Expand Up @@ -15620,6 +15707,39 @@ paths:
summary: Get replies
tags:
- product:chat
/api/v2/chat/messages/history:
post:
description: |
Queries history for one message
operationId: QueryMessageHistory
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/QueryMessageHistoryRequest'
required: true
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/QueryMessageHistoryResponse'
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
summary: Query message history
tags:
- product:chat
/api/v2/chat/moderation/flags/message:
get:
description: |
Expand Down
2 changes: 1 addition & 1 deletion openapi/video-openapi-clientside.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion openapi/video-openapi-clientside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5616,7 +5616,7 @@ components:
type: apiKey
info:
title: Stream API
version: v113.1.0
version: v114.0.0
openapi: 3.0.3
paths:
/video/call/{type}/{id}:
Expand Down
2 changes: 1 addition & 1 deletion openapi/video-openapi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion openapi/video-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3290,7 +3290,7 @@ components:
type: apiKey
info:
title: Stream API
version: v113.1.0
version: v114.0.0
openapi: 3.0.3
paths:
/video/call/{type}/{id}:
Expand Down

0 comments on commit 93276b3

Please sign in to comment.