@stream-io/node-sdk 0.7.19 → 0.7.20

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 { StreamResponse, VideoApi } from '../../gen-imports';
2
- import { BlockUserRequest, BlockUserResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, DeleteCallRequest, DeleteCallResponse, DeleteRecordingResponse, DeleteTranscriptionResponse, EndCallResponse, GetCallReportResponse, GetCallResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, KickUserRequest, KickUserResponse, ListRecordingsResponse, ListTranscriptionsResponse, MuteUsersRequest, MuteUsersResponse, PinRequest, PinResponse, QueryCallParticipantsRequest, QueryCallParticipantsResponse, SendCallEventRequest, SendCallEventResponse, SendClosedCaptionRequest, SendClosedCaptionResponse, StartClosedCaptionsRequest, StartClosedCaptionsResponse, StartFrameRecordingRequest, StartFrameRecordingResponse, StartHLSBroadcastingResponse, StartRTMPBroadcastsRequest, StartRTMPBroadcastsResponse, StartRecordingRequest, StartRecordingResponse, StartTranscriptionRequest, StartTranscriptionResponse, StopAllRTMPBroadcastsResponse, StopClosedCaptionsRequest, StopClosedCaptionsResponse, StopFrameRecordingResponse, StopHLSBroadcastingResponse, StopLiveRequest, StopLiveResponse, StopRTMPBroadcastsRequest, StopRTMPBroadcastsResponse, StopRecordingResponse, StopTranscriptionRequest, StopTranscriptionResponse, UnblockUserRequest, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from '../models';
2
+ import { BlockUserRequest, BlockUserResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, DeleteCallRequest, DeleteCallResponse, DeleteRecordingResponse, DeleteTranscriptionResponse, EndCallResponse, GetCallReportResponse, GetCallResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, KickUserRequest, KickUserResponse, ListRecordingsResponse, ListTranscriptionsResponse, MuteUsersRequest, MuteUsersResponse, PinRequest, PinResponse, QueryCallParticipantsRequest, QueryCallParticipantsResponse, RingCallRequest, RingCallResponse, SendCallEventRequest, SendCallEventResponse, SendClosedCaptionRequest, SendClosedCaptionResponse, StartClosedCaptionsRequest, StartClosedCaptionsResponse, StartFrameRecordingRequest, StartFrameRecordingResponse, StartHLSBroadcastingResponse, StartRTMPBroadcastsRequest, StartRTMPBroadcastsResponse, StartRecordingRequest, StartRecordingResponse, StartTranscriptionRequest, StartTranscriptionResponse, StopAllRTMPBroadcastsResponse, StopClosedCaptionsRequest, StopClosedCaptionsResponse, StopFrameRecordingResponse, StopHLSBroadcastingResponse, StopLiveRequest, StopLiveResponse, StopRTMPBroadcastsRequest, StopRTMPBroadcastsResponse, StopRecordingResponse, StopTranscriptionRequest, StopTranscriptionResponse, UnblockUserRequest, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from '../models';
3
3
  export declare class CallApi {
4
4
  protected videoApi: VideoApi;
5
5
  readonly type: string;
@@ -31,6 +31,7 @@ export declare class CallApi {
31
31
  getCallReport(request?: {
32
32
  session_id?: string;
33
33
  }): Promise<StreamResponse<GetCallReportResponse>>;
34
+ ring(request?: RingCallRequest): Promise<StreamResponse<RingCallResponse>>;
34
35
  startRTMPBroadcasts(request: StartRTMPBroadcastsRequest): Promise<StreamResponse<StartRTMPBroadcastsResponse>>;
35
36
  stopAllRTMPBroadcasts(): Promise<StreamResponse<StopAllRTMPBroadcastsResponse>>;
36
37
  stopRTMPBroadcast(request: StopRTMPBroadcastsRequest & {
@@ -1,5 +1,5 @@
1
1
  import { ApiClient, StreamResponse } from '../../gen-imports';
2
- import { BlockUserRequest, BlockUserResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, CreateCallTypeRequest, CreateCallTypeResponse, DeleteCallRequest, DeleteCallResponse, DeleteRecordingResponse, DeleteTranscriptionResponse, EndCallResponse, GetActiveCallsStatusResponse, GetCallReportResponse, GetCallResponse, GetCallSessionParticipantStatsDetailsResponse, GetCallTypeResponse, GetEdgesResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, KickUserRequest, KickUserResponse, ListCallTypeResponse, ListRecordingsResponse, ListTranscriptionsResponse, MuteUsersRequest, MuteUsersResponse, PinRequest, PinResponse, QueryAggregateCallStatsRequest, QueryAggregateCallStatsResponse, QueryCallMembersRequest, QueryCallMembersResponse, QueryCallParticipantsRequest, QueryCallParticipantsResponse, QueryCallSessionParticipantStatsResponse, QueryCallSessionParticipantStatsTimelineResponse, QueryCallStatsRequest, QueryCallStatsResponse, QueryCallsRequest, QueryCallsResponse, QueryUserFeedbackRequest, QueryUserFeedbackResponse, Response, 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, StopRecordingResponse, StopTranscriptionRequest, StopTranscriptionResponse, UnblockUserRequest, UnblockUserResponse, UnpinRequest, UnpinResponse, UpdateCallMembersRequest, UpdateCallMembersResponse, UpdateCallRequest, UpdateCallResponse, UpdateCallTypeRequest, UpdateCallTypeResponse, UpdateUserPermissionsRequest, UpdateUserPermissionsResponse } from '../models';
2
+ import { BlockUserRequest, BlockUserResponse, CollectUserFeedbackRequest, CollectUserFeedbackResponse, CreateCallTypeRequest, CreateCallTypeResponse, CreateSIPTrunkRequest, CreateSIPTrunkResponse, DeleteCallRequest, DeleteCallResponse, DeleteRecordingResponse, DeleteSIPInboundRoutingRuleResponse, DeleteSIPTrunkResponse, DeleteTranscriptionResponse, EndCallResponse, GetActiveCallsStatusResponse, GetCallReportResponse, GetCallResponse, GetCallSessionParticipantStatsDetailsResponse, GetCallTypeResponse, GetEdgesResponse, GetOrCreateCallRequest, GetOrCreateCallResponse, GoLiveRequest, GoLiveResponse, KickUserRequest, KickUserResponse, ListCallTypeResponse, ListRecordingsResponse, ListSIPInboundRoutingRuleResponse, ListSIPTrunksResponse, ListTranscriptionsResponse, MuteUsersRequest, MuteUsersResponse, PinRequest, PinResponse, QueryAggregateCallStatsRequest, QueryAggregateCallStatsResponse, QueryCallMembersRequest, QueryCallMembersResponse, QueryCallParticipantsRequest, QueryCallParticipantsResponse, QueryCallSessionParticipantStatsResponse, QueryCallSessionParticipantStatsTimelineResponse, QueryCallStatsRequest, QueryCallStatsResponse, QueryCallsRequest, QueryCallsResponse, QueryUserFeedbackRequest, QueryUserFeedbackResponse, 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, 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);
@@ -83,6 +83,10 @@ export declare class VideoApi {
83
83
  id: string;
84
84
  session_id?: string;
85
85
  }): Promise<StreamResponse<GetCallReportResponse>>;
86
+ ringCall(request: RingCallRequest & {
87
+ type: string;
88
+ id: string;
89
+ }): Promise<StreamResponse<RingCallResponse>>;
86
90
  startRTMPBroadcasts(request: StartRTMPBroadcastsRequest & {
87
91
  type: string;
88
92
  id: string;
@@ -208,5 +212,22 @@ export declare class VideoApi {
208
212
  name: string;
209
213
  }): Promise<StreamResponse<UpdateCallTypeResponse>>;
210
214
  getEdges(): Promise<StreamResponse<GetEdgesResponse>>;
215
+ resolveSipInbound(request: ResolveSipInboundRequest): Promise<StreamResponse<ResolveSipInboundResponse>>;
216
+ listSIPInboundRoutingRule(): Promise<StreamResponse<ListSIPInboundRoutingRuleResponse>>;
217
+ createSIPInboundRoutingRule(request: SIPInboundRoutingRuleRequest): Promise<StreamResponse<SIPInboundRoutingRuleResponse>>;
218
+ deleteSIPInboundRoutingRule(request: {
219
+ id: string;
220
+ }): Promise<StreamResponse<DeleteSIPInboundRoutingRuleResponse>>;
221
+ updateSIPInboundRoutingRule(request: UpdateSIPInboundRoutingRuleRequest & {
222
+ id: string;
223
+ }): Promise<StreamResponse<UpdateSIPInboundRoutingRuleResponse>>;
224
+ listSIPTrunks(): Promise<StreamResponse<ListSIPTrunksResponse>>;
225
+ createSIPTrunk(request: CreateSIPTrunkRequest): Promise<StreamResponse<CreateSIPTrunkResponse>>;
226
+ deleteSIPTrunk(request: {
227
+ id: string;
228
+ }): Promise<StreamResponse<DeleteSIPTrunkResponse>>;
229
+ updateSIPTrunk(request: UpdateSIPTrunkRequest & {
230
+ id: string;
231
+ }): Promise<StreamResponse<UpdateSIPTrunkResponse>>;
211
232
  queryAggregateCallStats(request?: QueryAggregateCallStatsRequest): Promise<StreamResponse<QueryAggregateCallStatsResponse>>;
212
233
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stream-io/node-sdk",
3
- "version": "0.7.19",
3
+ "version": "0.7.20",
4
4
  "description": "",
5
5
  "exports": {
6
6
  ".": {
@@ -36,6 +36,8 @@ import {
36
36
  ListChannelTypesResponse,
37
37
  ListCommandsResponse,
38
38
  MarkChannelsReadRequest,
39
+ MarkDeliveredRequest,
40
+ MarkDeliveredResponse,
39
41
  MarkReadRequest,
40
42
  MarkReadResponse,
41
43
  MarkUnreadRequest,
@@ -278,6 +280,32 @@ export class ChatApi {
278
280
  return { ...response.body, metadata: response.metadata };
279
281
  }
280
282
 
283
+ async markDelivered(
284
+ request?: MarkDeliveredRequest & { user_id?: string },
285
+ ): Promise<StreamResponse<MarkDeliveredResponse>> {
286
+ const queryParams = {
287
+ user_id: request?.user_id,
288
+ };
289
+ const body = {
290
+ latest_delivered_messages: request?.latest_delivered_messages,
291
+ };
292
+
293
+ const response = await this.apiClient.sendRequest<
294
+ StreamResponse<MarkDeliveredResponse>
295
+ >(
296
+ 'POST',
297
+ '/api/v2/chat/channels/delivered',
298
+ undefined,
299
+ queryParams,
300
+ body,
301
+ 'application/json',
302
+ );
303
+
304
+ decoders.MarkDeliveredResponse?.(response.body);
305
+
306
+ return { ...response.body, metadata: response.metadata };
307
+ }
308
+
281
309
  async markChannelsRead(
282
310
  request?: MarkChannelsReadRequest,
283
311
  ): Promise<StreamResponse<MarkReadResponse>> {
@@ -398,14 +426,17 @@ export class ChatApi {
398
426
  accept_invite: request?.accept_invite,
399
427
  cooldown: request?.cooldown,
400
428
  hide_history: request?.hide_history,
429
+ hide_history_before: request?.hide_history_before,
401
430
  reject_invite: request?.reject_invite,
402
431
  skip_push: request?.skip_push,
403
432
  user_id: request?.user_id,
433
+ add_filter_tags: request?.add_filter_tags,
404
434
  add_members: request?.add_members,
405
435
  add_moderators: request?.add_moderators,
406
436
  assign_roles: request?.assign_roles,
407
437
  demote_moderators: request?.demote_moderators,
408
438
  invites: request?.invites,
439
+ remove_filter_tags: request?.remove_filter_tags,
409
440
  remove_members: request?.remove_members,
410
441
  data: request?.data,
411
442
  message: request?.message,
@@ -875,6 +906,7 @@ export class ChatApi {
875
906
  };
876
907
  const body = {
877
908
  message_id: request?.message_id,
909
+ message_timestamp: request?.message_timestamp,
878
910
  thread_id: request?.thread_id,
879
911
  user_id: request?.user_id,
880
912
  user: request?.user,
@@ -2122,10 +2154,16 @@ export class ChatApi {
2122
2154
  return { ...response.body, metadata: response.metadata };
2123
2155
  }
2124
2156
 
2125
- async unreadCounts(): Promise<StreamResponse<WrappedUnreadCountsResponse>> {
2157
+ async unreadCounts(request?: {
2158
+ user_id?: string;
2159
+ }): Promise<StreamResponse<WrappedUnreadCountsResponse>> {
2160
+ const queryParams = {
2161
+ user_id: request?.user_id,
2162
+ };
2163
+
2126
2164
  const response = await this.apiClient.sendRequest<
2127
2165
  StreamResponse<WrappedUnreadCountsResponse>
2128
- >('GET', '/api/v2/chat/unread', undefined, undefined);
2166
+ >('GET', '/api/v2/chat/unread', undefined, queryParams);
2129
2167
 
2130
2168
  decoders.WrappedUnreadCountsResponse?.(response.body);
2131
2169
 
@@ -533,6 +533,8 @@ decoders.BookmarkFolderResponse = (input?: Record<string, any>) => {
533
533
  created_at: { type: 'DatetimeType', isSingle: true },
534
534
 
535
535
  updated_at: { type: 'DatetimeType', isSingle: true },
536
+
537
+ user: { type: 'UserResponseCommonFields', isSingle: true },
536
538
  };
537
539
  return decode(typeMappings, input);
538
540
  };
@@ -558,7 +560,7 @@ decoders.BookmarkResponse = (input?: Record<string, any>) => {
558
560
 
559
561
  activity: { type: 'ActivityResponse', isSingle: true },
560
562
 
561
- user: { type: 'UserResponse', isSingle: true },
563
+ user: { type: 'UserResponseCommonFields', isSingle: true },
562
564
 
563
565
  folder: { type: 'BookmarkFolderResponse', isSingle: true },
564
566
  };
@@ -1258,14 +1260,12 @@ decoders.ChannelHiddenEvent = (input?: Record<string, any>) => {
1258
1260
 
1259
1261
  decoders.ChannelMember = (input?: Record<string, any>) => {
1260
1262
  const typeMappings: TypeMapping = {
1261
- created_at: { type: 'DatetimeType', isSingle: true },
1262
-
1263
- updated_at: { type: 'DatetimeType', isSingle: true },
1264
-
1265
1263
  archived_at: { type: 'DatetimeType', isSingle: true },
1266
1264
 
1267
1265
  ban_expires: { type: 'DatetimeType', isSingle: true },
1268
1266
 
1267
+ created_at: { type: 'DatetimeType', isSingle: true },
1268
+
1269
1269
  deleted_at: { type: 'DatetimeType', isSingle: true },
1270
1270
 
1271
1271
  invite_accepted_at: { type: 'DatetimeType', isSingle: true },
@@ -1274,6 +1274,8 @@ decoders.ChannelMember = (input?: Record<string, any>) => {
1274
1274
 
1275
1275
  pinned_at: { type: 'DatetimeType', isSingle: true },
1276
1276
 
1277
+ updated_at: { type: 'DatetimeType', isSingle: true },
1278
+
1277
1279
  user: { type: 'User', isSingle: true },
1278
1280
  };
1279
1281
  return decode(typeMappings, input);
@@ -1335,7 +1337,7 @@ decoders.ChannelMutedEvent = (input?: Record<string, any>) => {
1335
1337
  return decode(typeMappings, input);
1336
1338
  };
1337
1339
 
1338
- decoders.ChannelPushPreferences = (input?: Record<string, any>) => {
1340
+ decoders.ChannelPushPreferencesResponse = (input?: Record<string, any>) => {
1339
1341
  const typeMappings: TypeMapping = {
1340
1342
  disabled_until: { type: 'DatetimeType', isSingle: true },
1341
1343
  };
@@ -1398,7 +1400,10 @@ decoders.ChannelStateResponse = (input?: Record<string, any>) => {
1398
1400
 
1399
1401
  membership: { type: 'ChannelMemberResponse', isSingle: true },
1400
1402
 
1401
- push_preferences: { type: 'ChannelPushPreferences', isSingle: true },
1403
+ push_preferences: {
1404
+ type: 'ChannelPushPreferencesResponse',
1405
+ isSingle: true,
1406
+ },
1402
1407
  };
1403
1408
  return decode(typeMappings, input);
1404
1409
  };
@@ -1432,7 +1437,10 @@ decoders.ChannelStateResponseFields = (input?: Record<string, any>) => {
1432
1437
 
1433
1438
  membership: { type: 'ChannelMemberResponse', isSingle: true },
1434
1439
 
1435
- push_preferences: { type: 'ChannelPushPreferences', isSingle: true },
1440
+ push_preferences: {
1441
+ type: 'ChannelPushPreferencesResponse',
1442
+ isSingle: true,
1443
+ },
1436
1444
  };
1437
1445
  return decode(typeMappings, input);
1438
1446
  };
@@ -1745,6 +1753,13 @@ decoders.CreateRoleResponse = (input?: Record<string, any>) => {
1745
1753
  return decode(typeMappings, input);
1746
1754
  };
1747
1755
 
1756
+ decoders.CreateSIPTrunkResponse = (input?: Record<string, any>) => {
1757
+ const typeMappings: TypeMapping = {
1758
+ sip_trunk: { type: 'SIPTrunkResponse', isSingle: true },
1759
+ };
1760
+ return decode(typeMappings, input);
1761
+ };
1762
+
1748
1763
  decoders.CustomCheckResponse = (input?: Record<string, any>) => {
1749
1764
  const typeMappings: TypeMapping = {
1750
1765
  item: { type: 'ReviewQueueItemResponse', isSingle: true },
@@ -2460,7 +2475,7 @@ decoders.GetPushTemplatesResponse = (input?: Record<string, any>) => {
2460
2475
 
2461
2476
  decoders.GetReactionsResponse = (input?: Record<string, any>) => {
2462
2477
  const typeMappings: TypeMapping = {
2463
- reactions: { type: 'Reaction', isSingle: false },
2478
+ reactions: { type: 'ReactionResponse', isSingle: false },
2464
2479
  };
2465
2480
  return decode(typeMappings, input);
2466
2481
  };
@@ -2615,6 +2630,23 @@ decoders.ListRolesResponse = (input?: Record<string, any>) => {
2615
2630
  return decode(typeMappings, input);
2616
2631
  };
2617
2632
 
2633
+ decoders.ListSIPInboundRoutingRuleResponse = (input?: Record<string, any>) => {
2634
+ const typeMappings: TypeMapping = {
2635
+ sip_inbound_routing_rules: {
2636
+ type: 'SIPInboundRoutingRuleResponse',
2637
+ isSingle: false,
2638
+ },
2639
+ };
2640
+ return decode(typeMappings, input);
2641
+ };
2642
+
2643
+ decoders.ListSIPTrunksResponse = (input?: Record<string, any>) => {
2644
+ const typeMappings: TypeMapping = {
2645
+ sip_trunks: { type: 'SIPTrunkResponse', isSingle: false },
2646
+ };
2647
+ return decode(typeMappings, input);
2648
+ };
2649
+
2618
2650
  decoders.ListTranscriptionsResponse = (input?: Record<string, any>) => {
2619
2651
  const typeMappings: TypeMapping = {
2620
2652
  transcriptions: { type: 'CallTranscription', isSingle: false },
@@ -3151,7 +3183,7 @@ decoders.OwnUserResponse = (input?: Record<string, any>) => {
3151
3183
 
3152
3184
  revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
3153
3185
 
3154
- push_preferences: { type: 'PushPreferences', isSingle: true },
3186
+ push_preferences: { type: 'PushPreferencesResponse', isSingle: true },
3155
3187
  };
3156
3188
  return decode(typeMappings, input);
3157
3189
  };
@@ -3317,6 +3349,13 @@ decoders.PushPreferences = (input?: Record<string, any>) => {
3317
3349
  return decode(typeMappings, input);
3318
3350
  };
3319
3351
 
3352
+ decoders.PushPreferencesResponse = (input?: Record<string, any>) => {
3353
+ const typeMappings: TypeMapping = {
3354
+ disabled_until: { type: 'DatetimeType', isSingle: true },
3355
+ };
3356
+ return decode(typeMappings, input);
3357
+ };
3358
+
3320
3359
  decoders.PushProvider = (input?: Record<string, any>) => {
3321
3360
  const typeMappings: TypeMapping = {
3322
3361
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -3583,13 +3622,6 @@ decoders.QueryRemindersResponse = (input?: Record<string, any>) => {
3583
3622
  return decode(typeMappings, input);
3584
3623
  };
3585
3624
 
3586
- decoders.QueryReviewQueueResponse = (input?: Record<string, any>) => {
3587
- const typeMappings: TypeMapping = {
3588
- items: { type: 'ReviewQueueItemResponse', isSingle: false },
3589
- };
3590
- return decode(typeMappings, input);
3591
- };
3592
-
3593
3625
  decoders.QuerySegmentTargetsResponse = (input?: Record<string, any>) => {
3594
3626
  const typeMappings: TypeMapping = {
3595
3627
  targets: { type: 'SegmentTargetResponse', isSingle: false },
@@ -3774,9 +3806,9 @@ decoders.ReminderResponseData = (input?: Record<string, any>) => {
3774
3806
 
3775
3807
  channel: { type: 'ChannelResponse', isSingle: true },
3776
3808
 
3777
- message: { type: 'Message', isSingle: true },
3809
+ message: { type: 'MessageResponse', isSingle: true },
3778
3810
 
3779
- user: { type: 'User', isSingle: true },
3811
+ user: { type: 'UserResponse', isSingle: true },
3780
3812
  };
3781
3813
  return decode(typeMappings, input);
3782
3814
  };
@@ -3792,6 +3824,15 @@ decoders.ReminderUpdatedEvent = (input?: Record<string, any>) => {
3792
3824
  return decode(typeMappings, input);
3793
3825
  };
3794
3826
 
3827
+ decoders.ResolveSipInboundResponse = (input?: Record<string, any>) => {
3828
+ const typeMappings: TypeMapping = {
3829
+ sip_routing_rule: { type: 'SIPInboundRoutingRuleResponse', isSingle: true },
3830
+
3831
+ sip_trunk: { type: 'SIPTrunkResponse', isSingle: true },
3832
+ };
3833
+ return decode(typeMappings, input);
3834
+ };
3835
+
3795
3836
  decoders.ReviewQueueItemNewEvent = (input?: Record<string, any>) => {
3796
3837
  const typeMappings: TypeMapping = {
3797
3838
  created_at: { type: 'DatetimeType', isSingle: true },
@@ -3866,6 +3907,24 @@ decoders.Role = (input?: Record<string, any>) => {
3866
3907
  return decode(typeMappings, input);
3867
3908
  };
3868
3909
 
3910
+ decoders.SIPInboundRoutingRuleResponse = (input?: Record<string, any>) => {
3911
+ const typeMappings: TypeMapping = {
3912
+ created_at: { type: 'DatetimeType', isSingle: true },
3913
+
3914
+ updated_at: { type: 'DatetimeType', isSingle: true },
3915
+ };
3916
+ return decode(typeMappings, input);
3917
+ };
3918
+
3919
+ decoders.SIPTrunkResponse = (input?: Record<string, any>) => {
3920
+ const typeMappings: TypeMapping = {
3921
+ created_at: { type: 'DatetimeType', isSingle: true },
3922
+
3923
+ updated_at: { type: 'DatetimeType', isSingle: true },
3924
+ };
3925
+ return decode(typeMappings, input);
3926
+ };
3927
+
3869
3928
  decoders.SearchResult = (input?: Record<string, any>) => {
3870
3929
  const typeMappings: TypeMapping = {
3871
3930
  message: { type: 'SearchResultMessage', isSingle: true },
@@ -3965,15 +4024,7 @@ decoders.SendReactionResponse = (input?: Record<string, any>) => {
3965
4024
 
3966
4025
  decoders.SharedLocation = (input?: Record<string, any>) => {
3967
4026
  const typeMappings: TypeMapping = {
3968
- created_at: { type: 'DatetimeType', isSingle: true },
3969
-
3970
- updated_at: { type: 'DatetimeType', isSingle: true },
3971
-
3972
4027
  end_at: { type: 'DatetimeType', isSingle: true },
3973
-
3974
- channel: { type: 'Channel', isSingle: true },
3975
-
3976
- message: { type: 'Message', isSingle: true },
3977
4028
  };
3978
4029
  return decode(typeMappings, input);
3979
4030
  };
@@ -4405,6 +4456,25 @@ decoders.UpdateReminderResponse = (input?: Record<string, any>) => {
4405
4456
  return decode(typeMappings, input);
4406
4457
  };
4407
4458
 
4459
+ decoders.UpdateSIPInboundRoutingRuleResponse = (
4460
+ input?: Record<string, any>,
4461
+ ) => {
4462
+ const typeMappings: TypeMapping = {
4463
+ sip_inbound_routing_rule: {
4464
+ type: 'SIPInboundRoutingRuleResponse',
4465
+ isSingle: true,
4466
+ },
4467
+ };
4468
+ return decode(typeMappings, input);
4469
+ };
4470
+
4471
+ decoders.UpdateSIPTrunkResponse = (input?: Record<string, any>) => {
4472
+ const typeMappings: TypeMapping = {
4473
+ sip_trunk: { type: 'SIPTrunkResponse', isSingle: true },
4474
+ };
4475
+ return decode(typeMappings, input);
4476
+ };
4477
+
4408
4478
  decoders.UpdateThreadPartialResponse = (input?: Record<string, any>) => {
4409
4479
  const typeMappings: TypeMapping = {
4410
4480
  thread: { type: 'ThreadResponse', isSingle: true },
@@ -4490,19 +4560,7 @@ decoders.User = (input?: Record<string, any>) => {
4490
4560
  const typeMappings: TypeMapping = {
4491
4561
  ban_expires: { type: 'DatetimeType', isSingle: true },
4492
4562
 
4493
- created_at: { type: 'DatetimeType', isSingle: true },
4494
-
4495
- deactivated_at: { type: 'DatetimeType', isSingle: true },
4496
-
4497
- deleted_at: { type: 'DatetimeType', isSingle: true },
4498
-
4499
- last_active: { type: 'DatetimeType', isSingle: true },
4500
-
4501
- last_engaged_at: { type: 'DatetimeType', isSingle: true },
4502
-
4503
4563
  revoke_tokens_issued_before: { type: 'DatetimeType', isSingle: true },
4504
-
4505
- updated_at: { type: 'DatetimeType', isSingle: true },
4506
4564
  };
4507
4565
  return decode(typeMappings, input);
4508
4566
  };