@stream-io/node-sdk 0.7.62 → 0.7.64
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 +998 -41
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +998 -41
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChannelApi.d.ts +12 -0
- package/dist/src/gen/chat/ChatApi.d.ts +31 -1
- package/dist/src/gen/common/CommonApi.d.ts +18 -2
- package/dist/src/gen/feeds/FeedApi.d.ts +10 -3
- package/dist/src/gen/feeds/FeedsApi.d.ts +42 -4
- package/dist/src/gen/models/index.d.ts +3693 -170
- package/dist/src/gen/moderation/ModerationApi.d.ts +57 -5
- package/dist/src/gen/video/VideoApi.d.ts +6 -1
- package/dist/src/utils/query-params.d.ts +7 -0
- package/package.json +3 -3
- package/src/ApiClient.ts +8 -10
- package/src/gen/chat/ChannelApi.ts +25 -0
- package/src/gen/chat/ChatApi.ts +258 -0
- package/src/gen/common/CommonApi.ts +99 -6
- package/src/gen/feeds/FeedApi.ts +20 -2
- package/src/gen/feeds/FeedsApi.ts +187 -8
- package/src/gen/model-decoders/decoders.ts +506 -22
- package/src/gen/models/index.ts +4750 -136
- package/src/gen/moderation/ModerationApi.ts +626 -14
- package/src/gen/video/VideoApi.ts +44 -0
- package/src/utils/query-params.ts +21 -0
|
@@ -223,6 +223,8 @@ decoders.ActivityResponse = (input?: Record<string, any>) => {
|
|
|
223
223
|
|
|
224
224
|
friend_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
225
225
|
|
|
226
|
+
latest_shares: { type: 'ShareResponse', isSingle: false },
|
|
227
|
+
|
|
226
228
|
current_feed: { type: 'FeedResponse', isSingle: true },
|
|
227
229
|
|
|
228
230
|
parent: { type: 'ActivityResponse', isSingle: true },
|
|
@@ -304,6 +306,8 @@ decoders.AddCommentReactionResponse = (input?: Record<string, any>) => {
|
|
|
304
306
|
comment: { type: 'CommentResponse', isSingle: true },
|
|
305
307
|
|
|
306
308
|
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
309
|
+
|
|
310
|
+
reference_activity: { type: 'ActivityResponse', isSingle: true },
|
|
307
311
|
};
|
|
308
312
|
return decode(typeMappings, input);
|
|
309
313
|
};
|
|
@@ -327,6 +331,8 @@ decoders.AddReactionResponse = (input?: Record<string, any>) => {
|
|
|
327
331
|
activity: { type: 'ActivityResponse', isSingle: true },
|
|
328
332
|
|
|
329
333
|
reaction: { type: 'FeedsReactionResponse', isSingle: true },
|
|
334
|
+
|
|
335
|
+
reference_activity: { type: 'ActivityResponse', isSingle: true },
|
|
330
336
|
};
|
|
331
337
|
return decode(typeMappings, input);
|
|
332
338
|
};
|
|
@@ -392,6 +398,14 @@ decoders.AppealItemResponse = (input?: Record<string, any>) => {
|
|
|
392
398
|
|
|
393
399
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
394
400
|
|
|
401
|
+
actions: { type: 'ActionLogResponse', isSingle: false },
|
|
402
|
+
|
|
403
|
+
flags: { type: 'ModerationFlagResponse', isSingle: false },
|
|
404
|
+
|
|
405
|
+
moderation_action: { type: 'ActionLogResponse', isSingle: true },
|
|
406
|
+
|
|
407
|
+
original_moderation_action: { type: 'ActionLogResponse', isSingle: true },
|
|
408
|
+
|
|
395
409
|
user: { type: 'UserResponse', isSingle: true },
|
|
396
410
|
};
|
|
397
411
|
return decode(typeMappings, input);
|
|
@@ -460,6 +474,19 @@ decoders.AsyncExportModerationLogsEvent = (input?: Record<string, any>) => {
|
|
|
460
474
|
return decode(typeMappings, input);
|
|
461
475
|
};
|
|
462
476
|
|
|
477
|
+
decoders.AsyncExportReviewQueueEvent = (input?: Record<string, any>) => {
|
|
478
|
+
const typeMappings: TypeMapping = {
|
|
479
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
480
|
+
|
|
481
|
+
finished_at: { type: 'DatetimeType', isSingle: true },
|
|
482
|
+
|
|
483
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
484
|
+
|
|
485
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
486
|
+
};
|
|
487
|
+
return decode(typeMappings, input);
|
|
488
|
+
};
|
|
489
|
+
|
|
463
490
|
decoders.AsyncExportUsersEvent = (input?: Record<string, any>) => {
|
|
464
491
|
const typeMappings: TypeMapping = {
|
|
465
492
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -486,6 +513,8 @@ decoders.BanInfoResponse = (input?: Record<string, any>) => {
|
|
|
486
513
|
|
|
487
514
|
expires: { type: 'DatetimeType', isSingle: true },
|
|
488
515
|
|
|
516
|
+
channel: { type: 'ChannelMetadata', isSingle: true },
|
|
517
|
+
|
|
489
518
|
created_by: { type: 'UserResponse', isSingle: true },
|
|
490
519
|
|
|
491
520
|
user: { type: 'UserResponse', isSingle: true },
|
|
@@ -655,6 +684,20 @@ decoders.BookmarkUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
655
684
|
return decode(typeMappings, input);
|
|
656
685
|
};
|
|
657
686
|
|
|
687
|
+
decoders.BulkActionAppealsResponse = (input?: Record<string, any>) => {
|
|
688
|
+
const typeMappings: TypeMapping = {
|
|
689
|
+
results: { type: 'BulkAppealResult', isSingle: false },
|
|
690
|
+
};
|
|
691
|
+
return decode(typeMappings, input);
|
|
692
|
+
};
|
|
693
|
+
|
|
694
|
+
decoders.BulkAppealResult = (input?: Record<string, any>) => {
|
|
695
|
+
const typeMappings: TypeMapping = {
|
|
696
|
+
appeal_item: { type: 'AppealItemResponse', isSingle: true },
|
|
697
|
+
};
|
|
698
|
+
return decode(typeMappings, input);
|
|
699
|
+
};
|
|
700
|
+
|
|
658
701
|
decoders.CallAcceptedEvent = (input?: Record<string, any>) => {
|
|
659
702
|
const typeMappings: TypeMapping = {
|
|
660
703
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1276,6 +1319,13 @@ decoders.CampaignStatsResponse = (input?: Record<string, any>) => {
|
|
|
1276
1319
|
return decode(typeMappings, input);
|
|
1277
1320
|
};
|
|
1278
1321
|
|
|
1322
|
+
decoders.ChangeFeedVisibilityResponse = (input?: Record<string, any>) => {
|
|
1323
|
+
const typeMappings: TypeMapping = {
|
|
1324
|
+
feed: { type: 'FeedResponse', isSingle: true },
|
|
1325
|
+
};
|
|
1326
|
+
return decode(typeMappings, input);
|
|
1327
|
+
};
|
|
1328
|
+
|
|
1279
1329
|
decoders.ChannelBatchCompletedEvent = (input?: Record<string, any>) => {
|
|
1280
1330
|
const typeMappings: TypeMapping = {
|
|
1281
1331
|
batch_created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1322,6 +1372,13 @@ decoders.ChannelConfigWithInfo = (input?: Record<string, any>) => {
|
|
|
1322
1372
|
return decode(typeMappings, input);
|
|
1323
1373
|
};
|
|
1324
1374
|
|
|
1375
|
+
decoders.ChannelContextResponse = (input?: Record<string, any>) => {
|
|
1376
|
+
const typeMappings: TypeMapping = {
|
|
1377
|
+
created_by: { type: 'UserResponse', isSingle: true },
|
|
1378
|
+
};
|
|
1379
|
+
return decode(typeMappings, input);
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1325
1382
|
decoders.ChannelCreatedEvent = (input?: Record<string, any>) => {
|
|
1326
1383
|
const typeMappings: TypeMapping = {
|
|
1327
1384
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1382,6 +1439,8 @@ decoders.ChannelMemberResponse = (input?: Record<string, any>) => {
|
|
|
1382
1439
|
|
|
1383
1440
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1384
1441
|
|
|
1442
|
+
future_channel_ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
1443
|
+
|
|
1385
1444
|
invite_accepted_at: { type: 'DatetimeType', isSingle: true },
|
|
1386
1445
|
|
|
1387
1446
|
invite_rejected_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1393,6 +1452,13 @@ decoders.ChannelMemberResponse = (input?: Record<string, any>) => {
|
|
|
1393
1452
|
return decode(typeMappings, input);
|
|
1394
1453
|
};
|
|
1395
1454
|
|
|
1455
|
+
decoders.ChannelMetadata = (input?: Record<string, any>) => {
|
|
1456
|
+
const typeMappings: TypeMapping = {
|
|
1457
|
+
last_message_at: { type: 'DatetimeType', isSingle: true },
|
|
1458
|
+
};
|
|
1459
|
+
return decode(typeMappings, input);
|
|
1460
|
+
};
|
|
1461
|
+
|
|
1396
1462
|
decoders.ChannelMute = (input?: Record<string, any>) => {
|
|
1397
1463
|
const typeMappings: TypeMapping = {
|
|
1398
1464
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1616,6 +1682,131 @@ decoders.ChatActivityStatsResponse = (input?: Record<string, any>) => {
|
|
|
1616
1682
|
return decode(typeMappings, input);
|
|
1617
1683
|
};
|
|
1618
1684
|
|
|
1685
|
+
decoders.ChatDraftPayloadResponse = (input?: Record<string, any>) => {
|
|
1686
|
+
const typeMappings: TypeMapping = {
|
|
1687
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
1688
|
+
};
|
|
1689
|
+
return decode(typeMappings, input);
|
|
1690
|
+
};
|
|
1691
|
+
|
|
1692
|
+
decoders.ChatDraftResponse = (input?: Record<string, any>) => {
|
|
1693
|
+
const typeMappings: TypeMapping = {
|
|
1694
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1695
|
+
|
|
1696
|
+
message: { type: 'ChatDraftPayloadResponse', isSingle: true },
|
|
1697
|
+
|
|
1698
|
+
parent_message: { type: 'ChatMessageResponse', isSingle: true },
|
|
1699
|
+
|
|
1700
|
+
quoted_message: { type: 'ChatMessageResponse', isSingle: true },
|
|
1701
|
+
};
|
|
1702
|
+
return decode(typeMappings, input);
|
|
1703
|
+
};
|
|
1704
|
+
|
|
1705
|
+
decoders.ChatMessageResponse = (input?: Record<string, any>) => {
|
|
1706
|
+
const typeMappings: TypeMapping = {
|
|
1707
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1708
|
+
|
|
1709
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1710
|
+
|
|
1711
|
+
latest_reactions: { type: 'ChatReactionResponse', isSingle: false },
|
|
1712
|
+
|
|
1713
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
1714
|
+
|
|
1715
|
+
own_reactions: { type: 'ChatReactionResponse', isSingle: false },
|
|
1716
|
+
|
|
1717
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1718
|
+
|
|
1719
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1720
|
+
|
|
1721
|
+
message_text_updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1722
|
+
|
|
1723
|
+
pin_expires: { type: 'DatetimeType', isSingle: true },
|
|
1724
|
+
|
|
1725
|
+
pinned_at: { type: 'DatetimeType', isSingle: true },
|
|
1726
|
+
|
|
1727
|
+
mentioned_groups: { type: 'UserGroupResponse', isSingle: false },
|
|
1728
|
+
|
|
1729
|
+
thread_participants: { type: 'UserResponse', isSingle: false },
|
|
1730
|
+
|
|
1731
|
+
draft: { type: 'ChatDraftResponse', isSingle: true },
|
|
1732
|
+
|
|
1733
|
+
pinned_by: { type: 'UserResponse', isSingle: true },
|
|
1734
|
+
|
|
1735
|
+
poll: { type: 'PollResponseData', isSingle: true },
|
|
1736
|
+
|
|
1737
|
+
quoted_message: { type: 'ChatMessageResponse', isSingle: true },
|
|
1738
|
+
|
|
1739
|
+
reaction_groups: { type: 'ChatReactionGroupResponse', isSingle: false },
|
|
1740
|
+
|
|
1741
|
+
reminder: { type: 'ChatReminderResponseData', isSingle: true },
|
|
1742
|
+
|
|
1743
|
+
shared_location: { type: 'ChatSharedLocationResponseData', isSingle: true },
|
|
1744
|
+
};
|
|
1745
|
+
return decode(typeMappings, input);
|
|
1746
|
+
};
|
|
1747
|
+
|
|
1748
|
+
decoders.ChatReactionGroupResponse = (input?: Record<string, any>) => {
|
|
1749
|
+
const typeMappings: TypeMapping = {
|
|
1750
|
+
first_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
1751
|
+
|
|
1752
|
+
last_reaction_at: { type: 'DatetimeType', isSingle: true },
|
|
1753
|
+
|
|
1754
|
+
latest_reactions_by: {
|
|
1755
|
+
type: 'ChatReactionGroupUserResponse',
|
|
1756
|
+
isSingle: false,
|
|
1757
|
+
},
|
|
1758
|
+
};
|
|
1759
|
+
return decode(typeMappings, input);
|
|
1760
|
+
};
|
|
1761
|
+
|
|
1762
|
+
decoders.ChatReactionGroupUserResponse = (input?: Record<string, any>) => {
|
|
1763
|
+
const typeMappings: TypeMapping = {
|
|
1764
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1765
|
+
|
|
1766
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1767
|
+
};
|
|
1768
|
+
return decode(typeMappings, input);
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
decoders.ChatReactionResponse = (input?: Record<string, any>) => {
|
|
1772
|
+
const typeMappings: TypeMapping = {
|
|
1773
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1774
|
+
|
|
1775
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1776
|
+
|
|
1777
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1778
|
+
};
|
|
1779
|
+
return decode(typeMappings, input);
|
|
1780
|
+
};
|
|
1781
|
+
|
|
1782
|
+
decoders.ChatReminderResponseData = (input?: Record<string, any>) => {
|
|
1783
|
+
const typeMappings: TypeMapping = {
|
|
1784
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1785
|
+
|
|
1786
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1787
|
+
|
|
1788
|
+
remind_at: { type: 'DatetimeType', isSingle: true },
|
|
1789
|
+
|
|
1790
|
+
message: { type: 'ChatMessageResponse', isSingle: true },
|
|
1791
|
+
|
|
1792
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1793
|
+
};
|
|
1794
|
+
return decode(typeMappings, input);
|
|
1795
|
+
};
|
|
1796
|
+
|
|
1797
|
+
decoders.ChatSharedLocationResponseData = (input?: Record<string, any>) => {
|
|
1798
|
+
const typeMappings: TypeMapping = {
|
|
1799
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1800
|
+
|
|
1801
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1802
|
+
|
|
1803
|
+
end_at: { type: 'DatetimeType', isSingle: true },
|
|
1804
|
+
|
|
1805
|
+
message: { type: 'ChatMessageResponse', isSingle: true },
|
|
1806
|
+
};
|
|
1807
|
+
return decode(typeMappings, input);
|
|
1808
|
+
};
|
|
1809
|
+
|
|
1619
1810
|
decoders.CheckResponse = (input?: Record<string, any>) => {
|
|
1620
1811
|
const typeMappings: TypeMapping = {
|
|
1621
1812
|
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
@@ -1623,6 +1814,15 @@ decoders.CheckResponse = (input?: Record<string, any>) => {
|
|
|
1623
1814
|
return decode(typeMappings, input);
|
|
1624
1815
|
};
|
|
1625
1816
|
|
|
1817
|
+
decoders.ClientEvent = (input?: Record<string, any>) => {
|
|
1818
|
+
const typeMappings: TypeMapping = {
|
|
1819
|
+
previously_connected_timestamp: { type: 'DatetimeType', isSingle: true },
|
|
1820
|
+
|
|
1821
|
+
timestamp: { type: 'DatetimeType', isSingle: true },
|
|
1822
|
+
};
|
|
1823
|
+
return decode(typeMappings, input);
|
|
1824
|
+
};
|
|
1825
|
+
|
|
1626
1826
|
decoders.ClosedCaptionEvent = (input?: Record<string, any>) => {
|
|
1627
1827
|
const typeMappings: TypeMapping = {
|
|
1628
1828
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1804,6 +2004,13 @@ decoders.CreateCallTypeResponse = (input?: Record<string, any>) => {
|
|
|
1804
2004
|
return decode(typeMappings, input);
|
|
1805
2005
|
};
|
|
1806
2006
|
|
|
2007
|
+
decoders.CreateCampaignResponse = (input?: Record<string, any>) => {
|
|
2008
|
+
const typeMappings: TypeMapping = {
|
|
2009
|
+
campaign: { type: 'CampaignResponse', isSingle: true },
|
|
2010
|
+
};
|
|
2011
|
+
return decode(typeMappings, input);
|
|
2012
|
+
};
|
|
2013
|
+
|
|
1807
2014
|
decoders.CreateChannelTypeResponse = (input?: Record<string, any>) => {
|
|
1808
2015
|
const typeMappings: TypeMapping = {
|
|
1809
2016
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1892,6 +2099,13 @@ decoders.CreateSIPTrunkResponse = (input?: Record<string, any>) => {
|
|
|
1892
2099
|
return decode(typeMappings, input);
|
|
1893
2100
|
};
|
|
1894
2101
|
|
|
2102
|
+
decoders.CreateSegmentResponse = (input?: Record<string, any>) => {
|
|
2103
|
+
const typeMappings: TypeMapping = {
|
|
2104
|
+
segment: { type: 'SegmentResponse', isSingle: true },
|
|
2105
|
+
};
|
|
2106
|
+
return decode(typeMappings, input);
|
|
2107
|
+
};
|
|
2108
|
+
|
|
1895
2109
|
decoders.CreateUserGroupResponse = (input?: Record<string, any>) => {
|
|
1896
2110
|
const typeMappings: TypeMapping = {
|
|
1897
2111
|
user_group: { type: 'UserGroupResponse', isSingle: true },
|
|
@@ -2045,15 +2259,6 @@ decoders.EgressResponse = (input?: Record<string, any>) => {
|
|
|
2045
2259
|
return decode(typeMappings, input);
|
|
2046
2260
|
};
|
|
2047
2261
|
|
|
2048
|
-
decoders.EnrichedCollection = (input?: Record<string, any>) => {
|
|
2049
|
-
const typeMappings: TypeMapping = {
|
|
2050
|
-
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2051
|
-
|
|
2052
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
2053
|
-
};
|
|
2054
|
-
return decode(typeMappings, input);
|
|
2055
|
-
};
|
|
2056
|
-
|
|
2057
2262
|
decoders.EnrichedCollectionResponse = (input?: Record<string, any>) => {
|
|
2058
2263
|
const typeMappings: TypeMapping = {
|
|
2059
2264
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2315,11 +2520,35 @@ decoders.FeedViewResponse = (input?: Record<string, any>) => {
|
|
|
2315
2520
|
return decode(typeMappings, input);
|
|
2316
2521
|
};
|
|
2317
2522
|
|
|
2318
|
-
decoders.
|
|
2523
|
+
decoders.FeedsBookmarkResponse = (input?: Record<string, any>) => {
|
|
2319
2524
|
const typeMappings: TypeMapping = {
|
|
2320
|
-
|
|
2525
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2321
2526
|
|
|
2322
|
-
|
|
2527
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
2528
|
+
|
|
2529
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
2530
|
+
};
|
|
2531
|
+
return decode(typeMappings, input);
|
|
2532
|
+
};
|
|
2533
|
+
|
|
2534
|
+
decoders.FeedsEnrichedCollectionResponse = (input?: Record<string, any>) => {
|
|
2535
|
+
const typeMappings: TypeMapping = {
|
|
2536
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2537
|
+
|
|
2538
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
2539
|
+
};
|
|
2540
|
+
return decode(typeMappings, input);
|
|
2541
|
+
};
|
|
2542
|
+
|
|
2543
|
+
decoders.FeedsFeedResponse = (input?: Record<string, any>) => {
|
|
2544
|
+
const typeMappings: TypeMapping = {
|
|
2545
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2546
|
+
|
|
2547
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
2548
|
+
|
|
2549
|
+
created_by: { type: 'UserResponse', isSingle: true },
|
|
2550
|
+
|
|
2551
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
2323
2552
|
};
|
|
2324
2553
|
return decode(typeMappings, input);
|
|
2325
2554
|
};
|
|
@@ -2344,6 +2573,15 @@ decoders.FeedsReactionResponse = (input?: Record<string, any>) => {
|
|
|
2344
2573
|
return decode(typeMappings, input);
|
|
2345
2574
|
};
|
|
2346
2575
|
|
|
2576
|
+
decoders.FeedsShareResponse = (input?: Record<string, any>) => {
|
|
2577
|
+
const typeMappings: TypeMapping = {
|
|
2578
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2579
|
+
|
|
2580
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
2581
|
+
};
|
|
2582
|
+
return decode(typeMappings, input);
|
|
2583
|
+
};
|
|
2584
|
+
|
|
2347
2585
|
decoders.FeedsV3ActivityResponse = (input?: Record<string, any>) => {
|
|
2348
2586
|
const typeMappings: TypeMapping = {
|
|
2349
2587
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2352,11 +2590,17 @@ decoders.FeedsV3ActivityResponse = (input?: Record<string, any>) => {
|
|
|
2352
2590
|
|
|
2353
2591
|
comments: { type: 'FeedsV3CommentResponse', isSingle: false },
|
|
2354
2592
|
|
|
2593
|
+
latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
2594
|
+
|
|
2355
2595
|
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
2356
2596
|
|
|
2357
|
-
|
|
2597
|
+
own_bookmarks: { type: 'FeedsBookmarkResponse', isSingle: false },
|
|
2358
2598
|
|
|
2359
|
-
|
|
2599
|
+
own_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
2600
|
+
|
|
2601
|
+
collections: { type: 'FeedsEnrichedCollectionResponse', isSingle: false },
|
|
2602
|
+
|
|
2603
|
+
reaction_groups: { type: 'FeedsReactionGroupResponse', isSingle: false },
|
|
2360
2604
|
|
|
2361
2605
|
user: { type: 'UserResponse', isSingle: true },
|
|
2362
2606
|
|
|
@@ -2365,6 +2609,16 @@ decoders.FeedsV3ActivityResponse = (input?: Record<string, any>) => {
|
|
|
2365
2609
|
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
2366
2610
|
|
|
2367
2611
|
expires_at: { type: 'DatetimeType', isSingle: true },
|
|
2612
|
+
|
|
2613
|
+
friend_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
2614
|
+
|
|
2615
|
+
latest_shares: { type: 'FeedsShareResponse', isSingle: false },
|
|
2616
|
+
|
|
2617
|
+
current_feed: { type: 'FeedsFeedResponse', isSingle: true },
|
|
2618
|
+
|
|
2619
|
+
parent: { type: 'FeedsV3ActivityResponse', isSingle: true },
|
|
2620
|
+
|
|
2621
|
+
poll: { type: 'PollResponseData', isSingle: true },
|
|
2368
2622
|
};
|
|
2369
2623
|
return decode(typeMappings, input);
|
|
2370
2624
|
};
|
|
@@ -2377,11 +2631,17 @@ decoders.FeedsV3CommentResponse = (input?: Record<string, any>) => {
|
|
|
2377
2631
|
|
|
2378
2632
|
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
2379
2633
|
|
|
2634
|
+
own_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
2635
|
+
|
|
2380
2636
|
user: { type: 'UserResponse', isSingle: true },
|
|
2381
2637
|
|
|
2382
2638
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
2383
2639
|
|
|
2384
2640
|
edited_at: { type: 'DatetimeType', isSingle: true },
|
|
2641
|
+
|
|
2642
|
+
latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
2643
|
+
|
|
2644
|
+
reaction_groups: { type: 'FeedsReactionGroupResponse', isSingle: false },
|
|
2385
2645
|
};
|
|
2386
2646
|
return decode(typeMappings, input);
|
|
2387
2647
|
};
|
|
@@ -2839,6 +3099,13 @@ decoders.GetSegmentResponse = (input?: Record<string, any>) => {
|
|
|
2839
3099
|
return decode(typeMappings, input);
|
|
2840
3100
|
};
|
|
2841
3101
|
|
|
3102
|
+
decoders.GetSetupSessionResponse = (input?: Record<string, any>) => {
|
|
3103
|
+
const typeMappings: TypeMapping = {
|
|
3104
|
+
setup_session: { type: 'SetupSession', isSingle: true },
|
|
3105
|
+
};
|
|
3106
|
+
return decode(typeMappings, input);
|
|
3107
|
+
};
|
|
3108
|
+
|
|
2842
3109
|
decoders.GetTaskResponse = (input?: Record<string, any>) => {
|
|
2843
3110
|
const typeMappings: TypeMapping = {
|
|
2844
3111
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2869,6 +3136,20 @@ decoders.GoLiveResponse = (input?: Record<string, any>) => {
|
|
|
2869
3136
|
return decode(typeMappings, input);
|
|
2870
3137
|
};
|
|
2871
3138
|
|
|
3139
|
+
decoders.GroupedChannelsBucket = (input?: Record<string, any>) => {
|
|
3140
|
+
const typeMappings: TypeMapping = {
|
|
3141
|
+
channels: { type: 'ChannelStateResponseFields', isSingle: false },
|
|
3142
|
+
};
|
|
3143
|
+
return decode(typeMappings, input);
|
|
3144
|
+
};
|
|
3145
|
+
|
|
3146
|
+
decoders.GroupedQueryChannelsResponse = (input?: Record<string, any>) => {
|
|
3147
|
+
const typeMappings: TypeMapping = {
|
|
3148
|
+
groups: { type: 'GroupedChannelsBucket', isSingle: false },
|
|
3149
|
+
};
|
|
3150
|
+
return decode(typeMappings, input);
|
|
3151
|
+
};
|
|
3152
|
+
|
|
2872
3153
|
decoders.ImportTask = (input?: Record<string, any>) => {
|
|
2873
3154
|
const typeMappings: TypeMapping = {
|
|
2874
3155
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2928,6 +3209,13 @@ decoders.KickedUserEvent = (input?: Record<string, any>) => {
|
|
|
2928
3209
|
return decode(typeMappings, input);
|
|
2929
3210
|
};
|
|
2930
3211
|
|
|
3212
|
+
decoders.LabelResultResponse = (input?: Record<string, any>) => {
|
|
3213
|
+
const typeMappings: TypeMapping = {
|
|
3214
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3215
|
+
};
|
|
3216
|
+
return decode(typeMappings, input);
|
|
3217
|
+
};
|
|
3218
|
+
|
|
2931
3219
|
decoders.ListBlockListResponse = (input?: Record<string, any>) => {
|
|
2932
3220
|
const typeMappings: TypeMapping = {
|
|
2933
3221
|
blocklists: { type: 'BlockListResponse', isSingle: false },
|
|
@@ -2998,6 +3286,13 @@ decoders.ListPushProvidersResponse = (input?: Record<string, any>) => {
|
|
|
2998
3286
|
return decode(typeMappings, input);
|
|
2999
3287
|
};
|
|
3000
3288
|
|
|
3289
|
+
decoders.ListQueuesResponse = (input?: Record<string, any>) => {
|
|
3290
|
+
const typeMappings: TypeMapping = {
|
|
3291
|
+
queues: { type: 'ModerationQueueResponse', isSingle: false },
|
|
3292
|
+
};
|
|
3293
|
+
return decode(typeMappings, input);
|
|
3294
|
+
};
|
|
3295
|
+
|
|
3001
3296
|
decoders.ListRecordingsResponse = (input?: Record<string, any>) => {
|
|
3002
3297
|
const typeMappings: TypeMapping = {
|
|
3003
3298
|
recordings: { type: 'CallRecording', isSingle: false },
|
|
@@ -3280,12 +3575,12 @@ decoders.MessageResponse = (input?: Record<string, any>) => {
|
|
|
3280
3575
|
|
|
3281
3576
|
pinned_at: { type: 'DatetimeType', isSingle: true },
|
|
3282
3577
|
|
|
3578
|
+
mentioned_groups: { type: 'UserGroupResponse', isSingle: false },
|
|
3579
|
+
|
|
3283
3580
|
thread_participants: { type: 'UserResponse', isSingle: false },
|
|
3284
3581
|
|
|
3285
3582
|
draft: { type: 'DraftResponse', isSingle: true },
|
|
3286
3583
|
|
|
3287
|
-
member: { type: 'ChannelMemberResponse', isSingle: true },
|
|
3288
|
-
|
|
3289
3584
|
pinned_by: { type: 'UserResponse', isSingle: true },
|
|
3290
3585
|
|
|
3291
3586
|
poll: { type: 'PollResponseData', isSingle: true },
|
|
@@ -3369,12 +3664,12 @@ decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
|
|
|
3369
3664
|
|
|
3370
3665
|
pinned_at: { type: 'DatetimeType', isSingle: true },
|
|
3371
3666
|
|
|
3667
|
+
mentioned_groups: { type: 'UserGroupResponse', isSingle: false },
|
|
3668
|
+
|
|
3372
3669
|
thread_participants: { type: 'UserResponse', isSingle: false },
|
|
3373
3670
|
|
|
3374
3671
|
draft: { type: 'DraftResponse', isSingle: true },
|
|
3375
3672
|
|
|
3376
|
-
member: { type: 'ChannelMemberResponse', isSingle: true },
|
|
3377
|
-
|
|
3378
3673
|
pinned_by: { type: 'UserResponse', isSingle: true },
|
|
3379
3674
|
|
|
3380
3675
|
poll: { type: 'PollResponseData', isSingle: true },
|
|
@@ -3390,6 +3685,30 @@ decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
|
|
|
3390
3685
|
return decode(typeMappings, input);
|
|
3391
3686
|
};
|
|
3392
3687
|
|
|
3688
|
+
decoders.ModerationAnalysisFailedEvent = (input?: Record<string, any>) => {
|
|
3689
|
+
const typeMappings: TypeMapping = {
|
|
3690
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3691
|
+
|
|
3692
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
3693
|
+
};
|
|
3694
|
+
return decode(typeMappings, input);
|
|
3695
|
+
};
|
|
3696
|
+
|
|
3697
|
+
decoders.ModerationCallResponse = (input?: Record<string, any>) => {
|
|
3698
|
+
const typeMappings: TypeMapping = {
|
|
3699
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3700
|
+
|
|
3701
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
3702
|
+
|
|
3703
|
+
ended_at: { type: 'DatetimeType', isSingle: true },
|
|
3704
|
+
|
|
3705
|
+
starts_at: { type: 'DatetimeType', isSingle: true },
|
|
3706
|
+
|
|
3707
|
+
created_by: { type: 'UserResponse', isSingle: true },
|
|
3708
|
+
};
|
|
3709
|
+
return decode(typeMappings, input);
|
|
3710
|
+
};
|
|
3711
|
+
|
|
3393
3712
|
decoders.ModerationCheckCompletedEvent = (input?: Record<string, any>) => {
|
|
3394
3713
|
const typeMappings: TypeMapping = {
|
|
3395
3714
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -3434,6 +3753,17 @@ decoders.ModerationFlaggedEvent = (input?: Record<string, any>) => {
|
|
|
3434
3753
|
return decode(typeMappings, input);
|
|
3435
3754
|
};
|
|
3436
3755
|
|
|
3756
|
+
decoders.ModerationImageAnalysisCompleteEvent = (
|
|
3757
|
+
input?: Record<string, any>,
|
|
3758
|
+
) => {
|
|
3759
|
+
const typeMappings: TypeMapping = {
|
|
3760
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3761
|
+
|
|
3762
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
3763
|
+
};
|
|
3764
|
+
return decode(typeMappings, input);
|
|
3765
|
+
};
|
|
3766
|
+
|
|
3437
3767
|
decoders.ModerationMarkReviewedEvent = (input?: Record<string, any>) => {
|
|
3438
3768
|
const typeMappings: TypeMapping = {
|
|
3439
3769
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -3447,6 +3777,15 @@ decoders.ModerationMarkReviewedEvent = (input?: Record<string, any>) => {
|
|
|
3447
3777
|
return decode(typeMappings, input);
|
|
3448
3778
|
};
|
|
3449
3779
|
|
|
3780
|
+
decoders.ModerationQueueResponse = (input?: Record<string, any>) => {
|
|
3781
|
+
const typeMappings: TypeMapping = {
|
|
3782
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3783
|
+
|
|
3784
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
3785
|
+
};
|
|
3786
|
+
return decode(typeMappings, input);
|
|
3787
|
+
};
|
|
3788
|
+
|
|
3450
3789
|
decoders.ModerationRuleV2Response = (input?: Record<string, any>) => {
|
|
3451
3790
|
const typeMappings: TypeMapping = {
|
|
3452
3791
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -3465,6 +3804,17 @@ decoders.ModerationRulesTriggeredEvent = (input?: Record<string, any>) => {
|
|
|
3465
3804
|
return decode(typeMappings, input);
|
|
3466
3805
|
};
|
|
3467
3806
|
|
|
3807
|
+
decoders.ModerationTextAnalysisCompleteEvent = (
|
|
3808
|
+
input?: Record<string, any>,
|
|
3809
|
+
) => {
|
|
3810
|
+
const typeMappings: TypeMapping = {
|
|
3811
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3812
|
+
|
|
3813
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
3814
|
+
};
|
|
3815
|
+
return decode(typeMappings, input);
|
|
3816
|
+
};
|
|
3817
|
+
|
|
3468
3818
|
decoders.MuteChannelResponse = (input?: Record<string, any>) => {
|
|
3469
3819
|
const typeMappings: TypeMapping = {
|
|
3470
3820
|
channel_mutes: { type: 'ChannelMute', isSingle: false },
|
|
@@ -3660,6 +4010,62 @@ decoders.PinActivityResponse = (input?: Record<string, any>) => {
|
|
|
3660
4010
|
return decode(typeMappings, input);
|
|
3661
4011
|
};
|
|
3662
4012
|
|
|
4013
|
+
decoders.PolicyTestResult = (input?: Record<string, any>) => {
|
|
4014
|
+
const typeMappings: TypeMapping = {
|
|
4015
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4016
|
+
};
|
|
4017
|
+
return decode(typeMappings, input);
|
|
4018
|
+
};
|
|
4019
|
+
|
|
4020
|
+
decoders.PolicyTestRun = (input?: Record<string, any>) => {
|
|
4021
|
+
const typeMappings: TypeMapping = {
|
|
4022
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4023
|
+
|
|
4024
|
+
completed_at: { type: 'DatetimeType', isSingle: true },
|
|
4025
|
+
|
|
4026
|
+
config_updated_at: { type: 'DatetimeType', isSingle: true },
|
|
4027
|
+
|
|
4028
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
4029
|
+
};
|
|
4030
|
+
return decode(typeMappings, input);
|
|
4031
|
+
};
|
|
4032
|
+
|
|
4033
|
+
decoders.PolicyTestRunResponse = (input?: Record<string, any>) => {
|
|
4034
|
+
const typeMappings: TypeMapping = {
|
|
4035
|
+
results: { type: 'PolicyTestResult', isSingle: false },
|
|
4036
|
+
|
|
4037
|
+
run: { type: 'PolicyTestRun', isSingle: true },
|
|
4038
|
+
};
|
|
4039
|
+
return decode(typeMappings, input);
|
|
4040
|
+
};
|
|
4041
|
+
|
|
4042
|
+
decoders.PolicyTestSet = (input?: Record<string, any>) => {
|
|
4043
|
+
const typeMappings: TypeMapping = {
|
|
4044
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4045
|
+
|
|
4046
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
4047
|
+
|
|
4048
|
+
last_run: { type: 'PolicyTestRun', isSingle: true },
|
|
4049
|
+
};
|
|
4050
|
+
return decode(typeMappings, input);
|
|
4051
|
+
};
|
|
4052
|
+
|
|
4053
|
+
decoders.PolicyTestSetListResponse = (input?: Record<string, any>) => {
|
|
4054
|
+
const typeMappings: TypeMapping = {
|
|
4055
|
+
sets: { type: 'PolicyTestSet', isSingle: false },
|
|
4056
|
+
};
|
|
4057
|
+
return decode(typeMappings, input);
|
|
4058
|
+
};
|
|
4059
|
+
|
|
4060
|
+
decoders.PolicyTestSetResponse = (input?: Record<string, any>) => {
|
|
4061
|
+
const typeMappings: TypeMapping = {
|
|
4062
|
+
recent_runs: { type: 'PolicyTestRun', isSingle: false },
|
|
4063
|
+
|
|
4064
|
+
set: { type: 'PolicyTestSet', isSingle: true },
|
|
4065
|
+
};
|
|
4066
|
+
return decode(typeMappings, input);
|
|
4067
|
+
};
|
|
4068
|
+
|
|
3663
4069
|
decoders.PollResponse = (input?: Record<string, any>) => {
|
|
3664
4070
|
const typeMappings: TypeMapping = {
|
|
3665
4071
|
poll: { type: 'PollResponseData', isSingle: true },
|
|
@@ -3793,6 +4199,13 @@ decoders.QueryActivityReactionsResponse = (input?: Record<string, any>) => {
|
|
|
3793
4199
|
return decode(typeMappings, input);
|
|
3794
4200
|
};
|
|
3795
4201
|
|
|
4202
|
+
decoders.QueryActivitySharesResponse = (input?: Record<string, any>) => {
|
|
4203
|
+
const typeMappings: TypeMapping = {
|
|
4204
|
+
shares: { type: 'ShareResponse', isSingle: false },
|
|
4205
|
+
};
|
|
4206
|
+
return decode(typeMappings, input);
|
|
4207
|
+
};
|
|
4208
|
+
|
|
3796
4209
|
decoders.QueryAppealsResponse = (input?: Record<string, any>) => {
|
|
3797
4210
|
const typeMappings: TypeMapping = {
|
|
3798
4211
|
items: { type: 'AppealItemResponse', isSingle: false },
|
|
@@ -3999,6 +4412,13 @@ decoders.QueryFutureChannelBansResponse = (input?: Record<string, any>) => {
|
|
|
3999
4412
|
return decode(typeMappings, input);
|
|
4000
4413
|
};
|
|
4001
4414
|
|
|
4415
|
+
decoders.QueryLabelResultsResponse = (input?: Record<string, any>) => {
|
|
4416
|
+
const typeMappings: TypeMapping = {
|
|
4417
|
+
label_results: { type: 'LabelResultResponse', isSingle: false },
|
|
4418
|
+
};
|
|
4419
|
+
return decode(typeMappings, input);
|
|
4420
|
+
};
|
|
4421
|
+
|
|
4002
4422
|
decoders.QueryMembershipLevelsResponse = (input?: Record<string, any>) => {
|
|
4003
4423
|
const typeMappings: TypeMapping = {
|
|
4004
4424
|
membership_levels: { type: 'MembershipLevelResponse', isSingle: false },
|
|
@@ -4118,6 +4538,13 @@ decoders.QueryUsersResponse = (input?: Record<string, any>) => {
|
|
|
4118
4538
|
return decode(typeMappings, input);
|
|
4119
4539
|
};
|
|
4120
4540
|
|
|
4541
|
+
decoders.QueueResponse = (input?: Record<string, any>) => {
|
|
4542
|
+
const typeMappings: TypeMapping = {
|
|
4543
|
+
queue: { type: 'ModerationQueueResponse', isSingle: true },
|
|
4544
|
+
};
|
|
4545
|
+
return decode(typeMappings, input);
|
|
4546
|
+
};
|
|
4547
|
+
|
|
4121
4548
|
decoders.Reaction = (input?: Record<string, any>) => {
|
|
4122
4549
|
const typeMappings: TypeMapping = {
|
|
4123
4550
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -4407,7 +4834,7 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
|
|
|
4407
4834
|
|
|
4408
4835
|
assigned_to: { type: 'UserResponse', isSingle: true },
|
|
4409
4836
|
|
|
4410
|
-
call: { type: '
|
|
4837
|
+
call: { type: 'ModerationCallResponse', isSingle: true },
|
|
4411
4838
|
|
|
4412
4839
|
entity_creator: { type: 'EntityCreatorResponse', isSingle: true },
|
|
4413
4840
|
|
|
@@ -4417,7 +4844,7 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
|
|
|
4417
4844
|
|
|
4418
4845
|
feeds_v3_comment: { type: 'FeedsV3CommentResponse', isSingle: true },
|
|
4419
4846
|
|
|
4420
|
-
message: { type: '
|
|
4847
|
+
message: { type: 'ChatMessageResponse', isSingle: true },
|
|
4421
4848
|
|
|
4422
4849
|
reaction: { type: 'Reaction', isSingle: true },
|
|
4423
4850
|
};
|
|
@@ -4509,14 +4936,14 @@ decoders.SearchResultMessage = (input?: Record<string, any>) => {
|
|
|
4509
4936
|
|
|
4510
4937
|
pinned_at: { type: 'DatetimeType', isSingle: true },
|
|
4511
4938
|
|
|
4939
|
+
mentioned_groups: { type: 'UserGroupResponse', isSingle: false },
|
|
4940
|
+
|
|
4512
4941
|
thread_participants: { type: 'UserResponse', isSingle: false },
|
|
4513
4942
|
|
|
4514
4943
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
4515
4944
|
|
|
4516
4945
|
draft: { type: 'DraftResponse', isSingle: true },
|
|
4517
4946
|
|
|
4518
|
-
member: { type: 'ChannelMemberResponse', isSingle: true },
|
|
4519
|
-
|
|
4520
4947
|
pinned_by: { type: 'UserResponse', isSingle: true },
|
|
4521
4948
|
|
|
4522
4949
|
poll: { type: 'PollResponseData', isSingle: true },
|
|
@@ -4532,6 +4959,13 @@ decoders.SearchResultMessage = (input?: Record<string, any>) => {
|
|
|
4532
4959
|
return decode(typeMappings, input);
|
|
4533
4960
|
};
|
|
4534
4961
|
|
|
4962
|
+
decoders.SearchRolesResponse = (input?: Record<string, any>) => {
|
|
4963
|
+
const typeMappings: TypeMapping = {
|
|
4964
|
+
roles: { type: 'Role', isSingle: false },
|
|
4965
|
+
};
|
|
4966
|
+
return decode(typeMappings, input);
|
|
4967
|
+
};
|
|
4968
|
+
|
|
4535
4969
|
decoders.SearchUserGroupsResponse = (input?: Record<string, any>) => {
|
|
4536
4970
|
const typeMappings: TypeMapping = {
|
|
4537
4971
|
user_groups: { type: 'UserGroupResponse', isSingle: false },
|
|
@@ -4571,6 +5005,8 @@ decoders.SegmentTargetResponse = (input?: Record<string, any>) => {
|
|
|
4571
5005
|
decoders.SendMessageResponse = (input?: Record<string, any>) => {
|
|
4572
5006
|
const typeMappings: TypeMapping = {
|
|
4573
5007
|
message: { type: 'MessageResponse', isSingle: true },
|
|
5008
|
+
|
|
5009
|
+
channel_context: { type: 'ChannelContextResponse', isSingle: true },
|
|
4574
5010
|
};
|
|
4575
5011
|
return decode(typeMappings, input);
|
|
4576
5012
|
};
|
|
@@ -4598,6 +5034,26 @@ decoders.SetRetentionPolicyResponse = (input?: Record<string, any>) => {
|
|
|
4598
5034
|
return decode(typeMappings, input);
|
|
4599
5035
|
};
|
|
4600
5036
|
|
|
5037
|
+
decoders.SetupSession = (input?: Record<string, any>) => {
|
|
5038
|
+
const typeMappings: TypeMapping = {
|
|
5039
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
5040
|
+
|
|
5041
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
5042
|
+
|
|
5043
|
+
completed_at: { type: 'DatetimeType', isSingle: true },
|
|
5044
|
+
};
|
|
5045
|
+
return decode(typeMappings, input);
|
|
5046
|
+
};
|
|
5047
|
+
|
|
5048
|
+
decoders.ShareResponse = (input?: Record<string, any>) => {
|
|
5049
|
+
const typeMappings: TypeMapping = {
|
|
5050
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
5051
|
+
|
|
5052
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
5053
|
+
};
|
|
5054
|
+
return decode(typeMappings, input);
|
|
5055
|
+
};
|
|
5056
|
+
|
|
4601
5057
|
decoders.SharedLocationResponse = (input?: Record<string, any>) => {
|
|
4602
5058
|
const typeMappings: TypeMapping = {
|
|
4603
5059
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -4785,6 +5241,20 @@ decoders.ThreadedCommentResponse = (input?: Record<string, any>) => {
|
|
|
4785
5241
|
return decode(typeMappings, input);
|
|
4786
5242
|
};
|
|
4787
5243
|
|
|
5244
|
+
decoders.TranslateActivityResponse = (input?: Record<string, any>) => {
|
|
5245
|
+
const typeMappings: TypeMapping = {
|
|
5246
|
+
activity: { type: 'ActivityResponse', isSingle: true },
|
|
5247
|
+
};
|
|
5248
|
+
return decode(typeMappings, input);
|
|
5249
|
+
};
|
|
5250
|
+
|
|
5251
|
+
decoders.TranslateCommentResponse = (input?: Record<string, any>) => {
|
|
5252
|
+
const typeMappings: TypeMapping = {
|
|
5253
|
+
comment: { type: 'CommentResponse', isSingle: true },
|
|
5254
|
+
};
|
|
5255
|
+
return decode(typeMappings, input);
|
|
5256
|
+
};
|
|
5257
|
+
|
|
4788
5258
|
decoders.TruncateChannelResponse = (input?: Record<string, any>) => {
|
|
4789
5259
|
const typeMappings: TypeMapping = {
|
|
4790
5260
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
@@ -5085,6 +5555,13 @@ decoders.UpdateSIPTrunkResponse = (input?: Record<string, any>) => {
|
|
|
5085
5555
|
return decode(typeMappings, input);
|
|
5086
5556
|
};
|
|
5087
5557
|
|
|
5558
|
+
decoders.UpdateSegmentResponse = (input?: Record<string, any>) => {
|
|
5559
|
+
const typeMappings: TypeMapping = {
|
|
5560
|
+
segment: { type: 'SegmentResponse', isSingle: true },
|
|
5561
|
+
};
|
|
5562
|
+
return decode(typeMappings, input);
|
|
5563
|
+
};
|
|
5564
|
+
|
|
5088
5565
|
decoders.UpdateThreadPartialResponse = (input?: Record<string, any>) => {
|
|
5089
5566
|
const typeMappings: TypeMapping = {
|
|
5090
5567
|
thread: { type: 'ThreadResponse', isSingle: true },
|
|
@@ -5173,6 +5650,13 @@ decoders.UpsertPushTemplateResponse = (input?: Record<string, any>) => {
|
|
|
5173
5650
|
return decode(typeMappings, input);
|
|
5174
5651
|
};
|
|
5175
5652
|
|
|
5653
|
+
decoders.UpsertSetupSessionResponse = (input?: Record<string, any>) => {
|
|
5654
|
+
const typeMappings: TypeMapping = {
|
|
5655
|
+
setup_session: { type: 'SetupSession', isSingle: true },
|
|
5656
|
+
};
|
|
5657
|
+
return decode(typeMappings, input);
|
|
5658
|
+
};
|
|
5659
|
+
|
|
5176
5660
|
decoders.UserBannedEvent = (input?: Record<string, any>) => {
|
|
5177
5661
|
const typeMappings: TypeMapping = {
|
|
5178
5662
|
created_at: { type: 'DatetimeType', isSingle: true },
|