@stream-io/node-sdk 0.7.39 → 0.7.41

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 },
2868
+
2869
+ received_at: { type: 'DatetimeType', isSingle: true },
2857
2870
 
2858
- user: { type: 'User', isSingle: true },
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 },
2894
+
2895
+ member: { type: 'ChannelMemberResponse', isSingle: true },
2896
+
2897
+ received_at: { type: 'DatetimeType', isSingle: true },
2881
2898
 
2882
- user: { type: 'User', isSingle: true },
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 },
3005
+
3006
+ thread_participants: { type: 'UserResponseCommonFields', isSingle: false },
3018
3007
 
3019
- message: { type: 'Message', isSingle: true },
3008
+ channel: { type: 'ChannelResponse', isSingle: true },
3020
3009
 
3021
- user: { type: 'User', isSingle: true },
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 },
@@ -3894,7 +3825,7 @@ decoders.Reaction = (input?: Record<string, any>) => {
3894
3825
 
3895
3826
  updated_at: { type: 'DatetimeType', isSingle: true },
3896
3827
 
3897
- user: { type: 'User', isSingle: true },
3828
+ deleted_at: { type: 'DatetimeType', isSingle: true },
3898
3829
  };
3899
3830
  return decode(typeMappings, input);
3900
3831
  };
@@ -3903,13 +3834,17 @@ decoders.ReactionDeletedEvent = (input?: Record<string, any>) => {
3903
3834
  const typeMappings: TypeMapping = {
3904
3835
  created_at: { type: 'DatetimeType', isSingle: true },
3905
3836
 
3906
- thread_participants: { type: 'User', isSingle: false },
3837
+ channel: { type: 'ChannelResponse', isSingle: true },
3907
3838
 
3908
- message: { type: 'Message', isSingle: true },
3839
+ received_at: { type: 'DatetimeType', isSingle: true },
3909
3840
 
3910
- reaction: { type: 'Reaction', isSingle: true },
3841
+ thread_participants: { type: 'UserResponseCommonFields', isSingle: false },
3911
3842
 
3912
- user: { type: 'User', isSingle: true },
3843
+ message: { type: 'MessageResponse', isSingle: true },
3844
+
3845
+ reaction: { type: 'ReactionResponse', isSingle: true },
3846
+
3847
+ user: { type: 'UserResponseCommonFields', isSingle: true },
3913
3848
  };
3914
3849
  return decode(typeMappings, input);
3915
3850
  };
@@ -3927,13 +3862,17 @@ decoders.ReactionNewEvent = (input?: Record<string, any>) => {
3927
3862
  const typeMappings: TypeMapping = {
3928
3863
  created_at: { type: 'DatetimeType', isSingle: true },
3929
3864
 
3930
- thread_participants: { type: 'User', isSingle: false },
3865
+ channel: { type: 'ChannelResponse', isSingle: true },
3931
3866
 
3932
- message: { type: 'Message', isSingle: true },
3867
+ received_at: { type: 'DatetimeType', isSingle: true },
3933
3868
 
3934
- reaction: { type: 'Reaction', isSingle: true },
3869
+ thread_participants: { type: 'UserResponseCommonFields', isSingle: false },
3870
+
3871
+ message: { type: 'MessageResponse', isSingle: true },
3935
3872
 
3936
- user: { type: 'User', isSingle: true },
3873
+ reaction: { type: 'ReactionResponse', isSingle: true },
3874
+
3875
+ user: { type: 'UserResponseCommonFields', isSingle: true },
3937
3876
  };
3938
3877
  return decode(typeMappings, input);
3939
3878
  };
@@ -3953,11 +3892,15 @@ decoders.ReactionUpdatedEvent = (input?: Record<string, any>) => {
3953
3892
  const typeMappings: TypeMapping = {
3954
3893
  created_at: { type: 'DatetimeType', isSingle: true },
3955
3894
 
3956
- message: { type: 'Message', isSingle: true },
3895
+ channel: { type: 'ChannelResponse', isSingle: true },
3957
3896
 
3958
- reaction: { type: 'Reaction', isSingle: true },
3897
+ message: { type: 'MessageResponse', isSingle: true },
3898
+
3899
+ received_at: { type: 'DatetimeType', isSingle: true },
3900
+
3901
+ reaction: { type: 'ReactionResponse', isSingle: true },
3959
3902
 
3960
- user: { type: 'User', isSingle: true },
3903
+ user: { type: 'UserResponseCommonFields', isSingle: true },
3961
3904
  };
3962
3905
  return decode(typeMappings, input);
3963
3906
  };
@@ -4101,7 +4044,7 @@ decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
4101
4044
 
4102
4045
  actions: { type: 'ActionLogResponse', isSingle: false },
4103
4046
 
4104
- bans: { type: 'Ban', isSingle: false },
4047
+ bans: { type: 'BanInfoResponse', isSingle: false },
4105
4048
 
4106
4049
  flags: { type: 'ModerationFlagResponse', isSingle: false },
4107
4050
 
@@ -4269,9 +4212,9 @@ decoders.SendReactionResponse = (input?: Record<string, any>) => {
4269
4212
  return decode(typeMappings, input);
4270
4213
  };
4271
4214
 
4272
- decoders.SharedLocation = (input?: Record<string, any>) => {
4215
+ decoders.SessionWarningResponse = (input?: Record<string, any>) => {
4273
4216
  const typeMappings: TypeMapping = {
4274
- end_at: { type: 'DatetimeType', isSingle: true },
4217
+ time: { type: 'DatetimeType', isSingle: true },
4275
4218
  };
4276
4219
  return decode(typeMappings, input);
4277
4220
  };
@@ -4424,9 +4367,9 @@ decoders.ThreadUpdatedEvent = (input?: Record<string, any>) => {
4424
4367
  const typeMappings: TypeMapping = {
4425
4368
  created_at: { type: 'DatetimeType', isSingle: true },
4426
4369
 
4427
- thread: { type: 'ThreadResponse', isSingle: true },
4370
+ received_at: { type: 'DatetimeType', isSingle: true },
4428
4371
 
4429
- user: { type: 'User', isSingle: true },
4372
+ thread: { type: 'ThreadResponse', isSingle: true },
4430
4373
  };
4431
4374
  return decode(typeMappings, input);
4432
4375
  };
@@ -4451,7 +4394,7 @@ decoders.ThreadedCommentResponse = (input?: Record<string, any>) => {
4451
4394
 
4452
4395
  replies: { type: 'ThreadedCommentResponse', isSingle: false },
4453
4396
 
4454
- reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
4397
+ reaction_groups: { type: 'FeedsReactionGroupResponse', isSingle: false },
4455
4398
  };
4456
4399
  return decode(typeMappings, input);
4457
4400
  };
@@ -4525,6 +4468,15 @@ decoders.UnreadCountsThread = (input?: Record<string, any>) => {
4525
4468
  return decode(typeMappings, input);
4526
4469
  };
4527
4470
 
4471
+ decoders.UpdateActivitiesPartialBatchResponse = (
4472
+ input?: Record<string, any>,
4473
+ ) => {
4474
+ const typeMappings: TypeMapping = {
4475
+ activities: { type: 'ActivityResponse', isSingle: false },
4476
+ };
4477
+ return decode(typeMappings, input);
4478
+ };
4479
+
4528
4480
  decoders.UpdateActivityPartialResponse = (input?: Record<string, any>) => {
4529
4481
  const typeMappings: TypeMapping = {
4530
4482
  activity: { type: 'ActivityResponse', isSingle: true },
@@ -4788,7 +4740,7 @@ decoders.UpsertModerationTemplateResponse = (input?: Record<string, any>) => {
4788
4740
 
4789
4741
  decoders.UpsertPushPreferencesResponse = (input?: Record<string, any>) => {
4790
4742
  const typeMappings: TypeMapping = {
4791
- user_preferences: { type: 'PushPreferences', isSingle: false },
4743
+ user_preferences: { type: 'PushPreferencesResponse', isSingle: false },
4792
4744
  };
4793
4745
  return decode(typeMappings, input);
4794
4746
  };
@@ -4802,16 +4754,7 @@ decoders.UpsertPushProviderResponse = (input?: Record<string, any>) => {
4802
4754
 
4803
4755
  decoders.UpsertPushTemplateResponse = (input?: Record<string, any>) => {
4804
4756
  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 },
4757
+ template: { type: 'PushTemplateResponse', isSingle: true },
4815
4758
  };
4816
4759
  return decode(typeMappings, input);
4817
4760
  };
@@ -4820,11 +4763,13 @@ decoders.UserBannedEvent = (input?: Record<string, any>) => {
4820
4763
  const typeMappings: TypeMapping = {
4821
4764
  created_at: { type: 'DatetimeType', isSingle: true },
4822
4765
 
4823
- created_by: { type: 'User', isSingle: true },
4766
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4824
4767
 
4825
4768
  expiration: { type: 'DatetimeType', isSingle: true },
4826
4769
 
4827
- user: { type: 'User', isSingle: true },
4770
+ received_at: { type: 'DatetimeType', isSingle: true },
4771
+
4772
+ created_by: { type: 'UserResponseCommonFields', isSingle: true },
4828
4773
  };
4829
4774
  return decode(typeMappings, input);
4830
4775
  };
@@ -4833,9 +4778,11 @@ decoders.UserDeactivatedEvent = (input?: Record<string, any>) => {
4833
4778
  const typeMappings: TypeMapping = {
4834
4779
  created_at: { type: 'DatetimeType', isSingle: true },
4835
4780
 
4836
- created_by: { type: 'User', isSingle: true },
4781
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4782
+
4783
+ received_at: { type: 'DatetimeType', isSingle: true },
4837
4784
 
4838
- user: { type: 'User', isSingle: true },
4785
+ created_by: { type: 'UserResponseCommonFields', isSingle: true },
4839
4786
  };
4840
4787
  return decode(typeMappings, input);
4841
4788
  };
@@ -4844,42 +4791,33 @@ decoders.UserDeletedEvent = (input?: Record<string, any>) => {
4844
4791
  const typeMappings: TypeMapping = {
4845
4792
  created_at: { type: 'DatetimeType', isSingle: true },
4846
4793
 
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 },
4794
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4855
4795
 
4856
- user: { type: 'User', isSingle: true },
4796
+ received_at: { type: 'DatetimeType', isSingle: true },
4857
4797
  };
4858
4798
  return decode(typeMappings, input);
4859
4799
  };
4860
4800
 
4861
- decoders.UserMessagesDeletedEvent = (input?: Record<string, any>) => {
4801
+ decoders.UserFlaggedEvent = (input?: Record<string, any>) => {
4862
4802
  const typeMappings: TypeMapping = {
4863
4803
  created_at: { type: 'DatetimeType', isSingle: true },
4864
4804
 
4865
4805
  user: { type: 'UserResponseCommonFields', isSingle: true },
4866
4806
 
4867
4807
  received_at: { type: 'DatetimeType', isSingle: true },
4808
+
4809
+ target_user: { type: 'UserResponseCommonFields', isSingle: true },
4868
4810
  };
4869
4811
  return decode(typeMappings, input);
4870
4812
  };
4871
4813
 
4872
- decoders.UserMute = (input?: Record<string, any>) => {
4814
+ decoders.UserMessagesDeletedEvent = (input?: Record<string, any>) => {
4873
4815
  const typeMappings: TypeMapping = {
4874
4816
  created_at: { type: 'DatetimeType', isSingle: true },
4875
4817
 
4876
- updated_at: { type: 'DatetimeType', isSingle: true },
4877
-
4878
- expires: { type: 'DatetimeType', isSingle: true },
4879
-
4880
- target: { type: 'User', isSingle: true },
4818
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4881
4819
 
4882
- user: { type: 'User', isSingle: true },
4820
+ received_at: { type: 'DatetimeType', isSingle: true },
4883
4821
  };
4884
4822
  return decode(typeMappings, input);
4885
4823
  };
@@ -4903,7 +4841,13 @@ decoders.UserMutedEvent = (input?: Record<string, any>) => {
4903
4841
  const typeMappings: TypeMapping = {
4904
4842
  created_at: { type: 'DatetimeType', isSingle: true },
4905
4843
 
4906
- user: { type: 'User', isSingle: true },
4844
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4845
+
4846
+ received_at: { type: 'DatetimeType', isSingle: true },
4847
+
4848
+ target_users: { type: 'UserResponseCommonFields', isSingle: false },
4849
+
4850
+ target_user: { type: 'UserResponseCommonFields', isSingle: true },
4907
4851
  };
4908
4852
  return decode(typeMappings, input);
4909
4853
  };
@@ -4912,7 +4856,11 @@ decoders.UserReactivatedEvent = (input?: Record<string, any>) => {
4912
4856
  const typeMappings: TypeMapping = {
4913
4857
  created_at: { type: 'DatetimeType', isSingle: true },
4914
4858
 
4915
- user: { type: 'User', isSingle: true },
4859
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4860
+
4861
+ received_at: { type: 'DatetimeType', isSingle: true },
4862
+
4863
+ created_by: { type: 'UserResponseCommonFields', isSingle: true },
4916
4864
  };
4917
4865
  return decode(typeMappings, input);
4918
4866
  };
@@ -4964,7 +4912,11 @@ decoders.UserUnbannedEvent = (input?: Record<string, any>) => {
4964
4912
  const typeMappings: TypeMapping = {
4965
4913
  created_at: { type: 'DatetimeType', isSingle: true },
4966
4914
 
4967
- user: { type: 'User', isSingle: true },
4915
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4916
+
4917
+ received_at: { type: 'DatetimeType', isSingle: true },
4918
+
4919
+ created_by: { type: 'UserResponseCommonFields', isSingle: true },
4968
4920
  };
4969
4921
  return decode(typeMappings, input);
4970
4922
  };
@@ -4973,7 +4925,13 @@ decoders.UserUnmutedEvent = (input?: Record<string, any>) => {
4973
4925
  const typeMappings: TypeMapping = {
4974
4926
  created_at: { type: 'DatetimeType', isSingle: true },
4975
4927
 
4976
- user: { type: 'User', isSingle: true },
4928
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4929
+
4930
+ received_at: { type: 'DatetimeType', isSingle: true },
4931
+
4932
+ target_users: { type: 'UserResponseCommonFields', isSingle: false },
4933
+
4934
+ target_user: { type: 'UserResponseCommonFields', isSingle: true },
4977
4935
  };
4978
4936
  return decode(typeMappings, input);
4979
4937
  };
@@ -4982,7 +4940,9 @@ decoders.UserUnreadReminderEvent = (input?: Record<string, any>) => {
4982
4940
  const typeMappings: TypeMapping = {
4983
4941
  created_at: { type: 'DatetimeType', isSingle: true },
4984
4942
 
4985
- user: { type: 'User', isSingle: true },
4943
+ user: { type: 'UserResponseCommonFields', isSingle: true },
4944
+
4945
+ received_at: { type: 'DatetimeType', isSingle: true },
4986
4946
  };
4987
4947
  return decode(typeMappings, input);
4988
4948
  };