Skip to content

feat : add chat channel endpoints #256

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

Closed
wants to merge 2 commits into from
Closed
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
305 changes: 305 additions & 0 deletions static/api/v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2711,6 +2711,281 @@ paths:
in: query
name: filters
description: Comma separated list of filters to apply. Note that there must be no spaces between the filters.
/chat/channels:
post:
summary: Create chat channels in bulk
tags:
- Chat
responses:
'201':
description: Success Response
content:
application/json:
schema:
type: object
x-examples: null
properties:
success:
type: boolean
data:
type: object
properties:
chat_channels:
type: array
items:
type: object
properties:
id:
type: string
display_name:
type: string
target_user_ids:
type: array
items:
type: string
visibility:
type: string
is_direct_message:
type: boolean
failed_inserts:
type: array
items:
type: object
properties:
display_name:
type: string
target_user_ids:
type: array
items:
type: string
visibility:
type: string
is_direct_message:
type: boolean
operationId: BulkCreateChatChannels
x-stoplight:
id: gs5a19s8n23ne
requestBody:
description: Create chat channels body
content:
application/json:
schema:
type: object
x-examples: null
required:
- meeting_id
- channels_info
properties:
meeting_id:
type: string
format: uuid
channels_info:
x-stoplight:
id: 46uvual2wkgj4
type: array
items:
$ref: '#/components/schemas/CreateChatChannelInfo'
description: |-
Create chat channels within a given meeting ID.
<!-- theme: warning -->
> #### NOTE
>
> This API is in beta. [Contact us](https://dyte.io/contact) if you face
> any issues.
parameters: []
'/chat/channels/{chat_channel_id}':
parameters:
- schema:
type: string
name: chat_channel_id
in: path
required: true
- schema:
type: string
name: chat_channel_id
in: path
required: true
put:
summary: Update chat channel
tags:
- Chat
responses:
'201':
description: ''
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
type: object
properties:
id:
type: string
display_name:
type: string
target_user_ids:
type: array
items:
type: string
visibility:
type: string
is_direct_message:
type: boolean
x-examples: null
operationId: UpdateChatChannel
x-stoplight:
id: arpbzp237fce1
description: |-
Update a chat channel's details for a given chat channel ID.
<!-- theme: warning -->
> #### NOTE
>
> This API is in beta. [Contact us](https://dyte.io/contact) if you face
> any issues.
requestBody:
content:
application/json:
schema:
type: object
x-examples: null
required:
- meeting_id
properties:
meeting_id:
type: string
visibility:
enum:
- public
- private
display_name:
type: string
'/chat/channels/{chat_channel_id}/members':
parameters:
- schema:
type: string
name: chat_channel_id
in: path
required: true
- schema:
type: string
name: chat_channel_id
in: path
required: true
post:
summary: Add members to a chat channel
tags:
- Chat
responses:
'201':
description: ''
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
type: object
properties:
id:
type: string
display_name:
type: string
target_user_ids:
type: array
items:
type: string
visibility:
type: string
is_direct_message:
type: boolean
x-examples: null
operationId: AddChatChannelMembers
x-stoplight:
id: mhu8fgazg81ck
requestBody:
content:
application/json:
schema:
type: object
x-examples: null
required:
- meeting_id
- custom_participant_ids
properties:
meeting_id:
type: string
custom_participant_ids:
type: array
minItems: 1
items:
type: string
description: |-
<!-- theme: warning -->
> #### NOTE
>
> This API is in beta. [Contact us](https://dyte.io/contact) if you face
> any issues.
delete:
summary: Remove members from a chat channel
tags:
- Chat
responses:
'201':
description: ''
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
data:
type: object
properties:
id:
type: string
display_name:
type: string
target_user_ids:
type: array
items:
type: string
visibility:
type: string
is_direct_message:
type: boolean
x-examples: null
operationId: RemoveChatChannelMembers
x-stoplight:
id: rfg66uw9b2pwo
requestBody:
content:
application/json:
schema:
type: object
x-examples: null
required:
- meeting_id
- custom_participant_ids
properties:
meeting_id:
type: string
custom_participant_ids:
type: array
minItems: 1
items:
type: string
description: |-
<!-- theme: warning -->
> #### NOTE
>
> This API is in beta. [Contact us](https://dyte.io/contact) if you face
> any issues.
components:
schemas:
LivestreamWithSessions:
Expand Down Expand Up @@ -5090,6 +5365,35 @@ components:
$ref: '#/components/schemas/DyteBucketConfig'
live_streaming_config:
$ref: '#/components/schemas/LivestreamingConfig'
CreateChatChannelInfo:
type: object
x-stoplight:
id: 366atbz8irevk
x-examples:
Example 1:
display_name: Channel 1
custom_participant_ids:
- custom_participant_id_1
visibility: public
properties:
display_name:
type: string
x-stoplight:
id: wxepkkzz7j21c
custom_participant_ids:
type: array
items:
type: string
x-stoplight:
id: 0tfh47p4b9vmk
x-stoplight:
id: hylanzo8x6mjd
visibility:
enum:
- public
- private
x-stoplight:
id: mx3q80kica7h6
parameters:
Content-Type:
name: Content-Type
Expand Down Expand Up @@ -6938,6 +7242,7 @@ tags:
- name: Live streams
- name: Analytics
- name: Organizations
- name: Chat
externalDocs:
url: 'https://docs.dyte.io'
description: ''
Expand Down