Skip to content

Commit fb632f7

Browse files
committed
chore: update OpenAPI specs to v240.5.0
1 parent 217b7bb commit fb632f7

58 files changed

Lines changed: 307 additions & 90 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18901,7 +18901,7 @@ components:
1890118901
type: apiKey
1890218902
info:
1890318903
title: Stream API
18904-
version: v240.4.0
18904+
version: v240.5.0
1890518905
x-stream-breaking-changes:
1890618906
go:
1890718907
- CHA-3441 (2026-10-08)

‎openapi/chat-openapi.json‎

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

‎openapi/chat-openapi.yaml‎

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4695,6 +4695,24 @@ components:
46954695
- skip_last_msg_update_for_system_msgs
46964696
- commands
46974697
type: object
4698+
ChannelTypeRuleResponse:
4699+
properties:
4700+
channel_type:
4701+
type: string
4702+
x-stream-index: "001"
4703+
enabled_at:
4704+
format: date-time
4705+
type: string
4706+
x-stream-index: "003"
4707+
max_age_hours:
4708+
format: int32
4709+
type: integer
4710+
x-stream-index: "002"
4711+
required:
4712+
- channel_type
4713+
- max_age_hours
4714+
- enabled_at
4715+
type: object
46984716
ChannelUnFrozenEvent:
46994717
description: Emitted when a channel is successfully unfrozen.
47004718
nullable: true
@@ -7431,10 +7449,14 @@ components:
74317449
DeleteRetentionPolicyRequest:
74327450
nullable: true
74337451
properties:
7452+
channel_type:
7453+
type: string
7454+
x-stream-index: "002"
74347455
policy:
74357456
enum:
74367457
- old-messages
74377458
- inactive-channels
7459+
- inactive-channels-by-type
74387460
type: string
74397461
x-stream-index: "001"
74407462
required:
@@ -9762,11 +9784,16 @@ components:
97629784
description: Basic response information
97639785
nullable: true
97649786
properties:
9787+
channel_type_rules:
9788+
items:
9789+
$ref: '#/components/schemas/ChannelTypeRuleResponse'
9790+
type: array
9791+
x-stream-index: "002"
97659792
duration:
97669793
description: Duration of the request in milliseconds
97679794
title: Duration
97689795
type: string
9769-
x-stream-index: "002.001"
9796+
x-stream-index: "003.001"
97709797
policies:
97719798
items:
97729799
$ref: '#/components/schemas/RetentionPolicy'
@@ -19329,15 +19356,18 @@ components:
1932919356
format: int64
1933019357
type: integer
1933119358
x-stream-index: "001"
19332-
date:
19359+
channel_type:
1933319360
type: string
1933419361
x-stream-index: "003"
19362+
date:
19363+
type: string
19364+
x-stream-index: "004"
1933519365
policy:
1933619366
type: string
1933719367
x-stream-index: "002"
1933819368
stats:
1933919369
$ref: '#/components/schemas/RunStats'
19340-
x-stream-index: "004"
19370+
x-stream-index: "005"
1934119371
required:
1934219372
- app_pk
1934319373
- policy
@@ -21007,6 +21037,9 @@ components:
2100721037
SetRetentionPolicyRequest:
2100821038
nullable: true
2100921039
properties:
21040+
channel_type:
21041+
type: string
21042+
x-stream-index: "003"
2101021043
max_age_hours:
2101121044
format: int32
2101221045
minimum: 24
@@ -21016,6 +21049,7 @@ components:
2101621049
enum:
2101721050
- old-messages
2101821051
- inactive-channels
21052+
- inactive-channels-by-type
2101921053
type: string
2102021054
x-stream-index: "001"
2102121055
required:
@@ -21026,11 +21060,14 @@ components:
2102621060
description: Basic response information
2102721061
nullable: true
2102821062
properties:
21063+
channel_type_rule:
21064+
$ref: '#/components/schemas/ChannelTypeRuleResponse'
21065+
x-stream-index: "002"
2102921066
duration:
2103021067
description: Duration of the request in milliseconds
2103121068
title: Duration
2103221069
type: string
21033-
x-stream-index: "002.001"
21070+
x-stream-index: "003.001"
2103421071
policy:
2103521072
$ref: '#/components/schemas/RetentionPolicy'
2103621073
x-stream-index: "001"
@@ -26588,7 +26625,7 @@ components:
2658826625
type: apiKey
2658926626
info:
2659026627
title: Stream API
26591-
version: v240.4.0
26628+
version: v240.5.0
2659226629
x-stream-breaking-changes:
2659326630
go:
2659426631
- CHA-3441 (2026-10-08)
@@ -33138,7 +33175,7 @@ paths:
3313833175
/retention_policy:
3313933176
get:
3314033177
description: |
33141-
Returns all retention policies configured for the app. Server-side only.
33178+
Returns all retention policies configured for the app. The per-channel-type rules of the 'inactive-channels-by-type' policy are returned in 'channel_type_rules' rather than in 'policies'. Server-side only.
3314233179
operationId: GetRetentionPolicy
3314333180
responses:
3314433181
"200":
@@ -33164,7 +33201,7 @@ paths:
3316433201
- product:chat
3316533202
post:
3316633203
description: |
33167-
Creates or updates a retention policy for the app. Server-side only.
33204+
Creates or updates a retention policy for the app. The 'inactive-channels-by-type' policy sets the 'max_age_hours' rule of the channel type given by 'channel_type', which overrides 'inactive-channels' for that type; its response carries the saved rule in 'channel_type_rule'. Server-side only.
3316833205
operationId: SetRetentionPolicy
3316933206
requestBody:
3317033207
content:
@@ -33197,7 +33234,7 @@ paths:
3319733234
/retention_policy/delete:
3319833235
post:
3319933236
description: |
33200-
Removes a retention policy for the app. Server-side only.
33237+
Removes a retention policy for the app. For the 'inactive-channels-by-type' policy, 'channel_type' selects the rule to remove. Server-side only.
3320133238
operationId: DeleteRetentionPolicy
3320233239
requestBody:
3320333240
content:
@@ -33230,7 +33267,7 @@ paths:
3323033267
/retention_policy/runs:
3323133268
post:
3323233269
description: |
33233-
Returns filtered and sorted retention cleanup run history for the app. Supports filter_conditions on 'policy' (possible values: 'old-messages', 'inactive-channels') and 'date' fields. Server-side only.
33270+
Returns filtered and sorted retention cleanup run history for the app. Supports filter_conditions on 'policy' (possible values: 'old-messages', 'inactive-channels', 'inactive-channels@type:<channel type>', 'inactive-channels@blanket:<channel type>') and 'date' fields. Once the app has a per-channel-type rule, inactive-channels runs are recorded per channel type, under 'inactive-channels@type:<channel type>' for a type with its own rule and 'inactive-channels@blanket:<channel type>' for a type covered by the app-wide rule, and 'policy': 'inactive-channels' no longer matches new runs; filter with '$in' over the pass names of your channel types. Server-side only.
3323433271
operationId: GetRetentionPolicyRuns
3323533272
requestBody:
3323633273
content:

‎openapi/clientside-api.json‎

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

‎openapi/clientside-api.yaml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40140,6 +40140,12 @@ components:
4014040140
title: Remove Future Channels Ban
4014140141
type: boolean
4014240142
x-stream-index: "004"
40143+
restore_shadowed_messages:
40144+
description: When lifting a shadow ban, also restore the messages the user
40145+
sent during it. Runs asynchronously; ignored for a regular ban
40146+
title: Restore Shadowed Messages
40147+
type: boolean
40148+
x-stream-index: "005"
4014340149
target_user_id:
4014440150
description: 'Optional: unban user directly without review item'
4014540151
title: Target User ID
@@ -45389,7 +45395,7 @@ components:
4538945395
type: apiKey
4539045396
info:
4539145397
title: Stream API
45392-
version: v240.4.0
45398+
version: v240.5.0
4539345399
x-stream-breaking-changes:
4539445400
go:
4539545401
- CHA-3441 (2026-10-08)

‎openapi/moderation-clientside-api.json‎

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

‎openapi/moderation-clientside-api.yaml‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8635,6 +8635,12 @@ components:
86358635
title: Remove Future Channels Ban
86368636
type: boolean
86378637
x-stream-index: "004"
8638+
restore_shadowed_messages:
8639+
description: When lifting a shadow ban, also restore the messages the user
8640+
sent during it. Runs asynchronously; ignored for a regular ban
8641+
title: Restore Shadowed Messages
8642+
type: boolean
8643+
x-stream-index: "005"
86388644
target_user_id:
86398645
description: 'Optional: unban user directly without review item'
86408646
title: Target User ID
@@ -10056,7 +10062,7 @@ components:
1005610062
type: apiKey
1005710063
info:
1005810064
title: Stream API
10059-
version: v240.4.0
10065+
version: v240.5.0
1006010066
x-stream-breaking-changes:
1006110067
go:
1006210068
- CHA-3441 (2026-10-08)

‎openapi/moderation-openapi.json‎

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

‎openapi/moderation-openapi.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7330,7 +7330,7 @@ components:
73307330
type: apiKey
73317331
info:
73327332
title: Stream API
7333-
version: v240.4.0
7333+
version: v240.5.0
73347334
x-stream-breaking-changes:
73357335
go:
73367336
- CHA-3441 (2026-10-08)

0 commit comments

Comments
 (0)