@stream-io/node-sdk 0.7.42 → 0.7.44
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 +277 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +277 -11
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/gen/chat/ChatApi.d.ts +5 -4
- package/dist/src/gen/common/CommonApi.d.ts +32 -1
- package/dist/src/gen/feeds/FeedApi.d.ts +1 -0
- package/dist/src/gen/feeds/FeedsApi.d.ts +9 -3
- package/dist/src/gen/models/index.d.ts +375 -50
- package/package.json +1 -1
- package/src/gen/chat/ChatApi.ts +37 -8
- package/src/gen/common/CommonApi.ts +199 -0
- package/src/gen/feeds/FeedApi.ts +1 -0
- package/src/gen/feeds/FeedsApi.ts +54 -5
- package/src/gen/model-decoders/decoders.ts +173 -2
- package/src/gen/models/index.ts +659 -85
- package/src/gen/moderation/ModerationApi.ts +2 -1
|
@@ -324,6 +324,13 @@ decoders.AddReactionResponse = (input?: Record<string, any>) => {
|
|
|
324
324
|
return decode(typeMappings, input);
|
|
325
325
|
};
|
|
326
326
|
|
|
327
|
+
decoders.AddUserGroupMembersResponse = (input?: Record<string, any>) => {
|
|
328
|
+
const typeMappings: TypeMapping = {
|
|
329
|
+
user_group: { type: 'UserGroupResponse', isSingle: true },
|
|
330
|
+
};
|
|
331
|
+
return decode(typeMappings, input);
|
|
332
|
+
};
|
|
333
|
+
|
|
327
334
|
decoders.AggregatedActivityResponse = (input?: Record<string, any>) => {
|
|
328
335
|
const typeMappings: TypeMapping = {
|
|
329
336
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -1080,6 +1087,8 @@ decoders.CallStatsParticipantSession = (input?: Record<string, any>) => {
|
|
|
1080
1087
|
decoders.CallStatsReportReadyEvent = (input?: Record<string, any>) => {
|
|
1081
1088
|
const typeMappings: TypeMapping = {
|
|
1082
1089
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
1090
|
+
|
|
1091
|
+
participants_overview: { type: 'CallStatsParticipant', isSingle: false },
|
|
1083
1092
|
};
|
|
1084
1093
|
return decode(typeMappings, input);
|
|
1085
1094
|
};
|
|
@@ -1830,6 +1839,13 @@ decoders.CreateSIPTrunkResponse = (input?: Record<string, any>) => {
|
|
|
1830
1839
|
return decode(typeMappings, input);
|
|
1831
1840
|
};
|
|
1832
1841
|
|
|
1842
|
+
decoders.CreateUserGroupResponse = (input?: Record<string, any>) => {
|
|
1843
|
+
const typeMappings: TypeMapping = {
|
|
1844
|
+
user_group: { type: 'UserGroupResponse', isSingle: true },
|
|
1845
|
+
};
|
|
1846
|
+
return decode(typeMappings, input);
|
|
1847
|
+
};
|
|
1848
|
+
|
|
1833
1849
|
decoders.CustomCheckResponse = (input?: Record<string, any>) => {
|
|
1834
1850
|
const typeMappings: TypeMapping = {
|
|
1835
1851
|
item: { type: 'ReviewQueueItemResponse', isSingle: true },
|
|
@@ -2086,6 +2102,15 @@ decoders.FeedGroupResponse = (input?: Record<string, any>) => {
|
|
|
2086
2102
|
return decode(typeMappings, input);
|
|
2087
2103
|
};
|
|
2088
2104
|
|
|
2105
|
+
decoders.FeedGroupRestoredEvent = (input?: Record<string, any>) => {
|
|
2106
|
+
const typeMappings: TypeMapping = {
|
|
2107
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2108
|
+
|
|
2109
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
2110
|
+
};
|
|
2111
|
+
return decode(typeMappings, input);
|
|
2112
|
+
};
|
|
2113
|
+
|
|
2089
2114
|
decoders.FeedMemberAddedEvent = (input?: Record<string, any>) => {
|
|
2090
2115
|
const typeMappings: TypeMapping = {
|
|
2091
2116
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -2653,6 +2678,13 @@ decoders.GetThreadResponse = (input?: Record<string, any>) => {
|
|
|
2653
2678
|
return decode(typeMappings, input);
|
|
2654
2679
|
};
|
|
2655
2680
|
|
|
2681
|
+
decoders.GetUserGroupResponse = (input?: Record<string, any>) => {
|
|
2682
|
+
const typeMappings: TypeMapping = {
|
|
2683
|
+
user_group: { type: 'UserGroupResponse', isSingle: true },
|
|
2684
|
+
};
|
|
2685
|
+
return decode(typeMappings, input);
|
|
2686
|
+
};
|
|
2687
|
+
|
|
2656
2688
|
decoders.GoLiveResponse = (input?: Record<string, any>) => {
|
|
2657
2689
|
const typeMappings: TypeMapping = {
|
|
2658
2690
|
call: { type: 'CallResponse', isSingle: true },
|
|
@@ -2827,9 +2859,31 @@ decoders.ListTranscriptionsResponse = (input?: Record<string, any>) => {
|
|
|
2827
2859
|
return decode(typeMappings, input);
|
|
2828
2860
|
};
|
|
2829
2861
|
|
|
2862
|
+
decoders.ListUserGroupsResponse = (input?: Record<string, any>) => {
|
|
2863
|
+
const typeMappings: TypeMapping = {
|
|
2864
|
+
user_groups: { type: 'UserGroupResponse', isSingle: false },
|
|
2865
|
+
};
|
|
2866
|
+
return decode(typeMappings, input);
|
|
2867
|
+
};
|
|
2868
|
+
|
|
2830
2869
|
decoders.MarkReadResponse = (input?: Record<string, any>) => {
|
|
2831
2870
|
const typeMappings: TypeMapping = {
|
|
2832
|
-
event: { type: '
|
|
2871
|
+
event: { type: 'MarkReadResponseEvent', isSingle: true },
|
|
2872
|
+
};
|
|
2873
|
+
return decode(typeMappings, input);
|
|
2874
|
+
};
|
|
2875
|
+
|
|
2876
|
+
decoders.MarkReadResponseEvent = (input?: Record<string, any>) => {
|
|
2877
|
+
const typeMappings: TypeMapping = {
|
|
2878
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
2879
|
+
|
|
2880
|
+
channel_last_message_at: { type: 'DatetimeType', isSingle: true },
|
|
2881
|
+
|
|
2882
|
+
channel: { type: 'ChannelResponse', isSingle: true },
|
|
2883
|
+
|
|
2884
|
+
thread: { type: 'ThreadResponse', isSingle: true },
|
|
2885
|
+
|
|
2886
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
2833
2887
|
};
|
|
2834
2888
|
return decode(typeMappings, input);
|
|
2835
2889
|
};
|
|
@@ -3016,7 +3070,7 @@ decoders.MessageReadEvent = (input?: Record<string, any>) => {
|
|
|
3016
3070
|
const typeMappings: TypeMapping = {
|
|
3017
3071
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3018
3072
|
|
|
3019
|
-
|
|
3073
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
3020
3074
|
|
|
3021
3075
|
channel: { type: 'ChannelResponse', isSingle: true },
|
|
3022
3076
|
|
|
@@ -3225,6 +3279,15 @@ decoders.ModerationRuleV2Response = (input?: Record<string, any>) => {
|
|
|
3225
3279
|
return decode(typeMappings, input);
|
|
3226
3280
|
};
|
|
3227
3281
|
|
|
3282
|
+
decoders.ModerationRulesTriggeredEvent = (input?: Record<string, any>) => {
|
|
3283
|
+
const typeMappings: TypeMapping = {
|
|
3284
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
3285
|
+
|
|
3286
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
3287
|
+
};
|
|
3288
|
+
return decode(typeMappings, input);
|
|
3289
|
+
};
|
|
3290
|
+
|
|
3228
3291
|
decoders.MuteChannelResponse = (input?: Record<string, any>) => {
|
|
3229
3292
|
const typeMappings: TypeMapping = {
|
|
3230
3293
|
channel_mutes: { type: 'ChannelMute', isSingle: false },
|
|
@@ -4012,6 +4075,13 @@ decoders.ReminderUpdatedEvent = (input?: Record<string, any>) => {
|
|
|
4012
4075
|
return decode(typeMappings, input);
|
|
4013
4076
|
};
|
|
4014
4077
|
|
|
4078
|
+
decoders.RemoveUserGroupMembersResponse = (input?: Record<string, any>) => {
|
|
4079
|
+
const typeMappings: TypeMapping = {
|
|
4080
|
+
user_group: { type: 'UserGroupResponse', isSingle: true },
|
|
4081
|
+
};
|
|
4082
|
+
return decode(typeMappings, input);
|
|
4083
|
+
};
|
|
4084
|
+
|
|
4015
4085
|
decoders.ResolveSipInboundResponse = (input?: Record<string, any>) => {
|
|
4016
4086
|
const typeMappings: TypeMapping = {
|
|
4017
4087
|
sip_routing_rule: { type: 'SIPInboundRoutingRuleResponse', isSingle: true },
|
|
@@ -4028,6 +4098,13 @@ decoders.RestoreActivityResponse = (input?: Record<string, any>) => {
|
|
|
4028
4098
|
return decode(typeMappings, input);
|
|
4029
4099
|
};
|
|
4030
4100
|
|
|
4101
|
+
decoders.RestoreFeedGroupResponse = (input?: Record<string, any>) => {
|
|
4102
|
+
const typeMappings: TypeMapping = {
|
|
4103
|
+
feed_group: { type: 'FeedGroupResponse', isSingle: true },
|
|
4104
|
+
};
|
|
4105
|
+
return decode(typeMappings, input);
|
|
4106
|
+
};
|
|
4107
|
+
|
|
4031
4108
|
decoders.ReviewQueueItemNewEvent = (input?: Record<string, any>) => {
|
|
4032
4109
|
const typeMappings: TypeMapping = {
|
|
4033
4110
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -4174,6 +4251,13 @@ decoders.SearchResultMessage = (input?: Record<string, any>) => {
|
|
|
4174
4251
|
return decode(typeMappings, input);
|
|
4175
4252
|
};
|
|
4176
4253
|
|
|
4254
|
+
decoders.SearchUserGroupsResponse = (input?: Record<string, any>) => {
|
|
4255
|
+
const typeMappings: TypeMapping = {
|
|
4256
|
+
user_groups: { type: 'UserGroupResponse', isSingle: false },
|
|
4257
|
+
};
|
|
4258
|
+
return decode(typeMappings, input);
|
|
4259
|
+
};
|
|
4260
|
+
|
|
4177
4261
|
decoders.Segment = (input?: Record<string, any>) => {
|
|
4178
4262
|
const typeMappings: TypeMapping = {
|
|
4179
4263
|
created_at: { type: 'DatetimeType', isSingle: true },
|
|
@@ -4424,6 +4508,13 @@ decoders.UnblockedUserEvent = (input?: Record<string, any>) => {
|
|
|
4424
4508
|
return decode(typeMappings, input);
|
|
4425
4509
|
};
|
|
4426
4510
|
|
|
4511
|
+
decoders.UndeleteMessageResponse = (input?: Record<string, any>) => {
|
|
4512
|
+
const typeMappings: TypeMapping = {
|
|
4513
|
+
message: { type: 'MessageResponse', isSingle: true },
|
|
4514
|
+
};
|
|
4515
|
+
return decode(typeMappings, input);
|
|
4516
|
+
};
|
|
4517
|
+
|
|
4427
4518
|
decoders.UnfollowBatchResponse = (input?: Record<string, any>) => {
|
|
4428
4519
|
const typeMappings: TypeMapping = {
|
|
4429
4520
|
follows: { type: 'FollowResponse', isSingle: false },
|
|
@@ -4692,6 +4783,13 @@ decoders.UpdateThreadPartialResponse = (input?: Record<string, any>) => {
|
|
|
4692
4783
|
return decode(typeMappings, input);
|
|
4693
4784
|
};
|
|
4694
4785
|
|
|
4786
|
+
decoders.UpdateUserGroupResponse = (input?: Record<string, any>) => {
|
|
4787
|
+
const typeMappings: TypeMapping = {
|
|
4788
|
+
user_group: { type: 'UserGroupResponse', isSingle: true },
|
|
4789
|
+
};
|
|
4790
|
+
return decode(typeMappings, input);
|
|
4791
|
+
};
|
|
4792
|
+
|
|
4695
4793
|
decoders.UpdateUsersResponse = (input?: Record<string, any>) => {
|
|
4696
4794
|
const typeMappings: TypeMapping = {
|
|
4697
4795
|
users: { type: 'FullUserResponse', isSingle: false },
|
|
@@ -4818,6 +4916,79 @@ decoders.UserFlaggedEvent = (input?: Record<string, any>) => {
|
|
|
4818
4916
|
return decode(typeMappings, input);
|
|
4819
4917
|
};
|
|
4820
4918
|
|
|
4919
|
+
decoders.UserGroupCreatedEvent = (input?: Record<string, any>) => {
|
|
4920
|
+
const typeMappings: TypeMapping = {
|
|
4921
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4922
|
+
|
|
4923
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4924
|
+
|
|
4925
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
4926
|
+
};
|
|
4927
|
+
return decode(typeMappings, input);
|
|
4928
|
+
};
|
|
4929
|
+
|
|
4930
|
+
decoders.UserGroupDeletedEvent = (input?: Record<string, any>) => {
|
|
4931
|
+
const typeMappings: TypeMapping = {
|
|
4932
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4933
|
+
|
|
4934
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4935
|
+
|
|
4936
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
4937
|
+
};
|
|
4938
|
+
return decode(typeMappings, input);
|
|
4939
|
+
};
|
|
4940
|
+
|
|
4941
|
+
decoders.UserGroupMember = (input?: Record<string, any>) => {
|
|
4942
|
+
const typeMappings: TypeMapping = {
|
|
4943
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4944
|
+
};
|
|
4945
|
+
return decode(typeMappings, input);
|
|
4946
|
+
};
|
|
4947
|
+
|
|
4948
|
+
decoders.UserGroupMemberAddedEvent = (input?: Record<string, any>) => {
|
|
4949
|
+
const typeMappings: TypeMapping = {
|
|
4950
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4951
|
+
|
|
4952
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4953
|
+
|
|
4954
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
4955
|
+
};
|
|
4956
|
+
return decode(typeMappings, input);
|
|
4957
|
+
};
|
|
4958
|
+
|
|
4959
|
+
decoders.UserGroupMemberRemovedEvent = (input?: Record<string, any>) => {
|
|
4960
|
+
const typeMappings: TypeMapping = {
|
|
4961
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4962
|
+
|
|
4963
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4964
|
+
|
|
4965
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
4966
|
+
};
|
|
4967
|
+
return decode(typeMappings, input);
|
|
4968
|
+
};
|
|
4969
|
+
|
|
4970
|
+
decoders.UserGroupResponse = (input?: Record<string, any>) => {
|
|
4971
|
+
const typeMappings: TypeMapping = {
|
|
4972
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4973
|
+
|
|
4974
|
+
updated_at: { type: 'DatetimeType', isSingle: true },
|
|
4975
|
+
|
|
4976
|
+
members: { type: 'UserGroupMember', isSingle: false },
|
|
4977
|
+
};
|
|
4978
|
+
return decode(typeMappings, input);
|
|
4979
|
+
};
|
|
4980
|
+
|
|
4981
|
+
decoders.UserGroupUpdatedEvent = (input?: Record<string, any>) => {
|
|
4982
|
+
const typeMappings: TypeMapping = {
|
|
4983
|
+
created_at: { type: 'DatetimeType', isSingle: true },
|
|
4984
|
+
|
|
4985
|
+
received_at: { type: 'DatetimeType', isSingle: true },
|
|
4986
|
+
|
|
4987
|
+
user: { type: 'UserResponseCommonFields', isSingle: true },
|
|
4988
|
+
};
|
|
4989
|
+
return decode(typeMappings, input);
|
|
4990
|
+
};
|
|
4991
|
+
|
|
4821
4992
|
decoders.UserMessagesDeletedEvent = (input?: Record<string, any>) => {
|
|
4822
4993
|
const typeMappings: TypeMapping = {
|
|
4823
4994
|
created_at: { type: 'DatetimeType', isSingle: true },
|