@stream-io/node-sdk 0.7.34 → 0.7.35

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.es.mjs CHANGED
@@ -276,6 +276,38 @@ decoders.AppResponseFields = (input) => {
276
276
  };
277
277
  return decode(typeMappings, input);
278
278
  };
279
+ decoders.AppealAcceptedEvent = (input) => {
280
+ const typeMappings = {
281
+ created_at: { type: 'DatetimeType', isSingle: true },
282
+ received_at: { type: 'DatetimeType', isSingle: true },
283
+ appeal: { type: 'AppealItemResponse', isSingle: true },
284
+ };
285
+ return decode(typeMappings, input);
286
+ };
287
+ decoders.AppealCreatedEvent = (input) => {
288
+ const typeMappings = {
289
+ created_at: { type: 'DatetimeType', isSingle: true },
290
+ received_at: { type: 'DatetimeType', isSingle: true },
291
+ appeal: { type: 'AppealItemResponse', isSingle: true },
292
+ };
293
+ return decode(typeMappings, input);
294
+ };
295
+ decoders.AppealItemResponse = (input) => {
296
+ const typeMappings = {
297
+ created_at: { type: 'DatetimeType', isSingle: true },
298
+ updated_at: { type: 'DatetimeType', isSingle: true },
299
+ user: { type: 'UserResponse', isSingle: true },
300
+ };
301
+ return decode(typeMappings, input);
302
+ };
303
+ decoders.AppealRejectedEvent = (input) => {
304
+ const typeMappings = {
305
+ created_at: { type: 'DatetimeType', isSingle: true },
306
+ received_at: { type: 'DatetimeType', isSingle: true },
307
+ appeal: { type: 'AppealItemResponse', isSingle: true },
308
+ };
309
+ return decode(typeMappings, input);
310
+ };
279
311
  decoders.AsyncBulkImageModerationEvent = (input) => {
280
312
  const typeMappings = {
281
313
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -910,7 +942,7 @@ decoders.Channel = (input) => {
910
942
  };
911
943
  return decode(typeMappings, input);
912
944
  };
913
- decoders.ChannelBatchUpdatedCompletedEvent = (input) => {
945
+ decoders.ChannelBatchCompletedEvent = (input) => {
914
946
  const typeMappings = {
915
947
  batch_created_at: { type: 'DatetimeType', isSingle: true },
916
948
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -919,7 +951,7 @@ decoders.ChannelBatchUpdatedCompletedEvent = (input) => {
919
951
  };
920
952
  return decode(typeMappings, input);
921
953
  };
922
- decoders.ChannelBatchUpdatedStartedEvent = (input) => {
954
+ decoders.ChannelBatchStartedEvent = (input) => {
923
955
  const typeMappings = {
924
956
  batch_created_at: { type: 'DatetimeType', isSingle: true },
925
957
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1314,6 +1346,13 @@ decoders.CreateImportResponse = (input) => {
1314
1346
  };
1315
1347
  return decode(typeMappings, input);
1316
1348
  };
1349
+ decoders.CreateImportV2TaskResponse = (input) => {
1350
+ const typeMappings = {
1351
+ created_at: { type: 'DatetimeType', isSingle: true },
1352
+ updated_at: { type: 'DatetimeType', isSingle: true },
1353
+ };
1354
+ return decode(typeMappings, input);
1355
+ };
1317
1356
  decoders.CreateMembershipLevelResponse = (input) => {
1318
1357
  const typeMappings = {
1319
1358
  membership_level: { type: 'MembershipLevelResponse', isSingle: true },
@@ -1702,6 +1741,15 @@ decoders.FullUserResponse = (input) => {
1702
1741
  };
1703
1742
  return decode(typeMappings, input);
1704
1743
  };
1744
+ decoders.FutureChannelBanResponse = (input) => {
1745
+ const typeMappings = {
1746
+ created_at: { type: 'DatetimeType', isSingle: true },
1747
+ expires: { type: 'DatetimeType', isSingle: true },
1748
+ banned_by: { type: 'UserResponse', isSingle: true },
1749
+ user: { type: 'UserResponse', isSingle: true },
1750
+ };
1751
+ return decode(typeMappings, input);
1752
+ };
1705
1753
  decoders.GetActiveCallsStatusResponse = (input) => {
1706
1754
  const typeMappings = {
1707
1755
  end_time: { type: 'DatetimeType', isSingle: true },
@@ -1715,6 +1763,12 @@ decoders.GetActivityResponse = (input) => {
1715
1763
  };
1716
1764
  return decode(typeMappings, input);
1717
1765
  };
1766
+ decoders.GetAppealResponse = (input) => {
1767
+ const typeMappings = {
1768
+ item: { type: 'AppealItemResponse', isSingle: true },
1769
+ };
1770
+ return decode(typeMappings, input);
1771
+ };
1718
1772
  decoders.GetApplicationResponse = (input) => {
1719
1773
  const typeMappings = {
1720
1774
  app: { type: 'AppResponseFields', isSingle: true },
@@ -1824,6 +1878,13 @@ decoders.GetImportResponse = (input) => {
1824
1878
  };
1825
1879
  return decode(typeMappings, input);
1826
1880
  };
1881
+ decoders.GetImportV2TaskResponse = (input) => {
1882
+ const typeMappings = {
1883
+ created_at: { type: 'DatetimeType', isSingle: true },
1884
+ updated_at: { type: 'DatetimeType', isSingle: true },
1885
+ };
1886
+ return decode(typeMappings, input);
1887
+ };
1827
1888
  decoders.GetManyMessagesResponse = (input) => {
1828
1889
  const typeMappings = {
1829
1890
  messages: { type: 'MessageResponse', isSingle: false },
@@ -1940,6 +2001,31 @@ decoders.ImportTaskHistory = (input) => {
1940
2001
  };
1941
2002
  return decode(typeMappings, input);
1942
2003
  };
2004
+ decoders.ImportV2TaskItem = (input) => {
2005
+ const typeMappings = {
2006
+ created_at: { type: 'DatetimeType', isSingle: true },
2007
+ updated_at: { type: 'DatetimeType', isSingle: true },
2008
+ };
2009
+ return decode(typeMappings, input);
2010
+ };
2011
+ decoders.IngressErrorEvent = (input) => {
2012
+ const typeMappings = {
2013
+ created_at: { type: 'DatetimeType', isSingle: true },
2014
+ };
2015
+ return decode(typeMappings, input);
2016
+ };
2017
+ decoders.IngressStartedEvent = (input) => {
2018
+ const typeMappings = {
2019
+ created_at: { type: 'DatetimeType', isSingle: true },
2020
+ };
2021
+ return decode(typeMappings, input);
2022
+ };
2023
+ decoders.IngressStoppedEvent = (input) => {
2024
+ const typeMappings = {
2025
+ created_at: { type: 'DatetimeType', isSingle: true },
2026
+ };
2027
+ return decode(typeMappings, input);
2028
+ };
1943
2029
  decoders.KickedUserEvent = (input) => {
1944
2030
  const typeMappings = {
1945
2031
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1990,6 +2076,12 @@ decoders.ListFeedViewsResponse = (input) => {
1990
2076
  };
1991
2077
  return decode(typeMappings, input);
1992
2078
  };
2079
+ decoders.ListImportV2TasksResponse = (input) => {
2080
+ const typeMappings = {
2081
+ import_tasks: { type: 'ImportV2TaskItem', isSingle: false },
2082
+ };
2083
+ return decode(typeMappings, input);
2084
+ };
1993
2085
  decoders.ListImportsResponse = (input) => {
1994
2086
  const typeMappings = {
1995
2087
  import_tasks: { type: 'ImportTask', isSingle: false },
@@ -2416,6 +2508,13 @@ decoders.ParticipantSeriesTimeframe = (input) => {
2416
2508
  };
2417
2509
  return decode(typeMappings, input);
2418
2510
  };
2511
+ decoders.ParticipantSessionDetails = (input) => {
2512
+ const typeMappings = {
2513
+ joined_at: { type: 'DatetimeType', isSingle: true },
2514
+ left_at: { type: 'DatetimeType', isSingle: true },
2515
+ };
2516
+ return decode(typeMappings, input);
2517
+ };
2419
2518
  decoders.PendingMessageEvent = (input) => {
2420
2519
  const typeMappings = {
2421
2520
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2563,6 +2662,12 @@ decoders.QueryActivityReactionsResponse = (input) => {
2563
2662
  };
2564
2663
  return decode(typeMappings, input);
2565
2664
  };
2665
+ decoders.QueryAppealsResponse = (input) => {
2666
+ const typeMappings = {
2667
+ items: { type: 'AppealItemResponse', isSingle: false },
2668
+ };
2669
+ return decode(typeMappings, input);
2670
+ };
2566
2671
  decoders.QueryBannedUsersResponse = (input) => {
2567
2672
  const typeMappings = {
2568
2673
  bans: { type: 'BanResponse', isSingle: false },
@@ -2587,6 +2692,16 @@ decoders.QueryCallMembersResponse = (input) => {
2587
2692
  };
2588
2693
  return decode(typeMappings, input);
2589
2694
  };
2695
+ decoders.QueryCallParticipantSessionsResponse = (input) => {
2696
+ const typeMappings = {
2697
+ participants_sessions: {
2698
+ type: 'ParticipantSessionDetails',
2699
+ isSingle: false,
2700
+ },
2701
+ session: { type: 'CallSessionResponse', isSingle: true },
2702
+ };
2703
+ return decode(typeMappings, input);
2704
+ };
2590
2705
  decoders.QueryCallParticipantsResponse = (input) => {
2591
2706
  const typeMappings = {
2592
2707
  members: { type: 'MemberResponse', isSingle: false },
@@ -2692,6 +2807,12 @@ decoders.QueryFollowsResponse = (input) => {
2692
2807
  };
2693
2808
  return decode(typeMappings, input);
2694
2809
  };
2810
+ decoders.QueryFutureChannelBansResponse = (input) => {
2811
+ const typeMappings = {
2812
+ bans: { type: 'FutureChannelBanResponse', isSingle: false },
2813
+ };
2814
+ return decode(typeMappings, input);
2815
+ };
2695
2816
  decoders.QueryMembershipLevelsResponse = (input) => {
2696
2817
  const typeMappings = {
2697
2818
  membership_levels: { type: 'MembershipLevelResponse', isSingle: false },
@@ -2929,6 +3050,7 @@ decoders.ReviewQueueItemResponse = (input) => {
2929
3050
  flags: { type: 'ModerationFlagResponse', isSingle: false },
2930
3051
  completed_at: { type: 'DatetimeType', isSingle: true },
2931
3052
  reviewed_at: { type: 'DatetimeType', isSingle: true },
3053
+ appeal: { type: 'AppealItemResponse', isSingle: true },
2932
3054
  assigned_to: { type: 'UserResponse', isSingle: true },
2933
3055
  call: { type: 'CallResponse', isSingle: true },
2934
3056
  entity_creator: { type: 'EntityCreatorResponse', isSingle: true },
@@ -3099,6 +3221,7 @@ decoders.StoriesFeedUpdatedEvent = (input) => {
3099
3221
  };
3100
3222
  decoders.SubmitActionResponse = (input) => {
3101
3223
  const typeMappings = {
3224
+ appeal_item: { type: 'AppealItemResponse', isSingle: true },
3102
3225
  item: { type: 'ReviewQueueItemResponse', isSingle: true },
3103
3226
  };
3104
3227
  return decode(typeMappings, input);
@@ -3904,6 +4027,41 @@ class CommonApi {
3904
4027
  decoders.CreateImportResponse?.(response.body);
3905
4028
  return { ...response.body, metadata: response.metadata };
3906
4029
  }
4030
+ async listImportV2Tasks(request) {
4031
+ const queryParams = {
4032
+ state: request?.state,
4033
+ };
4034
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/imports/v2', undefined, queryParams);
4035
+ decoders.ListImportV2TasksResponse?.(response.body);
4036
+ return { ...response.body, metadata: response.metadata };
4037
+ }
4038
+ async createImportV2Task(request) {
4039
+ const body = {
4040
+ product: request?.product,
4041
+ settings: request?.settings,
4042
+ user_id: request?.user_id,
4043
+ user: request?.user,
4044
+ };
4045
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/imports/v2', undefined, undefined, body, 'application/json');
4046
+ decoders.CreateImportV2TaskResponse?.(response.body);
4047
+ return { ...response.body, metadata: response.metadata };
4048
+ }
4049
+ async deleteImportV2Task(request) {
4050
+ const pathParams = {
4051
+ id: request?.id,
4052
+ };
4053
+ const response = await this.apiClient.sendRequest('DELETE', '/api/v2/imports/v2/{id}', pathParams, undefined);
4054
+ decoders.DeleteImportV2TaskResponse?.(response.body);
4055
+ return { ...response.body, metadata: response.metadata };
4056
+ }
4057
+ async getImportV2Task(request) {
4058
+ const pathParams = {
4059
+ id: request?.id,
4060
+ };
4061
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/imports/v2/{id}', pathParams, undefined);
4062
+ decoders.GetImportV2TaskResponse?.(response.body);
4063
+ return { ...response.body, metadata: response.metadata };
4064
+ }
3907
4065
  async getImport(request) {
3908
4066
  const pathParams = {
3909
4067
  id: request?.id,
@@ -4554,7 +4712,10 @@ class VideoApi {
4554
4712
  const body = {
4555
4713
  recording_storage_name: request?.recording_storage_name,
4556
4714
  start_closed_caption: request?.start_closed_caption,
4715
+ start_composite_recording: request?.start_composite_recording,
4557
4716
  start_hls: request?.start_hls,
4717
+ start_individual_recording: request?.start_individual_recording,
4718
+ start_raw_recording: request?.start_raw_recording,
4558
4719
  start_recording: request?.start_recording,
4559
4720
  start_transcription: request?.start_transcription,
4560
4721
  transcription_storage_name: request?.transcription_storage_name,
@@ -4713,6 +4874,22 @@ class VideoApi {
4713
4874
  decoders.StopRTMPBroadcastsResponse?.(response.body);
4714
4875
  return { ...response.body, metadata: response.metadata };
4715
4876
  }
4877
+ async queryCallParticipantSessions(request) {
4878
+ const queryParams = {
4879
+ limit: request?.limit,
4880
+ prev: request?.prev,
4881
+ next: request?.next,
4882
+ filter_conditions: request?.filter_conditions,
4883
+ };
4884
+ const pathParams = {
4885
+ type: request?.type,
4886
+ id: request?.id,
4887
+ session: request?.session,
4888
+ };
4889
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/video/call/{type}/{id}/session/{session}/participant_sessions', pathParams, queryParams);
4890
+ decoders.QueryCallParticipantSessionsResponse?.(response.body);
4891
+ return { ...response.body, metadata: response.metadata };
4892
+ }
4716
4893
  async startHLSBroadcasting(request) {
4717
4894
  const pathParams = {
4718
4895
  type: request?.type,
@@ -4812,7 +4989,10 @@ class VideoApi {
4812
4989
  };
4813
4990
  const body = {
4814
4991
  continue_closed_caption: request?.continue_closed_caption,
4992
+ continue_composite_recording: request?.continue_composite_recording,
4815
4993
  continue_hls: request?.continue_hls,
4994
+ continue_individual_recording: request?.continue_individual_recording,
4995
+ continue_raw_recording: request?.continue_raw_recording,
4816
4996
  continue_recording: request?.continue_recording,
4817
4997
  continue_rtmp_broadcasts: request?.continue_rtmp_broadcasts,
4818
4998
  continue_transcription: request?.continue_transcription,
@@ -4826,7 +5006,8 @@ class VideoApi {
4826
5006
  type: request?.type,
4827
5007
  id: request?.id,
4828
5008
  };
4829
- const response = await this.apiClient.sendRequest('POST', '/api/v2/video/call/{type}/{id}/stop_recording', pathParams, undefined);
5009
+ const body = {};
5010
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/video/call/{type}/{id}/stop_recording', pathParams, undefined, body, 'application/json');
4830
5011
  decoders.StopRecordingResponse?.(response.body);
4831
5012
  return { ...response.body, metadata: response.metadata };
4832
5013
  }
@@ -5044,19 +5225,8 @@ class VideoApi {
5044
5225
  decoders.GetEdgesResponse?.(response.body);
5045
5226
  return { ...response.body, metadata: response.metadata };
5046
5227
  }
5047
- async resolveSipInbound(request) {
5048
- const body = {
5049
- sip_caller_number: request?.sip_caller_number,
5050
- sip_trunk_number: request?.sip_trunk_number,
5051
- challenge: request?.challenge,
5052
- sip_headers: request?.sip_headers,
5053
- };
5054
- const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/resolve', undefined, undefined, body, 'application/json');
5055
- decoders.ResolveSipInboundResponse?.(response.body);
5056
- return { ...response.body, metadata: response.metadata };
5057
- }
5058
5228
  async listSIPInboundRoutingRule() {
5059
- const response = await this.apiClient.sendRequest('GET', '/api/v2/video/sip/routing_rules', undefined, undefined);
5229
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/video/sip/inbound_routing_rules', undefined, undefined);
5060
5230
  decoders.ListSIPInboundRoutingRuleResponse?.(response.body);
5061
5231
  return { ...response.body, metadata: response.metadata };
5062
5232
  }
@@ -5072,7 +5242,7 @@ class VideoApi {
5072
5242
  pin_protection_configs: request?.pin_protection_configs,
5073
5243
  pin_routing_configs: request?.pin_routing_configs,
5074
5244
  };
5075
- const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/routing_rules', undefined, undefined, body, 'application/json');
5245
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/inbound_routing_rules', undefined, undefined, body, 'application/json');
5076
5246
  decoders.SIPInboundRoutingRuleResponse?.(response.body);
5077
5247
  return { ...response.body, metadata: response.metadata };
5078
5248
  }
@@ -5080,7 +5250,7 @@ class VideoApi {
5080
5250
  const pathParams = {
5081
5251
  id: request?.id,
5082
5252
  };
5083
- const response = await this.apiClient.sendRequest('DELETE', '/api/v2/video/sip/routing_rules/{id}', pathParams, undefined);
5253
+ const response = await this.apiClient.sendRequest('DELETE', '/api/v2/video/sip/inbound_routing_rules/{id}', pathParams, undefined);
5084
5254
  decoders.DeleteSIPInboundRoutingRuleResponse?.(response.body);
5085
5255
  return { ...response.body, metadata: response.metadata };
5086
5256
  }
@@ -5099,12 +5269,12 @@ class VideoApi {
5099
5269
  pin_protection_configs: request?.pin_protection_configs,
5100
5270
  pin_routing_configs: request?.pin_routing_configs,
5101
5271
  };
5102
- const response = await this.apiClient.sendRequest('PUT', '/api/v2/video/sip/routing_rules/{id}', pathParams, undefined, body, 'application/json');
5272
+ const response = await this.apiClient.sendRequest('PUT', '/api/v2/video/sip/inbound_routing_rules/{id}', pathParams, undefined, body, 'application/json');
5103
5273
  decoders.UpdateSIPInboundRoutingRuleResponse?.(response.body);
5104
5274
  return { ...response.body, metadata: response.metadata };
5105
5275
  }
5106
5276
  async listSIPTrunks() {
5107
- const response = await this.apiClient.sendRequest('GET', '/api/v2/video/sip/trunks', undefined, undefined);
5277
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/video/sip/inbound_trunks', undefined, undefined);
5108
5278
  decoders.ListSIPTrunksResponse?.(response.body);
5109
5279
  return { ...response.body, metadata: response.metadata };
5110
5280
  }
@@ -5113,7 +5283,7 @@ class VideoApi {
5113
5283
  name: request?.name,
5114
5284
  numbers: request?.numbers,
5115
5285
  };
5116
- const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/trunks', undefined, undefined, body, 'application/json');
5286
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/inbound_trunks', undefined, undefined, body, 'application/json');
5117
5287
  decoders.CreateSIPTrunkResponse?.(response.body);
5118
5288
  return { ...response.body, metadata: response.metadata };
5119
5289
  }
@@ -5121,7 +5291,7 @@ class VideoApi {
5121
5291
  const pathParams = {
5122
5292
  id: request?.id,
5123
5293
  };
5124
- const response = await this.apiClient.sendRequest('DELETE', '/api/v2/video/sip/trunks/{id}', pathParams, undefined);
5294
+ const response = await this.apiClient.sendRequest('DELETE', '/api/v2/video/sip/inbound_trunks/{id}', pathParams, undefined);
5125
5295
  decoders.DeleteSIPTrunkResponse?.(response.body);
5126
5296
  return { ...response.body, metadata: response.metadata };
5127
5297
  }
@@ -5133,10 +5303,22 @@ class VideoApi {
5133
5303
  name: request?.name,
5134
5304
  numbers: request?.numbers,
5135
5305
  };
5136
- const response = await this.apiClient.sendRequest('PUT', '/api/v2/video/sip/trunks/{id}', pathParams, undefined, body, 'application/json');
5306
+ const response = await this.apiClient.sendRequest('PUT', '/api/v2/video/sip/inbound_trunks/{id}', pathParams, undefined, body, 'application/json');
5137
5307
  decoders.UpdateSIPTrunkResponse?.(response.body);
5138
5308
  return { ...response.body, metadata: response.metadata };
5139
5309
  }
5310
+ async resolveSipInbound(request) {
5311
+ const body = {
5312
+ sip_caller_number: request?.sip_caller_number,
5313
+ sip_trunk_number: request?.sip_trunk_number,
5314
+ challenge: request?.challenge,
5315
+ routing_number: request?.routing_number,
5316
+ sip_headers: request?.sip_headers,
5317
+ };
5318
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/resolve', undefined, undefined, body, 'application/json');
5319
+ decoders.ResolveSipInboundResponse?.(response.body);
5320
+ return { ...response.body, metadata: response.metadata };
5321
+ }
5140
5322
  async queryAggregateCallStats(request) {
5141
5323
  const body = {
5142
5324
  from: request?.from,
@@ -5273,6 +5455,13 @@ class CallApi {
5273
5455
  ...request,
5274
5456
  });
5275
5457
  }
5458
+ queryCallParticipantSessions(request) {
5459
+ return this.videoApi.queryCallParticipantSessions({
5460
+ id: this.id,
5461
+ type: this.type,
5462
+ ...request,
5463
+ });
5464
+ }
5276
5465
  startHLSBroadcasting() {
5277
5466
  return this.videoApi.startHLSBroadcasting({ id: this.id, type: this.type });
5278
5467
  }
@@ -5320,8 +5509,12 @@ class CallApi {
5320
5509
  stopLive(request) {
5321
5510
  return this.videoApi.stopLive({ id: this.id, type: this.type, ...request });
5322
5511
  }
5323
- stopRecording() {
5324
- return this.videoApi.stopRecording({ id: this.id, type: this.type });
5512
+ stopRecording(request) {
5513
+ return this.videoApi.stopRecording({
5514
+ id: this.id,
5515
+ type: this.type,
5516
+ ...request,
5517
+ });
5325
5518
  }
5326
5519
  stopTranscription(request) {
5327
5520
  return this.videoApi.stopTranscription({
@@ -5512,10 +5705,13 @@ class ChatApi {
5512
5705
  member_limit: request?.member_limit,
5513
5706
  message_limit: request?.message_limit,
5514
5707
  offset: request?.offset,
5708
+ predefined_filter: request?.predefined_filter,
5515
5709
  state: request?.state,
5516
5710
  user_id: request?.user_id,
5517
5711
  sort: request?.sort,
5518
5712
  filter_conditions: request?.filter_conditions,
5713
+ filter_values: request?.filter_values,
5714
+ sort_values: request?.sort_values,
5519
5715
  user: request?.user,
5520
5716
  };
5521
5717
  const response = await this.apiClient.sendRequest('POST', '/api/v2/chat/channels', undefined, undefined, body, 'application/json');
@@ -6334,6 +6530,14 @@ class ChatApi {
6334
6530
  decoders.QueryBannedUsersResponse?.(response.body);
6335
6531
  return { ...response.body, metadata: response.metadata };
6336
6532
  }
6533
+ async queryFutureChannelBans(request) {
6534
+ const queryParams = {
6535
+ payload: request?.payload,
6536
+ };
6537
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/chat/query_future_channel_bans', undefined, queryParams);
6538
+ decoders.QueryFutureChannelBansResponse?.(response.body);
6539
+ return { ...response.body, metadata: response.metadata };
6540
+ }
6337
6541
  async queryReminders(request) {
6338
6542
  const body = {
6339
6543
  limit: request?.limit,
@@ -6729,6 +6933,41 @@ class ModerationApi {
6729
6933
  constructor(apiClient) {
6730
6934
  this.apiClient = apiClient;
6731
6935
  }
6936
+ async appeal(request) {
6937
+ const body = {
6938
+ appeal_reason: request?.appeal_reason,
6939
+ entity_id: request?.entity_id,
6940
+ entity_type: request?.entity_type,
6941
+ user_id: request?.user_id,
6942
+ attachments: request?.attachments,
6943
+ user: request?.user,
6944
+ };
6945
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/moderation/appeal', undefined, undefined, body, 'application/json');
6946
+ decoders.AppealResponse?.(response.body);
6947
+ return { ...response.body, metadata: response.metadata };
6948
+ }
6949
+ async getAppeal(request) {
6950
+ const pathParams = {
6951
+ id: request?.id,
6952
+ };
6953
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/moderation/appeal/{id}', pathParams, undefined);
6954
+ decoders.GetAppealResponse?.(response.body);
6955
+ return { ...response.body, metadata: response.metadata };
6956
+ }
6957
+ async queryAppeals(request) {
6958
+ const body = {
6959
+ limit: request?.limit,
6960
+ next: request?.next,
6961
+ prev: request?.prev,
6962
+ user_id: request?.user_id,
6963
+ sort: request?.sort,
6964
+ filter: request?.filter,
6965
+ user: request?.user,
6966
+ };
6967
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/moderation/appeals', undefined, undefined, body, 'application/json');
6968
+ decoders.QueryAppealsResponse?.(response.body);
6969
+ return { ...response.body, metadata: response.metadata };
6970
+ }
6732
6971
  async ban(request) {
6733
6972
  const body = {
6734
6973
  target_user_id: request?.target_user_id,
@@ -6989,6 +7228,7 @@ class ModerationApi {
6989
7228
  async submitAction(request) {
6990
7229
  const body = {
6991
7230
  action_type: request?.action_type,
7231
+ appeal_id: request?.appeal_id,
6992
7232
  item_id: request?.item_id,
6993
7233
  user_id: request?.user_id,
6994
7234
  ban: request?.ban,
@@ -7000,8 +7240,11 @@ class ModerationApi {
7000
7240
  delete_reaction: request?.delete_reaction,
7001
7241
  delete_user: request?.delete_user,
7002
7242
  mark_reviewed: request?.mark_reviewed,
7243
+ reject_appeal: request?.reject_appeal,
7244
+ restore: request?.restore,
7003
7245
  shadow_block: request?.shadow_block,
7004
7246
  unban: request?.unban,
7247
+ unblock: request?.unblock,
7005
7248
  user: request?.user,
7006
7249
  };
7007
7250
  const response = await this.apiClient.sendRequest('POST', '/api/v2/moderation/submit_action', undefined, undefined, body, 'application/json');
@@ -7084,7 +7327,7 @@ class ApiClient {
7084
7327
  const headers = {
7085
7328
  Authorization: this.apiConfig.token,
7086
7329
  'stream-auth-type': 'jwt',
7087
- 'X-Stream-Client': 'stream-node-' + "0.7.34",
7330
+ 'X-Stream-Client': 'stream-node-' + "0.7.35",
7088
7331
  'Accept-Encoding': 'gzip',
7089
7332
  'x-client-request-id': clientRequestId,
7090
7333
  };
@@ -7180,12 +7423,14 @@ class FeedsApi {
7180
7423
  const body = {
7181
7424
  type: request?.type,
7182
7425
  feeds: request?.feeds,
7426
+ create_notification_activity: request?.create_notification_activity,
7183
7427
  expires_at: request?.expires_at,
7184
7428
  id: request?.id,
7185
7429
  parent_id: request?.parent_id,
7186
7430
  poll_id: request?.poll_id,
7187
7431
  restrict_replies: request?.restrict_replies,
7188
7432
  skip_enrich_url: request?.skip_enrich_url,
7433
+ skip_push: request?.skip_push,
7189
7434
  text: request?.text,
7190
7435
  user_id: request?.user_id,
7191
7436
  visibility: request?.visibility,
@@ -7356,6 +7601,7 @@ class FeedsApi {
7356
7601
  }
7357
7602
  async deleteActivityReaction(request) {
7358
7603
  const queryParams = {
7604
+ delete_notification_activity: request?.delete_notification_activity,
7359
7605
  user_id: request?.user_id,
7360
7606
  };
7361
7607
  const pathParams = {
@@ -7390,6 +7636,7 @@ class FeedsApi {
7390
7636
  id: request?.id,
7391
7637
  };
7392
7638
  const body = {
7639
+ handle_mention_notifications: request?.handle_mention_notifications,
7393
7640
  user_id: request?.user_id,
7394
7641
  unset: request?.unset,
7395
7642
  set: request?.set,
@@ -7405,12 +7652,14 @@ class FeedsApi {
7405
7652
  };
7406
7653
  const body = {
7407
7654
  expires_at: request?.expires_at,
7655
+ handle_mention_notifications: request?.handle_mention_notifications,
7408
7656
  poll_id: request?.poll_id,
7409
7657
  restrict_replies: request?.restrict_replies,
7410
7658
  skip_enrich_url: request?.skip_enrich_url,
7411
7659
  text: request?.text,
7412
7660
  user_id: request?.user_id,
7413
7661
  visibility: request?.visibility,
7662
+ visibility_tag: request?.visibility_tag,
7414
7663
  attachments: request?.attachments,
7415
7664
  collection_refs: request?.collection_refs,
7416
7665
  feeds: request?.feeds,
@@ -7523,6 +7772,7 @@ class FeedsApi {
7523
7772
  depth: request?.depth,
7524
7773
  sort: request?.sort,
7525
7774
  replies_limit: request?.replies_limit,
7775
+ user_id: request?.user_id,
7526
7776
  limit: request?.limit,
7527
7777
  prev: request?.prev,
7528
7778
  next: request?.next,
@@ -7574,6 +7824,7 @@ class FeedsApi {
7574
7824
  async deleteComment(request) {
7575
7825
  const queryParams = {
7576
7826
  hard_delete: request?.hard_delete,
7827
+ delete_notification_activity: request?.delete_notification_activity,
7577
7828
  };
7578
7829
  const pathParams = {
7579
7830
  id: request?.id,
@@ -7596,10 +7847,12 @@ class FeedsApi {
7596
7847
  };
7597
7848
  const body = {
7598
7849
  comment: request?.comment,
7850
+ handle_mention_notifications: request?.handle_mention_notifications,
7599
7851
  skip_enrich_url: request?.skip_enrich_url,
7600
7852
  skip_push: request?.skip_push,
7601
7853
  user_id: request?.user_id,
7602
7854
  attachments: request?.attachments,
7855
+ mentioned_user_ids: request?.mentioned_user_ids,
7603
7856
  custom: request?.custom,
7604
7857
  user: request?.user,
7605
7858
  };
@@ -7641,6 +7894,7 @@ class FeedsApi {
7641
7894
  }
7642
7895
  async deleteCommentReaction(request) {
7643
7896
  const queryParams = {
7897
+ delete_notification_activity: request?.delete_notification_activity,
7644
7898
  user_id: request?.user_id,
7645
7899
  };
7646
7900
  const pathParams = {
@@ -7656,6 +7910,7 @@ class FeedsApi {
7656
7910
  depth: request?.depth,
7657
7911
  sort: request?.sort,
7658
7912
  replies_limit: request?.replies_limit,
7913
+ user_id: request?.user_id,
7659
7914
  limit: request?.limit,
7660
7915
  prev: request?.prev,
7661
7916
  next: request?.next,
@@ -8132,11 +8387,14 @@ class FeedsApi {
8132
8387
  return { ...response.body, metadata: response.metadata };
8133
8388
  }
8134
8389
  async unfollow(request) {
8390
+ const queryParams = {
8391
+ delete_notification_activity: request?.delete_notification_activity,
8392
+ };
8135
8393
  const pathParams = {
8136
8394
  source: request?.source,
8137
8395
  target: request?.target,
8138
8396
  };
8139
- const response = await this.apiClient.sendRequest('DELETE', '/api/v2/feeds/follows/{source}/{target}', pathParams, undefined);
8397
+ const response = await this.apiClient.sendRequest('DELETE', '/api/v2/feeds/follows/{source}/{target}', pathParams, queryParams);
8140
8398
  decoders.UnfollowResponse?.(response.body);
8141
8399
  return { ...response.body, metadata: response.metadata };
8142
8400
  }
@@ -8200,6 +8458,7 @@ class FeedsApi {
8200
8458
  async unfollowBatch(request) {
8201
8459
  const body = {
8202
8460
  follows: request?.follows,
8461
+ delete_notification_activity: request?.delete_notification_activity,
8203
8462
  };
8204
8463
  const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/unfollow/batch', undefined, undefined, body, 'application/json');
8205
8464
  decoders.UnfollowBatchResponse?.(response.body);
@@ -8208,6 +8467,7 @@ class FeedsApi {
8208
8467
  async getOrCreateUnfollows(request) {
8209
8468
  const body = {
8210
8469
  follows: request?.follows,
8470
+ delete_notification_activity: request?.delete_notification_activity,
8211
8471
  };
8212
8472
  const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/unfollow/batch/upsert', undefined, undefined, body, 'application/json');
8213
8473
  decoders.UnfollowBatchResponse?.(response.body);
@@ -8611,11 +8871,15 @@ const OwnCapability = {
8611
8871
  START_BROADCAST_CALL: 'start-broadcast-call',
8612
8872
  START_CLOSED_CAPTIONS_CALL: 'start-closed-captions-call',
8613
8873
  START_FRAME_RECORD_CALL: 'start-frame-record-call',
8874
+ START_INDIVIDUAL_RECORD_CALL: 'start-individual-record-call',
8875
+ START_RAW_RECORD_CALL: 'start-raw-record-call',
8614
8876
  START_RECORD_CALL: 'start-record-call',
8615
8877
  START_TRANSCRIPTION_CALL: 'start-transcription-call',
8616
8878
  STOP_BROADCAST_CALL: 'stop-broadcast-call',
8617
8879
  STOP_CLOSED_CAPTIONS_CALL: 'stop-closed-captions-call',
8618
8880
  STOP_FRAME_RECORD_CALL: 'stop-frame-record-call',
8881
+ STOP_INDIVIDUAL_RECORD_CALL: 'stop-individual-record-call',
8882
+ STOP_RAW_RECORD_CALL: 'stop-raw-record-call',
8619
8883
  STOP_RECORD_CALL: 'stop-record-call',
8620
8884
  STOP_TRANSCRIPTION_CALL: 'stop-transcription-call',
8621
8885
  UPDATE_CALL: 'update-call',