@stream-io/node-sdk 0.6.7 → 0.7.0
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 +4 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +4 -3
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/models/index.d.ts +26 -21
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +2 -0
- package/src/gen/model-decoders/decoders.ts +2 -4
- package/src/gen/models/index.ts +44 -30
|
@@ -395,6 +395,7 @@ export interface AddBookmarkResponse {
|
|
|
395
395
|
export interface AddCommentReactionRequest {
|
|
396
396
|
type: string;
|
|
397
397
|
create_notification_activity?: boolean;
|
|
398
|
+
enforce_unique?: boolean;
|
|
398
399
|
skip_push?: boolean;
|
|
399
400
|
user_id?: string;
|
|
400
401
|
custom?: Record<string, any>;
|
|
@@ -436,6 +437,7 @@ export interface AddFolderRequest {
|
|
|
436
437
|
export interface AddReactionRequest {
|
|
437
438
|
type: string;
|
|
438
439
|
create_notification_activity?: boolean;
|
|
440
|
+
enforce_unique?: boolean;
|
|
439
441
|
skip_push?: boolean;
|
|
440
442
|
user_id?: string;
|
|
441
443
|
custom?: Record<string, any>;
|
|
@@ -690,6 +692,7 @@ export interface BanActionRequest {
|
|
|
690
692
|
timeout?: number;
|
|
691
693
|
}
|
|
692
694
|
export interface BanOptions {
|
|
695
|
+
delete_messages?: 'soft' | 'pruning' | 'hard';
|
|
693
696
|
duration?: number;
|
|
694
697
|
ip_ban?: boolean;
|
|
695
698
|
reason?: string;
|
|
@@ -715,9 +718,6 @@ export interface BanResponse {
|
|
|
715
718
|
channel?: ChannelResponse;
|
|
716
719
|
user?: UserResponse;
|
|
717
720
|
}
|
|
718
|
-
export interface BlockContentOptions {
|
|
719
|
-
reason?: string;
|
|
720
|
-
}
|
|
721
721
|
export interface BlockListConfig {
|
|
722
722
|
async?: boolean;
|
|
723
723
|
enabled?: boolean;
|
|
@@ -1477,6 +1477,7 @@ export interface CallUserMutedEvent {
|
|
|
1477
1477
|
call_cid: string;
|
|
1478
1478
|
created_at: Date;
|
|
1479
1479
|
from_user_id: string;
|
|
1480
|
+
reason: string;
|
|
1480
1481
|
muted_user_ids: string[];
|
|
1481
1482
|
type: string;
|
|
1482
1483
|
}
|
|
@@ -1514,6 +1515,7 @@ export interface CampaignResponse {
|
|
|
1514
1515
|
name: string;
|
|
1515
1516
|
sender_id: string;
|
|
1516
1517
|
sender_mode: string;
|
|
1518
|
+
sender_visibility: string;
|
|
1517
1519
|
show_channels: boolean;
|
|
1518
1520
|
skip_push: boolean;
|
|
1519
1521
|
skip_webhook: boolean;
|
|
@@ -2167,6 +2169,7 @@ export interface ConfigResponse {
|
|
|
2167
2169
|
key: string;
|
|
2168
2170
|
team: string;
|
|
2169
2171
|
updated_at: Date;
|
|
2172
|
+
supported_video_call_harm_types: string[];
|
|
2170
2173
|
ai_image_config?: AIImageConfig;
|
|
2171
2174
|
ai_text_config?: AITextConfig;
|
|
2172
2175
|
ai_video_config?: AIVideoConfig;
|
|
@@ -3111,8 +3114,10 @@ export interface FeedResponse {
|
|
|
3111
3114
|
deleted_at?: Date;
|
|
3112
3115
|
visibility?: string;
|
|
3113
3116
|
filter_tags?: string[];
|
|
3117
|
+
own_capabilities?: FeedOwnCapability[];
|
|
3114
3118
|
own_follows?: FollowResponse[];
|
|
3115
3119
|
custom?: Record<string, any>;
|
|
3120
|
+
own_membership?: FeedMemberResponse;
|
|
3116
3121
|
}
|
|
3117
3122
|
export interface FeedUpdatedEvent {
|
|
3118
3123
|
created_at: Date;
|
|
@@ -3197,23 +3202,22 @@ export interface FirebaseConfigFields {
|
|
|
3197
3202
|
}
|
|
3198
3203
|
export interface Flag {
|
|
3199
3204
|
created_at: Date;
|
|
3200
|
-
|
|
3205
|
+
entity_id: string;
|
|
3206
|
+
entity_type: string;
|
|
3201
3207
|
updated_at: Date;
|
|
3202
|
-
|
|
3208
|
+
result: Array<Record<string, any>>;
|
|
3209
|
+
entity_creator_id?: string;
|
|
3210
|
+
is_streamed_content?: boolean;
|
|
3211
|
+
moderation_payload_hash?: string;
|
|
3203
3212
|
reason?: string;
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
target_message_id?: string;
|
|
3213
|
+
review_queue_item_id?: string;
|
|
3214
|
+
type?: string;
|
|
3215
|
+
labels?: string[];
|
|
3208
3216
|
custom?: Record<string, any>;
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
target_user?: User;
|
|
3217
|
+
moderation_payload?: ModerationPayload;
|
|
3218
|
+
review_queue_item?: ReviewQueueItem;
|
|
3212
3219
|
user?: User;
|
|
3213
3220
|
}
|
|
3214
|
-
export interface FlagContentOptions {
|
|
3215
|
-
reason?: string;
|
|
3216
|
-
}
|
|
3217
3221
|
export interface FlagDetails {
|
|
3218
3222
|
original_text: string;
|
|
3219
3223
|
extra: Record<string, any>;
|
|
@@ -3628,17 +3632,14 @@ export interface GetOrCreateFeedResponse {
|
|
|
3628
3632
|
followers: FollowResponse[];
|
|
3629
3633
|
following: FollowResponse[];
|
|
3630
3634
|
members: FeedMemberResponse[];
|
|
3631
|
-
own_capabilities: FeedOwnCapability[];
|
|
3632
3635
|
pinned_activities: ActivityPinResponse[];
|
|
3633
3636
|
feed: FeedResponse;
|
|
3634
3637
|
next?: string;
|
|
3635
3638
|
prev?: string;
|
|
3636
|
-
own_follows?: FollowResponse[];
|
|
3637
3639
|
followers_pagination?: PagerResponse;
|
|
3638
3640
|
following_pagination?: PagerResponse;
|
|
3639
3641
|
member_pagination?: PagerResponse;
|
|
3640
3642
|
notification_status?: NotificationStatusResponse;
|
|
3641
|
-
own_membership?: FeedMemberResponse;
|
|
3642
3643
|
}
|
|
3643
3644
|
export interface GetOrCreateFeedViewRequest {
|
|
3644
3645
|
activity_processors?: ActivityProcessorConfig[];
|
|
@@ -3735,8 +3736,11 @@ export interface HLSSettingsResponse {
|
|
|
3735
3736
|
layout: LayoutSettingsResponse;
|
|
3736
3737
|
}
|
|
3737
3738
|
export interface HarmConfig {
|
|
3739
|
+
cooldown_period?: number;
|
|
3738
3740
|
severity?: number;
|
|
3741
|
+
threshold?: number;
|
|
3739
3742
|
action_sequences?: ActionSequence[];
|
|
3743
|
+
harm_types?: string[];
|
|
3740
3744
|
}
|
|
3741
3745
|
export interface HideChannelRequest {
|
|
3742
3746
|
clear_history?: boolean;
|
|
@@ -4453,6 +4457,7 @@ export interface ModerationConfig {
|
|
|
4453
4457
|
key?: string;
|
|
4454
4458
|
team?: string;
|
|
4455
4459
|
updated_at?: Date;
|
|
4460
|
+
supported_video_call_harm_types?: string[];
|
|
4456
4461
|
ai_image_config?: AIImageConfig;
|
|
4457
4462
|
ai_image_lite_config?: BodyguardImageAnalysisConfig;
|
|
4458
4463
|
ai_text_config?: AITextConfig;
|
|
@@ -6018,9 +6023,7 @@ export interface Role {
|
|
|
6018
6023
|
export interface RuleBuilderAction {
|
|
6019
6024
|
type?: string;
|
|
6020
6025
|
ban_options?: BanOptions;
|
|
6021
|
-
flag_content_options?: FlagContentOptions;
|
|
6022
6026
|
flag_user_options?: FlagUserOptions;
|
|
6023
|
-
remove_content_options?: BlockContentOptions;
|
|
6024
6027
|
}
|
|
6025
6028
|
export interface RuleBuilderCondition {
|
|
6026
6029
|
confidence?: number;
|
|
@@ -7578,7 +7581,9 @@ export interface VelocityFilterConfigRule {
|
|
|
7578
7581
|
url_only?: boolean;
|
|
7579
7582
|
}
|
|
7580
7583
|
export interface VideoCallRuleConfig {
|
|
7581
|
-
|
|
7584
|
+
flag_all_labels?: boolean;
|
|
7585
|
+
flagged_labels?: string[];
|
|
7586
|
+
rules?: HarmConfig[];
|
|
7582
7587
|
}
|
|
7583
7588
|
export interface VideoContentParameters {
|
|
7584
7589
|
harm_labels?: string[];
|
package/package.json
CHANGED
|
@@ -426,6 +426,7 @@ export class FeedsApi {
|
|
|
426
426
|
const body = {
|
|
427
427
|
type: request?.type,
|
|
428
428
|
create_notification_activity: request?.create_notification_activity,
|
|
429
|
+
enforce_unique: request?.enforce_unique,
|
|
429
430
|
skip_push: request?.skip_push,
|
|
430
431
|
user_id: request?.user_id,
|
|
431
432
|
custom: request?.custom,
|
|
@@ -897,6 +898,7 @@ export class FeedsApi {
|
|
|
897
898
|
const body = {
|
|
898
899
|
type: request?.type,
|
|
899
900
|
create_notification_activity: request?.create_notification_activity,
|
|
901
|
+
enforce_unique: request?.enforce_unique,
|
|
900
902
|
skip_push: request?.skip_push,
|
|
901
903
|
user_id: request?.user_id,
|
|
902
904
|
custom: request?.custom,
|
|
@@ -1973,6 +1973,8 @@ decoders.FeedResponse = (input?: Record<string, any>) => {
|
|
|
1973
1973
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1974
1974
|
|
|
1975
1975
|
own_follows: { type: 'FollowResponse', isSingle: false },
|
|
1976
|
+
|
|
1977
|
+
own_membership: { type: 'FeedMemberResponse', isSingle: true },
|
|
1976
1978
|
};
|
|
1977
1979
|
return decode(typeMappings, input);
|
|
1978
1980
|
};
|
|
@@ -2326,11 +2328,7 @@ decoders.GetOrCreateFeedResponse = (input?: Record<string, any>) => {
|
|
|
2326
2328
|
|
|
2327
2329
|
feed: { type: 'FeedResponse', isSingle: true },
|
|
2328
2330
|
|
|
2329
|
-
own_follows: { type: 'FollowResponse', isSingle: false },
|
|
2330
|
-
|
|
2331
2331
|
notification_status: { type: 'NotificationStatusResponse', isSingle: true },
|
|
2332
|
-
|
|
2333
|
-
own_membership: { type: 'FeedMemberResponse', isSingle: true },
|
|
2334
2332
|
};
|
|
2335
2333
|
return decode(typeMappings, input);
|
|
2336
2334
|
};
|
package/src/gen/models/index.ts
CHANGED
|
@@ -707,6 +707,8 @@ export interface AddCommentReactionRequest {
|
|
|
707
707
|
|
|
708
708
|
create_notification_activity?: boolean;
|
|
709
709
|
|
|
710
|
+
enforce_unique?: boolean;
|
|
711
|
+
|
|
710
712
|
skip_push?: boolean;
|
|
711
713
|
|
|
712
714
|
user_id?: string;
|
|
@@ -775,6 +777,8 @@ export interface AddReactionRequest {
|
|
|
775
777
|
|
|
776
778
|
create_notification_activity?: boolean;
|
|
777
779
|
|
|
780
|
+
enforce_unique?: boolean;
|
|
781
|
+
|
|
778
782
|
skip_push?: boolean;
|
|
779
783
|
|
|
780
784
|
user_id?: string;
|
|
@@ -1231,6 +1235,8 @@ export interface BanActionRequest {
|
|
|
1231
1235
|
}
|
|
1232
1236
|
|
|
1233
1237
|
export interface BanOptions {
|
|
1238
|
+
delete_messages?: 'soft' | 'pruning' | 'hard';
|
|
1239
|
+
|
|
1234
1240
|
duration?: number;
|
|
1235
1241
|
|
|
1236
1242
|
ip_ban?: boolean;
|
|
@@ -1276,10 +1282,6 @@ export interface BanResponse {
|
|
|
1276
1282
|
user?: UserResponse;
|
|
1277
1283
|
}
|
|
1278
1284
|
|
|
1279
|
-
export interface BlockContentOptions {
|
|
1280
|
-
reason?: string;
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
1285
|
export interface BlockListConfig {
|
|
1284
1286
|
async?: boolean;
|
|
1285
1287
|
|
|
@@ -2622,6 +2624,8 @@ export interface CallUserMutedEvent {
|
|
|
2622
2624
|
|
|
2623
2625
|
from_user_id: string;
|
|
2624
2626
|
|
|
2627
|
+
reason: string;
|
|
2628
|
+
|
|
2625
2629
|
muted_user_ids: string[];
|
|
2626
2630
|
|
|
2627
2631
|
type: string;
|
|
@@ -2684,6 +2688,8 @@ export interface CampaignResponse {
|
|
|
2684
2688
|
|
|
2685
2689
|
sender_mode: string;
|
|
2686
2690
|
|
|
2691
|
+
sender_visibility: string;
|
|
2692
|
+
|
|
2687
2693
|
show_channels: boolean;
|
|
2688
2694
|
|
|
2689
2695
|
skip_push: boolean;
|
|
@@ -3850,6 +3856,8 @@ export interface ConfigResponse {
|
|
|
3850
3856
|
|
|
3851
3857
|
updated_at: Date;
|
|
3852
3858
|
|
|
3859
|
+
supported_video_call_harm_types: string[];
|
|
3860
|
+
|
|
3853
3861
|
ai_image_config?: AIImageConfig;
|
|
3854
3862
|
|
|
3855
3863
|
ai_text_config?: AITextConfig;
|
|
@@ -5451,9 +5459,13 @@ export interface FeedResponse {
|
|
|
5451
5459
|
|
|
5452
5460
|
filter_tags?: string[];
|
|
5453
5461
|
|
|
5462
|
+
own_capabilities?: FeedOwnCapability[];
|
|
5463
|
+
|
|
5454
5464
|
own_follows?: FollowResponse[];
|
|
5455
5465
|
|
|
5456
5466
|
custom?: Record<string, any>;
|
|
5467
|
+
|
|
5468
|
+
own_membership?: FeedMemberResponse;
|
|
5457
5469
|
}
|
|
5458
5470
|
|
|
5459
5471
|
export interface FeedUpdatedEvent {
|
|
@@ -5597,35 +5609,35 @@ export interface FirebaseConfigFields {
|
|
|
5597
5609
|
export interface Flag {
|
|
5598
5610
|
created_at: Date;
|
|
5599
5611
|
|
|
5600
|
-
|
|
5612
|
+
entity_id: string;
|
|
5613
|
+
|
|
5614
|
+
entity_type: string;
|
|
5601
5615
|
|
|
5602
5616
|
updated_at: Date;
|
|
5603
5617
|
|
|
5604
|
-
|
|
5618
|
+
result: Array<Record<string, any>>;
|
|
5605
5619
|
|
|
5606
|
-
|
|
5620
|
+
entity_creator_id?: string;
|
|
5607
5621
|
|
|
5608
|
-
|
|
5622
|
+
is_streamed_content?: boolean;
|
|
5609
5623
|
|
|
5610
|
-
|
|
5624
|
+
moderation_payload_hash?: string;
|
|
5611
5625
|
|
|
5612
|
-
|
|
5626
|
+
reason?: string;
|
|
5613
5627
|
|
|
5614
|
-
|
|
5628
|
+
review_queue_item_id?: string;
|
|
5615
5629
|
|
|
5616
|
-
|
|
5630
|
+
type?: string;
|
|
5617
5631
|
|
|
5618
|
-
|
|
5632
|
+
labels?: string[];
|
|
5619
5633
|
|
|
5620
|
-
|
|
5634
|
+
custom?: Record<string, any>;
|
|
5621
5635
|
|
|
5622
|
-
|
|
5636
|
+
moderation_payload?: ModerationPayload;
|
|
5623
5637
|
|
|
5624
|
-
|
|
5625
|
-
}
|
|
5638
|
+
review_queue_item?: ReviewQueueItem;
|
|
5626
5639
|
|
|
5627
|
-
|
|
5628
|
-
reason?: string;
|
|
5640
|
+
user?: User;
|
|
5629
5641
|
}
|
|
5630
5642
|
|
|
5631
5643
|
export interface FlagDetails {
|
|
@@ -6346,8 +6358,6 @@ export interface GetOrCreateFeedResponse {
|
|
|
6346
6358
|
|
|
6347
6359
|
members: FeedMemberResponse[];
|
|
6348
6360
|
|
|
6349
|
-
own_capabilities: FeedOwnCapability[];
|
|
6350
|
-
|
|
6351
6361
|
pinned_activities: ActivityPinResponse[];
|
|
6352
6362
|
|
|
6353
6363
|
feed: FeedResponse;
|
|
@@ -6356,8 +6366,6 @@ export interface GetOrCreateFeedResponse {
|
|
|
6356
6366
|
|
|
6357
6367
|
prev?: string;
|
|
6358
6368
|
|
|
6359
|
-
own_follows?: FollowResponse[];
|
|
6360
|
-
|
|
6361
6369
|
followers_pagination?: PagerResponse;
|
|
6362
6370
|
|
|
6363
6371
|
following_pagination?: PagerResponse;
|
|
@@ -6365,8 +6373,6 @@ export interface GetOrCreateFeedResponse {
|
|
|
6365
6373
|
member_pagination?: PagerResponse;
|
|
6366
6374
|
|
|
6367
6375
|
notification_status?: NotificationStatusResponse;
|
|
6368
|
-
|
|
6369
|
-
own_membership?: FeedMemberResponse;
|
|
6370
6376
|
}
|
|
6371
6377
|
|
|
6372
6378
|
export interface GetOrCreateFeedViewRequest {
|
|
@@ -6522,9 +6528,15 @@ export interface HLSSettingsResponse {
|
|
|
6522
6528
|
}
|
|
6523
6529
|
|
|
6524
6530
|
export interface HarmConfig {
|
|
6531
|
+
cooldown_period?: number;
|
|
6532
|
+
|
|
6525
6533
|
severity?: number;
|
|
6526
6534
|
|
|
6535
|
+
threshold?: number;
|
|
6536
|
+
|
|
6527
6537
|
action_sequences?: ActionSequence[];
|
|
6538
|
+
|
|
6539
|
+
harm_types?: string[];
|
|
6528
6540
|
}
|
|
6529
6541
|
|
|
6530
6542
|
export interface HideChannelRequest {
|
|
@@ -7779,6 +7791,8 @@ export interface ModerationConfig {
|
|
|
7779
7791
|
|
|
7780
7792
|
updated_at?: Date;
|
|
7781
7793
|
|
|
7794
|
+
supported_video_call_harm_types?: string[];
|
|
7795
|
+
|
|
7782
7796
|
ai_image_config?: AIImageConfig;
|
|
7783
7797
|
|
|
7784
7798
|
ai_image_lite_config?: BodyguardImageAnalysisConfig;
|
|
@@ -10521,11 +10535,7 @@ export interface RuleBuilderAction {
|
|
|
10521
10535
|
|
|
10522
10536
|
ban_options?: BanOptions;
|
|
10523
10537
|
|
|
10524
|
-
flag_content_options?: FlagContentOptions;
|
|
10525
|
-
|
|
10526
10538
|
flag_user_options?: FlagUserOptions;
|
|
10527
|
-
|
|
10528
|
-
remove_content_options?: BlockContentOptions;
|
|
10529
10539
|
}
|
|
10530
10540
|
|
|
10531
10541
|
export interface RuleBuilderCondition {
|
|
@@ -13436,7 +13446,11 @@ export interface VelocityFilterConfigRule {
|
|
|
13436
13446
|
}
|
|
13437
13447
|
|
|
13438
13448
|
export interface VideoCallRuleConfig {
|
|
13439
|
-
|
|
13449
|
+
flag_all_labels?: boolean;
|
|
13450
|
+
|
|
13451
|
+
flagged_labels?: string[];
|
|
13452
|
+
|
|
13453
|
+
rules?: HarmConfig[];
|
|
13440
13454
|
}
|
|
13441
13455
|
|
|
13442
13456
|
export interface VideoContentParameters {
|