@stream-io/node-sdk 0.4.2 → 0.4.3
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 +167 -133
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +167 -133
- package/dist/index.es.js.map +1 -1
- package/dist/src/StreamChannel.d.ts +2 -2
- package/dist/src/StreamClient.d.ts +2 -2
- package/dist/src/gen/chat/ChannelApi.d.ts +4 -1
- package/dist/src/gen/chat/ChatApi.d.ts +10 -5
- package/dist/src/gen/models/index.d.ts +40 -14
- package/package.json +1 -1
- package/src/StreamChannel.ts +2 -2
- package/src/StreamClient.ts +2 -2
- package/src/gen/chat/ChannelApi.ts +17 -0
- package/src/gen/chat/ChatApi.ts +42 -8
- package/src/gen/model-decoders/index.ts +31 -19
- package/src/gen/models/index.ts +60 -16
- package/src/gen/moderation/ModerationApi.ts +2 -0
package/src/gen/models/index.ts
CHANGED
|
@@ -1089,6 +1089,8 @@ export interface ChannelMember {
|
|
|
1089
1089
|
|
|
1090
1090
|
updated_at: Date;
|
|
1091
1091
|
|
|
1092
|
+
custom: Record<string, any>;
|
|
1093
|
+
|
|
1092
1094
|
ban_expires?: Date;
|
|
1093
1095
|
|
|
1094
1096
|
deleted_at?: Date;
|
|
@@ -1121,6 +1123,8 @@ export interface ChannelMemberResponse {
|
|
|
1121
1123
|
|
|
1122
1124
|
updated_at: Date;
|
|
1123
1125
|
|
|
1126
|
+
custom: Record<string, any>;
|
|
1127
|
+
|
|
1124
1128
|
ban_expires?: Date;
|
|
1125
1129
|
|
|
1126
1130
|
deleted_at?: Date;
|
|
@@ -1225,7 +1229,7 @@ export interface ChannelStateResponse {
|
|
|
1225
1229
|
|
|
1226
1230
|
watcher_count?: number;
|
|
1227
1231
|
|
|
1228
|
-
pending_messages?:
|
|
1232
|
+
pending_messages?: PendingMessageResponse[];
|
|
1229
1233
|
|
|
1230
1234
|
read?: ReadStateResponse[];
|
|
1231
1235
|
|
|
@@ -1251,7 +1255,7 @@ export interface ChannelStateResponseFields {
|
|
|
1251
1255
|
|
|
1252
1256
|
watcher_count?: number;
|
|
1253
1257
|
|
|
1254
|
-
pending_messages?:
|
|
1258
|
+
pending_messages?: PendingMessageResponse[];
|
|
1255
1259
|
|
|
1256
1260
|
read?: ReadStateResponse[];
|
|
1257
1261
|
|
|
@@ -1500,6 +1504,8 @@ export interface ConfigResponse {
|
|
|
1500
1504
|
bodyguard_config?: BodyguardConfig;
|
|
1501
1505
|
|
|
1502
1506
|
go_og_le_vision_config?: GoogleVisionConfig;
|
|
1507
|
+
|
|
1508
|
+
velocity_filter_config?: VelocityFilterConfig;
|
|
1503
1509
|
}
|
|
1504
1510
|
|
|
1505
1511
|
export interface Coordinates {
|
|
@@ -1904,7 +1910,9 @@ export interface DeactivateUsersResponse {
|
|
|
1904
1910
|
task_id: string;
|
|
1905
1911
|
}
|
|
1906
1912
|
|
|
1907
|
-
export interface DeleteActivityRequest {
|
|
1913
|
+
export interface DeleteActivityRequest {
|
|
1914
|
+
hard_delete?: boolean;
|
|
1915
|
+
}
|
|
1908
1916
|
|
|
1909
1917
|
export interface DeleteCallRequest {
|
|
1910
1918
|
hard?: boolean;
|
|
@@ -2399,6 +2407,8 @@ export interface FullUserResponse {
|
|
|
2399
2407
|
|
|
2400
2408
|
unread_channels: number;
|
|
2401
2409
|
|
|
2410
|
+
unread_count: number;
|
|
2411
|
+
|
|
2402
2412
|
unread_threads: number;
|
|
2403
2413
|
|
|
2404
2414
|
updated_at: Date;
|
|
@@ -3369,6 +3379,8 @@ export interface MessageFlagResponse {
|
|
|
3369
3379
|
}
|
|
3370
3380
|
|
|
3371
3381
|
export interface MessageHistoryEntryResponse {
|
|
3382
|
+
is_deleted: boolean;
|
|
3383
|
+
|
|
3372
3384
|
message_id: string;
|
|
3373
3385
|
|
|
3374
3386
|
message_updated_at: Date;
|
|
@@ -3641,8 +3653,6 @@ export interface ModerationActionConfig {
|
|
|
3641
3653
|
}
|
|
3642
3654
|
|
|
3643
3655
|
export interface ModerationPayload {
|
|
3644
|
-
created_at?: Date;
|
|
3645
|
-
|
|
3646
3656
|
images?: string[];
|
|
3647
3657
|
|
|
3648
3658
|
texts?: string[];
|
|
@@ -3870,14 +3880,14 @@ export interface PaginationParams {
|
|
|
3870
3880
|
offset?: number;
|
|
3871
3881
|
}
|
|
3872
3882
|
|
|
3873
|
-
export interface
|
|
3874
|
-
channel?:
|
|
3883
|
+
export interface PendingMessageResponse {
|
|
3884
|
+
channel?: ChannelResponse;
|
|
3875
3885
|
|
|
3876
|
-
message?:
|
|
3886
|
+
message?: MessageResponse;
|
|
3877
3887
|
|
|
3878
3888
|
metadata?: Record<string, string>;
|
|
3879
3889
|
|
|
3880
|
-
user?:
|
|
3890
|
+
user?: UserResponse;
|
|
3881
3891
|
}
|
|
3882
3892
|
|
|
3883
3893
|
export interface Permission {
|
|
@@ -4306,7 +4316,7 @@ export interface PushProviderResponse {
|
|
|
4306
4316
|
xiaomi_package_name?: string;
|
|
4307
4317
|
}
|
|
4308
4318
|
|
|
4309
|
-
export interface
|
|
4319
|
+
export interface QueryBannedUsersPayload {
|
|
4310
4320
|
filter_conditions: Record<string, any>;
|
|
4311
4321
|
|
|
4312
4322
|
exclude_expired_bans?: boolean;
|
|
@@ -4440,7 +4450,7 @@ export interface QueryFeedModerationTemplatesResponse {
|
|
|
4440
4450
|
templates: QueryFeedModerationTemplate[];
|
|
4441
4451
|
}
|
|
4442
4452
|
|
|
4443
|
-
export interface
|
|
4453
|
+
export interface QueryMembersPayload {
|
|
4444
4454
|
type: string;
|
|
4445
4455
|
|
|
4446
4456
|
filter_conditions: Record<string, any>;
|
|
@@ -4460,7 +4470,7 @@ export interface QueryMembersRequest {
|
|
|
4460
4470
|
user?: UserRequest;
|
|
4461
4471
|
}
|
|
4462
4472
|
|
|
4463
|
-
export interface
|
|
4473
|
+
export interface QueryMessageFlagsPayload {
|
|
4464
4474
|
limit?: number;
|
|
4465
4475
|
|
|
4466
4476
|
offset?: number;
|
|
@@ -5092,7 +5102,7 @@ export interface ScreensharingSettingsResponse {
|
|
|
5092
5102
|
target_resolution?: TargetResolution;
|
|
5093
5103
|
}
|
|
5094
5104
|
|
|
5095
|
-
export interface
|
|
5105
|
+
export interface SearchPayload {
|
|
5096
5106
|
filter_conditions: Record<string, any>;
|
|
5097
5107
|
|
|
5098
5108
|
limit?: number;
|
|
@@ -5368,7 +5378,7 @@ export interface StopTranscriptionResponse {
|
|
|
5368
5378
|
|
|
5369
5379
|
export interface SubmitActionRequest {
|
|
5370
5380
|
action_type:
|
|
5371
|
-
| '
|
|
5381
|
+
| 'mark_reviewed'
|
|
5372
5382
|
| 'delete_message'
|
|
5373
5383
|
| 'delete_activity'
|
|
5374
5384
|
| 'delete_reaction'
|
|
@@ -5387,6 +5397,8 @@ export interface SubmitActionRequest {
|
|
|
5387
5397
|
|
|
5388
5398
|
custom?: CustomActionRequest;
|
|
5389
5399
|
|
|
5400
|
+
delete_activity?: DeleteActivityRequest;
|
|
5401
|
+
|
|
5390
5402
|
delete_message?: DeleteMessageRequest;
|
|
5391
5403
|
|
|
5392
5404
|
delete_reaction?: DeleteReactionRequest;
|
|
@@ -5533,7 +5545,7 @@ export interface ThreadStateResponse {
|
|
|
5533
5545
|
|
|
5534
5546
|
updated_at: Date;
|
|
5535
5547
|
|
|
5536
|
-
latest_replies:
|
|
5548
|
+
latest_replies: MessageResponse[];
|
|
5537
5549
|
|
|
5538
5550
|
custom: Record<string, any>;
|
|
5539
5551
|
|
|
@@ -5692,7 +5704,7 @@ export interface TruncateChannelResponse {
|
|
|
5692
5704
|
|
|
5693
5705
|
channel?: ChannelResponse;
|
|
5694
5706
|
|
|
5695
|
-
message?:
|
|
5707
|
+
message?: MessageResponse;
|
|
5696
5708
|
}
|
|
5697
5709
|
|
|
5698
5710
|
export interface TypingIndicators {
|
|
@@ -6197,6 +6209,18 @@ export interface UpdateExternalStorageResponse {
|
|
|
6197
6209
|
type: 's3' | 'gcs' | 'abs';
|
|
6198
6210
|
}
|
|
6199
6211
|
|
|
6212
|
+
export interface UpdateMemberPartialRequest {
|
|
6213
|
+
unset?: string[];
|
|
6214
|
+
|
|
6215
|
+
set?: Record<string, any>;
|
|
6216
|
+
}
|
|
6217
|
+
|
|
6218
|
+
export interface UpdateMemberPartialResponse {
|
|
6219
|
+
duration: string;
|
|
6220
|
+
|
|
6221
|
+
channel_member?: ChannelMemberResponse;
|
|
6222
|
+
}
|
|
6223
|
+
|
|
6200
6224
|
export interface UpdateMessagePartialRequest {
|
|
6201
6225
|
skip_enrich_url?: boolean;
|
|
6202
6226
|
|
|
@@ -6351,6 +6375,8 @@ export interface UpsertConfigRequest {
|
|
|
6351
6375
|
bodyguard_config?: BodyguardConfig;
|
|
6352
6376
|
|
|
6353
6377
|
go_og_le_vision_config?: GoogleVisionConfig;
|
|
6378
|
+
|
|
6379
|
+
velocity_filter_config?: VelocityFilterConfig;
|
|
6354
6380
|
}
|
|
6355
6381
|
|
|
6356
6382
|
export interface UpsertConfigResponse {
|
|
@@ -6546,6 +6572,8 @@ export interface UserSessionStats {
|
|
|
6546
6572
|
|
|
6547
6573
|
max_freezes_duration_seconds: number;
|
|
6548
6574
|
|
|
6575
|
+
min_event_ts: number;
|
|
6576
|
+
|
|
6549
6577
|
packet_loss_fraction: number;
|
|
6550
6578
|
|
|
6551
6579
|
publisher_packet_loss_fraction: number;
|
|
@@ -6653,6 +6681,22 @@ export interface UserStats {
|
|
|
6653
6681
|
rating?: number;
|
|
6654
6682
|
}
|
|
6655
6683
|
|
|
6684
|
+
export interface VelocityFilterConfig {
|
|
6685
|
+
enabled?: boolean;
|
|
6686
|
+
|
|
6687
|
+
rule?: VelocityFilterConfigRule[];
|
|
6688
|
+
}
|
|
6689
|
+
|
|
6690
|
+
export interface VelocityFilterConfigRule {
|
|
6691
|
+
action: 'flag' | 'shadow' | 'remove' | 'ban';
|
|
6692
|
+
|
|
6693
|
+
ip_ban?: boolean;
|
|
6694
|
+
|
|
6695
|
+
shadow_ban?: boolean;
|
|
6696
|
+
|
|
6697
|
+
timeout?: Date;
|
|
6698
|
+
}
|
|
6699
|
+
|
|
6656
6700
|
export interface VideoQuality {
|
|
6657
6701
|
usage_type?: string;
|
|
6658
6702
|
|
|
@@ -104,6 +104,7 @@ export class ModerationApi extends BaseApi {
|
|
|
104
104
|
block_list_config: request?.block_list_config,
|
|
105
105
|
bodyguard_config: request?.bodyguard_config,
|
|
106
106
|
go_og_le_vision_config: request?.go_og_le_vision_config,
|
|
107
|
+
velocity_filter_config: request?.velocity_filter_config,
|
|
107
108
|
};
|
|
108
109
|
|
|
109
110
|
const response = await this.sendRequest<
|
|
@@ -362,6 +363,7 @@ export class ModerationApi extends BaseApi {
|
|
|
362
363
|
user_id: request?.user_id,
|
|
363
364
|
ban: request?.ban,
|
|
364
365
|
custom: request?.custom,
|
|
366
|
+
delete_activity: request?.delete_activity,
|
|
365
367
|
delete_message: request?.delete_message,
|
|
366
368
|
delete_reaction: request?.delete_reaction,
|
|
367
369
|
delete_user: request?.delete_user,
|