@stream-io/node-sdk 0.7.20 → 0.7.22
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 +35 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +35 -6
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +3 -3
- package/dist/src/gen/models/index.d.ts +66 -9
- package/dist/src/gen/video/VideoApi.d.ts +3 -0
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +23 -7
- package/src/gen/model-decoders/decoders.ts +28 -2
- package/src/gen/models/index.ts +113 -15
- package/src/gen/video/VideoApi.ts +6 -0
package/src/gen/models/index.ts
CHANGED
|
@@ -501,6 +501,8 @@ export interface ActivityRequest {
|
|
|
501
501
|
|
|
502
502
|
restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
|
|
503
503
|
|
|
504
|
+
skip_enrich_url?: boolean;
|
|
505
|
+
|
|
504
506
|
text?: string;
|
|
505
507
|
|
|
506
508
|
user_id?: string;
|
|
@@ -695,6 +697,8 @@ export interface AddActivityRequest {
|
|
|
695
697
|
|
|
696
698
|
restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
|
|
697
699
|
|
|
700
|
+
skip_enrich_url?: boolean;
|
|
701
|
+
|
|
698
702
|
text?: string;
|
|
699
703
|
|
|
700
704
|
user_id?: string;
|
|
@@ -769,18 +773,20 @@ export interface AddCommentReactionResponse {
|
|
|
769
773
|
}
|
|
770
774
|
|
|
771
775
|
export interface AddCommentRequest {
|
|
772
|
-
object_id: string;
|
|
773
|
-
|
|
774
|
-
object_type: string;
|
|
775
|
-
|
|
776
776
|
comment?: string;
|
|
777
777
|
|
|
778
778
|
create_notification_activity?: boolean;
|
|
779
779
|
|
|
780
780
|
id?: string;
|
|
781
781
|
|
|
782
|
+
object_id?: string;
|
|
783
|
+
|
|
784
|
+
object_type?: string;
|
|
785
|
+
|
|
782
786
|
parent_id?: string;
|
|
783
787
|
|
|
788
|
+
skip_enrich_url?: boolean;
|
|
789
|
+
|
|
784
790
|
skip_push?: boolean;
|
|
785
791
|
|
|
786
792
|
user_id?: string;
|
|
@@ -861,7 +867,7 @@ export interface AggregatedActivityResponse {
|
|
|
861
867
|
}
|
|
862
868
|
|
|
863
869
|
export interface AggregationConfig {
|
|
864
|
-
format
|
|
870
|
+
format?: string;
|
|
865
871
|
}
|
|
866
872
|
|
|
867
873
|
export interface AnyEvent {
|
|
@@ -1526,7 +1532,7 @@ export interface BookmarkFolderResponse {
|
|
|
1526
1532
|
|
|
1527
1533
|
updated_at: Date;
|
|
1528
1534
|
|
|
1529
|
-
user:
|
|
1535
|
+
user: UserResponse;
|
|
1530
1536
|
|
|
1531
1537
|
custom?: Record<string, any>;
|
|
1532
1538
|
}
|
|
@@ -1552,7 +1558,7 @@ export interface BookmarkResponse {
|
|
|
1552
1558
|
|
|
1553
1559
|
activity: ActivityResponse;
|
|
1554
1560
|
|
|
1555
|
-
user:
|
|
1561
|
+
user: UserResponse;
|
|
1556
1562
|
|
|
1557
1563
|
custom?: Record<string, any>;
|
|
1558
1564
|
|
|
@@ -1974,6 +1980,8 @@ export interface CallRecording {
|
|
|
1974
1980
|
|
|
1975
1981
|
filename: string;
|
|
1976
1982
|
|
|
1983
|
+
recording_type: string;
|
|
1984
|
+
|
|
1977
1985
|
session_id: string;
|
|
1978
1986
|
|
|
1979
1987
|
start_time: Date;
|
|
@@ -2795,6 +2803,54 @@ export interface Channel {
|
|
|
2795
2803
|
truncated_by?: User;
|
|
2796
2804
|
}
|
|
2797
2805
|
|
|
2806
|
+
export interface ChannelBatchUpdatedCompletedEvent {
|
|
2807
|
+
batch_created_at: Date;
|
|
2808
|
+
|
|
2809
|
+
created_at: Date;
|
|
2810
|
+
|
|
2811
|
+
finished_at: Date;
|
|
2812
|
+
|
|
2813
|
+
operation: string;
|
|
2814
|
+
|
|
2815
|
+
status: string;
|
|
2816
|
+
|
|
2817
|
+
success_channels_count: number;
|
|
2818
|
+
|
|
2819
|
+
task_id: string;
|
|
2820
|
+
|
|
2821
|
+
failed_channels: FailedChannelUpdates[];
|
|
2822
|
+
|
|
2823
|
+
custom: Record<string, any>;
|
|
2824
|
+
|
|
2825
|
+
type: string;
|
|
2826
|
+
|
|
2827
|
+
received_at?: Date;
|
|
2828
|
+
}
|
|
2829
|
+
|
|
2830
|
+
export interface ChannelBatchUpdatedStartedEvent {
|
|
2831
|
+
batch_created_at: Date;
|
|
2832
|
+
|
|
2833
|
+
created_at: Date;
|
|
2834
|
+
|
|
2835
|
+
finished_at: Date;
|
|
2836
|
+
|
|
2837
|
+
operation: string;
|
|
2838
|
+
|
|
2839
|
+
status: string;
|
|
2840
|
+
|
|
2841
|
+
success_channels_count: number;
|
|
2842
|
+
|
|
2843
|
+
task_id: string;
|
|
2844
|
+
|
|
2845
|
+
failed_channels: FailedChannelUpdates[];
|
|
2846
|
+
|
|
2847
|
+
custom: Record<string, any>;
|
|
2848
|
+
|
|
2849
|
+
type: string;
|
|
2850
|
+
|
|
2851
|
+
received_at?: Date;
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2798
2854
|
export interface ChannelConfig {
|
|
2799
2855
|
automod: 'disabled' | 'simple' | 'AI';
|
|
2800
2856
|
|
|
@@ -4711,16 +4767,14 @@ export interface DeleteFeedResponse {
|
|
|
4711
4767
|
task_id: string;
|
|
4712
4768
|
}
|
|
4713
4769
|
|
|
4714
|
-
export interface
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
deleted_bookmarks: number;
|
|
4718
|
-
|
|
4719
|
-
deleted_comments: number;
|
|
4720
|
-
|
|
4721
|
-
deleted_reactions: number;
|
|
4770
|
+
export interface DeleteFeedUserDataRequest {
|
|
4771
|
+
hard_delete?: boolean;
|
|
4772
|
+
}
|
|
4722
4773
|
|
|
4774
|
+
export interface DeleteFeedUserDataResponse {
|
|
4723
4775
|
duration: string;
|
|
4776
|
+
|
|
4777
|
+
task_id: string;
|
|
4724
4778
|
}
|
|
4725
4779
|
|
|
4726
4780
|
export interface DeleteFeedViewResponse {
|
|
@@ -5156,6 +5210,8 @@ export interface EventHook {
|
|
|
5156
5210
|
|
|
5157
5211
|
product?: string;
|
|
5158
5212
|
|
|
5213
|
+
should_send_custom_events?: boolean;
|
|
5214
|
+
|
|
5159
5215
|
sns_auth_type?: string;
|
|
5160
5216
|
|
|
5161
5217
|
sns_key?: string;
|
|
@@ -5279,6 +5335,12 @@ export interface FCM {
|
|
|
5279
5335
|
data?: Record<string, any>;
|
|
5280
5336
|
}
|
|
5281
5337
|
|
|
5338
|
+
export interface FailedChannelUpdates {
|
|
5339
|
+
reason: string;
|
|
5340
|
+
|
|
5341
|
+
cids: string[];
|
|
5342
|
+
}
|
|
5343
|
+
|
|
5282
5344
|
export interface FeedCreatedEvent {
|
|
5283
5345
|
created_at: Date;
|
|
5284
5346
|
|
|
@@ -5702,6 +5764,8 @@ export interface FeedsPreferences {
|
|
|
5702
5764
|
|
|
5703
5765
|
comment_reaction?: 'all' | 'none';
|
|
5704
5766
|
|
|
5767
|
+
comment_reply?: 'all' | 'none';
|
|
5768
|
+
|
|
5705
5769
|
follow?: 'all' | 'none';
|
|
5706
5770
|
|
|
5707
5771
|
mention?: 'all' | 'none';
|
|
@@ -5839,6 +5903,10 @@ export interface Flag {
|
|
|
5839
5903
|
user?: User;
|
|
5840
5904
|
}
|
|
5841
5905
|
|
|
5906
|
+
export interface FlagCountRuleParameters {
|
|
5907
|
+
threshold?: number;
|
|
5908
|
+
}
|
|
5909
|
+
|
|
5842
5910
|
export interface FlagDetails {
|
|
5843
5911
|
original_text: string;
|
|
5844
5912
|
|
|
@@ -6541,6 +6609,8 @@ export interface GetOrCreateFeedGroupResponse {
|
|
|
6541
6609
|
}
|
|
6542
6610
|
|
|
6543
6611
|
export interface GetOrCreateFeedRequest {
|
|
6612
|
+
id_around?: string;
|
|
6613
|
+
|
|
6544
6614
|
limit?: number;
|
|
6545
6615
|
|
|
6546
6616
|
next?: string;
|
|
@@ -8353,7 +8423,19 @@ export interface NoiseCancellationSettings {
|
|
|
8353
8423
|
mode: 'available' | 'disabled' | 'auto-on';
|
|
8354
8424
|
}
|
|
8355
8425
|
|
|
8426
|
+
export interface NotificationComment {
|
|
8427
|
+
comment: string;
|
|
8428
|
+
|
|
8429
|
+
id: string;
|
|
8430
|
+
|
|
8431
|
+
user_id: string;
|
|
8432
|
+
|
|
8433
|
+
attachments?: Attachment[];
|
|
8434
|
+
}
|
|
8435
|
+
|
|
8356
8436
|
export interface NotificationConfig {
|
|
8437
|
+
deduplication_window?: string;
|
|
8438
|
+
|
|
8357
8439
|
track_read?: boolean;
|
|
8358
8440
|
|
|
8359
8441
|
track_seen?: boolean;
|
|
@@ -8463,12 +8545,16 @@ export interface NotificationTarget {
|
|
|
8463
8545
|
user_id?: string;
|
|
8464
8546
|
|
|
8465
8547
|
attachments?: Attachment[];
|
|
8548
|
+
|
|
8549
|
+
comment?: NotificationComment;
|
|
8466
8550
|
}
|
|
8467
8551
|
|
|
8468
8552
|
export interface NotificationTrigger {
|
|
8469
8553
|
text: string;
|
|
8470
8554
|
|
|
8471
8555
|
type: string;
|
|
8556
|
+
|
|
8557
|
+
comment?: NotificationComment;
|
|
8472
8558
|
}
|
|
8473
8559
|
|
|
8474
8560
|
export interface OCRRule {
|
|
@@ -10990,6 +11076,8 @@ export interface RuleBuilderCondition {
|
|
|
10990
11076
|
|
|
10991
11077
|
content_count_rule_params?: ContentCountRuleParameters;
|
|
10992
11078
|
|
|
11079
|
+
content_flag_count_rule_params?: FlagCountRuleParameters;
|
|
11080
|
+
|
|
10993
11081
|
image_content_params?: ImageContentParameters;
|
|
10994
11082
|
|
|
10995
11083
|
image_rule_params?: ImageRuleParameters;
|
|
@@ -11002,6 +11090,8 @@ export interface RuleBuilderCondition {
|
|
|
11002
11090
|
|
|
11003
11091
|
user_custom_property_params?: UserCustomPropertyParameters;
|
|
11004
11092
|
|
|
11093
|
+
user_flag_count_rule_params?: FlagCountRuleParameters;
|
|
11094
|
+
|
|
11005
11095
|
user_rule_params?: UserRuleParameters;
|
|
11006
11096
|
|
|
11007
11097
|
video_content_params?: VideoContentParameters;
|
|
@@ -12654,6 +12744,8 @@ export interface UpdateActivityRequest {
|
|
|
12654
12744
|
|
|
12655
12745
|
restrict_replies?: 'everyone' | 'people_i_follow' | 'nobody';
|
|
12656
12746
|
|
|
12747
|
+
skip_enrich_url?: boolean;
|
|
12748
|
+
|
|
12657
12749
|
text?: string;
|
|
12658
12750
|
|
|
12659
12751
|
user_id?: string;
|
|
@@ -13138,6 +13230,8 @@ export interface UpdateCommandResponse {
|
|
|
13138
13230
|
export interface UpdateCommentRequest {
|
|
13139
13231
|
comment?: string;
|
|
13140
13232
|
|
|
13233
|
+
skip_enrich_url?: boolean;
|
|
13234
|
+
|
|
13141
13235
|
skip_push?: boolean;
|
|
13142
13236
|
|
|
13143
13237
|
user_id?: string;
|
|
@@ -14412,6 +14506,10 @@ export type WebhookEvent =
|
|
|
14412
14506
|
| ({ type: 'channel.unmuted' } & ChannelUnmutedEvent)
|
|
14413
14507
|
| ({ type: 'channel.updated' } & ChannelUpdatedEvent)
|
|
14414
14508
|
| ({ type: 'channel.visible' } & ChannelVisibleEvent)
|
|
14509
|
+
| ({
|
|
14510
|
+
type: 'channel_batch_update.completed';
|
|
14511
|
+
} & ChannelBatchUpdatedCompletedEvent)
|
|
14512
|
+
| ({ type: 'channel_batch_update.started' } & ChannelBatchUpdatedStartedEvent)
|
|
14415
14513
|
| ({ type: 'custom' } & CustomVideoEvent)
|
|
14416
14514
|
| ({ type: 'export.bulk_image_moderation.error' } & AsyncExportErrorEvent)
|
|
14417
14515
|
| ({
|
|
@@ -1297,10 +1297,16 @@ export class VideoApi {
|
|
|
1297
1297
|
call_type: string;
|
|
1298
1298
|
call_id: string;
|
|
1299
1299
|
session: string;
|
|
1300
|
+
limit?: number;
|
|
1301
|
+
prev?: string;
|
|
1302
|
+
next?: string;
|
|
1300
1303
|
sort?: SortParamRequest[];
|
|
1301
1304
|
filter_conditions?: Record<string, any>;
|
|
1302
1305
|
}): Promise<StreamResponse<QueryCallSessionParticipantStatsResponse>> {
|
|
1303
1306
|
const queryParams = {
|
|
1307
|
+
limit: request?.limit,
|
|
1308
|
+
prev: request?.prev,
|
|
1309
|
+
next: request?.next,
|
|
1304
1310
|
sort: request?.sort,
|
|
1305
1311
|
filter_conditions: request?.filter_conditions,
|
|
1306
1312
|
};
|