@stream-io/node-sdk 0.7.53 → 0.7.55

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.
@@ -299,6 +299,12 @@ export interface ActivityFeedbackResponse {
299
299
  activity_id: string;
300
300
  duration: string;
301
301
  }
302
+ export interface ActivityFilterConfig {
303
+ /**
304
+ * When true, activities authored by the feed owner are excluded from feed reads
305
+ */
306
+ exclude_owner_activities?: boolean;
307
+ }
302
308
  export interface ActivityMarkEvent {
303
309
  /**
304
310
  * Date/time of creation
@@ -4852,6 +4858,7 @@ export interface CreateFeedGroupRequest {
4852
4858
  * Configuration for activity selectors
4853
4859
  */
4854
4860
  activity_selectors?: ActivitySelectorConfig[];
4861
+ activity_filter?: ActivityFilterConfig;
4855
4862
  aggregation?: AggregationConfig;
4856
4863
  /**
4857
4864
  * Custom data for the feed group
@@ -4875,6 +4882,7 @@ export interface CreateFeedViewRequest {
4875
4882
  * Configuration for selecting activities
4876
4883
  */
4877
4884
  activity_selectors?: ActivitySelectorConfig[];
4885
+ activity_filter?: ActivityFilterConfig;
4878
4886
  aggregation?: AggregationConfig;
4879
4887
  ranking?: RankingConfig;
4880
4888
  }
@@ -6237,6 +6245,7 @@ export interface FeedGroup {
6237
6245
  custom: Record<string, any>;
6238
6246
  deleted_at?: Date;
6239
6247
  last_feed_get_at?: Date;
6248
+ activity_filter?: ActivityFilterConfig;
6240
6249
  aggregation?: AggregationConfig;
6241
6250
  notification?: NotificationConfig;
6242
6251
  push_notification?: PushNotificationConfig;
@@ -6303,6 +6312,7 @@ export interface FeedGroupResponse {
6303
6312
  * Configuration for activity selectors
6304
6313
  */
6305
6314
  activity_selectors?: ActivitySelectorConfigResponse[];
6315
+ activity_filter?: ActivityFilterConfig;
6306
6316
  aggregation?: AggregationConfig;
6307
6317
  /**
6308
6318
  * Custom data for the feed group
@@ -6713,6 +6723,7 @@ export interface FeedViewResponse {
6713
6723
  * Configured activity selectors
6714
6724
  */
6715
6725
  activity_selectors?: ActivitySelectorConfigResponse[];
6726
+ activity_filter?: ActivityFilterConfig;
6716
6727
  aggregation?: AggregationConfig;
6717
6728
  ranking?: RankingConfig;
6718
6729
  }
@@ -7015,6 +7026,10 @@ export interface FollowBatchRequest {
7015
7026
  * List of follow relationships to create
7016
7027
  */
7017
7028
  follows: FollowRequest[];
7029
+ /**
7030
+ * If true, auto-creates users referenced by source/target FIDs in the batch when they don't already exist. Server-side only. Defaults to false. This top-level field is the only supported batch/upsert create_users control.
7031
+ */
7032
+ create_users?: boolean;
7018
7033
  /**
7019
7034
  * If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
7020
7035
  */
@@ -7083,6 +7098,10 @@ export interface FollowRequest {
7083
7098
  * Whether to create a notification activity for this follow
7084
7099
  */
7085
7100
  create_notification_activity?: boolean;
7101
+ /**
7102
+ * If true, auto-creates users referenced by the source and target FIDs when they don't already exist. Server-side only. Defaults to false. For FollowBatch/GetOrCreateFollows, use the top-level create_users field; per-item follows[i].create_users is rejected.
7103
+ */
7104
+ create_users?: boolean;
7086
7105
  /**
7087
7106
  * If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
7088
7107
  */
@@ -7660,6 +7679,7 @@ export interface GetOrCreateFeedGroupRequest {
7660
7679
  * Configuration for activity selectors
7661
7680
  */
7662
7681
  activity_selectors?: ActivitySelectorConfig[];
7682
+ activity_filter?: ActivityFilterConfig;
7663
7683
  aggregation?: AggregationConfig;
7664
7684
  /**
7665
7685
  * Custom data for the feed group
@@ -7722,6 +7742,7 @@ export interface GetOrCreateFeedViewRequest {
7722
7742
  * Configuration for selecting activities
7723
7743
  */
7724
7744
  activity_selectors?: ActivitySelectorConfig[];
7745
+ activity_filter?: ActivityFilterConfig;
7725
7746
  aggregation?: AggregationConfig;
7726
7747
  ranking?: RankingConfig;
7727
7748
  }
@@ -15431,6 +15452,7 @@ export interface UpdateFeedGroupRequest {
15431
15452
  * Configuration for activity selectors
15432
15453
  */
15433
15454
  activity_selectors?: ActivitySelectorConfig[];
15455
+ activity_filter?: ActivityFilterConfig;
15434
15456
  aggregation?: AggregationConfig;
15435
15457
  /**
15436
15458
  * Custom data for the feed group
@@ -15507,6 +15529,7 @@ export interface UpdateFeedViewRequest {
15507
15529
  * Updated configuration for selecting activities
15508
15530
  */
15509
15531
  activity_selectors?: ActivitySelectorConfig[];
15532
+ activity_filter?: ActivityFilterConfig;
15510
15533
  aggregation?: AggregationConfig;
15511
15534
  ranking?: RankingConfig;
15512
15535
  }
@@ -15546,6 +15569,10 @@ export interface UpdateFollowRequest {
15546
15569
  * Whether to create a notification activity for this follow
15547
15570
  */
15548
15571
  create_notification_activity?: boolean;
15572
+ /**
15573
+ * If true, auto-creates users referenced by the source and target FIDs when they don't already exist. Server-side only. Defaults to false. For FollowBatch/GetOrCreateFollows, use the top-level create_users field; per-item follows[i].create_users is rejected.
15574
+ */
15575
+ create_users?: boolean;
15549
15576
  /**
15550
15577
  * If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
15551
15578
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.7.53",
3
+ "version": "0.7.55",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -1514,6 +1514,7 @@ export class FeedsApi {
1514
1514
  default_visibility: request?.default_visibility,
1515
1515
  activity_processors: request?.activity_processors,
1516
1516
  activity_selectors: request?.activity_selectors,
1517
+ activity_filter: request?.activity_filter,
1517
1518
  aggregation: request?.aggregation,
1518
1519
  custom: request?.custom,
1519
1520
  notification: request?.notification,
@@ -2004,6 +2005,7 @@ export class FeedsApi {
2004
2005
  default_visibility: request?.default_visibility,
2005
2006
  activity_processors: request?.activity_processors,
2006
2007
  activity_selectors: request?.activity_selectors,
2008
+ activity_filter: request?.activity_filter,
2007
2009
  aggregation: request?.aggregation,
2008
2010
  custom: request?.custom,
2009
2011
  notification: request?.notification,
@@ -2038,6 +2040,7 @@ export class FeedsApi {
2038
2040
  default_visibility: request?.default_visibility,
2039
2041
  activity_processors: request?.activity_processors,
2040
2042
  activity_selectors: request?.activity_selectors,
2043
+ activity_filter: request?.activity_filter,
2041
2044
  aggregation: request?.aggregation,
2042
2045
  custom: request?.custom,
2043
2046
  notification: request?.notification,
@@ -2078,6 +2081,7 @@ export class FeedsApi {
2078
2081
  const body = {
2079
2082
  id: request?.id,
2080
2083
  activity_selectors: request?.activity_selectors,
2084
+ activity_filter: request?.activity_filter,
2081
2085
  aggregation: request?.aggregation,
2082
2086
  ranking: request?.ranking,
2083
2087
  };
@@ -2138,6 +2142,7 @@ export class FeedsApi {
2138
2142
  };
2139
2143
  const body = {
2140
2144
  activity_selectors: request?.activity_selectors,
2145
+ activity_filter: request?.activity_filter,
2141
2146
  aggregation: request?.aggregation,
2142
2147
  ranking: request?.ranking,
2143
2148
  };
@@ -2166,6 +2171,7 @@ export class FeedsApi {
2166
2171
  };
2167
2172
  const body = {
2168
2173
  activity_selectors: request?.activity_selectors,
2174
+ activity_filter: request?.activity_filter,
2169
2175
  aggregation: request?.aggregation,
2170
2176
  ranking: request?.ranking,
2171
2177
  };
@@ -2376,6 +2382,7 @@ export class FeedsApi {
2376
2382
  activity_copy_limit: request?.activity_copy_limit,
2377
2383
  copy_custom_to_notification: request?.copy_custom_to_notification,
2378
2384
  create_notification_activity: request?.create_notification_activity,
2385
+ create_users: request?.create_users,
2379
2386
  enrich_own_fields: request?.enrich_own_fields,
2380
2387
  follower_role: request?.follower_role,
2381
2388
  push_preference: request?.push_preference,
@@ -2409,6 +2416,7 @@ export class FeedsApi {
2409
2416
  activity_copy_limit: request?.activity_copy_limit,
2410
2417
  copy_custom_to_notification: request?.copy_custom_to_notification,
2411
2418
  create_notification_activity: request?.create_notification_activity,
2419
+ create_users: request?.create_users,
2412
2420
  enrich_own_fields: request?.enrich_own_fields,
2413
2421
  push_preference: request?.push_preference,
2414
2422
  skip_push: request?.skip_push,
@@ -2462,6 +2470,7 @@ export class FeedsApi {
2462
2470
  ): Promise<StreamResponse<FollowBatchResponse>> {
2463
2471
  const body = {
2464
2472
  follows: request?.follows,
2473
+ create_users: request?.create_users,
2465
2474
  enrich_own_fields: request?.enrich_own_fields,
2466
2475
  };
2467
2476
 
@@ -2486,6 +2495,7 @@ export class FeedsApi {
2486
2495
  ): Promise<StreamResponse<FollowBatchResponse>> {
2487
2496
  const body = {
2488
2497
  follows: request?.follows,
2498
+ create_users: request?.create_users,
2489
2499
  enrich_own_fields: request?.enrich_own_fields,
2490
2500
  };
2491
2501
 
@@ -450,6 +450,13 @@ export interface ActivityFeedbackResponse {
450
450
  duration: string;
451
451
  }
452
452
 
453
+ export interface ActivityFilterConfig {
454
+ /**
455
+ * When true, activities authored by the feed owner are excluded from feed reads
456
+ */
457
+ exclude_owner_activities?: boolean;
458
+ }
459
+
453
460
  export interface ActivityMarkEvent {
454
461
  /**
455
462
  * Date/time of creation
@@ -7048,6 +7055,8 @@ export interface CreateFeedGroupRequest {
7048
7055
  */
7049
7056
  activity_selectors?: ActivitySelectorConfig[];
7050
7057
 
7058
+ activity_filter?: ActivityFilterConfig;
7059
+
7051
7060
  aggregation?: AggregationConfig;
7052
7061
 
7053
7062
  /**
@@ -7081,6 +7090,8 @@ export interface CreateFeedViewRequest {
7081
7090
  */
7082
7091
  activity_selectors?: ActivitySelectorConfig[];
7083
7092
 
7093
+ activity_filter?: ActivityFilterConfig;
7094
+
7084
7095
  aggregation?: AggregationConfig;
7085
7096
 
7086
7097
  ranking?: RankingConfig;
@@ -8939,6 +8950,8 @@ export interface FeedGroup {
8939
8950
 
8940
8951
  last_feed_get_at?: Date;
8941
8952
 
8953
+ activity_filter?: ActivityFilterConfig;
8954
+
8942
8955
  aggregation?: AggregationConfig;
8943
8956
 
8944
8957
  notification?: NotificationConfig;
@@ -9038,6 +9051,8 @@ export interface FeedGroupResponse {
9038
9051
  */
9039
9052
  activity_selectors?: ActivitySelectorConfigResponse[];
9040
9053
 
9054
+ activity_filter?: ActivityFilterConfig;
9055
+
9041
9056
  aggregation?: AggregationConfig;
9042
9057
 
9043
9058
  /**
@@ -9586,6 +9601,8 @@ export interface FeedViewResponse {
9586
9601
  */
9587
9602
  activity_selectors?: ActivitySelectorConfigResponse[];
9588
9603
 
9604
+ activity_filter?: ActivityFilterConfig;
9605
+
9589
9606
  aggregation?: AggregationConfig;
9590
9607
 
9591
9608
  ranking?: RankingConfig;
@@ -10048,6 +10065,11 @@ export interface FollowBatchRequest {
10048
10065
  */
10049
10066
  follows: FollowRequest[];
10050
10067
 
10068
+ /**
10069
+ * If true, auto-creates users referenced by source/target FIDs in the batch when they don't already exist. Server-side only. Defaults to false. This top-level field is the only supported batch/upsert create_users control.
10070
+ */
10071
+ create_users?: boolean;
10072
+
10051
10073
  /**
10052
10074
  * If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
10053
10075
  */
@@ -10139,6 +10161,11 @@ export interface FollowRequest {
10139
10161
  */
10140
10162
  create_notification_activity?: boolean;
10141
10163
 
10164
+ /**
10165
+ * If true, auto-creates users referenced by the source and target FIDs when they don't already exist. Server-side only. Defaults to false. For FollowBatch/GetOrCreateFollows, use the top-level create_users field; per-item follows[i].create_users is rejected.
10166
+ */
10167
+ create_users?: boolean;
10168
+
10142
10169
  /**
10143
10170
  * If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
10144
10171
  */
@@ -11008,6 +11035,8 @@ export interface GetOrCreateFeedGroupRequest {
11008
11035
  */
11009
11036
  activity_selectors?: ActivitySelectorConfig[];
11010
11037
 
11038
+ activity_filter?: ActivityFilterConfig;
11039
+
11011
11040
  aggregation?: AggregationConfig;
11012
11041
 
11013
11042
  /**
@@ -11112,6 +11141,8 @@ export interface GetOrCreateFeedViewRequest {
11112
11141
  */
11113
11142
  activity_selectors?: ActivitySelectorConfig[];
11114
11143
 
11144
+ activity_filter?: ActivityFilterConfig;
11145
+
11115
11146
  aggregation?: AggregationConfig;
11116
11147
 
11117
11148
  ranking?: RankingConfig;
@@ -22324,6 +22355,8 @@ export interface UpdateFeedGroupRequest {
22324
22355
  */
22325
22356
  activity_selectors?: ActivitySelectorConfig[];
22326
22357
 
22358
+ activity_filter?: ActivityFilterConfig;
22359
+
22327
22360
  aggregation?: AggregationConfig;
22328
22361
 
22329
22362
  /**
@@ -22429,6 +22462,8 @@ export interface UpdateFeedViewRequest {
22429
22462
  */
22430
22463
  activity_selectors?: ActivitySelectorConfig[];
22431
22464
 
22465
+ activity_filter?: ActivityFilterConfig;
22466
+
22432
22467
  aggregation?: AggregationConfig;
22433
22468
 
22434
22469
  ranking?: RankingConfig;
@@ -22480,6 +22515,11 @@ export interface UpdateFollowRequest {
22480
22515
  */
22481
22516
  create_notification_activity?: boolean;
22482
22517
 
22518
+ /**
22519
+ * If true, auto-creates users referenced by the source and target FIDs when they don't already exist. Server-side only. Defaults to false. For FollowBatch/GetOrCreateFollows, use the top-level create_users field; per-item follows[i].create_users is rejected.
22520
+ */
22521
+ create_users?: boolean;
22522
+
22483
22523
  /**
22484
22524
  * If true, enriches the follow's source_feed and target_feed with own_* fields (own_follows, own_followings, own_capabilities, own_membership). Defaults to false for performance.
22485
22525
  */