@stream-io/feeds-client 0.3.49 → 0.3.51

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/index.js +1 -1
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/react-bindings.js +1 -1
  5. package/dist/es/index.mjs +2 -2
  6. package/dist/es/index.mjs.map +1 -1
  7. package/dist/es/react-bindings.mjs +1 -1
  8. package/dist/{feeds-client-BDvUG9yF.js → feeds-client-B4zeBggL.js} +218 -12
  9. package/dist/feeds-client-B4zeBggL.js.map +1 -0
  10. package/dist/{feeds-client-B9b7zUcW.mjs → feeds-client-DeAqnd1a.mjs} +218 -12
  11. package/dist/feeds-client-DeAqnd1a.mjs.map +1 -0
  12. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  13. package/dist/types/common/real-time/StableWSConnection.d.ts +3 -3
  14. package/dist/types/common/real-time/StableWSConnection.d.ts.map +1 -1
  15. package/dist/types/feed/event-handlers/activity-updater.d.ts +2 -0
  16. package/dist/types/feed/event-handlers/activity-updater.d.ts.map +1 -1
  17. package/dist/types/feed/feed.d.ts +5 -3
  18. package/dist/types/feed/feed.d.ts.map +1 -1
  19. package/dist/types/feeds-client/feeds-client.d.ts +3 -2
  20. package/dist/types/feeds-client/feeds-client.d.ts.map +1 -1
  21. package/dist/types/gen/feeds/FeedApi.d.ts +1 -0
  22. package/dist/types/gen/feeds/FeedApi.d.ts.map +1 -1
  23. package/dist/types/gen/feeds/FeedsApi.d.ts +37 -3
  24. package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
  25. package/dist/types/gen/model-decoders/event-decoder-mapping.d.ts.map +1 -1
  26. package/dist/types/gen/models/index.d.ts +95 -0
  27. package/dist/types/gen/models/index.d.ts.map +1 -1
  28. package/package.json +1 -1
  29. package/src/feed/feed.ts +6 -1
  30. package/src/feeds-client/feeds-client.ts +1 -1
  31. package/src/gen/feeds/FeedApi.ts +1 -0
  32. package/src/gen/feeds/FeedsApi.ts +232 -6
  33. package/src/gen/model-decoders/decoders.ts +76 -0
  34. package/src/gen/model-decoders/event-decoder-mapping.ts +3 -0
  35. package/src/gen/models/index.ts +159 -1
  36. package/dist/feeds-client-B9b7zUcW.mjs.map +0 -1
  37. package/dist/feeds-client-BDvUG9yF.js.map +0 -1
@@ -18,6 +18,8 @@ import type {
18
18
  AddCommentsBatchResponse,
19
19
  AddReactionRequest,
20
20
  AddReactionResponse,
21
+ AddUserGroupMembersRequest,
22
+ AddUserGroupMembersResponse,
21
23
  BlockUsersRequest,
22
24
  BlockUsersResponse,
23
25
  CastPollVoteRequest,
@@ -32,6 +34,8 @@ import type {
32
34
  CreateGuestResponse,
33
35
  CreatePollOptionRequest,
34
36
  CreatePollRequest,
37
+ CreateUserGroupRequest,
38
+ CreateUserGroupResponse,
35
39
  DeleteActivitiesRequest,
36
40
  DeleteActivitiesResponse,
37
41
  DeleteActivityReactionResponse,
@@ -57,10 +61,12 @@ import type {
57
61
  GetOGResponse,
58
62
  GetOrCreateFeedRequest,
59
63
  GetOrCreateFeedResponse,
64
+ GetUserGroupResponse,
60
65
  ImageUploadRequest,
61
66
  ImageUploadResponse,
62
67
  ListBlockListResponse,
63
68
  ListDevicesResponse,
69
+ ListUserGroupsResponse,
64
70
  MarkActivityRequest,
65
71
  OwnBatchRequest,
66
72
  OwnBatchResponse,
@@ -100,9 +106,11 @@ import type {
100
106
  RejectFeedMemberInviteResponse,
101
107
  RejectFollowRequest,
102
108
  RejectFollowResponse,
109
+ RemoveUserGroupMembersResponse,
103
110
  Response,
104
111
  RestoreActivityRequest,
105
112
  RestoreActivityResponse,
113
+ SearchUserGroupsResponse,
106
114
  SharedLocationResponse,
107
115
  SharedLocationsResponse,
108
116
  SingleFollowResponse,
@@ -136,6 +144,8 @@ import type {
136
144
  UpdatePollOptionRequest,
137
145
  UpdatePollPartialRequest,
138
146
  UpdatePollRequest,
147
+ UpdateUserGroupRequest,
148
+ UpdateUserGroupResponse,
139
149
  UpdateUsersPartialRequest,
140
150
  UpdateUsersRequest,
141
151
  UpdateUsersResponse,
@@ -317,6 +327,7 @@ export class FeedsApi {
317
327
  feeds: request?.feeds,
318
328
  copy_custom_to_notification: request?.copy_custom_to_notification,
319
329
  create_notification_activity: request?.create_notification_activity,
330
+ enrich_own_fields: request?.enrich_own_fields,
320
331
  expires_at: request?.expires_at,
321
332
  id: request?.id,
322
333
  parent_id: request?.parent_id,
@@ -358,6 +369,7 @@ export class FeedsApi {
358
369
  ): Promise<StreamResponse<UpsertActivitiesResponse>> {
359
370
  const body = {
360
371
  activities: request?.activities,
372
+ enrich_own_fields: request?.enrich_own_fields,
361
373
  };
362
374
 
363
375
  const response = await this.apiClient.sendRequest<
@@ -405,6 +417,7 @@ export class FeedsApi {
405
417
  request?: QueryActivitiesRequest,
406
418
  ): Promise<StreamResponse<QueryActivitiesResponse>> {
407
419
  const body = {
420
+ enrich_own_fields: request?.enrich_own_fields,
408
421
  limit: request?.limit,
409
422
  next: request?.next,
410
423
  prev: request?.prev,
@@ -728,6 +741,7 @@ export class FeedsApi {
728
741
  };
729
742
  const body = {
730
743
  copy_custom_to_notification: request?.copy_custom_to_notification,
744
+ enrich_own_fields: request?.enrich_own_fields,
731
745
  handle_mention_notifications: request?.handle_mention_notifications,
732
746
  run_activity_processors: request?.run_activity_processors,
733
747
  unset: request?.unset,
@@ -758,6 +772,7 @@ export class FeedsApi {
758
772
  };
759
773
  const body = {
760
774
  copy_custom_to_notification: request?.copy_custom_to_notification,
775
+ enrich_own_fields: request?.enrich_own_fields,
761
776
  expires_at: request?.expires_at,
762
777
  handle_mention_notifications: request?.handle_mention_notifications,
763
778
  poll_id: request?.poll_id,
@@ -795,8 +810,14 @@ export class FeedsApi {
795
810
  }
796
811
 
797
812
  async restoreActivity(
798
- request: RestoreActivityRequest & { id: string },
813
+ request: RestoreActivityRequest & {
814
+ id: string;
815
+ enrich_own_fields?: boolean;
816
+ },
799
817
  ): Promise<StreamResponse<RestoreActivityResponse>> {
818
+ const queryParams = {
819
+ enrich_own_fields: request?.enrich_own_fields,
820
+ };
800
821
  const pathParams = {
801
822
  id: request?.id,
802
823
  };
@@ -808,7 +829,7 @@ export class FeedsApi {
808
829
  'POST',
809
830
  '/api/v2/feeds/activities/{id}/restore',
810
831
  pathParams,
811
- undefined,
832
+ queryParams,
812
833
  body,
813
834
  'application/json',
814
835
  );
@@ -897,6 +918,7 @@ export class FeedsApi {
897
918
  request?: QueryBookmarksRequest,
898
919
  ): Promise<StreamResponse<QueryBookmarksResponse>> {
899
920
  const body = {
921
+ enrich_own_fields: request?.enrich_own_fields,
900
922
  limit: request?.limit,
901
923
  next: request?.next,
902
924
  prev: request?.prev,
@@ -936,8 +958,8 @@ export class FeedsApi {
936
958
  return { ...response.body, metadata: response.metadata };
937
959
  }
938
960
 
939
- async readCollections(request: {
940
- collection_refs: string[];
961
+ async readCollections(request?: {
962
+ collection_refs?: string[];
941
963
  }): Promise<StreamResponse<ReadCollectionsResponse>> {
942
964
  const queryParams = {
943
965
  collection_refs: request?.collection_refs,
@@ -1385,6 +1407,7 @@ export class FeedsApi {
1385
1407
  };
1386
1408
  const body = {
1387
1409
  description: request?.description,
1410
+ enrich_own_fields: request?.enrich_own_fields,
1388
1411
  name: request?.name,
1389
1412
  filter_tags: request?.filter_tags,
1390
1413
  custom: request?.custom,
@@ -1439,7 +1462,11 @@ export class FeedsApi {
1439
1462
  feed_group_id: string;
1440
1463
  feed_id: string;
1441
1464
  activity_id: string;
1465
+ enrich_own_fields?: boolean;
1442
1466
  }): Promise<StreamResponse<UnpinActivityResponse>> {
1467
+ const queryParams = {
1468
+ enrich_own_fields: request?.enrich_own_fields,
1469
+ };
1443
1470
  const pathParams = {
1444
1471
  feed_group_id: request?.feed_group_id,
1445
1472
  feed_id: request?.feed_id,
@@ -1452,7 +1479,7 @@ export class FeedsApi {
1452
1479
  'DELETE',
1453
1480
  '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/activities/{activity_id}/pin',
1454
1481
  pathParams,
1455
- undefined,
1482
+ queryParams,
1456
1483
  );
1457
1484
 
1458
1485
  decoders.UnpinActivityResponse?.(response.body);
@@ -1472,7 +1499,9 @@ export class FeedsApi {
1472
1499
  feed_id: request?.feed_id,
1473
1500
  activity_id: request?.activity_id,
1474
1501
  };
1475
- const body = {};
1502
+ const body = {
1503
+ enrich_own_fields: request?.enrich_own_fields,
1504
+ };
1476
1505
 
1477
1506
  const response = await this.apiClient.sendRequest<
1478
1507
  StreamResponse<PinActivityResponse>
@@ -1625,6 +1654,7 @@ export class FeedsApi {
1625
1654
  feed_id: request?.feed_id,
1626
1655
  };
1627
1656
  const body = {
1657
+ enrich_own_fields: request?.enrich_own_fields,
1628
1658
  limit: request?.limit,
1629
1659
  next: request?.next,
1630
1660
  prev: request?.prev,
@@ -1703,6 +1733,7 @@ export class FeedsApi {
1703
1733
  ): Promise<StreamResponse<CreateFeedsBatchResponse>> {
1704
1734
  const body = {
1705
1735
  feeds: request?.feeds,
1736
+ enrich_own_fields: request?.enrich_own_fields,
1706
1737
  };
1707
1738
 
1708
1739
  const response = await this.apiClient.sendRequest<
@@ -1755,6 +1786,7 @@ export class FeedsApi {
1755
1786
  connection_id: request?.connection_id,
1756
1787
  };
1757
1788
  const body = {
1789
+ enrich_own_fields: request?.enrich_own_fields,
1758
1790
  limit: request?.limit,
1759
1791
  next: request?.next,
1760
1792
  prev: request?.prev,
@@ -1787,6 +1819,7 @@ export class FeedsApi {
1787
1819
  target: request?.target,
1788
1820
  copy_custom_to_notification: request?.copy_custom_to_notification,
1789
1821
  create_notification_activity: request?.create_notification_activity,
1822
+ enrich_own_fields: request?.enrich_own_fields,
1790
1823
  follower_role: request?.follower_role,
1791
1824
  push_preference: request?.push_preference,
1792
1825
  skip_push: request?.skip_push,
@@ -1817,6 +1850,7 @@ export class FeedsApi {
1817
1850
  target: request?.target,
1818
1851
  copy_custom_to_notification: request?.copy_custom_to_notification,
1819
1852
  create_notification_activity: request?.create_notification_activity,
1853
+ enrich_own_fields: request?.enrich_own_fields,
1820
1854
  push_preference: request?.push_preference,
1821
1855
  skip_push: request?.skip_push,
1822
1856
  custom: request?.custom,
@@ -1868,6 +1902,7 @@ export class FeedsApi {
1868
1902
  ): Promise<StreamResponse<FollowBatchResponse>> {
1869
1903
  const body = {
1870
1904
  follows: request?.follows,
1905
+ enrich_own_fields: request?.enrich_own_fields,
1871
1906
  };
1872
1907
 
1873
1908
  const response = await this.apiClient.sendRequest<
@@ -1891,6 +1926,7 @@ export class FeedsApi {
1891
1926
  ): Promise<StreamResponse<FollowBatchResponse>> {
1892
1927
  const body = {
1893
1928
  follows: request?.follows,
1929
+ enrich_own_fields: request?.enrich_own_fields,
1894
1930
  };
1895
1931
 
1896
1932
  const response = await this.apiClient.sendRequest<
@@ -1964,9 +2000,11 @@ export class FeedsApi {
1964
2000
  source: string;
1965
2001
  target: string;
1966
2002
  delete_notification_activity?: boolean;
2003
+ enrich_own_fields?: boolean;
1967
2004
  }): Promise<StreamResponse<UnfollowResponse>> {
1968
2005
  const queryParams = {
1969
2006
  delete_notification_activity: request?.delete_notification_activity,
2007
+ enrich_own_fields: request?.enrich_own_fields,
1970
2008
  };
1971
2009
  const pathParams = {
1972
2010
  source: request?.source,
@@ -1993,6 +2031,7 @@ export class FeedsApi {
1993
2031
  const body = {
1994
2032
  follows: request?.follows,
1995
2033
  delete_notification_activity: request?.delete_notification_activity,
2034
+ enrich_own_fields: request?.enrich_own_fields,
1996
2035
  };
1997
2036
 
1998
2037
  const response = await this.apiClient.sendRequest<
@@ -2466,6 +2505,193 @@ export class FeedsApi {
2466
2505
  return { ...response.body, metadata: response.metadata };
2467
2506
  }
2468
2507
 
2508
+ async listUserGroups(request?: {
2509
+ limit?: number;
2510
+ id_gt?: string;
2511
+ created_at_gt?: string;
2512
+ team_id?: string;
2513
+ }): Promise<StreamResponse<ListUserGroupsResponse>> {
2514
+ const queryParams = {
2515
+ limit: request?.limit,
2516
+ id_gt: request?.id_gt,
2517
+ created_at_gt: request?.created_at_gt,
2518
+ team_id: request?.team_id,
2519
+ };
2520
+
2521
+ const response = await this.apiClient.sendRequest<
2522
+ StreamResponse<ListUserGroupsResponse>
2523
+ >('GET', '/api/v2/usergroups', undefined, queryParams);
2524
+
2525
+ decoders.ListUserGroupsResponse?.(response.body);
2526
+
2527
+ return { ...response.body, metadata: response.metadata };
2528
+ }
2529
+
2530
+ async createUserGroup(
2531
+ request: CreateUserGroupRequest,
2532
+ ): Promise<StreamResponse<CreateUserGroupResponse>> {
2533
+ const body = {
2534
+ name: request?.name,
2535
+ description: request?.description,
2536
+ id: request?.id,
2537
+ team_id: request?.team_id,
2538
+ member_ids: request?.member_ids,
2539
+ };
2540
+
2541
+ const response = await this.apiClient.sendRequest<
2542
+ StreamResponse<CreateUserGroupResponse>
2543
+ >(
2544
+ 'POST',
2545
+ '/api/v2/usergroups',
2546
+ undefined,
2547
+ undefined,
2548
+ body,
2549
+ 'application/json',
2550
+ );
2551
+
2552
+ decoders.CreateUserGroupResponse?.(response.body);
2553
+
2554
+ return { ...response.body, metadata: response.metadata };
2555
+ }
2556
+
2557
+ async searchUserGroups(request: {
2558
+ query: string;
2559
+ limit?: number;
2560
+ name_gt?: string;
2561
+ id_gt?: string;
2562
+ team_id?: string;
2563
+ }): Promise<StreamResponse<SearchUserGroupsResponse>> {
2564
+ const queryParams = {
2565
+ query: request?.query,
2566
+ limit: request?.limit,
2567
+ name_gt: request?.name_gt,
2568
+ id_gt: request?.id_gt,
2569
+ team_id: request?.team_id,
2570
+ };
2571
+
2572
+ const response = await this.apiClient.sendRequest<
2573
+ StreamResponse<SearchUserGroupsResponse>
2574
+ >('GET', '/api/v2/usergroups/search', undefined, queryParams);
2575
+
2576
+ decoders.SearchUserGroupsResponse?.(response.body);
2577
+
2578
+ return { ...response.body, metadata: response.metadata };
2579
+ }
2580
+
2581
+ async deleteUserGroup(request: {
2582
+ id: string;
2583
+ team_id?: string;
2584
+ }): Promise<StreamResponse<Response>> {
2585
+ const queryParams = {
2586
+ team_id: request?.team_id,
2587
+ };
2588
+ const pathParams = {
2589
+ id: request?.id,
2590
+ };
2591
+
2592
+ const response = await this.apiClient.sendRequest<StreamResponse<Response>>(
2593
+ 'DELETE',
2594
+ '/api/v2/usergroups/{id}',
2595
+ pathParams,
2596
+ queryParams,
2597
+ );
2598
+
2599
+ decoders.Response?.(response.body);
2600
+
2601
+ return { ...response.body, metadata: response.metadata };
2602
+ }
2603
+
2604
+ async getUserGroup(request: {
2605
+ id: string;
2606
+ team_id?: string;
2607
+ }): Promise<StreamResponse<GetUserGroupResponse>> {
2608
+ const queryParams = {
2609
+ team_id: request?.team_id,
2610
+ };
2611
+ const pathParams = {
2612
+ id: request?.id,
2613
+ };
2614
+
2615
+ const response = await this.apiClient.sendRequest<
2616
+ StreamResponse<GetUserGroupResponse>
2617
+ >('GET', '/api/v2/usergroups/{id}', pathParams, queryParams);
2618
+
2619
+ decoders.GetUserGroupResponse?.(response.body);
2620
+
2621
+ return { ...response.body, metadata: response.metadata };
2622
+ }
2623
+
2624
+ async updateUserGroup(
2625
+ request: UpdateUserGroupRequest & { id: string },
2626
+ ): Promise<StreamResponse<UpdateUserGroupResponse>> {
2627
+ const pathParams = {
2628
+ id: request?.id,
2629
+ };
2630
+ const body = {
2631
+ description: request?.description,
2632
+ name: request?.name,
2633
+ team_id: request?.team_id,
2634
+ };
2635
+
2636
+ const response = await this.apiClient.sendRequest<
2637
+ StreamResponse<UpdateUserGroupResponse>
2638
+ >(
2639
+ 'PUT',
2640
+ '/api/v2/usergroups/{id}',
2641
+ pathParams,
2642
+ undefined,
2643
+ body,
2644
+ 'application/json',
2645
+ );
2646
+
2647
+ decoders.UpdateUserGroupResponse?.(response.body);
2648
+
2649
+ return { ...response.body, metadata: response.metadata };
2650
+ }
2651
+
2652
+ async removeUserGroupMembers(request: {
2653
+ id: string;
2654
+ }): Promise<StreamResponse<RemoveUserGroupMembersResponse>> {
2655
+ const pathParams = {
2656
+ id: request?.id,
2657
+ };
2658
+
2659
+ const response = await this.apiClient.sendRequest<
2660
+ StreamResponse<RemoveUserGroupMembersResponse>
2661
+ >('DELETE', '/api/v2/usergroups/{id}/members', pathParams, undefined);
2662
+
2663
+ decoders.RemoveUserGroupMembersResponse?.(response.body);
2664
+
2665
+ return { ...response.body, metadata: response.metadata };
2666
+ }
2667
+
2668
+ async addUserGroupMembers(
2669
+ request: AddUserGroupMembersRequest & { id: string },
2670
+ ): Promise<StreamResponse<AddUserGroupMembersResponse>> {
2671
+ const pathParams = {
2672
+ id: request?.id,
2673
+ };
2674
+ const body = {
2675
+ member_ids: request?.member_ids,
2676
+ team_id: request?.team_id,
2677
+ };
2678
+
2679
+ const response = await this.apiClient.sendRequest<
2680
+ StreamResponse<AddUserGroupMembersResponse>
2681
+ >(
2682
+ 'POST',
2683
+ '/api/v2/usergroups/{id}/members',
2684
+ pathParams,
2685
+ undefined,
2686
+ body,
2687
+ 'application/json',
2688
+ );
2689
+
2690
+ decoders.AddUserGroupMembersResponse?.(response.body);
2691
+
2692
+ return { ...response.body, metadata: response.metadata };
2693
+ }
2694
+
2469
2695
  async queryUsers(request?: {
2470
2696
  payload?: QueryUsersPayload;
2471
2697
  }): Promise<StreamResponse<QueryUsersResponse>> {
@@ -293,6 +293,13 @@ decoders.AddReactionResponse = (input?: Record<string, any>) => {
293
293
  return decode(typeMappings, input);
294
294
  };
295
295
 
296
+ decoders.AddUserGroupMembersResponse = (input?: Record<string, any>) => {
297
+ const typeMappings: TypeMapping = {
298
+ user_group: { type: 'UserGroupResponse', isSingle: true },
299
+ };
300
+ return decode(typeMappings, input);
301
+ };
302
+
296
303
  decoders.AggregatedActivityResponse = (input?: Record<string, any>) => {
297
304
  const typeMappings: TypeMapping = {
298
305
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -726,6 +733,13 @@ decoders.CreateGuestResponse = (input?: Record<string, any>) => {
726
733
  return decode(typeMappings, input);
727
734
  };
728
735
 
736
+ decoders.CreateUserGroupResponse = (input?: Record<string, any>) => {
737
+ const typeMappings: TypeMapping = {
738
+ user_group: { type: 'UserGroupResponse', isSingle: true },
739
+ };
740
+ return decode(typeMappings, input);
741
+ };
742
+
729
743
  decoders.DeleteActivityReactionResponse = (input?: Record<string, any>) => {
730
744
  const typeMappings: TypeMapping = {
731
745
  activity: { type: 'ActivityResponse', isSingle: true },
@@ -862,6 +876,15 @@ decoders.FeedGroupDeletedEvent = (input?: Record<string, any>) => {
862
876
  return decode(typeMappings, input);
863
877
  };
864
878
 
879
+ decoders.FeedGroupRestoredEvent = (input?: Record<string, any>) => {
880
+ const typeMappings: TypeMapping = {
881
+ created_at: { type: 'DatetimeType', isSingle: true },
882
+
883
+ received_at: { type: 'DatetimeType', isSingle: true },
884
+ };
885
+ return decode(typeMappings, input);
886
+ };
887
+
865
888
  decoders.FeedMemberAddedEvent = (input?: Record<string, any>) => {
866
889
  const typeMappings: TypeMapping = {
867
890
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1154,6 +1177,13 @@ decoders.GetOrCreateFeedResponse = (input?: Record<string, any>) => {
1154
1177
  return decode(typeMappings, input);
1155
1178
  };
1156
1179
 
1180
+ decoders.GetUserGroupResponse = (input?: Record<string, any>) => {
1181
+ const typeMappings: TypeMapping = {
1182
+ user_group: { type: 'UserGroupResponse', isSingle: true },
1183
+ };
1184
+ return decode(typeMappings, input);
1185
+ };
1186
+
1157
1187
  decoders.HealthCheckEvent = (input?: Record<string, any>) => {
1158
1188
  const typeMappings: TypeMapping = {
1159
1189
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1179,6 +1209,13 @@ decoders.ListDevicesResponse = (input?: Record<string, any>) => {
1179
1209
  return decode(typeMappings, input);
1180
1210
  };
1181
1211
 
1212
+ decoders.ListUserGroupsResponse = (input?: Record<string, any>) => {
1213
+ const typeMappings: TypeMapping = {
1214
+ user_groups: { type: 'UserGroupResponse', isSingle: false },
1215
+ };
1216
+ return decode(typeMappings, input);
1217
+ };
1218
+
1182
1219
  decoders.MembershipLevelResponse = (input?: Record<string, any>) => {
1183
1220
  const typeMappings: TypeMapping = {
1184
1221
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1649,6 +1686,13 @@ decoders.ReminderResponseData = (input?: Record<string, any>) => {
1649
1686
  return decode(typeMappings, input);
1650
1687
  };
1651
1688
 
1689
+ decoders.RemoveUserGroupMembersResponse = (input?: Record<string, any>) => {
1690
+ const typeMappings: TypeMapping = {
1691
+ user_group: { type: 'UserGroupResponse', isSingle: true },
1692
+ };
1693
+ return decode(typeMappings, input);
1694
+ };
1695
+
1652
1696
  decoders.RestoreActivityResponse = (input?: Record<string, any>) => {
1653
1697
  const typeMappings: TypeMapping = {
1654
1698
  activity: { type: 'ActivityResponse', isSingle: true },
@@ -1693,6 +1737,13 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
1693
1737
  return decode(typeMappings, input);
1694
1738
  };
1695
1739
 
1740
+ decoders.SearchUserGroupsResponse = (input?: Record<string, any>) => {
1741
+ const typeMappings: TypeMapping = {
1742
+ user_groups: { type: 'UserGroupResponse', isSingle: false },
1743
+ };
1744
+ return decode(typeMappings, input);
1745
+ };
1746
+
1696
1747
  decoders.SharedLocationResponse = (input?: Record<string, any>) => {
1697
1748
  const typeMappings: TypeMapping = {
1698
1749
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1883,6 +1934,13 @@ decoders.UpdateFollowResponse = (input?: Record<string, any>) => {
1883
1934
  return decode(typeMappings, input);
1884
1935
  };
1885
1936
 
1937
+ decoders.UpdateUserGroupResponse = (input?: Record<string, any>) => {
1938
+ const typeMappings: TypeMapping = {
1939
+ user_group: { type: 'UserGroupResponse', isSingle: true },
1940
+ };
1941
+ return decode(typeMappings, input);
1942
+ };
1943
+
1886
1944
  decoders.UpdateUsersResponse = (input?: Record<string, any>) => {
1887
1945
  const typeMappings: TypeMapping = {
1888
1946
  users: { type: 'FullUserResponse', isSingle: false },
@@ -1931,6 +1989,24 @@ decoders.UserDeactivatedEvent = (input?: Record<string, any>) => {
1931
1989
  return decode(typeMappings, input);
1932
1990
  };
1933
1991
 
1992
+ decoders.UserGroupMember = (input?: Record<string, any>) => {
1993
+ const typeMappings: TypeMapping = {
1994
+ created_at: { type: 'DatetimeType', isSingle: true },
1995
+ };
1996
+ return decode(typeMappings, input);
1997
+ };
1998
+
1999
+ decoders.UserGroupResponse = (input?: Record<string, any>) => {
2000
+ const typeMappings: TypeMapping = {
2001
+ created_at: { type: 'DatetimeType', isSingle: true },
2002
+
2003
+ updated_at: { type: 'DatetimeType', isSingle: true },
2004
+
2005
+ members: { type: 'UserGroupMember', isSingle: false },
2006
+ };
2007
+ return decode(typeMappings, input);
2008
+ };
2009
+
1934
2010
  decoders.UserMuteResponse = (input?: Record<string, any>) => {
1935
2011
  const typeMappings: TypeMapping = {
1936
2012
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -91,6 +91,9 @@ const eventDecoderMapping: Record<
91
91
  'feeds.feed_group.deleted': (data: Record<string, any>) =>
92
92
  decoders.FeedGroupDeletedEvent(data),
93
93
 
94
+ 'feeds.feed_group.restored': (data: Record<string, any>) =>
95
+ decoders.FeedGroupRestoredEvent(data),
96
+
94
97
  'feeds.feed_member.added': (data: Record<string, any>) =>
95
98
  decoders.FeedMemberAddedEvent(data),
96
99