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 #433

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
2 changes: 1 addition & 1 deletion openapi/chat-openapi-clientside.json

Large diffs are not rendered by default.

61 changes: 59 additions & 2 deletions openapi/chat-openapi-clientside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3721,6 +3721,10 @@ components:
title: Mentioned Users
type: array
x-stream-index: "040"
message_text_updated_at:
format: date-time
type: string
x-stream-index: "049"
mml:
description: Should be empty if `text` is provided. Can only be set when
using server-side API
Expand Down Expand Up @@ -3902,6 +3906,46 @@ components:
required:
- form_data
type: object
MessageChangeSet:
properties:
attachments:
type: boolean
x-stream-index: "005"
custom:
type: boolean
x-stream-index: "001"
html:
type: boolean
x-stream-index: "004"
mentioned_user_i_ds:
type: boolean
x-stream-index: "006"
mml:
type: boolean
x-stream-index: "003"
pin:
type: boolean
x-stream-index: "009"
quoted_message_id:
type: boolean
x-stream-index: "007"
silent:
type: boolean
x-stream-index: "008"
text:
type: boolean
x-stream-index: "002"
required:
- custom
- text
- mml
- html
- attachments
- mentioned_user_i_ds
- quoted_message_id
- silent
- pin
type: object
MessageDeletedEvent:
properties:
channel_id:
Expand Down Expand Up @@ -4078,7 +4122,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 @@ -4260,6 +4304,15 @@ components:
required:
- duration
type: object
MessageUpdate:
properties:
change_set:
$ref: '#/components/schemas/MessageChangeSet'
x-stream-index: "002"
old_text:
type: string
x-stream-index: "001"
type: object
MessageUpdatedEvent:
properties:
channel_id:
Expand Down Expand Up @@ -6212,6 +6265,10 @@ components:
$ref: '#/components/schemas/UserObject'
type: array
x-stream-index: "001.040"
message_text_updated_at:
format: date-time
type: string
x-stream-index: "001.049"
mml:
type: string
x-stream-index: "001.005"
Expand Down Expand Up @@ -8508,7 +8565,7 @@ components:
type: apiKey
info:
title: Stream API
version: v98.1.1
version: v98.1.1-advanced-filters.1
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.

138 changes: 119 additions & 19 deletions openapi/chat-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2386,6 +2386,9 @@ components:
description: Block list contains restricted words
nullable: true
properties:
custom_validation:
type: boolean
x-stream-index: "004"
name:
description: Block list name
maxLength: 255
Expand All @@ -2397,8 +2400,8 @@ components:
enum:
- regex
- regular
- domains
- emails
- domain
- email
title: Type
type: string
x-stream-index: "003"
Expand Down Expand Up @@ -5039,6 +5042,10 @@ components:
title: Mentioned Users
type: array
x-stream-index: "040"
message_text_updated_at:
format: date-time
type: string
x-stream-index: "049"
mml:
description: Should be empty if `text` is provided. Can only be set when
using server-side API
Expand Down Expand Up @@ -5220,6 +5227,46 @@ components:
required:
- form_data
type: object
MessageChangeSet:
properties:
attachments:
type: boolean
x-stream-index: "005"
custom:
type: boolean
x-stream-index: "001"
html:
type: boolean
x-stream-index: "004"
mentioned_user_i_ds:
type: boolean
x-stream-index: "006"
mml:
type: boolean
x-stream-index: "003"
pin:
type: boolean
x-stream-index: "009"
quoted_message_id:
type: boolean
x-stream-index: "007"
silent:
type: boolean
x-stream-index: "008"
text:
type: boolean
x-stream-index: "002"
required:
- custom
- text
- mml
- html
- attachments
- mentioned_user_i_ds
- quoted_message_id
- silent
- pin
type: object
MessageFlag:
nullable: true
properties:
Expand Down Expand Up @@ -5492,6 +5539,15 @@ components:
required:
- duration
type: object
MessageUpdate:
properties:
change_set:
$ref: '#/components/schemas/MessageChangeSet'
x-stream-index: "002"
old_text:
type: string
x-stream-index: "001"
type: object
MessageWithPendingMetadataResponse:
nullable: true
properties:
Expand Down Expand Up @@ -7265,6 +7321,10 @@ components:
$ref: '#/components/schemas/UserObject'
type: array
x-stream-index: "001.040"
message_text_updated_at:
format: date-time
type: string
x-stream-index: "001.049"
mml:
type: string
x-stream-index: "001.005"
Expand Down Expand Up @@ -8439,6 +8499,9 @@ components:
type: string
writeOnly: true
x-stream-index: "001"
custom_validation:
type: boolean
x-stream-index: "003"
words:
items:
type: string
Expand Down Expand Up @@ -9487,16 +9550,16 @@ components:
Custom:
type: object
writeOnly: true
x-stream-index: "021"
x-stream-index: "022"
automoderation:
type: boolean
x-stream-index: "017"
x-stream-index: "018"
automoderation_scores:
$ref: '#/components/schemas/ModerationResponse'
x-stream-index: "018"
x-stream-index: "019"
channel:
$ref: '#/components/schemas/ChannelResponse'
x-stream-index: "008"
x-stream-index: "009"
channel_id:
type: string
x-stream-index: "004"
Expand All @@ -9512,47 +9575,50 @@ components:
created_at:
format: date-time
type: string
x-stream-index: "022"
x-stream-index: "023"
created_by:
$ref: '#/components/schemas/UserObject'
x-stream-index: "016"
x-stream-index: "017"
me:
$ref: '#/components/schemas/OwnUser'
x-stream-index: "013"
x-stream-index: "014"
member:
$ref: '#/components/schemas/ChannelMember'
x-stream-index: "010"
x-stream-index: "011"
message:
$ref: '#/components/schemas/Message'
x-stream-index: "006"
message_update:
$ref: '#/components/schemas/MessageUpdate'
x-stream-index: "007"
parent_id:
type: string
x-stream-index: "019"
x-stream-index: "020"
reaction:
$ref: '#/components/schemas/Reaction'
x-stream-index: "007"
x-stream-index: "008"
reason:
type: string
x-stream-index: "015"
x-stream-index: "016"
team:
type: string
x-stream-index: "020"
x-stream-index: "021"
thread:
$ref: '#/components/schemas/Thread'
x-stream-index: "009"
x-stream-index: "010"
type:
type: string
x-stream-index: "001"
user:
$ref: '#/components/schemas/UserObject'
x-stream-index: "011"
x-stream-index: "012"
user_id:
type: string
x-stream-index: "012"
x-stream-index: "013"
watcher_count:
format: int32
type: integer
x-stream-index: "014"
x-stream-index: "015"
required:
- type
- Custom
Expand Down Expand Up @@ -9631,7 +9697,7 @@ components:
type: apiKey
info:
title: Stream API
version: v98.1.1
version: v98.1.1-advanced-filters.1
openapi: 3.0.3
paths:
/app:
Expand Down Expand Up @@ -9871,6 +9937,40 @@ paths:
tags:
- Settings
- Moderation
/blocklists/validate:
post:
description: |
Runs specific blocklist validation, returns an appropriate error if the blocklist is invalid
operationId: ValidateBlockList
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateBlockListRequest'
description: Block list
required: true
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/Response'
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: Validate Blocklist
tags:
- Moderation
/calls:
post:
description: |
Expand Down
2 changes: 1 addition & 1 deletion openapi/clientside-api.json

Large diffs are not rendered by default.

Loading
Loading