@stream-io/node-sdk 0.7.43 → 0.7.44

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.
@@ -13,6 +13,7 @@ export declare class FeedApi {
13
13
  markActivity(request?: MarkActivityRequest): Promise<StreamResponse<Response>>;
14
14
  unpinActivity(request: {
15
15
  activity_id: string;
16
+ enrich_own_fields?: boolean;
16
17
  user_id?: string;
17
18
  }): Promise<StreamResponse<UnpinActivityResponse>>;
18
19
  pinActivity(request: PinActivityRequest & {
@@ -60,6 +60,7 @@ export declare class FeedsApi {
60
60
  }): Promise<StreamResponse<UpdateActivityResponse>>;
61
61
  restoreActivity(request: RestoreActivityRequest & {
62
62
  id: string;
63
+ enrich_own_fields?: boolean;
63
64
  }): Promise<StreamResponse<RestoreActivityResponse>>;
64
65
  queryBookmarkFolders(request?: QueryBookmarkFoldersRequest): Promise<StreamResponse<QueryBookmarkFoldersResponse>>;
65
66
  deleteBookmarkFolder(request: {
@@ -151,6 +152,7 @@ export declare class FeedsApi {
151
152
  feed_group_id: string;
152
153
  feed_id: string;
153
154
  activity_id: string;
155
+ enrich_own_fields?: boolean;
154
156
  user_id?: string;
155
157
  }): Promise<StreamResponse<UnpinActivityResponse>>;
156
158
  pinActivity(request: PinActivityRequest & {
@@ -243,6 +245,7 @@ export declare class FeedsApi {
243
245
  source: string;
244
246
  target: string;
245
247
  delete_notification_activity?: boolean;
248
+ enrich_own_fields?: boolean;
246
249
  }): Promise<StreamResponse<UnfollowResponse>>;
247
250
  createMembershipLevel(request: CreateMembershipLevelRequest): Promise<StreamResponse<CreateMembershipLevelResponse>>;
248
251
  queryMembershipLevels(request?: QueryMembershipLevelsRequest): Promise<StreamResponse<QueryMembershipLevelsResponse>>;
@@ -401,6 +401,7 @@ export interface AddActivityRequest {
401
401
  feeds: string[];
402
402
  copy_custom_to_notification?: boolean;
403
403
  create_notification_activity?: boolean;
404
+ enrich_own_fields?: boolean;
404
405
  expires_at?: string;
405
406
  id?: string;
406
407
  parent_id?: string;
@@ -2608,6 +2609,7 @@ export interface CreateFeedViewResponse {
2608
2609
  }
2609
2610
  export interface CreateFeedsBatchRequest {
2610
2611
  feeds: FeedRequest[];
2612
+ enrich_own_fields?: boolean;
2611
2613
  }
2612
2614
  export interface CreateFeedsBatchResponse {
2613
2615
  duration: string;
@@ -3666,6 +3668,7 @@ export interface FlagUserOptions {
3666
3668
  }
3667
3669
  export interface FollowBatchRequest {
3668
3670
  follows: FollowRequest[];
3671
+ enrich_own_fields?: boolean;
3669
3672
  }
3670
3673
  export interface FollowBatchResponse {
3671
3674
  duration: string;
@@ -3699,6 +3702,7 @@ export interface FollowRequest {
3699
3702
  target: string;
3700
3703
  copy_custom_to_notification?: boolean;
3701
3704
  create_notification_activity?: boolean;
3705
+ enrich_own_fields?: boolean;
3702
3706
  push_preference?: 'all' | 'none';
3703
3707
  skip_push?: boolean;
3704
3708
  status?: 'accepted' | 'pending' | 'rejected';
@@ -5637,6 +5641,7 @@ export interface PermissionRequestEvent {
5637
5641
  type: string;
5638
5642
  }
5639
5643
  export interface PinActivityRequest {
5644
+ enrich_own_fields?: boolean;
5640
5645
  user_id?: string;
5641
5646
  user?: UserRequest;
5642
5647
  }
@@ -5933,6 +5938,7 @@ export interface QualityScoreReportResponse {
5933
5938
  daily: DailyAggregateQualityScoreReportResponse[];
5934
5939
  }
5935
5940
  export interface QueryActivitiesRequest {
5941
+ enrich_own_fields?: boolean;
5936
5942
  include_expired_activities?: boolean;
5937
5943
  include_private_activities?: boolean;
5938
5944
  limit?: number;
@@ -6019,6 +6025,7 @@ export interface QueryBookmarkFoldersResponse {
6019
6025
  prev?: string;
6020
6026
  }
6021
6027
  export interface QueryBookmarksRequest {
6028
+ enrich_own_fields?: boolean;
6022
6029
  limit?: number;
6023
6030
  next?: string;
6024
6031
  prev?: string;
@@ -6231,6 +6238,7 @@ export interface QueryFeedModerationTemplatesResponse {
6231
6238
  templates: QueryFeedModerationTemplate[];
6232
6239
  }
6233
6240
  export interface QueryFeedsRequest {
6241
+ enrich_own_fields?: boolean;
6234
6242
  limit?: number;
6235
6243
  next?: string;
6236
6244
  prev?: string;
@@ -6392,6 +6400,7 @@ export interface QueryModerationRulesResponse {
6392
6400
  prev?: string;
6393
6401
  }
6394
6402
  export interface QueryPinnedActivitiesRequest {
6403
+ enrich_own_fields?: boolean;
6395
6404
  limit?: number;
6396
6405
  next?: string;
6397
6406
  prev?: string;
@@ -7837,6 +7846,7 @@ export interface UndeleteMessageResponse {
7837
7846
  export interface UnfollowBatchRequest {
7838
7847
  follows: FollowPair[];
7839
7848
  delete_notification_activity?: boolean;
7849
+ enrich_own_fields?: boolean;
7840
7850
  }
7841
7851
  export interface UnfollowBatchResponse {
7842
7852
  duration: string;
@@ -7921,6 +7931,7 @@ export interface UpdateActivityPartialChangeRequest {
7921
7931
  }
7922
7932
  export interface UpdateActivityPartialRequest {
7923
7933
  copy_custom_to_notification?: boolean;
7934
+ enrich_own_fields?: boolean;
7924
7935
  handle_mention_notifications?: boolean;
7925
7936
  run_activity_processors?: boolean;
7926
7937
  user_id?: string;
@@ -7934,6 +7945,7 @@ export interface UpdateActivityPartialResponse {
7934
7945
  }
7935
7946
  export interface UpdateActivityRequest {
7936
7947
  copy_custom_to_notification?: boolean;
7948
+ enrich_own_fields?: boolean;
7937
7949
  expires_at?: Date;
7938
7950
  handle_mention_notifications?: boolean;
7939
7951
  poll_id?: string;
@@ -8274,6 +8286,7 @@ export interface UpdateFeedMembersResponse {
8274
8286
  export interface UpdateFeedRequest {
8275
8287
  created_by_id?: string;
8276
8288
  description?: string;
8289
+ enrich_own_fields?: boolean;
8277
8290
  name?: string;
8278
8291
  filter_tags?: string[];
8279
8292
  custom?: Record<string, any>;
@@ -8303,6 +8316,7 @@ export interface UpdateFollowRequest {
8303
8316
  target: string;
8304
8317
  copy_custom_to_notification?: boolean;
8305
8318
  create_notification_activity?: boolean;
8319
+ enrich_own_fields?: boolean;
8306
8320
  follower_role?: string;
8307
8321
  push_preference?: 'all' | 'none';
8308
8322
  skip_push?: boolean;
@@ -8495,6 +8509,7 @@ export interface UploadChannelResponse {
8495
8509
  }
8496
8510
  export interface UpsertActivitiesRequest {
8497
8511
  activities: ActivityRequest[];
8512
+ enrich_own_fields?: boolean;
8498
8513
  }
8499
8514
  export interface UpsertActivitiesResponse {
8500
8515
  duration: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.7.43",
3
+ "version": "0.7.44",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -71,6 +71,7 @@ export class FeedApi {
71
71
 
72
72
  unpinActivity(request: {
73
73
  activity_id: string;
74
+ enrich_own_fields?: boolean;
74
75
  user_id?: string;
75
76
  }): Promise<StreamResponse<UnpinActivityResponse>> {
76
77
  return this.feedsApi.unpinActivity({
@@ -157,6 +157,7 @@ export class FeedsApi {
157
157
  feeds: request?.feeds,
158
158
  copy_custom_to_notification: request?.copy_custom_to_notification,
159
159
  create_notification_activity: request?.create_notification_activity,
160
+ enrich_own_fields: request?.enrich_own_fields,
160
161
  expires_at: request?.expires_at,
161
162
  id: request?.id,
162
163
  parent_id: request?.parent_id,
@@ -199,6 +200,7 @@ export class FeedsApi {
199
200
  ): Promise<StreamResponse<UpsertActivitiesResponse>> {
200
201
  const body = {
201
202
  activities: request?.activities,
203
+ enrich_own_fields: request?.enrich_own_fields,
202
204
  };
203
205
 
204
206
  const response = await this.apiClient.sendRequest<
@@ -271,6 +273,7 @@ export class FeedsApi {
271
273
  request?: QueryActivitiesRequest,
272
274
  ): Promise<StreamResponse<QueryActivitiesResponse>> {
273
275
  const body = {
276
+ enrich_own_fields: request?.enrich_own_fields,
274
277
  include_expired_activities: request?.include_expired_activities,
275
278
  include_private_activities: request?.include_private_activities,
276
279
  limit: request?.limit,
@@ -612,6 +615,7 @@ export class FeedsApi {
612
615
  };
613
616
  const body = {
614
617
  copy_custom_to_notification: request?.copy_custom_to_notification,
618
+ enrich_own_fields: request?.enrich_own_fields,
615
619
  handle_mention_notifications: request?.handle_mention_notifications,
616
620
  run_activity_processors: request?.run_activity_processors,
617
621
  user_id: request?.user_id,
@@ -644,6 +648,7 @@ export class FeedsApi {
644
648
  };
645
649
  const body = {
646
650
  copy_custom_to_notification: request?.copy_custom_to_notification,
651
+ enrich_own_fields: request?.enrich_own_fields,
647
652
  expires_at: request?.expires_at,
648
653
  handle_mention_notifications: request?.handle_mention_notifications,
649
654
  poll_id: request?.poll_id,
@@ -683,8 +688,14 @@ export class FeedsApi {
683
688
  }
684
689
 
685
690
  async restoreActivity(
686
- request: RestoreActivityRequest & { id: string },
691
+ request: RestoreActivityRequest & {
692
+ id: string;
693
+ enrich_own_fields?: boolean;
694
+ },
687
695
  ): Promise<StreamResponse<RestoreActivityResponse>> {
696
+ const queryParams = {
697
+ enrich_own_fields: request?.enrich_own_fields,
698
+ };
688
699
  const pathParams = {
689
700
  id: request?.id,
690
701
  };
@@ -699,7 +710,7 @@ export class FeedsApi {
699
710
  'POST',
700
711
  '/api/v2/feeds/activities/{id}/restore',
701
712
  pathParams,
702
- undefined,
713
+ queryParams,
703
714
  body,
704
715
  'application/json',
705
716
  );
@@ -790,6 +801,7 @@ export class FeedsApi {
790
801
  request?: QueryBookmarksRequest,
791
802
  ): Promise<StreamResponse<QueryBookmarksResponse>> {
792
803
  const body = {
804
+ enrich_own_fields: request?.enrich_own_fields,
793
805
  limit: request?.limit,
794
806
  next: request?.next,
795
807
  prev: request?.prev,
@@ -1366,6 +1378,7 @@ export class FeedsApi {
1366
1378
  const body = {
1367
1379
  created_by_id: request?.created_by_id,
1368
1380
  description: request?.description,
1381
+ enrich_own_fields: request?.enrich_own_fields,
1369
1382
  name: request?.name,
1370
1383
  filter_tags: request?.filter_tags,
1371
1384
  custom: request?.custom,
@@ -1422,9 +1435,11 @@ export class FeedsApi {
1422
1435
  feed_group_id: string;
1423
1436
  feed_id: string;
1424
1437
  activity_id: string;
1438
+ enrich_own_fields?: boolean;
1425
1439
  user_id?: string;
1426
1440
  }): Promise<StreamResponse<UnpinActivityResponse>> {
1427
1441
  const queryParams = {
1442
+ enrich_own_fields: request?.enrich_own_fields,
1428
1443
  user_id: request?.user_id,
1429
1444
  };
1430
1445
  const pathParams = {
@@ -1460,6 +1475,7 @@ export class FeedsApi {
1460
1475
  activity_id: request?.activity_id,
1461
1476
  };
1462
1477
  const body = {
1478
+ enrich_own_fields: request?.enrich_own_fields,
1463
1479
  user_id: request?.user_id,
1464
1480
  user: request?.user,
1465
1481
  };
@@ -1621,6 +1637,7 @@ export class FeedsApi {
1621
1637
  feed_id: request?.feed_id,
1622
1638
  };
1623
1639
  const body = {
1640
+ enrich_own_fields: request?.enrich_own_fields,
1624
1641
  limit: request?.limit,
1625
1642
  next: request?.next,
1626
1643
  prev: request?.prev,
@@ -1983,6 +2000,7 @@ export class FeedsApi {
1983
2000
  ): Promise<StreamResponse<CreateFeedsBatchResponse>> {
1984
2001
  const body = {
1985
2002
  feeds: request?.feeds,
2003
+ enrich_own_fields: request?.enrich_own_fields,
1986
2004
  };
1987
2005
 
1988
2006
  const response = await this.apiClient.sendRequest<
@@ -2055,6 +2073,7 @@ export class FeedsApi {
2055
2073
  request?: QueryFeedsRequest,
2056
2074
  ): Promise<StreamResponse<QueryFeedsResponse>> {
2057
2075
  const body = {
2076
+ enrich_own_fields: request?.enrich_own_fields,
2058
2077
  limit: request?.limit,
2059
2078
  next: request?.next,
2060
2079
  prev: request?.prev,
@@ -2111,6 +2130,7 @@ export class FeedsApi {
2111
2130
  target: request?.target,
2112
2131
  copy_custom_to_notification: request?.copy_custom_to_notification,
2113
2132
  create_notification_activity: request?.create_notification_activity,
2133
+ enrich_own_fields: request?.enrich_own_fields,
2114
2134
  follower_role: request?.follower_role,
2115
2135
  push_preference: request?.push_preference,
2116
2136
  skip_push: request?.skip_push,
@@ -2142,6 +2162,7 @@ export class FeedsApi {
2142
2162
  target: request?.target,
2143
2163
  copy_custom_to_notification: request?.copy_custom_to_notification,
2144
2164
  create_notification_activity: request?.create_notification_activity,
2165
+ enrich_own_fields: request?.enrich_own_fields,
2145
2166
  push_preference: request?.push_preference,
2146
2167
  skip_push: request?.skip_push,
2147
2168
  status: request?.status,
@@ -2194,6 +2215,7 @@ export class FeedsApi {
2194
2215
  ): Promise<StreamResponse<FollowBatchResponse>> {
2195
2216
  const body = {
2196
2217
  follows: request?.follows,
2218
+ enrich_own_fields: request?.enrich_own_fields,
2197
2219
  };
2198
2220
 
2199
2221
  const response = await this.apiClient.sendRequest<
@@ -2217,6 +2239,7 @@ export class FeedsApi {
2217
2239
  ): Promise<StreamResponse<FollowBatchResponse>> {
2218
2240
  const body = {
2219
2241
  follows: request?.follows,
2242
+ enrich_own_fields: request?.enrich_own_fields,
2220
2243
  };
2221
2244
 
2222
2245
  const response = await this.apiClient.sendRequest<
@@ -2290,9 +2313,11 @@ export class FeedsApi {
2290
2313
  source: string;
2291
2314
  target: string;
2292
2315
  delete_notification_activity?: boolean;
2316
+ enrich_own_fields?: boolean;
2293
2317
  }): Promise<StreamResponse<UnfollowResponse>> {
2294
2318
  const queryParams = {
2295
2319
  delete_notification_activity: request?.delete_notification_activity,
2320
+ enrich_own_fields: request?.enrich_own_fields,
2296
2321
  };
2297
2322
  const pathParams = {
2298
2323
  source: request?.source,
@@ -2447,6 +2472,7 @@ export class FeedsApi {
2447
2472
  const body = {
2448
2473
  follows: request?.follows,
2449
2474
  delete_notification_activity: request?.delete_notification_activity,
2475
+ enrich_own_fields: request?.enrich_own_fields,
2450
2476
  };
2451
2477
 
2452
2478
  const response = await this.apiClient.sendRequest<
@@ -2471,6 +2497,7 @@ export class FeedsApi {
2471
2497
  const body = {
2472
2498
  follows: request?.follows,
2473
2499
  delete_notification_activity: request?.delete_notification_activity,
2500
+ enrich_own_fields: request?.enrich_own_fields,
2474
2501
  };
2475
2502
 
2476
2503
  const response = await this.apiClient.sendRequest<
@@ -735,6 +735,8 @@ export interface AddActivityRequest {
735
735
 
736
736
  create_notification_activity?: boolean;
737
737
 
738
+ enrich_own_fields?: boolean;
739
+
738
740
  expires_at?: string;
739
741
 
740
742
  id?: string;
@@ -4659,6 +4661,8 @@ export interface CreateFeedViewResponse {
4659
4661
 
4660
4662
  export interface CreateFeedsBatchRequest {
4661
4663
  feeds: FeedRequest[];
4664
+
4665
+ enrich_own_fields?: boolean;
4662
4666
  }
4663
4667
 
4664
4668
  export interface CreateFeedsBatchResponse {
@@ -6428,6 +6432,8 @@ export interface FlagUserOptions {
6428
6432
 
6429
6433
  export interface FollowBatchRequest {
6430
6434
  follows: FollowRequest[];
6435
+
6436
+ enrich_own_fields?: boolean;
6431
6437
  }
6432
6438
 
6433
6439
  export interface FollowBatchResponse {
@@ -6485,6 +6491,8 @@ export interface FollowRequest {
6485
6491
 
6486
6492
  create_notification_activity?: boolean;
6487
6493
 
6494
+ enrich_own_fields?: boolean;
6495
+
6488
6496
  push_preference?: 'all' | 'none';
6489
6497
 
6490
6498
  skip_push?: boolean;
@@ -9847,6 +9855,8 @@ export interface PermissionRequestEvent {
9847
9855
  }
9848
9856
 
9849
9857
  export interface PinActivityRequest {
9858
+ enrich_own_fields?: boolean;
9859
+
9850
9860
  user_id?: string;
9851
9861
 
9852
9862
  user?: UserRequest;
@@ -10381,6 +10391,8 @@ export interface QualityScoreReportResponse {
10381
10391
  }
10382
10392
 
10383
10393
  export interface QueryActivitiesRequest {
10394
+ enrich_own_fields?: boolean;
10395
+
10384
10396
  include_expired_activities?: boolean;
10385
10397
 
10386
10398
  include_private_activities?: boolean;
@@ -10529,6 +10541,8 @@ export interface QueryBookmarkFoldersResponse {
10529
10541
  }
10530
10542
 
10531
10543
  export interface QueryBookmarksRequest {
10544
+ enrich_own_fields?: boolean;
10545
+
10532
10546
  limit?: number;
10533
10547
 
10534
10548
  next?: string;
@@ -10897,6 +10911,8 @@ export interface QueryFeedModerationTemplatesResponse {
10897
10911
  }
10898
10912
 
10899
10913
  export interface QueryFeedsRequest {
10914
+ enrich_own_fields?: boolean;
10915
+
10900
10916
  limit?: number;
10901
10917
 
10902
10918
  next?: string;
@@ -11173,6 +11189,8 @@ export interface QueryModerationRulesResponse {
11173
11189
  }
11174
11190
 
11175
11191
  export interface QueryPinnedActivitiesRequest {
11192
+ enrich_own_fields?: boolean;
11193
+
11176
11194
  limit?: number;
11177
11195
 
11178
11196
  next?: string;
@@ -13927,6 +13945,8 @@ export interface UnfollowBatchRequest {
13927
13945
  follows: FollowPair[];
13928
13946
 
13929
13947
  delete_notification_activity?: boolean;
13948
+
13949
+ enrich_own_fields?: boolean;
13930
13950
  }
13931
13951
 
13932
13952
  export interface UnfollowBatchResponse {
@@ -14060,6 +14080,8 @@ export interface UpdateActivityPartialChangeRequest {
14060
14080
  export interface UpdateActivityPartialRequest {
14061
14081
  copy_custom_to_notification?: boolean;
14062
14082
 
14083
+ enrich_own_fields?: boolean;
14084
+
14063
14085
  handle_mention_notifications?: boolean;
14064
14086
 
14065
14087
  run_activity_processors?: boolean;
@@ -14082,6 +14104,8 @@ export interface UpdateActivityPartialResponse {
14082
14104
  export interface UpdateActivityRequest {
14083
14105
  copy_custom_to_notification?: boolean;
14084
14106
 
14107
+ enrich_own_fields?: boolean;
14108
+
14085
14109
  expires_at?: Date;
14086
14110
 
14087
14111
  handle_mention_notifications?: boolean;
@@ -14699,6 +14723,8 @@ export interface UpdateFeedRequest {
14699
14723
 
14700
14724
  description?: string;
14701
14725
 
14726
+ enrich_own_fields?: boolean;
14727
+
14702
14728
  name?: string;
14703
14729
 
14704
14730
  filter_tags?: string[];
@@ -14745,6 +14771,8 @@ export interface UpdateFollowRequest {
14745
14771
 
14746
14772
  create_notification_activity?: boolean;
14747
14773
 
14774
+ enrich_own_fields?: boolean;
14775
+
14748
14776
  follower_role?: string;
14749
14777
 
14750
14778
  push_preference?: 'all' | 'none';
@@ -15058,6 +15086,8 @@ export interface UploadChannelResponse {
15058
15086
 
15059
15087
  export interface UpsertActivitiesRequest {
15060
15088
  activities: ActivityRequest[];
15089
+
15090
+ enrich_own_fields?: boolean;
15061
15091
  }
15062
15092
 
15063
15093
  export interface UpsertActivitiesResponse {