Skip to content
Merged
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.

192 changes: 150 additions & 42 deletions openapi/chat-openapi-clientside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -726,26 +726,26 @@ components:
items:
$ref: '#/components/schemas/SharedLocation'
type: array
x-stream-index: "034"
x-stream-index: "035"
auto_translation_enabled:
type: boolean
x-stream-index: "029"
x-stream-index: "030"
auto_translation_language:
type: string
x-stream-index: "030"
x-stream-index: "031"
cid:
type: string
x-stream-index: "003"
config:
$ref: '#/components/schemas/ChannelConfig'
x-stream-index: "026"
x-stream-index: "027"
config_overrides:
$ref: '#/components/schemas/ConfigOverrides'
x-stream-index: "027"
x-stream-index: "028"
cooldown:
format: int32
type: integer
x-stream-index: "031"
x-stream-index: "032"
created_at:
format: date-time
type: string
Expand Down Expand Up @@ -774,10 +774,10 @@ components:
items:
$ref: '#/components/schemas/ChannelMember'
type: array
x-stream-index: "022"
x-stream-index: "023"
last_campaigns:
type: string
x-stream-index: "032"
x-stream-index: "033"
last_message_at:
format: date-time
type: string
Expand All @@ -791,17 +791,22 @@ components:
$ref: '#/components/schemas/ChannelMember'
type: array
x-stream-index: "020"
members_lookup:
additionalProperties:
$ref: '#/components/schemas/ChannelMemberLookup'
type: object
x-stream-index: "022"
message_count:
format: int64
type: integer
x-stream-index: "035"
x-stream-index: "036"
message_count_updated_at:
format: date-time
type: string
x-stream-index: "036"
x-stream-index: "037"
team:
type: string
x-stream-index: "028"
x-stream-index: "029"
truncated_by:
$ref: '#/components/schemas/User'
x-stream-index: "015"
Expand Down Expand Up @@ -1523,6 +1528,39 @@ components:
- notifications_muted
title: Channel member
type: object
ChannelMemberLookup:
nullable: true
properties:
archived:
type: boolean
x-stream-index: "003"
archived_at:
format: date-time
type: string
x-stream-index: "006"
ban_expires:
format: date-time
type: string
x-stream-index: "007"
banned:
type: boolean
x-stream-index: "004"
hidden:
type: boolean
x-stream-index: "001"
pinned:
type: boolean
x-stream-index: "002"
pinned_at:
format: date-time
type: string
x-stream-index: "005"
required:
- hidden
- pinned
- archived
- banned
type: object
ChannelMemberResponse:
properties:
channel_role:
Expand Down Expand Up @@ -1789,11 +1827,6 @@ components:
channel:
$ref: '#/components/schemas/ChannelResponse'
x-stream-index: "001.001"
deleted_messages:
items:
type: string
type: array
x-stream-index: "001.016"
draft:
$ref: '#/components/schemas/DraftResponse'
x-stream-index: "001.014"
Expand Down Expand Up @@ -1871,11 +1904,6 @@ components:
channel:
$ref: '#/components/schemas/ChannelResponse'
x-stream-index: "001"
deleted_messages:
items:
type: string
type: array
x-stream-index: "016"
draft:
$ref: '#/components/schemas/DraftResponse'
x-stream-index: "014"
Expand Down Expand Up @@ -2990,12 +3018,12 @@ components:
description: file field
title: File
type: string
x-stream-index: "002"
x-stream-index: "001"
user:
$ref: '#/components/schemas/OnlyUserID'
description: user for the request **server side only**
title: User
x-stream-index: "003"
x-stream-index: "002"
type: object
FileUploadResponse:
nullable: true
Expand Down Expand Up @@ -3701,7 +3729,7 @@ components:
properties:
file:
type: string
x-stream-index: "001.002"
x-stream-index: "001.001"
upload_sizes:
description: field with JSON-encoded array of image size configurations
items:
Expand All @@ -3711,7 +3739,7 @@ components:
x-stream-index: "002"
user:
$ref: '#/components/schemas/OnlyUserID'
x-stream-index: "001.003"
x-stream-index: "001.002"
type: object
ImageUploadResponse:
nullable: true
Expand Down Expand Up @@ -10512,6 +10540,90 @@ components:
- membership_deletion_task_id
- duration
type: object
UploadChannelFileRequest:
nullable: true
properties:
file:
description: file field
title: File
type: string
x-stream-index: "002"
user:
$ref: '#/components/schemas/OnlyUserID'
description: user for the request **server side only**
title: User
x-stream-index: "003"
type: object
UploadChannelFileResponse:
nullable: true
properties:
duration:
description: Duration of the request in milliseconds
title: Duration
type: string
x-stream-index: "004.001"
file:
description: URL to the uploaded asset. Should be used to put to `asset_url`
attachment field
title: File
type: string
x-stream-index: "001"
moderation_action:
type: string
x-stream-index: "003"
thumb_url:
description: URL of the file thumbnail for supported file formats. Should
be put to `thumb_url` attachment field
title: Thumbnail URL
type: string
x-stream-index: "002"
required:
- duration
type: object
UploadChannelRequest:
nullable: true
properties:
file:
type: string
x-stream-index: "001.002"
upload_sizes:
description: field with JSON-encoded array of image size configurations
items:
$ref: '#/components/schemas/ImageSize'
title: Upload sizes
type: array
x-stream-index: "002"
user:
$ref: '#/components/schemas/OnlyUserID'
x-stream-index: "001.003"
type: object
UploadChannelResponse:
nullable: true
properties:
duration:
description: Duration of the request in milliseconds
title: Duration
type: string
x-stream-index: 001.004.001
file:
type: string
x-stream-index: "001.001"
moderation_action:
type: string
x-stream-index: "001.003"
thumb_url:
type: string
x-stream-index: "001.002"
upload_sizes:
description: Array of image size configurations
items:
$ref: '#/components/schemas/ImageSize'
title: Upload sizes
type: array
x-stream-index: "002"
required:
- duration
type: object
UpsertPushPreferencesRequest:
nullable: true
properties:
Expand Down Expand Up @@ -11740,7 +11852,7 @@ components:
type: apiKey
info:
title: Stream API
version: v193.9.0
version: v196.11.0
openapi: 3.0.3
paths:
/app:
Expand Down Expand Up @@ -12346,7 +12458,7 @@ paths:
delete:
description: |
Deletes previously uploaded file
operationId: DeleteFile
operationId: DeleteChannelFile
parameters:
- in: path
name: type
Expand Down Expand Up @@ -12399,7 +12511,7 @@ paths:
post:
description: |
Uploads file
operationId: UploadFile
operationId: UploadChannelFile
parameters:
- in: path
name: type
Expand All @@ -12419,14 +12531,14 @@ paths:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/FileUploadRequest'
$ref: '#/components/schemas/UploadChannelFileRequest'
required: true
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/FileUploadResponse'
$ref: '#/components/schemas/UploadChannelFileResponse'
description: Successful response
"400":
content:
Expand Down Expand Up @@ -12499,7 +12611,7 @@ paths:
delete:
description: |
Deletes previously uploaded image
operationId: DeleteImage
operationId: DeleteChannelImage
parameters:
- in: path
name: type
Expand Down Expand Up @@ -12552,7 +12664,7 @@ paths:
post:
description: |
Uploads image
operationId: UploadImage
operationId: UploadChannelImage
parameters:
- in: path
name: type
Expand All @@ -12572,14 +12684,14 @@ paths:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/ImageUploadRequest'
$ref: '#/components/schemas/UploadChannelRequest'
required: true
responses:
"201":
content:
application/json:
schema:
$ref: '#/components/schemas/ImageUploadResponse'
$ref: '#/components/schemas/UploadChannelResponse'
description: Successful response
"400":
content:
Expand Down Expand Up @@ -15572,7 +15684,7 @@ paths:
delete:
description: |
Deletes previously uploaded file
operationId: DeleteFileGlobal
operationId: DeleteFile
parameters:
- in: query
name: url
Expand Down Expand Up @@ -15604,11 +15716,10 @@ paths:
summary: Delete file
tags:
- product:chat
x-stream-sdk-name: DeleteFile
post:
description: |
Uploads file
operationId: UploadFileGlobal
operationId: UploadFile
requestBody:
content:
multipart/form-data:
Expand Down Expand Up @@ -15637,12 +15748,11 @@ paths:
summary: Upload file
tags:
- product:chat
x-stream-sdk-name: UploadFile
/uploads/image:
delete:
description: |
Deletes previously uploaded image
operationId: DeleteImageGlobal
operationId: DeleteImage
parameters:
- in: query
name: url
Expand Down Expand Up @@ -15674,11 +15784,10 @@ paths:
summary: Delete image
tags:
- product:chat
x-stream-sdk-name: DeleteImage
post:
description: |
Uploads image
operationId: UploadImageGlobal
operationId: UploadImage
requestBody:
content:
multipart/form-data:
Expand Down Expand Up @@ -15707,7 +15816,6 @@ paths:
summary: Upload image
tags:
- product:chat
x-stream-sdk-name: UploadImage
/users:
get:
description: |
Expand Down
2 changes: 1 addition & 1 deletion openapi/chat-openapi.json

Large diffs are not rendered by default.

Loading