@stream-io/node-sdk 0.7.63 → 0.8.0
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/CHANGELOG.md +848 -0
- package/README.md +0 -2
- package/dist/index.cjs.js +14029 -9683
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +14003 -9664
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/StreamCall.d.ts +4 -4
- package/dist/src/StreamChannel.d.ts +2 -2
- package/dist/src/StreamClient.d.ts +7 -7
- package/dist/src/StreamFeedsClient.d.ts +4 -4
- package/dist/src/gen/chat/ChannelApi.d.ts +6 -0
- package/dist/src/gen/chat/ChatApi.d.ts +7 -0
- package/dist/src/gen/common/CommonApi.d.ts +7 -2
- package/dist/src/gen/feeds/FeedsApi.d.ts +1 -0
- package/dist/src/gen/models/index.d.ts +1885 -21
- package/dist/src/gen/moderation/ModerationApi.d.ts +18 -2
- package/dist/src/gen/video/VideoApi.d.ts +5 -1
- package/dist/src/utils/create-token.d.ts +1 -3
- package/dist/src/utils/query-params.d.ts +7 -0
- package/package.json +27 -33
- package/src/ApiClient.ts +9 -11
- package/src/StreamClient.ts +1 -1
- package/src/StreamVideoClient.ts +1 -1
- package/src/gen/chat/ChannelApi.ts +6 -0
- package/src/gen/chat/ChatApi.ts +21 -0
- package/src/gen/common/CommonApi.ts +81 -5
- package/src/gen/feeds/FeedsApi.ts +3 -0
- package/src/gen/model-decoders/decoders.ts +85 -0
- package/src/gen/models/index.ts +2232 -80
- package/src/gen/moderation/ModerationApi.ts +136 -2
- package/src/gen/video/VideoApi.ts +19 -0
- package/src/utils/create-token.ts +4 -4
- package/src/utils/query-params.ts +21 -0
|
@@ -1372,6 +1372,13 @@ decoders.ChannelConfigWithInfo = (input?: Record<string, any>) => {
|
|
|
1372
1372
|
return decode(typeMappings, input);
|
|
1373
1373
|
};
|
|
1374
1374
|
|
|
1375
|
+
decoders.ChannelContextResponse = (input?: Record<string, any>) => {
|
|
1376
|
+
const typeMappings: TypeMapping = {
|
|
1377
|
+
created_by: { type: 'UserResponse', isSingle: true },
|
|
1378
|
+
};
|
|
1379
|
+
return decode(typeMappings, input);
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1375
1382
|
decoders.ChannelCreatedEvent = (input?: Record<string, any>) => {
|
|
1376
1383
|
const typeMappings: TypeMapping = {
|
|
1377
1384
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1432,6 +1439,8 @@ decoders.ChannelMemberResponse = (input?: Record<string, any>) => {
|
|
|
1432
1439
|
|
|
1433
1440
|
deleted_at: { type: 'DatetimeType', isSingle: true },
|
|
1434
1441
|
|
|
1442
|
+
future_channel_ban_expires: { type: 'DatetimeType', isSingle: true },
|
|
1443
|
+
|
|
1435
1444
|
invite_accepted_at: { type: 'DatetimeType', isSingle: true },
|
|
1436
1445
|
|
|
1437
1446
|
invite_rejected_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2920,6 +2929,15 @@ decoders.GetDraftResponse = (input?: Record<string, any>) => {
|
|
|
2920
2929
|
return decode(typeMappings, input);
|
|
2921
2930
|
};
|
|
2922
2931
|
|
|
2932
|
+
decoders.GetExternalStorageResponse = (input?: Record<string, any>) => {
|
|
2933
|
+
const typeMappings: TypeMapping = {
|
|
2934
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2935
|
+
|
|
2936
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
2937
|
+
};
|
|
2938
|
+
return decode(typeMappings, input);
|
|
2939
|
+
};
|
|
2940
|
+
|
|
2923
2941
|
decoders.GetFeedGroupResponse = (input?: Record<string, any>) => {
|
|
2924
2942
|
const typeMappings: TypeMapping = {
|
|
2925
2943
|
feed_group: { type: 'FeedGroupResponse', isSingle: true },
|
|
@@ -3667,6 +3685,15 @@ decoders.MessageWithChannelResponse = (input?: Record<string, any>) => {
|
|
|
3667
3685
|
return decode(typeMappings, input);
|
|
3668
3686
|
};
|
|
3669
3687
|
|
|
3688
|
+
decoders.ModerationAnalysisFailedEvent = (input?: Record<string, any>) => {
|
|
3689
|
+
const typeMappings: TypeMapping = {
|
|
3690
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3691
|
+
|
|
3692
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
3693
|
+
};
|
|
3694
|
+
return decode(typeMappings, input);
|
|
3695
|
+
};
|
|
3696
|
+
|
|
3670
3697
|
decoders.ModerationCallResponse = (input?: Record<string, any>) => {
|
|
3671
3698
|
const typeMappings: TypeMapping = {
|
|
3672
3699
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -3983,6 +4010,62 @@ decoders.PinActivityResponse = (input?: Record<string, any>) => {
|
|
|
3983
4010
|
return decode(typeMappings, input);
|
|
3984
4011
|
};
|
|
3985
4012
|
|
|
4013
|
+
decoders.PolicyTestResult = (input?: Record<string, any>) => {
|
|
4014
|
+
const typeMappings: TypeMapping = {
|
|
4015
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4016
|
+
};
|
|
4017
|
+
return decode(typeMappings, input);
|
|
4018
|
+
};
|
|
4019
|
+
|
|
4020
|
+
decoders.PolicyTestRun = (input?: Record<string, any>) => {
|
|
4021
|
+
const typeMappings: TypeMapping = {
|
|
4022
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4023
|
+
|
|
4024
|
+
completed_at: { type: 'DatetimeType', isSingle: true },
|
|
4025
|
+
|
|
4026
|
+
config_updated_at: { type: 'DatetimeType', isSingle: true },
|
|
4027
|
+
|
|
4028
|
+
started_at: { type: 'DatetimeType', isSingle: true },
|
|
4029
|
+
};
|
|
4030
|
+
return decode(typeMappings, input);
|
|
4031
|
+
};
|
|
4032
|
+
|
|
4033
|
+
decoders.PolicyTestRunResponse = (input?: Record<string, any>) => {
|
|
4034
|
+
const typeMappings: TypeMapping = {
|
|
4035
|
+
results: { type: 'PolicyTestResult', isSingle: false },
|
|
4036
|
+
|
|
4037
|
+
run: { type: 'PolicyTestRun', isSingle: true },
|
|
4038
|
+
};
|
|
4039
|
+
return decode(typeMappings, input);
|
|
4040
|
+
};
|
|
4041
|
+
|
|
4042
|
+
decoders.PolicyTestSet = (input?: Record<string, any>) => {
|
|
4043
|
+
const typeMappings: TypeMapping = {
|
|
4044
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4045
|
+
|
|
4046
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
4047
|
+
|
|
4048
|
+
last_run: { type: 'PolicyTestRun', isSingle: true },
|
|
4049
|
+
};
|
|
4050
|
+
return decode(typeMappings, input);
|
|
4051
|
+
};
|
|
4052
|
+
|
|
4053
|
+
decoders.PolicyTestSetListResponse = (input?: Record<string, any>) => {
|
|
4054
|
+
const typeMappings: TypeMapping = {
|
|
4055
|
+
sets: { type: 'PolicyTestSet', isSingle: false },
|
|
4056
|
+
};
|
|
4057
|
+
return decode(typeMappings, input);
|
|
4058
|
+
};
|
|
4059
|
+
|
|
4060
|
+
decoders.PolicyTestSetResponse = (input?: Record<string, any>) => {
|
|
4061
|
+
const typeMappings: TypeMapping = {
|
|
4062
|
+
recent_runs: { type: 'PolicyTestRun', isSingle: false },
|
|
4063
|
+
|
|
4064
|
+
set: { type: 'PolicyTestSet', isSingle: true },
|
|
4065
|
+
};
|
|
4066
|
+
return decode(typeMappings, input);
|
|
4067
|
+
};
|
|
4068
|
+
|
|
3986
4069
|
decoders.PollResponse = (input?: Record<string, any>) => {
|
|
3987
4070
|
const typeMappings: TypeMapping = {
|
|
3988
4071
|
poll: { type: 'PollResponseData', isSingle: true },
|
|
@@ -4922,6 +5005,8 @@ decoders.SegmentTargetResponse = (input?: Record<string, any>) => {
|
|
|
4922
5005
|
decoders.SendMessageResponse = (input?: Record<string, any>) => {
|
|
4923
5006
|
const typeMappings: TypeMapping = {
|
|
4924
5007
|
message: { type: 'MessageResponse', isSingle: true },
|
|
5008
|
+
|
|
5009
|
+
channel_context: { type: 'ChannelContextResponse', isSingle: true },
|
|
4925
5010
|
};
|
|
4926
5011
|
return decode(typeMappings, input);
|
|
4927
5012
|
};
|