Skip to content

Commit

Permalink
Update video openapi Spec (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoribc authored Aug 22, 2024
2 parents 8ed5d28 + 59bff7e commit 28f7d5a
Show file tree
Hide file tree
Showing 14 changed files with 379 additions and 350 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.

114 changes: 10 additions & 104 deletions openapi/chat-openapi-clientside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ components:
x-stream-index: "031"
moderation_enabled:
type: boolean
x-stream-index: "044"
x-stream-index: "043"
name:
type: string
x-stream-index: "001"
video_provider:
type: string
x-stream-index: "039"
x-stream-index: "038"
required:
- name
- organization
Expand Down Expand Up @@ -200,7 +200,6 @@ components:
- image_upload_config
- grants
- campaign_enabled
- polls_enabled
- webhook_events
- reminders_interval
- cdn_expiration_seconds
Expand Down Expand Up @@ -4343,7 +4342,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 @@ -5992,7 +5991,7 @@ components:
type: string
x-stream-index: 002.003.003
poll:
$ref: '#/components/schemas/PollPayloadData'
$ref: '#/components/schemas/PollResponseData'
x-stream-index: "001"
received_at:
format: date-time
Expand All @@ -6019,7 +6018,7 @@ components:
type: string
x-stream-index: 002.003.003
poll:
$ref: '#/components/schemas/PollPayloadData'
$ref: '#/components/schemas/PollResponseData'
x-stream-index: "001"
received_at:
format: date-time
Expand Down Expand Up @@ -6117,99 +6116,6 @@ components:
- text
- custom
type: object
PollPayloadData:
properties:
Custom:
additionalProperties: {}
type: object
writeOnly: true
x-stream-index: "019"
allow_answers:
type: boolean
x-stream-index: "008"
allow_user_suggested_options:
type: boolean
x-stream-index: "007"
answers_count:
format: int32
type: integer
x-stream-index: "012"
created_at:
format: date-time
type: string
x-stream-index: "017"
created_by:
$ref: '#/components/schemas/UserResponse'
x-stream-index: "016"
created_by_id:
type: string
x-stream-index: "015"
description:
type: string
x-stream-index: "003"
enforce_unique_vote:
type: boolean
x-stream-index: "005"
id:
type: string
x-stream-index: "001"
is_closed:
type: boolean
x-stream-index: "009"
latest_votes_by_option:
additionalProperties:
items:
$ref: '#/components/schemas/PollVoteResponseData'
type: array
type: object
x-stream-index: "014"
max_votes_allowed:
format: int32
type: integer
x-stream-index: "006"
name:
type: string
x-stream-index: "002"
options:
items:
$ref: '#/components/schemas/PollOptionResponseData'
type: array
x-stream-index: "011"
updated_at:
format: date-time
type: string
x-stream-index: "018"
vote_count:
format: int32
type: integer
x-stream-index: "010"
vote_counts_by_option:
additionalProperties:
format: int32
type: integer
type: object
x-stream-index: "013"
voting_visibility:
type: string
x-stream-index: "004"
required:
- id
- name
- description
- voting_visibility
- enforce_unique_vote
- allow_user_suggested_options
- allow_answers
- vote_count
- options
- answers_count
- vote_counts_by_option
- latest_votes_by_option
- created_by_id
- created_at
- updated_at
- Custom
type: object
PollResponse:
nullable: true
properties:
Expand Down Expand Up @@ -6337,7 +6243,7 @@ components:
type: string
x-stream-index: 002.003.003
poll:
$ref: '#/components/schemas/PollPayloadData'
$ref: '#/components/schemas/PollResponseData'
x-stream-index: "001"
received_at:
format: date-time
Expand Down Expand Up @@ -6403,7 +6309,7 @@ components:
type: string
x-stream-index: 003.003.003
poll:
$ref: '#/components/schemas/PollPayloadData'
$ref: '#/components/schemas/PollResponseData'
x-stream-index: "001"
poll_vote:
$ref: '#/components/schemas/PollVoteResponseData'
Expand Down Expand Up @@ -6434,7 +6340,7 @@ components:
type: string
x-stream-index: 003.003.003
poll:
$ref: '#/components/schemas/PollPayloadData'
$ref: '#/components/schemas/PollResponseData'
x-stream-index: "001"
poll_vote:
$ref: '#/components/schemas/PollVoteResponseData'
Expand Down Expand Up @@ -6465,7 +6371,7 @@ components:
type: string
x-stream-index: 003.003.003
poll:
$ref: '#/components/schemas/PollPayloadData'
$ref: '#/components/schemas/PollResponseData'
x-stream-index: "001"
poll_vote:
$ref: '#/components/schemas/PollVoteResponseData'
Expand Down Expand Up @@ -10480,7 +10386,7 @@ components:
type: apiKey
info:
title: Stream API
version: v129.0.0
version: v130.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.

32 changes: 10 additions & 22 deletions openapi/chat-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ components:
properties:
agora_options:
$ref: '#/components/schemas/Config'
x-stream-index: "040"
x-stream-index: "039"
allowed_flag_reasons:
items:
type: string
Expand All @@ -200,7 +200,7 @@ components:
cdn_expiration_seconds:
format: int32
type: integer
x-stream-index: "038"
x-stream-index: "037"
channel_configs:
additionalProperties:
$ref: '#/components/schemas/ChannelConfig'
Expand All @@ -211,7 +211,7 @@ components:
x-stream-index: "022"
datadog_info:
$ref: '#/components/schemas/DataDogInfo'
x-stream-index: "043"
x-stream-index: "042"
disable_auth_checks:
type: boolean
x-stream-index: "011"
Expand All @@ -228,7 +228,7 @@ components:
items:
$ref: '#/components/schemas/GeofenceResponse'
type: array
x-stream-index: "042"
x-stream-index: "041"
grants:
additionalProperties:
items:
Expand All @@ -238,7 +238,7 @@ components:
x-stream-index: "033"
hms_options:
$ref: '#/components/schemas/Config'
x-stream-index: "041"
x-stream-index: "040"
image_moderation_enabled:
type: boolean
x-stream-index: "016"
Expand All @@ -252,7 +252,7 @@ components:
x-stream-index: "031"
moderation_enabled:
type: boolean
x-stream-index: "044"
x-stream-index: "043"
moderation_webhook_url:
type: string
x-stream-index: "005"
Expand All @@ -275,16 +275,13 @@ components:
type: array
type: object
x-stream-index: "008"
polls_enabled:
type: boolean
x-stream-index: "035"
push_notifications:
$ref: '#/components/schemas/PushNotificationFields'
x-stream-index: "003"
reminders_interval:
format: int32
type: integer
x-stream-index: "037"
x-stream-index: "036"
revoke_tokens_issued_before:
format: date-time
type: string
Expand Down Expand Up @@ -320,12 +317,12 @@ components:
x-stream-index: "014"
video_provider:
type: string
x-stream-index: "039"
x-stream-index: "038"
webhook_events:
items:
type: string
type: array
x-stream-index: "036"
x-stream-index: "035"
webhook_url:
type: string
x-stream-index: "004"
Expand Down Expand Up @@ -360,7 +357,6 @@ components:
- image_upload_config
- grants
- campaign_enabled
- polls_enabled
- webhook_events
- reminders_interval
- cdn_expiration_seconds
Expand Down Expand Up @@ -8112,24 +8108,16 @@ components:
name:
type: string
x-stream-index: "001"
password:
type: string
x-stream-index: "005"
stream_key:
type: string
x-stream-index: "003"
stream_url:
type: string
x-stream-index: "002"
username:
type: string
x-stream-index: "004"
required:
- name
- stream_url
- stream_key
- username
- password
type: object
RTMPSettings:
properties:
Expand Down Expand Up @@ -11555,7 +11543,7 @@ components:
type: apiKey
info:
title: Stream API
version: v129.0.0
version: v130.1.0
openapi: 3.0.3
paths:
/app:
Expand Down
2 changes: 1 addition & 1 deletion openapi/clientside-api.json

Large diffs are not rendered by default.

Loading

0 comments on commit 28f7d5a

Please sign in to comment.