@stream-io/node-sdk 0.7.62 → 0.7.63

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.
@@ -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 },
@@ -1393,6 +1443,13 @@ decoders.ChannelMemberResponse = (input?: Record<string, any>) => {
1393
1443
  return decode(typeMappings, input);
1394
1444
  };
1395
1445
 
1446
+ decoders.ChannelMetadata = (input?: Record<string, any>) => {
1447
+ const typeMappings: TypeMapping = {
1448
+ last_message_at: { type: 'DatetimeType', isSingle: true },
1449
+ };
1450
+ return decode(typeMappings, input);
1451
+ };
1452
+
1396
1453
  decoders.ChannelMute = (input?: Record<string, any>) => {
1397
1454
  const typeMappings: TypeMapping = {
1398
1455
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1616,6 +1673,131 @@ decoders.ChatActivityStatsResponse = (input?: Record<string, any>) => {
1616
1673
  return decode(typeMappings, input);
1617
1674
  };
1618
1675
 
1676
+ decoders.ChatDraftPayloadResponse = (input?: Record<string, any>) => {
1677
+ const typeMappings: TypeMapping = {
1678
+ mentioned_users: { type: 'UserResponse', isSingle: false },
1679
+ };
1680
+ return decode(typeMappings, input);
1681
+ };
1682
+
1683
+ decoders.ChatDraftResponse = (input?: Record<string, any>) => {
1684
+ const typeMappings: TypeMapping = {
1685
+ created_at: { type: 'DatetimeType', isSingle: true },
1686
+
1687
+ message: { type: 'ChatDraftPayloadResponse', isSingle: true },
1688
+
1689
+ parent_message: { type: 'ChatMessageResponse', isSingle: true },
1690
+
1691
+ quoted_message: { type: 'ChatMessageResponse', isSingle: true },
1692
+ };
1693
+ return decode(typeMappings, input);
1694
+ };
1695
+
1696
+ decoders.ChatMessageResponse = (input?: Record<string, any>) => {
1697
+ const typeMappings: TypeMapping = {
1698
+ created_at: { type: 'DatetimeType', isSingle: true },
1699
+
1700
+ updated_at: { type: 'DatetimeType', isSingle: true },
1701
+
1702
+ latest_reactions: { type: 'ChatReactionResponse', isSingle: false },
1703
+
1704
+ mentioned_users: { type: 'UserResponse', isSingle: false },
1705
+
1706
+ own_reactions: { type: 'ChatReactionResponse', isSingle: false },
1707
+
1708
+ user: { type: 'UserResponse', isSingle: true },
1709
+
1710
+ deleted_at: { type: 'DatetimeType', isSingle: true },
1711
+
1712
+ message_text_updated_at: { type: 'DatetimeType', isSingle: true },
1713
+
1714
+ pin_expires: { type: 'DatetimeType', isSingle: true },
1715
+
1716
+ pinned_at: { type: 'DatetimeType', isSingle: true },
1717
+
1718
+ mentioned_groups: { type: 'UserGroupResponse', isSingle: false },
1719
+
1720
+ thread_participants: { type: 'UserResponse', isSingle: false },
1721
+
1722
+ draft: { type: 'ChatDraftResponse', isSingle: true },
1723
+
1724
+ pinned_by: { type: 'UserResponse', isSingle: true },
1725
+
1726
+ poll: { type: 'PollResponseData', isSingle: true },
1727
+
1728
+ quoted_message: { type: 'ChatMessageResponse', isSingle: true },
1729
+
1730
+ reaction_groups: { type: 'ChatReactionGroupResponse', isSingle: false },
1731
+
1732
+ reminder: { type: 'ChatReminderResponseData', isSingle: true },
1733
+
1734
+ shared_location: { type: 'ChatSharedLocationResponseData', isSingle: true },
1735
+ };
1736
+ return decode(typeMappings, input);
1737
+ };
1738
+
1739
+ decoders.ChatReactionGroupResponse = (input?: Record<string, any>) => {
1740
+ const typeMappings: TypeMapping = {
1741
+ first_reaction_at: { type: 'DatetimeType', isSingle: true },
1742
+
1743
+ last_reaction_at: { type: 'DatetimeType', isSingle: true },
1744
+
1745
+ latest_reactions_by: {
1746
+ type: 'ChatReactionGroupUserResponse',
1747
+ isSingle: false,
1748
+ },
1749
+ };
1750
+ return decode(typeMappings, input);
1751
+ };
1752
+
1753
+ decoders.ChatReactionGroupUserResponse = (input?: Record<string, any>) => {
1754
+ const typeMappings: TypeMapping = {
1755
+ created_at: { type: 'DatetimeType', isSingle: true },
1756
+
1757
+ user: { type: 'UserResponse', isSingle: true },
1758
+ };
1759
+ return decode(typeMappings, input);
1760
+ };
1761
+
1762
+ decoders.ChatReactionResponse = (input?: Record<string, any>) => {
1763
+ const typeMappings: TypeMapping = {
1764
+ created_at: { type: 'DatetimeType', isSingle: true },
1765
+
1766
+ updated_at: { type: 'DatetimeType', isSingle: true },
1767
+
1768
+ user: { type: 'UserResponse', isSingle: true },
1769
+ };
1770
+ return decode(typeMappings, input);
1771
+ };
1772
+
1773
+ decoders.ChatReminderResponseData = (input?: Record<string, any>) => {
1774
+ const typeMappings: TypeMapping = {
1775
+ created_at: { type: 'DatetimeType', isSingle: true },
1776
+
1777
+ updated_at: { type: 'DatetimeType', isSingle: true },
1778
+
1779
+ remind_at: { type: 'DatetimeType', isSingle: true },
1780
+
1781
+ message: { type: 'ChatMessageResponse', isSingle: true },
1782
+
1783
+ user: { type: 'UserResponse', isSingle: true },
1784
+ };
1785
+ return decode(typeMappings, input);
1786
+ };
1787
+
1788
+ decoders.ChatSharedLocationResponseData = (input?: Record<string, any>) => {
1789
+ const typeMappings: TypeMapping = {
1790
+ created_at: { type: 'DatetimeType', isSingle: true },
1791
+
1792
+ updated_at: { type: 'DatetimeType', isSingle: true },
1793
+
1794
+ end_at: { type: 'DatetimeType', isSingle: true },
1795
+
1796
+ message: { type: 'ChatMessageResponse', isSingle: true },
1797
+ };
1798
+ return decode(typeMappings, input);
1799
+ };
1800
+
1619
1801
  decoders.CheckResponse = (input?: Record<string, any>) => {
1620
1802
  const typeMappings: TypeMapping = {
1621
1803
  item: { type: 'ReviewQueueItemResponse', isSingle: true },
@@ -1623,6 +1805,15 @@ decoders.CheckResponse = (input?: Record<string, any>) => {
1623
1805
  return decode(typeMappings, input);
1624
1806
  };
1625
1807
 
1808
+ decoders.ClientEvent = (input?: Record<string, any>) => {
1809
+ const typeMappings: TypeMapping = {
1810
+ previously_connected_timestamp: { type: 'DatetimeType', isSingle: true },
1811
+
1812
+ timestamp: { type: 'DatetimeType', isSingle: true },
1813
+ };
1814
+ return decode(typeMappings, input);
1815
+ };
1816
+
1626
1817
  decoders.ClosedCaptionEvent = (input?: Record<string, any>) => {
1627
1818
  const typeMappings: TypeMapping = {
1628
1819
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1804,6 +1995,13 @@ decoders.CreateCallTypeResponse = (input?: Record<string, any>) => {
1804
1995
  return decode(typeMappings, input);
1805
1996
  };
1806
1997
 
1998
+ decoders.CreateCampaignResponse = (input?: Record<string, any>) => {
1999
+ const typeMappings: TypeMapping = {
2000
+ campaign: { type: 'CampaignResponse', isSingle: true },
2001
+ };
2002
+ return decode(typeMappings, input);
2003
+ };
2004
+
1807
2005
  decoders.CreateChannelTypeResponse = (input?: Record<string, any>) => {
1808
2006
  const typeMappings: TypeMapping = {
1809
2007
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1892,6 +2090,13 @@ decoders.CreateSIPTrunkResponse = (input?: Record<string, any>) => {
1892
2090
  return decode(typeMappings, input);
1893
2091
  };
1894
2092
 
2093
+ decoders.CreateSegmentResponse = (input?: Record<string, any>) => {
2094
+ const typeMappings: TypeMapping = {
2095
+ segment: { type: 'SegmentResponse', isSingle: true },
2096
+ };
2097
+ return decode(typeMappings, input);
2098
+ };
2099
+
1895
2100
  decoders.CreateUserGroupResponse = (input?: Record<string, any>) => {
1896
2101
  const typeMappings: TypeMapping = {
1897
2102
  user_group: { type: 'UserGroupResponse', isSingle: true },
@@ -2045,15 +2250,6 @@ decoders.EgressResponse = (input?: Record<string, any>) => {
2045
2250
  return decode(typeMappings, input);
2046
2251
  };
2047
2252
 
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
2253
  decoders.EnrichedCollectionResponse = (input?: Record<string, any>) => {
2058
2254
  const typeMappings: TypeMapping = {
2059
2255
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2315,11 +2511,35 @@ decoders.FeedViewResponse = (input?: Record<string, any>) => {
2315
2511
  return decode(typeMappings, input);
2316
2512
  };
2317
2513
 
2318
- decoders.FeedsReactionGroup = (input?: Record<string, any>) => {
2514
+ decoders.FeedsBookmarkResponse = (input?: Record<string, any>) => {
2319
2515
  const typeMappings: TypeMapping = {
2320
- first_reaction_at: { type: 'DatetimeType', isSingle: true },
2516
+ created_at: { type: 'DatetimeType', isSingle: true },
2321
2517
 
2322
- last_reaction_at: { type: 'DatetimeType', isSingle: true },
2518
+ updated_at: { type: 'DatetimeType', isSingle: true },
2519
+
2520
+ user: { type: 'UserResponse', isSingle: true },
2521
+ };
2522
+ return decode(typeMappings, input);
2523
+ };
2524
+
2525
+ decoders.FeedsEnrichedCollectionResponse = (input?: Record<string, any>) => {
2526
+ const typeMappings: TypeMapping = {
2527
+ created_at: { type: 'DatetimeType', isSingle: true },
2528
+
2529
+ updated_at: { type: 'DatetimeType', isSingle: true },
2530
+ };
2531
+ return decode(typeMappings, input);
2532
+ };
2533
+
2534
+ decoders.FeedsFeedResponse = (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
+ created_by: { type: 'UserResponse', isSingle: true },
2541
+
2542
+ deleted_at: { type: 'DatetimeType', isSingle: true },
2323
2543
  };
2324
2544
  return decode(typeMappings, input);
2325
2545
  };
@@ -2344,6 +2564,15 @@ decoders.FeedsReactionResponse = (input?: Record<string, any>) => {
2344
2564
  return decode(typeMappings, input);
2345
2565
  };
2346
2566
 
2567
+ decoders.FeedsShareResponse = (input?: Record<string, any>) => {
2568
+ const typeMappings: TypeMapping = {
2569
+ created_at: { type: 'DatetimeType', isSingle: true },
2570
+
2571
+ user: { type: 'UserResponse', isSingle: true },
2572
+ };
2573
+ return decode(typeMappings, input);
2574
+ };
2575
+
2347
2576
  decoders.FeedsV3ActivityResponse = (input?: Record<string, any>) => {
2348
2577
  const typeMappings: TypeMapping = {
2349
2578
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2352,11 +2581,17 @@ decoders.FeedsV3ActivityResponse = (input?: Record<string, any>) => {
2352
2581
 
2353
2582
  comments: { type: 'FeedsV3CommentResponse', isSingle: false },
2354
2583
 
2584
+ latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
2585
+
2355
2586
  mentioned_users: { type: 'UserResponse', isSingle: false },
2356
2587
 
2357
- collections: { type: 'EnrichedCollection', isSingle: false },
2588
+ own_bookmarks: { type: 'FeedsBookmarkResponse', isSingle: false },
2358
2589
 
2359
- reaction_groups: { type: 'FeedsReactionGroup', isSingle: false },
2590
+ own_reactions: { type: 'FeedsReactionResponse', isSingle: false },
2591
+
2592
+ collections: { type: 'FeedsEnrichedCollectionResponse', isSingle: false },
2593
+
2594
+ reaction_groups: { type: 'FeedsReactionGroupResponse', isSingle: false },
2360
2595
 
2361
2596
  user: { type: 'UserResponse', isSingle: true },
2362
2597
 
@@ -2365,6 +2600,16 @@ decoders.FeedsV3ActivityResponse = (input?: Record<string, any>) => {
2365
2600
  edited_at: { type: 'DatetimeType', isSingle: true },
2366
2601
 
2367
2602
  expires_at: { type: 'DatetimeType', isSingle: true },
2603
+
2604
+ friend_reactions: { type: 'FeedsReactionResponse', isSingle: false },
2605
+
2606
+ latest_shares: { type: 'FeedsShareResponse', isSingle: false },
2607
+
2608
+ current_feed: { type: 'FeedsFeedResponse', isSingle: true },
2609
+
2610
+ parent: { type: 'FeedsV3ActivityResponse', isSingle: true },
2611
+
2612
+ poll: { type: 'PollResponseData', isSingle: true },
2368
2613
  };
2369
2614
  return decode(typeMappings, input);
2370
2615
  };
@@ -2377,11 +2622,17 @@ decoders.FeedsV3CommentResponse = (input?: Record<string, any>) => {
2377
2622
 
2378
2623
  mentioned_users: { type: 'UserResponse', isSingle: false },
2379
2624
 
2625
+ own_reactions: { type: 'FeedsReactionResponse', isSingle: false },
2626
+
2380
2627
  user: { type: 'UserResponse', isSingle: true },
2381
2628
 
2382
2629
  deleted_at: { type: 'DatetimeType', isSingle: true },
2383
2630
 
2384
2631
  edited_at: { type: 'DatetimeType', isSingle: true },
2632
+
2633
+ latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
2634
+
2635
+ reaction_groups: { type: 'FeedsReactionGroupResponse', isSingle: false },
2385
2636
  };
2386
2637
  return decode(typeMappings, input);
2387
2638
  };
@@ -2669,15 +2920,6 @@ decoders.GetDraftResponse = (input?: Record<string, any>) => {
2669
2920
  return decode(typeMappings, input);
2670
2921
  };
2671
2922
 
2672
- decoders.GetExternalStorageResponse = (input?: Record<string, any>) => {
2673
- const typeMappings: TypeMapping = {
2674
- created_at: { type: 'DatetimeType', isSingle: true },
2675
-
2676
- updated_at: { type: 'DatetimeType', isSingle: true },
2677
- };
2678
- return decode(typeMappings, input);
2679
- };
2680
-
2681
2923
  decoders.GetFeedGroupResponse = (input?: Record<string, any>) => {
2682
2924
  const typeMappings: TypeMapping = {
2683
2925
  feed_group: { type: 'FeedGroupResponse', isSingle: true },
@@ -2839,6 +3081,13 @@ decoders.GetSegmentResponse = (input?: Record<string, any>) => {
2839
3081
  return decode(typeMappings, input);
2840
3082
  };
2841
3083
 
3084
+ decoders.GetSetupSessionResponse = (input?: Record<string, any>) => {
3085
+ const typeMappings: TypeMapping = {
3086
+ setup_session: { type: 'SetupSession', isSingle: true },
3087
+ };
3088
+ return decode(typeMappings, input);
3089
+ };
3090
+
2842
3091
  decoders.GetTaskResponse = (input?: Record<string, any>) => {
2843
3092
  const typeMappings: TypeMapping = {
2844
3093
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2869,6 +3118,20 @@ decoders.GoLiveResponse = (input?: Record<string, any>) => {
2869
3118
  return decode(typeMappings, input);
2870
3119
  };
2871
3120
 
3121
+ decoders.GroupedChannelsBucket = (input?: Record<string, any>) => {
3122
+ const typeMappings: TypeMapping = {
3123
+ channels: { type: 'ChannelStateResponseFields', isSingle: false },
3124
+ };
3125
+ return decode(typeMappings, input);
3126
+ };
3127
+
3128
+ decoders.GroupedQueryChannelsResponse = (input?: Record<string, any>) => {
3129
+ const typeMappings: TypeMapping = {
3130
+ groups: { type: 'GroupedChannelsBucket', isSingle: false },
3131
+ };
3132
+ return decode(typeMappings, input);
3133
+ };
3134
+
2872
3135
  decoders.ImportTask = (input?: Record<string, any>) => {
2873
3136
  const typeMappings: TypeMapping = {
2874
3137
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2928,6 +3191,13 @@ decoders.KickedUserEvent = (input?: Record<string, any>) => {
2928
3191
  return decode(typeMappings, input);
2929
3192
  };
2930
3193
 
3194
+ decoders.LabelResultResponse = (input?: Record<string, any>) => {
3195
+ const typeMappings: TypeMapping = {
3196
+ created_at: { type: 'DatetimeType', isSingle: true },
3197
+ };
3198
+ return decode(typeMappings, input);
3199
+ };
3200
+
2931
3201
  decoders.ListBlockListResponse = (input?: Record<string, any>) => {
2932
3202
  const typeMappings: TypeMapping = {
2933
3203
  blocklists: { type: 'BlockListResponse', isSingle: false },
@@ -2998,6 +3268,13 @@ decoders.ListPushProvidersResponse = (input?: Record<string, any>) => {
2998
3268
  return decode(typeMappings, input);
2999
3269
  };
3000
3270
 
3271
+ decoders.ListQueuesResponse = (input?: Record<string, any>) => {
3272
+ const typeMappings: TypeMapping = {
3273
+ queues: { type: 'ModerationQueueResponse', isSingle: false },
3274
+ };
3275
+ return decode(typeMappings, input);
3276
+ };
3277
+
3001
3278
  decoders.ListRecordingsResponse = (input?: Record<string, any>) => {
3002
3279
  const typeMappings: TypeMapping = {
3003
3280
  recordings: { type: 'CallRecording', isSingle: false },
@@ -3280,12 +3557,12 @@ decoders.MessageResponse = (input?: Record<string, any>) => {
3280
3557
 
3281
3558
  pinned_at: { type: 'DatetimeType', isSingle: true },
3282
3559
 
3560
+ mentioned_groups: { type: 'UserGroupResponse', isSingle: false },
3561
+
3283
3562
  thread_participants: { type: 'UserResponse', isSingle: false },
3284
3563
 
3285
3564
  draft: { type: 'DraftResponse', isSingle: true },
3286
3565
 
3287
- member: { type: 'ChannelMemberResponse', isSingle: true },
3288
-
3289
3566
  pinned_by: { type: 'UserResponse', isSingle: true },
3290
3567
 
3291
3568
  poll: { type: 'PollResponseData', isSingle: true },
@@ -3369,12 +3646,12 @@ decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
3369
3646
 
3370
3647
  pinned_at: { type: 'DatetimeType', isSingle: true },
3371
3648
 
3649
+ mentioned_groups: { type: 'UserGroupResponse', isSingle: false },
3650
+
3372
3651
  thread_participants: { type: 'UserResponse', isSingle: false },
3373
3652
 
3374
3653
  draft: { type: 'DraftResponse', isSingle: true },
3375
3654
 
3376
- member: { type: 'ChannelMemberResponse', isSingle: true },
3377
-
3378
3655
  pinned_by: { type: 'UserResponse', isSingle: true },
3379
3656
 
3380
3657
  poll: { type: 'PollResponseData', isSingle: true },
@@ -3390,6 +3667,21 @@ decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
3390
3667
  return decode(typeMappings, input);
3391
3668
  };
3392
3669
 
3670
+ decoders.ModerationCallResponse = (input?: Record<string, any>) => {
3671
+ const typeMappings: TypeMapping = {
3672
+ created_at: { type: 'DatetimeType', isSingle: true },
3673
+
3674
+ updated_at: { type: 'DatetimeType', isSingle: true },
3675
+
3676
+ ended_at: { type: 'DatetimeType', isSingle: true },
3677
+
3678
+ starts_at: { type: 'DatetimeType', isSingle: true },
3679
+
3680
+ created_by: { type: 'UserResponse', isSingle: true },
3681
+ };
3682
+ return decode(typeMappings, input);
3683
+ };
3684
+
3393
3685
  decoders.ModerationCheckCompletedEvent = (input?: Record<string, any>) => {
3394
3686
  const typeMappings: TypeMapping = {
3395
3687
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -3434,6 +3726,17 @@ decoders.ModerationFlaggedEvent = (input?: Record<string, any>) => {
3434
3726
  return decode(typeMappings, input);
3435
3727
  };
3436
3728
 
3729
+ decoders.ModerationImageAnalysisCompleteEvent = (
3730
+ input?: Record<string, any>,
3731
+ ) => {
3732
+ const typeMappings: TypeMapping = {
3733
+ created_at: { type: 'DatetimeType', isSingle: true },
3734
+
3735
+ received_at: { type: 'DatetimeType', isSingle: true },
3736
+ };
3737
+ return decode(typeMappings, input);
3738
+ };
3739
+
3437
3740
  decoders.ModerationMarkReviewedEvent = (input?: Record<string, any>) => {
3438
3741
  const typeMappings: TypeMapping = {
3439
3742
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -3447,6 +3750,15 @@ decoders.ModerationMarkReviewedEvent = (input?: Record<string, any>) => {
3447
3750
  return decode(typeMappings, input);
3448
3751
  };
3449
3752
 
3753
+ decoders.ModerationQueueResponse = (input?: Record<string, any>) => {
3754
+ const typeMappings: TypeMapping = {
3755
+ created_at: { type: 'DatetimeType', isSingle: true },
3756
+
3757
+ updated_at: { type: 'DatetimeType', isSingle: true },
3758
+ };
3759
+ return decode(typeMappings, input);
3760
+ };
3761
+
3450
3762
  decoders.ModerationRuleV2Response = (input?: Record<string, any>) => {
3451
3763
  const typeMappings: TypeMapping = {
3452
3764
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -3465,6 +3777,17 @@ decoders.ModerationRulesTriggeredEvent = (input?: Record<string, any>) => {
3465
3777
  return decode(typeMappings, input);
3466
3778
  };
3467
3779
 
3780
+ decoders.ModerationTextAnalysisCompleteEvent = (
3781
+ input?: Record<string, any>,
3782
+ ) => {
3783
+ const typeMappings: TypeMapping = {
3784
+ created_at: { type: 'DatetimeType', isSingle: true },
3785
+
3786
+ received_at: { type: 'DatetimeType', isSingle: true },
3787
+ };
3788
+ return decode(typeMappings, input);
3789
+ };
3790
+
3468
3791
  decoders.MuteChannelResponse = (input?: Record<string, any>) => {
3469
3792
  const typeMappings: TypeMapping = {
3470
3793
  channel_mutes: { type: 'ChannelMute', isSingle: false },
@@ -3793,6 +4116,13 @@ decoders.QueryActivityReactionsResponse = (input?: Record<string, any>) => {
3793
4116
  return decode(typeMappings, input);
3794
4117
  };
3795
4118
 
4119
+ decoders.QueryActivitySharesResponse = (input?: Record<string, any>) => {
4120
+ const typeMappings: TypeMapping = {
4121
+ shares: { type: 'ShareResponse', isSingle: false },
4122
+ };
4123
+ return decode(typeMappings, input);
4124
+ };
4125
+
3796
4126
  decoders.QueryAppealsResponse = (input?: Record<string, any>) => {
3797
4127
  const typeMappings: TypeMapping = {
3798
4128
  items: { type: 'AppealItemResponse', isSingle: false },
@@ -3999,6 +4329,13 @@ decoders.QueryFutureChannelBansResponse = (input?: Record<string, any>) => {
3999
4329
  return decode(typeMappings, input);
4000
4330
  };
4001
4331
 
4332
+ decoders.QueryLabelResultsResponse = (input?: Record<string, any>) => {
4333
+ const typeMappings: TypeMapping = {
4334
+ label_results: { type: 'LabelResultResponse', isSingle: false },
4335
+ };
4336
+ return decode(typeMappings, input);
4337
+ };
4338
+
4002
4339
  decoders.QueryMembershipLevelsResponse = (input?: Record<string, any>) => {
4003
4340
  const typeMappings: TypeMapping = {
4004
4341
  membership_levels: { type: 'MembershipLevelResponse', isSingle: false },
@@ -4118,6 +4455,13 @@ decoders.QueryUsersResponse = (input?: Record<string, any>) => {
4118
4455
  return decode(typeMappings, input);
4119
4456
  };
4120
4457
 
4458
+ decoders.QueueResponse = (input?: Record<string, any>) => {
4459
+ const typeMappings: TypeMapping = {
4460
+ queue: { type: 'ModerationQueueResponse', isSingle: true },
4461
+ };
4462
+ return decode(typeMappings, input);
4463
+ };
4464
+
4121
4465
  decoders.Reaction = (input?: Record<string, any>) => {
4122
4466
  const typeMappings: TypeMapping = {
4123
4467
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -4407,7 +4751,7 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
4407
4751
 
4408
4752
  assigned_to: { type: 'UserResponse', isSingle: true },
4409
4753
 
4410
- call: { type: 'CallResponse', isSingle: true },
4754
+ call: { type: 'ModerationCallResponse', isSingle: true },
4411
4755
 
4412
4756
  entity_creator: { type: 'EntityCreatorResponse', isSingle: true },
4413
4757
 
@@ -4417,7 +4761,7 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
4417
4761
 
4418
4762
  feeds_v3_comment: { type: 'FeedsV3CommentResponse', isSingle: true },
4419
4763
 
4420
- message: { type: 'MessageResponse', isSingle: true },
4764
+ message: { type: 'ChatMessageResponse', isSingle: true },
4421
4765
 
4422
4766
  reaction: { type: 'Reaction', isSingle: true },
4423
4767
  };
@@ -4509,14 +4853,14 @@ decoders.SearchResultMessage = (input?: Record<string, any>) => {
4509
4853
 
4510
4854
  pinned_at: { type: 'DatetimeType', isSingle: true },
4511
4855
 
4856
+ mentioned_groups: { type: 'UserGroupResponse', isSingle: false },
4857
+
4512
4858
  thread_participants: { type: 'UserResponse', isSingle: false },
4513
4859
 
4514
4860
  channel: { type: 'ChannelResponse', isSingle: true },
4515
4861
 
4516
4862
  draft: { type: 'DraftResponse', isSingle: true },
4517
4863
 
4518
- member: { type: 'ChannelMemberResponse', isSingle: true },
4519
-
4520
4864
  pinned_by: { type: 'UserResponse', isSingle: true },
4521
4865
 
4522
4866
  poll: { type: 'PollResponseData', isSingle: true },
@@ -4532,6 +4876,13 @@ decoders.SearchResultMessage = (input?: Record<string, any>) => {
4532
4876
  return decode(typeMappings, input);
4533
4877
  };
4534
4878
 
4879
+ decoders.SearchRolesResponse = (input?: Record<string, any>) => {
4880
+ const typeMappings: TypeMapping = {
4881
+ roles: { type: 'Role', isSingle: false },
4882
+ };
4883
+ return decode(typeMappings, input);
4884
+ };
4885
+
4535
4886
  decoders.SearchUserGroupsResponse = (input?: Record<string, any>) => {
4536
4887
  const typeMappings: TypeMapping = {
4537
4888
  user_groups: { type: 'UserGroupResponse', isSingle: false },
@@ -4598,6 +4949,26 @@ decoders.SetRetentionPolicyResponse = (input?: Record<string, any>) => {
4598
4949
  return decode(typeMappings, input);
4599
4950
  };
4600
4951
 
4952
+ decoders.SetupSession = (input?: Record<string, any>) => {
4953
+ const typeMappings: TypeMapping = {
4954
+ created_at: { type: 'DatetimeType', isSingle: true },
4955
+
4956
+ updated_at: { type: 'DatetimeType', isSingle: true },
4957
+
4958
+ completed_at: { type: 'DatetimeType', isSingle: true },
4959
+ };
4960
+ return decode(typeMappings, input);
4961
+ };
4962
+
4963
+ decoders.ShareResponse = (input?: Record<string, any>) => {
4964
+ const typeMappings: TypeMapping = {
4965
+ created_at: { type: 'DatetimeType', isSingle: true },
4966
+
4967
+ user: { type: 'UserResponse', isSingle: true },
4968
+ };
4969
+ return decode(typeMappings, input);
4970
+ };
4971
+
4601
4972
  decoders.SharedLocationResponse = (input?: Record<string, any>) => {
4602
4973
  const typeMappings: TypeMapping = {
4603
4974
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -4785,6 +5156,20 @@ decoders.ThreadedCommentResponse = (input?: Record<string, any>) => {
4785
5156
  return decode(typeMappings, input);
4786
5157
  };
4787
5158
 
5159
+ decoders.TranslateActivityResponse = (input?: Record<string, any>) => {
5160
+ const typeMappings: TypeMapping = {
5161
+ activity: { type: 'ActivityResponse', isSingle: true },
5162
+ };
5163
+ return decode(typeMappings, input);
5164
+ };
5165
+
5166
+ decoders.TranslateCommentResponse = (input?: Record<string, any>) => {
5167
+ const typeMappings: TypeMapping = {
5168
+ comment: { type: 'CommentResponse', isSingle: true },
5169
+ };
5170
+ return decode(typeMappings, input);
5171
+ };
5172
+
4788
5173
  decoders.TruncateChannelResponse = (input?: Record<string, any>) => {
4789
5174
  const typeMappings: TypeMapping = {
4790
5175
  channel: { type: 'ChannelResponse', isSingle: true },
@@ -5085,6 +5470,13 @@ decoders.UpdateSIPTrunkResponse = (input?: Record<string, any>) => {
5085
5470
  return decode(typeMappings, input);
5086
5471
  };
5087
5472
 
5473
+ decoders.UpdateSegmentResponse = (input?: Record<string, any>) => {
5474
+ const typeMappings: TypeMapping = {
5475
+ segment: { type: 'SegmentResponse', isSingle: true },
5476
+ };
5477
+ return decode(typeMappings, input);
5478
+ };
5479
+
5088
5480
  decoders.UpdateThreadPartialResponse = (input?: Record<string, any>) => {
5089
5481
  const typeMappings: TypeMapping = {
5090
5482
  thread: { type: 'ThreadResponse', isSingle: true },
@@ -5173,6 +5565,13 @@ decoders.UpsertPushTemplateResponse = (input?: Record<string, any>) => {
5173
5565
  return decode(typeMappings, input);
5174
5566
  };
5175
5567
 
5568
+ decoders.UpsertSetupSessionResponse = (input?: Record<string, any>) => {
5569
+ const typeMappings: TypeMapping = {
5570
+ setup_session: { type: 'SetupSession', isSingle: true },
5571
+ };
5572
+ return decode(typeMappings, input);
5573
+ };
5574
+
5176
5575
  decoders.UserBannedEvent = (input?: Record<string, any>) => {
5177
5576
  const typeMappings: TypeMapping = {
5178
5577
  created_at: { type: 'DatetimeType', isSingle: true },