@stream-io/node-sdk 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +737 -357
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +737 -358
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +28 -2
- package/dist/src/gen/models/index.d.ts +1412 -223
- package/dist/src/gen/moderation/ModerationApi.d.ts +7 -1
- package/dist/src/gen/video/CallApi.d.ts +5 -3
- package/dist/src/gen/video/VideoApi.d.ts +12 -3
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +225 -2
- package/src/gen/common/CommonApi.ts +0 -3
- package/src/gen/model-decoders/index.ts +331 -139
- package/src/gen/models/index.ts +2578 -397
- package/src/gen/moderation/ModerationApi.ts +66 -10
- package/src/gen/video/CallApi.ts +38 -6
- package/src/gen/video/VideoApi.ts +101 -8
|
@@ -38,9 +38,9 @@ decoders.ActionLog = (input?: Record<string, any>) => {
|
|
|
38
38
|
|
|
39
39
|
review_queue_item: { type: 'ReviewQueueItem', isSingle: true },
|
|
40
40
|
|
|
41
|
-
target_user: { type: '
|
|
41
|
+
target_user: { type: 'User', isSingle: true },
|
|
42
42
|
|
|
43
|
-
user: { type: '
|
|
43
|
+
user: { type: 'User', isSingle: true },
|
|
44
44
|
};
|
|
45
45
|
return decode(typeMappings, input);
|
|
46
46
|
};
|
|
@@ -86,9 +86,9 @@ decoders.Ban = (input?: Record<string, any>) => {
|
|
|
86
86
|
|
|
87
87
|
channel: { type: 'Channel', isSingle: true },
|
|
88
88
|
|
|
89
|
-
created_by: { type: '
|
|
89
|
+
created_by: { type: 'User', isSingle: true },
|
|
90
90
|
|
|
91
|
-
target: { type: '
|
|
91
|
+
target: { type: 'User', isSingle: true },
|
|
92
92
|
};
|
|
93
93
|
return decode(typeMappings, input);
|
|
94
94
|
};
|
|
@@ -238,6 +238,36 @@ decoders.CallTypeResponse = (input?: Record<string, any>) => {
|
|
|
238
238
|
return decode(typeMappings, input);
|
|
239
239
|
};
|
|
240
240
|
|
|
241
|
+
decoders.CampaignResponse = (input?: Record<string, any>) => {
|
|
242
|
+
const typeMappings: TypeMapping = {
|
|
243
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
244
|
+
|
|
245
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
246
|
+
|
|
247
|
+
segments: { type: 'Segment', isSingle: false },
|
|
248
|
+
|
|
249
|
+
users: { type: 'UserResponse', isSingle: false },
|
|
250
|
+
|
|
251
|
+
stats: { type: 'CampaignStatsResponse', isSingle: true },
|
|
252
|
+
|
|
253
|
+
scheduled_for: { type: 'DatetimeType', isSingle: true },
|
|
254
|
+
|
|
255
|
+
stop_at: { type: 'DatetimeType', isSingle: true },
|
|
256
|
+
|
|
257
|
+
sender: { type: 'UserResponse', isSingle: true },
|
|
258
|
+
};
|
|
259
|
+
return decode(typeMappings, input);
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
decoders.CampaignStatsResponse = (input?: Record<string, any>) => {
|
|
263
|
+
const typeMappings: TypeMapping = {
|
|
264
|
+
stats_completed_at: { type: 'DatetimeType', isSingle: true },
|
|
265
|
+
|
|
266
|
+
stats_started_at: { type: 'DatetimeType', isSingle: true },
|
|
267
|
+
};
|
|
268
|
+
return decode(typeMappings, input);
|
|
269
|
+
};
|
|
270
|
+
|
|
241
271
|
decoders.Channel = (input?: Record<string, any>) => {
|
|
242
272
|
const typeMappings: TypeMapping = {
|
|
243
273
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -254,11 +284,9 @@ decoders.Channel = (input?: Record<string, any>) => {
|
|
|
254
284
|
|
|
255
285
|
config: { type: 'ChannelConfig', isSingle: true },
|
|
256
286
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
created_by: { type: 'UserObject', isSingle: true },
|
|
287
|
+
created_by: { type: 'User', isSingle: true },
|
|
260
288
|
|
|
261
|
-
truncated_by: { type: '
|
|
289
|
+
truncated_by: { type: 'User', isSingle: true },
|
|
262
290
|
};
|
|
263
291
|
return decode(typeMappings, input);
|
|
264
292
|
};
|
|
@@ -289,6 +317,8 @@ decoders.ChannelMember = (input?: Record<string, any>) => {
|
|
|
289
317
|
|
|
290
318
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
291
319
|
|
|
320
|
+
archived_at: { type: 'DatetimeType', isSingle: true },
|
|
321
|
+
|
|
292
322
|
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
293
323
|
|
|
294
324
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -297,7 +327,9 @@ decoders.ChannelMember = (input?: Record<string, any>) => {
|
|
|
297
327
|
|
|
298
328
|
invite_rejected_at: { type: 'DatetimeType', isSingle: true },
|
|
299
329
|
|
|
300
|
-
|
|
330
|
+
pinned_at: { type: 'DatetimeType', isSingle: true },
|
|
331
|
+
|
|
332
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
301
333
|
};
|
|
302
334
|
return decode(typeMappings, input);
|
|
303
335
|
};
|
|
@@ -308,6 +340,8 @@ decoders.ChannelMemberResponse = (input?: Record<string, any>) => {
|
|
|
308
340
|
|
|
309
341
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
310
342
|
|
|
343
|
+
archived_at: { type: 'DatetimeType', isSingle: true },
|
|
344
|
+
|
|
311
345
|
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
312
346
|
|
|
313
347
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -316,6 +350,8 @@ decoders.ChannelMemberResponse = (input?: Record<string, any>) => {
|
|
|
316
350
|
|
|
317
351
|
invite_rejected_at: { type: 'DatetimeType', isSingle: true },
|
|
318
352
|
|
|
353
|
+
pinned_at: { type: 'DatetimeType', isSingle: true },
|
|
354
|
+
|
|
319
355
|
user: { type: 'UserResponse', isSingle: true },
|
|
320
356
|
};
|
|
321
357
|
return decode(typeMappings, input);
|
|
@@ -331,7 +367,7 @@ decoders.ChannelMute = (input?: Record<string, any>) => {
|
|
|
331
367
|
|
|
332
368
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
333
369
|
|
|
334
|
-
user: { type: '
|
|
370
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
335
371
|
};
|
|
336
372
|
return decode(typeMappings, input);
|
|
337
373
|
};
|
|
@@ -356,9 +392,9 @@ decoders.ChannelResponse = (input?: Record<string, any>) => {
|
|
|
356
392
|
|
|
357
393
|
config: { type: 'ChannelConfigWithInfo', isSingle: true },
|
|
358
394
|
|
|
359
|
-
created_by: { type: '
|
|
395
|
+
created_by: { type: 'UserResponse', isSingle: true },
|
|
360
396
|
|
|
361
|
-
truncated_by: { type: '
|
|
397
|
+
truncated_by: { type: 'UserResponse', isSingle: true },
|
|
362
398
|
};
|
|
363
399
|
return decode(typeMappings, input);
|
|
364
400
|
};
|
|
@@ -371,7 +407,7 @@ decoders.ChannelStateResponse = (input?: Record<string, any>) => {
|
|
|
371
407
|
|
|
372
408
|
pinned_messages: { type: 'MessageResponse', isSingle: false },
|
|
373
409
|
|
|
374
|
-
threads: { type: '
|
|
410
|
+
threads: { type: 'ThreadStateResponse', isSingle: false },
|
|
375
411
|
|
|
376
412
|
hide_messages_before: { type: 'DatetimeType', isSingle: true },
|
|
377
413
|
|
|
@@ -396,7 +432,7 @@ decoders.ChannelStateResponseFields = (input?: Record<string, any>) => {
|
|
|
396
432
|
|
|
397
433
|
pinned_messages: { type: 'MessageResponse', isSingle: false },
|
|
398
434
|
|
|
399
|
-
threads: { type: '
|
|
435
|
+
threads: { type: 'ThreadStateResponse', isSingle: false },
|
|
400
436
|
|
|
401
437
|
hide_messages_before: { type: 'DatetimeType', isSingle: true },
|
|
402
438
|
|
|
@@ -445,8 +481,6 @@ decoders.ConfigResponse = (input?: Record<string, any>) => {
|
|
|
445
481
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
446
482
|
|
|
447
483
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
448
|
-
|
|
449
|
-
velocity_filter_config: { type: 'VelocityFilterConfig', isSingle: true },
|
|
450
484
|
};
|
|
451
485
|
return decode(typeMappings, input);
|
|
452
486
|
};
|
|
@@ -499,9 +533,7 @@ decoders.CreateRoleResponse = (input?: Record<string, any>) => {
|
|
|
499
533
|
|
|
500
534
|
decoders.CustomCheckResponse = (input?: Record<string, any>) => {
|
|
501
535
|
const typeMappings: TypeMapping = {
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
reviewed_at: { type: 'DatetimeType', isSingle: true },
|
|
536
|
+
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
505
537
|
};
|
|
506
538
|
return decode(typeMappings, input);
|
|
507
539
|
};
|
|
@@ -541,6 +573,13 @@ decoders.Device = (input?: Record<string, any>) => {
|
|
|
541
573
|
return decode(typeMappings, input);
|
|
542
574
|
};
|
|
543
575
|
|
|
576
|
+
decoders.DeviceResponse = (input?: Record<string, any>) => {
|
|
577
|
+
const typeMappings: TypeMapping = {
|
|
578
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
579
|
+
};
|
|
580
|
+
return decode(typeMappings, input);
|
|
581
|
+
};
|
|
582
|
+
|
|
544
583
|
decoders.EgressRTMPResponse = (input?: Record<string, any>) => {
|
|
545
584
|
const typeMappings: TypeMapping = {
|
|
546
585
|
started_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -548,6 +587,55 @@ decoders.EgressRTMPResponse = (input?: Record<string, any>) => {
|
|
|
548
587
|
return decode(typeMappings, input);
|
|
549
588
|
};
|
|
550
589
|
|
|
590
|
+
decoders.EntityCreator = (input?: Record<string, any>) => {
|
|
591
|
+
const typeMappings: TypeMapping = {
|
|
592
|
+
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
593
|
+
|
|
594
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
595
|
+
|
|
596
|
+
deactivated_at: { type: 'DatetimeType', isSingle: true },
|
|
597
|
+
|
|
598
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
599
|
+
|
|
600
|
+
last_active: { type: 'DatetimeType', isSingle: true },
|
|
601
|
+
|
|
602
|
+
last_engaged_at: { type: 'DatetimeType', isSingle: true },
|
|
603
|
+
|
|
604
|
+
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
605
|
+
|
|
606
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
607
|
+
|
|
608
|
+
push_notifications: { type: 'PushNotificationSettings', isSingle: true },
|
|
609
|
+
};
|
|
610
|
+
return decode(typeMappings, input);
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
decoders.EntityCreatorResponse = (input?: Record<string, any>) => {
|
|
614
|
+
const typeMappings: TypeMapping = {
|
|
615
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
616
|
+
|
|
617
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
618
|
+
|
|
619
|
+
devices: { type: 'DeviceResponse', isSingle: false },
|
|
620
|
+
|
|
621
|
+
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
622
|
+
|
|
623
|
+
deactivated_at: { type: 'DatetimeType', isSingle: true },
|
|
624
|
+
|
|
625
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
626
|
+
|
|
627
|
+
last_active: { type: 'DatetimeType', isSingle: true },
|
|
628
|
+
|
|
629
|
+
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
630
|
+
|
|
631
|
+
push_notifications: {
|
|
632
|
+
type: 'PushNotificationSettingsResponse',
|
|
633
|
+
isSingle: true,
|
|
634
|
+
},
|
|
635
|
+
};
|
|
636
|
+
return decode(typeMappings, input);
|
|
637
|
+
};
|
|
638
|
+
|
|
551
639
|
decoders.EventResponse = (input?: Record<string, any>) => {
|
|
552
640
|
const typeMappings: TypeMapping = {
|
|
553
641
|
event: { type: 'WSEvent', isSingle: true },
|
|
@@ -557,9 +645,9 @@ decoders.EventResponse = (input?: Record<string, any>) => {
|
|
|
557
645
|
|
|
558
646
|
decoders.ExportUserResponse = (input?: Record<string, any>) => {
|
|
559
647
|
const typeMappings: TypeMapping = {
|
|
560
|
-
messages: { type: '
|
|
648
|
+
messages: { type: 'MessageResponse', isSingle: false },
|
|
561
649
|
|
|
562
|
-
reactions: { type: '
|
|
650
|
+
reactions: { type: 'ReactionResponse', isSingle: false },
|
|
563
651
|
|
|
564
652
|
user: { type: 'UserResponse', isSingle: true },
|
|
565
653
|
};
|
|
@@ -572,7 +660,18 @@ decoders.Flag2 = (input?: Record<string, any>) => {
|
|
|
572
660
|
|
|
573
661
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
574
662
|
|
|
575
|
-
user: { type: '
|
|
663
|
+
user: { type: 'User', isSingle: true },
|
|
664
|
+
};
|
|
665
|
+
return decode(typeMappings, input);
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
decoders.Flag2Response = (input?: Record<string, any>) => {
|
|
669
|
+
const typeMappings: TypeMapping = {
|
|
670
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
671
|
+
|
|
672
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
673
|
+
|
|
674
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
576
675
|
};
|
|
577
676
|
return decode(typeMappings, input);
|
|
578
677
|
};
|
|
@@ -599,7 +698,7 @@ decoders.FullUserResponse = (input?: Record<string, any>) => {
|
|
|
599
698
|
|
|
600
699
|
channel_mutes: { type: 'ChannelMute', isSingle: false },
|
|
601
700
|
|
|
602
|
-
devices: { type: '
|
|
701
|
+
devices: { type: 'DeviceResponse', isSingle: false },
|
|
603
702
|
|
|
604
703
|
mutes: { type: 'UserMuteResponse', isSingle: false },
|
|
605
704
|
|
|
@@ -658,6 +757,13 @@ decoders.GetCallTypeResponse = (input?: Record<string, any>) => {
|
|
|
658
757
|
return decode(typeMappings, input);
|
|
659
758
|
};
|
|
660
759
|
|
|
760
|
+
decoders.GetCampaignResponse = (input?: Record<string, any>) => {
|
|
761
|
+
const typeMappings: TypeMapping = {
|
|
762
|
+
campaign: { type: 'CampaignResponse', isSingle: true },
|
|
763
|
+
};
|
|
764
|
+
return decode(typeMappings, input);
|
|
765
|
+
};
|
|
766
|
+
|
|
661
767
|
decoders.GetChannelTypeResponse = (input?: Record<string, any>) => {
|
|
662
768
|
const typeMappings: TypeMapping = {
|
|
663
769
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -703,7 +809,7 @@ decoders.GetImportResponse = (input?: Record<string, any>) => {
|
|
|
703
809
|
|
|
704
810
|
decoders.GetManyMessagesResponse = (input?: Record<string, any>) => {
|
|
705
811
|
const typeMappings: TypeMapping = {
|
|
706
|
-
messages: { type: '
|
|
812
|
+
messages: { type: 'MessageResponse', isSingle: false },
|
|
707
813
|
};
|
|
708
814
|
return decode(typeMappings, input);
|
|
709
815
|
};
|
|
@@ -740,9 +846,16 @@ decoders.GetRepliesResponse = (input?: Record<string, any>) => {
|
|
|
740
846
|
|
|
741
847
|
decoders.GetReviewQueueItemResponse = (input?: Record<string, any>) => {
|
|
742
848
|
const typeMappings: TypeMapping = {
|
|
743
|
-
history: { type: '
|
|
849
|
+
history: { type: 'ReviewQueueItemResponse', isSingle: false },
|
|
744
850
|
|
|
745
|
-
item: { type: '
|
|
851
|
+
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
852
|
+
};
|
|
853
|
+
return decode(typeMappings, input);
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
decoders.GetSegmentResponse = (input?: Record<string, any>) => {
|
|
857
|
+
const typeMappings: TypeMapping = {
|
|
858
|
+
segment: { type: 'SegmentResponse', isSingle: true },
|
|
746
859
|
};
|
|
747
860
|
return decode(typeMappings, input);
|
|
748
861
|
};
|
|
@@ -829,7 +942,7 @@ decoders.ListCommandsResponse = (input?: Record<string, any>) => {
|
|
|
829
942
|
|
|
830
943
|
decoders.ListDevicesResponse = (input?: Record<string, any>) => {
|
|
831
944
|
const typeMappings: TypeMapping = {
|
|
832
|
-
devices: { type: '
|
|
945
|
+
devices: { type: 'DeviceResponse', isSingle: false },
|
|
833
946
|
};
|
|
834
947
|
return decode(typeMappings, input);
|
|
835
948
|
};
|
|
@@ -904,7 +1017,7 @@ decoders.Message = (input?: Record<string, any>) => {
|
|
|
904
1017
|
|
|
905
1018
|
latest_reactions: { type: 'Reaction', isSingle: false },
|
|
906
1019
|
|
|
907
|
-
mentioned_users: { type: '
|
|
1020
|
+
mentioned_users: { type: 'User', isSingle: false },
|
|
908
1021
|
|
|
909
1022
|
own_reactions: { type: 'Reaction', isSingle: false },
|
|
910
1023
|
|
|
@@ -918,15 +1031,15 @@ decoders.Message = (input?: Record<string, any>) => {
|
|
|
918
1031
|
|
|
919
1032
|
pinned_at: { type: 'DatetimeType', isSingle: true },
|
|
920
1033
|
|
|
921
|
-
thread_participants: { type: '
|
|
1034
|
+
thread_participants: { type: 'User', isSingle: false },
|
|
922
1035
|
|
|
923
|
-
pinned_by: { type: '
|
|
1036
|
+
pinned_by: { type: 'User', isSingle: true },
|
|
924
1037
|
|
|
925
1038
|
poll: { type: 'Poll', isSingle: true },
|
|
926
1039
|
|
|
927
1040
|
quoted_message: { type: 'Message', isSingle: true },
|
|
928
1041
|
|
|
929
|
-
user: { type: '
|
|
1042
|
+
user: { type: 'User', isSingle: true },
|
|
930
1043
|
};
|
|
931
1044
|
return decode(typeMappings, input);
|
|
932
1045
|
};
|
|
@@ -980,7 +1093,7 @@ decoders.MessageReadEvent = (input?: Record<string, any>) => {
|
|
|
980
1093
|
|
|
981
1094
|
thread: { type: 'ThreadResponse', isSingle: true },
|
|
982
1095
|
|
|
983
|
-
user: { type: '
|
|
1096
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
984
1097
|
};
|
|
985
1098
|
return decode(typeMappings, input);
|
|
986
1099
|
};
|
|
@@ -1011,9 +1124,9 @@ decoders.MessageResponse = (input?: Record<string, any>) => {
|
|
|
1011
1124
|
|
|
1012
1125
|
pinned_by: { type: 'UserResponse', isSingle: true },
|
|
1013
1126
|
|
|
1014
|
-
poll: { type: '
|
|
1127
|
+
poll: { type: 'PollResponseData', isSingle: true },
|
|
1015
1128
|
|
|
1016
|
-
quoted_message: { type: '
|
|
1129
|
+
quoted_message: { type: 'MessageResponse', isSingle: true },
|
|
1017
1130
|
|
|
1018
1131
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
1019
1132
|
};
|
|
@@ -1048,9 +1161,9 @@ decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
|
|
|
1048
1161
|
|
|
1049
1162
|
pinned_by: { type: 'UserResponse', isSingle: true },
|
|
1050
1163
|
|
|
1051
|
-
poll: { type: '
|
|
1164
|
+
poll: { type: 'PollResponseData', isSingle: true },
|
|
1052
1165
|
|
|
1053
|
-
quoted_message: { type: '
|
|
1166
|
+
quoted_message: { type: 'MessageResponse', isSingle: true },
|
|
1054
1167
|
|
|
1055
1168
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
1056
1169
|
};
|
|
@@ -1059,6 +1172,8 @@ decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
|
|
|
1059
1172
|
|
|
1060
1173
|
decoders.ModerationUsageStats = (input?: Record<string, any>) => {
|
|
1061
1174
|
const typeMappings: TypeMapping = {
|
|
1175
|
+
reference_date: { type: 'DatetimeType', isSingle: true },
|
|
1176
|
+
|
|
1062
1177
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1063
1178
|
};
|
|
1064
1179
|
return decode(typeMappings, input);
|
|
@@ -1109,11 +1224,41 @@ decoders.OwnUser = (input?: Record<string, any>) => {
|
|
|
1109
1224
|
|
|
1110
1225
|
last_active: { type: 'DatetimeType', isSingle: true },
|
|
1111
1226
|
|
|
1227
|
+
last_engaged_at: { type: 'DatetimeType', isSingle: true },
|
|
1228
|
+
|
|
1112
1229
|
push_notifications: { type: 'PushNotificationSettings', isSingle: true },
|
|
1113
1230
|
};
|
|
1114
1231
|
return decode(typeMappings, input);
|
|
1115
1232
|
};
|
|
1116
1233
|
|
|
1234
|
+
decoders.OwnUserResponse = (input?: Record<string, any>) => {
|
|
1235
|
+
const typeMappings: TypeMapping = {
|
|
1236
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1237
|
+
|
|
1238
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1239
|
+
|
|
1240
|
+
channel_mutes: { type: 'ChannelMute', isSingle: false },
|
|
1241
|
+
|
|
1242
|
+
devices: { type: 'DeviceResponse', isSingle: false },
|
|
1243
|
+
|
|
1244
|
+
mutes: { type: 'UserMuteResponse', isSingle: false },
|
|
1245
|
+
|
|
1246
|
+
deactivated_at: { type: 'DatetimeType', isSingle: true },
|
|
1247
|
+
|
|
1248
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1249
|
+
|
|
1250
|
+
last_active: { type: 'DatetimeType', isSingle: true },
|
|
1251
|
+
|
|
1252
|
+
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
1253
|
+
|
|
1254
|
+
push_notifications: {
|
|
1255
|
+
type: 'PushNotificationSettingsResponse',
|
|
1256
|
+
isSingle: true,
|
|
1257
|
+
},
|
|
1258
|
+
};
|
|
1259
|
+
return decode(typeMappings, input);
|
|
1260
|
+
};
|
|
1261
|
+
|
|
1117
1262
|
decoders.PendingMessageResponse = (input?: Record<string, any>) => {
|
|
1118
1263
|
const typeMappings: TypeMapping = {
|
|
1119
1264
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
@@ -1135,7 +1280,7 @@ decoders.Poll = (input?: Record<string, any>) => {
|
|
|
1135
1280
|
|
|
1136
1281
|
own_votes: { type: 'PollVote', isSingle: false },
|
|
1137
1282
|
|
|
1138
|
-
created_by: { type: '
|
|
1283
|
+
created_by: { type: 'User', isSingle: true },
|
|
1139
1284
|
};
|
|
1140
1285
|
return decode(typeMappings, input);
|
|
1141
1286
|
};
|
|
@@ -1153,6 +1298,8 @@ decoders.PollResponseData = (input?: Record<string, any>) => {
|
|
|
1153
1298
|
|
|
1154
1299
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1155
1300
|
|
|
1301
|
+
latest_answers: { type: 'PollVoteResponseData', isSingle: false },
|
|
1302
|
+
|
|
1156
1303
|
own_votes: { type: 'PollVoteResponseData', isSingle: false },
|
|
1157
1304
|
|
|
1158
1305
|
created_by: { type: 'UserResponse', isSingle: true },
|
|
@@ -1166,7 +1313,7 @@ decoders.PollVote = (input?: Record<string, any>) => {
|
|
|
1166
1313
|
|
|
1167
1314
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1168
1315
|
|
|
1169
|
-
user: { type: '
|
|
1316
|
+
user: { type: 'User', isSingle: true },
|
|
1170
1317
|
};
|
|
1171
1318
|
return decode(typeMappings, input);
|
|
1172
1319
|
};
|
|
@@ -1267,6 +1414,13 @@ decoders.QueryCallsResponse = (input?: Record<string, any>) => {
|
|
|
1267
1414
|
return decode(typeMappings, input);
|
|
1268
1415
|
};
|
|
1269
1416
|
|
|
1417
|
+
decoders.QueryCampaignsResponse = (input?: Record<string, any>) => {
|
|
1418
|
+
const typeMappings: TypeMapping = {
|
|
1419
|
+
campaigns: { type: 'CampaignResponse', isSingle: false },
|
|
1420
|
+
};
|
|
1421
|
+
return decode(typeMappings, input);
|
|
1422
|
+
};
|
|
1423
|
+
|
|
1270
1424
|
decoders.QueryChannelsResponse = (input?: Record<string, any>) => {
|
|
1271
1425
|
const typeMappings: TypeMapping = {
|
|
1272
1426
|
channels: { type: 'ChannelStateResponseFields', isSingle: false },
|
|
@@ -1306,9 +1460,16 @@ decoders.QueryMessageHistoryResponse = (input?: Record<string, any>) => {
|
|
|
1306
1460
|
return decode(typeMappings, input);
|
|
1307
1461
|
};
|
|
1308
1462
|
|
|
1463
|
+
decoders.QueryModerationConfigsResponse = (input?: Record<string, any>) => {
|
|
1464
|
+
const typeMappings: TypeMapping = {
|
|
1465
|
+
configs: { type: 'ConfigResponse', isSingle: false },
|
|
1466
|
+
};
|
|
1467
|
+
return decode(typeMappings, input);
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1309
1470
|
decoders.QueryModerationLogsResponse = (input?: Record<string, any>) => {
|
|
1310
1471
|
const typeMappings: TypeMapping = {
|
|
1311
|
-
|
|
1472
|
+
logs: { type: 'ActionLogResponse', isSingle: false },
|
|
1312
1473
|
};
|
|
1313
1474
|
return decode(typeMappings, input);
|
|
1314
1475
|
};
|
|
@@ -1329,7 +1490,21 @@ decoders.QueryReactionsResponse = (input?: Record<string, any>) => {
|
|
|
1329
1490
|
|
|
1330
1491
|
decoders.QueryReviewQueueResponse = (input?: Record<string, any>) => {
|
|
1331
1492
|
const typeMappings: TypeMapping = {
|
|
1332
|
-
items: { type: '
|
|
1493
|
+
items: { type: 'ReviewQueueItemResponse', isSingle: false },
|
|
1494
|
+
};
|
|
1495
|
+
return decode(typeMappings, input);
|
|
1496
|
+
};
|
|
1497
|
+
|
|
1498
|
+
decoders.QuerySegmentTargetsResponse = (input?: Record<string, any>) => {
|
|
1499
|
+
const typeMappings: TypeMapping = {
|
|
1500
|
+
targets: { type: 'SegmentTargetResponse', isSingle: false },
|
|
1501
|
+
};
|
|
1502
|
+
return decode(typeMappings, input);
|
|
1503
|
+
};
|
|
1504
|
+
|
|
1505
|
+
decoders.QuerySegmentsResponse = (input?: Record<string, any>) => {
|
|
1506
|
+
const typeMappings: TypeMapping = {
|
|
1507
|
+
segments: { type: 'SegmentResponse', isSingle: false },
|
|
1333
1508
|
};
|
|
1334
1509
|
return decode(typeMappings, input);
|
|
1335
1510
|
};
|
|
@@ -1361,7 +1536,7 @@ decoders.Reaction = (input?: Record<string, any>) => {
|
|
|
1361
1536
|
|
|
1362
1537
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1363
1538
|
|
|
1364
|
-
user: { type: '
|
|
1539
|
+
user: { type: 'User', isSingle: true },
|
|
1365
1540
|
};
|
|
1366
1541
|
return decode(typeMappings, input);
|
|
1367
1542
|
};
|
|
@@ -1402,15 +1577,6 @@ decoders.ReactivateUserResponse = (input?: Record<string, any>) => {
|
|
|
1402
1577
|
return decode(typeMappings, input);
|
|
1403
1578
|
};
|
|
1404
1579
|
|
|
1405
|
-
decoders.Read = (input?: Record<string, any>) => {
|
|
1406
|
-
const typeMappings: TypeMapping = {
|
|
1407
|
-
last_read: { type: 'DatetimeType', isSingle: true },
|
|
1408
|
-
|
|
1409
|
-
user: { type: 'UserObject', isSingle: true },
|
|
1410
|
-
};
|
|
1411
|
-
return decode(typeMappings, input);
|
|
1412
|
-
};
|
|
1413
|
-
|
|
1414
1580
|
decoders.ReadStateResponse = (input?: Record<string, any>) => {
|
|
1415
1581
|
const typeMappings: TypeMapping = {
|
|
1416
1582
|
last_read: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1436,9 +1602,9 @@ decoders.ReviewQueueItem = (input?: Record<string, any>) => {
|
|
|
1436
1602
|
|
|
1437
1603
|
reviewed_at: { type: 'NullTime', isSingle: true },
|
|
1438
1604
|
|
|
1439
|
-
assigned_to: { type: '
|
|
1605
|
+
assigned_to: { type: 'User', isSingle: true },
|
|
1440
1606
|
|
|
1441
|
-
entity_creator: { type: '
|
|
1607
|
+
entity_creator: { type: 'EntityCreator', isSingle: true },
|
|
1442
1608
|
|
|
1443
1609
|
feeds_v2_reaction: { type: 'Reaction', isSingle: true },
|
|
1444
1610
|
|
|
@@ -1447,6 +1613,33 @@ decoders.ReviewQueueItem = (input?: Record<string, any>) => {
|
|
|
1447
1613
|
return decode(typeMappings, input);
|
|
1448
1614
|
};
|
|
1449
1615
|
|
|
1616
|
+
decoders.ReviewQueueItemResponse = (input?: Record<string, any>) => {
|
|
1617
|
+
const typeMappings: TypeMapping = {
|
|
1618
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1619
|
+
|
|
1620
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1621
|
+
|
|
1622
|
+
actions: { type: 'ActionLogResponse', isSingle: false },
|
|
1623
|
+
|
|
1624
|
+
bans: { type: 'Ban', isSingle: false },
|
|
1625
|
+
|
|
1626
|
+
flags: { type: 'Flag2Response', isSingle: false },
|
|
1627
|
+
|
|
1628
|
+
completed_at: { type: 'DatetimeType', isSingle: true },
|
|
1629
|
+
|
|
1630
|
+
reviewed_at: { type: 'DatetimeType', isSingle: true },
|
|
1631
|
+
|
|
1632
|
+
assigned_to: { type: 'UserResponse', isSingle: true },
|
|
1633
|
+
|
|
1634
|
+
entity_creator: { type: 'EntityCreatorResponse', isSingle: true },
|
|
1635
|
+
|
|
1636
|
+
feeds_v2_reaction: { type: 'Reaction', isSingle: true },
|
|
1637
|
+
|
|
1638
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
1639
|
+
};
|
|
1640
|
+
return decode(typeMappings, input);
|
|
1641
|
+
};
|
|
1642
|
+
|
|
1450
1643
|
decoders.Role = (input?: Record<string, any>) => {
|
|
1451
1644
|
const typeMappings: TypeMapping = {
|
|
1452
1645
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1469,13 +1662,13 @@ decoders.SearchResultMessage = (input?: Record<string, any>) => {
|
|
|
1469
1662
|
|
|
1470
1663
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1471
1664
|
|
|
1472
|
-
latest_reactions: { type: '
|
|
1665
|
+
latest_reactions: { type: 'ReactionResponse', isSingle: false },
|
|
1473
1666
|
|
|
1474
|
-
mentioned_users: { type: '
|
|
1667
|
+
mentioned_users: { type: 'UserResponse', isSingle: false },
|
|
1475
1668
|
|
|
1476
|
-
own_reactions: { type: '
|
|
1669
|
+
own_reactions: { type: 'ReactionResponse', isSingle: false },
|
|
1477
1670
|
|
|
1478
|
-
|
|
1671
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1479
1672
|
|
|
1480
1673
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1481
1674
|
|
|
@@ -1485,17 +1678,46 @@ decoders.SearchResultMessage = (input?: Record<string, any>) => {
|
|
|
1485
1678
|
|
|
1486
1679
|
pinned_at: { type: 'DatetimeType', isSingle: true },
|
|
1487
1680
|
|
|
1488
|
-
thread_participants: { type: '
|
|
1681
|
+
thread_participants: { type: 'UserResponse', isSingle: false },
|
|
1489
1682
|
|
|
1490
1683
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1491
1684
|
|
|
1492
|
-
pinned_by: { type: '
|
|
1685
|
+
pinned_by: { type: 'UserResponse', isSingle: true },
|
|
1493
1686
|
|
|
1494
|
-
poll: { type: '
|
|
1687
|
+
poll: { type: 'PollResponseData', isSingle: true },
|
|
1495
1688
|
|
|
1496
|
-
quoted_message: { type: '
|
|
1689
|
+
quoted_message: { type: 'MessageResponse', isSingle: true },
|
|
1497
1690
|
|
|
1498
|
-
|
|
1691
|
+
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
1692
|
+
};
|
|
1693
|
+
return decode(typeMappings, input);
|
|
1694
|
+
};
|
|
1695
|
+
|
|
1696
|
+
decoders.Segment = (input?: Record<string, any>) => {
|
|
1697
|
+
const typeMappings: TypeMapping = {
|
|
1698
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1699
|
+
|
|
1700
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1701
|
+
|
|
1702
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1703
|
+
};
|
|
1704
|
+
return decode(typeMappings, input);
|
|
1705
|
+
};
|
|
1706
|
+
|
|
1707
|
+
decoders.SegmentResponse = (input?: Record<string, any>) => {
|
|
1708
|
+
const typeMappings: TypeMapping = {
|
|
1709
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1710
|
+
|
|
1711
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1712
|
+
|
|
1713
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1714
|
+
};
|
|
1715
|
+
return decode(typeMappings, input);
|
|
1716
|
+
};
|
|
1717
|
+
|
|
1718
|
+
decoders.SegmentTargetResponse = (input?: Record<string, any>) => {
|
|
1719
|
+
const typeMappings: TypeMapping = {
|
|
1720
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1499
1721
|
};
|
|
1500
1722
|
return decode(typeMappings, input);
|
|
1501
1723
|
};
|
|
@@ -1516,6 +1738,13 @@ decoders.SendReactionResponse = (input?: Record<string, any>) => {
|
|
|
1516
1738
|
return decode(typeMappings, input);
|
|
1517
1739
|
};
|
|
1518
1740
|
|
|
1741
|
+
decoders.StartCampaignResponse = (input?: Record<string, any>) => {
|
|
1742
|
+
const typeMappings: TypeMapping = {
|
|
1743
|
+
campaign: { type: 'CampaignResponse', isSingle: true },
|
|
1744
|
+
};
|
|
1745
|
+
return decode(typeMappings, input);
|
|
1746
|
+
};
|
|
1747
|
+
|
|
1519
1748
|
decoders.StopLiveResponse = (input?: Record<string, any>) => {
|
|
1520
1749
|
const typeMappings: TypeMapping = {
|
|
1521
1750
|
call: { type: 'CallResponse', isSingle: true },
|
|
@@ -1540,7 +1769,7 @@ decoders.ThreadParticipant = (input?: Record<string, any>) => {
|
|
|
1540
1769
|
|
|
1541
1770
|
left_thread_at: { type: 'DatetimeType', isSingle: true },
|
|
1542
1771
|
|
|
1543
|
-
user: { type: '
|
|
1772
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1544
1773
|
};
|
|
1545
1774
|
return decode(typeMappings, input);
|
|
1546
1775
|
};
|
|
@@ -1559,34 +1788,9 @@ decoders.ThreadResponse = (input?: Record<string, any>) => {
|
|
|
1559
1788
|
|
|
1560
1789
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1561
1790
|
|
|
1562
|
-
created_by: { type: '
|
|
1563
|
-
|
|
1564
|
-
parent_message: { type: 'Message', isSingle: true },
|
|
1565
|
-
};
|
|
1566
|
-
return decode(typeMappings, input);
|
|
1567
|
-
};
|
|
1568
|
-
|
|
1569
|
-
decoders.ThreadState = (input?: Record<string, any>) => {
|
|
1570
|
-
const typeMappings: TypeMapping = {
|
|
1571
|
-
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1572
|
-
|
|
1573
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1574
|
-
|
|
1575
|
-
latest_replies: { type: 'Message', isSingle: false },
|
|
1576
|
-
|
|
1577
|
-
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1578
|
-
|
|
1579
|
-
last_message_at: { type: 'DatetimeType', isSingle: true },
|
|
1580
|
-
|
|
1581
|
-
read: { type: 'Read', isSingle: false },
|
|
1582
|
-
|
|
1583
|
-
thread_participants: { type: 'ThreadParticipant', isSingle: false },
|
|
1584
|
-
|
|
1585
|
-
channel: { type: 'Channel', isSingle: true },
|
|
1586
|
-
|
|
1587
|
-
created_by: { type: 'UserObject', isSingle: true },
|
|
1791
|
+
created_by: { type: 'UserResponse', isSingle: true },
|
|
1588
1792
|
|
|
1589
|
-
parent_message: { type: '
|
|
1793
|
+
parent_message: { type: 'MessageResponse', isSingle: true },
|
|
1590
1794
|
};
|
|
1591
1795
|
return decode(typeMappings, input);
|
|
1592
1796
|
};
|
|
@@ -1603,7 +1807,7 @@ decoders.ThreadStateResponse = (input?: Record<string, any>) => {
|
|
|
1603
1807
|
|
|
1604
1808
|
last_message_at: { type: 'DatetimeType', isSingle: true },
|
|
1605
1809
|
|
|
1606
|
-
read: { type: '
|
|
1810
|
+
read: { type: 'ReadStateResponse', isSingle: false },
|
|
1607
1811
|
|
|
1608
1812
|
thread_participants: { type: 'ThreadParticipant', isSingle: false },
|
|
1609
1813
|
|
|
@@ -1611,7 +1815,7 @@ decoders.ThreadStateResponse = (input?: Record<string, any>) => {
|
|
|
1611
1815
|
|
|
1612
1816
|
created_by: { type: 'UserResponse', isSingle: true },
|
|
1613
1817
|
|
|
1614
|
-
parent_message: { type: '
|
|
1818
|
+
parent_message: { type: 'MessageResponse', isSingle: true },
|
|
1615
1819
|
};
|
|
1616
1820
|
return decode(typeMappings, input);
|
|
1617
1821
|
};
|
|
@@ -1695,7 +1899,7 @@ decoders.UpdateChannelResponse = (input?: Record<string, any>) => {
|
|
|
1695
1899
|
|
|
1696
1900
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1697
1901
|
|
|
1698
|
-
message: { type: '
|
|
1902
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
1699
1903
|
};
|
|
1700
1904
|
return decode(typeMappings, input);
|
|
1701
1905
|
};
|
|
@@ -1725,14 +1929,14 @@ decoders.UpdateMemberPartialResponse = (input?: Record<string, any>) => {
|
|
|
1725
1929
|
|
|
1726
1930
|
decoders.UpdateMessagePartialResponse = (input?: Record<string, any>) => {
|
|
1727
1931
|
const typeMappings: TypeMapping = {
|
|
1728
|
-
message: { type: '
|
|
1932
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
1729
1933
|
};
|
|
1730
1934
|
return decode(typeMappings, input);
|
|
1731
1935
|
};
|
|
1732
1936
|
|
|
1733
1937
|
decoders.UpdateMessageResponse = (input?: Record<string, any>) => {
|
|
1734
1938
|
const typeMappings: TypeMapping = {
|
|
1735
|
-
message: { type: '
|
|
1939
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
1736
1940
|
};
|
|
1737
1941
|
return decode(typeMappings, input);
|
|
1738
1942
|
};
|
|
@@ -1774,6 +1978,29 @@ decoders.UpsertPushProviderResponse = (input?: Record<string, any>) => {
|
|
|
1774
1978
|
return decode(typeMappings, input);
|
|
1775
1979
|
};
|
|
1776
1980
|
|
|
1981
|
+
decoders.User = (input?: Record<string, any>) => {
|
|
1982
|
+
const typeMappings: TypeMapping = {
|
|
1983
|
+
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
1984
|
+
|
|
1985
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1986
|
+
|
|
1987
|
+
deactivated_at: { type: 'DatetimeType', isSingle: true },
|
|
1988
|
+
|
|
1989
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1990
|
+
|
|
1991
|
+
last_active: { type: 'DatetimeType', isSingle: true },
|
|
1992
|
+
|
|
1993
|
+
last_engaged_at: { type: 'DatetimeType', isSingle: true },
|
|
1994
|
+
|
|
1995
|
+
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
1996
|
+
|
|
1997
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1998
|
+
|
|
1999
|
+
push_notifications: { type: 'PushNotificationSettings', isSingle: true },
|
|
2000
|
+
};
|
|
2001
|
+
return decode(typeMappings, input);
|
|
2002
|
+
};
|
|
2003
|
+
|
|
1777
2004
|
decoders.UserBlock = (input?: Record<string, any>) => {
|
|
1778
2005
|
const typeMappings: TypeMapping = {
|
|
1779
2006
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1789,9 +2016,9 @@ decoders.UserMute = (input?: Record<string, any>) => {
|
|
|
1789
2016
|
|
|
1790
2017
|
expires: { type: 'DatetimeType', isSingle: true },
|
|
1791
2018
|
|
|
1792
|
-
target: { type: '
|
|
2019
|
+
target: { type: 'User', isSingle: true },
|
|
1793
2020
|
|
|
1794
|
-
user: { type: '
|
|
2021
|
+
user: { type: 'User', isSingle: true },
|
|
1795
2022
|
};
|
|
1796
2023
|
return decode(typeMappings, input);
|
|
1797
2024
|
};
|
|
@@ -1811,34 +2038,13 @@ decoders.UserMuteResponse = (input?: Record<string, any>) => {
|
|
|
1811
2038
|
return decode(typeMappings, input);
|
|
1812
2039
|
};
|
|
1813
2040
|
|
|
1814
|
-
decoders.UserObject = (input?: Record<string, any>) => {
|
|
1815
|
-
const typeMappings: TypeMapping = {
|
|
1816
|
-
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
1817
|
-
|
|
1818
|
-
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1819
|
-
|
|
1820
|
-
deactivated_at: { type: 'DatetimeType', isSingle: true },
|
|
1821
|
-
|
|
1822
|
-
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1823
|
-
|
|
1824
|
-
last_active: { type: 'DatetimeType', isSingle: true },
|
|
1825
|
-
|
|
1826
|
-
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
1827
|
-
|
|
1828
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1829
|
-
|
|
1830
|
-
push_notifications: { type: 'PushNotificationSettings', isSingle: true },
|
|
1831
|
-
};
|
|
1832
|
-
return decode(typeMappings, input);
|
|
1833
|
-
};
|
|
1834
|
-
|
|
1835
2041
|
decoders.UserResponse = (input?: Record<string, any>) => {
|
|
1836
2042
|
const typeMappings: TypeMapping = {
|
|
1837
2043
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1838
2044
|
|
|
1839
2045
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1840
2046
|
|
|
1841
|
-
devices: { type: '
|
|
2047
|
+
devices: { type: 'DeviceResponse', isSingle: false },
|
|
1842
2048
|
|
|
1843
2049
|
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
1844
2050
|
|
|
@@ -1858,43 +2064,29 @@ decoders.UserResponse = (input?: Record<string, any>) => {
|
|
|
1858
2064
|
return decode(typeMappings, input);
|
|
1859
2065
|
};
|
|
1860
2066
|
|
|
1861
|
-
decoders.VelocityFilterConfig = (input?: Record<string, any>) => {
|
|
1862
|
-
const typeMappings: TypeMapping = {
|
|
1863
|
-
rule: { type: 'VelocityFilterConfigRule', isSingle: false },
|
|
1864
|
-
};
|
|
1865
|
-
return decode(typeMappings, input);
|
|
1866
|
-
};
|
|
1867
|
-
|
|
1868
|
-
decoders.VelocityFilterConfigRule = (input?: Record<string, any>) => {
|
|
1869
|
-
const typeMappings: TypeMapping = {
|
|
1870
|
-
timeout: { type: 'DatetimeType', isSingle: true },
|
|
1871
|
-
};
|
|
1872
|
-
return decode(typeMappings, input);
|
|
1873
|
-
};
|
|
1874
|
-
|
|
1875
2067
|
decoders.WSEvent = (input?: Record<string, any>) => {
|
|
1876
2068
|
const typeMappings: TypeMapping = {
|
|
1877
2069
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1878
2070
|
|
|
1879
2071
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
1880
2072
|
|
|
1881
|
-
created_by: { type: '
|
|
2073
|
+
created_by: { type: 'UserResponse', isSingle: true },
|
|
1882
2074
|
|
|
1883
|
-
me: { type: '
|
|
2075
|
+
me: { type: 'OwnUserResponse', isSingle: true },
|
|
1884
2076
|
|
|
1885
2077
|
member: { type: 'ChannelMember', isSingle: true },
|
|
1886
2078
|
|
|
1887
|
-
message: { type: '
|
|
2079
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
1888
2080
|
|
|
1889
|
-
poll: { type: '
|
|
2081
|
+
poll: { type: 'PollResponseData', isSingle: true },
|
|
1890
2082
|
|
|
1891
|
-
poll_vote: { type: '
|
|
2083
|
+
poll_vote: { type: 'PollVoteResponseData', isSingle: true },
|
|
1892
2084
|
|
|
1893
|
-
reaction: { type: '
|
|
2085
|
+
reaction: { type: 'ReactionResponse', isSingle: true },
|
|
1894
2086
|
|
|
1895
2087
|
thread: { type: 'ThreadResponse', isSingle: true },
|
|
1896
2088
|
|
|
1897
|
-
user: { type: '
|
|
2089
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
1898
2090
|
};
|
|
1899
2091
|
return decode(typeMappings, input);
|
|
1900
2092
|
};
|