@stream-io/node-sdk 0.7.50 → 0.7.52

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.
@@ -5841,6 +5841,10 @@ export interface EnrichmentOptions {
5841
5841
  * Default: false. When true, includes fetching and enriching own_followings (follows where activity author's feeds follow current user's feeds).
5842
5842
  */
5843
5843
  enrich_own_followings?: boolean;
5844
+ /**
5845
+ * Default: false. When true, includes the top-level flat 'activities' array in responses for aggregated feeds. By default, aggregated feeds only return 'aggregated_activities'.
5846
+ */
5847
+ include_flat_activities?: boolean;
5844
5848
  /**
5845
5849
  * Default: false. When true, includes score_vars in activity responses containing variable values used at ranking time.
5846
5850
  */
@@ -6987,6 +6991,10 @@ export interface FollowRequest {
6987
6991
  * Fully qualified ID of the target feed
6988
6992
  */
6989
6993
  target: string;
6994
+ /**
6995
+ * Maximum number of historical activities to copy from the target feed when the follow is first materialized. Not set = unlimited (default). 0 = copy nothing. Range: 0-1000.
6996
+ */
6997
+ activity_copy_limit?: number;
6990
6998
  /**
6991
6999
  * @deprecated
6992
7000
  * Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
@@ -10832,6 +10840,10 @@ export interface QueryActivitiesRequest {
10832
10840
  */
10833
10841
  include_expired_activities?: boolean;
10834
10842
  include_private_activities?: boolean;
10843
+ /**
10844
+ * When true, include soft-deleted activities in the result.
10845
+ */
10846
+ include_soft_deleted_activities?: boolean;
10835
10847
  limit?: number;
10836
10848
  next?: string;
10837
10849
  prev?: string;
@@ -11774,7 +11786,13 @@ export interface QueryReactionsRequest {
11774
11786
  next?: string;
11775
11787
  prev?: string;
11776
11788
  user_id?: string;
11789
+ /**
11790
+ * Array of sort parameters
11791
+ */
11777
11792
  sort?: SortParamRequest[];
11793
+ /**
11794
+ * Filter to apply to the query
11795
+ */
11778
11796
  filter?: Record<string, any>;
11779
11797
  user?: UserRequest;
11780
11798
  }
@@ -11967,11 +11985,11 @@ export interface QueryThreadsRequest {
11967
11985
  reply_limit?: number;
11968
11986
  user_id?: string;
11969
11987
  /**
11970
- * Sort conditions to apply to threads
11988
+ * Array of sort parameters
11971
11989
  */
11972
11990
  sort?: SortParamRequest[];
11973
11991
  /**
11974
- * Filter conditions to apply to threads
11992
+ * Filter to apply to the query
11975
11993
  */
11976
11994
  filter?: Record<string, any>;
11977
11995
  user?: UserRequest;
@@ -15342,6 +15360,10 @@ export interface UpdateFollowRequest {
15342
15360
  * Fully qualified ID of the target feed
15343
15361
  */
15344
15362
  target: string;
15363
+ /**
15364
+ * Maximum number of historical activities to copy from the target feed when the follow is first materialized. Not set = unlimited (default). 0 = copy nothing. Range: 0-1000.
15365
+ */
15366
+ activity_copy_limit?: number;
15345
15367
  /**
15346
15368
  * @deprecated
15347
15369
  * Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.7.50",
3
+ "version": "0.7.52",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -309,6 +309,7 @@ export class FeedsApi {
309
309
  enrich_own_fields: request?.enrich_own_fields,
310
310
  include_expired_activities: request?.include_expired_activities,
311
311
  include_private_activities: request?.include_private_activities,
312
+ include_soft_deleted_activities: request?.include_soft_deleted_activities,
312
313
  limit: request?.limit,
313
314
  next: request?.next,
314
315
  prev: request?.prev,
@@ -2257,6 +2258,7 @@ export class FeedsApi {
2257
2258
  const body = {
2258
2259
  source: request?.source,
2259
2260
  target: request?.target,
2261
+ activity_copy_limit: request?.activity_copy_limit,
2260
2262
  copy_custom_to_notification: request?.copy_custom_to_notification,
2261
2263
  create_notification_activity: request?.create_notification_activity,
2262
2264
  enrich_own_fields: request?.enrich_own_fields,
@@ -2289,6 +2291,7 @@ export class FeedsApi {
2289
2291
  const body = {
2290
2292
  source: request?.source,
2291
2293
  target: request?.target,
2294
+ activity_copy_limit: request?.activity_copy_limit,
2292
2295
  copy_custom_to_notification: request?.copy_custom_to_notification,
2293
2296
  create_notification_activity: request?.create_notification_activity,
2294
2297
  enrich_own_fields: request?.enrich_own_fields,
@@ -8358,6 +8358,11 @@ export interface EnrichmentOptions {
8358
8358
  */
8359
8359
  enrich_own_followings?: boolean;
8360
8360
 
8361
+ /**
8362
+ * Default: false. When true, includes the top-level flat 'activities' array in responses for aggregated feeds. By default, aggregated feeds only return 'aggregated_activities'.
8363
+ */
8364
+ include_flat_activities?: boolean;
8365
+
8361
8366
  /**
8362
8367
  * Default: false. When true, includes score_vars in activity responses containing variable values used at ranking time.
8363
8368
  */
@@ -9997,6 +10002,11 @@ export interface FollowRequest {
9997
10002
  */
9998
10003
  target: string;
9999
10004
 
10005
+ /**
10006
+ * Maximum number of historical activities to copy from the target feed when the follow is first materialized. Not set = unlimited (default). 0 = copy nothing. Range: 0-1000.
10007
+ */
10008
+ activity_copy_limit?: number;
10009
+
10000
10010
  /**
10001
10011
  * @deprecated
10002
10012
  * Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead
@@ -15569,6 +15579,11 @@ export interface QueryActivitiesRequest {
15569
15579
 
15570
15580
  include_private_activities?: boolean;
15571
15581
 
15582
+ /**
15583
+ * When true, include soft-deleted activities in the result.
15584
+ */
15585
+ include_soft_deleted_activities?: boolean;
15586
+
15572
15587
  limit?: number;
15573
15588
 
15574
15589
  next?: string;
@@ -16891,8 +16906,14 @@ export interface QueryReactionsRequest {
16891
16906
 
16892
16907
  user_id?: string;
16893
16908
 
16909
+ /**
16910
+ * Array of sort parameters
16911
+ */
16894
16912
  sort?: SortParamRequest[];
16895
16913
 
16914
+ /**
16915
+ * Filter to apply to the query
16916
+ */
16896
16917
  filter?: Record<string, any>;
16897
16918
 
16898
16919
  user?: UserRequest;
@@ -17153,12 +17174,12 @@ export interface QueryThreadsRequest {
17153
17174
  user_id?: string;
17154
17175
 
17155
17176
  /**
17156
- * Sort conditions to apply to threads
17177
+ * Array of sort parameters
17157
17178
  */
17158
17179
  sort?: SortParamRequest[];
17159
17180
 
17160
17181
  /**
17161
- * Filter conditions to apply to threads
17182
+ * Filter to apply to the query
17162
17183
  */
17163
17184
  filter?: Record<string, any>;
17164
17185
 
@@ -22191,6 +22212,11 @@ export interface UpdateFollowRequest {
22191
22212
  */
22192
22213
  target: string;
22193
22214
 
22215
+ /**
22216
+ * Maximum number of historical activities to copy from the target feed when the follow is first materialized. Not set = unlimited (default). 0 = copy nothing. Range: 0-1000.
22217
+ */
22218
+ activity_copy_limit?: number;
22219
+
22194
22220
  /**
22195
22221
  * @deprecated
22196
22222
  * Whether to copy custom data to the notification activity (only applies when create_notification_activity is true) Deprecated: use notification_context.trigger.custom and notification_context.target.custom instead