@stream-io/feeds-client 0.3.16 → 0.3.18
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.
- package/CHANGELOG.md +20 -0
- package/README.md +27 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react-bindings.js +5 -11
- package/dist/cjs/react-bindings.js.map +1 -1
- package/dist/es/index.mjs +2 -2
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/react-bindings.mjs +5 -11
- package/dist/es/react-bindings.mjs.map +1 -1
- package/dist/{feeds-client-B6L006tr.js → feeds-client-Be5gS8Xx.js} +154 -139
- package/dist/feeds-client-Be5gS8Xx.js.map +1 -0
- package/dist/{feeds-client-Bh01VLai.mjs → feeds-client-DT_p8LU4.mjs} +154 -139
- package/dist/feeds-client-DT_p8LU4.mjs.map +1 -0
- package/dist/types/bindings/react/hooks/useCreateFeedsClient.d.ts +3 -3
- package/dist/types/bindings/react/hooks/useCreateFeedsClient.d.ts.map +1 -1
- package/dist/types/feed/event-handlers/activity/handle-activity-updated.d.ts.map +1 -1
- package/dist/types/feed/event-handlers/activity-updater.d.ts.map +1 -1
- package/dist/types/feed/event-handlers/bookmark/handle-bookmark-added.d.ts.map +1 -1
- package/dist/types/feed/event-handlers/bookmark/handle-bookmark-deleted.d.ts.map +1 -1
- package/dist/types/feed/feed.d.ts.map +1 -1
- package/dist/types/feeds-client/feeds-client.d.ts +16 -8
- package/dist/types/feeds-client/feeds-client.d.ts.map +1 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts +6 -4
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
- package/dist/types/gen/models/index.d.ts +26 -7
- package/dist/types/gen/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/bindings/react/hooks/useCreateFeedsClient.ts +12 -23
- package/src/feed/event-handlers/activity/handle-activity-updated.ts +0 -11
- package/src/feed/event-handlers/activity-updater.ts +0 -8
- package/src/feed/event-handlers/bookmark/handle-bookmark-added.ts +2 -10
- package/src/feed/event-handlers/bookmark/handle-bookmark-deleted.ts +2 -10
- package/src/feed/event-handlers/bookmark/handle-bookmark-updated.ts +2 -2
- package/src/feed/feed.ts +28 -0
- package/src/feeds-client/feeds-client.ts +52 -45
- package/src/gen/feeds/FeedsApi.ts +60 -11
- package/src/gen/model-decoders/decoders.ts +26 -78
- package/src/gen/models/index.ts +39 -9
- package/dist/feeds-client-B6L006tr.js.map +0 -1
- package/dist/feeds-client-Bh01VLai.mjs.map +0 -1
|
@@ -68,8 +68,6 @@ 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 },
|
|
73
71
|
};
|
|
74
72
|
return decode(typeMappings, input);
|
|
75
73
|
};
|
|
@@ -81,8 +79,6 @@ decoders.ActivityDeletedEvent = (input?: Record<string, any>) => {
|
|
|
81
79
|
activity: { type: 'ActivityResponse', isSingle: true },
|
|
82
80
|
|
|
83
81
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
84
|
-
|
|
85
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
86
82
|
};
|
|
87
83
|
return decode(typeMappings, input);
|
|
88
84
|
};
|
|
@@ -92,8 +88,6 @@ decoders.ActivityFeedbackEvent = (input?: Record<string, any>) => {
|
|
|
92
88
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
93
89
|
|
|
94
90
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
95
|
-
|
|
96
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
97
91
|
};
|
|
98
92
|
return decode(typeMappings, input);
|
|
99
93
|
};
|
|
@@ -103,8 +97,6 @@ decoders.ActivityMarkEvent = (input?: Record<string, any>) => {
|
|
|
103
97
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
104
98
|
|
|
105
99
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
106
|
-
|
|
107
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
108
100
|
};
|
|
109
101
|
return decode(typeMappings, input);
|
|
110
102
|
};
|
|
@@ -129,8 +121,6 @@ decoders.ActivityPinnedEvent = (input?: Record<string, any>) => {
|
|
|
129
121
|
pinned_activity: { type: 'PinActivityResponse', isSingle: true },
|
|
130
122
|
|
|
131
123
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
132
|
-
|
|
133
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
134
124
|
};
|
|
135
125
|
return decode(typeMappings, input);
|
|
136
126
|
};
|
|
@@ -144,8 +134,6 @@ decoders.ActivityReactionAddedEvent = (input?: Record<string, any>) => {
|
|
|
144
134
|
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
145
135
|
|
|
146
136
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
147
|
-
|
|
148
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
149
137
|
};
|
|
150
138
|
return decode(typeMappings, input);
|
|
151
139
|
};
|
|
@@ -159,8 +147,6 @@ decoders.ActivityReactionDeletedEvent = (input?: Record<string, any>) => {
|
|
|
159
147
|
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
160
148
|
|
|
161
149
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
162
|
-
|
|
163
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
164
150
|
};
|
|
165
151
|
return decode(typeMappings, input);
|
|
166
152
|
};
|
|
@@ -174,8 +160,6 @@ decoders.ActivityReactionUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
174
160
|
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
175
161
|
|
|
176
162
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
177
|
-
|
|
178
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
179
163
|
};
|
|
180
164
|
return decode(typeMappings, input);
|
|
181
165
|
};
|
|
@@ -187,8 +171,6 @@ decoders.ActivityRemovedFromFeedEvent = (input?: Record<string, any>) => {
|
|
|
187
171
|
activity: { type: 'ActivityResponse', isSingle: true },
|
|
188
172
|
|
|
189
173
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
190
|
-
|
|
191
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
192
174
|
};
|
|
193
175
|
return decode(typeMappings, input);
|
|
194
176
|
};
|
|
@@ -237,8 +219,6 @@ decoders.ActivityUnpinnedEvent = (input?: Record<string, any>) => {
|
|
|
237
219
|
pinned_activity: { type: 'PinActivityResponse', isSingle: true },
|
|
238
220
|
|
|
239
221
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
240
|
-
|
|
241
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
242
222
|
};
|
|
243
223
|
return decode(typeMappings, input);
|
|
244
224
|
};
|
|
@@ -250,8 +230,6 @@ decoders.ActivityUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
250
230
|
activity: { type: 'ActivityResponse', isSingle: true },
|
|
251
231
|
|
|
252
232
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
253
|
-
|
|
254
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
255
233
|
};
|
|
256
234
|
return decode(typeMappings, input);
|
|
257
235
|
};
|
|
@@ -371,8 +349,6 @@ decoders.BookmarkAddedEvent = (input?: Record<string, any>) => {
|
|
|
371
349
|
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
372
350
|
|
|
373
351
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
374
|
-
|
|
375
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
376
352
|
};
|
|
377
353
|
return decode(typeMappings, input);
|
|
378
354
|
};
|
|
@@ -384,8 +360,6 @@ decoders.BookmarkDeletedEvent = (input?: Record<string, any>) => {
|
|
|
384
360
|
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
385
361
|
|
|
386
362
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
387
|
-
|
|
388
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
389
363
|
};
|
|
390
364
|
return decode(typeMappings, input);
|
|
391
365
|
};
|
|
@@ -397,8 +371,6 @@ decoders.BookmarkFolderDeletedEvent = (input?: Record<string, any>) => {
|
|
|
397
371
|
bookmark_folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
398
372
|
|
|
399
373
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
400
|
-
|
|
401
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
402
374
|
};
|
|
403
375
|
return decode(typeMappings, input);
|
|
404
376
|
};
|
|
@@ -409,7 +381,7 @@ decoders.BookmarkFolderResponse = (input?: Record<string, any>) => {
|
|
|
409
381
|
|
|
410
382
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
411
383
|
|
|
412
|
-
user: { type: '
|
|
384
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
413
385
|
};
|
|
414
386
|
return decode(typeMappings, input);
|
|
415
387
|
};
|
|
@@ -421,8 +393,6 @@ decoders.BookmarkFolderUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
421
393
|
bookmark_folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
422
394
|
|
|
423
395
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
424
|
-
|
|
425
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
426
396
|
};
|
|
427
397
|
return decode(typeMappings, input);
|
|
428
398
|
};
|
|
@@ -435,7 +405,7 @@ decoders.BookmarkResponse = (input?: Record<string, any>) => {
|
|
|
435
405
|
|
|
436
406
|
activity: { type: 'ActivityResponse', isSingle: true },
|
|
437
407
|
|
|
438
|
-
user: { type: '
|
|
408
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
439
409
|
|
|
440
410
|
folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
441
411
|
};
|
|
@@ -449,8 +419,6 @@ decoders.BookmarkUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
449
419
|
bookmark: { type: 'BookmarkResponse', isSingle: true },
|
|
450
420
|
|
|
451
421
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
452
|
-
|
|
453
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
454
422
|
};
|
|
455
423
|
return decode(typeMappings, input);
|
|
456
424
|
};
|
|
@@ -679,8 +647,6 @@ decoders.CommentAddedEvent = (input?: Record<string, any>) => {
|
|
|
679
647
|
comment: { type: 'CommentResponse', isSingle: true },
|
|
680
648
|
|
|
681
649
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
682
|
-
|
|
683
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
684
650
|
};
|
|
685
651
|
return decode(typeMappings, input);
|
|
686
652
|
};
|
|
@@ -692,8 +658,6 @@ decoders.CommentDeletedEvent = (input?: Record<string, any>) => {
|
|
|
692
658
|
comment: { type: 'CommentResponse', isSingle: true },
|
|
693
659
|
|
|
694
660
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
695
|
-
|
|
696
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
697
661
|
};
|
|
698
662
|
return decode(typeMappings, input);
|
|
699
663
|
};
|
|
@@ -709,8 +673,6 @@ decoders.CommentReactionAddedEvent = (input?: Record<string, any>) => {
|
|
|
709
673
|
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
710
674
|
|
|
711
675
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
712
|
-
|
|
713
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
714
676
|
};
|
|
715
677
|
return decode(typeMappings, input);
|
|
716
678
|
};
|
|
@@ -739,8 +701,6 @@ decoders.CommentReactionUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
739
701
|
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
740
702
|
|
|
741
703
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
742
|
-
|
|
743
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
744
704
|
};
|
|
745
705
|
return decode(typeMappings, input);
|
|
746
706
|
};
|
|
@@ -773,8 +733,6 @@ decoders.CommentUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
773
733
|
comment: { type: 'CommentResponse', isSingle: true },
|
|
774
734
|
|
|
775
735
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
776
|
-
|
|
777
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
778
736
|
};
|
|
779
737
|
return decode(typeMappings, input);
|
|
780
738
|
};
|
|
@@ -927,8 +885,6 @@ decoders.FeedCreatedEvent = (input?: Record<string, any>) => {
|
|
|
927
885
|
|
|
928
886
|
feed: { type: 'FeedResponse', isSingle: true },
|
|
929
887
|
|
|
930
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
931
|
-
|
|
932
888
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
933
889
|
};
|
|
934
890
|
return decode(typeMappings, input);
|
|
@@ -939,8 +895,6 @@ decoders.FeedDeletedEvent = (input?: Record<string, any>) => {
|
|
|
939
895
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
940
896
|
|
|
941
897
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
942
|
-
|
|
943
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
944
898
|
};
|
|
945
899
|
return decode(typeMappings, input);
|
|
946
900
|
};
|
|
@@ -950,8 +904,6 @@ decoders.FeedGroupChangedEvent = (input?: Record<string, any>) => {
|
|
|
950
904
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
951
905
|
|
|
952
906
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
953
|
-
|
|
954
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
955
907
|
};
|
|
956
908
|
return decode(typeMappings, input);
|
|
957
909
|
};
|
|
@@ -972,8 +924,6 @@ decoders.FeedMemberAddedEvent = (input?: Record<string, any>) => {
|
|
|
972
924
|
member: { type: 'FeedMemberResponse', isSingle: true },
|
|
973
925
|
|
|
974
926
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
975
|
-
|
|
976
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
977
927
|
};
|
|
978
928
|
return decode(typeMappings, input);
|
|
979
929
|
};
|
|
@@ -983,8 +933,6 @@ decoders.FeedMemberRemovedEvent = (input?: Record<string, any>) => {
|
|
|
983
933
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
984
934
|
|
|
985
935
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
986
|
-
|
|
987
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
988
936
|
};
|
|
989
937
|
return decode(typeMappings, input);
|
|
990
938
|
};
|
|
@@ -1013,8 +961,15 @@ decoders.FeedMemberUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
1013
961
|
member: { type: 'FeedMemberResponse', isSingle: true },
|
|
1014
962
|
|
|
1015
963
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
964
|
+
};
|
|
965
|
+
return decode(typeMappings, input);
|
|
966
|
+
};
|
|
967
|
+
|
|
968
|
+
decoders.FeedOwnData = (input?: Record<string, any>) => {
|
|
969
|
+
const typeMappings: TypeMapping = {
|
|
970
|
+
own_follows: { type: 'FollowResponse', isSingle: false },
|
|
1016
971
|
|
|
1017
|
-
|
|
972
|
+
own_membership: { type: 'FeedMemberResponse', isSingle: true },
|
|
1018
973
|
};
|
|
1019
974
|
return decode(typeMappings, input);
|
|
1020
975
|
};
|
|
@@ -1060,8 +1015,6 @@ decoders.FeedUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
1060
1015
|
feed: { type: 'FeedResponse', isSingle: true },
|
|
1061
1016
|
|
|
1062
1017
|
received_at: { type: 'DatetimeType', isSingle: true },
|
|
1063
|
-
|
|
1064
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
1065
1018
|
};
|
|
1066
1019
|
return decode(typeMappings, input);
|
|
1067
1020
|
};
|
|
@@ -1079,6 +1032,8 @@ decoders.FeedsReactionResponse = (input?: Record<string, any>) => {
|
|
|
1079
1032
|
|
|
1080
1033
|
decoders.FollowBatchResponse = (input?: Record<string, any>) => {
|
|
1081
1034
|
const typeMappings: TypeMapping = {
|
|
1035
|
+
created: { type: 'FollowResponse', isSingle: false },
|
|
1036
|
+
|
|
1082
1037
|
follows: { type: 'FollowResponse', isSingle: false },
|
|
1083
1038
|
};
|
|
1084
1039
|
return decode(typeMappings, input);
|
|
@@ -1434,8 +1389,6 @@ decoders.NotificationFeedUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
1434
1389
|
},
|
|
1435
1390
|
|
|
1436
1391
|
notification_status: { type: 'NotificationStatusResponse', isSingle: true },
|
|
1437
|
-
|
|
1438
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
1439
1392
|
};
|
|
1440
1393
|
return decode(typeMappings, input);
|
|
1441
1394
|
};
|
|
@@ -1449,6 +1402,13 @@ decoders.NotificationStatusResponse = (input?: Record<string, any>) => {
|
|
|
1449
1402
|
return decode(typeMappings, input);
|
|
1450
1403
|
};
|
|
1451
1404
|
|
|
1405
|
+
decoders.OwnBatchResponse = (input?: Record<string, any>) => {
|
|
1406
|
+
const typeMappings: TypeMapping = {
|
|
1407
|
+
data: { type: 'FeedOwnData', isSingle: false },
|
|
1408
|
+
};
|
|
1409
|
+
return decode(typeMappings, input);
|
|
1410
|
+
};
|
|
1411
|
+
|
|
1452
1412
|
decoders.OwnUser = (input?: Record<string, any>) => {
|
|
1453
1413
|
const typeMappings: TypeMapping = {
|
|
1454
1414
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1899,8 +1859,6 @@ decoders.StoriesFeedUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
1899
1859
|
type: 'AggregatedActivityResponse',
|
|
1900
1860
|
isSingle: false,
|
|
1901
1861
|
},
|
|
1902
|
-
|
|
1903
|
-
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
1904
1862
|
};
|
|
1905
1863
|
return decode(typeMappings, input);
|
|
1906
1864
|
};
|
|
@@ -1935,6 +1893,13 @@ decoders.ThreadedCommentResponse = (input?: Record<string, any>) => {
|
|
|
1935
1893
|
return decode(typeMappings, input);
|
|
1936
1894
|
};
|
|
1937
1895
|
|
|
1896
|
+
decoders.UnfollowBatchResponse = (input?: Record<string, any>) => {
|
|
1897
|
+
const typeMappings: TypeMapping = {
|
|
1898
|
+
follows: { type: 'FollowResponse', isSingle: false },
|
|
1899
|
+
};
|
|
1900
|
+
return decode(typeMappings, input);
|
|
1901
|
+
};
|
|
1902
|
+
|
|
1938
1903
|
decoders.UnfollowResponse = (input?: Record<string, any>) => {
|
|
1939
1904
|
const typeMappings: TypeMapping = {
|
|
1940
1905
|
follow: { type: 'FollowResponse', isSingle: true },
|
|
@@ -2159,23 +2124,6 @@ decoders.UserResponse = (input?: Record<string, any>) => {
|
|
|
2159
2124
|
return decode(typeMappings, input);
|
|
2160
2125
|
};
|
|
2161
2126
|
|
|
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
|
-
|
|
2179
2127
|
decoders.UserUpdatedEvent = (input?: Record<string, any>) => {
|
|
2180
2128
|
const typeMappings: TypeMapping = {
|
|
2181
2129
|
created_at: { type: 'DatetimeType', isSingle: true },
|
package/src/gen/models/index.ts
CHANGED
|
@@ -496,6 +496,8 @@ export interface ActivitySelectorConfig {
|
|
|
496
496
|
sort?: SortParam[];
|
|
497
497
|
|
|
498
498
|
filter?: Record<string, any>;
|
|
499
|
+
|
|
500
|
+
params?: Record<string, any>;
|
|
499
501
|
}
|
|
500
502
|
|
|
501
503
|
export interface ActivityUnpinnedEvent {
|
|
@@ -615,16 +617,16 @@ export interface AddCommentReactionResponse {
|
|
|
615
617
|
}
|
|
616
618
|
|
|
617
619
|
export interface AddCommentRequest {
|
|
618
|
-
object_id: string;
|
|
619
|
-
|
|
620
|
-
object_type: string;
|
|
621
|
-
|
|
622
620
|
comment?: string;
|
|
623
621
|
|
|
624
622
|
create_notification_activity?: boolean;
|
|
625
623
|
|
|
626
624
|
id?: string;
|
|
627
625
|
|
|
626
|
+
object_id?: string;
|
|
627
|
+
|
|
628
|
+
object_type?: string;
|
|
629
|
+
|
|
628
630
|
parent_id?: string;
|
|
629
631
|
|
|
630
632
|
skip_enrich_url?: boolean;
|
|
@@ -1084,7 +1086,7 @@ export interface BookmarkFolderResponse {
|
|
|
1084
1086
|
|
|
1085
1087
|
updated_at: Date;
|
|
1086
1088
|
|
|
1087
|
-
user:
|
|
1089
|
+
user: UserResponse;
|
|
1088
1090
|
|
|
1089
1091
|
custom?: Record<string, any>;
|
|
1090
1092
|
}
|
|
@@ -1110,7 +1112,7 @@ export interface BookmarkResponse {
|
|
|
1110
1112
|
|
|
1111
1113
|
activity: ActivityResponse;
|
|
1112
1114
|
|
|
1113
|
-
user:
|
|
1115
|
+
user: UserResponse;
|
|
1114
1116
|
|
|
1115
1117
|
custom?: Record<string, any>;
|
|
1116
1118
|
|
|
@@ -2731,6 +2733,14 @@ export const FeedOwnCapability = {
|
|
|
2731
2733
|
export type FeedOwnCapability =
|
|
2732
2734
|
(typeof FeedOwnCapability)[keyof typeof FeedOwnCapability];
|
|
2733
2735
|
|
|
2736
|
+
export interface FeedOwnData {
|
|
2737
|
+
own_capabilities?: FeedOwnCapability[];
|
|
2738
|
+
|
|
2739
|
+
own_follows?: FollowResponse[];
|
|
2740
|
+
|
|
2741
|
+
own_membership?: FeedMemberResponse;
|
|
2742
|
+
}
|
|
2743
|
+
|
|
2734
2744
|
export interface FeedRequest {
|
|
2735
2745
|
feed_group_id: string;
|
|
2736
2746
|
|
|
@@ -2980,6 +2990,8 @@ export interface FollowBatchRequest {
|
|
|
2980
2990
|
export interface FollowBatchResponse {
|
|
2981
2991
|
duration: string;
|
|
2982
2992
|
|
|
2993
|
+
created: FollowResponse[];
|
|
2994
|
+
|
|
2983
2995
|
follows: FollowResponse[];
|
|
2984
2996
|
}
|
|
2985
2997
|
|
|
@@ -3015,6 +3027,12 @@ export interface FollowDeletedEvent {
|
|
|
3015
3027
|
received_at?: Date;
|
|
3016
3028
|
}
|
|
3017
3029
|
|
|
3030
|
+
export interface FollowPair {
|
|
3031
|
+
source: string;
|
|
3032
|
+
|
|
3033
|
+
target: string;
|
|
3034
|
+
}
|
|
3035
|
+
|
|
3018
3036
|
export interface FollowRequest {
|
|
3019
3037
|
source: string;
|
|
3020
3038
|
|
|
@@ -3992,14 +4010,16 @@ export interface OnlyUserID {
|
|
|
3992
4010
|
id: string;
|
|
3993
4011
|
}
|
|
3994
4012
|
|
|
3995
|
-
export interface
|
|
4013
|
+
export interface OwnBatchRequest {
|
|
3996
4014
|
feeds: string[];
|
|
4015
|
+
|
|
4016
|
+
fields?: string[];
|
|
3997
4017
|
}
|
|
3998
4018
|
|
|
3999
|
-
export interface
|
|
4019
|
+
export interface OwnBatchResponse {
|
|
4000
4020
|
duration: string;
|
|
4001
4021
|
|
|
4002
|
-
|
|
4022
|
+
data: Record<string, FeedOwnData>;
|
|
4003
4023
|
}
|
|
4004
4024
|
|
|
4005
4025
|
export interface OwnUser {
|
|
@@ -5507,6 +5527,16 @@ export interface UnblockUsersResponse {
|
|
|
5507
5527
|
duration: string;
|
|
5508
5528
|
}
|
|
5509
5529
|
|
|
5530
|
+
export interface UnfollowBatchRequest {
|
|
5531
|
+
follows: FollowPair[];
|
|
5532
|
+
}
|
|
5533
|
+
|
|
5534
|
+
export interface UnfollowBatchResponse {
|
|
5535
|
+
duration: string;
|
|
5536
|
+
|
|
5537
|
+
follows: FollowResponse[];
|
|
5538
|
+
}
|
|
5539
|
+
|
|
5510
5540
|
export interface UnfollowResponse {
|
|
5511
5541
|
duration: string;
|
|
5512
5542
|
|