@stream-io/node-sdk 0.4.24 → 0.4.26
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/dist/index.cjs.js +317 -42
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +317 -42
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +17 -1
- package/dist/src/gen/common/CommonApi.d.ts +15 -1
- package/dist/src/gen/models/index.d.ts +686 -42
- package/dist/src/gen/moderation/ModerationApi.d.ts +3 -1
- package/dist/src/gen/video/VideoApi.d.ts +2 -1
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +156 -0
- package/src/gen/common/CommonApi.ts +127 -0
- package/src/gen/model-decoders/index.ts +200 -60
- package/src/gen/models/index.ts +1206 -69
- package/src/gen/moderation/ModerationApi.ts +48 -0
- package/src/gen/video/VideoApi.ts +13 -0
|
@@ -32,24 +32,11 @@ const decode = (typeMappings: TypeMapping, input?: Record<string, any>) => {
|
|
|
32
32
|
return input;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
decoders.ActionLog = (input?: Record<string, any>) => {
|
|
36
|
-
const typeMappings: TypeMapping = {
|
|
37
|
-
created_at: { type: 'DatetimeType', isSingle: true },
|
|
38
|
-
|
|
39
|
-
review_queue_item: { type: 'ReviewQueueItem', isSingle: true },
|
|
40
|
-
|
|
41
|
-
target_user: { type: 'User', isSingle: true },
|
|
42
|
-
|
|
43
|
-
user: { type: 'User', isSingle: true },
|
|
44
|
-
};
|
|
45
|
-
return decode(typeMappings, input);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
35
|
decoders.ActionLogResponse = (input?: Record<string, any>) => {
|
|
49
36
|
const typeMappings: TypeMapping = {
|
|
50
37
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
51
38
|
|
|
52
|
-
review_queue_item: { type: '
|
|
39
|
+
review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
53
40
|
|
|
54
41
|
target_user: { type: 'UserResponse', isSingle: true },
|
|
55
42
|
|
|
@@ -60,6 +47,8 @@ decoders.ActionLogResponse = (input?: Record<string, any>) => {
|
|
|
60
47
|
|
|
61
48
|
decoders.AppResponseFields = (input?: Record<string, any>) => {
|
|
62
49
|
const typeMappings: TypeMapping = {
|
|
50
|
+
event_hooks: { type: 'EventHook', isSingle: false },
|
|
51
|
+
|
|
63
52
|
call_types: { type: 'CallType', isSingle: false },
|
|
64
53
|
|
|
65
54
|
channel_configs: { type: 'ChannelConfig', isSingle: false },
|
|
@@ -287,6 +276,8 @@ decoders.Channel = (input?: Record<string, any>) => {
|
|
|
287
276
|
|
|
288
277
|
last_message_at: { type: 'DatetimeType', isSingle: true },
|
|
289
278
|
|
|
279
|
+
active_live_locations: { type: 'SharedLocation', isSingle: false },
|
|
280
|
+
|
|
290
281
|
invites: { type: 'ChannelMember', isSingle: false },
|
|
291
282
|
|
|
292
283
|
members: { type: 'ChannelMember', isSingle: false },
|
|
@@ -427,6 +418,11 @@ decoders.ChannelStateResponse = (input?: Record<string, any>) => {
|
|
|
427
418
|
|
|
428
419
|
hide_messages_before: { type: 'DatetimeType', isSingle: true },
|
|
429
420
|
|
|
421
|
+
active_live_locations: {
|
|
422
|
+
type: 'SharedLocationResponseData',
|
|
423
|
+
isSingle: false,
|
|
424
|
+
},
|
|
425
|
+
|
|
430
426
|
pending_messages: { type: 'PendingMessageResponse', isSingle: false },
|
|
431
427
|
|
|
432
428
|
read: { type: 'ReadStateResponse', isSingle: false },
|
|
@@ -456,6 +452,11 @@ decoders.ChannelStateResponseFields = (input?: Record<string, any>) => {
|
|
|
456
452
|
|
|
457
453
|
hide_messages_before: { type: 'DatetimeType', isSingle: true },
|
|
458
454
|
|
|
455
|
+
active_live_locations: {
|
|
456
|
+
type: 'SharedLocationResponseData',
|
|
457
|
+
isSingle: false,
|
|
458
|
+
},
|
|
459
|
+
|
|
459
460
|
pending_messages: { type: 'PendingMessageResponse', isSingle: false },
|
|
460
461
|
|
|
461
462
|
read: { type: 'ReadStateResponse', isSingle: false },
|
|
@@ -493,7 +494,7 @@ decoders.ChatActivityStatsResponse = (input?: Record<string, any>) => {
|
|
|
493
494
|
|
|
494
495
|
decoders.CheckResponse = (input?: Record<string, any>) => {
|
|
495
496
|
const typeMappings: TypeMapping = {
|
|
496
|
-
item: { type: '
|
|
497
|
+
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
497
498
|
};
|
|
498
499
|
return decode(typeMappings, input);
|
|
499
500
|
};
|
|
@@ -663,27 +664,6 @@ decoders.EgressRTMPResponse = (input?: Record<string, any>) => {
|
|
|
663
664
|
return decode(typeMappings, input);
|
|
664
665
|
};
|
|
665
666
|
|
|
666
|
-
decoders.EntityCreator = (input?: Record<string, any>) => {
|
|
667
|
-
const typeMappings: TypeMapping = {
|
|
668
|
-
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
669
|
-
|
|
670
|
-
created_at: { type: 'DatetimeType', isSingle: true },
|
|
671
|
-
|
|
672
|
-
deactivated_at: { type: 'DatetimeType', isSingle: true },
|
|
673
|
-
|
|
674
|
-
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
675
|
-
|
|
676
|
-
last_active: { type: 'DatetimeType', isSingle: true },
|
|
677
|
-
|
|
678
|
-
last_engaged_at: { type: 'DatetimeType', isSingle: true },
|
|
679
|
-
|
|
680
|
-
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
681
|
-
|
|
682
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
683
|
-
};
|
|
684
|
-
return decode(typeMappings, input);
|
|
685
|
-
};
|
|
686
|
-
|
|
687
667
|
decoders.EntityCreatorResponse = (input?: Record<string, any>) => {
|
|
688
668
|
const typeMappings: TypeMapping = {
|
|
689
669
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -710,6 +690,15 @@ decoders.EntityCreatorResponse = (input?: Record<string, any>) => {
|
|
|
710
690
|
return decode(typeMappings, input);
|
|
711
691
|
};
|
|
712
692
|
|
|
693
|
+
decoders.EventHook = (input?: Record<string, any>) => {
|
|
694
|
+
const typeMappings: TypeMapping = {
|
|
695
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
696
|
+
|
|
697
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
698
|
+
};
|
|
699
|
+
return decode(typeMappings, input);
|
|
700
|
+
};
|
|
701
|
+
|
|
713
702
|
decoders.EventResponse = (input?: Record<string, any>) => {
|
|
714
703
|
const typeMappings: TypeMapping = {
|
|
715
704
|
event: { type: 'WSEvent', isSingle: true },
|
|
@@ -728,17 +717,6 @@ decoders.ExportUserResponse = (input?: Record<string, any>) => {
|
|
|
728
717
|
return decode(typeMappings, input);
|
|
729
718
|
};
|
|
730
719
|
|
|
731
|
-
decoders.Flag = (input?: Record<string, any>) => {
|
|
732
|
-
const typeMappings: TypeMapping = {
|
|
733
|
-
created_at: { type: 'DatetimeType', isSingle: true },
|
|
734
|
-
|
|
735
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
736
|
-
|
|
737
|
-
user: { type: 'User', isSingle: true },
|
|
738
|
-
};
|
|
739
|
-
return decode(typeMappings, input);
|
|
740
|
-
};
|
|
741
|
-
|
|
742
720
|
decoders.FlagDetails = (input?: Record<string, any>) => {
|
|
743
721
|
const typeMappings: TypeMapping = {
|
|
744
722
|
automod: { type: 'AutomodDetails', isSingle: true },
|
|
@@ -778,6 +756,15 @@ decoders.FullUserResponse = (input?: Record<string, any>) => {
|
|
|
778
756
|
return decode(typeMappings, input);
|
|
779
757
|
};
|
|
780
758
|
|
|
759
|
+
decoders.GetActiveCallsStatusResponse = (input?: Record<string, any>) => {
|
|
760
|
+
const typeMappings: TypeMapping = {
|
|
761
|
+
end_time: { type: 'DatetimeType', isSingle: true },
|
|
762
|
+
|
|
763
|
+
start_time: { type: 'DatetimeType', isSingle: true },
|
|
764
|
+
};
|
|
765
|
+
return decode(typeMappings, input);
|
|
766
|
+
};
|
|
767
|
+
|
|
781
768
|
decoders.GetApplicationResponse = (input?: Record<string, any>) => {
|
|
782
769
|
const typeMappings: TypeMapping = {
|
|
783
770
|
app: { type: 'AppResponseFields', isSingle: true },
|
|
@@ -801,6 +788,8 @@ decoders.GetBlockedUsersResponse = (input?: Record<string, any>) => {
|
|
|
801
788
|
|
|
802
789
|
decoders.GetCallReportResponse = (input?: Record<string, any>) => {
|
|
803
790
|
const typeMappings: TypeMapping = {
|
|
791
|
+
video_reactions: { type: 'VideoReactionsResponse', isSingle: false },
|
|
792
|
+
|
|
804
793
|
chat_activity: { type: 'ChatActivityStatsResponse', isSingle: true },
|
|
805
794
|
};
|
|
806
795
|
return decode(typeMappings, input);
|
|
@@ -888,6 +877,13 @@ decoders.GetOrCreateCallResponse = (input?: Record<string, any>) => {
|
|
|
888
877
|
return decode(typeMappings, input);
|
|
889
878
|
};
|
|
890
879
|
|
|
880
|
+
decoders.GetPushTemplatesResponse = (input?: Record<string, any>) => {
|
|
881
|
+
const typeMappings: TypeMapping = {
|
|
882
|
+
templates: { type: 'PushTemplate', isSingle: false },
|
|
883
|
+
};
|
|
884
|
+
return decode(typeMappings, input);
|
|
885
|
+
};
|
|
886
|
+
|
|
891
887
|
decoders.GetReactionsResponse = (input?: Record<string, any>) => {
|
|
892
888
|
const typeMappings: TypeMapping = {
|
|
893
889
|
reactions: { type: 'Reaction', isSingle: false },
|
|
@@ -1084,6 +1080,10 @@ decoders.Message = (input?: Record<string, any>) => {
|
|
|
1084
1080
|
|
|
1085
1081
|
quoted_message: { type: 'Message', isSingle: true },
|
|
1086
1082
|
|
|
1083
|
+
reminder: { type: 'MessageReminder', isSingle: true },
|
|
1084
|
+
|
|
1085
|
+
shared_location: { type: 'SharedLocation', isSingle: true },
|
|
1086
|
+
|
|
1087
1087
|
user: { type: 'User', isSingle: true },
|
|
1088
1088
|
};
|
|
1089
1089
|
return decode(typeMappings, input);
|
|
@@ -1145,6 +1145,23 @@ decoders.MessageReadEvent = (input?: Record<string, any>) => {
|
|
|
1145
1145
|
return decode(typeMappings, input);
|
|
1146
1146
|
};
|
|
1147
1147
|
|
|
1148
|
+
decoders.MessageReminder = (input?: Record<string, any>) => {
|
|
1149
|
+
const typeMappings: TypeMapping = {
|
|
1150
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1151
|
+
|
|
1152
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1153
|
+
|
|
1154
|
+
remind_at: { type: 'DatetimeType', isSingle: true },
|
|
1155
|
+
|
|
1156
|
+
channel: { type: 'Channel', isSingle: true },
|
|
1157
|
+
|
|
1158
|
+
message: { type: 'Message', isSingle: true },
|
|
1159
|
+
|
|
1160
|
+
user: { type: 'User', isSingle: true },
|
|
1161
|
+
};
|
|
1162
|
+
return decode(typeMappings, input);
|
|
1163
|
+
};
|
|
1164
|
+
|
|
1148
1165
|
decoders.MessageResponse = (input?: Record<string, any>) => {
|
|
1149
1166
|
const typeMappings: TypeMapping = {
|
|
1150
1167
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1178,6 +1195,10 @@ decoders.MessageResponse = (input?: Record<string, any>) => {
|
|
|
1178
1195
|
quoted_message: { type: 'MessageResponse', isSingle: true },
|
|
1179
1196
|
|
|
1180
1197
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
1198
|
+
|
|
1199
|
+
reminder: { type: 'ReminderResponseData', isSingle: true },
|
|
1200
|
+
|
|
1201
|
+
shared_location: { type: 'SharedLocationResponseData', isSingle: true },
|
|
1181
1202
|
};
|
|
1182
1203
|
return decode(typeMappings, input);
|
|
1183
1204
|
};
|
|
@@ -1224,6 +1245,19 @@ decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
|
|
|
1224
1245
|
quoted_message: { type: 'MessageResponse', isSingle: true },
|
|
1225
1246
|
|
|
1226
1247
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
1248
|
+
|
|
1249
|
+
reminder: { type: 'ReminderResponseData', isSingle: true },
|
|
1250
|
+
|
|
1251
|
+
shared_location: { type: 'SharedLocationResponseData', isSingle: true },
|
|
1252
|
+
};
|
|
1253
|
+
return decode(typeMappings, input);
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1256
|
+
decoders.ModerationFlagResponse = (input?: Record<string, any>) => {
|
|
1257
|
+
const typeMappings: TypeMapping = {
|
|
1258
|
+
review_queue_item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
1259
|
+
|
|
1260
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1227
1261
|
};
|
|
1228
1262
|
return decode(typeMappings, input);
|
|
1229
1263
|
};
|
|
@@ -1424,6 +1458,8 @@ decoders.PushProvider = (input?: Record<string, any>) => {
|
|
|
1424
1458
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1425
1459
|
|
|
1426
1460
|
disabled_at: { type: 'DatetimeType', isSingle: true },
|
|
1461
|
+
|
|
1462
|
+
push_templates: { type: 'PushTemplate', isSingle: false },
|
|
1427
1463
|
};
|
|
1428
1464
|
return decode(typeMappings, input);
|
|
1429
1465
|
};
|
|
@@ -1439,6 +1475,15 @@ decoders.PushProviderResponse = (input?: Record<string, any>) => {
|
|
|
1439
1475
|
return decode(typeMappings, input);
|
|
1440
1476
|
};
|
|
1441
1477
|
|
|
1478
|
+
decoders.PushTemplate = (input?: Record<string, any>) => {
|
|
1479
|
+
const typeMappings: TypeMapping = {
|
|
1480
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1481
|
+
|
|
1482
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1483
|
+
};
|
|
1484
|
+
return decode(typeMappings, input);
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1442
1487
|
decoders.QueryBannedUsersResponse = (input?: Record<string, any>) => {
|
|
1443
1488
|
const typeMappings: TypeMapping = {
|
|
1444
1489
|
bans: { type: 'BanResponse', isSingle: false },
|
|
@@ -1538,6 +1583,13 @@ decoders.QueryModerationConfigsResponse = (input?: Record<string, any>) => {
|
|
|
1538
1583
|
return decode(typeMappings, input);
|
|
1539
1584
|
};
|
|
1540
1585
|
|
|
1586
|
+
decoders.QueryModerationFlagsResponse = (input?: Record<string, any>) => {
|
|
1587
|
+
const typeMappings: TypeMapping = {
|
|
1588
|
+
flags: { type: 'ModerationFlagResponse', isSingle: false },
|
|
1589
|
+
};
|
|
1590
|
+
return decode(typeMappings, input);
|
|
1591
|
+
};
|
|
1592
|
+
|
|
1541
1593
|
decoders.QueryModerationLogsResponse = (input?: Record<string, any>) => {
|
|
1542
1594
|
const typeMappings: TypeMapping = {
|
|
1543
1595
|
logs: { type: 'ActionLogResponse', isSingle: false },
|
|
@@ -1559,6 +1611,13 @@ decoders.QueryReactionsResponse = (input?: Record<string, any>) => {
|
|
|
1559
1611
|
return decode(typeMappings, input);
|
|
1560
1612
|
};
|
|
1561
1613
|
|
|
1614
|
+
decoders.QueryRemindersResponse = (input?: Record<string, any>) => {
|
|
1615
|
+
const typeMappings: TypeMapping = {
|
|
1616
|
+
reminders: { type: 'ReminderResponseData', isSingle: false },
|
|
1617
|
+
};
|
|
1618
|
+
return decode(typeMappings, input);
|
|
1619
|
+
};
|
|
1620
|
+
|
|
1562
1621
|
decoders.QueryReviewQueueResponse = (input?: Record<string, any>) => {
|
|
1563
1622
|
const typeMappings: TypeMapping = {
|
|
1564
1623
|
items: { type: 'ReviewQueueItemResponse', isSingle: false },
|
|
@@ -1641,27 +1700,19 @@ decoders.ReadStateResponse = (input?: Record<string, any>) => {
|
|
|
1641
1700
|
return decode(typeMappings, input);
|
|
1642
1701
|
};
|
|
1643
1702
|
|
|
1644
|
-
decoders.
|
|
1703
|
+
decoders.ReminderResponseData = (input?: Record<string, any>) => {
|
|
1645
1704
|
const typeMappings: TypeMapping = {
|
|
1646
1705
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1647
1706
|
|
|
1648
1707
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1649
1708
|
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
bans: { type: 'Ban', isSingle: false },
|
|
1653
|
-
|
|
1654
|
-
flags: { type: 'Flag', isSingle: false },
|
|
1655
|
-
|
|
1656
|
-
assigned_to: { type: 'User', isSingle: true },
|
|
1709
|
+
remind_at: { type: 'DatetimeType', isSingle: true },
|
|
1657
1710
|
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
feeds_v2_reaction: { type: 'Reaction', isSingle: true },
|
|
1711
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1661
1712
|
|
|
1662
1713
|
message: { type: 'Message', isSingle: true },
|
|
1663
1714
|
|
|
1664
|
-
|
|
1715
|
+
user: { type: 'User', isSingle: true },
|
|
1665
1716
|
};
|
|
1666
1717
|
return decode(typeMappings, input);
|
|
1667
1718
|
};
|
|
@@ -1682,6 +1733,8 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
|
|
|
1682
1733
|
|
|
1683
1734
|
assigned_to: { type: 'UserResponse', isSingle: true },
|
|
1684
1735
|
|
|
1736
|
+
call: { type: 'CallResponse', isSingle: true },
|
|
1737
|
+
|
|
1685
1738
|
entity_creator: { type: 'EntityCreatorResponse', isSingle: true },
|
|
1686
1739
|
|
|
1687
1740
|
feeds_v2_reaction: { type: 'Reaction', isSingle: true },
|
|
@@ -1744,6 +1797,10 @@ decoders.SearchResultMessage = (input?: Record<string, any>) => {
|
|
|
1744
1797
|
quoted_message: { type: 'MessageResponse', isSingle: true },
|
|
1745
1798
|
|
|
1746
1799
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
1800
|
+
|
|
1801
|
+
reminder: { type: 'ReminderResponseData', isSingle: true },
|
|
1802
|
+
|
|
1803
|
+
shared_location: { type: 'SharedLocationResponseData', isSingle: true },
|
|
1747
1804
|
};
|
|
1748
1805
|
return decode(typeMappings, input);
|
|
1749
1806
|
};
|
|
@@ -1793,6 +1850,61 @@ decoders.SendReactionResponse = (input?: Record<string, any>) => {
|
|
|
1793
1850
|
return decode(typeMappings, input);
|
|
1794
1851
|
};
|
|
1795
1852
|
|
|
1853
|
+
decoders.SharedLocation = (input?: Record<string, any>) => {
|
|
1854
|
+
const typeMappings: TypeMapping = {
|
|
1855
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1856
|
+
|
|
1857
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1858
|
+
|
|
1859
|
+
end_at: { type: 'DatetimeType', isSingle: true },
|
|
1860
|
+
|
|
1861
|
+
channel: { type: 'Channel', isSingle: true },
|
|
1862
|
+
|
|
1863
|
+
message: { type: 'Message', isSingle: true },
|
|
1864
|
+
};
|
|
1865
|
+
return decode(typeMappings, input);
|
|
1866
|
+
};
|
|
1867
|
+
|
|
1868
|
+
decoders.SharedLocationResponse = (input?: Record<string, any>) => {
|
|
1869
|
+
const typeMappings: TypeMapping = {
|
|
1870
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1871
|
+
|
|
1872
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1873
|
+
|
|
1874
|
+
end_at: { type: 'DatetimeType', isSingle: true },
|
|
1875
|
+
|
|
1876
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1877
|
+
|
|
1878
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
1879
|
+
};
|
|
1880
|
+
return decode(typeMappings, input);
|
|
1881
|
+
};
|
|
1882
|
+
|
|
1883
|
+
decoders.SharedLocationResponseData = (input?: Record<string, any>) => {
|
|
1884
|
+
const typeMappings: TypeMapping = {
|
|
1885
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1886
|
+
|
|
1887
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1888
|
+
|
|
1889
|
+
end_at: { type: 'DatetimeType', isSingle: true },
|
|
1890
|
+
|
|
1891
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1892
|
+
|
|
1893
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
1894
|
+
};
|
|
1895
|
+
return decode(typeMappings, input);
|
|
1896
|
+
};
|
|
1897
|
+
|
|
1898
|
+
decoders.SharedLocationsResponse = (input?: Record<string, any>) => {
|
|
1899
|
+
const typeMappings: TypeMapping = {
|
|
1900
|
+
active_live_locations: {
|
|
1901
|
+
type: 'SharedLocationResponseData',
|
|
1902
|
+
isSingle: false,
|
|
1903
|
+
},
|
|
1904
|
+
};
|
|
1905
|
+
return decode(typeMappings, input);
|
|
1906
|
+
};
|
|
1907
|
+
|
|
1796
1908
|
decoders.StopLiveResponse = (input?: Record<string, any>) => {
|
|
1797
1909
|
const typeMappings: TypeMapping = {
|
|
1798
1910
|
call: { type: 'CallResponse', isSingle: true },
|
|
@@ -1802,7 +1914,7 @@ decoders.StopLiveResponse = (input?: Record<string, any>) => {
|
|
|
1802
1914
|
|
|
1803
1915
|
decoders.SubmitActionResponse = (input?: Record<string, any>) => {
|
|
1804
1916
|
const typeMappings: TypeMapping = {
|
|
1805
|
-
item: { type: '
|
|
1917
|
+
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
1806
1918
|
};
|
|
1807
1919
|
return decode(typeMappings, input);
|
|
1808
1920
|
};
|
|
@@ -1998,6 +2110,13 @@ decoders.UpdateMessageResponse = (input?: Record<string, any>) => {
|
|
|
1998
2110
|
return decode(typeMappings, input);
|
|
1999
2111
|
};
|
|
2000
2112
|
|
|
2113
|
+
decoders.UpdateReminderResponse = (input?: Record<string, any>) => {
|
|
2114
|
+
const typeMappings: TypeMapping = {
|
|
2115
|
+
reminder: { type: 'ReminderResponseData', isSingle: true },
|
|
2116
|
+
};
|
|
2117
|
+
return decode(typeMappings, input);
|
|
2118
|
+
};
|
|
2119
|
+
|
|
2001
2120
|
decoders.UpdateThreadPartialResponse = (input?: Record<string, any>) => {
|
|
2002
2121
|
const typeMappings: TypeMapping = {
|
|
2003
2122
|
thread: { type: 'ThreadResponse', isSingle: true },
|
|
@@ -2042,6 +2161,13 @@ decoders.UpsertPushProviderResponse = (input?: Record<string, any>) => {
|
|
|
2042
2161
|
return decode(typeMappings, input);
|
|
2043
2162
|
};
|
|
2044
2163
|
|
|
2164
|
+
decoders.UpsertPushTemplateResponse = (input?: Record<string, any>) => {
|
|
2165
|
+
const typeMappings: TypeMapping = {
|
|
2166
|
+
template: { type: 'PushTemplate', isSingle: true },
|
|
2167
|
+
};
|
|
2168
|
+
return decode(typeMappings, input);
|
|
2169
|
+
};
|
|
2170
|
+
|
|
2045
2171
|
decoders.User = (input?: Record<string, any>) => {
|
|
2046
2172
|
const typeMappings: TypeMapping = {
|
|
2047
2173
|
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2136,6 +2262,20 @@ decoders.UserResponseCommonFields = (input?: Record<string, any>) => {
|
|
|
2136
2262
|
return decode(typeMappings, input);
|
|
2137
2263
|
};
|
|
2138
2264
|
|
|
2265
|
+
decoders.VideoReactionOverTimeResponse = (input?: Record<string, any>) => {
|
|
2266
|
+
const typeMappings: TypeMapping = {
|
|
2267
|
+
by_minute: { type: 'CountByMinuteResponse', isSingle: false },
|
|
2268
|
+
};
|
|
2269
|
+
return decode(typeMappings, input);
|
|
2270
|
+
};
|
|
2271
|
+
|
|
2272
|
+
decoders.VideoReactionsResponse = (input?: Record<string, any>) => {
|
|
2273
|
+
const typeMappings: TypeMapping = {
|
|
2274
|
+
count_over_time: { type: 'VideoReactionOverTimeResponse', isSingle: true },
|
|
2275
|
+
};
|
|
2276
|
+
return decode(typeMappings, input);
|
|
2277
|
+
};
|
|
2278
|
+
|
|
2139
2279
|
decoders.WSEvent = (input?: Record<string, any>) => {
|
|
2140
2280
|
const typeMappings: TypeMapping = {
|
|
2141
2281
|
created_at: { type: 'DatetimeType', isSingle: true },
|