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 Apr 17, 2024
1 parent 6c6c552 commit 6927d5b
Show file tree
Hide file tree
Showing 12 changed files with 207 additions and 703 deletions.
2 changes: 1 addition & 1 deletion openapi/chat-openapi-clientside.json

Large diffs are not rendered by default.

190 changes: 28 additions & 162 deletions openapi/chat-openapi-clientside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ components:
Custom:
type: object
writeOnly: true
x-stream-index: "020"
x-stream-index: "018"
actions:
items:
$ref: '#/components/schemas/Action'
Expand Down Expand Up @@ -405,27 +405,21 @@ components:
x-stream-index: "014"
giphy:
$ref: '#/components/schemas/Images'
x-stream-index: "021"
x-stream-index: "019"
image_url:
type: string
x-stream-index: "011"
og_scrape_url:
type: string
x-stream-index: "022"
x-stream-index: "020"
original_height:
format: int32
type: integer
x-stream-index: "024"
x-stream-index: "022"
original_width:
format: int32
type: integer
x-stream-index: "023"
poll:
$ref: '#/components/schemas/Poll'
x-stream-index: "019"
poll_id:
type: string
x-stream-index: "018"
x-stream-index: "021"
pretext:
type: string
x-stream-index: "004"
Expand Down Expand Up @@ -457,7 +451,7 @@ components:
Custom:
type: object
writeOnly: true
x-stream-index: "020"
x-stream-index: "018"
actions:
items:
$ref: '#/components/schemas/ActionRequest'
Expand Down Expand Up @@ -494,27 +488,21 @@ components:
x-stream-index: "014"
giphy:
$ref: '#/components/schemas/ImagesRequest'
x-stream-index: "021"
x-stream-index: "019"
image_url:
type: string
x-stream-index: "011"
og_scrape_url:
type: string
x-stream-index: "022"
x-stream-index: "020"
original_height:
format: int32
type: integer
x-stream-index: "024"
x-stream-index: "022"
original_width:
format: int32
type: integer
x-stream-index: "023"
poll:
$ref: '#/components/schemas/PollRequest'
x-stream-index: "019"
poll_id:
type: string
x-stream-index: "018"
x-stream-index: "021"
pretext:
type: string
x-stream-index: "004"
Expand Down Expand Up @@ -2391,7 +2379,7 @@ components:
x-stream-index: "002"
options:
items:
$ref: '#/components/schemas/PollOptionRequest_1'
$ref: '#/components/schemas/PollOptionRequest'
maximum: 100
type: array
x-stream-index: "004"
Expand Down Expand Up @@ -2976,7 +2964,7 @@ components:
Custom:
type: object
writeOnly: true
x-stream-index: "001.020"
x-stream-index: "001.018"
actions:
items:
$ref: '#/components/schemas/Action'
Expand Down Expand Up @@ -3022,7 +3010,7 @@ components:
x-stream-index: "001.014"
giphy:
$ref: '#/components/schemas/Images'
x-stream-index: "001.021"
x-stream-index: "001.019"
image_url:
description: URL of detected image
title: Image URL
Expand All @@ -3032,21 +3020,15 @@ components:
description: extracted url from the text
title: OG Scrape URL
type: string
x-stream-index: "001.022"
x-stream-index: "001.020"
original_height:
format: int32
type: integer
x-stream-index: "001.024"
x-stream-index: "001.022"
original_width:
format: int32
type: integer
x-stream-index: "001.023"
poll:
$ref: '#/components/schemas/Poll'
x-stream-index: "001.019"
poll_id:
type: string
x-stream-index: "001.018"
x-stream-index: "001.021"
pretext:
type: string
x-stream-index: "001.004"
Expand Down Expand Up @@ -4653,7 +4635,6 @@ components:
enum:
- available
- disabled
- auto-on
type: string
x-stream-index: "001"
required:
Expand Down Expand Up @@ -5560,25 +5541,25 @@ components:
custom:
type: object
x-stream-index: "003"
id:
maxLength: 255
type: string
x-stream-index: "001"
text:
type: string
x-stream-index: "002"
required:
- id
type: object
PollOptionRequest_1:
nullable: true
properties:
custom:
type: object
x-stream-index: "003"
id:
maxLength: 255
type: string
x-stream-index: "001"
text:
type: string
x-stream-index: "002"
required:
- id
type: object
PollOptionResponse:
nullable: true
Expand Down Expand Up @@ -5612,91 +5593,6 @@ components:
- text
- custom
type: object
PollRequest:
properties:
Custom:
type: object
writeOnly: true
x-stream-index: "023"
allow_answers:
type: boolean
x-stream-index: "010"
allow_user_suggested_options:
type: boolean
x-stream-index: "009"
answers_count:
format: int32
type: integer
x-stream-index: "015"
created_at:
format: date-time
type: string
x-stream-index: "021"
created_by:
$ref: '#/components/schemas/UserObjectRequest'
x-stream-index: "020"
created_by_id:
type: string
x-stream-index: "019"
description:
type: string
x-stream-index: "005"
enforce_unique_vote:
type: boolean
x-stream-index: "007"
id:
type: string
x-stream-index: "003"
is_closed:
type: boolean
x-stream-index: "011"
latest_answers:
items:
$ref: '#/components/schemas/PollVoteRequest'
type: array
x-stream-index: "017"
latest_votes_by_option:
additionalProperties:
items:
$ref: '#/components/schemas/PollVoteRequest'
type: array
type: object
x-stream-index: "016"
max_votes_allowed:
format: int32
type: integer
x-stream-index: "008"
name:
type: string
x-stream-index: "004"
options:
items:
$ref: '#/components/schemas/PollOptionRequest'
type: array
x-stream-index: "013"
own_votes:
items:
$ref: '#/components/schemas/PollVoteRequest'
type: array
x-stream-index: "018"
updated_at:
format: date-time
type: string
x-stream-index: "022"
vote_count:
format: int32
type: integer
x-stream-index: "012"
vote_counts_by_option:
additionalProperties:
format: int32
type: integer
type: object
x-stream-index: "014"
voting_visibility:
type: string
x-stream-index: "006"
type: object
PollResponse:
nullable: true
properties:
Expand Down Expand Up @@ -5933,39 +5829,6 @@ components:
x-stream-event-client-type: true
x-stream-is-event: true
x-stream-ws-base-event-name: VideoEvent
PollVoteRequest:
nullable: true
properties:
answer_text:
type: string
x-stream-index: "007"
created_at:
format: date-time
type: string
x-stream-index: "010"
id:
type: string
x-stream-index: "004"
is_answer:
type: boolean
x-stream-index: "006"
option_id:
type: string
x-stream-index: "005"
poll_id:
type: string
x-stream-index: "003"
updated_at:
format: date-time
type: string
x-stream-index: "011"
user:
$ref: '#/components/schemas/UserObjectRequest'
x-stream-index: "009"
user_id:
type: string
x-stream-index: "008"
type: object
PollVoteResponse:
nullable: true
properties:
Expand Down Expand Up @@ -6974,6 +6837,9 @@ components:
enabled:
type: boolean
x-stream-index: "001"
target_resolution:
$ref: '#/components/schemas/TargetResolution'
x-stream-index: "003"
required:
- enabled
- access_request_enabled
Expand Down Expand Up @@ -8550,7 +8416,7 @@ components:
x-stream-index: "002"
options:
items:
$ref: '#/components/schemas/PollOptionRequest'
$ref: '#/components/schemas/PollOptionRequest_1'
maximum: 100
type: array
x-stream-index: "004"
Expand Down Expand Up @@ -9323,7 +9189,7 @@ components:
VoteDataRequest:
properties:
Option:
$ref: '#/components/schemas/PollOptionRequest'
$ref: '#/components/schemas/PollOptionRequest_1'
x-stream-index: "003"
answer_text:
type: string
Expand Down Expand Up @@ -9547,7 +9413,7 @@ components:
type: apiKey
info:
title: Stream API
version: v106.0.1
version: v107.0.3
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.

Loading

0 comments on commit 6927d5b

Please sign in to comment.