@stream-io/node-sdk 0.7.13 → 0.7.14

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.
@@ -322,17 +322,17 @@ export interface ActivityResponse {
322
322
  poll?: PollResponseData;
323
323
  }
324
324
  export interface ActivitySelectorConfig {
325
- cutoff_time?: Date;
325
+ type: 'popular' | 'proximity' | 'following' | 'current_feed' | 'query' | 'interest';
326
+ cutoff_time?: string;
326
327
  min_popularity?: number;
327
- type?: string;
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
- type?: string;
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
  }
@@ -7024,6 +7032,7 @@ export interface UpdateExternalStorageResponse {
7024
7032
  type: 's3' | 'gcs' | 'abs';
7025
7033
  }
7026
7034
  export interface UpdateFeedGroupRequest {
7035
+ default_visibility?: 'public' | 'visible' | 'followers' | 'members' | 'private';
7027
7036
  activity_processors?: ActivityProcessorConfig[];
7028
7037
  activity_selectors?: ActivitySelectorConfig[];
7029
7038
  aggregation?: AggregationConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.7.13",
3
+ "version": "0.7.14",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -1494,6 +1494,7 @@ export class FeedsApi {
1494
1494
  id: request?.id,
1495
1495
  };
1496
1496
  const body = {
1497
+ default_visibility: request?.default_visibility,
1497
1498
  activity_processors: request?.activity_processors,
1498
1499
  activity_selectors: request?.activity_selectors,
1499
1500
  aggregation: request?.aggregation,
@@ -577,25 +577,31 @@ export interface ActivityResponse {
577
577
  }
578
578
 
579
579
  export interface ActivitySelectorConfig {
580
- cutoff_time?: Date;
580
+ type:
581
+ | 'popular'
582
+ | 'proximity'
583
+ | 'following'
584
+ | 'current_feed'
585
+ | 'query'
586
+ | 'interest';
581
587
 
582
- min_popularity?: number;
588
+ cutoff_time?: string;
583
589
 
584
- type?: string;
590
+ min_popularity?: number;
585
591
 
586
- sort?: SortParam[];
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
- type?: string;
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;
@@ -12458,6 +12480,13 @@ export interface UpdateExternalStorageResponse {
12458
12480
  }
12459
12481
 
12460
12482
  export interface UpdateFeedGroupRequest {
12483
+ default_visibility?:
12484
+ | 'public'
12485
+ | 'visible'
12486
+ | 'followers'
12487
+ | 'members'
12488
+ | 'private';
12489
+
12461
12490
  activity_processors?: ActivityProcessorConfig[];
12462
12491
 
12463
12492
  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
  };