@stream-io/node-sdk 0.7.52 → 0.7.53

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.
@@ -1,5 +1,5 @@
1
1
  import { ApiClient, StreamResponse } from '../../gen-imports';
2
- import { AppealRequest, AppealResponse, BanRequest, BanResponse, BulkImageModerationRequest, BulkImageModerationResponse, CheckRequest, CheckResponse, CheckS3AccessRequest, CheckS3AccessResponse, CustomCheckRequest, CustomCheckResponse, DeleteModerationConfigResponse, DeleteModerationRuleResponse, DeleteModerationTemplateResponse, FlagRequest, FlagResponse, GetAppealResponse, GetConfigResponse, GetFlagCountRequest, GetFlagCountResponse, GetModerationRuleResponse, GetReviewQueueItemResponse, InsertActionLogRequest, InsertActionLogResponse, MuteRequest, MuteResponse, QueryAppealsRequest, QueryAppealsResponse, QueryFeedModerationTemplatesResponse, QueryModerationConfigsRequest, QueryModerationConfigsResponse, QueryModerationFlagsRequest, QueryModerationFlagsResponse, QueryModerationLogsRequest, QueryModerationLogsResponse, QueryModerationRulesRequest, QueryModerationRulesResponse, QueryReviewQueueRequest, QueryReviewQueueResponse, SubmitActionRequest, SubmitActionResponse, UnbanRequest, UnbanResponse, UnmuteRequest, UnmuteResponse, UpsertConfigRequest, UpsertConfigResponse, UpsertModerationRuleRequest, UpsertModerationRuleResponse, UpsertModerationTemplateRequest, UpsertModerationTemplateResponse } from '../models';
2
+ import { AppealRequest, AppealResponse, BanRequest, BanResponse, BulkImageModerationRequest, BulkImageModerationResponse, BypassRequest, BypassResponse, CheckRequest, CheckResponse, CheckS3AccessRequest, CheckS3AccessResponse, CustomCheckRequest, CustomCheckResponse, DeleteModerationConfigResponse, DeleteModerationRuleResponse, DeleteModerationTemplateResponse, FlagRequest, FlagResponse, GetAppealResponse, GetConfigResponse, GetFlagCountRequest, GetFlagCountResponse, GetModerationRuleResponse, GetReviewQueueItemResponse, InsertActionLogRequest, InsertActionLogResponse, MuteRequest, MuteResponse, QueryAppealsRequest, QueryAppealsResponse, QueryFeedModerationTemplatesResponse, QueryModerationConfigsRequest, QueryModerationConfigsResponse, QueryModerationFlagsRequest, QueryModerationFlagsResponse, QueryModerationLogsRequest, QueryModerationLogsResponse, QueryModerationRulesRequest, QueryModerationRulesResponse, QueryReviewQueueRequest, QueryReviewQueueResponse, SubmitActionRequest, SubmitActionResponse, UnbanRequest, UnbanResponse, UnmuteRequest, UnmuteResponse, UpsertConfigRequest, UpsertConfigResponse, UpsertModerationRuleRequest, UpsertModerationRuleResponse, UpsertModerationTemplateRequest, UpsertModerationTemplateResponse } from '../models';
3
3
  export declare class ModerationApi {
4
4
  readonly apiClient: ApiClient;
5
5
  constructor(apiClient: ApiClient);
@@ -11,12 +11,14 @@ export declare class ModerationApi {
11
11
  queryAppeals(request?: QueryAppealsRequest): Promise<StreamResponse<QueryAppealsResponse>>;
12
12
  ban(request: BanRequest): Promise<StreamResponse<BanResponse>>;
13
13
  bulkImageModeration(request: BulkImageModerationRequest): Promise<StreamResponse<BulkImageModerationResponse>>;
14
+ bypass(request: BypassRequest): Promise<StreamResponse<BypassResponse>>;
14
15
  check(request: CheckRequest): Promise<StreamResponse<CheckResponse>>;
15
16
  checkS3Access(request?: CheckS3AccessRequest): Promise<StreamResponse<CheckS3AccessResponse>>;
16
17
  upsertConfig(request: UpsertConfigRequest): Promise<StreamResponse<UpsertConfigResponse>>;
17
18
  deleteConfig(request: {
18
19
  key: string;
19
20
  team?: string;
21
+ user_id?: string;
20
22
  }): Promise<StreamResponse<DeleteModerationConfigResponse>>;
21
23
  getConfig(request: {
22
24
  key: string;
@@ -32,7 +34,9 @@ export declare class ModerationApi {
32
34
  queryModerationFlags(request?: QueryModerationFlagsRequest): Promise<StreamResponse<QueryModerationFlagsResponse>>;
33
35
  queryModerationLogs(request?: QueryModerationLogsRequest): Promise<StreamResponse<QueryModerationLogsResponse>>;
34
36
  upsertModerationRule(request: UpsertModerationRuleRequest): Promise<StreamResponse<UpsertModerationRuleResponse>>;
35
- deleteModerationRule(): Promise<StreamResponse<DeleteModerationRuleResponse>>;
37
+ deleteModerationRule(request?: {
38
+ user_id?: string;
39
+ }): Promise<StreamResponse<DeleteModerationRuleResponse>>;
36
40
  getModerationRule(): Promise<StreamResponse<GetModerationRuleResponse>>;
37
41
  queryModerationRules(request?: QueryModerationRulesRequest): Promise<StreamResponse<QueryModerationRulesResponse>>;
38
42
  mute(request: MuteRequest): Promise<StreamResponse<MuteResponse>>;
@@ -1,5 +1,5 @@
1
1
  import { ApiClient, StreamResponse } from '../../gen-imports';
2
- import { BlockUserRequest, BlockUserResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, CreateCallTypeRequest, CreateCallTypeResponse, CreateSIPTrunkRequest, CreateSIPTrunkResponse, DeleteCallRequest, DeleteCallResponse, DeleteRecordingResponse, DeleteSIPInboundRoutingRuleResponse, DeleteSIPTrunkResponse, DeleteTranscriptionResponse, EndCallResponse, GetActiveCallsStatusResponse, GetCallParticipantSessionMetricsResponse, GetCallReportResponse, GetCallResponse, GetCallSessionParticipantStatsDetailsResponse, GetCallTypeResponse, GetEdgesResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, KickUserRequest, KickUserResponse, ListCallTypeResponse, ListRecordingsResponse, ListSIPInboundRoutingRuleResponse, ListSIPTrunksResponse, ListTranscriptionsResponse, MuteUsersRequest, MuteUsersResponse, PinRequest, PinResponse, QueryAggregateCallStatsRequest, QueryAggregateCallStatsResponse, QueryCallMembersRequest, QueryCallMembersResponse, QueryCallParticipantSessionsResponse, QueryCallParticipantsRequest, QueryCallParticipantsResponse, QueryCallSessionParticipantStatsResponse, QueryCallSessionParticipantStatsTimelineResponse, QueryCallStatsMapResponse, QueryCallStatsRequest, QueryCallStatsResponse, QueryCallsRequest, QueryCallsResponse, QueryUserFeedbackRequest, QueryUserFeedbackResponse, ResolveSipAuthRequest, ResolveSipAuthResponse, ResolveSipInboundRequest, ResolveSipInboundResponse, Response, RingCallRequest, RingCallResponse, SIPInboundRoutingRuleRequest, SIPInboundRoutingRuleResponse, SendCallEventRequest, SendCallEventResponse, SendClosedCaptionRequest, SendClosedCaptionResponse, SortParamRequest, StartClosedCaptionsRequest, StartClosedCaptionsResponse, StartFrameRecordingRequest, StartFrameRecordingResponse, StartHLSBroadcastingResponse, StartRTMPBroadcastsRequest, StartRTMPBroadcastsResponse, StartRecordingRequest, StartRecordingResponse, StartTranscriptionRequest, StartTranscriptionResponse, StopAllRTMPBroadcastsResponse, StopClosedCaptionsRequest, StopClosedCaptionsResponse, StopFrameRecordingResponse, StopHLSBroadcastingResponse, StopLiveRequest, StopLiveResponse, StopRTMPBroadcastsRequest, StopRTMPBroadcastsResponse, StopRecordingRequest, StopRecordingResponse, StopTranscriptionRequest, StopTranscriptionResponse, UnblockUserRequest, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateCallTypeRequest, UpdateCallTypeResponse, UpdateSIPInboundRoutingRuleRequest, UpdateSIPInboundRoutingRuleResponse, UpdateSIPTrunkRequest, UpdateSIPTrunkResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from '../models';
2
+ import { BlockUserRequest, BlockUserResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, CreateCallTypeRequest, CreateCallTypeResponse, CreateSIPTrunkRequest, CreateSIPTrunkResponse, DeleteCallRequest, DeleteCallResponse, DeleteRecordingResponse, DeleteSIPInboundRoutingRuleResponse, DeleteSIPTrunkResponse, DeleteTranscriptionResponse, EndCallResponse, GetActiveCallsStatusResponse, GetCallParticipantSessionMetricsResponse, GetCallReportResponse, GetCallResponse, GetCallSessionParticipantStatsDetailsResponse, GetCallTypeResponse, GetEdgesResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, KickUserRequest, KickUserResponse, ListCallTypeResponse, ListRecordingsResponse, ListSIPInboundRoutingRuleResponse, ListSIPTrunksResponse, ListTranscriptionsResponse, MuteUsersRequest, MuteUsersResponse, PinRequest, PinResponse, QueryAggregateCallStatsRequest, QueryAggregateCallStatsResponse, QueryCallMembersRequest, QueryCallMembersResponse, QueryCallParticipantSessionsResponse, QueryCallParticipantsRequest, QueryCallParticipantsResponse, QueryCallSessionParticipantStatsResponse, QueryCallSessionParticipantStatsTimelineResponse, QueryCallSessionStatsRequest, QueryCallSessionStatsResponse, QueryCallStatsMapResponse, QueryCallStatsRequest, QueryCallStatsResponse, QueryCallsRequest, QueryCallsResponse, QueryUserFeedbackRequest, QueryUserFeedbackResponse, ResolveSipAuthRequest, ResolveSipAuthResponse, ResolveSipInboundRequest, ResolveSipInboundResponse, Response, RingCallRequest, RingCallResponse, SIPInboundRoutingRuleRequest, SIPInboundRoutingRuleResponse, SendCallEventRequest, SendCallEventResponse, SendClosedCaptionRequest, SendClosedCaptionResponse, SortParamRequest, StartClosedCaptionsRequest, StartClosedCaptionsResponse, StartFrameRecordingRequest, StartFrameRecordingResponse, StartHLSBroadcastingResponse, StartRTMPBroadcastsRequest, StartRTMPBroadcastsResponse, StartRecordingRequest, StartRecordingResponse, StartTranscriptionRequest, StartTranscriptionResponse, StopAllRTMPBroadcastsResponse, StopClosedCaptionsRequest, StopClosedCaptionsResponse, StopFrameRecordingResponse, StopHLSBroadcastingResponse, StopLiveRequest, StopLiveResponse, StopRTMPBroadcastsRequest, StopRTMPBroadcastsResponse, StopRecordingRequest, StopRecordingResponse, StopTranscriptionRequest, StopTranscriptionResponse, UnblockUserRequest, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateCallTypeRequest, UpdateCallTypeResponse, UpdateSIPInboundRoutingRuleRequest, UpdateSIPInboundRoutingRuleResponse, UpdateSIPTrunkRequest, UpdateSIPTrunkResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from '../models';
3
3
  export declare class VideoApi {
4
4
  readonly apiClient: ApiClient;
5
5
  constructor(apiClient: ApiClient);
@@ -192,6 +192,7 @@ export declare class VideoApi {
192
192
  session: string;
193
193
  filename: string;
194
194
  }): Promise<StreamResponse<DeleteTranscriptionResponse>>;
195
+ queryCallSessionStats(request?: QueryCallSessionStatsRequest): Promise<StreamResponse<QueryCallSessionStatsResponse>>;
195
196
  getCallStatsMap(request: {
196
197
  call_type: string;
197
198
  call_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.7.52",
3
+ "version": "0.7.53",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -10,6 +10,8 @@ import {
10
10
  AddActivityResponse,
11
11
  AddBookmarkRequest,
12
12
  AddBookmarkResponse,
13
+ AddCommentBookmarkRequest,
14
+ AddCommentBookmarkResponse,
13
15
  AddCommentReactionRequest,
14
16
  AddCommentReactionResponse,
15
17
  AddCommentRequest,
@@ -36,6 +38,7 @@ import {
36
38
  DeleteBookmarkFolderResponse,
37
39
  DeleteBookmarkResponse,
38
40
  DeleteCollectionsResponse,
41
+ DeleteCommentBookmarkResponse,
39
42
  DeleteCommentReactionResponse,
40
43
  DeleteCommentResponse,
41
44
  DeleteFeedGroupResponse,
@@ -129,6 +132,8 @@ import {
129
132
  UpdateBookmarkResponse,
130
133
  UpdateCollectionsRequest,
131
134
  UpdateCollectionsResponse,
135
+ UpdateCommentBookmarkRequest,
136
+ UpdateCommentBookmarkResponse,
132
137
  UpdateCommentPartialRequest,
133
138
  UpdateCommentPartialResponse,
134
139
  UpdateCommentRequest,
@@ -167,6 +172,7 @@ export class FeedsApi {
167
172
  create_notification_activity: request?.create_notification_activity,
168
173
  enrich_own_fields: request?.enrich_own_fields,
169
174
  expires_at: request?.expires_at,
175
+ force_moderation: request?.force_moderation,
170
176
  id: request?.id,
171
177
  parent_id: request?.parent_id,
172
178
  poll_id: request?.poll_id,
@@ -209,6 +215,7 @@ export class FeedsApi {
209
215
  const body = {
210
216
  activities: request?.activities,
211
217
  enrich_own_fields: request?.enrich_own_fields,
218
+ force_moderation: request?.force_moderation,
212
219
  };
213
220
 
214
221
  const response = await this.apiClient.sendRequest<
@@ -232,6 +239,7 @@ export class FeedsApi {
232
239
  ): Promise<StreamResponse<UpdateActivitiesPartialBatchResponse>> {
233
240
  const body = {
234
241
  changes: request?.changes,
242
+ force_moderation: request?.force_moderation,
235
243
  };
236
244
 
237
245
  const response = await this.apiClient.sendRequest<
@@ -627,14 +635,22 @@ export class FeedsApi {
627
635
 
628
636
  async getActivity(request: {
629
637
  id: string;
638
+ comment_sort?: string;
639
+ comment_limit?: number;
640
+ user_id?: string;
630
641
  }): Promise<StreamResponse<GetActivityResponse>> {
642
+ const queryParams = {
643
+ comment_sort: request?.comment_sort,
644
+ comment_limit: request?.comment_limit,
645
+ user_id: request?.user_id,
646
+ };
631
647
  const pathParams = {
632
648
  id: request?.id,
633
649
  };
634
650
 
635
651
  const response = await this.apiClient.sendRequest<
636
652
  StreamResponse<GetActivityResponse>
637
- >('GET', '/api/v2/feeds/activities/{id}', pathParams, undefined);
653
+ >('GET', '/api/v2/feeds/activities/{id}', pathParams, queryParams);
638
654
 
639
655
  decoders.GetActivityResponse?.(response.body);
640
656
 
@@ -650,6 +666,7 @@ export class FeedsApi {
650
666
  const body = {
651
667
  copy_custom_to_notification: request?.copy_custom_to_notification,
652
668
  enrich_own_fields: request?.enrich_own_fields,
669
+ force_moderation: request?.force_moderation,
653
670
  handle_mention_notifications: request?.handle_mention_notifications,
654
671
  run_activity_processors: request?.run_activity_processors,
655
672
  user_id: request?.user_id,
@@ -684,6 +701,7 @@ export class FeedsApi {
684
701
  copy_custom_to_notification: request?.copy_custom_to_notification,
685
702
  enrich_own_fields: request?.enrich_own_fields,
686
703
  expires_at: request?.expires_at,
704
+ force_moderation: request?.force_moderation,
687
705
  handle_mention_notifications: request?.handle_mention_notifications,
688
706
  poll_id: request?.poll_id,
689
707
  restrict_replies: request?.restrict_replies,
@@ -1036,6 +1054,7 @@ export class FeedsApi {
1036
1054
  comment: request?.comment,
1037
1055
  copy_custom_to_notification: request?.copy_custom_to_notification,
1038
1056
  create_notification_activity: request?.create_notification_activity,
1057
+ force_moderation: request?.force_moderation,
1039
1058
  id: request?.id,
1040
1059
  object_id: request?.object_id,
1041
1060
  object_type: request?.object_type,
@@ -1118,6 +1137,94 @@ export class FeedsApi {
1118
1137
  return { ...response.body, metadata: response.metadata };
1119
1138
  }
1120
1139
 
1140
+ async deleteCommentBookmark(request: {
1141
+ comment_id: string;
1142
+ folder_id?: string;
1143
+ user_id?: string;
1144
+ }): Promise<StreamResponse<DeleteCommentBookmarkResponse>> {
1145
+ const queryParams = {
1146
+ folder_id: request?.folder_id,
1147
+ user_id: request?.user_id,
1148
+ };
1149
+ const pathParams = {
1150
+ comment_id: request?.comment_id,
1151
+ };
1152
+
1153
+ const response = await this.apiClient.sendRequest<
1154
+ StreamResponse<DeleteCommentBookmarkResponse>
1155
+ >(
1156
+ 'DELETE',
1157
+ '/api/v2/feeds/comments/{comment_id}/bookmarks',
1158
+ pathParams,
1159
+ queryParams,
1160
+ );
1161
+
1162
+ decoders.DeleteCommentBookmarkResponse?.(response.body);
1163
+
1164
+ return { ...response.body, metadata: response.metadata };
1165
+ }
1166
+
1167
+ async updateCommentBookmark(
1168
+ request: UpdateCommentBookmarkRequest & { comment_id: string },
1169
+ ): Promise<StreamResponse<UpdateCommentBookmarkResponse>> {
1170
+ const pathParams = {
1171
+ comment_id: request?.comment_id,
1172
+ };
1173
+ const body = {
1174
+ folder_id: request?.folder_id,
1175
+ new_folder_id: request?.new_folder_id,
1176
+ user_id: request?.user_id,
1177
+ custom: request?.custom,
1178
+ new_folder: request?.new_folder,
1179
+ user: request?.user,
1180
+ };
1181
+
1182
+ const response = await this.apiClient.sendRequest<
1183
+ StreamResponse<UpdateCommentBookmarkResponse>
1184
+ >(
1185
+ 'PATCH',
1186
+ '/api/v2/feeds/comments/{comment_id}/bookmarks',
1187
+ pathParams,
1188
+ undefined,
1189
+ body,
1190
+ 'application/json',
1191
+ );
1192
+
1193
+ decoders.UpdateCommentBookmarkResponse?.(response.body);
1194
+
1195
+ return { ...response.body, metadata: response.metadata };
1196
+ }
1197
+
1198
+ async addCommentBookmark(
1199
+ request: AddCommentBookmarkRequest & { comment_id: string },
1200
+ ): Promise<StreamResponse<AddCommentBookmarkResponse>> {
1201
+ const pathParams = {
1202
+ comment_id: request?.comment_id,
1203
+ };
1204
+ const body = {
1205
+ folder_id: request?.folder_id,
1206
+ user_id: request?.user_id,
1207
+ custom: request?.custom,
1208
+ new_folder: request?.new_folder,
1209
+ user: request?.user,
1210
+ };
1211
+
1212
+ const response = await this.apiClient.sendRequest<
1213
+ StreamResponse<AddCommentBookmarkResponse>
1214
+ >(
1215
+ 'POST',
1216
+ '/api/v2/feeds/comments/{comment_id}/bookmarks',
1217
+ pathParams,
1218
+ undefined,
1219
+ body,
1220
+ 'application/json',
1221
+ );
1222
+
1223
+ decoders.AddCommentBookmarkResponse?.(response.body);
1224
+
1225
+ return { ...response.body, metadata: response.metadata };
1226
+ }
1227
+
1121
1228
  async deleteComment(request: {
1122
1229
  id: string;
1123
1230
  hard_delete?: boolean;
@@ -1142,14 +1249,18 @@ export class FeedsApi {
1142
1249
 
1143
1250
  async getComment(request: {
1144
1251
  id: string;
1252
+ user_id?: string;
1145
1253
  }): Promise<StreamResponse<GetCommentResponse>> {
1254
+ const queryParams = {
1255
+ user_id: request?.user_id,
1256
+ };
1146
1257
  const pathParams = {
1147
1258
  id: request?.id,
1148
1259
  };
1149
1260
 
1150
1261
  const response = await this.apiClient.sendRequest<
1151
1262
  StreamResponse<GetCommentResponse>
1152
- >('GET', '/api/v2/feeds/comments/{id}', pathParams, undefined);
1263
+ >('GET', '/api/v2/feeds/comments/{id}', pathParams, queryParams);
1153
1264
 
1154
1265
  decoders.GetCommentResponse?.(response.body);
1155
1266
 
@@ -1165,6 +1276,7 @@ export class FeedsApi {
1165
1276
  const body = {
1166
1277
  comment: request?.comment,
1167
1278
  copy_custom_to_notification: request?.copy_custom_to_notification,
1279
+ force_moderation: request?.force_moderation,
1168
1280
  handle_mention_notifications: request?.handle_mention_notifications,
1169
1281
  skip_enrich_url: request?.skip_enrich_url,
1170
1282
  skip_push: request?.skip_push,
@@ -1199,6 +1311,7 @@ export class FeedsApi {
1199
1311
  };
1200
1312
  const body = {
1201
1313
  copy_custom_to_notification: request?.copy_custom_to_notification,
1314
+ force_moderation: request?.force_moderation,
1202
1315
  handle_mention_notifications: request?.handle_mention_notifications,
1203
1316
  skip_enrich_url: request?.skip_enrich_url,
1204
1317
  skip_push: request?.skip_push,
@@ -1506,12 +1619,14 @@ export class FeedsApi {
1506
1619
  feed_id: request?.feed_id,
1507
1620
  };
1508
1621
  const body = {
1622
+ clear_location: request?.clear_location,
1509
1623
  created_by_id: request?.created_by_id,
1510
1624
  description: request?.description,
1511
1625
  enrich_own_fields: request?.enrich_own_fields,
1512
1626
  name: request?.name,
1513
1627
  filter_tags: request?.filter_tags,
1514
1628
  custom: request?.custom,
1629
+ location: request?.location,
1515
1630
  };
1516
1631
 
1517
1632
  const response = await this.apiClient.sendRequest<
@@ -292,6 +292,13 @@ decoders.AddBookmarkResponse = (input?: Record<string, any>) => {
292
292
  return decode(typeMappings, input);
293
293
  };
294
294
 
295
+ decoders.AddCommentBookmarkResponse = (input?: Record<string, any>) => {
296
+ const typeMappings: TypeMapping = {
297
+ bookmark: { type: 'BookmarkResponse', isSingle: true },
298
+ };
299
+ return decode(typeMappings, input);
300
+ };
301
+
295
302
  decoders.AddCommentReactionResponse = (input?: Record<string, any>) => {
296
303
  const typeMappings: TypeMapping = {
297
304
  comment: { type: 'CommentResponse', isSingle: true },
@@ -612,6 +619,8 @@ decoders.BookmarkResponse = (input?: Record<string, any>) => {
612
619
 
613
620
  user: { type: 'UserResponse', isSingle: true },
614
621
 
622
+ comment: { type: 'CommentResponse', isSingle: true },
623
+
615
624
  folder: { type: 'BookmarkFolderResponse', isSingle: true },
616
625
  };
617
626
  return decode(typeMappings, input);
@@ -948,6 +957,8 @@ decoders.CallResponse = (input?: Record<string, any>) => {
948
957
 
949
958
  created_by: { type: 'UserResponse', isSingle: true },
950
959
 
960
+ egress: { type: 'EgressResponse', isSingle: true },
961
+
951
962
  ended_at: { type: 'DatetimeType', isSingle: true },
952
963
 
953
964
  starts_at: { type: 'DatetimeType', isSingle: true },
@@ -1104,6 +1115,17 @@ decoders.CallStatsReportSummaryResponse = (input?: Record<string, any>) => {
1104
1115
  return decode(typeMappings, input);
1105
1116
  };
1106
1117
 
1118
+ decoders.CallStatsSessionResponse = (input?: Record<string, any>) => {
1119
+ const typeMappings: TypeMapping = {
1120
+ generated_at: { type: 'DatetimeType', isSingle: true },
1121
+
1122
+ call_ended_at: { type: 'DatetimeType', isSingle: true },
1123
+
1124
+ call_started_at: { type: 'DatetimeType', isSingle: true },
1125
+ };
1126
+ return decode(typeMappings, input);
1127
+ };
1128
+
1107
1129
  decoders.CallTranscription = (input?: Record<string, any>) => {
1108
1130
  const typeMappings: TypeMapping = {
1109
1131
  end_time: { type: 'DatetimeType', isSingle: true },
@@ -1578,6 +1600,13 @@ decoders.ChatActivityStatsResponse = (input?: Record<string, any>) => {
1578
1600
  return decode(typeMappings, input);
1579
1601
  };
1580
1602
 
1603
+ decoders.CheckResponse = (input?: Record<string, any>) => {
1604
+ const typeMappings: TypeMapping = {
1605
+ item: { type: 'ReviewQueueItemResponse', isSingle: true },
1606
+ };
1607
+ return decode(typeMappings, input);
1608
+ };
1609
+
1581
1610
  decoders.ClosedCaptionEvent = (input?: Record<string, any>) => {
1582
1611
  const typeMappings: TypeMapping = {
1583
1612
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -1916,6 +1945,13 @@ decoders.DeleteChannelResponse = (input?: Record<string, any>) => {
1916
1945
  return decode(typeMappings, input);
1917
1946
  };
1918
1947
 
1948
+ decoders.DeleteCommentBookmarkResponse = (input?: Record<string, any>) => {
1949
+ const typeMappings: TypeMapping = {
1950
+ bookmark: { type: 'BookmarkResponse', isSingle: true },
1951
+ };
1952
+ return decode(typeMappings, input);
1953
+ };
1954
+
1919
1955
  decoders.DeleteCommentReactionResponse = (input?: Record<string, any>) => {
1920
1956
  const typeMappings: TypeMapping = {
1921
1957
  comment: { type: 'CommentResponse', isSingle: true },
@@ -1986,6 +2022,13 @@ decoders.EgressRTMPResponse = (input?: Record<string, any>) => {
1986
2022
  return decode(typeMappings, input);
1987
2023
  };
1988
2024
 
2025
+ decoders.EgressResponse = (input?: Record<string, any>) => {
2026
+ const typeMappings: TypeMapping = {
2027
+ rtmps: { type: 'EgressRTMPResponse', isSingle: false },
2028
+ };
2029
+ return decode(typeMappings, input);
2030
+ };
2031
+
1989
2032
  decoders.EnrichedCollection = (input?: Record<string, any>) => {
1990
2033
  const typeMappings: TypeMapping = {
1991
2034
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2502,12 +2545,16 @@ decoders.GetCallParticipantSessionMetricsResponse = (
2502
2545
  ) => {
2503
2546
  const typeMappings: TypeMapping = {
2504
2547
  joined_at: { type: 'DatetimeType', isSingle: true },
2548
+
2549
+ published_tracks: { type: 'PublishedTrackMetrics', isSingle: false },
2505
2550
  };
2506
2551
  return decode(typeMappings, input);
2507
2552
  };
2508
2553
 
2509
2554
  decoders.GetCallReportResponse = (input?: Record<string, any>) => {
2510
2555
  const typeMappings: TypeMapping = {
2556
+ report: { type: 'ReportResponse', isSingle: true },
2557
+
2511
2558
  video_reactions: { type: 'VideoReactionsResponse', isSingle: false },
2512
2559
 
2513
2560
  chat_activity: { type: 'ChatActivityStatsResponse', isSingle: true },
@@ -2526,6 +2573,15 @@ decoders.GetCallResponse = (input?: Record<string, any>) => {
2526
2573
  return decode(typeMappings, input);
2527
2574
  };
2528
2575
 
2576
+ decoders.GetCallSessionParticipantStatsDetailsResponse = (
2577
+ input?: Record<string, any>,
2578
+ ) => {
2579
+ const typeMappings: TypeMapping = {
2580
+ timeframe: { type: 'ParticipantSeriesTimeframe', isSingle: true },
2581
+ };
2582
+ return decode(typeMappings, input);
2583
+ };
2584
+
2529
2585
  decoders.GetCallTypeResponse = (input?: Record<string, any>) => {
2530
2586
  const typeMappings: TypeMapping = {
2531
2587
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -2535,6 +2591,13 @@ decoders.GetCallTypeResponse = (input?: Record<string, any>) => {
2535
2591
  return decode(typeMappings, input);
2536
2592
  };
2537
2593
 
2594
+ decoders.GetCampaignResponse = (input?: Record<string, any>) => {
2595
+ const typeMappings: TypeMapping = {
2596
+ campaign: { type: 'CampaignResponse', isSingle: true },
2597
+ };
2598
+ return decode(typeMappings, input);
2599
+ };
2600
+
2538
2601
  decoders.GetChannelTypeResponse = (input?: Record<string, any>) => {
2539
2602
  const typeMappings: TypeMapping = {
2540
2603
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -3495,6 +3558,16 @@ decoders.ParticipantCountOverTimeResponse = (input?: Record<string, any>) => {
3495
3558
  return decode(typeMappings, input);
3496
3559
  };
3497
3560
 
3561
+ decoders.ParticipantReportResponse = (input?: Record<string, any>) => {
3562
+ const typeMappings: TypeMapping = {
3563
+ count_over_time: {
3564
+ type: 'ParticipantCountOverTimeResponse',
3565
+ isSingle: true,
3566
+ },
3567
+ };
3568
+ return decode(typeMappings, input);
3569
+ };
3570
+
3498
3571
  decoders.ParticipantSeriesTimeframe = (input?: Record<string, any>) => {
3499
3572
  const typeMappings: TypeMapping = {
3500
3573
  since: { type: 'DatetimeType', isSingle: true },
@@ -3606,6 +3679,13 @@ decoders.PollVotesResponse = (input?: Record<string, any>) => {
3606
3679
  return decode(typeMappings, input);
3607
3680
  };
3608
3681
 
3682
+ decoders.PublishedTrackMetrics = (input?: Record<string, any>) => {
3683
+ const typeMappings: TypeMapping = {
3684
+ warnings: { type: 'SessionWarningResponse', isSingle: false },
3685
+ };
3686
+ return decode(typeMappings, input);
3687
+ };
3688
+
3609
3689
  decoders.PushNotificationFields = (input?: Record<string, any>) => {
3610
3690
  const typeMappings: TypeMapping = {
3611
3691
  providers: { type: 'PushProvider', isSingle: false },
@@ -3765,6 +3845,13 @@ decoders.QueryCallSessionParticipantStatsTimelineResponse = (
3765
3845
  return decode(typeMappings, input);
3766
3846
  };
3767
3847
 
3848
+ decoders.QueryCallSessionStatsResponse = (input?: Record<string, any>) => {
3849
+ const typeMappings: TypeMapping = {
3850
+ call_stats: { type: 'CallStatsSessionResponse', isSingle: false },
3851
+ };
3852
+ return decode(typeMappings, input);
3853
+ };
3854
+
3768
3855
  decoders.QueryCallStatsMapResponse = (input?: Record<string, any>) => {
3769
3856
  const typeMappings: TypeMapping = {
3770
3857
  call_ended_at: { type: 'DatetimeType', isSingle: true },
@@ -3801,6 +3888,13 @@ decoders.QueryCampaignsResponse = (input?: Record<string, any>) => {
3801
3888
  return decode(typeMappings, input);
3802
3889
  };
3803
3890
 
3891
+ decoders.QueryChannelsResponse = (input?: Record<string, any>) => {
3892
+ const typeMappings: TypeMapping = {
3893
+ channels: { type: 'ChannelStateResponseFields', isSingle: false },
3894
+ };
3895
+ return decode(typeMappings, input);
3896
+ };
3897
+
3804
3898
  decoders.QueryCollectionsResponse = (input?: Record<string, any>) => {
3805
3899
  const typeMappings: TypeMapping = {
3806
3900
  collections: { type: 'CollectionResponse', isSingle: false },
@@ -3952,6 +4046,13 @@ decoders.QueryRemindersResponse = (input?: Record<string, any>) => {
3952
4046
  return decode(typeMappings, input);
3953
4047
  };
3954
4048
 
4049
+ decoders.QueryReviewQueueResponse = (input?: Record<string, any>) => {
4050
+ const typeMappings: TypeMapping = {
4051
+ items: { type: 'ReviewQueueItemResponse', isSingle: false },
4052
+ };
4053
+ return decode(typeMappings, input);
4054
+ };
4055
+
3955
4056
  decoders.QuerySegmentTargetsResponse = (input?: Record<string, any>) => {
3956
4057
  const typeMappings: TypeMapping = {
3957
4058
  targets: { type: 'SegmentTargetResponse', isSingle: false },
@@ -4184,6 +4285,15 @@ decoders.RemoveUserGroupMembersResponse = (input?: Record<string, any>) => {
4184
4285
  return decode(typeMappings, input);
4185
4286
  };
4186
4287
 
4288
+ decoders.ReportResponse = (input?: Record<string, any>) => {
4289
+ const typeMappings: TypeMapping = {
4290
+ call: { type: 'CallReportResponse', isSingle: true },
4291
+
4292
+ participants: { type: 'ParticipantReportResponse', isSingle: true },
4293
+ };
4294
+ return decode(typeMappings, input);
4295
+ };
4296
+
4187
4297
  decoders.ResolveSipInboundResponse = (input?: Record<string, any>) => {
4188
4298
  const typeMappings: TypeMapping = {
4189
4299
  sip_routing_rule: { type: 'SIPInboundRoutingRuleResponse', isSingle: true },
@@ -4319,6 +4429,13 @@ decoders.SIPTrunkResponse = (input?: Record<string, any>) => {
4319
4429
  return decode(typeMappings, input);
4320
4430
  };
4321
4431
 
4432
+ decoders.SearchResponse = (input?: Record<string, any>) => {
4433
+ const typeMappings: TypeMapping = {
4434
+ results: { type: 'SearchResult', isSingle: false },
4435
+ };
4436
+ return decode(typeMappings, input);
4437
+ };
4438
+
4322
4439
  decoders.SearchResult = (input?: Record<string, any>) => {
4323
4440
  const typeMappings: TypeMapping = {
4324
4441
  message: { type: 'SearchResultMessage', isSingle: true },
@@ -4484,6 +4601,13 @@ decoders.SingleFollowResponse = (input?: Record<string, any>) => {
4484
4601
  return decode(typeMappings, input);
4485
4602
  };
4486
4603
 
4604
+ decoders.StartCampaignResponse = (input?: Record<string, any>) => {
4605
+ const typeMappings: TypeMapping = {
4606
+ campaign: { type: 'CampaignResponse', isSingle: true },
4607
+ };
4608
+ return decode(typeMappings, input);
4609
+ };
4610
+
4487
4611
  decoders.StopLiveResponse = (input?: Record<string, any>) => {
4488
4612
  const typeMappings: TypeMapping = {
4489
4613
  call: { type: 'CallResponse', isSingle: true },
@@ -4805,6 +4929,13 @@ decoders.UpdateCommandResponse = (input?: Record<string, any>) => {
4805
4929
  return decode(typeMappings, input);
4806
4930
  };
4807
4931
 
4932
+ decoders.UpdateCommentBookmarkResponse = (input?: Record<string, any>) => {
4933
+ const typeMappings: TypeMapping = {
4934
+ bookmark: { type: 'BookmarkResponse', isSingle: true },
4935
+ };
4936
+ return decode(typeMappings, input);
4937
+ };
4938
+
4808
4939
  decoders.UpdateCommentPartialResponse = (input?: Record<string, any>) => {
4809
4940
  const typeMappings: TypeMapping = {
4810
4941
  comment: { type: 'CommentResponse', isSingle: true },