@stream-io/feeds-client 0.3.10 → 0.3.12

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 (31) hide show
  1. package/CHANGELOG.md +12 -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-CqcICDIi.js → feeds-client-BraP5Emi.js} +79 -42
  9. package/dist/feeds-client-BraP5Emi.js.map +1 -0
  10. package/dist/{feeds-client-CRi0CGaj.mjs → feeds-client-DDkq_n24.mjs} +79 -42
  11. package/dist/feeds-client-DDkq_n24.mjs.map +1 -0
  12. package/dist/types/bindings/react/hooks/client-state-hooks/useClientConnectedUser.d.ts +1 -1
  13. package/dist/types/bindings/react/hooks/client-state-hooks/useClientConnectedUser.d.ts.map +1 -1
  14. package/dist/types/common/real-time/event-models.d.ts +2 -2
  15. package/dist/types/common/real-time/event-models.d.ts.map +1 -1
  16. package/dist/types/feeds-client/feeds-client.d.ts +3 -3
  17. package/dist/types/feeds-client/feeds-client.d.ts.map +1 -1
  18. package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
  19. package/dist/types/gen/models/index.d.ts +56 -17
  20. package/dist/types/gen/models/index.d.ts.map +1 -1
  21. package/dist/types/types.d.ts +5 -1
  22. package/dist/types/types.d.ts.map +1 -1
  23. package/package.json +1 -1
  24. package/src/common/real-time/event-models.ts +2 -2
  25. package/src/feeds-client/feeds-client.ts +7 -3
  26. package/src/gen/feeds/FeedsApi.ts +1 -1
  27. package/src/gen/model-decoders/decoders.ts +84 -10
  28. package/src/gen/models/index.ts +97 -21
  29. package/src/types.ts +3 -1
  30. package/dist/feeds-client-CRi0CGaj.mjs.map +0 -1
  31. package/dist/feeds-client-CqcICDIi.js.map +0 -1
@@ -68,6 +68,8 @@ decoders.ActivityAddedEvent = (input?: Record<string, any>) => {
68
68
  activity: { type: 'ActivityResponse', isSingle: true },
69
69
 
70
70
  received_at: { type: 'DatetimeType', isSingle: true },
71
+
72
+ user: { type: 'UserResponseCommonFields', isSingle: true },
71
73
  };
72
74
  return decode(typeMappings, input);
73
75
  };
@@ -79,6 +81,8 @@ decoders.ActivityDeletedEvent = (input?: Record<string, any>) => {
79
81
  activity: { type: 'ActivityResponse', isSingle: true },
80
82
 
81
83
  received_at: { type: 'DatetimeType', isSingle: true },
84
+
85
+ user: { type: 'UserResponseCommonFields', isSingle: true },
82
86
  };
83
87
  return decode(typeMappings, input);
84
88
  };
@@ -88,6 +92,8 @@ decoders.ActivityFeedbackEvent = (input?: Record<string, any>) => {
88
92
  created_at: { type: 'DatetimeType', isSingle: true },
89
93
 
90
94
  received_at: { type: 'DatetimeType', isSingle: true },
95
+
96
+ user: { type: 'UserResponseCommonFields', isSingle: true },
91
97
  };
92
98
  return decode(typeMappings, input);
93
99
  };
@@ -97,6 +103,8 @@ decoders.ActivityMarkEvent = (input?: Record<string, any>) => {
97
103
  created_at: { type: 'DatetimeType', isSingle: true },
98
104
 
99
105
  received_at: { type: 'DatetimeType', isSingle: true },
106
+
107
+ user: { type: 'UserResponseCommonFields', isSingle: true },
100
108
  };
101
109
  return decode(typeMappings, input);
102
110
  };
@@ -121,6 +129,8 @@ decoders.ActivityPinnedEvent = (input?: Record<string, any>) => {
121
129
  pinned_activity: { type: 'PinActivityResponse', isSingle: true },
122
130
 
123
131
  received_at: { type: 'DatetimeType', isSingle: true },
132
+
133
+ user: { type: 'UserResponseCommonFields', isSingle: true },
124
134
  };
125
135
  return decode(typeMappings, input);
126
136
  };
@@ -134,6 +144,8 @@ decoders.ActivityReactionAddedEvent = (input?: Record<string, any>) => {
134
144
  reaction: { type: 'FeedsReactionResponse', isSingle: true },
135
145
 
136
146
  received_at: { type: 'DatetimeType', isSingle: true },
147
+
148
+ user: { type: 'UserResponseCommonFields', isSingle: true },
137
149
  };
138
150
  return decode(typeMappings, input);
139
151
  };
@@ -147,6 +159,8 @@ decoders.ActivityReactionDeletedEvent = (input?: Record<string, any>) => {
147
159
  reaction: { type: 'FeedsReactionResponse', isSingle: true },
148
160
 
149
161
  received_at: { type: 'DatetimeType', isSingle: true },
162
+
163
+ user: { type: 'UserResponseCommonFields', isSingle: true },
150
164
  };
151
165
  return decode(typeMappings, input);
152
166
  };
@@ -160,6 +174,8 @@ decoders.ActivityReactionUpdatedEvent = (input?: Record<string, any>) => {
160
174
  reaction: { type: 'FeedsReactionResponse', isSingle: true },
161
175
 
162
176
  received_at: { type: 'DatetimeType', isSingle: true },
177
+
178
+ user: { type: 'UserResponseCommonFields', isSingle: true },
163
179
  };
164
180
  return decode(typeMappings, input);
165
181
  };
@@ -171,6 +187,8 @@ decoders.ActivityRemovedFromFeedEvent = (input?: Record<string, any>) => {
171
187
  activity: { type: 'ActivityResponse', isSingle: true },
172
188
 
173
189
  received_at: { type: 'DatetimeType', isSingle: true },
190
+
191
+ user: { type: 'UserResponseCommonFields', isSingle: true },
174
192
  };
175
193
  return decode(typeMappings, input);
176
194
  };
@@ -219,6 +237,8 @@ decoders.ActivityUnpinnedEvent = (input?: Record<string, any>) => {
219
237
  pinned_activity: { type: 'PinActivityResponse', isSingle: true },
220
238
 
221
239
  received_at: { type: 'DatetimeType', isSingle: true },
240
+
241
+ user: { type: 'UserResponseCommonFields', isSingle: true },
222
242
  };
223
243
  return decode(typeMappings, input);
224
244
  };
@@ -230,6 +250,8 @@ decoders.ActivityUpdatedEvent = (input?: Record<string, any>) => {
230
250
  activity: { type: 'ActivityResponse', isSingle: true },
231
251
 
232
252
  received_at: { type: 'DatetimeType', isSingle: true },
253
+
254
+ user: { type: 'UserResponseCommonFields', isSingle: true },
233
255
  };
234
256
  return decode(typeMappings, input);
235
257
  };
@@ -349,6 +371,8 @@ decoders.BookmarkAddedEvent = (input?: Record<string, any>) => {
349
371
  bookmark: { type: 'BookmarkResponse', isSingle: true },
350
372
 
351
373
  received_at: { type: 'DatetimeType', isSingle: true },
374
+
375
+ user: { type: 'UserResponseCommonFields', isSingle: true },
352
376
  };
353
377
  return decode(typeMappings, input);
354
378
  };
@@ -360,6 +384,8 @@ decoders.BookmarkDeletedEvent = (input?: Record<string, any>) => {
360
384
  bookmark: { type: 'BookmarkResponse', isSingle: true },
361
385
 
362
386
  received_at: { type: 'DatetimeType', isSingle: true },
387
+
388
+ user: { type: 'UserResponseCommonFields', isSingle: true },
363
389
  };
364
390
  return decode(typeMappings, input);
365
391
  };
@@ -371,6 +397,8 @@ decoders.BookmarkFolderDeletedEvent = (input?: Record<string, any>) => {
371
397
  bookmark_folder: { type: 'BookmarkFolderResponse', isSingle: true },
372
398
 
373
399
  received_at: { type: 'DatetimeType', isSingle: true },
400
+
401
+ user: { type: 'UserResponseCommonFields', isSingle: true },
374
402
  };
375
403
  return decode(typeMappings, input);
376
404
  };
@@ -380,6 +408,8 @@ decoders.BookmarkFolderResponse = (input?: Record<string, any>) => {
380
408
  created_at: { type: 'DatetimeType', isSingle: true },
381
409
 
382
410
  updated_at: { type: 'DatetimeType', isSingle: true },
411
+
412
+ user: { type: 'UserResponseCommonFields', isSingle: true },
383
413
  };
384
414
  return decode(typeMappings, input);
385
415
  };
@@ -391,6 +421,8 @@ decoders.BookmarkFolderUpdatedEvent = (input?: Record<string, any>) => {
391
421
  bookmark_folder: { type: 'BookmarkFolderResponse', isSingle: true },
392
422
 
393
423
  received_at: { type: 'DatetimeType', isSingle: true },
424
+
425
+ user: { type: 'UserResponseCommonFields', isSingle: true },
394
426
  };
395
427
  return decode(typeMappings, input);
396
428
  };
@@ -403,7 +435,7 @@ decoders.BookmarkResponse = (input?: Record<string, any>) => {
403
435
 
404
436
  activity: { type: 'ActivityResponse', isSingle: true },
405
437
 
406
- user: { type: 'UserResponse', isSingle: true },
438
+ user: { type: 'UserResponseCommonFields', isSingle: true },
407
439
 
408
440
  folder: { type: 'BookmarkFolderResponse', isSingle: true },
409
441
  };
@@ -417,6 +449,8 @@ decoders.BookmarkUpdatedEvent = (input?: Record<string, any>) => {
417
449
  bookmark: { type: 'BookmarkResponse', isSingle: true },
418
450
 
419
451
  received_at: { type: 'DatetimeType', isSingle: true },
452
+
453
+ user: { type: 'UserResponseCommonFields', isSingle: true },
420
454
  };
421
455
  return decode(typeMappings, input);
422
456
  };
@@ -645,6 +679,8 @@ decoders.CommentAddedEvent = (input?: Record<string, any>) => {
645
679
  comment: { type: 'CommentResponse', isSingle: true },
646
680
 
647
681
  received_at: { type: 'DatetimeType', isSingle: true },
682
+
683
+ user: { type: 'UserResponseCommonFields', isSingle: true },
648
684
  };
649
685
  return decode(typeMappings, input);
650
686
  };
@@ -656,6 +692,8 @@ decoders.CommentDeletedEvent = (input?: Record<string, any>) => {
656
692
  comment: { type: 'CommentResponse', isSingle: true },
657
693
 
658
694
  received_at: { type: 'DatetimeType', isSingle: true },
695
+
696
+ user: { type: 'UserResponseCommonFields', isSingle: true },
659
697
  };
660
698
  return decode(typeMappings, input);
661
699
  };
@@ -671,6 +709,8 @@ decoders.CommentReactionAddedEvent = (input?: Record<string, any>) => {
671
709
  reaction: { type: 'FeedsReactionResponse', isSingle: true },
672
710
 
673
711
  received_at: { type: 'DatetimeType', isSingle: true },
712
+
713
+ user: { type: 'UserResponseCommonFields', isSingle: true },
674
714
  };
675
715
  return decode(typeMappings, input);
676
716
  };
@@ -699,6 +739,8 @@ decoders.CommentReactionUpdatedEvent = (input?: Record<string, any>) => {
699
739
  reaction: { type: 'FeedsReactionResponse', isSingle: true },
700
740
 
701
741
  received_at: { type: 'DatetimeType', isSingle: true },
742
+
743
+ user: { type: 'UserResponseCommonFields', isSingle: true },
702
744
  };
703
745
  return decode(typeMappings, input);
704
746
  };
@@ -731,6 +773,8 @@ decoders.CommentUpdatedEvent = (input?: Record<string, any>) => {
731
773
  comment: { type: 'CommentResponse', isSingle: true },
732
774
 
733
775
  received_at: { type: 'DatetimeType', isSingle: true },
776
+
777
+ user: { type: 'UserResponseCommonFields', isSingle: true },
734
778
  };
735
779
  return decode(typeMappings, input);
736
780
  };
@@ -883,6 +927,8 @@ decoders.FeedCreatedEvent = (input?: Record<string, any>) => {
883
927
 
884
928
  feed: { type: 'FeedResponse', isSingle: true },
885
929
 
930
+ user: { type: 'UserResponseCommonFields', isSingle: true },
931
+
886
932
  received_at: { type: 'DatetimeType', isSingle: true },
887
933
  };
888
934
  return decode(typeMappings, input);
@@ -893,6 +939,8 @@ decoders.FeedDeletedEvent = (input?: Record<string, any>) => {
893
939
  created_at: { type: 'DatetimeType', isSingle: true },
894
940
 
895
941
  received_at: { type: 'DatetimeType', isSingle: true },
942
+
943
+ user: { type: 'UserResponseCommonFields', isSingle: true },
896
944
  };
897
945
  return decode(typeMappings, input);
898
946
  };
@@ -902,6 +950,8 @@ decoders.FeedGroupChangedEvent = (input?: Record<string, any>) => {
902
950
  created_at: { type: 'DatetimeType', isSingle: true },
903
951
 
904
952
  received_at: { type: 'DatetimeType', isSingle: true },
953
+
954
+ user: { type: 'UserResponseCommonFields', isSingle: true },
905
955
  };
906
956
  return decode(typeMappings, input);
907
957
  };
@@ -922,6 +972,8 @@ decoders.FeedMemberAddedEvent = (input?: Record<string, any>) => {
922
972
  member: { type: 'FeedMemberResponse', isSingle: true },
923
973
 
924
974
  received_at: { type: 'DatetimeType', isSingle: true },
975
+
976
+ user: { type: 'UserResponseCommonFields', isSingle: true },
925
977
  };
926
978
  return decode(typeMappings, input);
927
979
  };
@@ -931,6 +983,8 @@ decoders.FeedMemberRemovedEvent = (input?: Record<string, any>) => {
931
983
  created_at: { type: 'DatetimeType', isSingle: true },
932
984
 
933
985
  received_at: { type: 'DatetimeType', isSingle: true },
986
+
987
+ user: { type: 'UserResponseCommonFields', isSingle: true },
934
988
  };
935
989
  return decode(typeMappings, input);
936
990
  };
@@ -959,6 +1013,8 @@ decoders.FeedMemberUpdatedEvent = (input?: Record<string, any>) => {
959
1013
  member: { type: 'FeedMemberResponse', isSingle: true },
960
1014
 
961
1015
  received_at: { type: 'DatetimeType', isSingle: true },
1016
+
1017
+ user: { type: 'UserResponseCommonFields', isSingle: true },
962
1018
  };
963
1019
  return decode(typeMappings, input);
964
1020
  };
@@ -1004,6 +1060,8 @@ decoders.FeedUpdatedEvent = (input?: Record<string, any>) => {
1004
1060
  feed: { type: 'FeedResponse', isSingle: true },
1005
1061
 
1006
1062
  received_at: { type: 'DatetimeType', isSingle: true },
1063
+
1064
+ user: { type: 'UserResponseCommonFields', isSingle: true },
1007
1065
  };
1008
1066
  return decode(typeMappings, input);
1009
1067
  };
@@ -1376,6 +1434,8 @@ decoders.NotificationFeedUpdatedEvent = (input?: Record<string, any>) => {
1376
1434
  },
1377
1435
 
1378
1436
  notification_status: { type: 'NotificationStatusResponse', isSingle: true },
1437
+
1438
+ user: { type: 'UserResponseCommonFields', isSingle: true },
1379
1439
  };
1380
1440
  return decode(typeMappings, input);
1381
1441
  };
@@ -1652,13 +1712,6 @@ decoders.QueryPollsResponse = (input?: Record<string, any>) => {
1652
1712
  return decode(typeMappings, input);
1653
1713
  };
1654
1714
 
1655
- decoders.QueryReviewQueueResponse = (input?: Record<string, any>) => {
1656
- const typeMappings: TypeMapping = {
1657
- items: { type: 'ReviewQueueItemResponse', isSingle: false },
1658
- };
1659
- return decode(typeMappings, input);
1660
- };
1661
-
1662
1715
  decoders.QueryUsersResponse = (input?: Record<string, any>) => {
1663
1716
  const typeMappings: TypeMapping = {
1664
1717
  users: { type: 'FullUserResponse', isSingle: false },
@@ -1672,6 +1725,8 @@ decoders.Reaction = (input?: Record<string, any>) => {
1672
1725
 
1673
1726
  updated_at: { type: 'DatetimeType', isSingle: true },
1674
1727
 
1728
+ deleted_at: { type: 'DatetimeType', isSingle: true },
1729
+
1675
1730
  user: { type: 'User', isSingle: true },
1676
1731
  };
1677
1732
  return decode(typeMappings, input);
@@ -1728,9 +1783,9 @@ decoders.ReminderResponseData = (input?: Record<string, any>) => {
1728
1783
 
1729
1784
  channel: { type: 'ChannelResponse', isSingle: true },
1730
1785
 
1731
- message: { type: 'Message', isSingle: true },
1786
+ message: { type: 'MessageResponse', isSingle: true },
1732
1787
 
1733
- user: { type: 'User', isSingle: true },
1788
+ user: { type: 'UserResponse', isSingle: true },
1734
1789
  };
1735
1790
  return decode(typeMappings, input);
1736
1791
  };
@@ -1844,6 +1899,8 @@ decoders.StoriesFeedUpdatedEvent = (input?: Record<string, any>) => {
1844
1899
  type: 'AggregatedActivityResponse',
1845
1900
  isSingle: false,
1846
1901
  },
1902
+
1903
+ user: { type: 'UserResponseCommonFields', isSingle: true },
1847
1904
  };
1848
1905
  return decode(typeMappings, input);
1849
1906
  };
@@ -2102,6 +2159,23 @@ decoders.UserResponse = (input?: Record<string, any>) => {
2102
2159
  return decode(typeMappings, input);
2103
2160
  };
2104
2161
 
2162
+ decoders.UserResponseCommonFields = (input?: Record<string, any>) => {
2163
+ const typeMappings: TypeMapping = {
2164
+ created_at: { type: 'DatetimeType', isSingle: true },
2165
+
2166
+ updated_at: { type: 'DatetimeType', isSingle: true },
2167
+
2168
+ deactivated_at: { type: 'DatetimeType', isSingle: true },
2169
+
2170
+ deleted_at: { type: 'DatetimeType', isSingle: true },
2171
+
2172
+ last_active: { type: 'DatetimeType', isSingle: true },
2173
+
2174
+ revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
2175
+ };
2176
+ return decode(typeMappings, input);
2177
+ };
2178
+
2105
2179
  decoders.UserUpdatedEvent = (input?: Record<string, any>) => {
2106
2180
  const typeMappings: TypeMapping = {
2107
2181
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -619,6 +619,8 @@ export interface AddCommentRequest {
619
619
 
620
620
  create_notification_activity?: boolean;
621
621
 
622
+ id?: string;
623
+
622
624
  parent_id?: string;
623
625
 
624
626
  skip_push?: boolean;
@@ -1076,6 +1078,8 @@ export interface BookmarkFolderResponse {
1076
1078
 
1077
1079
  updated_at: Date;
1078
1080
 
1081
+ user: UserResponseCommonFields;
1082
+
1079
1083
  custom?: Record<string, any>;
1080
1084
  }
1081
1085
 
@@ -1100,7 +1104,7 @@ export interface BookmarkResponse {
1100
1104
 
1101
1105
  activity: ActivityResponse;
1102
1106
 
1103
- user: UserResponse;
1107
+ user: UserResponseCommonFields;
1104
1108
 
1105
1109
  custom?: Record<string, any>;
1106
1110
 
@@ -1296,6 +1300,8 @@ export interface Channel {
1296
1300
 
1297
1301
  active_live_locations?: SharedLocation[];
1298
1302
 
1303
+ filter_tags?: string[];
1304
+
1299
1305
  invites?: ChannelMember[];
1300
1306
 
1301
1307
  members?: ChannelMember[];
@@ -1667,6 +1673,8 @@ export interface ChannelResponse {
1667
1673
 
1668
1674
  truncated_at?: Date;
1669
1675
 
1676
+ filter_tags?: string[];
1677
+
1670
1678
  members?: ChannelMemberResponse[];
1671
1679
 
1672
1680
  own_capabilities?: ChannelOwnCapability[];
@@ -1687,17 +1695,17 @@ export interface CollectionRequest {
1687
1695
  }
1688
1696
 
1689
1697
  export interface CollectionResponse {
1690
- created_at: Date;
1691
-
1692
1698
  id: string;
1693
1699
 
1694
1700
  name: string;
1695
1701
 
1696
- updated_at: Date;
1702
+ created_at?: Date;
1697
1703
 
1698
- custom: Record<string, any>;
1704
+ updated_at?: Date;
1699
1705
 
1700
1706
  user_id?: string;
1707
+
1708
+ custom?: Record<string, any>;
1701
1709
  }
1702
1710
 
1703
1711
  export interface Command {
@@ -1979,7 +1987,13 @@ export interface CreateBlockListRequest {
1979
1987
 
1980
1988
  team?: string;
1981
1989
 
1982
- type?: 'regex' | 'domain' | 'domain_allowlist' | 'email' | 'word';
1990
+ type?:
1991
+ | 'regex'
1992
+ | 'domain'
1993
+ | 'domain_allowlist'
1994
+ | 'email'
1995
+ | 'email_allowlist'
1996
+ | 'word';
1983
1997
  }
1984
1998
 
1985
1999
  export interface CreateBlockListResponse {
@@ -2349,19 +2363,19 @@ export interface EnrichedActivity {
2349
2363
  }
2350
2364
 
2351
2365
  export interface EnrichedCollectionResponse {
2352
- created_at: Date;
2353
-
2354
2366
  id: string;
2355
2367
 
2356
2368
  name: string;
2357
2369
 
2358
2370
  status: 'ok' | 'notfound';
2359
2371
 
2360
- updated_at: Date;
2372
+ created_at?: Date;
2361
2373
 
2362
- custom: Record<string, any>;
2374
+ updated_at?: Date;
2363
2375
 
2364
2376
  user_id?: string;
2377
+
2378
+ custom?: Record<string, any>;
2365
2379
  }
2366
2380
 
2367
2381
  export interface EnrichedReaction {
@@ -2813,6 +2827,20 @@ export interface FeedsPreferences {
2813
2827
  custom_activity_types?: Record<string, string>;
2814
2828
  }
2815
2829
 
2830
+ export interface FeedsPreferencesResponse {
2831
+ comment?: string;
2832
+
2833
+ comment_reaction?: string;
2834
+
2835
+ follow?: string;
2836
+
2837
+ mention?: string;
2838
+
2839
+ reaction?: string;
2840
+
2841
+ custom_activity_types?: Record<string, string>;
2842
+ }
2843
+
2816
2844
  export interface FeedsReactionResponse {
2817
2845
  activity_id: string;
2818
2846
 
@@ -2863,6 +2891,12 @@ export interface FileUploadResponse {
2863
2891
  thumb_url?: string;
2864
2892
  }
2865
2893
 
2894
+ export interface FilterConfigResponse {
2895
+ llm_labels: string[];
2896
+
2897
+ ai_text_labels?: string[];
2898
+ }
2899
+
2866
2900
  export interface FlagRequest {
2867
2901
  entity_id: string;
2868
2902
 
@@ -3176,8 +3210,6 @@ export interface GetOrCreateFeedRequest {
3176
3210
 
3177
3211
  watch?: boolean;
3178
3212
 
3179
- activity_selector_options?: Record<string, any>;
3180
-
3181
3213
  data?: FeedInput;
3182
3214
 
3183
3215
  external_ranking?: Record<string, any>;
@@ -3806,6 +3838,16 @@ export interface NoiseCancellationSettings {
3806
3838
  mode: 'available' | 'disabled' | 'auto-on';
3807
3839
  }
3808
3840
 
3841
+ export interface NotificationComment {
3842
+ comment: string;
3843
+
3844
+ id: string;
3845
+
3846
+ user_id: string;
3847
+
3848
+ attachments?: Attachment[];
3849
+ }
3850
+
3809
3851
  export interface NotificationConfig {
3810
3852
  track_read?: boolean;
3811
3853
 
@@ -3864,6 +3906,8 @@ export interface NotificationTarget {
3864
3906
  user_id?: string;
3865
3907
 
3866
3908
  attachments?: Attachment[];
3909
+
3910
+ comment?: NotificationComment;
3867
3911
  }
3868
3912
 
3869
3913
  export interface NotificationTrigger {
@@ -4011,7 +4055,7 @@ export interface OwnUserResponse {
4011
4055
 
4012
4056
  privacy_settings?: PrivacySettingsResponse;
4013
4057
 
4014
- push_preferences?: PushPreferences;
4058
+ push_preferences?: PushPreferencesResponse;
4015
4059
 
4016
4060
  teams_role?: Record<string, string>;
4017
4061
 
@@ -4386,6 +4430,18 @@ export interface PushPreferences {
4386
4430
  feeds_preferences?: FeedsPreferences;
4387
4431
  }
4388
4432
 
4433
+ export interface PushPreferencesResponse {
4434
+ call_level?: string;
4435
+
4436
+ chat_level?: string;
4437
+
4438
+ disabled_until?: Date;
4439
+
4440
+ feeds_level?: string;
4441
+
4442
+ feeds_preferences?: FeedsPreferencesResponse;
4443
+ }
4444
+
4389
4445
  export interface QueryActivitiesRequest {
4390
4446
  limit?: number;
4391
4447
 
@@ -4674,6 +4730,8 @@ export interface QueryReviewQueueResponse {
4674
4730
  next?: string;
4675
4731
 
4676
4732
  prev?: string;
4733
+
4734
+ filter_config?: FilterConfigResponse;
4677
4735
  }
4678
4736
 
4679
4737
  export interface QueryUsersPayload {
@@ -4717,19 +4775,37 @@ export interface RankingConfig {
4717
4775
  }
4718
4776
 
4719
4777
  export interface Reaction {
4778
+ activity_id: string;
4779
+
4720
4780
  created_at: Date;
4721
4781
 
4722
- message_id: string;
4782
+ kind: string;
4723
4783
 
4724
- score: number;
4784
+ updated_at: Date;
4725
4785
 
4726
- type: string;
4786
+ user_id: string;
4727
4787
 
4728
- updated_at: Date;
4788
+ deleted_at?: Date;
4729
4789
 
4730
- custom: Record<string, any>;
4790
+ id?: string;
4731
4791
 
4732
- user_id?: string;
4792
+ parent?: string;
4793
+
4794
+ score?: number;
4795
+
4796
+ target_feeds?: string[];
4797
+
4798
+ children_counts?: Record<string, any>;
4799
+
4800
+ data?: Record<string, any>;
4801
+
4802
+ latest_children?: Record<string, Reaction[]>;
4803
+
4804
+ moderation?: Record<string, any>;
4805
+
4806
+ own_children?: Record<string, Reaction[]>;
4807
+
4808
+ target_feeds_extra_data?: Record<string, any>;
4733
4809
 
4734
4810
  user?: User;
4735
4811
  }
@@ -4819,9 +4895,9 @@ export interface ReminderResponseData {
4819
4895
 
4820
4896
  channel?: ChannelResponse;
4821
4897
 
4822
- message?: Message;
4898
+ message?: MessageResponse;
4823
4899
 
4824
- user?: User;
4900
+ user?: UserResponse;
4825
4901
  }
4826
4902
 
4827
4903
  export interface RepliesMeta {
package/src/types.ts CHANGED
@@ -3,7 +3,7 @@ import type {
3
3
  UnhandledErrorEvent,
4
4
  } from './common/real-time/event-models';
5
5
  import type { NetworkChangedEvent } from './common/types';
6
- import type { PagerResponse, WSEvent } from './gen/models';
6
+ import type { OwnUser, PagerResponse, WSEvent } from './gen/models';
7
7
  import type { ActivityResponse, CommentResponse } from './gen/models';
8
8
  import type { FeedsClient } from './feeds-client';
9
9
 
@@ -34,3 +34,5 @@ export type TokenProvider = () => Promise<string>;
34
34
  export type StreamFile = File | { name: string; uri: string; type: string };
35
35
 
36
36
  export type CommentParent = ActivityResponse | CommentResponse;
37
+
38
+ export type ConnectedUser = OwnUser & { name?: string; image?: string };