@stream-io/node-sdk 0.7.13 → 0.7.15
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 +5 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +5 -1
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/models/index.d.ts +16 -5
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +3 -0
- package/src/gen/models/index.ts +41 -8
- package/src/gen/moderation/ModerationApi.ts +1 -0
|
@@ -322,17 +322,17 @@ export interface ActivityResponse {
|
|
|
322
322
|
poll?: PollResponseData;
|
|
323
323
|
}
|
|
324
324
|
export interface ActivitySelectorConfig {
|
|
325
|
-
|
|
325
|
+
type: 'popular' | 'proximity' | 'following' | 'current_feed' | 'query' | 'interest';
|
|
326
|
+
cutoff_time?: string;
|
|
326
327
|
min_popularity?: number;
|
|
327
|
-
|
|
328
|
-
sort?: SortParam[];
|
|
328
|
+
sort?: SortParamRequest[];
|
|
329
329
|
filter?: Record<string, any>;
|
|
330
330
|
}
|
|
331
331
|
export interface ActivitySelectorConfigResponse {
|
|
332
|
+
type: string;
|
|
332
333
|
cutoff_time?: Date;
|
|
333
334
|
min_popularity?: number;
|
|
334
|
-
|
|
335
|
-
sort?: SortParam[];
|
|
335
|
+
sort?: SortParamRequest[];
|
|
336
336
|
filter?: Record<string, any>;
|
|
337
337
|
}
|
|
338
338
|
export interface ActivityUnpinnedEvent {
|
|
@@ -2472,6 +2472,7 @@ export interface DeleteActivityReactionResponse {
|
|
|
2472
2472
|
}
|
|
2473
2473
|
export interface DeleteActivityRequest {
|
|
2474
2474
|
hard_delete?: boolean;
|
|
2475
|
+
reason?: string;
|
|
2475
2476
|
}
|
|
2476
2477
|
export interface DeleteActivityResponse {
|
|
2477
2478
|
duration: string;
|
|
@@ -2544,6 +2545,7 @@ export interface DeleteFeedViewResponse {
|
|
|
2544
2545
|
}
|
|
2545
2546
|
export interface DeleteMessageRequest {
|
|
2546
2547
|
hard_delete?: boolean;
|
|
2548
|
+
reason?: string;
|
|
2547
2549
|
}
|
|
2548
2550
|
export interface DeleteMessageResponse {
|
|
2549
2551
|
duration: string;
|
|
@@ -2560,6 +2562,7 @@ export interface DeleteModerationTemplateResponse {
|
|
|
2560
2562
|
}
|
|
2561
2563
|
export interface DeleteReactionRequest {
|
|
2562
2564
|
hard_delete?: boolean;
|
|
2565
|
+
reason?: string;
|
|
2563
2566
|
}
|
|
2564
2567
|
export interface DeleteReactionResponse {
|
|
2565
2568
|
duration: string;
|
|
@@ -2583,6 +2586,7 @@ export interface DeleteUserRequest {
|
|
|
2583
2586
|
delete_feeds_content?: boolean;
|
|
2584
2587
|
hard_delete?: boolean;
|
|
2585
2588
|
mark_messages_deleted?: boolean;
|
|
2589
|
+
reason?: string;
|
|
2586
2590
|
}
|
|
2587
2591
|
export interface DeleteUsersRequest {
|
|
2588
2592
|
user_ids: string[];
|
|
@@ -4431,6 +4435,7 @@ export interface ModerationDashboardPreferences {
|
|
|
4431
4435
|
disable_flagging_reviewed_entity?: boolean;
|
|
4432
4436
|
flag_user_on_flagged_content?: boolean;
|
|
4433
4437
|
media_queue_blur_enabled?: boolean;
|
|
4438
|
+
allowed_moderation_action_reasons?: string[];
|
|
4434
4439
|
overview_dashboard?: OverviewDashboardConfig;
|
|
4435
4440
|
}
|
|
4436
4441
|
export interface ModerationFlagResponse {
|
|
@@ -5944,6 +5949,7 @@ export interface ReviewQueueItemResponse {
|
|
|
5944
5949
|
entity_type: string;
|
|
5945
5950
|
flags_count: number;
|
|
5946
5951
|
id: string;
|
|
5952
|
+
latest_moderator_action: string;
|
|
5947
5953
|
recommended_action: string;
|
|
5948
5954
|
reviewed_by: string;
|
|
5949
5955
|
severity: number;
|
|
@@ -6233,6 +6239,7 @@ export interface SessionSettingsResponse {
|
|
|
6233
6239
|
inactivity_timeout_seconds: number;
|
|
6234
6240
|
}
|
|
6235
6241
|
export interface ShadowBlockActionRequest {
|
|
6242
|
+
reason?: string;
|
|
6236
6243
|
}
|
|
6237
6244
|
export interface SharedLocation {
|
|
6238
6245
|
channel_cid: string;
|
|
@@ -6427,6 +6434,7 @@ export interface SubmitActionRequest {
|
|
|
6427
6434
|
delete_reaction?: DeleteReactionRequest;
|
|
6428
6435
|
delete_user?: DeleteUserRequest;
|
|
6429
6436
|
mark_reviewed?: MarkReviewedRequest;
|
|
6437
|
+
shadow_block?: ShadowBlockActionRequest;
|
|
6430
6438
|
unban?: UnbanActionRequest;
|
|
6431
6439
|
user?: UserRequest;
|
|
6432
6440
|
}
|
|
@@ -7002,7 +7010,9 @@ export interface UpdateCommandResponse {
|
|
|
7002
7010
|
export interface UpdateCommentRequest {
|
|
7003
7011
|
comment?: string;
|
|
7004
7012
|
skip_push?: boolean;
|
|
7013
|
+
user_id?: string;
|
|
7005
7014
|
custom?: Record<string, any>;
|
|
7015
|
+
user?: UserRequest;
|
|
7006
7016
|
}
|
|
7007
7017
|
export interface UpdateCommentResponse {
|
|
7008
7018
|
duration: string;
|
|
@@ -7024,6 +7034,7 @@ export interface UpdateExternalStorageResponse {
|
|
|
7024
7034
|
type: 's3' | 'gcs' | 'abs';
|
|
7025
7035
|
}
|
|
7026
7036
|
export interface UpdateFeedGroupRequest {
|
|
7037
|
+
default_visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
|
|
7027
7038
|
activity_processors?: ActivityProcessorConfig[];
|
|
7028
7039
|
activity_selectors?: ActivitySelectorConfig[];
|
|
7029
7040
|
aggregation?: AggregationConfig;
|
package/package.json
CHANGED
|
@@ -878,7 +878,9 @@ export class FeedsApi {
|
|
|
878
878
|
const body = {
|
|
879
879
|
comment: request?.comment,
|
|
880
880
|
skip_push: request?.skip_push,
|
|
881
|
+
user_id: request?.user_id,
|
|
881
882
|
custom: request?.custom,
|
|
883
|
+
user: request?.user,
|
|
882
884
|
};
|
|
883
885
|
|
|
884
886
|
const response = await this.apiClient.sendRequest<
|
|
@@ -1494,6 +1496,7 @@ export class FeedsApi {
|
|
|
1494
1496
|
id: request?.id,
|
|
1495
1497
|
};
|
|
1496
1498
|
const body = {
|
|
1499
|
+
default_visibility: request?.default_visibility,
|
|
1497
1500
|
activity_processors: request?.activity_processors,
|
|
1498
1501
|
activity_selectors: request?.activity_selectors,
|
|
1499
1502
|
aggregation: request?.aggregation,
|
package/src/gen/models/index.ts
CHANGED
|
@@ -577,25 +577,31 @@ export interface ActivityResponse {
|
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
export interface ActivitySelectorConfig {
|
|
580
|
-
|
|
580
|
+
type:
|
|
581
|
+
| 'popular'
|
|
582
|
+
| 'proximity'
|
|
583
|
+
| 'following'
|
|
584
|
+
| 'current_feed'
|
|
585
|
+
| 'query'
|
|
586
|
+
| 'interest';
|
|
581
587
|
|
|
582
|
-
|
|
588
|
+
cutoff_time?: string;
|
|
583
589
|
|
|
584
|
-
|
|
590
|
+
min_popularity?: number;
|
|
585
591
|
|
|
586
|
-
sort?:
|
|
592
|
+
sort?: SortParamRequest[];
|
|
587
593
|
|
|
588
594
|
filter?: Record<string, any>;
|
|
589
595
|
}
|
|
590
596
|
|
|
591
597
|
export interface ActivitySelectorConfigResponse {
|
|
598
|
+
type: string;
|
|
599
|
+
|
|
592
600
|
cutoff_time?: Date;
|
|
593
601
|
|
|
594
602
|
min_popularity?: number;
|
|
595
603
|
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
sort?: SortParam[];
|
|
604
|
+
sort?: SortParamRequest[];
|
|
599
605
|
|
|
600
606
|
filter?: Record<string, any>;
|
|
601
607
|
}
|
|
@@ -4357,6 +4363,8 @@ export interface DeleteActivityReactionResponse {
|
|
|
4357
4363
|
|
|
4358
4364
|
export interface DeleteActivityRequest {
|
|
4359
4365
|
hard_delete?: boolean;
|
|
4366
|
+
|
|
4367
|
+
reason?: string;
|
|
4360
4368
|
}
|
|
4361
4369
|
|
|
4362
4370
|
export interface DeleteActivityResponse {
|
|
@@ -4465,6 +4473,8 @@ export interface DeleteFeedViewResponse {
|
|
|
4465
4473
|
|
|
4466
4474
|
export interface DeleteMessageRequest {
|
|
4467
4475
|
hard_delete?: boolean;
|
|
4476
|
+
|
|
4477
|
+
reason?: string;
|
|
4468
4478
|
}
|
|
4469
4479
|
|
|
4470
4480
|
export interface DeleteMessageResponse {
|
|
@@ -4487,6 +4497,8 @@ export interface DeleteModerationTemplateResponse {
|
|
|
4487
4497
|
|
|
4488
4498
|
export interface DeleteReactionRequest {
|
|
4489
4499
|
hard_delete?: boolean;
|
|
4500
|
+
|
|
4501
|
+
reason?: string;
|
|
4490
4502
|
}
|
|
4491
4503
|
|
|
4492
4504
|
export interface DeleteReactionResponse {
|
|
@@ -4521,6 +4533,8 @@ export interface DeleteUserRequest {
|
|
|
4521
4533
|
hard_delete?: boolean;
|
|
4522
4534
|
|
|
4523
4535
|
mark_messages_deleted?: boolean;
|
|
4536
|
+
|
|
4537
|
+
reason?: string;
|
|
4524
4538
|
}
|
|
4525
4539
|
|
|
4526
4540
|
export interface DeleteUsersRequest {
|
|
@@ -7732,6 +7746,8 @@ export interface ModerationDashboardPreferences {
|
|
|
7732
7746
|
|
|
7733
7747
|
media_queue_blur_enabled?: boolean;
|
|
7734
7748
|
|
|
7749
|
+
allowed_moderation_action_reasons?: string[];
|
|
7750
|
+
|
|
7735
7751
|
overview_dashboard?: OverviewDashboardConfig;
|
|
7736
7752
|
}
|
|
7737
7753
|
|
|
@@ -10368,6 +10384,8 @@ export interface ReviewQueueItemResponse {
|
|
|
10368
10384
|
|
|
10369
10385
|
id: string;
|
|
10370
10386
|
|
|
10387
|
+
latest_moderator_action: string;
|
|
10388
|
+
|
|
10371
10389
|
recommended_action: string;
|
|
10372
10390
|
|
|
10373
10391
|
reviewed_by: string;
|
|
@@ -10875,7 +10893,9 @@ export interface SessionSettingsResponse {
|
|
|
10875
10893
|
inactivity_timeout_seconds: number;
|
|
10876
10894
|
}
|
|
10877
10895
|
|
|
10878
|
-
export interface ShadowBlockActionRequest {
|
|
10896
|
+
export interface ShadowBlockActionRequest {
|
|
10897
|
+
reason?: string;
|
|
10898
|
+
}
|
|
10879
10899
|
|
|
10880
10900
|
export interface SharedLocation {
|
|
10881
10901
|
channel_cid: string;
|
|
@@ -11264,6 +11284,8 @@ export interface SubmitActionRequest {
|
|
|
11264
11284
|
|
|
11265
11285
|
mark_reviewed?: MarkReviewedRequest;
|
|
11266
11286
|
|
|
11287
|
+
shadow_block?: ShadowBlockActionRequest;
|
|
11288
|
+
|
|
11267
11289
|
unban?: UnbanActionRequest;
|
|
11268
11290
|
|
|
11269
11291
|
user?: UserRequest;
|
|
@@ -12422,7 +12444,11 @@ export interface UpdateCommentRequest {
|
|
|
12422
12444
|
|
|
12423
12445
|
skip_push?: boolean;
|
|
12424
12446
|
|
|
12447
|
+
user_id?: string;
|
|
12448
|
+
|
|
12425
12449
|
custom?: Record<string, any>;
|
|
12450
|
+
|
|
12451
|
+
user?: UserRequest;
|
|
12426
12452
|
}
|
|
12427
12453
|
|
|
12428
12454
|
export interface UpdateCommentResponse {
|
|
@@ -12458,6 +12484,13 @@ export interface UpdateExternalStorageResponse {
|
|
|
12458
12484
|
}
|
|
12459
12485
|
|
|
12460
12486
|
export interface UpdateFeedGroupRequest {
|
|
12487
|
+
default_visibility?:
|
|
12488
|
+
| 'public'
|
|
12489
|
+
| 'visible'
|
|
12490
|
+
| 'followers'
|
|
12491
|
+
| 'members'
|
|
12492
|
+
| 'private';
|
|
12493
|
+
|
|
12461
12494
|
activity_processors?: ActivityProcessorConfig[];
|
|
12462
12495
|
|
|
12463
12496
|
activity_selectors?: ActivitySelectorConfig[];
|
|
@@ -590,6 +590,7 @@ export class ModerationApi {
|
|
|
590
590
|
delete_reaction: request?.delete_reaction,
|
|
591
591
|
delete_user: request?.delete_user,
|
|
592
592
|
mark_reviewed: request?.mark_reviewed,
|
|
593
|
+
shadow_block: request?.shadow_block,
|
|
593
594
|
unban: request?.unban,
|
|
594
595
|
user: request?.user,
|
|
595
596
|
};
|