@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.cjs.js CHANGED
@@ -295,6 +295,38 @@ decoders.AppResponseFields = (input) => {
295
295
  };
296
296
  return decode(typeMappings, input);
297
297
  };
298
+ decoders.AppealAcceptedEvent = (input) => {
299
+ const typeMappings = {
300
+ created_at: { type: 'DatetimeType', isSingle: true },
301
+ received_at: { type: 'DatetimeType', isSingle: true },
302
+ appeal: { type: 'AppealItemResponse', isSingle: true },
303
+ };
304
+ return decode(typeMappings, input);
305
+ };
306
+ decoders.AppealCreatedEvent = (input) => {
307
+ const typeMappings = {
308
+ created_at: { type: 'DatetimeType', isSingle: true },
309
+ received_at: { type: 'DatetimeType', isSingle: true },
310
+ appeal: { type: 'AppealItemResponse', isSingle: true },
311
+ };
312
+ return decode(typeMappings, input);
313
+ };
314
+ decoders.AppealItemResponse = (input) => {
315
+ const typeMappings = {
316
+ created_at: { type: 'DatetimeType', isSingle: true },
317
+ updated_at: { type: 'DatetimeType', isSingle: true },
318
+ user: { type: 'UserResponse', isSingle: true },
319
+ };
320
+ return decode(typeMappings, input);
321
+ };
322
+ decoders.AppealRejectedEvent = (input) => {
323
+ const typeMappings = {
324
+ created_at: { type: 'DatetimeType', isSingle: true },
325
+ received_at: { type: 'DatetimeType', isSingle: true },
326
+ appeal: { type: 'AppealItemResponse', isSingle: true },
327
+ };
328
+ return decode(typeMappings, input);
329
+ };
298
330
  decoders.AsyncBulkImageModerationEvent = (input) => {
299
331
  const typeMappings = {
300
332
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -929,7 +961,7 @@ decoders.Channel = (input) => {
929
961
  };
930
962
  return decode(typeMappings, input);
931
963
  };
932
- decoders.ChannelBatchUpdatedCompletedEvent = (input) => {
964
+ decoders.ChannelBatchCompletedEvent = (input) => {
933
965
  const typeMappings = {
934
966
  batch_created_at: { type: 'DatetimeType', isSingle: true },
935
967
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -938,7 +970,7 @@ decoders.ChannelBatchUpdatedCompletedEvent = (input) => {
938
970
  };
939
971
  return decode(typeMappings, input);
940
972
  };
941
- decoders.ChannelBatchUpdatedStartedEvent = (input) => {
973
+ decoders.ChannelBatchStartedEvent = (input) => {
942
974
  const typeMappings = {
943
975
  batch_created_at: { type: 'DatetimeType', isSingle: true },
944
976
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1333,6 +1365,13 @@ decoders.CreateImportResponse = (input) => {
1333
1365
  };
1334
1366
  return decode(typeMappings, input);
1335
1367
  };
1368
+ decoders.CreateImportV2TaskResponse = (input) => {
1369
+ const typeMappings = {
1370
+ created_at: { type: 'DatetimeType', isSingle: true },
1371
+ updated_at: { type: 'DatetimeType', isSingle: true },
1372
+ };
1373
+ return decode(typeMappings, input);
1374
+ };
1336
1375
  decoders.CreateMembershipLevelResponse = (input) => {
1337
1376
  const typeMappings = {
1338
1377
  membership_level: { type: 'MembershipLevelResponse', isSingle: true },
@@ -1721,6 +1760,15 @@ decoders.FullUserResponse = (input) => {
1721
1760
  };
1722
1761
  return decode(typeMappings, input);
1723
1762
  };
1763
+ decoders.FutureChannelBanResponse = (input) => {
1764
+ const typeMappings = {
1765
+ created_at: { type: 'DatetimeType', isSingle: true },
1766
+ expires: { type: 'DatetimeType', isSingle: true },
1767
+ banned_by: { type: 'UserResponse', isSingle: true },
1768
+ user: { type: 'UserResponse', isSingle: true },
1769
+ };
1770
+ return decode(typeMappings, input);
1771
+ };
1724
1772
  decoders.GetActiveCallsStatusResponse = (input) => {
1725
1773
  const typeMappings = {
1726
1774
  end_time: { type: 'DatetimeType', isSingle: true },
@@ -1734,6 +1782,12 @@ decoders.GetActivityResponse = (input) => {
1734
1782
  };
1735
1783
  return decode(typeMappings, input);
1736
1784
  };
1785
+ decoders.GetAppealResponse = (input) => {
1786
+ const typeMappings = {
1787
+ item: { type: 'AppealItemResponse', isSingle: true },
1788
+ };
1789
+ return decode(typeMappings, input);
1790
+ };
1737
1791
  decoders.GetApplicationResponse = (input) => {
1738
1792
  const typeMappings = {
1739
1793
  app: { type: 'AppResponseFields', isSingle: true },
@@ -1843,6 +1897,13 @@ decoders.GetImportResponse = (input) => {
1843
1897
  };
1844
1898
  return decode(typeMappings, input);
1845
1899
  };
1900
+ decoders.GetImportV2TaskResponse = (input) => {
1901
+ const typeMappings = {
1902
+ created_at: { type: 'DatetimeType', isSingle: true },
1903
+ updated_at: { type: 'DatetimeType', isSingle: true },
1904
+ };
1905
+ return decode(typeMappings, input);
1906
+ };
1846
1907
  decoders.GetManyMessagesResponse = (input) => {
1847
1908
  const typeMappings = {
1848
1909
  messages: { type: 'MessageResponse', isSingle: false },
@@ -1959,6 +2020,31 @@ decoders.ImportTaskHistory = (input) => {
1959
2020
  };
1960
2021
  return decode(typeMappings, input);
1961
2022
  };
2023
+ decoders.ImportV2TaskItem = (input) => {
2024
+ const typeMappings = {
2025
+ created_at: { type: 'DatetimeType', isSingle: true },
2026
+ updated_at: { type: 'DatetimeType', isSingle: true },
2027
+ };
2028
+ return decode(typeMappings, input);
2029
+ };
2030
+ decoders.IngressErrorEvent = (input) => {
2031
+ const typeMappings = {
2032
+ created_at: { type: 'DatetimeType', isSingle: true },
2033
+ };
2034
+ return decode(typeMappings, input);
2035
+ };
2036
+ decoders.IngressStartedEvent = (input) => {
2037
+ const typeMappings = {
2038
+ created_at: { type: 'DatetimeType', isSingle: true },
2039
+ };
2040
+ return decode(typeMappings, input);
2041
+ };
2042
+ decoders.IngressStoppedEvent = (input) => {
2043
+ const typeMappings = {
2044
+ created_at: { type: 'DatetimeType', isSingle: true },
2045
+ };
2046
+ return decode(typeMappings, input);
2047
+ };
1962
2048
  decoders.KickedUserEvent = (input) => {
1963
2049
  const typeMappings = {
1964
2050
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2009,6 +2095,12 @@ decoders.ListFeedViewsResponse = (input) => {
2009
2095
  };
2010
2096
  return decode(typeMappings, input);
2011
2097
  };
2098
+ decoders.ListImportV2TasksResponse = (input) => {
2099
+ const typeMappings = {
2100
+ import_tasks: { type: 'ImportV2TaskItem', isSingle: false },
2101
+ };
2102
+ return decode(typeMappings, input);
2103
+ };
2012
2104
  decoders.ListImportsResponse = (input) => {
2013
2105
  const typeMappings = {
2014
2106
  import_tasks: { type: 'ImportTask', isSingle: false },
@@ -2435,6 +2527,13 @@ decoders.ParticipantSeriesTimeframe = (input) => {
2435
2527
  };
2436
2528
  return decode(typeMappings, input);
2437
2529
  };
2530
+ decoders.ParticipantSessionDetails = (input) => {
2531
+ const typeMappings = {
2532
+ joined_at: { type: 'DatetimeType', isSingle: true },
2533
+ left_at: { type: 'DatetimeType', isSingle: true },
2534
+ };
2535
+ return decode(typeMappings, input);
2536
+ };
2438
2537
  decoders.PendingMessageEvent = (input) => {
2439
2538
  const typeMappings = {
2440
2539
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2582,6 +2681,12 @@ decoders.QueryActivityReactionsResponse = (input) => {
2582
2681
  };
2583
2682
  return decode(typeMappings, input);
2584
2683
  };
2684
+ decoders.QueryAppealsResponse = (input) => {
2685
+ const typeMappings = {
2686
+ items: { type: 'AppealItemResponse', isSingle: false },
2687
+ };
2688
+ return decode(typeMappings, input);
2689
+ };
2585
2690
  decoders.QueryBannedUsersResponse = (input) => {
2586
2691
  const typeMappings = {
2587
2692
  bans: { type: 'BanResponse', isSingle: false },
@@ -2606,6 +2711,16 @@ decoders.QueryCallMembersResponse = (input) => {
2606
2711
  };
2607
2712
  return decode(typeMappings, input);
2608
2713
  };
2714
+ decoders.QueryCallParticipantSessionsResponse = (input) => {
2715
+ const typeMappings = {
2716
+ participants_sessions: {
2717
+ type: 'ParticipantSessionDetails',
2718
+ isSingle: false,
2719
+ },
2720
+ session: { type: 'CallSessionResponse', isSingle: true },
2721
+ };
2722
+ return decode(typeMappings, input);
2723
+ };
2609
2724
  decoders.QueryCallParticipantsResponse = (input) => {
2610
2725
  const typeMappings = {
2611
2726
  members: { type: 'MemberResponse', isSingle: false },
@@ -2711,6 +2826,12 @@ decoders.QueryFollowsResponse = (input) => {
2711
2826
  };
2712
2827
  return decode(typeMappings, input);
2713
2828
  };
2829
+ decoders.QueryFutureChannelBansResponse = (input) => {
2830
+ const typeMappings = {
2831
+ bans: { type: 'FutureChannelBanResponse', isSingle: false },
2832
+ };
2833
+ return decode(typeMappings, input);
2834
+ };
2714
2835
  decoders.QueryMembershipLevelsResponse = (input) => {
2715
2836
  const typeMappings = {
2716
2837
  membership_levels: { type: 'MembershipLevelResponse', isSingle: false },
@@ -2948,6 +3069,7 @@ decoders.ReviewQueueItemResponse = (input) => {
2948
3069
  flags: { type: 'ModerationFlagResponse', isSingle: false },
2949
3070
  completed_at: { type: 'DatetimeType', isSingle: true },
2950
3071
  reviewed_at: { type: 'DatetimeType', isSingle: true },
3072
+ appeal: { type: 'AppealItemResponse', isSingle: true },
2951
3073
  assigned_to: { type: 'UserResponse', isSingle: true },
2952
3074
  call: { type: 'CallResponse', isSingle: true },
2953
3075
  entity_creator: { type: 'EntityCreatorResponse', isSingle: true },
@@ -3118,6 +3240,7 @@ decoders.StoriesFeedUpdatedEvent = (input) => {
3118
3240
  };
3119
3241
  decoders.SubmitActionResponse = (input) => {
3120
3242
  const typeMappings = {
3243
+ appeal_item: { type: 'AppealItemResponse', isSingle: true },
3121
3244
  item: { type: 'ReviewQueueItemResponse', isSingle: true },
3122
3245
  };
3123
3246
  return decode(typeMappings, input);
@@ -3923,6 +4046,41 @@ class CommonApi {
3923
4046
  decoders.CreateImportResponse?.(response.body);
3924
4047
  return { ...response.body, metadata: response.metadata };
3925
4048
  }
4049
+ async listImportV2Tasks(request) {
4050
+ const queryParams = {
4051
+ state: request?.state,
4052
+ };
4053
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/imports/v2', undefined, queryParams);
4054
+ decoders.ListImportV2TasksResponse?.(response.body);
4055
+ return { ...response.body, metadata: response.metadata };
4056
+ }
4057
+ async createImportV2Task(request) {
4058
+ const body = {
4059
+ product: request?.product,
4060
+ settings: request?.settings,
4061
+ user_id: request?.user_id,
4062
+ user: request?.user,
4063
+ };
4064
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/imports/v2', undefined, undefined, body, 'application/json');
4065
+ decoders.CreateImportV2TaskResponse?.(response.body);
4066
+ return { ...response.body, metadata: response.metadata };
4067
+ }
4068
+ async deleteImportV2Task(request) {
4069
+ const pathParams = {
4070
+ id: request?.id,
4071
+ };
4072
+ const response = await this.apiClient.sendRequest('DELETE', '/api/v2/imports/v2/{id}', pathParams, undefined);
4073
+ decoders.DeleteImportV2TaskResponse?.(response.body);
4074
+ return { ...response.body, metadata: response.metadata };
4075
+ }
4076
+ async getImportV2Task(request) {
4077
+ const pathParams = {
4078
+ id: request?.id,
4079
+ };
4080
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/imports/v2/{id}', pathParams, undefined);
4081
+ decoders.GetImportV2TaskResponse?.(response.body);
4082
+ return { ...response.body, metadata: response.metadata };
4083
+ }
3926
4084
  async getImport(request) {
3927
4085
  const pathParams = {
3928
4086
  id: request?.id,
@@ -4573,7 +4731,10 @@ class VideoApi {
4573
4731
  const body = {
4574
4732
  recording_storage_name: request?.recording_storage_name,
4575
4733
  start_closed_caption: request?.start_closed_caption,
4734
+ start_composite_recording: request?.start_composite_recording,
4576
4735
  start_hls: request?.start_hls,
4736
+ start_individual_recording: request?.start_individual_recording,
4737
+ start_raw_recording: request?.start_raw_recording,
4577
4738
  start_recording: request?.start_recording,
4578
4739
  start_transcription: request?.start_transcription,
4579
4740
  transcription_storage_name: request?.transcription_storage_name,
@@ -4732,6 +4893,22 @@ class VideoApi {
4732
4893
  decoders.StopRTMPBroadcastsResponse?.(response.body);
4733
4894
  return { ...response.body, metadata: response.metadata };
4734
4895
  }
4896
+ async queryCallParticipantSessions(request) {
4897
+ const queryParams = {
4898
+ limit: request?.limit,
4899
+ prev: request?.prev,
4900
+ next: request?.next,
4901
+ filter_conditions: request?.filter_conditions,
4902
+ };
4903
+ const pathParams = {
4904
+ type: request?.type,
4905
+ id: request?.id,
4906
+ session: request?.session,
4907
+ };
4908
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/video/call/{type}/{id}/session/{session}/participant_sessions', pathParams, queryParams);
4909
+ decoders.QueryCallParticipantSessionsResponse?.(response.body);
4910
+ return { ...response.body, metadata: response.metadata };
4911
+ }
4735
4912
  async startHLSBroadcasting(request) {
4736
4913
  const pathParams = {
4737
4914
  type: request?.type,
@@ -4831,7 +5008,10 @@ class VideoApi {
4831
5008
  };
4832
5009
  const body = {
4833
5010
  continue_closed_caption: request?.continue_closed_caption,
5011
+ continue_composite_recording: request?.continue_composite_recording,
4834
5012
  continue_hls: request?.continue_hls,
5013
+ continue_individual_recording: request?.continue_individual_recording,
5014
+ continue_raw_recording: request?.continue_raw_recording,
4835
5015
  continue_recording: request?.continue_recording,
4836
5016
  continue_rtmp_broadcasts: request?.continue_rtmp_broadcasts,
4837
5017
  continue_transcription: request?.continue_transcription,
@@ -4845,7 +5025,8 @@ class VideoApi {
4845
5025
  type: request?.type,
4846
5026
  id: request?.id,
4847
5027
  };
4848
- const response = await this.apiClient.sendRequest('POST', '/api/v2/video/call/{type}/{id}/stop_recording', pathParams, undefined);
5028
+ const body = {};
5029
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/video/call/{type}/{id}/stop_recording', pathParams, undefined, body, 'application/json');
4849
5030
  decoders.StopRecordingResponse?.(response.body);
4850
5031
  return { ...response.body, metadata: response.metadata };
4851
5032
  }
@@ -5063,19 +5244,8 @@ class VideoApi {
5063
5244
  decoders.GetEdgesResponse?.(response.body);
5064
5245
  return { ...response.body, metadata: response.metadata };
5065
5246
  }
5066
- async resolveSipInbound(request) {
5067
- const body = {
5068
- sip_caller_number: request?.sip_caller_number,
5069
- sip_trunk_number: request?.sip_trunk_number,
5070
- challenge: request?.challenge,
5071
- sip_headers: request?.sip_headers,
5072
- };
5073
- const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/resolve', undefined, undefined, body, 'application/json');
5074
- decoders.ResolveSipInboundResponse?.(response.body);
5075
- return { ...response.body, metadata: response.metadata };
5076
- }
5077
5247
  async listSIPInboundRoutingRule() {
5078
- const response = await this.apiClient.sendRequest('GET', '/api/v2/video/sip/routing_rules', undefined, undefined);
5248
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/video/sip/inbound_routing_rules', undefined, undefined);
5079
5249
  decoders.ListSIPInboundRoutingRuleResponse?.(response.body);
5080
5250
  return { ...response.body, metadata: response.metadata };
5081
5251
  }
@@ -5091,7 +5261,7 @@ class VideoApi {
5091
5261
  pin_protection_configs: request?.pin_protection_configs,
5092
5262
  pin_routing_configs: request?.pin_routing_configs,
5093
5263
  };
5094
- const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/routing_rules', undefined, undefined, body, 'application/json');
5264
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/inbound_routing_rules', undefined, undefined, body, 'application/json');
5095
5265
  decoders.SIPInboundRoutingRuleResponse?.(response.body);
5096
5266
  return { ...response.body, metadata: response.metadata };
5097
5267
  }
@@ -5099,7 +5269,7 @@ class VideoApi {
5099
5269
  const pathParams = {
5100
5270
  id: request?.id,
5101
5271
  };
5102
- const response = await this.apiClient.sendRequest('DELETE', '/api/v2/video/sip/routing_rules/{id}', pathParams, undefined);
5272
+ const response = await this.apiClient.sendRequest('DELETE', '/api/v2/video/sip/inbound_routing_rules/{id}', pathParams, undefined);
5103
5273
  decoders.DeleteSIPInboundRoutingRuleResponse?.(response.body);
5104
5274
  return { ...response.body, metadata: response.metadata };
5105
5275
  }
@@ -5118,12 +5288,12 @@ class VideoApi {
5118
5288
  pin_protection_configs: request?.pin_protection_configs,
5119
5289
  pin_routing_configs: request?.pin_routing_configs,
5120
5290
  };
5121
- const response = await this.apiClient.sendRequest('PUT', '/api/v2/video/sip/routing_rules/{id}', pathParams, undefined, body, 'application/json');
5291
+ const response = await this.apiClient.sendRequest('PUT', '/api/v2/video/sip/inbound_routing_rules/{id}', pathParams, undefined, body, 'application/json');
5122
5292
  decoders.UpdateSIPInboundRoutingRuleResponse?.(response.body);
5123
5293
  return { ...response.body, metadata: response.metadata };
5124
5294
  }
5125
5295
  async listSIPTrunks() {
5126
- const response = await this.apiClient.sendRequest('GET', '/api/v2/video/sip/trunks', undefined, undefined);
5296
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/video/sip/inbound_trunks', undefined, undefined);
5127
5297
  decoders.ListSIPTrunksResponse?.(response.body);
5128
5298
  return { ...response.body, metadata: response.metadata };
5129
5299
  }
@@ -5132,7 +5302,7 @@ class VideoApi {
5132
5302
  name: request?.name,
5133
5303
  numbers: request?.numbers,
5134
5304
  };
5135
- const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/trunks', undefined, undefined, body, 'application/json');
5305
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/inbound_trunks', undefined, undefined, body, 'application/json');
5136
5306
  decoders.CreateSIPTrunkResponse?.(response.body);
5137
5307
  return { ...response.body, metadata: response.metadata };
5138
5308
  }
@@ -5140,7 +5310,7 @@ class VideoApi {
5140
5310
  const pathParams = {
5141
5311
  id: request?.id,
5142
5312
  };
5143
- const response = await this.apiClient.sendRequest('DELETE', '/api/v2/video/sip/trunks/{id}', pathParams, undefined);
5313
+ const response = await this.apiClient.sendRequest('DELETE', '/api/v2/video/sip/inbound_trunks/{id}', pathParams, undefined);
5144
5314
  decoders.DeleteSIPTrunkResponse?.(response.body);
5145
5315
  return { ...response.body, metadata: response.metadata };
5146
5316
  }
@@ -5152,10 +5322,22 @@ class VideoApi {
5152
5322
  name: request?.name,
5153
5323
  numbers: request?.numbers,
5154
5324
  };
5155
- const response = await this.apiClient.sendRequest('PUT', '/api/v2/video/sip/trunks/{id}', pathParams, undefined, body, 'application/json');
5325
+ const response = await this.apiClient.sendRequest('PUT', '/api/v2/video/sip/inbound_trunks/{id}', pathParams, undefined, body, 'application/json');
5156
5326
  decoders.UpdateSIPTrunkResponse?.(response.body);
5157
5327
  return { ...response.body, metadata: response.metadata };
5158
5328
  }
5329
+ async resolveSipInbound(request) {
5330
+ const body = {
5331
+ sip_caller_number: request?.sip_caller_number,
5332
+ sip_trunk_number: request?.sip_trunk_number,
5333
+ challenge: request?.challenge,
5334
+ routing_number: request?.routing_number,
5335
+ sip_headers: request?.sip_headers,
5336
+ };
5337
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/video/sip/resolve', undefined, undefined, body, 'application/json');
5338
+ decoders.ResolveSipInboundResponse?.(response.body);
5339
+ return { ...response.body, metadata: response.metadata };
5340
+ }
5159
5341
  async queryAggregateCallStats(request) {
5160
5342
  const body = {
5161
5343
  from: request?.from,
@@ -5292,6 +5474,13 @@ class CallApi {
5292
5474
  ...request,
5293
5475
  });
5294
5476
  }
5477
+ queryCallParticipantSessions(request) {
5478
+ return this.videoApi.queryCallParticipantSessions({
5479
+ id: this.id,
5480
+ type: this.type,
5481
+ ...request,
5482
+ });
5483
+ }
5295
5484
  startHLSBroadcasting() {
5296
5485
  return this.videoApi.startHLSBroadcasting({ id: this.id, type: this.type });
5297
5486
  }
@@ -5339,8 +5528,12 @@ class CallApi {
5339
5528
  stopLive(request) {
5340
5529
  return this.videoApi.stopLive({ id: this.id, type: this.type, ...request });
5341
5530
  }
5342
- stopRecording() {
5343
- return this.videoApi.stopRecording({ id: this.id, type: this.type });
5531
+ stopRecording(request) {
5532
+ return this.videoApi.stopRecording({
5533
+ id: this.id,
5534
+ type: this.type,
5535
+ ...request,
5536
+ });
5344
5537
  }
5345
5538
  stopTranscription(request) {
5346
5539
  return this.videoApi.stopTranscription({
@@ -5531,10 +5724,13 @@ class ChatApi {
5531
5724
  member_limit: request?.member_limit,
5532
5725
  message_limit: request?.message_limit,
5533
5726
  offset: request?.offset,
5727
+ predefined_filter: request?.predefined_filter,
5534
5728
  state: request?.state,
5535
5729
  user_id: request?.user_id,
5536
5730
  sort: request?.sort,
5537
5731
  filter_conditions: request?.filter_conditions,
5732
+ filter_values: request?.filter_values,
5733
+ sort_values: request?.sort_values,
5538
5734
  user: request?.user,
5539
5735
  };
5540
5736
  const response = await this.apiClient.sendRequest('POST', '/api/v2/chat/channels', undefined, undefined, body, 'application/json');
@@ -6353,6 +6549,14 @@ class ChatApi {
6353
6549
  decoders.QueryBannedUsersResponse?.(response.body);
6354
6550
  return { ...response.body, metadata: response.metadata };
6355
6551
  }
6552
+ async queryFutureChannelBans(request) {
6553
+ const queryParams = {
6554
+ payload: request?.payload,
6555
+ };
6556
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/chat/query_future_channel_bans', undefined, queryParams);
6557
+ decoders.QueryFutureChannelBansResponse?.(response.body);
6558
+ return { ...response.body, metadata: response.metadata };
6559
+ }
6356
6560
  async queryReminders(request) {
6357
6561
  const body = {
6358
6562
  limit: request?.limit,
@@ -6748,6 +6952,41 @@ class ModerationApi {
6748
6952
  constructor(apiClient) {
6749
6953
  this.apiClient = apiClient;
6750
6954
  }
6955
+ async appeal(request) {
6956
+ const body = {
6957
+ appeal_reason: request?.appeal_reason,
6958
+ entity_id: request?.entity_id,
6959
+ entity_type: request?.entity_type,
6960
+ user_id: request?.user_id,
6961
+ attachments: request?.attachments,
6962
+ user: request?.user,
6963
+ };
6964
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/moderation/appeal', undefined, undefined, body, 'application/json');
6965
+ decoders.AppealResponse?.(response.body);
6966
+ return { ...response.body, metadata: response.metadata };
6967
+ }
6968
+ async getAppeal(request) {
6969
+ const pathParams = {
6970
+ id: request?.id,
6971
+ };
6972
+ const response = await this.apiClient.sendRequest('GET', '/api/v2/moderation/appeal/{id}', pathParams, undefined);
6973
+ decoders.GetAppealResponse?.(response.body);
6974
+ return { ...response.body, metadata: response.metadata };
6975
+ }
6976
+ async queryAppeals(request) {
6977
+ const body = {
6978
+ limit: request?.limit,
6979
+ next: request?.next,
6980
+ prev: request?.prev,
6981
+ user_id: request?.user_id,
6982
+ sort: request?.sort,
6983
+ filter: request?.filter,
6984
+ user: request?.user,
6985
+ };
6986
+ const response = await this.apiClient.sendRequest('POST', '/api/v2/moderation/appeals', undefined, undefined, body, 'application/json');
6987
+ decoders.QueryAppealsResponse?.(response.body);
6988
+ return { ...response.body, metadata: response.metadata };
6989
+ }
6751
6990
  async ban(request) {
6752
6991
  const body = {
6753
6992
  target_user_id: request?.target_user_id,
@@ -7008,6 +7247,7 @@ class ModerationApi {
7008
7247
  async submitAction(request) {
7009
7248
  const body = {
7010
7249
  action_type: request?.action_type,
7250
+ appeal_id: request?.appeal_id,
7011
7251
  item_id: request?.item_id,
7012
7252
  user_id: request?.user_id,
7013
7253
  ban: request?.ban,
@@ -7019,8 +7259,11 @@ class ModerationApi {
7019
7259
  delete_reaction: request?.delete_reaction,
7020
7260
  delete_user: request?.delete_user,
7021
7261
  mark_reviewed: request?.mark_reviewed,
7262
+ reject_appeal: request?.reject_appeal,
7263
+ restore: request?.restore,
7022
7264
  shadow_block: request?.shadow_block,
7023
7265
  unban: request?.unban,
7266
+ unblock: request?.unblock,
7024
7267
  user: request?.user,
7025
7268
  };
7026
7269
  const response = await this.apiClient.sendRequest('POST', '/api/v2/moderation/submit_action', undefined, undefined, body, 'application/json');
@@ -7103,7 +7346,7 @@ class ApiClient {
7103
7346
  const headers = {
7104
7347
  Authorization: this.apiConfig.token,
7105
7348
  'stream-auth-type': 'jwt',
7106
- 'X-Stream-Client': 'stream-node-' + "0.7.34",
7349
+ 'X-Stream-Client': 'stream-node-' + "0.7.35",
7107
7350
  'Accept-Encoding': 'gzip',
7108
7351
  'x-client-request-id': clientRequestId,
7109
7352
  };
@@ -7199,12 +7442,14 @@ class FeedsApi {
7199
7442
  const body = {
7200
7443
  type: request?.type,
7201
7444
  feeds: request?.feeds,
7445
+ create_notification_activity: request?.create_notification_activity,
7202
7446
  expires_at: request?.expires_at,
7203
7447
  id: request?.id,
7204
7448
  parent_id: request?.parent_id,
7205
7449
  poll_id: request?.poll_id,
7206
7450
  restrict_replies: request?.restrict_replies,
7207
7451
  skip_enrich_url: request?.skip_enrich_url,
7452
+ skip_push: request?.skip_push,
7208
7453
  text: request?.text,
7209
7454
  user_id: request?.user_id,
7210
7455
  visibility: request?.visibility,
@@ -7375,6 +7620,7 @@ class FeedsApi {
7375
7620
  }
7376
7621
  async deleteActivityReaction(request) {
7377
7622
  const queryParams = {
7623
+ delete_notification_activity: request?.delete_notification_activity,
7378
7624
  user_id: request?.user_id,
7379
7625
  };
7380
7626
  const pathParams = {
@@ -7409,6 +7655,7 @@ class FeedsApi {
7409
7655
  id: request?.id,
7410
7656
  };
7411
7657
  const body = {
7658
+ handle_mention_notifications: request?.handle_mention_notifications,
7412
7659
  user_id: request?.user_id,
7413
7660
  unset: request?.unset,
7414
7661
  set: request?.set,
@@ -7424,12 +7671,14 @@ class FeedsApi {
7424
7671
  };
7425
7672
  const body = {
7426
7673
  expires_at: request?.expires_at,
7674
+ handle_mention_notifications: request?.handle_mention_notifications,
7427
7675
  poll_id: request?.poll_id,
7428
7676
  restrict_replies: request?.restrict_replies,
7429
7677
  skip_enrich_url: request?.skip_enrich_url,
7430
7678
  text: request?.text,
7431
7679
  user_id: request?.user_id,
7432
7680
  visibility: request?.visibility,
7681
+ visibility_tag: request?.visibility_tag,
7433
7682
  attachments: request?.attachments,
7434
7683
  collection_refs: request?.collection_refs,
7435
7684
  feeds: request?.feeds,
@@ -7542,6 +7791,7 @@ class FeedsApi {
7542
7791
  depth: request?.depth,
7543
7792
  sort: request?.sort,
7544
7793
  replies_limit: request?.replies_limit,
7794
+ user_id: request?.user_id,
7545
7795
  limit: request?.limit,
7546
7796
  prev: request?.prev,
7547
7797
  next: request?.next,
@@ -7593,6 +7843,7 @@ class FeedsApi {
7593
7843
  async deleteComment(request) {
7594
7844
  const queryParams = {
7595
7845
  hard_delete: request?.hard_delete,
7846
+ delete_notification_activity: request?.delete_notification_activity,
7596
7847
  };
7597
7848
  const pathParams = {
7598
7849
  id: request?.id,
@@ -7615,10 +7866,12 @@ class FeedsApi {
7615
7866
  };
7616
7867
  const body = {
7617
7868
  comment: request?.comment,
7869
+ handle_mention_notifications: request?.handle_mention_notifications,
7618
7870
  skip_enrich_url: request?.skip_enrich_url,
7619
7871
  skip_push: request?.skip_push,
7620
7872
  user_id: request?.user_id,
7621
7873
  attachments: request?.attachments,
7874
+ mentioned_user_ids: request?.mentioned_user_ids,
7622
7875
  custom: request?.custom,
7623
7876
  user: request?.user,
7624
7877
  };
@@ -7660,6 +7913,7 @@ class FeedsApi {
7660
7913
  }
7661
7914
  async deleteCommentReaction(request) {
7662
7915
  const queryParams = {
7916
+ delete_notification_activity: request?.delete_notification_activity,
7663
7917
  user_id: request?.user_id,
7664
7918
  };
7665
7919
  const pathParams = {
@@ -7675,6 +7929,7 @@ class FeedsApi {
7675
7929
  depth: request?.depth,
7676
7930
  sort: request?.sort,
7677
7931
  replies_limit: request?.replies_limit,
7932
+ user_id: request?.user_id,
7678
7933
  limit: request?.limit,
7679
7934
  prev: request?.prev,
7680
7935
  next: request?.next,
@@ -8151,11 +8406,14 @@ class FeedsApi {
8151
8406
  return { ...response.body, metadata: response.metadata };
8152
8407
  }
8153
8408
  async unfollow(request) {
8409
+ const queryParams = {
8410
+ delete_notification_activity: request?.delete_notification_activity,
8411
+ };
8154
8412
  const pathParams = {
8155
8413
  source: request?.source,
8156
8414
  target: request?.target,
8157
8415
  };
8158
- const response = await this.apiClient.sendRequest('DELETE', '/api/v2/feeds/follows/{source}/{target}', pathParams, undefined);
8416
+ const response = await this.apiClient.sendRequest('DELETE', '/api/v2/feeds/follows/{source}/{target}', pathParams, queryParams);
8159
8417
  decoders.UnfollowResponse?.(response.body);
8160
8418
  return { ...response.body, metadata: response.metadata };
8161
8419
  }
@@ -8219,6 +8477,7 @@ class FeedsApi {
8219
8477
  async unfollowBatch(request) {
8220
8478
  const body = {
8221
8479
  follows: request?.follows,
8480
+ delete_notification_activity: request?.delete_notification_activity,
8222
8481
  };
8223
8482
  const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/unfollow/batch', undefined, undefined, body, 'application/json');
8224
8483
  decoders.UnfollowBatchResponse?.(response.body);
@@ -8227,6 +8486,7 @@ class FeedsApi {
8227
8486
  async getOrCreateUnfollows(request) {
8228
8487
  const body = {
8229
8488
  follows: request?.follows,
8489
+ delete_notification_activity: request?.delete_notification_activity,
8230
8490
  };
8231
8491
  const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/unfollow/batch/upsert', undefined, undefined, body, 'application/json');
8232
8492
  decoders.UnfollowBatchResponse?.(response.body);
@@ -8630,11 +8890,15 @@ const OwnCapability = {
8630
8890
  START_BROADCAST_CALL: 'start-broadcast-call',
8631
8891
  START_CLOSED_CAPTIONS_CALL: 'start-closed-captions-call',
8632
8892
  START_FRAME_RECORD_CALL: 'start-frame-record-call',
8893
+ START_INDIVIDUAL_RECORD_CALL: 'start-individual-record-call',
8894
+ START_RAW_RECORD_CALL: 'start-raw-record-call',
8633
8895
  START_RECORD_CALL: 'start-record-call',
8634
8896
  START_TRANSCRIPTION_CALL: 'start-transcription-call',
8635
8897
  STOP_BROADCAST_CALL: 'stop-broadcast-call',
8636
8898
  STOP_CLOSED_CAPTIONS_CALL: 'stop-closed-captions-call',
8637
8899
  STOP_FRAME_RECORD_CALL: 'stop-frame-record-call',
8900
+ STOP_INDIVIDUAL_RECORD_CALL: 'stop-individual-record-call',
8901
+ STOP_RAW_RECORD_CALL: 'stop-raw-record-call',
8638
8902
  STOP_RECORD_CALL: 'stop-record-call',
8639
8903
  STOP_TRANSCRIPTION_CALL: 'stop-transcription-call',
8640
8904
  UPDATE_CALL: 'update-call',