@stream-io/feeds-client 1.6.0 → 1.7.0
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 +7 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/react-bindings.js +1 -1
- package/dist/es/index.mjs +1 -1
- package/dist/es/index.mjs.map +1 -1
- package/dist/es/react-bindings.mjs +1 -1
- package/dist/{feeds-client-DPLGIycV.js → feeds-client-BeLCHq7r.js} +156 -46
- package/dist/feeds-client-BeLCHq7r.js.map +1 -0
- package/dist/{feeds-client-CQELcw6M.mjs → feeds-client-DYZ59hqW.mjs} +156 -46
- package/dist/feeds-client-DYZ59hqW.mjs.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts +4 -1
- package/dist/types/gen/feeds/FeedsApi.d.ts.map +1 -1
- package/dist/types/gen/models/index.d.ts +3267 -30
- package/dist/types/gen/models/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/gen/feeds/FeedsApi.ts +34 -0
- package/src/gen/model-decoders/decoders.ts +97 -31
- package/src/gen/models/index.ts +3420 -76
- package/dist/feeds-client-CQELcw6M.mjs.map +0 -1
- package/dist/feeds-client-DPLGIycV.js.map +0 -1
|
@@ -454,49 +454,32 @@ decoders.BookmarkUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
454
454
|
|
|
455
455
|
decoders.CallParticipantResponse = (input?: Record<string, any>) => {
|
|
456
456
|
const typeMappings: TypeMapping = {
|
|
457
|
-
joined_at: { type: '
|
|
457
|
+
joined_at: { type: 'Timestamp', isSingle: true },
|
|
458
458
|
|
|
459
459
|
user: { type: 'UserResponse', isSingle: true },
|
|
460
460
|
};
|
|
461
461
|
return decode(typeMappings, input);
|
|
462
462
|
};
|
|
463
463
|
|
|
464
|
-
decoders.CallResponse = (input?: Record<string, any>) => {
|
|
465
|
-
const typeMappings: TypeMapping = {
|
|
466
|
-
created_at: { type: 'DatetimeType', isSingle: true },
|
|
467
|
-
|
|
468
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
469
|
-
|
|
470
|
-
created_by: { type: 'UserResponse', isSingle: true },
|
|
471
|
-
|
|
472
|
-
ended_at: { type: 'DatetimeType', isSingle: true },
|
|
473
|
-
|
|
474
|
-
starts_at: { type: 'DatetimeType', isSingle: true },
|
|
475
|
-
|
|
476
|
-
session: { type: 'CallSessionResponse', isSingle: true },
|
|
477
|
-
};
|
|
478
|
-
return decode(typeMappings, input);
|
|
479
|
-
};
|
|
480
|
-
|
|
481
464
|
decoders.CallSessionResponse = (input?: Record<string, any>) => {
|
|
482
465
|
const typeMappings: TypeMapping = {
|
|
483
466
|
participants: { type: 'CallParticipantResponse', isSingle: false },
|
|
484
467
|
|
|
485
|
-
accepted_by: { type: '
|
|
468
|
+
accepted_by: { type: 'Timestamp', isSingle: false },
|
|
486
469
|
|
|
487
|
-
missed_by: { type: '
|
|
470
|
+
missed_by: { type: 'Timestamp', isSingle: false },
|
|
488
471
|
|
|
489
|
-
rejected_by: { type: '
|
|
472
|
+
rejected_by: { type: 'Timestamp', isSingle: false },
|
|
490
473
|
|
|
491
|
-
ended_at: { type: '
|
|
474
|
+
ended_at: { type: 'Timestamp', isSingle: true },
|
|
492
475
|
|
|
493
|
-
live_ended_at: { type: '
|
|
476
|
+
live_ended_at: { type: 'Timestamp', isSingle: true },
|
|
494
477
|
|
|
495
|
-
live_started_at: { type: '
|
|
478
|
+
live_started_at: { type: 'Timestamp', isSingle: true },
|
|
496
479
|
|
|
497
|
-
started_at: { type: '
|
|
480
|
+
started_at: { type: 'Timestamp', isSingle: true },
|
|
498
481
|
|
|
499
|
-
timer_ends_at: { type: '
|
|
482
|
+
timer_ends_at: { type: 'Timestamp', isSingle: true },
|
|
500
483
|
};
|
|
501
484
|
return decode(typeMappings, input);
|
|
502
485
|
};
|
|
@@ -816,7 +799,16 @@ decoders.DraftResponse = (input?: Record<string, any>) => {
|
|
|
816
799
|
|
|
817
800
|
decoders.EgressRTMPResponse = (input?: Record<string, any>) => {
|
|
818
801
|
const typeMappings: TypeMapping = {
|
|
819
|
-
started_at: { type: '
|
|
802
|
+
started_at: { type: 'Timestamp', isSingle: true },
|
|
803
|
+
};
|
|
804
|
+
return decode(typeMappings, input);
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
decoders.EnrichedCollection = (input?: Record<string, any>) => {
|
|
808
|
+
const typeMappings: TypeMapping = {
|
|
809
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
810
|
+
|
|
811
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
820
812
|
};
|
|
821
813
|
return decode(typeMappings, input);
|
|
822
814
|
};
|
|
@@ -1004,6 +996,15 @@ decoders.FeedUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
1004
996
|
return decode(typeMappings, input);
|
|
1005
997
|
};
|
|
1006
998
|
|
|
999
|
+
decoders.FeedsReactionGroup = (input?: Record<string, any>) => {
|
|
1000
|
+
const typeMappings: TypeMapping = {
|
|
1001
|
+
first_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
1002
|
+
|
|
1003
|
+
last_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
1004
|
+
};
|
|
1005
|
+
return decode(typeMappings, input);
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1007
1008
|
decoders.FeedsReactionGroupResponse = (input?: Record<string, any>) => {
|
|
1008
1009
|
const typeMappings: TypeMapping = {
|
|
1009
1010
|
first_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1024,6 +1025,48 @@ decoders.FeedsReactionResponse = (input?: Record<string, any>) => {
|
|
|
1024
1025
|
return decode(typeMappings, input);
|
|
1025
1026
|
};
|
|
1026
1027
|
|
|
1028
|
+
decoders.FeedsV3ActivityResponse = (input?: Record<string, any>) => {
|
|
1029
|
+
const typeMappings: TypeMapping = {
|
|
1030
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1031
|
+
|
|
1032
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1033
|
+
|
|
1034
|
+
comments: { type: 'FeedsV3CommentResponse', isSingle: false },
|
|
1035
|
+
|
|
1036
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
1037
|
+
|
|
1038
|
+
collections: { type: 'EnrichedCollection', isSingle: false },
|
|
1039
|
+
|
|
1040
|
+
reaction_groups: { type: 'FeedsReactionGroup', isSingle: false },
|
|
1041
|
+
|
|
1042
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1043
|
+
|
|
1044
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1045
|
+
|
|
1046
|
+
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
1047
|
+
|
|
1048
|
+
expires_at: { type: 'DatetimeType', isSingle: true },
|
|
1049
|
+
};
|
|
1050
|
+
return decode(typeMappings, input);
|
|
1051
|
+
};
|
|
1052
|
+
|
|
1053
|
+
decoders.FeedsV3CommentResponse = (input?: Record<string, any>) => {
|
|
1054
|
+
const typeMappings: TypeMapping = {
|
|
1055
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1056
|
+
|
|
1057
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1058
|
+
|
|
1059
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
1060
|
+
|
|
1061
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1062
|
+
|
|
1063
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1064
|
+
|
|
1065
|
+
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
1066
|
+
};
|
|
1067
|
+
return decode(typeMappings, input);
|
|
1068
|
+
};
|
|
1069
|
+
|
|
1027
1070
|
decoders.FollowBatchResponse = (input?: Record<string, any>) => {
|
|
1028
1071
|
const typeMappings: TypeMapping = {
|
|
1029
1072
|
created: { type: 'FollowResponse', isSingle: false },
|
|
@@ -1651,6 +1694,17 @@ decoders.ReactionGroupResponse = (input?: Record<string, any>) => {
|
|
|
1651
1694
|
first_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
1652
1695
|
|
|
1653
1696
|
last_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
1697
|
+
|
|
1698
|
+
latest_reactions_by: { type: 'ReactionGroupUserResponse', isSingle: false },
|
|
1699
|
+
};
|
|
1700
|
+
return decode(typeMappings, input);
|
|
1701
|
+
};
|
|
1702
|
+
|
|
1703
|
+
decoders.ReactionGroupUserResponse = (input?: Record<string, any>) => {
|
|
1704
|
+
const typeMappings: TypeMapping = {
|
|
1705
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1706
|
+
|
|
1707
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1654
1708
|
};
|
|
1655
1709
|
return decode(typeMappings, input);
|
|
1656
1710
|
};
|
|
@@ -1747,15 +1801,13 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
|
|
|
1747
1801
|
|
|
1748
1802
|
assigned_to: { type: 'UserResponse', isSingle: true },
|
|
1749
1803
|
|
|
1750
|
-
call: { type: 'CallResponse', isSingle: true },
|
|
1751
|
-
|
|
1752
1804
|
entity_creator: { type: 'EntityCreatorResponse', isSingle: true },
|
|
1753
1805
|
|
|
1754
1806
|
feeds_v2_reaction: { type: 'Reaction', isSingle: true },
|
|
1755
1807
|
|
|
1756
|
-
feeds_v3_activity: { type: '
|
|
1808
|
+
feeds_v3_activity: { type: 'FeedsV3ActivityResponse', isSingle: true },
|
|
1757
1809
|
|
|
1758
|
-
feeds_v3_comment: { type: '
|
|
1810
|
+
feeds_v3_comment: { type: 'FeedsV3CommentResponse', isSingle: true },
|
|
1759
1811
|
|
|
1760
1812
|
message: { type: 'MessageResponse', isSingle: true },
|
|
1761
1813
|
|
|
@@ -1868,6 +1920,13 @@ decoders.ThreadedCommentResponse = (input?: Record<string, any>) => {
|
|
|
1868
1920
|
return decode(typeMappings, input);
|
|
1869
1921
|
};
|
|
1870
1922
|
|
|
1923
|
+
decoders.Timestamp = (input?: Record<string, any>) => {
|
|
1924
|
+
const typeMappings: TypeMapping = {
|
|
1925
|
+
time: { type: 'DatetimeType', isSingle: true },
|
|
1926
|
+
};
|
|
1927
|
+
return decode(typeMappings, input);
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1871
1930
|
decoders.UnfollowBatchResponse = (input?: Record<string, any>) => {
|
|
1872
1931
|
const typeMappings: TypeMapping = {
|
|
1873
1932
|
follows: { type: 'FollowResponse', isSingle: false },
|
|
@@ -1931,6 +1990,13 @@ decoders.UpdateCollectionsResponse = (input?: Record<string, any>) => {
|
|
|
1931
1990
|
return decode(typeMappings, input);
|
|
1932
1991
|
};
|
|
1933
1992
|
|
|
1993
|
+
decoders.UpdateCommentPartialResponse = (input?: Record<string, any>) => {
|
|
1994
|
+
const typeMappings: TypeMapping = {
|
|
1995
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
1996
|
+
};
|
|
1997
|
+
return decode(typeMappings, input);
|
|
1998
|
+
};
|
|
1999
|
+
|
|
1934
2000
|
decoders.UpdateCommentResponse = (input?: Record<string, any>) => {
|
|
1935
2001
|
const typeMappings: TypeMapping = {
|
|
1936
2002
|
comment: { type: 'CommentResponse', isSingle: true },
|