@stream-io/node-sdk 0.7.18 → 0.7.20
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 +296 -29
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +296 -29
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +7 -2
- package/dist/src/gen/feeds/FeedsApi.d.ts +11 -1
- package/dist/src/gen/models/index.d.ts +347 -45
- package/dist/src/gen/video/CallApi.d.ts +2 -1
- package/dist/src/gen/video/VideoApi.d.ts +22 -1
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +40 -2
- package/src/gen/feeds/FeedsApi.ts +117 -0
- package/src/gen/model-decoders/decoders.ts +145 -39
- package/src/gen/models/index.ts +573 -65
- package/src/gen/video/CallApi.ts +6 -0
- package/src/gen/video/VideoApi.ts +240 -0
|
@@ -216,6 +216,8 @@ decoders.ActivityResponse = (input?: Record<string, any>) => {
|
|
|
216
216
|
|
|
217
217
|
own_reactions: { type: 'FeedsReactionResponse', isSingle: false },
|
|
218
218
|
|
|
219
|
+
collections: { type: 'EnrichedCollectionResponse', isSingle: false },
|
|
220
|
+
|
|
219
221
|
reaction_groups: { type: 'ReactionGroupResponse', isSingle: false },
|
|
220
222
|
|
|
221
223
|
user: { type: 'UserResponse', isSingle: true },
|
|
@@ -531,6 +533,8 @@ decoders.BookmarkFolderResponse = (input?: Record<string, any>) => {
|
|
|
531
533
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
532
534
|
|
|
533
535
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
536
|
+
|
|
537
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
534
538
|
};
|
|
535
539
|
return decode(typeMappings, input);
|
|
536
540
|
};
|
|
@@ -556,7 +560,7 @@ decoders.BookmarkResponse = (input?: Record<string, any>) => {
|
|
|
556
560
|
|
|
557
561
|
activity: { type: 'ActivityResponse', isSingle: true },
|
|
558
562
|
|
|
559
|
-
user: { type: '
|
|
563
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
560
564
|
|
|
561
565
|
folder: { type: 'BookmarkFolderResponse', isSingle: true },
|
|
562
566
|
};
|
|
@@ -1256,14 +1260,12 @@ decoders.ChannelHiddenEvent = (input?: Record<string, any>) => {
|
|
|
1256
1260
|
|
|
1257
1261
|
decoders.ChannelMember = (input?: Record<string, any>) => {
|
|
1258
1262
|
const typeMappings: TypeMapping = {
|
|
1259
|
-
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1260
|
-
|
|
1261
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1262
|
-
|
|
1263
1263
|
archived_at: { type: 'DatetimeType', isSingle: true },
|
|
1264
1264
|
|
|
1265
1265
|
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
1266
1266
|
|
|
1267
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1268
|
+
|
|
1267
1269
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1268
1270
|
|
|
1269
1271
|
invite_accepted_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1272,6 +1274,8 @@ decoders.ChannelMember = (input?: Record<string, any>) => {
|
|
|
1272
1274
|
|
|
1273
1275
|
pinned_at: { type: 'DatetimeType', isSingle: true },
|
|
1274
1276
|
|
|
1277
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1278
|
+
|
|
1275
1279
|
user: { type: 'User', isSingle: true },
|
|
1276
1280
|
};
|
|
1277
1281
|
return decode(typeMappings, input);
|
|
@@ -1333,7 +1337,7 @@ decoders.ChannelMutedEvent = (input?: Record<string, any>) => {
|
|
|
1333
1337
|
return decode(typeMappings, input);
|
|
1334
1338
|
};
|
|
1335
1339
|
|
|
1336
|
-
decoders.
|
|
1340
|
+
decoders.ChannelPushPreferencesResponse = (input?: Record<string, any>) => {
|
|
1337
1341
|
const typeMappings: TypeMapping = {
|
|
1338
1342
|
disabled_until: { type: 'DatetimeType', isSingle: true },
|
|
1339
1343
|
};
|
|
@@ -1396,7 +1400,10 @@ decoders.ChannelStateResponse = (input?: Record<string, any>) => {
|
|
|
1396
1400
|
|
|
1397
1401
|
membership: { type: 'ChannelMemberResponse', isSingle: true },
|
|
1398
1402
|
|
|
1399
|
-
push_preferences: {
|
|
1403
|
+
push_preferences: {
|
|
1404
|
+
type: 'ChannelPushPreferencesResponse',
|
|
1405
|
+
isSingle: true,
|
|
1406
|
+
},
|
|
1400
1407
|
};
|
|
1401
1408
|
return decode(typeMappings, input);
|
|
1402
1409
|
};
|
|
@@ -1430,7 +1437,10 @@ decoders.ChannelStateResponseFields = (input?: Record<string, any>) => {
|
|
|
1430
1437
|
|
|
1431
1438
|
membership: { type: 'ChannelMemberResponse', isSingle: true },
|
|
1432
1439
|
|
|
1433
|
-
push_preferences: {
|
|
1440
|
+
push_preferences: {
|
|
1441
|
+
type: 'ChannelPushPreferencesResponse',
|
|
1442
|
+
isSingle: true,
|
|
1443
|
+
},
|
|
1434
1444
|
};
|
|
1435
1445
|
return decode(typeMappings, input);
|
|
1436
1446
|
};
|
|
@@ -1512,6 +1522,15 @@ decoders.ClosedCaptionEvent = (input?: Record<string, any>) => {
|
|
|
1512
1522
|
return decode(typeMappings, input);
|
|
1513
1523
|
};
|
|
1514
1524
|
|
|
1525
|
+
decoders.CollectionResponse = (input?: Record<string, any>) => {
|
|
1526
|
+
const typeMappings: TypeMapping = {
|
|
1527
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1528
|
+
|
|
1529
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1530
|
+
};
|
|
1531
|
+
return decode(typeMappings, input);
|
|
1532
|
+
};
|
|
1533
|
+
|
|
1515
1534
|
decoders.Command = (input?: Record<string, any>) => {
|
|
1516
1535
|
const typeMappings: TypeMapping = {
|
|
1517
1536
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1671,6 +1690,13 @@ decoders.CreateChannelTypeResponse = (input?: Record<string, any>) => {
|
|
|
1671
1690
|
return decode(typeMappings, input);
|
|
1672
1691
|
};
|
|
1673
1692
|
|
|
1693
|
+
decoders.CreateCollectionsResponse = (input?: Record<string, any>) => {
|
|
1694
|
+
const typeMappings: TypeMapping = {
|
|
1695
|
+
collections: { type: 'CollectionResponse', isSingle: false },
|
|
1696
|
+
};
|
|
1697
|
+
return decode(typeMappings, input);
|
|
1698
|
+
};
|
|
1699
|
+
|
|
1674
1700
|
decoders.CreateCommandResponse = (input?: Record<string, any>) => {
|
|
1675
1701
|
const typeMappings: TypeMapping = {
|
|
1676
1702
|
command: { type: 'Command', isSingle: true },
|
|
@@ -1727,6 +1753,13 @@ decoders.CreateRoleResponse = (input?: Record<string, any>) => {
|
|
|
1727
1753
|
return decode(typeMappings, input);
|
|
1728
1754
|
};
|
|
1729
1755
|
|
|
1756
|
+
decoders.CreateSIPTrunkResponse = (input?: Record<string, any>) => {
|
|
1757
|
+
const typeMappings: TypeMapping = {
|
|
1758
|
+
sip_trunk: { type: 'SIPTrunkResponse', isSingle: true },
|
|
1759
|
+
};
|
|
1760
|
+
return decode(typeMappings, input);
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1730
1763
|
decoders.CustomCheckResponse = (input?: Record<string, any>) => {
|
|
1731
1764
|
const typeMappings: TypeMapping = {
|
|
1732
1765
|
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
@@ -1857,6 +1890,15 @@ decoders.EgressRTMPResponse = (input?: Record<string, any>) => {
|
|
|
1857
1890
|
return decode(typeMappings, input);
|
|
1858
1891
|
};
|
|
1859
1892
|
|
|
1893
|
+
decoders.EnrichedCollectionResponse = (input?: Record<string, any>) => {
|
|
1894
|
+
const typeMappings: TypeMapping = {
|
|
1895
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1896
|
+
|
|
1897
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
1898
|
+
};
|
|
1899
|
+
return decode(typeMappings, input);
|
|
1900
|
+
};
|
|
1901
|
+
|
|
1860
1902
|
decoders.EntityCreatorResponse = (input?: Record<string, any>) => {
|
|
1861
1903
|
const typeMappings: TypeMapping = {
|
|
1862
1904
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2433,7 +2475,7 @@ decoders.GetPushTemplatesResponse = (input?: Record<string, any>) => {
|
|
|
2433
2475
|
|
|
2434
2476
|
decoders.GetReactionsResponse = (input?: Record<string, any>) => {
|
|
2435
2477
|
const typeMappings: TypeMapping = {
|
|
2436
|
-
reactions: { type: '
|
|
2478
|
+
reactions: { type: 'ReactionResponse', isSingle: false },
|
|
2437
2479
|
};
|
|
2438
2480
|
return decode(typeMappings, input);
|
|
2439
2481
|
};
|
|
@@ -2588,6 +2630,23 @@ decoders.ListRolesResponse = (input?: Record<string, any>) => {
|
|
|
2588
2630
|
return decode(typeMappings, input);
|
|
2589
2631
|
};
|
|
2590
2632
|
|
|
2633
|
+
decoders.ListSIPInboundRoutingRuleResponse = (input?: Record<string, any>) => {
|
|
2634
|
+
const typeMappings: TypeMapping = {
|
|
2635
|
+
sip_inbound_routing_rules: {
|
|
2636
|
+
type: 'SIPInboundRoutingRuleResponse',
|
|
2637
|
+
isSingle: false,
|
|
2638
|
+
},
|
|
2639
|
+
};
|
|
2640
|
+
return decode(typeMappings, input);
|
|
2641
|
+
};
|
|
2642
|
+
|
|
2643
|
+
decoders.ListSIPTrunksResponse = (input?: Record<string, any>) => {
|
|
2644
|
+
const typeMappings: TypeMapping = {
|
|
2645
|
+
sip_trunks: { type: 'SIPTrunkResponse', isSingle: false },
|
|
2646
|
+
};
|
|
2647
|
+
return decode(typeMappings, input);
|
|
2648
|
+
};
|
|
2649
|
+
|
|
2591
2650
|
decoders.ListTranscriptionsResponse = (input?: Record<string, any>) => {
|
|
2592
2651
|
const typeMappings: TypeMapping = {
|
|
2593
2652
|
transcriptions: { type: 'CallTranscription', isSingle: false },
|
|
@@ -3124,7 +3183,7 @@ decoders.OwnUserResponse = (input?: Record<string, any>) => {
|
|
|
3124
3183
|
|
|
3125
3184
|
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
3126
3185
|
|
|
3127
|
-
push_preferences: { type: '
|
|
3186
|
+
push_preferences: { type: 'PushPreferencesResponse', isSingle: true },
|
|
3128
3187
|
};
|
|
3129
3188
|
return decode(typeMappings, input);
|
|
3130
3189
|
};
|
|
@@ -3290,6 +3349,13 @@ decoders.PushPreferences = (input?: Record<string, any>) => {
|
|
|
3290
3349
|
return decode(typeMappings, input);
|
|
3291
3350
|
};
|
|
3292
3351
|
|
|
3352
|
+
decoders.PushPreferencesResponse = (input?: Record<string, any>) => {
|
|
3353
|
+
const typeMappings: TypeMapping = {
|
|
3354
|
+
disabled_until: { type: 'DatetimeType', isSingle: true },
|
|
3355
|
+
};
|
|
3356
|
+
return decode(typeMappings, input);
|
|
3357
|
+
};
|
|
3358
|
+
|
|
3293
3359
|
decoders.PushProvider = (input?: Record<string, any>) => {
|
|
3294
3360
|
const typeMappings: TypeMapping = {
|
|
3295
3361
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -3556,13 +3622,6 @@ decoders.QueryRemindersResponse = (input?: Record<string, any>) => {
|
|
|
3556
3622
|
return decode(typeMappings, input);
|
|
3557
3623
|
};
|
|
3558
3624
|
|
|
3559
|
-
decoders.QueryReviewQueueResponse = (input?: Record<string, any>) => {
|
|
3560
|
-
const typeMappings: TypeMapping = {
|
|
3561
|
-
items: { type: 'ReviewQueueItemResponse', isSingle: false },
|
|
3562
|
-
};
|
|
3563
|
-
return decode(typeMappings, input);
|
|
3564
|
-
};
|
|
3565
|
-
|
|
3566
3625
|
decoders.QuerySegmentTargetsResponse = (input?: Record<string, any>) => {
|
|
3567
3626
|
const typeMappings: TypeMapping = {
|
|
3568
3627
|
targets: { type: 'SegmentTargetResponse', isSingle: false },
|
|
@@ -3672,6 +3731,13 @@ decoders.ReactivateUserResponse = (input?: Record<string, any>) => {
|
|
|
3672
3731
|
return decode(typeMappings, input);
|
|
3673
3732
|
};
|
|
3674
3733
|
|
|
3734
|
+
decoders.ReadCollectionsResponse = (input?: Record<string, any>) => {
|
|
3735
|
+
const typeMappings: TypeMapping = {
|
|
3736
|
+
collections: { type: 'CollectionResponse', isSingle: false },
|
|
3737
|
+
};
|
|
3738
|
+
return decode(typeMappings, input);
|
|
3739
|
+
};
|
|
3740
|
+
|
|
3675
3741
|
decoders.ReadStateResponse = (input?: Record<string, any>) => {
|
|
3676
3742
|
const typeMappings: TypeMapping = {
|
|
3677
3743
|
last_read: { type: 'DatetimeType', isSingle: true },
|
|
@@ -3740,9 +3806,9 @@ decoders.ReminderResponseData = (input?: Record<string, any>) => {
|
|
|
3740
3806
|
|
|
3741
3807
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
3742
3808
|
|
|
3743
|
-
message: { type: '
|
|
3809
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
3744
3810
|
|
|
3745
|
-
user: { type: '
|
|
3811
|
+
user: { type: 'UserResponse', isSingle: true },
|
|
3746
3812
|
};
|
|
3747
3813
|
return decode(typeMappings, input);
|
|
3748
3814
|
};
|
|
@@ -3758,6 +3824,15 @@ decoders.ReminderUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
3758
3824
|
return decode(typeMappings, input);
|
|
3759
3825
|
};
|
|
3760
3826
|
|
|
3827
|
+
decoders.ResolveSipInboundResponse = (input?: Record<string, any>) => {
|
|
3828
|
+
const typeMappings: TypeMapping = {
|
|
3829
|
+
sip_routing_rule: { type: 'SIPInboundRoutingRuleResponse', isSingle: true },
|
|
3830
|
+
|
|
3831
|
+
sip_trunk: { type: 'SIPTrunkResponse', isSingle: true },
|
|
3832
|
+
};
|
|
3833
|
+
return decode(typeMappings, input);
|
|
3834
|
+
};
|
|
3835
|
+
|
|
3761
3836
|
decoders.ReviewQueueItemNewEvent = (input?: Record<string, any>) => {
|
|
3762
3837
|
const typeMappings: TypeMapping = {
|
|
3763
3838
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -3832,6 +3907,24 @@ decoders.Role = (input?: Record<string, any>) => {
|
|
|
3832
3907
|
return decode(typeMappings, input);
|
|
3833
3908
|
};
|
|
3834
3909
|
|
|
3910
|
+
decoders.SIPInboundRoutingRuleResponse = (input?: Record<string, any>) => {
|
|
3911
|
+
const typeMappings: TypeMapping = {
|
|
3912
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3913
|
+
|
|
3914
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
3915
|
+
};
|
|
3916
|
+
return decode(typeMappings, input);
|
|
3917
|
+
};
|
|
3918
|
+
|
|
3919
|
+
decoders.SIPTrunkResponse = (input?: Record<string, any>) => {
|
|
3920
|
+
const typeMappings: TypeMapping = {
|
|
3921
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3922
|
+
|
|
3923
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
3924
|
+
};
|
|
3925
|
+
return decode(typeMappings, input);
|
|
3926
|
+
};
|
|
3927
|
+
|
|
3835
3928
|
decoders.SearchResult = (input?: Record<string, any>) => {
|
|
3836
3929
|
const typeMappings: TypeMapping = {
|
|
3837
3930
|
message: { type: 'SearchResultMessage', isSingle: true },
|
|
@@ -3931,15 +4024,7 @@ decoders.SendReactionResponse = (input?: Record<string, any>) => {
|
|
|
3931
4024
|
|
|
3932
4025
|
decoders.SharedLocation = (input?: Record<string, any>) => {
|
|
3933
4026
|
const typeMappings: TypeMapping = {
|
|
3934
|
-
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3935
|
-
|
|
3936
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
3937
|
-
|
|
3938
4027
|
end_at: { type: 'DatetimeType', isSingle: true },
|
|
3939
|
-
|
|
3940
|
-
channel: { type: 'Channel', isSingle: true },
|
|
3941
|
-
|
|
3942
|
-
message: { type: 'Message', isSingle: true },
|
|
3943
4028
|
};
|
|
3944
4029
|
return decode(typeMappings, input);
|
|
3945
4030
|
};
|
|
@@ -4278,6 +4363,13 @@ decoders.UpdateChannelTypeResponse = (input?: Record<string, any>) => {
|
|
|
4278
4363
|
return decode(typeMappings, input);
|
|
4279
4364
|
};
|
|
4280
4365
|
|
|
4366
|
+
decoders.UpdateCollectionsResponse = (input?: Record<string, any>) => {
|
|
4367
|
+
const typeMappings: TypeMapping = {
|
|
4368
|
+
collections: { type: 'CollectionResponse', isSingle: false },
|
|
4369
|
+
};
|
|
4370
|
+
return decode(typeMappings, input);
|
|
4371
|
+
};
|
|
4372
|
+
|
|
4281
4373
|
decoders.UpdateCommandResponse = (input?: Record<string, any>) => {
|
|
4282
4374
|
const typeMappings: TypeMapping = {
|
|
4283
4375
|
command: { type: 'Command', isSingle: true },
|
|
@@ -4364,6 +4456,25 @@ decoders.UpdateReminderResponse = (input?: Record<string, any>) => {
|
|
|
4364
4456
|
return decode(typeMappings, input);
|
|
4365
4457
|
};
|
|
4366
4458
|
|
|
4459
|
+
decoders.UpdateSIPInboundRoutingRuleResponse = (
|
|
4460
|
+
input?: Record<string, any>,
|
|
4461
|
+
) => {
|
|
4462
|
+
const typeMappings: TypeMapping = {
|
|
4463
|
+
sip_inbound_routing_rule: {
|
|
4464
|
+
type: 'SIPInboundRoutingRuleResponse',
|
|
4465
|
+
isSingle: true,
|
|
4466
|
+
},
|
|
4467
|
+
};
|
|
4468
|
+
return decode(typeMappings, input);
|
|
4469
|
+
};
|
|
4470
|
+
|
|
4471
|
+
decoders.UpdateSIPTrunkResponse = (input?: Record<string, any>) => {
|
|
4472
|
+
const typeMappings: TypeMapping = {
|
|
4473
|
+
sip_trunk: { type: 'SIPTrunkResponse', isSingle: true },
|
|
4474
|
+
};
|
|
4475
|
+
return decode(typeMappings, input);
|
|
4476
|
+
};
|
|
4477
|
+
|
|
4367
4478
|
decoders.UpdateThreadPartialResponse = (input?: Record<string, any>) => {
|
|
4368
4479
|
const typeMappings: TypeMapping = {
|
|
4369
4480
|
thread: { type: 'ThreadResponse', isSingle: true },
|
|
@@ -4394,6 +4505,13 @@ decoders.UpsertActivitiesResponse = (input?: Record<string, any>) => {
|
|
|
4394
4505
|
return decode(typeMappings, input);
|
|
4395
4506
|
};
|
|
4396
4507
|
|
|
4508
|
+
decoders.UpsertCollectionsResponse = (input?: Record<string, any>) => {
|
|
4509
|
+
const typeMappings: TypeMapping = {
|
|
4510
|
+
collections: { type: 'CollectionResponse', isSingle: false },
|
|
4511
|
+
};
|
|
4512
|
+
return decode(typeMappings, input);
|
|
4513
|
+
};
|
|
4514
|
+
|
|
4397
4515
|
decoders.UpsertConfigResponse = (input?: Record<string, any>) => {
|
|
4398
4516
|
const typeMappings: TypeMapping = {
|
|
4399
4517
|
config: { type: 'ConfigResponse', isSingle: true },
|
|
@@ -4442,19 +4560,7 @@ decoders.User = (input?: Record<string, any>) => {
|
|
|
4442
4560
|
const typeMappings: TypeMapping = {
|
|
4443
4561
|
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
4444
4562
|
|
|
4445
|
-
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4446
|
-
|
|
4447
|
-
deactivated_at: { type: 'DatetimeType', isSingle: true },
|
|
4448
|
-
|
|
4449
|
-
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
4450
|
-
|
|
4451
|
-
last_active: { type: 'DatetimeType', isSingle: true },
|
|
4452
|
-
|
|
4453
|
-
last_engaged_at: { type: 'DatetimeType', isSingle: true },
|
|
4454
|
-
|
|
4455
4563
|
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
4456
|
-
|
|
4457
|
-
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
4458
4564
|
};
|
|
4459
4565
|
return decode(typeMappings, input);
|
|
4460
4566
|
};
|