@stream-io/node-sdk 0.4.19 → 0.4.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +115 -98
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +115 -98
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/BaseApi.d.ts +1 -0
- package/dist/src/StreamClient.d.ts +7 -0
- package/dist/src/gen/chat/ChannelApi.d.ts +9 -1
- package/dist/src/gen/chat/ChatApi.d.ts +17 -1
- package/dist/src/gen/models/index.d.ts +119 -119
- package/dist/src/gen/moderation/ModerationApi.d.ts +1 -11
- package/dist/src/types.d.ts +3 -0
- package/package.json +2 -1
- package/src/BaseApi.ts +9 -1
- package/src/StreamClient.ts +18 -1
- package/src/gen/chat/ChannelApi.ts +29 -0
- package/src/gen/chat/ChatApi.ts +89 -1
- package/src/gen/model-decoders/index.ts +50 -63
- package/src/gen/models/index.ts +214 -206
- package/src/gen/moderation/ModerationApi.ts +0 -94
- package/src/types.ts +4 -0
package/src/gen/models/index.ts
CHANGED
|
@@ -300,6 +300,24 @@ export interface AsyncExportErrorEvent {
|
|
|
300
300
|
received_at?: Date;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
+
export interface AsyncExportModerationLogsEvent {
|
|
304
|
+
created_at: Date;
|
|
305
|
+
|
|
306
|
+
finished_at: Date;
|
|
307
|
+
|
|
308
|
+
started_at: Date;
|
|
309
|
+
|
|
310
|
+
task_id: string;
|
|
311
|
+
|
|
312
|
+
url: string;
|
|
313
|
+
|
|
314
|
+
custom: Record<string, any>;
|
|
315
|
+
|
|
316
|
+
type: string;
|
|
317
|
+
|
|
318
|
+
received_at?: Date;
|
|
319
|
+
}
|
|
320
|
+
|
|
303
321
|
export interface AsyncExportUsersEvent {
|
|
304
322
|
created_at: Date;
|
|
305
323
|
|
|
@@ -672,10 +690,6 @@ export interface BlockedUserResponse {
|
|
|
672
690
|
user: UserResponse;
|
|
673
691
|
}
|
|
674
692
|
|
|
675
|
-
export interface BodyguardImageAnalysisConfig {
|
|
676
|
-
rules?: BodyguardRule[];
|
|
677
|
-
}
|
|
678
|
-
|
|
679
693
|
export interface BodyguardRule {
|
|
680
694
|
action:
|
|
681
695
|
| 'flag'
|
|
@@ -1536,6 +1550,28 @@ export interface CallUpdatedEvent {
|
|
|
1536
1550
|
type: string;
|
|
1537
1551
|
}
|
|
1538
1552
|
|
|
1553
|
+
export interface CallUserFeedbackSubmittedEvent {
|
|
1554
|
+
call_cid: string;
|
|
1555
|
+
|
|
1556
|
+
created_at: Date;
|
|
1557
|
+
|
|
1558
|
+
rating: number;
|
|
1559
|
+
|
|
1560
|
+
session_id: string;
|
|
1561
|
+
|
|
1562
|
+
user: UserResponse;
|
|
1563
|
+
|
|
1564
|
+
type: string;
|
|
1565
|
+
|
|
1566
|
+
reason?: string;
|
|
1567
|
+
|
|
1568
|
+
sdk?: string;
|
|
1569
|
+
|
|
1570
|
+
sdk_version?: string;
|
|
1571
|
+
|
|
1572
|
+
custom?: Record<string, any>;
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1539
1575
|
export interface CallUserMutedEvent {
|
|
1540
1576
|
call_cid: string;
|
|
1541
1577
|
|
|
@@ -1656,6 +1692,10 @@ export interface CampaignStatsResponse {
|
|
|
1656
1692
|
stats_messages_sent: number;
|
|
1657
1693
|
|
|
1658
1694
|
stats_started_at: Date;
|
|
1695
|
+
|
|
1696
|
+
stats_users_read: number;
|
|
1697
|
+
|
|
1698
|
+
stats_users_sent: number;
|
|
1659
1699
|
}
|
|
1660
1700
|
|
|
1661
1701
|
export interface CastPollVoteRequest {
|
|
@@ -1691,6 +1731,8 @@ export interface Channel {
|
|
|
1691
1731
|
|
|
1692
1732
|
deleted_at?: Date;
|
|
1693
1733
|
|
|
1734
|
+
last_campaigns?: string;
|
|
1735
|
+
|
|
1694
1736
|
last_message_at?: Date;
|
|
1695
1737
|
|
|
1696
1738
|
member_count?: number;
|
|
@@ -2177,6 +2219,8 @@ export interface ChannelStateResponse {
|
|
|
2177
2219
|
|
|
2178
2220
|
channel?: ChannelResponse;
|
|
2179
2221
|
|
|
2222
|
+
draft?: DraftResponse;
|
|
2223
|
+
|
|
2180
2224
|
membership?: ChannelMember;
|
|
2181
2225
|
|
|
2182
2226
|
push_preferences?: ChannelPushPreferences;
|
|
@@ -2205,6 +2249,8 @@ export interface ChannelStateResponseFields {
|
|
|
2205
2249
|
|
|
2206
2250
|
channel?: ChannelResponse;
|
|
2207
2251
|
|
|
2252
|
+
draft?: DraftResponse;
|
|
2253
|
+
|
|
2208
2254
|
membership?: ChannelMember;
|
|
2209
2255
|
|
|
2210
2256
|
push_preferences?: ChannelPushPreferences;
|
|
@@ -3186,6 +3232,50 @@ export interface DeviceResponse {
|
|
|
3186
3232
|
voip?: boolean;
|
|
3187
3233
|
}
|
|
3188
3234
|
|
|
3235
|
+
export interface DraftPayloadResponse {
|
|
3236
|
+
id: string;
|
|
3237
|
+
|
|
3238
|
+
text: string;
|
|
3239
|
+
|
|
3240
|
+
custom: Record<string, any>;
|
|
3241
|
+
|
|
3242
|
+
html?: string;
|
|
3243
|
+
|
|
3244
|
+
mml?: string;
|
|
3245
|
+
|
|
3246
|
+
parent_id?: string;
|
|
3247
|
+
|
|
3248
|
+
poll_id?: string;
|
|
3249
|
+
|
|
3250
|
+
quoted_message_id?: string;
|
|
3251
|
+
|
|
3252
|
+
show_in_channel?: boolean;
|
|
3253
|
+
|
|
3254
|
+
silent?: boolean;
|
|
3255
|
+
|
|
3256
|
+
type?: string;
|
|
3257
|
+
|
|
3258
|
+
attachments?: Attachment[];
|
|
3259
|
+
|
|
3260
|
+
mentioned_users?: UserResponse[];
|
|
3261
|
+
}
|
|
3262
|
+
|
|
3263
|
+
export interface DraftResponse {
|
|
3264
|
+
channel_cid: string;
|
|
3265
|
+
|
|
3266
|
+
created_at: Date;
|
|
3267
|
+
|
|
3268
|
+
message: DraftPayloadResponse;
|
|
3269
|
+
|
|
3270
|
+
parent_id?: string;
|
|
3271
|
+
|
|
3272
|
+
channel?: ChannelResponse;
|
|
3273
|
+
|
|
3274
|
+
parent_message?: MessageResponse;
|
|
3275
|
+
|
|
3276
|
+
quoted_message?: MessageResponse;
|
|
3277
|
+
}
|
|
3278
|
+
|
|
3189
3279
|
export interface EdgeResponse {
|
|
3190
3280
|
continent_code: string;
|
|
3191
3281
|
|
|
@@ -3309,6 +3399,8 @@ export interface EntityCreator {
|
|
|
3309
3399
|
|
|
3310
3400
|
custom: Record<string, any>;
|
|
3311
3401
|
|
|
3402
|
+
teams_role: Record<string, string>;
|
|
3403
|
+
|
|
3312
3404
|
ban_expires?: Date;
|
|
3313
3405
|
|
|
3314
3406
|
created_at?: Date;
|
|
@@ -3384,6 +3476,8 @@ export interface EntityCreatorResponse {
|
|
|
3384
3476
|
privacy_settings?: PrivacySettingsResponse;
|
|
3385
3477
|
|
|
3386
3478
|
push_notifications?: PushNotificationSettingsResponse;
|
|
3479
|
+
|
|
3480
|
+
teams_role?: Record<string, string>;
|
|
3387
3481
|
}
|
|
3388
3482
|
|
|
3389
3483
|
export interface ErrorResult {
|
|
@@ -3545,36 +3639,6 @@ export interface FirebaseConfigFields {
|
|
|
3545
3639
|
export interface Flag {
|
|
3546
3640
|
created_at: Date;
|
|
3547
3641
|
|
|
3548
|
-
created_by_automod: boolean;
|
|
3549
|
-
|
|
3550
|
-
updated_at: Date;
|
|
3551
|
-
|
|
3552
|
-
approved_at?: Date;
|
|
3553
|
-
|
|
3554
|
-
reason?: string;
|
|
3555
|
-
|
|
3556
|
-
rejected_at?: Date;
|
|
3557
|
-
|
|
3558
|
-
reviewed_at?: Date;
|
|
3559
|
-
|
|
3560
|
-
reviewed_by?: string;
|
|
3561
|
-
|
|
3562
|
-
target_message_id?: string;
|
|
3563
|
-
|
|
3564
|
-
custom?: Record<string, any>;
|
|
3565
|
-
|
|
3566
|
-
details?: FlagDetails;
|
|
3567
|
-
|
|
3568
|
-
target_message?: Message;
|
|
3569
|
-
|
|
3570
|
-
target_user?: User;
|
|
3571
|
-
|
|
3572
|
-
user?: User;
|
|
3573
|
-
}
|
|
3574
|
-
|
|
3575
|
-
export interface Flag2 {
|
|
3576
|
-
created_at: Date;
|
|
3577
|
-
|
|
3578
3642
|
entity_id: string;
|
|
3579
3643
|
|
|
3580
3644
|
entity_type: string;
|
|
@@ -3602,36 +3666,6 @@ export interface Flag2 {
|
|
|
3602
3666
|
user?: User;
|
|
3603
3667
|
}
|
|
3604
3668
|
|
|
3605
|
-
export interface Flag2Response {
|
|
3606
|
-
created_at: Date;
|
|
3607
|
-
|
|
3608
|
-
entity_id: string;
|
|
3609
|
-
|
|
3610
|
-
entity_type: string;
|
|
3611
|
-
|
|
3612
|
-
updated_at: Date;
|
|
3613
|
-
|
|
3614
|
-
user_id: string;
|
|
3615
|
-
|
|
3616
|
-
result: Array<Record<string, any>>;
|
|
3617
|
-
|
|
3618
|
-
entity_creator_id?: string;
|
|
3619
|
-
|
|
3620
|
-
reason?: string;
|
|
3621
|
-
|
|
3622
|
-
review_queue_item_id?: string;
|
|
3623
|
-
|
|
3624
|
-
type?: string;
|
|
3625
|
-
|
|
3626
|
-
labels?: string[];
|
|
3627
|
-
|
|
3628
|
-
custom?: Record<string, any>;
|
|
3629
|
-
|
|
3630
|
-
moderation_payload?: ModerationPayload;
|
|
3631
|
-
|
|
3632
|
-
user?: UserResponse;
|
|
3633
|
-
}
|
|
3634
|
-
|
|
3635
3669
|
export interface FlagDetails {
|
|
3636
3670
|
original_text: string;
|
|
3637
3671
|
|
|
@@ -3782,6 +3816,8 @@ export interface FullUserResponse {
|
|
|
3782
3816
|
latest_hidden_channels?: string[];
|
|
3783
3817
|
|
|
3784
3818
|
privacy_settings?: PrivacySettingsResponse;
|
|
3819
|
+
|
|
3820
|
+
teams_role?: Record<string, string>;
|
|
3785
3821
|
}
|
|
3786
3822
|
|
|
3787
3823
|
export interface GeofenceResponse {
|
|
@@ -3922,6 +3958,8 @@ export interface GetCampaignResponse {
|
|
|
3922
3958
|
duration: string;
|
|
3923
3959
|
|
|
3924
3960
|
campaign?: CampaignResponse;
|
|
3961
|
+
|
|
3962
|
+
users?: PagerResponse;
|
|
3925
3963
|
}
|
|
3926
3964
|
|
|
3927
3965
|
export interface GetChannelTypeResponse {
|
|
@@ -4020,6 +4058,12 @@ export interface GetCustomPermissionResponse {
|
|
|
4020
4058
|
permission: Permission;
|
|
4021
4059
|
}
|
|
4022
4060
|
|
|
4061
|
+
export interface GetDraftResponse {
|
|
4062
|
+
duration: string;
|
|
4063
|
+
|
|
4064
|
+
draft: DraftResponse;
|
|
4065
|
+
}
|
|
4066
|
+
|
|
4023
4067
|
export interface GetEdgesResponse {
|
|
4024
4068
|
duration: string;
|
|
4025
4069
|
|
|
@@ -4046,18 +4090,6 @@ export interface GetMessageResponse {
|
|
|
4046
4090
|
pending_message_metadata?: Record<string, string>;
|
|
4047
4091
|
}
|
|
4048
4092
|
|
|
4049
|
-
export interface GetModerationAnalyticsRequest {
|
|
4050
|
-
end_date?: string;
|
|
4051
|
-
|
|
4052
|
-
start_date?: string;
|
|
4053
|
-
}
|
|
4054
|
-
|
|
4055
|
-
export interface GetModerationAnalyticsResponse {
|
|
4056
|
-
duration: string;
|
|
4057
|
-
|
|
4058
|
-
analytics?: ModerationAnalytics;
|
|
4059
|
-
}
|
|
4060
|
-
|
|
4061
4093
|
export interface GetOGResponse {
|
|
4062
4094
|
duration: string;
|
|
4063
4095
|
|
|
@@ -4196,16 +4228,6 @@ export interface GetThreadResponse {
|
|
|
4196
4228
|
thread: ThreadStateResponse;
|
|
4197
4229
|
}
|
|
4198
4230
|
|
|
4199
|
-
export interface GetUserModerationReportResponse {
|
|
4200
|
-
duration: string;
|
|
4201
|
-
|
|
4202
|
-
user_blocks: UserBlock[];
|
|
4203
|
-
|
|
4204
|
-
user_mutes: UserMute[];
|
|
4205
|
-
|
|
4206
|
-
user: UserResponse;
|
|
4207
|
-
}
|
|
4208
|
-
|
|
4209
4231
|
export interface GoLiveRequest {
|
|
4210
4232
|
recording_storage_name?: string;
|
|
4211
4233
|
|
|
@@ -4898,6 +4920,10 @@ export interface MessageNewEvent {
|
|
|
4898
4920
|
user?: User;
|
|
4899
4921
|
}
|
|
4900
4922
|
|
|
4923
|
+
export interface MessageOptions {
|
|
4924
|
+
include_thread_participants?: boolean;
|
|
4925
|
+
}
|
|
4926
|
+
|
|
4901
4927
|
export interface MessagePaginationParams {}
|
|
4902
4928
|
|
|
4903
4929
|
export interface MessageReadEvent {
|
|
@@ -5027,6 +5053,8 @@ export interface MessageResponse {
|
|
|
5027
5053
|
|
|
5028
5054
|
thread_participants?: UserResponse[];
|
|
5029
5055
|
|
|
5056
|
+
draft?: DraftResponse;
|
|
5057
|
+
|
|
5030
5058
|
i18n?: Record<string, string>;
|
|
5031
5059
|
|
|
5032
5060
|
image_labels?: Record<string, string[]>;
|
|
@@ -5169,6 +5197,8 @@ export interface MessageWithChannelResponse {
|
|
|
5169
5197
|
|
|
5170
5198
|
thread_participants?: UserResponse[];
|
|
5171
5199
|
|
|
5200
|
+
draft?: DraftResponse;
|
|
5201
|
+
|
|
5172
5202
|
i18n?: Record<string, string>;
|
|
5173
5203
|
|
|
5174
5204
|
image_labels?: Record<string, string[]>;
|
|
@@ -5198,34 +5228,6 @@ export interface ModerationActionConfig {
|
|
|
5198
5228
|
custom: Record<string, any>;
|
|
5199
5229
|
}
|
|
5200
5230
|
|
|
5201
|
-
export interface ModerationAnalytics {
|
|
5202
|
-
total_items_moderated: number;
|
|
5203
|
-
|
|
5204
|
-
ai_image_harms: Array<Record<string, any>>;
|
|
5205
|
-
|
|
5206
|
-
ai_text_harms: Array<Record<string, any>>;
|
|
5207
|
-
|
|
5208
|
-
ai_video_harms: Array<Record<string, any>>;
|
|
5209
|
-
|
|
5210
|
-
blocklist_by_list: Array<Record<string, any>>;
|
|
5211
|
-
|
|
5212
|
-
blocklist_matches: Array<Record<string, any>>;
|
|
5213
|
-
|
|
5214
|
-
model_accuracy: Array<Record<string, any>>;
|
|
5215
|
-
|
|
5216
|
-
moderator_actions: Array<Record<string, any>>;
|
|
5217
|
-
|
|
5218
|
-
moderator_productivity: Array<Record<string, any>>;
|
|
5219
|
-
|
|
5220
|
-
semantic_filter_top_matches: Array<Record<string, any>>;
|
|
5221
|
-
|
|
5222
|
-
sla_metrics: Array<Record<string, any>>;
|
|
5223
|
-
|
|
5224
|
-
action_distribution_over_time: Record<string, Record<string, any>>;
|
|
5225
|
-
|
|
5226
|
-
detection_by_engine_over_time: Record<string, Record<string, any>>;
|
|
5227
|
-
}
|
|
5228
|
-
|
|
5229
5231
|
export interface ModerationCustomActionEvent {
|
|
5230
5232
|
created_at: Date;
|
|
5231
5233
|
|
|
@@ -5238,22 +5240,6 @@ export interface ModerationCustomActionEvent {
|
|
|
5238
5240
|
user?: User;
|
|
5239
5241
|
}
|
|
5240
5242
|
|
|
5241
|
-
export interface ModerationEvent {
|
|
5242
|
-
created_at: Date;
|
|
5243
|
-
|
|
5244
|
-
custom: Record<string, any>;
|
|
5245
|
-
|
|
5246
|
-
type: string;
|
|
5247
|
-
|
|
5248
|
-
received_at?: Date;
|
|
5249
|
-
|
|
5250
|
-
flags?: Flag2Response[];
|
|
5251
|
-
|
|
5252
|
-
action?: ActionLogResponse;
|
|
5253
|
-
|
|
5254
|
-
review_queue_item?: ReviewQueueItemResponse;
|
|
5255
|
-
}
|
|
5256
|
-
|
|
5257
5243
|
export interface ModerationFlaggedEvent {
|
|
5258
5244
|
created_at: Date;
|
|
5259
5245
|
|
|
@@ -5298,22 +5284,6 @@ export interface ModerationResponse {
|
|
|
5298
5284
|
toxic: number;
|
|
5299
5285
|
}
|
|
5300
5286
|
|
|
5301
|
-
export interface ModerationUsageStats {
|
|
5302
|
-
app_pk: number;
|
|
5303
|
-
|
|
5304
|
-
id: number;
|
|
5305
|
-
|
|
5306
|
-
organization_id: number;
|
|
5307
|
-
|
|
5308
|
-
reference_date: Date;
|
|
5309
|
-
|
|
5310
|
-
updated_at: Date;
|
|
5311
|
-
|
|
5312
|
-
usage_amount: number;
|
|
5313
|
-
|
|
5314
|
-
usage_type: string;
|
|
5315
|
-
}
|
|
5316
|
-
|
|
5317
5287
|
export interface ModerationV2Response {
|
|
5318
5288
|
action: string;
|
|
5319
5289
|
|
|
@@ -5330,20 +5300,6 @@ export interface ModerationV2Response {
|
|
|
5330
5300
|
text_harms?: string[];
|
|
5331
5301
|
}
|
|
5332
5302
|
|
|
5333
|
-
export interface ModeratorStats {
|
|
5334
|
-
id: string;
|
|
5335
|
-
|
|
5336
|
-
items_reviewed: number;
|
|
5337
|
-
|
|
5338
|
-
action_counts: Record<string, number>;
|
|
5339
|
-
}
|
|
5340
|
-
|
|
5341
|
-
export interface ModeratorStatsResponse {
|
|
5342
|
-
duration: string;
|
|
5343
|
-
|
|
5344
|
-
moderator_stats: ModeratorStats[];
|
|
5345
|
-
}
|
|
5346
|
-
|
|
5347
5303
|
export interface MuteChannelRequest {
|
|
5348
5304
|
expiration?: number;
|
|
5349
5305
|
|
|
@@ -5564,6 +5520,8 @@ export interface OwnUser {
|
|
|
5564
5520
|
privacy_settings?: PrivacySettings;
|
|
5565
5521
|
|
|
5566
5522
|
push_preferences?: PushPreferences;
|
|
5523
|
+
|
|
5524
|
+
teams_role?: Record<string, string>;
|
|
5567
5525
|
}
|
|
5568
5526
|
|
|
5569
5527
|
export interface OwnUserResponse {
|
|
@@ -5620,6 +5578,14 @@ export interface OwnUserResponse {
|
|
|
5620
5578
|
privacy_settings?: PrivacySettingsResponse;
|
|
5621
5579
|
|
|
5622
5580
|
push_preferences?: PushPreferences;
|
|
5581
|
+
|
|
5582
|
+
teams_role?: Record<string, string>;
|
|
5583
|
+
}
|
|
5584
|
+
|
|
5585
|
+
export interface PagerResponse {
|
|
5586
|
+
next?: string;
|
|
5587
|
+
|
|
5588
|
+
prev?: string;
|
|
5623
5589
|
}
|
|
5624
5590
|
|
|
5625
5591
|
export interface PaginationParams {
|
|
@@ -6239,6 +6205,8 @@ export interface QueryCampaignsRequest {
|
|
|
6239
6205
|
|
|
6240
6206
|
prev?: string;
|
|
6241
6207
|
|
|
6208
|
+
user_limit?: number;
|
|
6209
|
+
|
|
6242
6210
|
sort?: SortParamRequest[];
|
|
6243
6211
|
|
|
6244
6212
|
filter?: Record<string, any>;
|
|
@@ -6280,6 +6248,32 @@ export interface QueryChannelsResponse {
|
|
|
6280
6248
|
channels: ChannelStateResponseFields[];
|
|
6281
6249
|
}
|
|
6282
6250
|
|
|
6251
|
+
export interface QueryDraftsRequest {
|
|
6252
|
+
limit?: number;
|
|
6253
|
+
|
|
6254
|
+
next?: string;
|
|
6255
|
+
|
|
6256
|
+
prev?: string;
|
|
6257
|
+
|
|
6258
|
+
user_id?: string;
|
|
6259
|
+
|
|
6260
|
+
sort?: SortParamRequest[];
|
|
6261
|
+
|
|
6262
|
+
filter?: Record<string, any>;
|
|
6263
|
+
|
|
6264
|
+
user?: UserRequest;
|
|
6265
|
+
}
|
|
6266
|
+
|
|
6267
|
+
export interface QueryDraftsResponse {
|
|
6268
|
+
duration: string;
|
|
6269
|
+
|
|
6270
|
+
drafts: DraftResponse[];
|
|
6271
|
+
|
|
6272
|
+
next?: string;
|
|
6273
|
+
|
|
6274
|
+
prev?: string;
|
|
6275
|
+
}
|
|
6276
|
+
|
|
6283
6277
|
export interface QueryFeedModerationTemplate {
|
|
6284
6278
|
created_at: Date;
|
|
6285
6279
|
|
|
@@ -6582,32 +6576,6 @@ export interface QueryThreadsResponse {
|
|
|
6582
6576
|
prev?: string;
|
|
6583
6577
|
}
|
|
6584
6578
|
|
|
6585
|
-
export interface QueryUsageStatsRequest {
|
|
6586
|
-
limit?: number;
|
|
6587
|
-
|
|
6588
|
-
next?: string;
|
|
6589
|
-
|
|
6590
|
-
prev?: string;
|
|
6591
|
-
|
|
6592
|
-
user_id?: string;
|
|
6593
|
-
|
|
6594
|
-
sort?: SortParamRequest[];
|
|
6595
|
-
|
|
6596
|
-
filter?: Record<string, any>;
|
|
6597
|
-
|
|
6598
|
-
user?: UserRequest;
|
|
6599
|
-
}
|
|
6600
|
-
|
|
6601
|
-
export interface QueryUsageStatsResponse {
|
|
6602
|
-
duration: string;
|
|
6603
|
-
|
|
6604
|
-
items: ModerationUsageStats[];
|
|
6605
|
-
|
|
6606
|
-
next?: string;
|
|
6607
|
-
|
|
6608
|
-
prev?: string;
|
|
6609
|
-
}
|
|
6610
|
-
|
|
6611
6579
|
export interface QueryUserFeedbackRequest {
|
|
6612
6580
|
limit?: number;
|
|
6613
6581
|
|
|
@@ -6654,14 +6622,6 @@ export interface QueryUsersResponse {
|
|
|
6654
6622
|
users: FullUserResponse[];
|
|
6655
6623
|
}
|
|
6656
6624
|
|
|
6657
|
-
export interface QueueStatsResponse {
|
|
6658
|
-
avg_time_to_action: number;
|
|
6659
|
-
|
|
6660
|
-
duration: string;
|
|
6661
|
-
|
|
6662
|
-
time_to_action_buckets: Record<string, number>;
|
|
6663
|
-
}
|
|
6664
|
-
|
|
6665
6625
|
export interface RTMPBroadcastRequest {
|
|
6666
6626
|
name: string;
|
|
6667
6627
|
|
|
@@ -6989,6 +6949,8 @@ export interface ReviewQueueItem {
|
|
|
6989
6949
|
|
|
6990
6950
|
entity_type: string;
|
|
6991
6951
|
|
|
6952
|
+
flags_count: number;
|
|
6953
|
+
|
|
6992
6954
|
has_image: boolean;
|
|
6993
6955
|
|
|
6994
6956
|
has_text: boolean;
|
|
@@ -7013,7 +6975,7 @@ export interface ReviewQueueItem {
|
|
|
7013
6975
|
|
|
7014
6976
|
bans: Ban[];
|
|
7015
6977
|
|
|
7016
|
-
flags:
|
|
6978
|
+
flags: Flag[];
|
|
7017
6979
|
|
|
7018
6980
|
languages: string[];
|
|
7019
6981
|
|
|
@@ -7038,6 +7000,22 @@ export interface ReviewQueueItem {
|
|
|
7038
7000
|
reaction?: Reaction;
|
|
7039
7001
|
}
|
|
7040
7002
|
|
|
7003
|
+
export interface ReviewQueueItemNewEvent {
|
|
7004
|
+
created_at: Date;
|
|
7005
|
+
|
|
7006
|
+
custom: Record<string, any>;
|
|
7007
|
+
|
|
7008
|
+
type: string;
|
|
7009
|
+
|
|
7010
|
+
received_at?: Date;
|
|
7011
|
+
|
|
7012
|
+
flags?: FlagResponse[];
|
|
7013
|
+
|
|
7014
|
+
action?: ActionLogResponse;
|
|
7015
|
+
|
|
7016
|
+
review_queue_item?: ReviewQueueItemResponse;
|
|
7017
|
+
}
|
|
7018
|
+
|
|
7041
7019
|
export interface ReviewQueueItemResponse {
|
|
7042
7020
|
ai_text_severity: string;
|
|
7043
7021
|
|
|
@@ -7047,6 +7025,8 @@ export interface ReviewQueueItemResponse {
|
|
|
7047
7025
|
|
|
7048
7026
|
entity_type: string;
|
|
7049
7027
|
|
|
7028
|
+
flags_count: number;
|
|
7029
|
+
|
|
7050
7030
|
id: string;
|
|
7051
7031
|
|
|
7052
7032
|
recommended_action: string;
|
|
@@ -7063,7 +7043,7 @@ export interface ReviewQueueItemResponse {
|
|
|
7063
7043
|
|
|
7064
7044
|
bans: Ban[];
|
|
7065
7045
|
|
|
7066
|
-
flags:
|
|
7046
|
+
flags: FlagResponse[];
|
|
7067
7047
|
|
|
7068
7048
|
languages: string[];
|
|
7069
7049
|
|
|
@@ -7092,6 +7072,22 @@ export interface ReviewQueueItemResponse {
|
|
|
7092
7072
|
reaction?: Reaction;
|
|
7093
7073
|
}
|
|
7094
7074
|
|
|
7075
|
+
export interface ReviewQueueItemUpdatedEvent {
|
|
7076
|
+
created_at: Date;
|
|
7077
|
+
|
|
7078
|
+
custom: Record<string, any>;
|
|
7079
|
+
|
|
7080
|
+
type: string;
|
|
7081
|
+
|
|
7082
|
+
received_at?: Date;
|
|
7083
|
+
|
|
7084
|
+
flags?: FlagResponse[];
|
|
7085
|
+
|
|
7086
|
+
action?: ActionLogResponse;
|
|
7087
|
+
|
|
7088
|
+
review_queue_item?: ReviewQueueItemResponse;
|
|
7089
|
+
}
|
|
7090
|
+
|
|
7095
7091
|
export interface RingSettings {
|
|
7096
7092
|
auto_cancel_timeout_ms: number;
|
|
7097
7093
|
|
|
@@ -7192,6 +7188,8 @@ export interface SearchPayload {
|
|
|
7192
7188
|
sort?: SortParamRequest[];
|
|
7193
7189
|
|
|
7194
7190
|
message_filter_conditions?: Record<string, any>;
|
|
7191
|
+
|
|
7192
|
+
message_options?: MessageOptions;
|
|
7195
7193
|
}
|
|
7196
7194
|
|
|
7197
7195
|
export interface SearchResponse {
|
|
@@ -7277,6 +7275,8 @@ export interface SearchResultMessage {
|
|
|
7277
7275
|
|
|
7278
7276
|
channel?: ChannelResponse;
|
|
7279
7277
|
|
|
7278
|
+
draft?: DraftResponse;
|
|
7279
|
+
|
|
7280
7280
|
i18n?: Record<string, string>;
|
|
7281
7281
|
|
|
7282
7282
|
image_labels?: Record<string, string[]>;
|
|
@@ -7462,6 +7462,8 @@ export interface StartCampaignResponse {
|
|
|
7462
7462
|
duration: string;
|
|
7463
7463
|
|
|
7464
7464
|
campaign?: CampaignResponse;
|
|
7465
|
+
|
|
7466
|
+
users?: PagerResponse;
|
|
7465
7467
|
}
|
|
7466
7468
|
|
|
7467
7469
|
export interface StartClosedCaptionsRequest {
|
|
@@ -7744,6 +7746,8 @@ export interface ThreadStateResponse {
|
|
|
7744
7746
|
|
|
7745
7747
|
created_by?: UserResponse;
|
|
7746
7748
|
|
|
7749
|
+
draft?: DraftResponse;
|
|
7750
|
+
|
|
7747
7751
|
parent_message?: MessageResponse;
|
|
7748
7752
|
}
|
|
7749
7753
|
|
|
@@ -8692,8 +8696,6 @@ export interface UpsertConfigRequest {
|
|
|
8692
8696
|
|
|
8693
8697
|
ai_image_config?: AIImageConfig;
|
|
8694
8698
|
|
|
8695
|
-
ai_image_lite_config?: BodyguardImageAnalysisConfig;
|
|
8696
|
-
|
|
8697
8699
|
ai_text_config?: AITextConfig;
|
|
8698
8700
|
|
|
8699
8701
|
ai_video_config?: AIVideoConfig;
|
|
@@ -8777,6 +8779,8 @@ export interface User {
|
|
|
8777
8779
|
|
|
8778
8780
|
custom: Record<string, any>;
|
|
8779
8781
|
|
|
8782
|
+
teams_role: Record<string, string>;
|
|
8783
|
+
|
|
8780
8784
|
ban_expires?: Date;
|
|
8781
8785
|
|
|
8782
8786
|
created_at?: Date;
|
|
@@ -8826,14 +8830,6 @@ export interface UserBannedEvent {
|
|
|
8826
8830
|
user?: User;
|
|
8827
8831
|
}
|
|
8828
8832
|
|
|
8829
|
-
export interface UserBlock {
|
|
8830
|
-
blocked_by_user_id: string;
|
|
8831
|
-
|
|
8832
|
-
blocked_user_id: string;
|
|
8833
|
-
|
|
8834
|
-
created_at: Date;
|
|
8835
|
-
}
|
|
8836
|
-
|
|
8837
8833
|
export interface UserCustomEventRequest {
|
|
8838
8834
|
type: string;
|
|
8839
8835
|
|
|
@@ -8986,6 +8982,8 @@ export interface UserRequest {
|
|
|
8986
8982
|
custom?: Record<string, any>;
|
|
8987
8983
|
|
|
8988
8984
|
privacy_settings?: PrivacySettingsResponse;
|
|
8985
|
+
|
|
8986
|
+
teams_role?: Record<string, string>;
|
|
8989
8987
|
}
|
|
8990
8988
|
|
|
8991
8989
|
export interface UserResponse {
|
|
@@ -9032,6 +9030,8 @@ export interface UserResponse {
|
|
|
9032
9030
|
privacy_settings?: PrivacySettingsResponse;
|
|
9033
9031
|
|
|
9034
9032
|
push_notifications?: PushNotificationSettingsResponse;
|
|
9033
|
+
|
|
9034
|
+
teams_role?: Record<string, string>;
|
|
9035
9035
|
}
|
|
9036
9036
|
|
|
9037
9037
|
export interface UserResponseCommonFields {
|
|
@@ -9066,6 +9066,8 @@ export interface UserResponseCommonFields {
|
|
|
9066
9066
|
name?: string;
|
|
9067
9067
|
|
|
9068
9068
|
revoke_tokens_issued_before?: Date;
|
|
9069
|
+
|
|
9070
|
+
teams_role?: Record<string, string>;
|
|
9069
9071
|
}
|
|
9070
9072
|
|
|
9071
9073
|
export interface UserResponsePrivacyFields {
|
|
@@ -9104,6 +9106,8 @@ export interface UserResponsePrivacyFields {
|
|
|
9104
9106
|
revoke_tokens_issued_before?: Date;
|
|
9105
9107
|
|
|
9106
9108
|
privacy_settings?: PrivacySettingsResponse;
|
|
9109
|
+
|
|
9110
|
+
teams_role?: Record<string, string>;
|
|
9107
9111
|
}
|
|
9108
9112
|
|
|
9109
9113
|
export interface UserSessionStats {
|
|
@@ -9311,12 +9315,16 @@ export interface VelocityFilterConfigRule {
|
|
|
9311
9315
|
|
|
9312
9316
|
ip_ban: boolean;
|
|
9313
9317
|
|
|
9318
|
+
probation_period: number;
|
|
9319
|
+
|
|
9314
9320
|
shadow_ban: boolean;
|
|
9315
9321
|
|
|
9316
9322
|
slow_spam_threshold: number;
|
|
9317
9323
|
|
|
9318
9324
|
slow_spam_ttl: number;
|
|
9319
9325
|
|
|
9326
|
+
url_only: boolean;
|
|
9327
|
+
|
|
9320
9328
|
slow_spam_ban_duration?: number;
|
|
9321
9329
|
}
|
|
9322
9330
|
|