Skip to content

Commit

Permalink
Update video openapi Spec (#474)
Browse files Browse the repository at this point in the history
Co-authored-by: GH Action CI Stream <ci@stream.io>
  • Loading branch information
stream-ci-bot and stream-ci-zz committed Mar 14, 2024
1 parent 6b4ec4b commit a6dcf4b
Show file tree
Hide file tree
Showing 12 changed files with 235 additions and 43 deletions.
2 changes: 1 addition & 1 deletion openapi/chat-openapi-clientside.json

Large diffs are not rendered by default.

65 changes: 57 additions & 8 deletions openapi/chat-openapi-clientside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4255,6 +4255,50 @@ components:
required:
- duration
type: object
MessageUndeletedEvent:
properties:
channel_id:
type: string
x-stream-index: "005.002"
channel_type:
type: string
x-stream-index: "005.003"
cid:
type: string
x-stream-index: "005.001"
created_at:
format: date-time
type: string
x-stream-index: "004.002"
message:
$ref: '#/components/schemas/Message'
x-stream-index: "001.001"
team:
type: string
x-stream-index: "002.001"
thread_participants:
items:
$ref: '#/components/schemas/UserObject'
type: array
x-stream-index: "001.002"
type:
default: message.undeleted
type: string
x-stream-index: "004.001"
user:
$ref: '#/components/schemas/UserObject'
x-stream-index: "003.001"
required:
- type
- created_at
- cid
- channel_id
- channel_type
title: MessageUndeletedEvent
type: object
x-stream-event-client-type: true
x-stream-is-event: true
x-stream-ws-base-event-name: VideoEvent
MessageUpdate:
properties:
change_set:
Expand Down Expand Up @@ -5623,7 +5667,7 @@ components:
Body or URL parameter
title: Connection ID
type: string
x-stream-index: "006.003"
x-stream-index: "007.003"
filter_conditions:
description: User filters
title: Filter conditions
Expand All @@ -5632,27 +5676,30 @@ components:
x-stream-index: "001"
id_gt:
type: string
x-stream-index: "004.006"
x-stream-index: "005.006"
id_gte:
type: string
x-stream-index: "004.005"
x-stream-index: "005.005"
id_lt:
type: string
x-stream-index: "004.008"
x-stream-index: "005.008"
id_lte:
type: string
x-stream-index: "004.007"
x-stream-index: "005.007"
include_deactivated_users:
type: boolean
x-stream-index: "004"
limit:
format: int32
maximum: 100
minimum: 0
type: integer
x-stream-index: "004.003"
x-stream-index: "005.003"
offset:
format: int32
maximum: 1000
type: integer
x-stream-index: "004.004"
x-stream-index: "005.004"
presence:
description: Request user presence status
title: Presence
Expand Down Expand Up @@ -8259,6 +8306,7 @@ components:
message.deleted: '#/components/schemas/MessageDeletedEvent'
message.new: '#/components/schemas/MessageNewEvent'
message.read: '#/components/schemas/MessageReadEvent'
message.undeleted: '#/components/schemas/MessageUndeletedEvent'
message.updated: '#/components/schemas/MessageUpdatedEvent'
notification.added_to_channel: '#/components/schemas/NotificationAddedToChannelEvent'
notification.channel_deleted: '#/components/schemas/NotificationChannelDeletedEvent'
Expand Down Expand Up @@ -8309,6 +8357,7 @@ components:
- $ref: '#/components/schemas/MessageNewEvent'
- $ref: '#/components/schemas/MessageNewEvent'
- $ref: '#/components/schemas/MessageReadEvent'
- $ref: '#/components/schemas/MessageUndeletedEvent'
- $ref: '#/components/schemas/MessageUpdatedEvent'
- $ref: '#/components/schemas/NotificationAddedToChannelEvent'
- $ref: '#/components/schemas/NotificationChannelDeletedEvent'
Expand Down Expand Up @@ -8435,7 +8484,7 @@ components:
type: apiKey
info:
title: Stream API
version: v100.5.0
version: v100.6.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.

65 changes: 56 additions & 9 deletions openapi/chat-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6782,27 +6782,30 @@ components:
x-stream-index: "001"
id_gt:
type: string
x-stream-index: "004.006"
x-stream-index: "005.006"
id_gte:
type: string
x-stream-index: "004.005"
x-stream-index: "005.005"
id_lt:
type: string
x-stream-index: "004.008"
x-stream-index: "005.008"
id_lte:
type: string
x-stream-index: "004.007"
x-stream-index: "005.007"
include_deactivated_users:
type: boolean
x-stream-index: "004"
limit:
format: int32
maximum: 100
minimum: 0
type: integer
x-stream-index: "004.003"
x-stream-index: "005.003"
offset:
format: int32
maximum: 1000
type: integer
x-stream-index: "004.004"
x-stream-index: "005.004"
presence:
description: Request user presence status
title: Presence
Expand All @@ -6818,10 +6821,10 @@ components:
x-stream-index: "002"
user:
$ref: '#/components/schemas/UserRequest_1'
x-stream-index: "005.002"
x-stream-index: "006.002"
user_id:
type: string
x-stream-index: "005.001"
x-stream-index: "006.001"
required:
- filter_conditions
type: object
Expand Down Expand Up @@ -9791,7 +9794,7 @@ components:
type: apiKey
info:
title: Stream API
version: v100.5.0
version: v100.6.0
openapi: 3.0.3
paths:
/app:
Expand Down Expand Up @@ -12697,6 +12700,50 @@ paths:
summary: Translate message
tags:
- Messages
/messages/{id}/undelete:
post:
description: |
Undelete a message that was previously soft-deleted
Sends events:
- message.undeleted
operationId: UndeleteMessage
parameters:
- in: path
name: id
required: true
schema:
type: string
writeOnly: true
x-stream-index: "003.001"
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateMessageRequest'
required: true
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateMessageResponse'
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: Undelete message
tags:
- Messages
/messages/{parent_id}/replies:
get:
description: |
Expand Down
2 changes: 1 addition & 1 deletion openapi/clientside-api.json

Large diffs are not rendered by default.

67 changes: 58 additions & 9 deletions openapi/clientside-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6098,7 +6098,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 @@ -6280,6 +6280,50 @@ components:
required:
- duration
type: object
MessageUndeletedEvent:
properties:
channel_id:
type: string
x-stream-index: "005.002"
channel_type:
type: string
x-stream-index: "005.003"
cid:
type: string
x-stream-index: "005.001"
created_at:
format: date-time
type: string
x-stream-index: "004.002"
message:
$ref: '#/components/schemas/Message'
x-stream-index: "001.001"
team:
type: string
x-stream-index: "002.001"
thread_participants:
items:
$ref: '#/components/schemas/UserObject'
type: array
x-stream-index: "001.002"
type:
default: message.undeleted
type: string
x-stream-index: "004.001"
user:
$ref: '#/components/schemas/UserObject'
x-stream-index: "003.001"
required:
- type
- created_at
- cid
- channel_id
- channel_type
title: MessageUndeletedEvent
type: object
x-stream-event-client-type: true
x-stream-is-event: true
x-stream-ws-base-event-name: VideoEvent
MessageUpdate:
properties:
change_set:
Expand Down Expand Up @@ -7966,7 +8010,7 @@ components:
Body or URL parameter
title: Connection ID
type: string
x-stream-index: "006.003"
x-stream-index: "007.003"
filter_conditions:
description: User filters
title: Filter conditions
Expand All @@ -7975,27 +8019,30 @@ components:
x-stream-index: "001"
id_gt:
type: string
x-stream-index: "004.006"
x-stream-index: "005.006"
id_gte:
type: string
x-stream-index: "004.005"
x-stream-index: "005.005"
id_lt:
type: string
x-stream-index: "004.008"
x-stream-index: "005.008"
id_lte:
type: string
x-stream-index: "004.007"
x-stream-index: "005.007"
include_deactivated_users:
type: boolean
x-stream-index: "004"
limit:
format: int32
maximum: 100
minimum: 0
type: integer
x-stream-index: "004.003"
x-stream-index: "005.003"
offset:
format: int32
maximum: 1000
type: integer
x-stream-index: "004.004"
x-stream-index: "005.004"
presence:
description: Request user presence status
title: Presence
Expand Down Expand Up @@ -11190,6 +11237,7 @@ components:
message.deleted: '#/components/schemas/MessageDeletedEvent'
message.new: '#/components/schemas/MessageNewEvent'
message.read: '#/components/schemas/MessageReadEvent'
message.undeleted: '#/components/schemas/MessageUndeletedEvent'
message.updated: '#/components/schemas/MessageUpdatedEvent'
notification.added_to_channel: '#/components/schemas/NotificationAddedToChannelEvent'
notification.channel_deleted: '#/components/schemas/NotificationChannelDeletedEvent'
Expand Down Expand Up @@ -11274,6 +11322,7 @@ components:
- $ref: '#/components/schemas/MessageNewEvent'
- $ref: '#/components/schemas/MessageNewEvent'
- $ref: '#/components/schemas/MessageReadEvent'
- $ref: '#/components/schemas/MessageUndeletedEvent'
- $ref: '#/components/schemas/MessageUpdatedEvent'
- $ref: '#/components/schemas/NotificationAddedToChannelEvent'
- $ref: '#/components/schemas/NotificationChannelDeletedEvent'
Expand Down Expand Up @@ -11403,7 +11452,7 @@ components:
type: apiKey
info:
title: Stream API
version: v100.5.0
version: v100.6.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.

Loading

0 comments on commit a6dcf4b

Please sign in to comment.