Skip to content

Commit 82e56a9

Browse files
authored
Merge branch 'main' into degradation-pref-video-sender
2 parents 798d816 + d995a74 commit 82e56a9

58 files changed

Lines changed: 1461 additions & 63 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

openapi/chat-openapi-clientside.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

openapi/chat-openapi-clientside.yaml

Lines changed: 137 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11227,6 +11227,45 @@ components:
1122711227
- duration
1122811228
title: Response
1122911229
type: object
11230+
Role:
11231+
properties:
11232+
created_at:
11233+
description: Date/time of creation
11234+
format: date-time
11235+
title: Created at
11236+
type: string
11237+
x-stream-index: "004"
11238+
custom:
11239+
description: Whether this is a custom role or built-in
11240+
title: Custom
11241+
type: boolean
11242+
x-stream-index: "002"
11243+
name:
11244+
description: Unique role name
11245+
title: Name
11246+
type: string
11247+
x-stream-index: "001"
11248+
scopes:
11249+
description: List of scopes where this role is currently present. `.app`
11250+
means that role is present in app-level grants
11251+
items:
11252+
type: string
11253+
title: Scopes
11254+
type: array
11255+
x-stream-index: "003"
11256+
updated_at:
11257+
description: Date/time of the last update
11258+
format: date-time
11259+
title: Updated at
11260+
type: string
11261+
x-stream-index: "005"
11262+
required:
11263+
- name
11264+
- custom
11265+
- scopes
11266+
- created_at
11267+
- updated_at
11268+
type: object
1123011269
SearchPayload:
1123111270
properties:
1123211271
filter_conditions:
@@ -11907,6 +11946,23 @@ components:
1190711946
- pinned
1190811947
- restricted_visibility
1190911948
type: object
11949+
SearchRolesResponse:
11950+
nullable: true
11951+
properties:
11952+
duration:
11953+
type: string
11954+
x-stream-index: "001.001"
11955+
roles:
11956+
description: Matching roles, sorted ascending by name
11957+
items:
11958+
$ref: '#/components/schemas/Role'
11959+
title: Roles
11960+
type: array
11961+
x-stream-index: "002"
11962+
required:
11963+
- duration
11964+
- roles
11965+
type: object
1191011966
SearchUserGroupsResponse:
1191111967
description: Response for searching user groups
1191211968
nullable: true
@@ -15714,7 +15770,7 @@ components:
1571415770
type: apiKey
1571515771
info:
1571615772
title: Stream API
15717-
version: v228.12.0
15773+
version: v228.13.0
1571815774
openapi: 3.0.3
1571915775
paths:
1572015776
/app:
@@ -19285,6 +19341,86 @@ paths:
1928519341
summary: Query reminders
1928619342
tags:
1928719343
- product:chat
19344+
/roles/search:
19345+
get:
19346+
description: |
19347+
Searches mentionable roles (user-assignable + channel-assignable, built-in and custom) by name prefix for autocomplete
19348+
operationId: SearchRoles
19349+
parameters:
19350+
- in: query
19351+
name: query
19352+
required: true
19353+
schema:
19354+
description: Case-insensitive name prefix to match against role names
19355+
maxLength: 255
19356+
minLength: 1
19357+
title: Query
19358+
type: string
19359+
writeOnly: true
19360+
x-stream-index: "001"
19361+
- in: query
19362+
name: limit
19363+
schema:
19364+
description: Maximum number of roles to return (1-25, default 10)
19365+
format: int32
19366+
maximum: 25
19367+
minimum: 1
19368+
title: Limit
19369+
type: integer
19370+
writeOnly: true
19371+
x-stream-index: "002"
19372+
- in: query
19373+
name: name_gt
19374+
schema:
19375+
description: Return roles with names strictly greater than this cursor (for
19376+
pagination)
19377+
title: Name cursor
19378+
type: string
19379+
writeOnly: true
19380+
x-stream-index: "003"
19381+
- in: query
19382+
name: role_type
19383+
schema:
19384+
description: 'Optional filter: ''user'' for user-assignable roles, ''channel''
19385+
for channel-assignable roles. Omit to return both.'
19386+
enum:
19387+
- user
19388+
- channel
19389+
title: Role type
19390+
type: string
19391+
writeOnly: true
19392+
x-stream-index: "004"
19393+
- in: query
19394+
name: include_global_roles
19395+
schema:
19396+
description: When true, include cross-team operator roles whose name starts
19397+
with 'global_'. Defaults to false.
19398+
title: Include global roles
19399+
type: boolean
19400+
writeOnly: true
19401+
x-stream-index: "005"
19402+
responses:
19403+
"200":
19404+
content:
19405+
application/json:
19406+
schema:
19407+
$ref: '#/components/schemas/SearchRolesResponse'
19408+
description: Successful response
19409+
"400":
19410+
content:
19411+
application/json:
19412+
schema:
19413+
$ref: '#/components/schemas/APIError'
19414+
description: Bad request
19415+
"429":
19416+
content:
19417+
application/json:
19418+
schema:
19419+
$ref: '#/components/schemas/APIError'
19420+
description: Too many requests
19421+
summary: Search roles
19422+
tags:
19423+
- product:chat
1928819424
/search:
1928919425
get:
1929019426
description: |

openapi/chat-openapi.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

openapi/chat-openapi.yaml

Lines changed: 99 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ components:
601601
type: string
602602
x-stream-index: "002.001"
603603
type:
604-
default: export.moderation_logs.error
604+
default: export.users.error
605605
type: string
606606
x-stream-index: "003.002"
607607
required:
@@ -16053,6 +16053,23 @@ components:
1605316053
- pinned
1605416054
- restricted_visibility
1605516055
type: object
16056+
SearchRolesResponse:
16057+
nullable: true
16058+
properties:
16059+
duration:
16060+
type: string
16061+
x-stream-index: "001.001"
16062+
roles:
16063+
description: Matching roles, sorted ascending by name
16064+
items:
16065+
$ref: '#/components/schemas/Role'
16066+
title: Roles
16067+
type: array
16068+
x-stream-index: "002"
16069+
required:
16070+
- duration
16071+
- roles
16072+
type: object
1605616073
SearchUserGroupsResponse:
1605716074
description: Response for searching user groups
1605816075
nullable: true
@@ -21180,7 +21197,7 @@ components:
2118021197
type: apiKey
2118121198
info:
2118221199
title: Stream API
21183-
version: v228.12.0
21200+
version: v228.13.0
2118421201
openapi: 3.0.3
2118521202
paths:
2118621203
/app:
@@ -26799,6 +26816,86 @@ paths:
2679926816
summary: Delete role
2680026817
tags:
2680126818
- product:chat
26819+
/roles/search:
26820+
get:
26821+
description: |
26822+
Searches mentionable roles (user-assignable + channel-assignable, built-in and custom) by name prefix for autocomplete
26823+
operationId: SearchRoles
26824+
parameters:
26825+
- in: query
26826+
name: query
26827+
required: true
26828+
schema:
26829+
description: Case-insensitive name prefix to match against role names
26830+
maxLength: 255
26831+
minLength: 1
26832+
title: Query
26833+
type: string
26834+
writeOnly: true
26835+
x-stream-index: "001"
26836+
- in: query
26837+
name: limit
26838+
schema:
26839+
description: Maximum number of roles to return (1-25, default 10)
26840+
format: int32
26841+
maximum: 25
26842+
minimum: 1
26843+
title: Limit
26844+
type: integer
26845+
writeOnly: true
26846+
x-stream-index: "002"
26847+
- in: query
26848+
name: name_gt
26849+
schema:
26850+
description: Return roles with names strictly greater than this cursor (for
26851+
pagination)
26852+
title: Name cursor
26853+
type: string
26854+
writeOnly: true
26855+
x-stream-index: "003"
26856+
- in: query
26857+
name: role_type
26858+
schema:
26859+
description: 'Optional filter: ''user'' for user-assignable roles, ''channel''
26860+
for channel-assignable roles. Omit to return both.'
26861+
enum:
26862+
- user
26863+
- channel
26864+
title: Role type
26865+
type: string
26866+
writeOnly: true
26867+
x-stream-index: "004"
26868+
- in: query
26869+
name: include_global_roles
26870+
schema:
26871+
description: When true, include cross-team operator roles whose name starts
26872+
with 'global_'. Defaults to false.
26873+
title: Include global roles
26874+
type: boolean
26875+
writeOnly: true
26876+
x-stream-index: "005"
26877+
responses:
26878+
"200":
26879+
content:
26880+
application/json:
26881+
schema:
26882+
$ref: '#/components/schemas/SearchRolesResponse'
26883+
description: Successful response
26884+
"400":
26885+
content:
26886+
application/json:
26887+
schema:
26888+
$ref: '#/components/schemas/APIError'
26889+
description: Bad request
26890+
"429":
26891+
content:
26892+
application/json:
26893+
schema:
26894+
$ref: '#/components/schemas/APIError'
26895+
description: Too many requests
26896+
summary: Search roles
26897+
tags:
26898+
- product:chat
2680226899
/search:
2680326900
get:
2680426901
description: |

openapi/clientside-api.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)