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.

29 changes: 22 additions & 7 deletions openapi/chat-openapi-clientside.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3372,6 +3372,15 @@ components:
title: Comment
type: string
x-stream-index: "002"
comment_mention:
description: 'Push notification preference for mentions in comments. One
of: all, none'
enum:
- all
- none
title: Comment Mention
type: string
x-stream-index: "006"
comment_reaction:
description: 'Push notification preference for reactions on comments. One
of: all, none'
Expand All @@ -3397,7 +3406,7 @@ components:
of activity type to preference (all or none)
title: Custom Activity Types
type: object
x-stream-index: "007"
x-stream-index: "008"
follow:
description: 'Push notification preference for new followers. One of: all,
none'
Expand All @@ -3408,14 +3417,14 @@ components:
type: string
x-stream-index: "001"
mention:
description: 'Push notification preference for mentions in activities or
comments. One of: all, none'
description: 'Push notification preference for mentions in activities. One
of: all, none'
enum:
- all
- none
title: Mention
type: string
x-stream-index: "006"
x-stream-index: "007"
reaction:
description: 'Push notification preference for reactions on user''s activities
or comments. One of: all, none'
Expand All @@ -3432,20 +3441,26 @@ components:
comment:
type: string
x-stream-index: "002"
comment_mention:
type: string
x-stream-index: "006"
comment_reaction:
type: string
x-stream-index: "004"
comment_reply:
type: string
x-stream-index: "005"
custom_activity_types:
additionalProperties:
type: string
type: object
x-stream-index: "006"
x-stream-index: "008"
follow:
type: string
x-stream-index: "001"
mention:
type: string
x-stream-index: "005"
x-stream-index: "007"
reaction:
type: string
x-stream-index: "003"
Expand Down Expand Up @@ -14454,7 +14469,7 @@ components:
type: apiKey
info:
title: Stream API
version: v223.38.0
version: v223.43.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.

161 changes: 91 additions & 70 deletions openapi/chat-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5286,8 +5286,13 @@ components:
nullable: true
properties:
policy:
enum:
- old-messages
- inactive-channels
type: string
x-stream-index: "001"
required:
- policy
type: object
DeleteRetentionPolicyResponse:
description: Basic response information
Expand Down Expand Up @@ -5937,6 +5942,15 @@ components:
title: Comment
type: string
x-stream-index: "002"
comment_mention:
description: 'Push notification preference for mentions in comments. One
of: all, none'
enum:
- all
- none
title: Comment Mention
type: string
x-stream-index: "006"
comment_reaction:
description: 'Push notification preference for reactions on comments. One
of: all, none'
Expand All @@ -5962,7 +5976,7 @@ components:
of activity type to preference (all or none)
title: Custom Activity Types
type: object
x-stream-index: "007"
x-stream-index: "008"
follow:
description: 'Push notification preference for new followers. One of: all,
none'
Expand All @@ -5973,14 +5987,14 @@ components:
type: string
x-stream-index: "001"
mention:
description: 'Push notification preference for mentions in activities or
comments. One of: all, none'
description: 'Push notification preference for mentions in activities. One
of: all, none'
enum:
- all
- none
title: Mention
type: string
x-stream-index: "006"
x-stream-index: "007"
reaction:
description: 'Push notification preference for reactions on user''s activities
or comments. One of: all, none'
Expand All @@ -5997,20 +6011,26 @@ components:
comment:
type: string
x-stream-index: "002"
comment_mention:
type: string
x-stream-index: "006"
comment_reaction:
type: string
x-stream-index: "004"
comment_reply:
type: string
x-stream-index: "005"
custom_activity_types:
additionalProperties:
type: string
type: object
x-stream-index: "006"
x-stream-index: "008"
follow:
type: string
x-stream-index: "001"
mention:
type: string
x-stream-index: "005"
x-stream-index: "007"
reaction:
type: string
x-stream-index: "003"
Expand Down Expand Up @@ -7234,18 +7254,50 @@ components:
- duration
title: Response
type: object
GetRetentionPolicyRunsRequest:
nullable: true
properties:
filter_conditions:
additionalProperties: {}
type: object
x-stream-index: "001"
limit:
format: int32
maximum: 100
minimum: 0
type: integer
x-stream-index: "003.001"
next:
type: string
x-stream-index: "003.002"
prev:
type: string
x-stream-index: "003.003"
sort:
items:
$ref: '#/components/schemas/SortParamRequest'
maxItems: 2
type: array
x-stream-index: "002"
type: object
GetRetentionPolicyRunsResponse:
description: Basic response information
nullable: true
properties:
duration:
description: Duration of the request in milliseconds
title: Duration
type: string
x-stream-index: "003.001"
next:
type: string
x-stream-index: "002.001"
prev:
type: string
x-stream-index: "002.002"
runs:
items:
$ref: '#/components/schemas/RetentionCleanupRun'
$ref: '#/components/schemas/RetentionRunResponse'
type: array
x-stream-index: "001"
required:
Expand Down Expand Up @@ -14073,72 +14125,48 @@ components:
required:
- user_ids
type: object
RetentionCleanupRun:
RetentionPolicy:
properties:
app_pk:
format: int64
type: integer
x-stream-index: "002"
cursor_id:
type: string
x-stream-index: "009"
cursor_ts:
format: date-time
type: string
x-stream-index: "008"
date:
format: date-time
type: string
config:
$ref: '#/components/schemas/PolicyConfig'
x-stream-index: "004"
error:
type: string
x-stream-index: "011"
finished_at:
enabled_at:
format: date-time
type: string
x-stream-index: "006"
x-stream-index: "005"
policy:
type: string
x-stream-index: "003"
started_at:
format: date-time
type: string
x-stream-index: "005"
stats:
$ref: '#/components/schemas/RunStats'
x-stream-index: "010"
status:
type: string
x-stream-index: "007"
required:
- app_pk
- policy
- date
- started_at
- status
- stats
- config
- enabled_at
type: object
RetentionPolicy:
RetentionRunResponse:
properties:
app_pk:
format: int64
type: integer
x-stream-index: "002"
config:
$ref: '#/components/schemas/PolicyConfig'
x-stream-index: "004"
enabled_at:
format: date-time
x-stream-index: "001"
date:
type: string
x-stream-index: "005"
x-stream-index: "003"
policy:
type: string
x-stream-index: "003"
x-stream-index: "002"
stats:
$ref: '#/components/schemas/RunStats'
x-stream-index: "004"
required:
- app_pk
- policy
- config
- enabled_at
- date
- stats
type: object
RingSettings:
properties:
Expand Down Expand Up @@ -14881,8 +14909,13 @@ components:
type: integer
x-stream-index: "002"
policy:
enum:
- old-messages
- inactive-channels
type: string
x-stream-index: "001"
required:
- policy
type: object
SetRetentionPolicyResponse:
description: Basic response information
Expand Down Expand Up @@ -19549,7 +19582,7 @@ components:
type: apiKey
info:
title: Stream API
version: v223.38.0
version: v223.43.0
openapi: 3.0.3
paths:
/app:
Expand Down Expand Up @@ -24777,30 +24810,18 @@ paths:
tags:
- product:chat
/retention_policy/runs:
get:
post:
description: |
Returns paginated retention cleanup run history for the app. Server-side only.
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.
operationId: GetRetentionPolicyRuns
parameters:
- in: query
name: limit
schema:
format: int32
maximum: 100
minimum: 0
type: integer
writeOnly: true
x-stream-index: "001"
- in: query
name: offset
schema:
format: int32
minimum: 0
type: integer
writeOnly: true
x-stream-index: "002"
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GetRetentionPolicyRunsRequest'
required: true
responses:
"200":
"201":
content:
application/json:
schema:
Expand Down
2 changes: 1 addition & 1 deletion openapi/clientside-api.json

Large diffs are not rendered by default.

Loading
Loading