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 Jun 9, 2024
1 parent 8277f0e commit 9b3eb15
Show file tree
Hide file tree
Showing 14 changed files with 192 additions and 159 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.

64 changes: 22 additions & 42 deletions openapi/chat-openapi-clientside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ components:
BlockUsersResponse:
nullable: true
properties:
blocked_users:
blocks:
items:
$ref: '#/components/schemas/UserBlock'
type: array
Expand All @@ -379,7 +379,7 @@ components:
x-stream-index: "001.001"
required:
- duration
- blocked_users
- blocks
type: object
BlockedUserResponse:
nullable: true
Expand Down Expand Up @@ -2296,6 +2296,11 @@ components:
banned:
type: boolean
x-stream-index: "001.011"
blocked_user_ids:
items:
type: string
type: array
x-stream-index: "013"
channel_mutes:
items:
$ref: '#/components/schemas/ChannelMute'
Expand Down Expand Up @@ -2409,6 +2414,7 @@ components:
- unread_channels
- unread_threads
- shadow_banned
- blocked_user_ids
type: object
GetApplicationResponse:
nullable: true
Expand Down Expand Up @@ -3591,7 +3597,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 @@ -8022,35 +8028,20 @@ components:
UserBlock:
nullable: true
properties:
AppPK:
format: int32
type: integer
writeOnly: true
x-stream-index: "003"
BlockedByUser:
$ref: '#/components/schemas/UserObject'
x-stream-index: "004"
BlockedByUserID:
blocked_by_user_id:
type: string
writeOnly: true
x-stream-index: "005"
BlockedUser:
$ref: '#/components/schemas/UserObject'
x-stream-index: "006"
BlockedUserID:
blocked_user_id:
type: string
writeOnly: true
x-stream-index: "007"
CreatedAt:
created_at:
format: date-time
type: string
writeOnly: true
x-stream-index: "008"
required:
- AppPK
- BlockedByUserID
- BlockedUserID
- CreatedAt
- blocked_by_user_id
- blocked_user_id
- created_at
type: object
UserDeactivatedEvent:
properties:
Expand Down Expand Up @@ -8361,6 +8352,11 @@ components:
banned:
type: boolean
x-stream-index: "001.011"
blocked_user_ids:
items:
type: string
type: array
x-stream-index: "001.016"
created_at:
description: Date/time of creation
format: date-time
Expand Down Expand Up @@ -8428,6 +8424,7 @@ components:
- updated_at
- banned
- online
- blocked_user_ids
- shadow_banned
- devices
- invisible
Expand Down Expand Up @@ -8785,7 +8782,7 @@ components:
type: apiKey
info:
title: Stream API
version: v116.0.2
version: v117.0.0
openapi: 3.0.3
paths:
/app:
Expand Down Expand Up @@ -10106,14 +10103,6 @@ paths:
type: string
writeOnly: true
x-stream-index: "001"
- in: query
name: user_id
schema:
description: '**Server-side only**. User ID which server acts upon'
title: User ID
type: string
writeOnly: true
x-stream-index: "002.001"
responses:
"200":
content:
Expand All @@ -10140,15 +10129,6 @@ paths:
description: |
Returns all available devices
operationId: ListDevices
parameters:
- in: query
name: user_id
schema:
description: '**Server-side only**. User ID which server acts upon'
title: User ID
type: string
writeOnly: true
x-stream-index: "001.001"
responses:
"200":
content:
Expand Down
2 changes: 1 addition & 1 deletion openapi/chat-openapi.json

Large diffs are not rendered by default.

72 changes: 48 additions & 24 deletions openapi/chat-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ components:
BlockUsersResponse:
nullable: true
properties:
blocked_users:
blocks:
items:
$ref: '#/components/schemas/UserBlock'
type: array
Expand All @@ -717,7 +717,7 @@ components:
x-stream-index: "001.001"
required:
- duration
- blocked_users
- blocks
type: object
BlockedUserResponse:
nullable: true
Expand Down Expand Up @@ -1926,8 +1926,12 @@ components:
title: Duration
type: string
x-stream-index: "001.001"
file_url:
type: string
x-stream-index: "002"
required:
- duration
- file_url
type: object
CheckPushRequest:
nullable: true
Expand Down Expand Up @@ -2676,6 +2680,10 @@ components:
type: string
x-stream-index: "003.003"
storage_type:
enum:
- s3
- gcs
- abs
type: string
x-stream-index: "003.001"
required:
Expand Down Expand Up @@ -3432,6 +3440,10 @@ components:
type: string
x-stream-index: "004"
type:
enum:
- s3
- gcs
- abs
type: string
x-stream-index: "002"
required:
Expand Down Expand Up @@ -3753,6 +3765,11 @@ components:
banned:
type: boolean
x-stream-index: "001.011"
blocked_user_ids:
items:
type: string
type: array
x-stream-index: "013"
channel_mutes:
items:
$ref: '#/components/schemas/ChannelMute'
Expand Down Expand Up @@ -3866,6 +3883,7 @@ components:
- unread_channels
- unread_threads
- shadow_banned
- blocked_user_ids
type: object
GeofenceResponse:
nullable: true
Expand Down Expand Up @@ -9945,6 +9963,10 @@ components:
type: string
x-stream-index: "003.003"
storage_type:
enum:
- s3
- gcs
- abs
type: string
x-stream-index: "003.001"
required:
Expand All @@ -9969,6 +9991,10 @@ components:
type: string
x-stream-index: "001.004"
type:
enum:
- s3
- gcs
- abs
type: string
x-stream-index: "001.002"
required:
Expand Down Expand Up @@ -10296,35 +10322,20 @@ components:
UserBlock:
nullable: true
properties:
AppPK:
format: int32
type: integer
writeOnly: true
x-stream-index: "003"
BlockedByUser:
$ref: '#/components/schemas/UserObject'
x-stream-index: "004"
BlockedByUserID:
blocked_by_user_id:
type: string
writeOnly: true
x-stream-index: "005"
BlockedUser:
$ref: '#/components/schemas/UserObject'
x-stream-index: "006"
BlockedUserID:
blocked_user_id:
type: string
writeOnly: true
x-stream-index: "007"
CreatedAt:
created_at:
format: date-time
type: string
writeOnly: true
x-stream-index: "008"
required:
- AppPK
- BlockedByUserID
- BlockedUserID
- CreatedAt
- blocked_by_user_id
- blocked_user_id
- created_at
type: object
UserCustomEventRequest:
properties:
Expand Down Expand Up @@ -10528,6 +10539,11 @@ components:
banned:
type: boolean
x-stream-index: "001.011"
blocked_user_ids:
items:
type: string
type: array
x-stream-index: "001.016"
created_at:
description: Date/time of creation
format: date-time
Expand Down Expand Up @@ -10609,6 +10625,7 @@ components:
- updated_at
- banned
- online
- blocked_user_ids
- shadow_banned
- devices
- invisible
Expand Down Expand Up @@ -10849,7 +10866,7 @@ components:
type: apiKey
info:
title: Stream API
version: v116.0.2
version: v117.0.0
openapi: 3.0.3
paths:
/app:
Expand Down Expand Up @@ -15968,6 +15985,13 @@ paths:
description: |
Get list of blocked Users
operationId: GetBlockedUsers
parameters:
- in: query
name: user_id
schema:
type: string
writeOnly: true
x-stream-index: "002.001"
responses:
"200":
content:
Expand Down
2 changes: 1 addition & 1 deletion openapi/clientside-api.json

Large diffs are not rendered by default.

Loading

0 comments on commit 9b3eb15

Please sign in to comment.