Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update video openapi Spec #582

Closed
wants to merge 1 commit into from
Closed
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

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.1.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.1.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.

9 changes: 7 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 @@ -12076,6 +12076,10 @@ components:
info:
$ref: '#/components/schemas/UserInfoResponse'
x-stream-index: "001"
min_event_ts:
format: int32
type: integer
x-stream-index: "004"
rating:
format: int32
type: integer
Expand All @@ -12088,6 +12092,7 @@ components:
required:
- info
- session_stats
- min_event_ts
type: object
UserUnbannedEvent:
properties:
Expand Down Expand Up @@ -12607,7 +12612,7 @@ components:
type: apiKey
info:
title: Stream API
version: v113.1.0
version: v114.1.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.

127 changes: 126 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 @@ -12736,6 +12823,10 @@ components:
info:
$ref: '#/components/schemas/UserInfoResponse'
x-stream-index: "001"
min_event_ts:
format: int32
type: integer
x-stream-index: "004"
rating:
format: int32
type: integer
Expand All @@ -12748,6 +12839,7 @@ components:
required:
- info
- session_stats
- min_event_ts
type: object
VideoQuality:
properties:
Expand Down Expand Up @@ -13058,7 +13150,7 @@ components:
type: apiKey
info:
title: Stream API
version: v113.1.0
version: v114.1.0
openapi: 3.0.3
paths:
/api/v2/app:
Expand Down Expand Up @@ -15620,6 +15712,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.

Loading
Loading