@stream-io/node-sdk 0.7.40 → 0.7.42

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.
@@ -109,13 +109,6 @@ decoders.ActivityMarkEvent = (input?: Record<string, any>) => {
109
109
  return decode(typeMappings, input);
110
110
  };
111
111
 
112
- decoders.ActivityMarkedEvent = (input?: Record<string, any>) => {
113
- const typeMappings: TypeMapping = {
114
- created_at: { type: 'DatetimeType', isSingle: true },
115
- };
116
- return decode(typeMappings, input);
117
- };
118
-
119
112
  decoders.ActivityPinResponse = (input?: Record<string, any>) => {
120
113
  const typeMappings: TypeMapping = {
121
114
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -218,7 +211,7 @@ decoders.ActivityResponse = (input?: Record<string, any>) => {
218
211
 
219
212
  collections: { type: 'EnrichedCollectionResponse', isSingle: false },
220
213
 
221
- reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
214
+ reaction_groups: { type: 'FeedsReactionGroupResponse', isSingle: false },
222
215
 
223
216
  user: { type: 'UserResponse', isSingle: true },
224
217
 
@@ -228,6 +221,8 @@ decoders.ActivityResponse = (input?: Record<string, any>) => {
228
221
 
229
222
  expires_at: { type: 'DatetimeType', isSingle: true },
230
223
 
224
+ friend_reactions: { type: 'FeedsReactionResponse', isSingle: false },
225
+
231
226
  current_feed: { type: 'FeedResponse', isSingle: true },
232
227
 
233
228
  parent: { type: 'ActivityResponse', isSingle: true },
@@ -340,13 +335,6 @@ decoders.AggregatedActivityResponse = (input?: Record<string, any>) => {
340
335
  return decode(typeMappings, input);
341
336
  };
342
337
 
343
- decoders.AnyEvent = (input?: Record<string, any>) => {
344
- const typeMappings: TypeMapping = {
345
- created_at: { type: 'DatetimeType', isSingle: true },
346
- };
347
- return decode(typeMappings, input);
348
- };
349
-
350
338
  decoders.AppResponseFields = (input?: Record<string, any>) => {
351
339
  const typeMappings: TypeMapping = {
352
340
  event_hooks: { type: 'EventHook', isSingle: false },
@@ -471,24 +459,22 @@ decoders.AsyncExportUsersEvent = (input?: Record<string, any>) => {
471
459
  return decode(typeMappings, input);
472
460
  };
473
461
 
474
- decoders.AutomodDetails = (input?: Record<string, any>) => {
462
+ decoders.AutomodDetailsResponse = (input?: Record<string, any>) => {
475
463
  const typeMappings: TypeMapping = {
476
464
  result: { type: 'MessageModerationResult', isSingle: true },
477
465
  };
478
466
  return decode(typeMappings, input);
479
467
  };
480
468
 
481
- decoders.Ban = (input?: Record<string, any>) => {
469
+ decoders.BanInfoResponse = (input?: Record<string, any>) => {
482
470
  const typeMappings: TypeMapping = {
483
471
  created_at: { type: 'DatetimeType', isSingle: true },
484
472
 
485
473
  expires: { type: 'DatetimeType', isSingle: true },
486
474
 
487
- channel: { type: 'Channel', isSingle: true },
488
-
489
- created_by: { type: 'User', isSingle: true },
475
+ created_by: { type: 'UserResponse', isSingle: true },
490
476
 
491
- target: { type: 'User', isSingle: true },
477
+ user: { type: 'UserResponse', isSingle: true },
492
478
  };
493
479
  return decode(typeMappings, input);
494
480
  };
@@ -680,6 +666,17 @@ decoders.CallCreatedEvent = (input?: Record<string, any>) => {
680
666
  return decode(typeMappings, input);
681
667
  };
682
668
 
669
+ decoders.CallDTMFEvent = (input?: Record<string, any>) => {
670
+ const typeMappings: TypeMapping = {
671
+ created_at: { type: 'DatetimeType', isSingle: true },
672
+
673
+ timestamp: { type: 'DatetimeType', isSingle: true },
674
+
675
+ user: { type: 'UserResponse', isSingle: true },
676
+ };
677
+ return decode(typeMappings, input);
678
+ };
679
+
683
680
  decoders.CallDeletedEvent = (input?: Record<string, any>) => {
684
681
  const typeMappings: TypeMapping = {
685
682
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -871,8 +868,6 @@ decoders.CallParticipantTimeline = (input?: Record<string, any>) => {
871
868
  decoders.CallReactionEvent = (input?: Record<string, any>) => {
872
869
  const typeMappings: TypeMapping = {
873
870
  created_at: { type: 'DatetimeType', isSingle: true },
874
-
875
- reaction: { type: 'ReactionResponse', isSingle: true },
876
871
  };
877
872
  return decode(typeMappings, input);
878
873
  };
@@ -1232,35 +1227,6 @@ decoders.CampaignStatsResponse = (input?: Record<string, any>) => {
1232
1227
  return decode(typeMappings, input);
1233
1228
  };
1234
1229
 
1235
- decoders.Channel = (input?: Record<string, any>) => {
1236
- const typeMappings: TypeMapping = {
1237
- created_at: { type: 'DatetimeType', isSingle: true },
1238
-
1239
- updated_at: { type: 'DatetimeType', isSingle: true },
1240
-
1241
- deleted_at: { type: 'DatetimeType', isSingle: true },
1242
-
1243
- last_message_at: { type: 'DatetimeType', isSingle: true },
1244
-
1245
- message_count_updated_at: { type: 'DatetimeType', isSingle: true },
1246
-
1247
- active_live_locations: { type: 'SharedLocation', isSingle: false },
1248
-
1249
- invites: { type: 'ChannelMember', isSingle: false },
1250
-
1251
- members: { type: 'ChannelMember', isSingle: false },
1252
-
1253
- config: { type: 'ChannelConfig', isSingle: true },
1254
-
1255
- created_by: { type: 'User', isSingle: true },
1256
-
1257
- members_lookup: { type: 'ChannelMemberLookup', isSingle: false },
1258
-
1259
- truncated_by: { type: 'User', isSingle: true },
1260
- };
1261
- return decode(typeMappings, input);
1262
- };
1263
-
1264
1230
  decoders.ChannelBatchCompletedEvent = (input?: Record<string, any>) => {
1265
1231
  const typeMappings: TypeMapping = {
1266
1232
  batch_created_at: { type: 'DatetimeType', isSingle: true },
@@ -1310,6 +1276,12 @@ decoders.ChannelConfigWithInfo = (input?: Record<string, any>) => {
1310
1276
  decoders.ChannelCreatedEvent = (input?: Record<string, any>) => {
1311
1277
  const typeMappings: TypeMapping = {
1312
1278
  created_at: { type: 'DatetimeType', isSingle: true },
1279
+
1280
+ channel: { type: 'ChannelResponse', isSingle: true },
1281
+
1282
+ received_at: { type: 'DatetimeType', isSingle: true },
1283
+
1284
+ user: { type: 'UserResponseCommonFields', isSingle: true },
1313
1285
  };
1314
1286
  return decode(typeMappings, input);
1315
1287
  };
@@ -1319,6 +1291,10 @@ decoders.ChannelDeletedEvent = (input?: Record<string, any>) => {
1319
1291
  created_at: { type: 'DatetimeType', isSingle: true },
1320
1292
 
1321
1293
  channel: { type: 'ChannelResponse', isSingle: true },
1294
+
1295
+ received_at: { type: 'DatetimeType', isSingle: true },
1296
+
1297
+ user: { type: 'UserResponseCommonFields', isSingle: true },
1322
1298
  };
1323
1299
  return decode(typeMappings, input);
1324
1300
  };
@@ -1326,6 +1302,8 @@ decoders.ChannelDeletedEvent = (input?: Record<string, any>) => {
1326
1302
  decoders.ChannelFrozenEvent = (input?: Record<string, any>) => {
1327
1303
  const typeMappings: TypeMapping = {
1328
1304
  created_at: { type: 'DatetimeType', isSingle: true },
1305
+
1306
+ received_at: { type: 'DatetimeType', isSingle: true },
1329
1307
  };
1330
1308
  return decode(typeMappings, input);
1331
1309
  };
@@ -1336,41 +1314,9 @@ decoders.ChannelHiddenEvent = (input?: Record<string, any>) => {
1336
1314
 
1337
1315
  channel: { type: 'ChannelResponse', isSingle: true },
1338
1316
 
1339
- user: { type: 'User', isSingle: true },
1340
- };
1341
- return decode(typeMappings, input);
1342
- };
1343
-
1344
- decoders.ChannelMember = (input?: Record<string, any>) => {
1345
- const typeMappings: TypeMapping = {
1346
- archived_at: { type: 'DatetimeType', isSingle: true },
1347
-
1348
- ban_expires: { type: 'DatetimeType', isSingle: true },
1349
-
1350
- created_at: { type: 'DatetimeType', isSingle: true },
1351
-
1352
- deleted_at: { type: 'DatetimeType', isSingle: true },
1353
-
1354
- invite_accepted_at: { type: 'DatetimeType', isSingle: true },
1355
-
1356
- invite_rejected_at: { type: 'DatetimeType', isSingle: true },
1357
-
1358
- pinned_at: { type: 'DatetimeType', isSingle: true },
1359
-
1360
- updated_at: { type: 'DatetimeType', isSingle: true },
1361
-
1362
- user: { type: 'User', isSingle: true },
1363
- };
1364
- return decode(typeMappings, input);
1365
- };
1366
-
1367
- decoders.ChannelMemberLookup = (input?: Record<string, any>) => {
1368
- const typeMappings: TypeMapping = {
1369
- archived_at: { type: 'DatetimeType', isSingle: true },
1370
-
1371
- ban_expires: { type: 'DatetimeType', isSingle: true },
1317
+ received_at: { type: 'DatetimeType', isSingle: true },
1372
1318
 
1373
- pinned_at: { type: 'DatetimeType', isSingle: true },
1319
+ user: { type: 'UserResponseCommonFields', isSingle: true },
1374
1320
  };
1375
1321
  return decode(typeMappings, input);
1376
1322
  };
@@ -1416,6 +1362,14 @@ decoders.ChannelMute = (input?: Record<string, any>) => {
1416
1362
  decoders.ChannelMutedEvent = (input?: Record<string, any>) => {
1417
1363
  const typeMappings: TypeMapping = {
1418
1364
  created_at: { type: 'DatetimeType', isSingle: true },
1365
+
1366
+ received_at: { type: 'DatetimeType', isSingle: true },
1367
+
1368
+ mutes: { type: 'ChannelMute', isSingle: false },
1369
+
1370
+ mute: { type: 'ChannelMute', isSingle: true },
1371
+
1372
+ user: { type: 'UserResponseCommonFields', isSingle: true },
1419
1373
  };
1420
1374
  return decode(typeMappings, input);
1421
1375
  };
@@ -1533,6 +1487,12 @@ decoders.ChannelTruncatedEvent = (input?: Record<string, any>) => {
1533
1487
  created_at: { type: 'DatetimeType', isSingle: true },
1534
1488
 
1535
1489
  channel: { type: 'ChannelResponse', isSingle: true },
1490
+
1491
+ received_at: { type: 'DatetimeType', isSingle: true },
1492
+
1493
+ message: { type: 'MessageResponse', isSingle: true },
1494
+
1495
+ user: { type: 'UserResponseCommonFields', isSingle: true },
1536
1496
  };
1537
1497
  return decode(typeMappings, input);
1538
1498
  };
@@ -1551,6 +1511,8 @@ decoders.ChannelTypeConfig = (input?: Record<string, any>) => {
1551
1511
  decoders.ChannelUnFrozenEvent = (input?: Record<string, any>) => {
1552
1512
  const typeMappings: TypeMapping = {
1553
1513
  created_at: { type: 'DatetimeType', isSingle: true },
1514
+
1515
+ received_at: { type: 'DatetimeType', isSingle: true },
1554
1516
  };
1555
1517
  return decode(typeMappings, input);
1556
1518
  };
@@ -1558,6 +1520,14 @@ decoders.ChannelUnFrozenEvent = (input?: Record<string, any>) => {
1558
1520
  decoders.ChannelUnmutedEvent = (input?: Record<string, any>) => {
1559
1521
  const typeMappings: TypeMapping = {
1560
1522
  created_at: { type: 'DatetimeType', isSingle: true },
1523
+
1524
+ received_at: { type: 'DatetimeType', isSingle: true },
1525
+
1526
+ mutes: { type: 'ChannelMute', isSingle: false },
1527
+
1528
+ mute: { type: 'ChannelMute', isSingle: true },
1529
+
1530
+ user: { type: 'UserResponseCommonFields', isSingle: true },
1561
1531
  };
1562
1532
  return decode(typeMappings, input);
1563
1533
  };
@@ -1568,9 +1538,11 @@ decoders.ChannelUpdatedEvent = (input?: Record<string, any>) => {
1568
1538
 
1569
1539
  channel: { type: 'ChannelResponse', isSingle: true },
1570
1540
 
1571
- message: { type: 'Message', isSingle: true },
1541
+ received_at: { type: 'DatetimeType', isSingle: true },
1542
+
1543
+ message: { type: 'MessageResponse', isSingle: true },
1572
1544
 
1573
- user: { type: 'User', isSingle: true },
1545
+ user: { type: 'UserResponseCommonFields', isSingle: true },
1574
1546
  };
1575
1547
  return decode(typeMappings, input);
1576
1548
  };
@@ -1579,7 +1551,11 @@ decoders.ChannelVisibleEvent = (input?: Record<string, any>) => {
1579
1551
  const typeMappings: TypeMapping = {
1580
1552
  created_at: { type: 'DatetimeType', isSingle: true },
1581
1553
 
1582
- user: { type: 'User', isSingle: true },
1554
+ channel: { type: 'ChannelResponse', isSingle: true },
1555
+
1556
+ received_at: { type: 'DatetimeType', isSingle: true },
1557
+
1558
+ user: { type: 'UserResponseCommonFields', isSingle: true },
1583
1559
  };
1584
1560
  return decode(typeMappings, input);
1585
1561
  };
@@ -1716,7 +1692,7 @@ decoders.CommentResponse = (input?: Record<string, any>) => {
1716
1692
 
1717
1693
  latest_reactions: { type: 'FeedsReactionResponse', isSingle: false },
1718
1694
 
1719
- reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
1695
+ reaction_groups: { type: 'FeedsReactionGroupResponse', isSingle: false },
1720
1696
  };
1721
1697
  return decode(typeMappings, input);
1722
1698
  };
@@ -1861,6 +1837,15 @@ decoders.CustomCheckResponse = (input?: Record<string, any>) => {
1861
1837
  return decode(typeMappings, input);
1862
1838
  };
1863
1839
 
1840
+ decoders.CustomEvent = (input?: Record<string, any>) => {
1841
+ const typeMappings: TypeMapping = {
1842
+ created_at: { type: 'DatetimeType', isSingle: true },
1843
+
1844
+ received_at: { type: 'DatetimeType', isSingle: true },
1845
+ };
1846
+ return decode(typeMappings, input);
1847
+ };
1848
+
1864
1849
  decoders.CustomVideoEvent = (input?: Record<string, any>) => {
1865
1850
  const typeMappings: TypeMapping = {
1866
1851
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1941,13 +1926,6 @@ decoders.DeleteReactionResponse = (input?: Record<string, any>) => {
1941
1926
  return decode(typeMappings, input);
1942
1927
  };
1943
1928
 
1944
- decoders.Device = (input?: Record<string, any>) => {
1945
- const typeMappings: TypeMapping = {
1946
- created_at: { type: 'DatetimeType', isSingle: true },
1947
- };
1948
- return decode(typeMappings, input);
1949
- };
1950
-
1951
1929
  decoders.DeviceResponse = (input?: Record<string, any>) => {
1952
1930
  const typeMappings: TypeMapping = {
1953
1931
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2236,6 +2214,15 @@ decoders.FeedViewResponse = (input?: Record<string, any>) => {
2236
2214
  return decode(typeMappings, input);
2237
2215
  };
2238
2216
 
2217
+ decoders.FeedsReactionGroupResponse = (input?: Record<string, any>) => {
2218
+ const typeMappings: TypeMapping = {
2219
+ first_reaction_at: { type: 'DatetimeType', isSingle: true },
2220
+
2221
+ last_reaction_at: { type: 'DatetimeType', isSingle: true },
2222
+ };
2223
+ return decode(typeMappings, input);
2224
+ };
2225
+
2239
2226
  decoders.FeedsReactionResponse = (input?: Record<string, any>) => {
2240
2227
  const typeMappings: TypeMapping = {
2241
2228
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2247,14 +2234,14 @@ decoders.FeedsReactionResponse = (input?: Record<string, any>) => {
2247
2234
  return decode(typeMappings, input);
2248
2235
  };
2249
2236
 
2250
- decoders.FlagDetails = (input?: Record<string, any>) => {
2237
+ decoders.FlagDetailsResponse = (input?: Record<string, any>) => {
2251
2238
  const typeMappings: TypeMapping = {
2252
- automod: { type: 'AutomodDetails', isSingle: true },
2239
+ automod: { type: 'AutomodDetailsResponse', isSingle: true },
2253
2240
  };
2254
2241
  return decode(typeMappings, input);
2255
2242
  };
2256
2243
 
2257
- decoders.FlagFeedback = (input?: Record<string, any>) => {
2244
+ decoders.FlagFeedbackResponse = (input?: Record<string, any>) => {
2258
2245
  const typeMappings: TypeMapping = {
2259
2246
  created_at: { type: 'DatetimeType', isSingle: true },
2260
2247
  };
@@ -2417,6 +2404,15 @@ decoders.GetBlockedUsersResponse = (input?: Record<string, any>) => {
2417
2404
  return decode(typeMappings, input);
2418
2405
  };
2419
2406
 
2407
+ decoders.GetCallParticipantSessionMetricsResponse = (
2408
+ input?: Record<string, any>,
2409
+ ) => {
2410
+ const typeMappings: TypeMapping = {
2411
+ joined_at: { type: 'DatetimeType', isSingle: true },
2412
+ };
2413
+ return decode(typeMappings, input);
2414
+ };
2415
+
2420
2416
  decoders.GetCallReportResponse = (input?: Record<string, any>) => {
2421
2417
  const typeMappings: TypeMapping = {
2422
2418
  video_reactions: { type: 'VideoReactionsResponse', isSingle: false },
@@ -2608,7 +2604,7 @@ decoders.GetOrCreateFeedViewResponse = (input?: Record<string, any>) => {
2608
2604
 
2609
2605
  decoders.GetPushTemplatesResponse = (input?: Record<string, any>) => {
2610
2606
  const typeMappings: TypeMapping = {
2611
- templates: { type: 'PushTemplate', isSingle: false },
2607
+ templates: { type: 'PushTemplateResponse', isSingle: false },
2612
2608
  };
2613
2609
  return decode(typeMappings, input);
2614
2610
  };
@@ -2838,13 +2834,26 @@ decoders.MarkReadResponse = (input?: Record<string, any>) => {
2838
2834
  return decode(typeMappings, input);
2839
2835
  };
2840
2836
 
2837
+ decoders.MaxStreakChangedEvent = (input?: Record<string, any>) => {
2838
+ const typeMappings: TypeMapping = {
2839
+ created_at: { type: 'DatetimeType', isSingle: true },
2840
+
2841
+ received_at: { type: 'DatetimeType', isSingle: true },
2842
+ };
2843
+ return decode(typeMappings, input);
2844
+ };
2845
+
2841
2846
  decoders.MemberAddedEvent = (input?: Record<string, any>) => {
2842
2847
  const typeMappings: TypeMapping = {
2843
2848
  created_at: { type: 'DatetimeType', isSingle: true },
2844
2849
 
2845
- member: { type: 'ChannelMember', isSingle: true },
2850
+ channel: { type: 'ChannelResponse', isSingle: true },
2851
+
2852
+ member: { type: 'ChannelMemberResponse', isSingle: true },
2846
2853
 
2847
- user: { type: 'User', isSingle: true },
2854
+ received_at: { type: 'DatetimeType', isSingle: true },
2855
+
2856
+ user: { type: 'UserResponseCommonFields', isSingle: true },
2848
2857
  };
2849
2858
  return decode(typeMappings, input);
2850
2859
  };
@@ -2853,9 +2862,13 @@ decoders.MemberRemovedEvent = (input?: Record<string, any>) => {
2853
2862
  const typeMappings: TypeMapping = {
2854
2863
  created_at: { type: 'DatetimeType', isSingle: true },
2855
2864
 
2856
- member: { type: 'ChannelMember', isSingle: true },
2865
+ channel: { type: 'ChannelResponse', isSingle: true },
2866
+
2867
+ member: { type: 'ChannelMemberResponse', isSingle: true },
2857
2868
 
2858
- user: { type: 'User', isSingle: true },
2869
+ received_at: { type: 'DatetimeType', isSingle: true },
2870
+
2871
+ user: { type: 'UserResponseCommonFields', isSingle: true },
2859
2872
  };
2860
2873
  return decode(typeMappings, input);
2861
2874
  };
@@ -2877,9 +2890,13 @@ decoders.MemberUpdatedEvent = (input?: Record<string, any>) => {
2877
2890
  const typeMappings: TypeMapping = {
2878
2891
  created_at: { type: 'DatetimeType', isSingle: true },
2879
2892
 
2880
- member: { type: 'ChannelMember', isSingle: true },
2893
+ channel: { type: 'ChannelResponse', isSingle: true },
2881
2894
 
2882
- user: { type: 'User', isSingle: true },
2895
+ member: { type: 'ChannelMemberResponse', isSingle: true },
2896
+
2897
+ received_at: { type: 'DatetimeType', isSingle: true },
2898
+
2899
+ user: { type: 'UserResponseCommonFields', isSingle: true },
2883
2900
  };
2884
2901
  return decode(typeMappings, input);
2885
2902
  };
@@ -2900,43 +2917,9 @@ decoders.MembershipLevelResponse = (input?: Record<string, any>) => {
2900
2917
  return decode(typeMappings, input);
2901
2918
  };
2902
2919
 
2903
- decoders.Message = (input?: Record<string, any>) => {
2920
+ decoders.MessageActionResponse = (input?: Record<string, any>) => {
2904
2921
  const typeMappings: TypeMapping = {
2905
- created_at: { type: 'DatetimeType', isSingle: true },
2906
-
2907
- updated_at: { type: 'DatetimeType', isSingle: true },
2908
-
2909
- latest_reactions: { type: 'Reaction', isSingle: false },
2910
-
2911
- mentioned_users: { type: 'User', isSingle: false },
2912
-
2913
- own_reactions: { type: 'Reaction', isSingle: false },
2914
-
2915
- reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
2916
-
2917
- deleted_at: { type: 'DatetimeType', isSingle: true },
2918
-
2919
- message_text_updated_at: { type: 'DatetimeType', isSingle: true },
2920
-
2921
- pin_expires: { type: 'DatetimeType', isSingle: true },
2922
-
2923
- pinned_at: { type: 'DatetimeType', isSingle: true },
2924
-
2925
- thread_participants: { type: 'User', isSingle: false },
2926
-
2927
- member: { type: 'ChannelMember', isSingle: true },
2928
-
2929
- pinned_by: { type: 'User', isSingle: true },
2930
-
2931
- poll: { type: 'Poll', isSingle: true },
2932
-
2933
- quoted_message: { type: 'Message', isSingle: true },
2934
-
2935
- reminder: { type: 'MessageReminder', isSingle: true },
2936
-
2937
- shared_location: { type: 'SharedLocation', isSingle: true },
2938
-
2939
- user: { type: 'User', isSingle: true },
2922
+ message: { type: 'MessageResponse', isSingle: true },
2940
2923
  };
2941
2924
  return decode(typeMappings, input);
2942
2925
  };
@@ -2945,11 +2928,11 @@ decoders.MessageDeletedEvent = (input?: Record<string, any>) => {
2945
2928
  const typeMappings: TypeMapping = {
2946
2929
  created_at: { type: 'DatetimeType', isSingle: true },
2947
2930
 
2948
- thread_participants: { type: 'User', isSingle: false },
2931
+ message: { type: 'MessageResponse', isSingle: true },
2949
2932
 
2950
- message: { type: 'Message', isSingle: true },
2933
+ received_at: { type: 'DatetimeType', isSingle: true },
2951
2934
 
2952
- user: { type: 'User', isSingle: true },
2935
+ user: { type: 'UserResponseCommonFields', isSingle: true },
2953
2936
  };
2954
2937
  return decode(typeMappings, input);
2955
2938
  };
@@ -2966,11 +2949,11 @@ decoders.MessageFlagResponse = (input?: Record<string, any>) => {
2966
2949
 
2967
2950
  reviewed_at: { type: 'DatetimeType', isSingle: true },
2968
2951
 
2969
- details: { type: 'FlagDetails', isSingle: true },
2952
+ details: { type: 'FlagDetailsResponse', isSingle: true },
2970
2953
 
2971
- message: { type: 'Message', isSingle: true },
2954
+ message: { type: 'MessageResponse', isSingle: true },
2972
2955
 
2973
- moderation_feedback: { type: 'FlagFeedback', isSingle: true },
2956
+ moderation_feedback: { type: 'FlagFeedbackResponse', isSingle: true },
2974
2957
 
2975
2958
  moderation_result: { type: 'MessageModerationResult', isSingle: true },
2976
2959
 
@@ -2985,11 +2968,13 @@ decoders.MessageFlaggedEvent = (input?: Record<string, any>) => {
2985
2968
  const typeMappings: TypeMapping = {
2986
2969
  created_at: { type: 'DatetimeType', isSingle: true },
2987
2970
 
2988
- thread_participants: { type: 'User', isSingle: false },
2971
+ message: { type: 'MessageResponse', isSingle: true },
2989
2972
 
2990
- message: { type: 'Message', isSingle: true },
2973
+ received_at: { type: 'DatetimeType', isSingle: true },
2974
+
2975
+ details: { type: 'MessageModerationResult', isSingle: true },
2991
2976
 
2992
- user: { type: 'User', isSingle: true },
2977
+ user: { type: 'UserResponseCommonFields', isSingle: true },
2993
2978
  };
2994
2979
  return decode(typeMappings, input);
2995
2980
  };
@@ -3014,11 +2999,15 @@ decoders.MessageNewEvent = (input?: Record<string, any>) => {
3014
2999
  const typeMappings: TypeMapping = {
3015
3000
  created_at: { type: 'DatetimeType', isSingle: true },
3016
3001
 
3017
- thread_participants: { type: 'User', isSingle: false },
3002
+ message: { type: 'MessageResponse', isSingle: true },
3003
+
3004
+ received_at: { type: 'DatetimeType', isSingle: true },
3018
3005
 
3019
- message: { type: 'Message', isSingle: true },
3006
+ thread_participants: { type: 'UserResponseCommonFields', isSingle: false },
3020
3007
 
3021
- user: { type: 'User', isSingle: true },
3008
+ channel: { type: 'ChannelResponse', isSingle: true },
3009
+
3010
+ user: { type: 'UserResponseCommonFields', isSingle: true },
3022
3011
  };
3023
3012
  return decode(typeMappings, input);
3024
3013
  };
@@ -3038,23 +3027,6 @@ decoders.MessageReadEvent = (input?: Record<string, any>) => {
3038
3027
  return decode(typeMappings, input);
3039
3028
  };
3040
3029
 
3041
- decoders.MessageReminder = (input?: Record<string, any>) => {
3042
- const typeMappings: TypeMapping = {
3043
- created_at: { type: 'DatetimeType', isSingle: true },
3044
-
3045
- updated_at: { type: 'DatetimeType', isSingle: true },
3046
-
3047
- remind_at: { type: 'DatetimeType', isSingle: true },
3048
-
3049
- channel: { type: 'Channel', isSingle: true },
3050
-
3051
- message: { type: 'Message', isSingle: true },
3052
-
3053
- user: { type: 'User', isSingle: true },
3054
- };
3055
- return decode(typeMappings, input);
3056
- };
3057
-
3058
3030
  decoders.MessageResponse = (input?: Record<string, any>) => {
3059
3031
  const typeMappings: TypeMapping = {
3060
3032
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -3109,11 +3081,11 @@ decoders.MessageUnblockedEvent = (input?: Record<string, any>) => {
3109
3081
  const typeMappings: TypeMapping = {
3110
3082
  created_at: { type: 'DatetimeType', isSingle: true },
3111
3083
 
3112
- thread_participants: { type: 'User', isSingle: false },
3084
+ message: { type: 'MessageResponse', isSingle: true },
3113
3085
 
3114
- message: { type: 'Message', isSingle: true },
3086
+ received_at: { type: 'DatetimeType', isSingle: true },
3115
3087
 
3116
- user: { type: 'User', isSingle: true },
3088
+ user: { type: 'UserResponseCommonFields', isSingle: true },
3117
3089
  };
3118
3090
  return decode(typeMappings, input);
3119
3091
  };
@@ -3122,11 +3094,9 @@ decoders.MessageUndeletedEvent = (input?: Record<string, any>) => {
3122
3094
  const typeMappings: TypeMapping = {
3123
3095
  created_at: { type: 'DatetimeType', isSingle: true },
3124
3096
 
3125
- thread_participants: { type: 'User', isSingle: false },
3126
-
3127
- message: { type: 'Message', isSingle: true },
3097
+ message: { type: 'MessageResponse', isSingle: true },
3128
3098
 
3129
- user: { type: 'User', isSingle: true },
3099
+ received_at: { type: 'DatetimeType', isSingle: true },
3130
3100
  };
3131
3101
  return decode(typeMappings, input);
3132
3102
  };
@@ -3135,11 +3105,11 @@ decoders.MessageUpdatedEvent = (input?: Record<string, any>) => {
3135
3105
  const typeMappings: TypeMapping = {
3136
3106
  created_at: { type: 'DatetimeType', isSingle: true },
3137
3107
 
3138
- thread_participants: { type: 'User', isSingle: false },
3108
+ message: { type: 'MessageResponse', isSingle: true },
3139
3109
 
3140
- message: { type: 'Message', isSingle: true },
3110
+ received_at: { type: 'DatetimeType', isSingle: true },
3141
3111
 
3142
- user: { type: 'User', isSingle: true },
3112
+ user: { type: 'UserResponseCommonFields', isSingle: true },
3143
3113
  };
3144
3114
  return decode(typeMappings, input);
3145
3115
  };
@@ -3228,7 +3198,7 @@ decoders.ModerationFlaggedEvent = (input?: Record<string, any>) => {
3228
3198
  const typeMappings: TypeMapping = {
3229
3199
  created_at: { type: 'DatetimeType', isSingle: true },
3230
3200
 
3231
- user: { type: 'User', isSingle: true },
3201
+ received_at: { type: 'DatetimeType', isSingle: true },
3232
3202
  };
3233
3203
  return decode(typeMappings, input);
3234
3204
  };
@@ -3261,16 +3231,16 @@ decoders.MuteChannelResponse = (input?: Record<string, any>) => {
3261
3231
 
3262
3232
  channel_mute: { type: 'ChannelMute', isSingle: true },
3263
3233
 
3264
- own_user: { type: 'OwnUser', isSingle: true },
3234
+ own_user: { type: 'OwnUserResponse', isSingle: true },
3265
3235
  };
3266
3236
  return decode(typeMappings, input);
3267
3237
  };
3268
3238
 
3269
3239
  decoders.MuteResponse = (input?: Record<string, any>) => {
3270
3240
  const typeMappings: TypeMapping = {
3271
- mutes: { type: 'UserMute', isSingle: false },
3241
+ mutes: { type: 'UserMuteResponse', isSingle: false },
3272
3242
 
3273
- own_user: { type: 'OwnUser', isSingle: true },
3243
+ own_user: { type: 'OwnUserResponse', isSingle: true },
3274
3244
  };
3275
3245
  return decode(typeMappings, input);
3276
3246
  };
@@ -3299,9 +3269,11 @@ decoders.NotificationMarkUnreadEvent = (input?: Record<string, any>) => {
3299
3269
 
3300
3270
  last_read_at: { type: 'DatetimeType', isSingle: true },
3301
3271
 
3272
+ received_at: { type: 'DatetimeType', isSingle: true },
3273
+
3302
3274
  channel: { type: 'ChannelResponse', isSingle: true },
3303
3275
 
3304
- user: { type: 'User', isSingle: true },
3276
+ user: { type: 'UserResponseCommonFields', isSingle: true },
3305
3277
  };
3306
3278
  return decode(typeMappings, input);
3307
3279
  };
@@ -3315,34 +3287,24 @@ decoders.NotificationStatusResponse = (input?: Record<string, any>) => {
3315
3287
  return decode(typeMappings, input);
3316
3288
  };
3317
3289
 
3318
- decoders.OwnBatchResponse = (input?: Record<string, any>) => {
3319
- const typeMappings: TypeMapping = {
3320
- data: { type: 'FeedOwnData', isSingle: false },
3321
- };
3322
- return decode(typeMappings, input);
3323
- };
3324
-
3325
- decoders.OwnUser = (input?: Record<string, any>) => {
3290
+ decoders.NotificationThreadMessageNewEvent = (input?: Record<string, any>) => {
3326
3291
  const typeMappings: TypeMapping = {
3327
3292
  created_at: { type: 'DatetimeType', isSingle: true },
3328
3293
 
3329
- updated_at: { type: 'DatetimeType', isSingle: true },
3330
-
3331
- channel_mutes: { type: 'ChannelMute', isSingle: false },
3332
-
3333
- devices: { type: 'Device', isSingle: false },
3334
-
3335
- mutes: { type: 'UserMute', isSingle: false },
3336
-
3337
- deactivated_at: { type: 'DatetimeType', isSingle: true },
3294
+ channel: { type: 'ChannelResponse', isSingle: true },
3338
3295
 
3339
- deleted_at: { type: 'DatetimeType', isSingle: true },
3296
+ message: { type: 'MessageResponse', isSingle: true },
3340
3297
 
3341
- last_active: { type: 'DatetimeType', isSingle: true },
3298
+ received_at: { type: 'DatetimeType', isSingle: true },
3342
3299
 
3343
- last_engaged_at: { type: 'DatetimeType', isSingle: true },
3300
+ thread_participants: { type: 'UserResponseCommonFields', isSingle: false },
3301
+ };
3302
+ return decode(typeMappings, input);
3303
+ };
3344
3304
 
3345
- push_preferences: { type: 'PushPreferences', isSingle: true },
3305
+ decoders.OwnBatchResponse = (input?: Record<string, any>) => {
3306
+ const typeMappings: TypeMapping = {
3307
+ data: { type: 'FeedOwnData', isSingle: false },
3346
3308
  };
3347
3309
  return decode(typeMappings, input);
3348
3310
  };
@@ -3410,11 +3372,11 @@ decoders.PendingMessageEvent = (input?: Record<string, any>) => {
3410
3372
 
3411
3373
  received_at: { type: 'DatetimeType', isSingle: true },
3412
3374
 
3413
- channel: { type: 'Channel', isSingle: true },
3375
+ channel: { type: 'ChannelResponse', isSingle: true },
3414
3376
 
3415
- message: { type: 'Message', isSingle: true },
3377
+ message: { type: 'MessageResponse', isSingle: true },
3416
3378
 
3417
- user: { type: 'User', isSingle: true },
3379
+ user: { type: 'UserResponse', isSingle: true },
3418
3380
  };
3419
3381
  return decode(typeMappings, input);
3420
3382
  };
@@ -3448,21 +3410,6 @@ decoders.PinActivityResponse = (input?: Record<string, any>) => {
3448
3410
  return decode(typeMappings, input);
3449
3411
  };
3450
3412
 
3451
- decoders.Poll = (input?: Record<string, any>) => {
3452
- const typeMappings: TypeMapping = {
3453
- created_at: { type: 'DatetimeType', isSingle: true },
3454
-
3455
- updated_at: { type: 'DatetimeType', isSingle: true },
3456
-
3457
- latest_answers: { type: 'PollVote', isSingle: false },
3458
-
3459
- own_votes: { type: 'PollVote', isSingle: false },
3460
-
3461
- created_by: { type: 'User', isSingle: true },
3462
- };
3463
- return decode(typeMappings, input);
3464
- };
3465
-
3466
3413
  decoders.PollResponse = (input?: Record<string, any>) => {
3467
3414
  const typeMappings: TypeMapping = {
3468
3415
  poll: { type: 'PollResponseData', isSingle: true },
@@ -3485,17 +3432,6 @@ decoders.PollResponseData = (input?: Record<string, any>) => {
3485
3432
  return decode(typeMappings, input);
3486
3433
  };
3487
3434
 
3488
- decoders.PollVote = (input?: Record<string, any>) => {
3489
- const typeMappings: TypeMapping = {
3490
- created_at: { type: 'DatetimeType', isSingle: true },
3491
-
3492
- updated_at: { type: 'DatetimeType', isSingle: true },
3493
-
3494
- user: { type: 'User', isSingle: true },
3495
- };
3496
- return decode(typeMappings, input);
3497
- };
3498
-
3499
3435
  decoders.PollVoteResponse = (input?: Record<string, any>) => {
3500
3436
  const typeMappings: TypeMapping = {
3501
3437
  poll: { type: 'PollResponseData', isSingle: true },
@@ -3537,13 +3473,6 @@ decoders.PushNotificationSettingsResponse = (input?: Record<string, any>) => {
3537
3473
  return decode(typeMappings, input);
3538
3474
  };
3539
3475
 
3540
- decoders.PushPreferences = (input?: Record<string, any>) => {
3541
- const typeMappings: TypeMapping = {
3542
- disabled_until: { type: 'DatetimeType', isSingle: true },
3543
- };
3544
- return decode(typeMappings, input);
3545
- };
3546
-
3547
3476
  decoders.PushPreferencesResponse = (input?: Record<string, any>) => {
3548
3477
  const typeMappings: TypeMapping = {
3549
3478
  disabled_until: { type: 'DatetimeType', isSingle: true },
@@ -3584,6 +3513,15 @@ decoders.PushTemplate = (input?: Record<string, any>) => {
3584
3513
  return decode(typeMappings, input);
3585
3514
  };
3586
3515
 
3516
+ decoders.PushTemplateResponse = (input?: Record<string, any>) => {
3517
+ const typeMappings: TypeMapping = {
3518
+ created_at: { type: 'DatetimeType', isSingle: true },
3519
+
3520
+ updated_at: { type: 'DatetimeType', isSingle: true },
3521
+ };
3522
+ return decode(typeMappings, input);
3523
+ };
3524
+
3587
3525
  decoders.QueryActivitiesResponse = (input?: Record<string, any>) => {
3588
3526
  const typeMappings: TypeMapping = {
3589
3527
  activities: { type: 'ActivityResponse', isSingle: false },
@@ -3716,13 +3654,6 @@ decoders.QueryCampaignsResponse = (input?: Record<string, any>) => {
3716
3654
  return decode(typeMappings, input);
3717
3655
  };
3718
3656
 
3719
- decoders.QueryChannelsResponse = (input?: Record<string, any>) => {
3720
- const typeMappings: TypeMapping = {
3721
- channels: { type: 'ChannelStateResponseFields', isSingle: false },
3722
- };
3723
- return decode(typeMappings, input);
3724
- };
3725
-
3726
3657
  decoders.QueryCommentReactionsResponse = (input?: Record<string, any>) => {
3727
3658
  const typeMappings: TypeMapping = {
3728
3659
  reactions: { type: 'FeedsReactionResponse', isSingle: false },
@@ -3839,6 +3770,13 @@ decoders.QueryModerationRulesResponse = (input?: Record<string, any>) => {
3839
3770
  return decode(typeMappings, input);
3840
3771
  };
3841
3772
 
3773
+ decoders.QueryPinnedActivitiesResponse = (input?: Record<string, any>) => {
3774
+ const typeMappings: TypeMapping = {
3775
+ pinned_activities: { type: 'ActivityPinResponse', isSingle: false },
3776
+ };
3777
+ return decode(typeMappings, input);
3778
+ };
3779
+
3842
3780
  decoders.QueryPollsResponse = (input?: Record<string, any>) => {
3843
3781
  const typeMappings: TypeMapping = {
3844
3782
  polls: { type: 'PollResponseData', isSingle: false },
@@ -3894,7 +3832,7 @@ decoders.Reaction = (input?: Record<string, any>) => {
3894
3832
 
3895
3833
  updated_at: { type: 'DatetimeType', isSingle: true },
3896
3834
 
3897
- user: { type: 'User', isSingle: true },
3835
+ deleted_at: { type: 'DatetimeType', isSingle: true },
3898
3836
  };
3899
3837
  return decode(typeMappings, input);
3900
3838
  };
@@ -3903,13 +3841,17 @@ decoders.ReactionDeletedEvent = (input?: Record<string, any>) => {
3903
3841
  const typeMappings: TypeMapping = {
3904
3842
  created_at: { type: 'DatetimeType', isSingle: true },
3905
3843
 
3906
- thread_participants: { type: 'User', isSingle: false },
3844
+ channel: { type: 'ChannelResponse', isSingle: true },
3845
+
3846
+ received_at: { type: 'DatetimeType', isSingle: true },
3907
3847
 
3908
- message: { type: 'Message', isSingle: true },
3848
+ thread_participants: { type: 'UserResponseCommonFields', isSingle: false },
3909
3849
 
3910
- reaction: { type: 'Reaction', isSingle: true },
3850
+ message: { type: 'MessageResponse', isSingle: true },
3911
3851
 
3912
- user: { type: 'User', isSingle: true },
3852
+ reaction: { type: 'ReactionResponse', isSingle: true },
3853
+
3854
+ user: { type: 'UserResponseCommonFields', isSingle: true },
3913
3855
  };
3914
3856
  return decode(typeMappings, input);
3915
3857
  };
@@ -3927,13 +3869,17 @@ decoders.ReactionNewEvent = (input?: Record<string, any>) => {
3927
3869
  const typeMappings: TypeMapping = {
3928
3870
  created_at: { type: 'DatetimeType', isSingle: true },
3929
3871
 
3930
- thread_participants: { type: 'User', isSingle: false },
3872
+ channel: { type: 'ChannelResponse', isSingle: true },
3931
3873
 
3932
- message: { type: 'Message', isSingle: true },
3874
+ received_at: { type: 'DatetimeType', isSingle: true },
3933
3875
 
3934
- reaction: { type: 'Reaction', isSingle: true },
3876
+ thread_participants: { type: 'UserResponseCommonFields', isSingle: false },
3877
+
3878
+ message: { type: 'MessageResponse', isSingle: true },
3879
+
3880
+ reaction: { type: 'ReactionResponse', isSingle: true },
3935
3881
 
3936
- user: { type: 'User', isSingle: true },
3882
+ user: { type: 'UserResponseCommonFields', isSingle: true },
3937
3883
  };
3938
3884
  return decode(typeMappings, input);
3939
3885
  };
@@ -3953,11 +3899,15 @@ decoders.ReactionUpdatedEvent = (input?: Record<string, any>) => {
3953
3899
  const typeMappings: TypeMapping = {
3954
3900
  created_at: { type: 'DatetimeType', isSingle: true },
3955
3901
 
3956
- message: { type: 'Message', isSingle: true },
3902
+ channel: { type: 'ChannelResponse', isSingle: true },
3957
3903
 
3958
- reaction: { type: 'Reaction', isSingle: true },
3904
+ message: { type: 'MessageResponse', isSingle: true },
3959
3905
 
3960
- user: { type: 'User', isSingle: true },
3906
+ received_at: { type: 'DatetimeType', isSingle: true },
3907
+
3908
+ reaction: { type: 'ReactionResponse', isSingle: true },
3909
+
3910
+ user: { type: 'UserResponseCommonFields', isSingle: true },
3961
3911
  };
3962
3912
  return decode(typeMappings, input);
3963
3913
  };
@@ -4101,7 +4051,7 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
4101
4051
 
4102
4052
  actions: { type: 'ActionLogResponse', isSingle: false },
4103
4053
 
4104
- bans: { type: 'Ban', isSingle: false },
4054
+ bans: { type: 'BanInfoResponse', isSingle: false },
4105
4055
 
4106
4056
  flags: { type: 'ModerationFlagResponse', isSingle: false },
4107
4057
 
@@ -4269,9 +4219,9 @@ decoders.SendReactionResponse = (input?: Record<string, any>) => {
4269
4219
  return decode(typeMappings, input);
4270
4220
  };
4271
4221
 
4272
- decoders.SharedLocation = (input?: Record<string, any>) => {
4222
+ decoders.SessionWarningResponse = (input?: Record<string, any>) => {
4273
4223
  const typeMappings: TypeMapping = {
4274
- end_at: { type: 'DatetimeType', isSingle: true },
4224
+ time: { type: 'DatetimeType', isSingle: true },
4275
4225
  };
4276
4226
  return decode(typeMappings, input);
4277
4227
  };
@@ -4424,9 +4374,9 @@ decoders.ThreadUpdatedEvent = (input?: Record<string, any>) => {
4424
4374
  const typeMappings: TypeMapping = {
4425
4375
  created_at: { type: 'DatetimeType', isSingle: true },
4426
4376
 
4427
- thread: { type: 'ThreadResponse', isSingle: true },
4377
+ received_at: { type: 'DatetimeType', isSingle: true },
4428
4378
 
4429
- user: { type: 'User', isSingle: true },
4379
+ thread: { type: 'ThreadResponse', isSingle: true },
4430
4380
  };
4431
4381
  return decode(typeMappings, input);
4432
4382
  };
@@ -4451,7 +4401,7 @@ decoders.ThreadedCommentResponse = (input?: Record<string, any>) => {
4451
4401
 
4452
4402
  replies: { type: 'ThreadedCommentResponse', isSingle: false },
4453
4403
 
4454
- reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
4404
+ reaction_groups: { type: 'FeedsReactionGroupResponse', isSingle: false },
4455
4405
  };
4456
4406
  return decode(typeMappings, input);
4457
4407
  };
@@ -4525,6 +4475,15 @@ decoders.UnreadCountsThread = (input?: Record<string, any>) => {
4525
4475
  return decode(typeMappings, input);
4526
4476
  };
4527
4477
 
4478
+ decoders.UpdateActivitiesPartialBatchResponse = (
4479
+ input?: Record<string, any>,
4480
+ ) => {
4481
+ const typeMappings: TypeMapping = {
4482
+ activities: { type: 'ActivityResponse', isSingle: false },
4483
+ };
4484
+ return decode(typeMappings, input);
4485
+ };
4486
+
4528
4487
  decoders.UpdateActivityPartialResponse = (input?: Record<string, any>) => {
4529
4488
  const typeMappings: TypeMapping = {
4530
4489
  activity: { type: 'ActivityResponse', isSingle: true },
@@ -4788,7 +4747,7 @@ decoders.UpsertModerationTemplateResponse = (input?: Record<string, any>) => {
4788
4747
 
4789
4748
  decoders.UpsertPushPreferencesResponse = (input?: Record<string, any>) => {
4790
4749
  const typeMappings: TypeMapping = {
4791
- user_preferences: { type: 'PushPreferences', isSingle: false },
4750
+ user_preferences: { type: 'PushPreferencesResponse', isSingle: false },
4792
4751
  };
4793
4752
  return decode(typeMappings, input);
4794
4753
  };
@@ -4802,16 +4761,7 @@ decoders.UpsertPushProviderResponse = (input?: Record<string, any>) => {
4802
4761
 
4803
4762
  decoders.UpsertPushTemplateResponse = (input?: Record<string, any>) => {
4804
4763
  const typeMappings: TypeMapping = {
4805
- template: { type: 'PushTemplate', isSingle: true },
4806
- };
4807
- return decode(typeMappings, input);
4808
- };
4809
-
4810
- decoders.User = (input?: Record<string, any>) => {
4811
- const typeMappings: TypeMapping = {
4812
- ban_expires: { type: 'DatetimeType', isSingle: true },
4813
-
4814
- revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
4764
+ template: { type: 'PushTemplateResponse', isSingle: true },
4815
4765
  };
4816
4766
  return decode(typeMappings, input);
4817
4767
  };
@@ -4820,11 +4770,13 @@ decoders.UserBannedEvent = (input?: Record<string, any>) => {
4820
4770
  const typeMappings: TypeMapping = {
4821
4771
  created_at: { type: 'DatetimeType', isSingle: true },
4822
4772
 
4823
- created_by: { type: 'User', isSingle: true },
4773
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4824
4774
 
4825
4775
  expiration: { type: 'DatetimeType', isSingle: true },
4826
4776
 
4827
- user: { type: 'User', isSingle: true },
4777
+ received_at: { type: 'DatetimeType', isSingle: true },
4778
+
4779
+ created_by: { type: 'UserResponseCommonFields', isSingle: true },
4828
4780
  };
4829
4781
  return decode(typeMappings, input);
4830
4782
  };
@@ -4833,9 +4785,11 @@ decoders.UserDeactivatedEvent = (input?: Record<string, any>) => {
4833
4785
  const typeMappings: TypeMapping = {
4834
4786
  created_at: { type: 'DatetimeType', isSingle: true },
4835
4787
 
4836
- created_by: { type: 'User', isSingle: true },
4788
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4789
+
4790
+ received_at: { type: 'DatetimeType', isSingle: true },
4837
4791
 
4838
- user: { type: 'User', isSingle: true },
4792
+ created_by: { type: 'UserResponseCommonFields', isSingle: true },
4839
4793
  };
4840
4794
  return decode(typeMappings, input);
4841
4795
  };
@@ -4844,42 +4798,33 @@ decoders.UserDeletedEvent = (input?: Record<string, any>) => {
4844
4798
  const typeMappings: TypeMapping = {
4845
4799
  created_at: { type: 'DatetimeType', isSingle: true },
4846
4800
 
4847
- user: { type: 'User', isSingle: true },
4848
- };
4849
- return decode(typeMappings, input);
4850
- };
4851
-
4852
- decoders.UserFlaggedEvent = (input?: Record<string, any>) => {
4853
- const typeMappings: TypeMapping = {
4854
- created_at: { type: 'DatetimeType', isSingle: true },
4801
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4855
4802
 
4856
- user: { type: 'User', isSingle: true },
4803
+ received_at: { type: 'DatetimeType', isSingle: true },
4857
4804
  };
4858
4805
  return decode(typeMappings, input);
4859
4806
  };
4860
4807
 
4861
- decoders.UserMessagesDeletedEvent = (input?: Record<string, any>) => {
4808
+ decoders.UserFlaggedEvent = (input?: Record<string, any>) => {
4862
4809
  const typeMappings: TypeMapping = {
4863
4810
  created_at: { type: 'DatetimeType', isSingle: true },
4864
4811
 
4865
4812
  user: { type: 'UserResponseCommonFields', isSingle: true },
4866
4813
 
4867
4814
  received_at: { type: 'DatetimeType', isSingle: true },
4815
+
4816
+ target_user: { type: 'UserResponseCommonFields', isSingle: true },
4868
4817
  };
4869
4818
  return decode(typeMappings, input);
4870
4819
  };
4871
4820
 
4872
- decoders.UserMute = (input?: Record<string, any>) => {
4821
+ decoders.UserMessagesDeletedEvent = (input?: Record<string, any>) => {
4873
4822
  const typeMappings: TypeMapping = {
4874
4823
  created_at: { type: 'DatetimeType', isSingle: true },
4875
4824
 
4876
- updated_at: { type: 'DatetimeType', isSingle: true },
4877
-
4878
- expires: { type: 'DatetimeType', isSingle: true },
4879
-
4880
- target: { type: 'User', isSingle: true },
4825
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4881
4826
 
4882
- user: { type: 'User', isSingle: true },
4827
+ received_at: { type: 'DatetimeType', isSingle: true },
4883
4828
  };
4884
4829
  return decode(typeMappings, input);
4885
4830
  };
@@ -4903,7 +4848,13 @@ decoders.UserMutedEvent = (input?: Record<string, any>) => {
4903
4848
  const typeMappings: TypeMapping = {
4904
4849
  created_at: { type: 'DatetimeType', isSingle: true },
4905
4850
 
4906
- user: { type: 'User', isSingle: true },
4851
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4852
+
4853
+ received_at: { type: 'DatetimeType', isSingle: true },
4854
+
4855
+ target_users: { type: 'UserResponseCommonFields', isSingle: false },
4856
+
4857
+ target_user: { type: 'UserResponseCommonFields', isSingle: true },
4907
4858
  };
4908
4859
  return decode(typeMappings, input);
4909
4860
  };
@@ -4912,7 +4863,11 @@ decoders.UserReactivatedEvent = (input?: Record<string, any>) => {
4912
4863
  const typeMappings: TypeMapping = {
4913
4864
  created_at: { type: 'DatetimeType', isSingle: true },
4914
4865
 
4915
- user: { type: 'User', isSingle: true },
4866
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4867
+
4868
+ received_at: { type: 'DatetimeType', isSingle: true },
4869
+
4870
+ created_by: { type: 'UserResponseCommonFields', isSingle: true },
4916
4871
  };
4917
4872
  return decode(typeMappings, input);
4918
4873
  };
@@ -4964,7 +4919,11 @@ decoders.UserUnbannedEvent = (input?: Record<string, any>) => {
4964
4919
  const typeMappings: TypeMapping = {
4965
4920
  created_at: { type: 'DatetimeType', isSingle: true },
4966
4921
 
4967
- user: { type: 'User', isSingle: true },
4922
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4923
+
4924
+ received_at: { type: 'DatetimeType', isSingle: true },
4925
+
4926
+ created_by: { type: 'UserResponseCommonFields', isSingle: true },
4968
4927
  };
4969
4928
  return decode(typeMappings, input);
4970
4929
  };
@@ -4973,7 +4932,13 @@ decoders.UserUnmutedEvent = (input?: Record<string, any>) => {
4973
4932
  const typeMappings: TypeMapping = {
4974
4933
  created_at: { type: 'DatetimeType', isSingle: true },
4975
4934
 
4976
- user: { type: 'User', isSingle: true },
4935
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4936
+
4937
+ received_at: { type: 'DatetimeType', isSingle: true },
4938
+
4939
+ target_users: { type: 'UserResponseCommonFields', isSingle: false },
4940
+
4941
+ target_user: { type: 'UserResponseCommonFields', isSingle: true },
4977
4942
  };
4978
4943
  return decode(typeMappings, input);
4979
4944
  };
@@ -4982,7 +4947,9 @@ decoders.UserUnreadReminderEvent = (input?: Record<string, any>) => {
4982
4947
  const typeMappings: TypeMapping = {
4983
4948
  created_at: { type: 'DatetimeType', isSingle: true },
4984
4949
 
4985
- user: { type: 'User', isSingle: true },
4950
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4951
+
4952
+ received_at: { type: 'DatetimeType', isSingle: true },
4986
4953
  };
4987
4954
  return decode(typeMappings, input);
4988
4955
  };