@stream-io/node-sdk 0.4.9 → 0.4.11
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 +174 -139
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +174 -139
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +2 -1
- package/dist/src/gen/models/index.d.ts +127 -52
- package/dist/src/gen/video/VideoApi.d.ts +4 -1
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +18 -0
- package/src/gen/model-decoders/index.ts +48 -32
- package/src/gen/models/index.ts +220 -85
- package/src/gen/video/VideoApi.ts +25 -0
|
@@ -381,6 +381,13 @@ decoders.ChannelMute = (input?: Record<string, any>) => {
|
|
|
381
381
|
return decode(typeMappings, input);
|
|
382
382
|
};
|
|
383
383
|
|
|
384
|
+
decoders.ChannelPushPreferences = (input?: Record<string, any>) => {
|
|
385
|
+
const typeMappings: TypeMapping = {
|
|
386
|
+
disabled_until: { type: 'DatetimeType', isSingle: true },
|
|
387
|
+
};
|
|
388
|
+
return decode(typeMappings, input);
|
|
389
|
+
};
|
|
390
|
+
|
|
384
391
|
decoders.ChannelResponse = (input?: Record<string, any>) => {
|
|
385
392
|
const typeMappings: TypeMapping = {
|
|
386
393
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -429,6 +436,8 @@ decoders.ChannelStateResponse = (input?: Record<string, any>) => {
|
|
|
429
436
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
430
437
|
|
|
431
438
|
membership: { type: 'ChannelMember', isSingle: true },
|
|
439
|
+
|
|
440
|
+
push_preferences: { type: 'ChannelPushPreferences', isSingle: true },
|
|
432
441
|
};
|
|
433
442
|
return decode(typeMappings, input);
|
|
434
443
|
};
|
|
@@ -454,6 +463,8 @@ decoders.ChannelStateResponseFields = (input?: Record<string, any>) => {
|
|
|
454
463
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
455
464
|
|
|
456
465
|
membership: { type: 'ChannelMember', isSingle: true },
|
|
466
|
+
|
|
467
|
+
push_preferences: { type: 'ChannelPushPreferences', isSingle: true },
|
|
457
468
|
};
|
|
458
469
|
return decode(typeMappings, input);
|
|
459
470
|
};
|
|
@@ -622,8 +633,6 @@ decoders.EntityCreator = (input?: Record<string, any>) => {
|
|
|
622
633
|
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
623
634
|
|
|
624
635
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
625
|
-
|
|
626
|
-
push_notifications: { type: 'PushNotificationSettings', isSingle: true },
|
|
627
636
|
};
|
|
628
637
|
return decode(typeMappings, input);
|
|
629
638
|
};
|
|
@@ -634,8 +643,6 @@ decoders.EntityCreatorResponse = (input?: Record<string, any>) => {
|
|
|
634
643
|
|
|
635
644
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
636
645
|
|
|
637
|
-
devices: { type: 'DeviceResponse', isSingle: false },
|
|
638
|
-
|
|
639
646
|
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
640
647
|
|
|
641
648
|
deactivated_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -646,6 +653,8 @@ decoders.EntityCreatorResponse = (input?: Record<string, any>) => {
|
|
|
646
653
|
|
|
647
654
|
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
648
655
|
|
|
656
|
+
devices: { type: 'DeviceResponse', isSingle: false },
|
|
657
|
+
|
|
649
658
|
push_notifications: {
|
|
650
659
|
type: 'PushNotificationSettingsResponse',
|
|
651
660
|
isSingle: true,
|
|
@@ -727,11 +736,6 @@ decoders.FullUserResponse = (input?: Record<string, any>) => {
|
|
|
727
736
|
last_active: { type: 'DatetimeType', isSingle: true },
|
|
728
737
|
|
|
729
738
|
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
730
|
-
|
|
731
|
-
push_notifications: {
|
|
732
|
-
type: 'PushNotificationSettingsResponse',
|
|
733
|
-
isSingle: true,
|
|
734
|
-
},
|
|
735
739
|
};
|
|
736
740
|
return decode(typeMappings, input);
|
|
737
741
|
};
|
|
@@ -1109,9 +1113,11 @@ decoders.MessageReadEvent = (input?: Record<string, any>) => {
|
|
|
1109
1113
|
const typeMappings: TypeMapping = {
|
|
1110
1114
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1111
1115
|
|
|
1116
|
+
channel_last_message_at: { type: 'DatetimeType', isSingle: true },
|
|
1117
|
+
|
|
1112
1118
|
thread: { type: 'ThreadResponse', isSingle: true },
|
|
1113
1119
|
|
|
1114
|
-
user: { type: '
|
|
1120
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
1115
1121
|
};
|
|
1116
1122
|
return decode(typeMappings, input);
|
|
1117
1123
|
};
|
|
@@ -1217,13 +1223,6 @@ decoders.MuteResponse = (input?: Record<string, any>) => {
|
|
|
1217
1223
|
return decode(typeMappings, input);
|
|
1218
1224
|
};
|
|
1219
1225
|
|
|
1220
|
-
decoders.NullTime = (input?: Record<string, any>) => {
|
|
1221
|
-
const typeMappings: TypeMapping = {
|
|
1222
|
-
value: { type: 'DatetimeType', isSingle: true },
|
|
1223
|
-
};
|
|
1224
|
-
return decode(typeMappings, input);
|
|
1225
|
-
};
|
|
1226
|
-
|
|
1227
1226
|
decoders.OwnUser = (input?: Record<string, any>) => {
|
|
1228
1227
|
const typeMappings: TypeMapping = {
|
|
1229
1228
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1244,7 +1243,7 @@ decoders.OwnUser = (input?: Record<string, any>) => {
|
|
|
1244
1243
|
|
|
1245
1244
|
last_engaged_at: { type: 'DatetimeType', isSingle: true },
|
|
1246
1245
|
|
|
1247
|
-
|
|
1246
|
+
push_preferences: { type: 'PushPreferences', isSingle: true },
|
|
1248
1247
|
};
|
|
1249
1248
|
return decode(typeMappings, input);
|
|
1250
1249
|
};
|
|
@@ -1269,10 +1268,7 @@ decoders.OwnUserResponse = (input?: Record<string, any>) => {
|
|
|
1269
1268
|
|
|
1270
1269
|
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
1271
1270
|
|
|
1272
|
-
|
|
1273
|
-
type: 'PushNotificationSettingsResponse',
|
|
1274
|
-
isSingle: true,
|
|
1275
|
-
},
|
|
1271
|
+
push_preferences: { type: 'PushPreferences', isSingle: true },
|
|
1276
1272
|
};
|
|
1277
1273
|
return decode(typeMappings, input);
|
|
1278
1274
|
};
|
|
@@ -1368,14 +1364,14 @@ decoders.PushNotificationFields = (input?: Record<string, any>) => {
|
|
|
1368
1364
|
return decode(typeMappings, input);
|
|
1369
1365
|
};
|
|
1370
1366
|
|
|
1371
|
-
decoders.
|
|
1367
|
+
decoders.PushNotificationSettingsResponse = (input?: Record<string, any>) => {
|
|
1372
1368
|
const typeMappings: TypeMapping = {
|
|
1373
1369
|
disabled_until: { type: 'DatetimeType', isSingle: true },
|
|
1374
1370
|
};
|
|
1375
1371
|
return decode(typeMappings, input);
|
|
1376
1372
|
};
|
|
1377
1373
|
|
|
1378
|
-
decoders.
|
|
1374
|
+
decoders.PushPreferences = (input?: Record<string, any>) => {
|
|
1379
1375
|
const typeMappings: TypeMapping = {
|
|
1380
1376
|
disabled_until: { type: 'DatetimeType', isSingle: true },
|
|
1381
1377
|
};
|
|
@@ -1607,10 +1603,6 @@ decoders.ReviewQueueItem = (input?: Record<string, any>) => {
|
|
|
1607
1603
|
|
|
1608
1604
|
flags: { type: 'Flag2', isSingle: false },
|
|
1609
1605
|
|
|
1610
|
-
completed_at: { type: 'NullTime', isSingle: true },
|
|
1611
|
-
|
|
1612
|
-
reviewed_at: { type: 'NullTime', isSingle: true },
|
|
1613
|
-
|
|
1614
1606
|
assigned_to: { type: 'User', isSingle: true },
|
|
1615
1607
|
|
|
1616
1608
|
entity_creator: { type: 'EntityCreator', isSingle: true },
|
|
@@ -1980,6 +1972,13 @@ decoders.UpsertModerationTemplateResponse = (input?: Record<string, any>) => {
|
|
|
1980
1972
|
return decode(typeMappings, input);
|
|
1981
1973
|
};
|
|
1982
1974
|
|
|
1975
|
+
decoders.UpsertPushPreferencesResponse = (input?: Record<string, any>) => {
|
|
1976
|
+
const typeMappings: TypeMapping = {
|
|
1977
|
+
user_preferences: { type: 'PushPreferences', isSingle: false },
|
|
1978
|
+
};
|
|
1979
|
+
return decode(typeMappings, input);
|
|
1980
|
+
};
|
|
1981
|
+
|
|
1983
1982
|
decoders.UpsertPushProviderResponse = (input?: Record<string, any>) => {
|
|
1984
1983
|
const typeMappings: TypeMapping = {
|
|
1985
1984
|
push_provider: { type: 'PushProviderResponse', isSingle: true },
|
|
@@ -2004,8 +2003,6 @@ decoders.User = (input?: Record<string, any>) => {
|
|
|
2004
2003
|
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
2005
2004
|
|
|
2006
2005
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
2007
|
-
|
|
2008
|
-
push_notifications: { type: 'PushNotificationSettings', isSingle: true },
|
|
2009
2006
|
};
|
|
2010
2007
|
return decode(typeMappings, input);
|
|
2011
2008
|
};
|
|
@@ -2053,8 +2050,6 @@ decoders.UserResponse = (input?: Record<string, any>) => {
|
|
|
2053
2050
|
|
|
2054
2051
|
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
2055
2052
|
|
|
2056
|
-
devices: { type: 'DeviceResponse', isSingle: false },
|
|
2057
|
-
|
|
2058
2053
|
ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
2059
2054
|
|
|
2060
2055
|
deactivated_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2065,6 +2060,8 @@ decoders.UserResponse = (input?: Record<string, any>) => {
|
|
|
2065
2060
|
|
|
2066
2061
|
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
2067
2062
|
|
|
2063
|
+
devices: { type: 'DeviceResponse', isSingle: false },
|
|
2064
|
+
|
|
2068
2065
|
push_notifications: {
|
|
2069
2066
|
type: 'PushNotificationSettingsResponse',
|
|
2070
2067
|
isSingle: true,
|
|
@@ -2073,10 +2070,29 @@ decoders.UserResponse = (input?: Record<string, any>) => {
|
|
|
2073
2070
|
return decode(typeMappings, input);
|
|
2074
2071
|
};
|
|
2075
2072
|
|
|
2073
|
+
decoders.UserResponseCommonFields = (input?: Record<string, any>) => {
|
|
2074
|
+
const typeMappings: TypeMapping = {
|
|
2075
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2076
|
+
|
|
2077
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
2078
|
+
|
|
2079
|
+
deactivated_at: { type: 'DatetimeType', isSingle: true },
|
|
2080
|
+
|
|
2081
|
+
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
2082
|
+
|
|
2083
|
+
last_active: { type: 'DatetimeType', isSingle: true },
|
|
2084
|
+
|
|
2085
|
+
revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
|
|
2086
|
+
};
|
|
2087
|
+
return decode(typeMappings, input);
|
|
2088
|
+
};
|
|
2089
|
+
|
|
2076
2090
|
decoders.WSEvent = (input?: Record<string, any>) => {
|
|
2077
2091
|
const typeMappings: TypeMapping = {
|
|
2078
2092
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2079
2093
|
|
|
2094
|
+
channel_last_message_at: { type: 'DatetimeType', isSingle: true },
|
|
2095
|
+
|
|
2080
2096
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
2081
2097
|
|
|
2082
2098
|
created_by: { type: 'UserResponse', isSingle: true },
|