Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion openapi/chat-openapi-clientside.json

Large diffs are not rendered by default.

179 changes: 110 additions & 69 deletions openapi/chat-openapi-clientside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1384,13 +1384,13 @@ components:
x-stream-index: "013"
invites:
items:
$ref: '#/components/schemas/ChannelMember'
$ref: '#/components/schemas/ChannelMemberRequest'
maximum: 100
type: array
x-stream-index: "016"
members:
items:
$ref: '#/components/schemas/ChannelMember'
$ref: '#/components/schemas/ChannelMemberRequest'
maximum: 100
type: array
x-stream-index: "018"
Expand Down Expand Up @@ -1448,112 +1448,92 @@ components:
archived_at:
format: date-time
type: string
x-stream-index: "015"
x-stream-index: "021"
ban_expires:
description: Expiration date of the ban
format: date-time
title: Ban expires
type: string
x-stream-index: "013"
x-stream-index: "017"
banned:
description: Whether member is banned this channel or not
title: Banned
type: boolean
x-stream-index: "012"
x-stream-index: "016"
blocked:
type: boolean
x-stream-index: "029"
channel:
$ref: '#/components/schemas/DenormalizedChannelFields'
x-stream-index: "027"
channel_role:
description: Role of the member in the channel
title: Channel Role
type: string
x-stream-index: "018"
x-stream-index: "024"
created_at:
description: Date/time of creation
format: date-time
title: Created at
type: string
x-stream-index: "009"
x-stream-index: "012"
custom:
additionalProperties: {}
type: object
x-stream-index: "004"
x-stream-index: "006"
deleted_at:
format: date-time
type: string
x-stream-index: "011"
x-stream-index: "014"
deleted_messages:
items:
type: string
type: array
x-stream-index: "020"
x-stream-index: "030"
hidden:
type: boolean
x-stream-index: "028"
invite_accepted_at:
description: Date when invite was accepted
format: date-time
title: Invited accepted at
type: string
x-stream-index: "006"
x-stream-index: "009"
invite_rejected_at:
description: Date when invite was rejected
format: date-time
title: Invited rejected at
type: string
x-stream-index: "007"
x-stream-index: "010"
invited:
description: Whether member was invited or not
title: Invited
type: boolean
x-stream-index: "005"
x-stream-index: "008"
is_global_banned:
type: boolean
x-stream-index: "020"
is_moderator:
description: Whether member is channel moderator or not
title: Is moderator
type: boolean
x-stream-index: "003"
x-stream-index: "007"
notifications_muted:
type: boolean
x-stream-index: "019"
x-stream-index: "026"
pinned_at:
format: date-time
type: string
x-stream-index: "016"
role:
description: 'Permission level of the member in the channel (DEPRECATED:
use channel_role instead)'
enum:
- member
- moderator
- admin
- owner
title: Role
type: string
x-stream-index: "017"
x-stream-index: "022"
shadow_banned:
description: Whether member is shadow banned in this channel or not
title: Shadow banned
type: boolean
x-stream-index: "014"
x-stream-index: "019"
status:
type: string
x-stream-index: "008"
x-stream-index: "011"
updated_at:
description: Date/time of the last update
format: date-time
title: Updated at
type: string
x-stream-index: "010"
x-stream-index: "013"
user:
$ref: '#/components/schemas/UserResponse'
x-stream-index: "002"
$ref: '#/components/schemas/User'
x-stream-index: "005"
user_id:
title: User ID
type: string
x-stream-index: "001"
x-stream-index: "004"
required:
- custom
- created_at
- updated_at
- banned
- shadow_banned
- is_global_banned
- channel_role
- notifications_muted
title: Channel member
type: object
ChannelMemberLookup:
nullable: true
Expand Down Expand Up @@ -1592,6 +1572,29 @@ components:
- banned
- blocked
type: object
ChannelMemberRequest:
nullable: true
properties:
channel_role:
description: Role of the member in the channel
title: Channel Role
type: string
x-stream-index: "004"
custom:
additionalProperties: {}
type: object
x-stream-index: "003"
user:
$ref: '#/components/schemas/UserResponse'
x-stream-index: "002"
user_id:
title: User ID
type: string
x-stream-index: "001"
required:
- user_id
title: Channel member
type: object
ChannelMemberResponse:
properties:
channel_role:
Expand Down Expand Up @@ -1783,8 +1786,8 @@ components:
members:
description: List of channel members (max 100)
items:
$ref: '#/components/schemas/ChannelMember'
title: ChannelMembers
$ref: '#/components/schemas/ChannelMemberResponse'
title: Channel members
type: array
x-stream-index: "011"
message_count:
Expand Down Expand Up @@ -1874,11 +1877,11 @@ components:
x-stream-index: "001.012"
members:
items:
$ref: '#/components/schemas/ChannelMember'
$ref: '#/components/schemas/ChannelMemberResponse'
type: array
x-stream-index: "001.007"
membership:
$ref: '#/components/schemas/ChannelMember'
$ref: '#/components/schemas/ChannelMemberResponse'
x-stream-index: "001.008"
messages:
items:
Expand Down Expand Up @@ -1953,12 +1956,12 @@ components:
members:
description: List of channel members
items:
$ref: '#/components/schemas/ChannelMember'
$ref: '#/components/schemas/ChannelMemberResponse'
title: Members
type: array
x-stream-index: "007"
membership:
$ref: '#/components/schemas/ChannelMember'
$ref: '#/components/schemas/ChannelMemberResponse'
description: Current user membership object
title: Membership
x-stream-index: "008"
Expand Down Expand Up @@ -2668,6 +2671,44 @@ components:
required:
- enabled
type: object
DenormalizedChannelFields:
properties:
created_at:
type: string
x-stream-index: "001"
created_by_id:
type: string
x-stream-index: "008"
custom:
additionalProperties: {}
type: object
x-stream-index: "011"
disabled:
type: boolean
x-stream-index: "005"
frozen:
type: boolean
x-stream-index: "006"
id:
type: string
x-stream-index: "010"
last_message_at:
type: string
x-stream-index: "003"
member_count:
format: int32
type: integer
x-stream-index: "004"
team:
type: string
x-stream-index: "007"
type:
type: string
x-stream-index: "009"
updated_at:
type: string
x-stream-index: "002"
type: object
Device:
nullable: true
properties:
Expand Down Expand Up @@ -4111,7 +4152,7 @@ components:
members:
description: List of found members
items:
$ref: '#/components/schemas/ChannelMember'
$ref: '#/components/schemas/ChannelMemberResponse'
title: Members
type: array
x-stream-index: "001"
Expand Down Expand Up @@ -4657,7 +4698,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 @@ -7749,7 +7790,7 @@ components:
x-stream-index: "006.003"
members:
items:
$ref: '#/components/schemas/ChannelMember'
$ref: '#/components/schemas/ChannelMemberRequest'
maximum: 100
type: array
x-stream-index: "003"
Expand Down Expand Up @@ -10266,7 +10307,7 @@ components:
add_members:
description: List of user IDs to add to the channel
items:
$ref: '#/components/schemas/ChannelMember'
$ref: '#/components/schemas/ChannelMemberRequest'
maximum: 100
title: Add members
type: array
Expand All @@ -10283,7 +10324,7 @@ components:
description: List of channel member role assignments. If any specified user
is not part of the channel, the request will fail
items:
$ref: '#/components/schemas/ChannelMember'
$ref: '#/components/schemas/ChannelMemberRequest'
maximum: 100
title: Assign roles
type: array
Expand Down Expand Up @@ -10315,7 +10356,7 @@ components:
invites:
description: List of user IDs to invite to the channel
items:
$ref: '#/components/schemas/ChannelMember'
$ref: '#/components/schemas/ChannelMemberRequest'
maximum: 100
title: Invites
type: array
Expand Down Expand Up @@ -10362,7 +10403,7 @@ components:
members:
description: List of channel members
items:
$ref: '#/components/schemas/ChannelMember'
$ref: '#/components/schemas/ChannelMemberResponse'
title: Members
type: array
x-stream-index: "003"
Expand Down Expand Up @@ -12092,7 +12133,7 @@ components:
type: apiKey
info:
title: Stream API
version: v198.32.0
version: v198.34.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.

Loading