@stream-io/node-sdk 0.7.41 → 0.7.43

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.
@@ -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: 'MessageReadEvent', isSingle: true },
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
- channel_last_message_at: { type: 'DatetimeType', isSingle: true },
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 },
@@ -3770,6 +3833,13 @@ decoders.QueryModerationRulesResponse = (input?: Record<string, any>) => {
3770
3833
  return decode(typeMappings, input);
3771
3834
  };
3772
3835
 
3836
+ decoders.QueryPinnedActivitiesResponse = (input?: Record<string, any>) => {
3837
+ const typeMappings: TypeMapping = {
3838
+ pinned_activities: { type: 'ActivityPinResponse', isSingle: false },
3839
+ };
3840
+ return decode(typeMappings, input);
3841
+ };
3842
+
3773
3843
  decoders.QueryPollsResponse = (input?: Record<string, any>) => {
3774
3844
  const typeMappings: TypeMapping = {
3775
3845
  polls: { type: 'PollResponseData', isSingle: false },
@@ -4005,6 +4075,13 @@ decoders.ReminderUpdatedEvent = (input?: Record<string, any>) => {
4005
4075
  return decode(typeMappings, input);
4006
4076
  };
4007
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
+
4008
4085
  decoders.ResolveSipInboundResponse = (input?: Record<string, any>) => {
4009
4086
  const typeMappings: TypeMapping = {
4010
4087
  sip_routing_rule: { type: 'SIPInboundRoutingRuleResponse', isSingle: true },
@@ -4021,6 +4098,13 @@ decoders.RestoreActivityResponse = (input?: Record<string, any>) => {
4021
4098
  return decode(typeMappings, input);
4022
4099
  };
4023
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
+
4024
4108
  decoders.ReviewQueueItemNewEvent = (input?: Record<string, any>) => {
4025
4109
  const typeMappings: TypeMapping = {
4026
4110
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -4167,6 +4251,13 @@ decoders.SearchResultMessage = (input?: Record<string, any>) => {
4167
4251
  return decode(typeMappings, input);
4168
4252
  };
4169
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
+
4170
4261
  decoders.Segment = (input?: Record<string, any>) => {
4171
4262
  const typeMappings: TypeMapping = {
4172
4263
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -4417,6 +4508,13 @@ decoders.UnblockedUserEvent = (input?: Record<string, any>) => {
4417
4508
  return decode(typeMappings, input);
4418
4509
  };
4419
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
+
4420
4518
  decoders.UnfollowBatchResponse = (input?: Record<string, any>) => {
4421
4519
  const typeMappings: TypeMapping = {
4422
4520
  follows: { type: 'FollowResponse', isSingle: false },
@@ -4685,6 +4783,13 @@ decoders.UpdateThreadPartialResponse = (input?: Record<string, any>) => {
4685
4783
  return decode(typeMappings, input);
4686
4784
  };
4687
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
+
4688
4793
  decoders.UpdateUsersResponse = (input?: Record<string, any>) => {
4689
4794
  const typeMappings: TypeMapping = {
4690
4795
  users: { type: 'FullUserResponse', isSingle: false },
@@ -4811,6 +4916,79 @@ decoders.UserFlaggedEvent = (input?: Record<string, any>) => {
4811
4916
  return decode(typeMappings, input);
4812
4917
  };
4813
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
+
4814
4992
  decoders.UserMessagesDeletedEvent = (input?: Record<string, any>) => {
4815
4993
  const typeMappings: TypeMapping = {
4816
4994
  created_at: { type: 'DatetimeType', isSingle: true },