@stream-io/node-sdk 0.7.17 → 0.7.19

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.
@@ -511,6 +511,8 @@ export interface ActivityRequest {
511
511
 
512
512
  attachments?: Attachment[];
513
513
 
514
+ collection_refs?: string[];
515
+
514
516
  filter_tags?: string[];
515
517
 
516
518
  interest_tags?: string[];
@@ -571,6 +573,8 @@ export interface ActivityResponse {
571
573
 
572
574
  own_reactions: FeedsReactionResponse[];
573
575
 
576
+ collections: Record<string, EnrichedCollectionResponse>;
577
+
574
578
  custom: Record<string, any>;
575
579
 
576
580
  reaction_groups: Record<string, ReactionGroupResponse>;
@@ -701,6 +705,8 @@ export interface AddActivityRequest {
701
705
 
702
706
  attachments?: Attachment[];
703
707
 
708
+ collection_refs?: string[];
709
+
704
710
  filter_tags?: string[];
705
711
 
706
712
  interest_tags?: string[];
@@ -771,6 +777,8 @@ export interface AddCommentRequest {
771
777
 
772
778
  create_notification_activity?: boolean;
773
779
 
780
+ id?: string;
781
+
774
782
  parent_id?: string;
775
783
 
776
784
  skip_push?: boolean;
@@ -853,7 +861,7 @@ export interface AggregatedActivityResponse {
853
861
  }
854
862
 
855
863
  export interface AggregationConfig {
856
- format?: string;
864
+ format: string;
857
865
  }
858
866
 
859
867
  export interface AnyEvent {
@@ -3636,6 +3644,30 @@ export interface CollectUserFeedbackResponse {
3636
3644
  duration: string;
3637
3645
  }
3638
3646
 
3647
+ export interface CollectionRequest {
3648
+ name: string;
3649
+
3650
+ custom: Record<string, any>;
3651
+
3652
+ id?: string;
3653
+
3654
+ user_id?: string;
3655
+ }
3656
+
3657
+ export interface CollectionResponse {
3658
+ created_at: Date;
3659
+
3660
+ id: string;
3661
+
3662
+ name: string;
3663
+
3664
+ updated_at: Date;
3665
+
3666
+ custom: Record<string, any>;
3667
+
3668
+ user_id?: string;
3669
+ }
3670
+
3639
3671
  export interface Command {
3640
3672
  args: string;
3641
3673
 
@@ -4086,6 +4118,20 @@ export interface CreateChannelTypeResponse {
4086
4118
  automod_thresholds?: Thresholds;
4087
4119
  }
4088
4120
 
4121
+ export interface CreateCollectionsRequest {
4122
+ collections: CollectionRequest[];
4123
+
4124
+ user_id?: string;
4125
+
4126
+ user?: UserRequest;
4127
+ }
4128
+
4129
+ export interface CreateCollectionsResponse {
4130
+ duration: string;
4131
+
4132
+ collections: CollectionResponse[];
4133
+ }
4134
+
4089
4135
  export interface CreateCommandRequest {
4090
4136
  description: string;
4091
4137
 
@@ -4172,8 +4218,6 @@ export interface CreateFeedGroupResponse {
4172
4218
  export interface CreateFeedViewRequest {
4173
4219
  id: string;
4174
4220
 
4175
- activity_processors?: ActivityProcessorConfig[];
4176
-
4177
4221
  activity_selectors?: ActivitySelectorConfig[];
4178
4222
 
4179
4223
  aggregation?: AggregationConfig;
@@ -4547,6 +4591,10 @@ export interface DeleteChannelsResultResponse {
4547
4591
  error?: string;
4548
4592
  }
4549
4593
 
4594
+ export interface DeleteCollectionsResponse {
4595
+ duration: string;
4596
+ }
4597
+
4550
4598
  export interface DeleteCommandResponse {
4551
4599
  duration: string;
4552
4600
 
@@ -4901,6 +4949,22 @@ export interface EnrichedActivity {
4901
4949
  target?: Data;
4902
4950
  }
4903
4951
 
4952
+ export interface EnrichedCollectionResponse {
4953
+ created_at: Date;
4954
+
4955
+ id: string;
4956
+
4957
+ name: string;
4958
+
4959
+ status: 'ok' | 'notfound';
4960
+
4961
+ updated_at: Date;
4962
+
4963
+ custom: Record<string, any>;
4964
+
4965
+ user_id?: string;
4966
+ }
4967
+
4904
4968
  export interface EnrichedReaction {
4905
4969
  activity_id: string;
4906
4970
 
@@ -5524,8 +5588,6 @@ export interface FeedViewResponse {
5524
5588
 
5525
5589
  last_used_at?: Date;
5526
5590
 
5527
- activity_processors?: ActivityProcessorConfig[];
5528
-
5529
5591
  activity_selectors?: ActivitySelectorConfigResponse[];
5530
5592
 
5531
5593
  aggregation?: AggregationConfig;
@@ -6383,8 +6445,6 @@ export interface GetOrCreateFeedRequest {
6383
6445
 
6384
6446
  watch?: boolean;
6385
6447
 
6386
- activity_selector_options?: Record<string, any>;
6387
-
6388
6448
  data?: FeedInput;
6389
6449
 
6390
6450
  external_ranking?: Record<string, any>;
@@ -6435,8 +6495,6 @@ export interface GetOrCreateFeedResponse {
6435
6495
  }
6436
6496
 
6437
6497
  export interface GetOrCreateFeedViewRequest {
6438
- activity_processors?: ActivityProcessorConfig[];
6439
-
6440
6498
  activity_selectors?: ActivitySelectorConfig[];
6441
6499
 
6442
6500
  aggregation?: AggregationConfig;
@@ -9182,15 +9240,21 @@ export interface QualityScoreReportResponse {
9182
9240
  }
9183
9241
 
9184
9242
  export interface QueryActivitiesRequest {
9243
+ include_private_activities?: boolean;
9244
+
9185
9245
  limit?: number;
9186
9246
 
9187
9247
  next?: string;
9188
9248
 
9189
9249
  prev?: string;
9190
9250
 
9251
+ user_id?: string;
9252
+
9191
9253
  sort?: SortParamRequest[];
9192
9254
 
9193
9255
  filter?: Record<string, any>;
9256
+
9257
+ user?: UserRequest;
9194
9258
  }
9195
9259
 
9196
9260
  export interface QueryActivitiesResponse {
@@ -10337,6 +10401,12 @@ export interface ReactivateUsersResponse {
10337
10401
  task_id: string;
10338
10402
  }
10339
10403
 
10404
+ export interface ReadCollectionsResponse {
10405
+ duration: string;
10406
+
10407
+ collections: CollectionResponse[];
10408
+ }
10409
+
10340
10410
  export interface ReadReceipts {
10341
10411
  enabled: boolean;
10342
10412
  }
@@ -12216,6 +12286,8 @@ export interface UpdateActivityRequest {
12216
12286
 
12217
12287
  attachments?: Attachment[];
12218
12288
 
12289
+ collection_refs?: string[];
12290
+
12219
12291
  feeds?: string[];
12220
12292
 
12221
12293
  filter_tags?: string[];
@@ -12645,6 +12717,28 @@ export interface UpdateChannelTypeResponse {
12645
12717
  automod_thresholds?: Thresholds;
12646
12718
  }
12647
12719
 
12720
+ export interface UpdateCollectionRequest {
12721
+ id: string;
12722
+
12723
+ name: string;
12724
+
12725
+ custom: Record<string, any>;
12726
+ }
12727
+
12728
+ export interface UpdateCollectionsRequest {
12729
+ collections: UpdateCollectionRequest[];
12730
+
12731
+ user_id?: string;
12732
+
12733
+ user?: UserRequest;
12734
+ }
12735
+
12736
+ export interface UpdateCollectionsResponse {
12737
+ duration: string;
12738
+
12739
+ collections: CollectionResponse[];
12740
+ }
12741
+
12648
12742
  export interface UpdateCommandRequest {
12649
12743
  description: string;
12650
12744
 
@@ -12769,8 +12863,6 @@ export interface UpdateFeedResponse {
12769
12863
  }
12770
12864
 
12771
12865
  export interface UpdateFeedViewRequest {
12772
- activity_processors?: ActivityProcessorConfig[];
12773
-
12774
12866
  activity_selectors?: ActivitySelectorConfig[];
12775
12867
 
12776
12868
  aggregation?: AggregationConfig;
@@ -13066,6 +13158,16 @@ export interface UpsertActivitiesResponse {
13066
13158
  activities: ActivityResponse[];
13067
13159
  }
13068
13160
 
13161
+ export interface UpsertCollectionsRequest {
13162
+ collections: CollectionRequest[];
13163
+ }
13164
+
13165
+ export interface UpsertCollectionsResponse {
13166
+ duration: string;
13167
+
13168
+ collections: CollectionResponse[];
13169
+ }
13170
+
13069
13171
  export interface UpsertConfigRequest {
13070
13172
  key: string;
13071
13173