twilio 5.4.4 → 5.5.0

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.
Files changed (188) hide show
  1. package/lib/base/Page.js +1 -1
  2. package/lib/jwt/ClientCapability.js +1 -1
  3. package/lib/jwt/taskrouter/TaskRouterCapability.js +1 -1
  4. package/lib/rest/accounts/v1/bulkConsents.d.ts +4 -4
  5. package/lib/rest/accounts/v1/bulkConsents.js +1 -1
  6. package/lib/rest/accounts/v1/bulkContacts.d.ts +4 -4
  7. package/lib/rest/accounts/v1/bulkContacts.js +1 -1
  8. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +3 -3
  9. package/lib/rest/api/v2010/account/address.d.ts +6 -0
  10. package/lib/rest/api/v2010/account/address.js +2 -0
  11. package/lib/rest/api/v2010/account/call/event.d.ts +6 -6
  12. package/lib/rest/api/v2010/account/call/payment.d.ts +1 -1
  13. package/lib/rest/api/v2010/account/call/recording.d.ts +3 -3
  14. package/lib/rest/api/v2010/account/call/transcription.d.ts +1 -1
  15. package/lib/rest/api/v2010/account/conference/recording.d.ts +3 -3
  16. package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +3 -3
  17. package/lib/rest/api/v2010/account/recording.d.ts +3 -3
  18. package/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +3 -3
  19. package/lib/rest/bulkexports/v1/export/job.d.ts +3 -3
  20. package/lib/rest/chat/v1/service.d.ts +9 -9
  21. package/lib/rest/chat/v2/service/channel/message.d.ts +3 -3
  22. package/lib/rest/chat/v2/service/channel/webhook.d.ts +3 -3
  23. package/lib/rest/chat/v2/service.d.ts +9 -9
  24. package/lib/rest/conversations/v1/addressConfiguration.d.ts +4 -4
  25. package/lib/rest/conversations/v1/conversation/message.d.ts +6 -6
  26. package/lib/rest/conversations/v1/conversation/participant.d.ts +3 -3
  27. package/lib/rest/conversations/v1/conversation/webhook.d.ts +3 -3
  28. package/lib/rest/conversations/v1/conversation.d.ts +6 -6
  29. package/lib/rest/conversations/v1/conversationWithParticipants.d.ts +6 -6
  30. package/lib/rest/conversations/v1/participantConversation.d.ts +6 -6
  31. package/lib/rest/conversations/v1/service/configuration/notification.d.ts +9 -9
  32. package/lib/rest/conversations/v1/service/conversation/message.d.ts +6 -6
  33. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +3 -3
  34. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +3 -3
  35. package/lib/rest/conversations/v1/service/conversation.d.ts +6 -6
  36. package/lib/rest/conversations/v1/service/conversationWithParticipants.d.ts +6 -6
  37. package/lib/rest/conversations/v1/service/participantConversation.d.ts +6 -6
  38. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +3 -3
  39. package/lib/rest/conversations/v1/user/userConversation.d.ts +3 -3
  40. package/lib/rest/events/v1/sink.d.ts +5 -5
  41. package/lib/rest/events/v1/subscription.d.ts +1 -1
  42. package/lib/rest/events/v1/subscription.js +1 -1
  43. package/lib/rest/flexApi/v1/assessments.d.ts +3 -3
  44. package/lib/rest/flexApi/v1/configuration.d.ts +66 -66
  45. package/lib/rest/flexApi/v1/flexFlow.d.ts +3 -3
  46. package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +3 -3
  47. package/lib/rest/flexApi/v1/insightsConversations.d.ts +3 -3
  48. package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +3 -3
  49. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +6 -6
  50. package/lib/rest/flexApi/v1/insightsSegments.d.ts +9 -9
  51. package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +9 -9
  52. package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +3 -3
  53. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +4 -4
  54. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +5 -5
  55. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.d.ts +232 -0
  56. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.js +203 -0
  57. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +9 -1
  58. package/lib/rest/flexApi/v1/interaction/interactionChannel.js +13 -0
  59. package/lib/rest/flexApi/v1/interaction.d.ts +8 -8
  60. package/lib/rest/flexApi/v1/pluginConfiguration.d.ts +1 -1
  61. package/lib/rest/flexApi/v1/pluginConfiguration.js +1 -1
  62. package/lib/rest/iam/v1/apiKey.d.ts +3 -3
  63. package/lib/rest/iam/v1/newApiKey.d.ts +3 -3
  64. package/lib/rest/insights/v1/call/callSummary.d.ts +30 -30
  65. package/lib/rest/insights/v1/call/event.d.ts +12 -12
  66. package/lib/rest/insights/v1/call/metric.d.ts +12 -12
  67. package/lib/rest/insights/v1/callSummaries.d.ts +30 -30
  68. package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +10 -10
  69. package/lib/rest/insights/v1/conference.d.ts +7 -7
  70. package/lib/rest/insights/v1/room/participant.d.ts +6 -6
  71. package/lib/rest/intelligence/v2/customOperator.d.ts +5 -5
  72. package/lib/rest/intelligence/v2/operator.d.ts +3 -3
  73. package/lib/rest/intelligence/v2/operatorType.d.ts +3 -3
  74. package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +3 -3
  75. package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +15 -15
  76. package/lib/rest/intelligence/v2/transcript/sentence.d.ts +3 -3
  77. package/lib/rest/intelligence/v2/transcript.d.ts +4 -4
  78. package/lib/rest/ipMessaging/v1/service.d.ts +9 -9
  79. package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +3 -3
  80. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +3 -3
  81. package/lib/rest/ipMessaging/v2/service.d.ts +9 -9
  82. package/lib/rest/lookups/v1/phoneNumber.d.ts +9 -9
  83. package/lib/rest/lookups/v2/phoneNumber.d.ts +30 -30
  84. package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +2 -2
  85. package/lib/rest/messaging/v1/brandRegistration.d.ts +4 -4
  86. package/lib/rest/messaging/v1/domainCerts.d.ts +3 -3
  87. package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +6 -6
  88. package/lib/rest/messaging/v1/service/usAppToPersonUsecase.d.ts +3 -3
  89. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +7 -7
  90. package/lib/rest/messaging/v1/usecase.d.ts +3 -3
  91. package/lib/rest/microvisor/v1/device.d.ts +6 -6
  92. package/lib/rest/monitor/v1/event.d.ts +3 -3
  93. package/lib/rest/notify/v1/service/notification.d.ts +28 -28
  94. package/lib/rest/numbers/V1.d.ts +5 -5
  95. package/lib/rest/numbers/V1.js +6 -8
  96. package/lib/rest/numbers/v1/bulkEligibility.d.ts +3 -3
  97. package/lib/rest/numbers/v1/eligibility.d.ts +3 -3
  98. package/lib/rest/numbers/v1/portingPortIn.d.ts +6 -6
  99. package/lib/rest/numbers/v1/{portingWebhookConfigurationFetch.d.ts → webhook.d.ts} +10 -10
  100. package/lib/rest/numbers/v1/{portingWebhookConfigurationFetch.js → webhook.js} +6 -6
  101. package/lib/rest/numbers/v2/bulkHostedNumberOrder.d.ts +3 -3
  102. package/lib/rest/numbers/v2/hostedNumberOrder.d.ts +1 -1
  103. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +3 -3
  104. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +5 -5
  105. package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +3 -3
  106. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +3 -3
  107. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +8 -8
  108. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +3 -3
  109. package/lib/rest/preview/marketplace/availableAddOn.d.ts +3 -3
  110. package/lib/rest/preview/marketplace/installedAddOn.d.ts +5 -5
  111. package/lib/rest/preview/sync/service/document.d.ts +5 -5
  112. package/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +5 -5
  113. package/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +5 -5
  114. package/lib/rest/preview/wireless/sim/usage.d.ts +15 -15
  115. package/lib/rest/proxy/v1/service/session.d.ts +1 -1
  116. package/lib/rest/proxy/v1/service/session.js +1 -1
  117. package/lib/rest/serverless/v1/service/build.d.ts +9 -9
  118. package/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +3 -3
  119. package/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +3 -3
  120. package/lib/rest/studio/v1/flow/engagement/step.d.ts +3 -3
  121. package/lib/rest/studio/v1/flow/engagement.d.ts +4 -4
  122. package/lib/rest/studio/v1/flow/execution/executionContext.d.ts +3 -3
  123. package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +3 -3
  124. package/lib/rest/studio/v1/flow/execution/executionStep.d.ts +3 -3
  125. package/lib/rest/studio/v1/flow/execution.d.ts +4 -4
  126. package/lib/rest/studio/v2/flow/execution/executionContext.d.ts +3 -3
  127. package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +3 -3
  128. package/lib/rest/studio/v2/flow/execution/executionStep.d.ts +3 -3
  129. package/lib/rest/studio/v2/flow/execution.d.ts +4 -4
  130. package/lib/rest/studio/v2/flow/flowRevision.d.ts +6 -6
  131. package/lib/rest/studio/v2/flow.d.ts +11 -11
  132. package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
  133. package/lib/rest/supersim/v1/network.d.ts +3 -3
  134. package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +3 -3
  135. package/lib/rest/supersim/v1/settingsUpdate.d.ts +3 -3
  136. package/lib/rest/supersim/v1/usageRecord.d.ts +3 -3
  137. package/lib/rest/sync/v1/service/document.d.ts +5 -5
  138. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +5 -5
  139. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +5 -5
  140. package/lib/rest/sync/v1/service/syncStream/streamMessage.d.ts +4 -4
  141. package/lib/rest/taskrouter/v1/workspace/event.d.ts +3 -3
  142. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +3 -3
  143. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +12 -12
  144. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +9 -9
  145. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +6 -6
  146. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +6 -6
  147. package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +3 -3
  148. package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +3 -3
  149. package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +3 -3
  150. package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +6 -6
  151. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +9 -9
  152. package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +6 -6
  153. package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +6 -6
  154. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +9 -9
  155. package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +9 -9
  156. package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +6 -6
  157. package/lib/rest/trunking/v1/trunk.d.ts +3 -3
  158. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +3 -3
  159. package/lib/rest/trusthub/v1/customerProfiles.d.ts +3 -3
  160. package/lib/rest/trusthub/v1/endUser.d.ts +5 -5
  161. package/lib/rest/trusthub/v1/endUserType.d.ts +3 -3
  162. package/lib/rest/trusthub/v1/policies.d.ts +3 -3
  163. package/lib/rest/trusthub/v1/supportingDocument.d.ts +6 -6
  164. package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +3 -3
  165. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +3 -3
  166. package/lib/rest/trusthub/v1/trustProducts.d.ts +3 -3
  167. package/lib/rest/verify/v2/form.d.ts +6 -6
  168. package/lib/rest/verify/v2/service/entity/challenge.d.ts +12 -12
  169. package/lib/rest/verify/v2/service/entity/challenge.js +1 -1
  170. package/lib/rest/verify/v2/service/entity/factor.d.ts +6 -6
  171. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +10 -10
  172. package/lib/rest/verify/v2/service/verification.d.ts +11 -11
  173. package/lib/rest/verify/v2/service/verificationCheck.d.ts +3 -3
  174. package/lib/rest/verify/v2/service.d.ts +9 -9
  175. package/lib/rest/verify/v2/template.d.ts +3 -3
  176. package/lib/rest/verify/v2/verificationAttempt.d.ts +6 -6
  177. package/lib/rest/video/v1/composition.d.ts +4 -4
  178. package/lib/rest/video/v1/compositionHook.d.ts +5 -5
  179. package/lib/rest/video/v1/recording.d.ts +3 -3
  180. package/lib/rest/video/v1/room/participant/subscribeRules.d.ts +1 -1
  181. package/lib/rest/video/v1/room/recordingRules.d.ts +1 -1
  182. package/lib/rest/video/v1/room/roomRecording.d.ts +3 -3
  183. package/lib/rest/video/v1/room.d.ts +1 -1
  184. package/lib/rest/wireless/v1/sim/dataSession.d.ts +3 -3
  185. package/lib/rest/wireless/v1/sim/usageRecord.d.ts +9 -9
  186. package/lib/rest/wireless/v1/usageRecord.d.ts +9 -9
  187. package/lib/twiml/VoiceResponse.d.ts +1 -2
  188. package/package.json +3 -3
@@ -13,7 +13,7 @@ export interface CompositionHookContextUpdateOptions {
13
13
  /** Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook never triggers. */
14
14
  enabled?: boolean;
15
15
  /** A JSON object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. */
16
- videoLayout?: any;
16
+ videoLayout?: object;
17
17
  /** An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. */
18
18
  audioSources?: Array<string>;
19
19
  /** An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. */
@@ -38,7 +38,7 @@ export interface CompositionHookListInstanceCreateOptions {
38
38
  /** Whether the composition hook is active. When `true`, the composition hook will be triggered for every completed Group Room in the account. When `false`, the composition hook will never be triggered. */
39
39
  enabled?: boolean;
40
40
  /** An object that describes the video layout of the composition hook in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. */
41
- videoLayout?: any;
41
+ videoLayout?: object;
42
42
  /** An array of track names from the same group room to merge into the compositions created by the composition hook. Can include zero or more track names. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` includes tracks named `student` as well as `studentTeam`. */
43
43
  audioSources?: Array<string>;
44
44
  /** An array of track names to exclude. A composition triggered by the composition hook includes all audio sources specified in `audio_sources` except for those specified in `audio_sources_excluded`. The track names in this parameter can include an asterisk as a wild card character, which matches zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. */
@@ -174,7 +174,7 @@ interface CompositionHookResource {
174
174
  sid: string;
175
175
  audio_sources: Array<string>;
176
176
  audio_sources_excluded: Array<string>;
177
- video_layout: any;
177
+ video_layout: Record<string, object>;
178
178
  resolution: string;
179
179
  trim: boolean;
180
180
  format: CompositionHookFormat;
@@ -222,7 +222,7 @@ export declare class CompositionHookInstance {
222
222
  /**
223
223
  * A JSON object that describes the video layout of the composition in terms of regions as specified in the HTTP POST request that created the CompositionHook resource. See [POST Parameters](https://www.twilio.com/docs/video/api/compositions-resource#http-post-parameters) for more information. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request
224
224
  */
225
- videoLayout: any;
225
+ videoLayout: Record<string, object>;
226
226
  /**
227
227
  * The dimensions of the video image in pixels expressed as columns (width) and rows (height). The string\'s format is `{width}x{height}`, such as `640x480`.
228
228
  */
@@ -284,7 +284,7 @@ export declare class CompositionHookInstance {
284
284
  sid: string;
285
285
  audioSources: string[];
286
286
  audioSourcesExcluded: string[];
287
- videoLayout: any;
287
+ videoLayout: Record<string, object>;
288
288
  resolution: string;
289
289
  trim: boolean;
290
290
  format: CompositionHookFormat;
@@ -132,7 +132,7 @@ interface RecordingResource {
132
132
  duration: number;
133
133
  container_format: RecordingFormat;
134
134
  codec: RecordingCodec;
135
- grouping_sids: any;
135
+ grouping_sids: Record<string, object>;
136
136
  track_name: string;
137
137
  offset: number;
138
138
  media_external_location: string;
@@ -180,7 +180,7 @@ export declare class RecordingInstance {
180
180
  /**
181
181
  * A list of SIDs related to the recording. Includes the `room_sid` and `participant_sid`.
182
182
  */
183
- groupingSids: any;
183
+ groupingSids: Record<string, object>;
184
184
  /**
185
185
  * The name that was given to the source track of the recording. If no name is given, the `source_sid` is used.
186
186
  */
@@ -239,7 +239,7 @@ export declare class RecordingInstance {
239
239
  duration: number;
240
240
  containerFormat: RecordingFormat;
241
241
  codec: RecordingCodec;
242
- groupingSids: any;
242
+ groupingSids: Record<string, object>;
243
243
  trackName: string;
244
244
  offset: number;
245
245
  mediaExternalLocation: string;
@@ -14,7 +14,7 @@ export declare class VideoV1RoomRoomParticipantRoomParticipantSubscribeRuleRules
14
14
  */
15
15
  export interface SubscribeRulesListInstanceUpdateOptions {
16
16
  /** A JSON-encoded array of subscribe rules. See the [Specifying Subscribe Rules](https://www.twilio.com/docs/video/api/track-subscriptions#specifying-sr) section for further information. */
17
- rules?: any;
17
+ rules?: object;
18
18
  }
19
19
  export interface SubscribeRulesSolution {
20
20
  roomSid: string;
@@ -13,7 +13,7 @@ export declare class VideoV1RoomRoomRecordingRuleRules {
13
13
  */
14
14
  export interface RecordingRulesListInstanceUpdateOptions {
15
15
  /** A JSON-encoded array of recording rules. */
16
- rules?: any;
16
+ rules?: object;
17
17
  }
18
18
  export interface RecordingRulesSolution {
19
19
  roomSid: string;
@@ -121,7 +121,7 @@ interface RoomRecordingResource {
121
121
  duration: number;
122
122
  container_format: RoomRecordingFormat;
123
123
  codec: RoomRecordingCodec;
124
- grouping_sids: any;
124
+ grouping_sids: Record<string, object>;
125
125
  track_name: string;
126
126
  offset: number;
127
127
  media_external_location: string;
@@ -168,7 +168,7 @@ export declare class RoomRecordingInstance {
168
168
  /**
169
169
  * A list of SIDs related to the Recording. Includes the `room_sid` and `participant_sid`.
170
170
  */
171
- groupingSids: any;
171
+ groupingSids: Record<string, object>;
172
172
  /**
173
173
  * The name that was given to the source track of the recording. If no name is given, the `source_sid` is used.
174
174
  */
@@ -223,7 +223,7 @@ export declare class RoomRecordingInstance {
223
223
  duration: number;
224
224
  containerFormat: RoomRecordingFormat;
225
225
  codec: RoomRecordingCodec;
226
- groupingSids: any;
226
+ groupingSids: Record<string, object>;
227
227
  trackName: string;
228
228
  offset: number;
229
229
  mediaExternalLocation: string;
@@ -39,7 +39,7 @@ export interface RoomListInstanceCreateOptions {
39
39
  /** The region for the Room\\\'s media server. Can be one of the [available Media Regions](https://www.twilio.com/docs/video/ip-addresses#group-rooms-media-servers). */
40
40
  mediaRegion?: string;
41
41
  /** A collection of Recording Rules that describe how to include or exclude matching tracks for recording */
42
- recordingRules?: any;
42
+ recordingRules?: object;
43
43
  /** When set to true, indicates that the participants in the room will only publish audio. No video tracks will be allowed. */
44
44
  audioOnly?: boolean;
45
45
  /** The maximum number of seconds a Participant can be connected to the room. The maximum possible value is 86400 seconds (24 hours). The default is 14400 seconds (4 hours). */
@@ -113,7 +113,7 @@ interface DataSessionResource {
113
113
  operator_country: string;
114
114
  operator_name: string;
115
115
  cell_id: string;
116
- cell_location_estimate: any;
116
+ cell_location_estimate: Record<string, object>;
117
117
  packets_uploaded: number;
118
118
  packets_downloaded: number;
119
119
  last_updated: Date;
@@ -163,7 +163,7 @@ export declare class DataSessionInstance {
163
163
  /**
164
164
  * An object that describes the estimated location in latitude and longitude where the device\'s Data Session took place. The location is derived from the `cell_id` when the Data Session was last updated. See [Cell Location Estimate Object](https://www.twilio.com/docs/iot/wireless/api/datasession-resource#cell-location-estimate-object).
165
165
  */
166
- cellLocationEstimate: any;
166
+ cellLocationEstimate: Record<string, object>;
167
167
  /**
168
168
  * The number of packets uploaded by the device between the `start` time and when the Data Session was last updated.
169
169
  */
@@ -203,7 +203,7 @@ export declare class DataSessionInstance {
203
203
  operatorCountry: string;
204
204
  operatorName: string;
205
205
  cellId: string;
206
- cellLocationEstimate: any;
206
+ cellLocationEstimate: Record<string, object>;
207
207
  packetsUploaded: number;
208
208
  packetsDownloaded: number;
209
209
  lastUpdated: Date;
@@ -125,9 +125,9 @@ interface UsageRecordPayload extends TwilioResponsePayload {
125
125
  interface UsageRecordResource {
126
126
  sim_sid: string;
127
127
  account_sid: string;
128
- period: any;
129
- commands: any;
130
- data: any;
128
+ period: Record<string, object>;
129
+ commands: Record<string, object>;
130
+ data: Record<string, object>;
131
131
  }
132
132
  export declare class UsageRecordInstance {
133
133
  protected _version: V1;
@@ -143,15 +143,15 @@ export declare class UsageRecordInstance {
143
143
  /**
144
144
  * The time period for which the usage is reported. Contains `start` and `end` datetime values given as GMT in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
145
145
  */
146
- period: any;
146
+ period: Record<string, object>;
147
147
  /**
148
148
  * An object that describes the SIM\'s usage of Commands during the specified period. See [Commands Usage Object](https://www.twilio.com/docs/iot/wireless/api/sim-usagerecord-resource#commands-usage-object).
149
149
  */
150
- commands: any;
150
+ commands: Record<string, object>;
151
151
  /**
152
152
  * An object that describes the SIM\'s data usage during the specified period. See [Data Usage Object](https://www.twilio.com/docs/iot/wireless/api/sim-usagerecord-resource#data-usage-object).
153
153
  */
154
- data: any;
154
+ data: Record<string, object>;
155
155
  /**
156
156
  * Provide a user-friendly representation
157
157
  *
@@ -160,9 +160,9 @@ export declare class UsageRecordInstance {
160
160
  toJSON(): {
161
161
  simSid: string;
162
162
  accountSid: string;
163
- period: any;
164
- commands: any;
165
- data: any;
163
+ period: Record<string, object>;
164
+ commands: Record<string, object>;
165
+ data: Record<string, object>;
166
166
  };
167
167
  [inspect.custom](_depth: any, options: InspectOptions): string;
168
168
  }
@@ -123,9 +123,9 @@ interface UsageRecordPayload extends TwilioResponsePayload {
123
123
  }
124
124
  interface UsageRecordResource {
125
125
  account_sid: string;
126
- period: any;
127
- commands: any;
128
- data: any;
126
+ period: Record<string, object>;
127
+ commands: Record<string, object>;
128
+ data: Record<string, object>;
129
129
  }
130
130
  export declare class UsageRecordInstance {
131
131
  protected _version: V1;
@@ -137,15 +137,15 @@ export declare class UsageRecordInstance {
137
137
  /**
138
138
  * The time period for which usage is reported. Contains `start` and `end` properties that describe the period using GMT date-time values specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
139
139
  */
140
- period: any;
140
+ period: Record<string, object>;
141
141
  /**
142
142
  * An object that describes the aggregated Commands usage for all SIMs during the specified period. See [Commands Usage Object](https://www.twilio.com/docs/iot/wireless/api/account-usagerecord-resource#commands-usage-object).
143
143
  */
144
- commands: any;
144
+ commands: Record<string, object>;
145
145
  /**
146
146
  * An object that describes the aggregated Data usage for all SIMs over the period. See [Data Usage Object](https://www.twilio.com/docs/iot/wireless/api/account-usagerecord-resource#data-usage-object).
147
147
  */
148
- data: any;
148
+ data: Record<string, object>;
149
149
  /**
150
150
  * Provide a user-friendly representation
151
151
  *
@@ -153,9 +153,9 @@ export declare class UsageRecordInstance {
153
153
  */
154
154
  toJSON(): {
155
155
  accountSid: string;
156
- period: any;
157
- commands: any;
158
- data: any;
156
+ period: Record<string, object>;
157
+ commands: Record<string, object>;
158
+ data: Record<string, object>;
159
159
  };
160
160
  [inspect.custom](_depth: any, options: InspectOptions): string;
161
161
  }
@@ -186,7 +186,6 @@ declare namespace VoiceResponse {
186
186
  type DialTrim = "trim-silence" | "do-not-trim";
187
187
  type GatherInput = "dtmf" | "speech";
188
188
  type GatherLanguage = "af-ZA" | "am-ET" | "ar-AE" | "ar-BH" | "ar-DZ" | "ar-EG" | "ar-IL" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-MA" | "ar-OM" | "ar-PS" | "ar-QA" | "ar-SA" | "ar-TN" | "az-AZ" | "bg-BG" | "bn-BD" | "bn-IN" | "ca-ES" | "cs-CZ" | "da-DK" | "de-DE" | "el-GR" | "en-AU" | "en-CA" | "en-GB" | "en-GH" | "en-IE" | "en-IN" | "en-KE" | "en-NG" | "en-NZ" | "en-PH" | "en-SG" | "en-TZ" | "en-US" | "en-ZA" | "es-AR" | "es-BO" | "es-CL" | "es-CO" | "es-CR" | "es-DO" | "es-EC" | "es-ES" | "es-GT" | "es-HN" | "es-MX" | "es-NI" | "es-PA" | "es-PE" | "es-PR" | "es-PY" | "es-SV" | "es-US" | "es-UY" | "es-VE" | "et-EE" | "eu-ES" | "fa-IR" | "fi-FI" | "fil-PH" | "fr-CA" | "fr-FR" | "gl-ES" | "gu-IN" | "he-IL" | "hi-IN" | "hr-HR" | "hu-HU" | "hy-AM" | "id-ID" | "is-IS" | "it-IT" | "ja-JP" | "jv-ID" | "ka-GE" | "km-KH" | "kn-IN" | "ko-KR" | "lo-LA" | "lt-LT" | "lv-LV" | "mk-MK" | "ml-IN" | "mn-MN" | "mr-IN" | "ms-MY" | "my-MM" | "nar-IQ" | "nb-NO" | "ne-NP" | "nl-BE" | "nl-NL" | "pa-guru-IN" | "pl-PL" | "pt-BR" | "pt-PT" | "ro-RO" | "ru-RU" | "si-LK" | "sk-SK" | "sl-SI" | "sq-AL" | "sr-RS" | "su-ID" | "sv-SE" | "sw-KE" | "sw-TZ" | "ta-IN" | "ta-LK" | "ta-MY" | "ta-SG" | "te-IN" | "th-TH" | "tr-TR" | "uk-UA" | "ur-IN" | "ur-PK" | "uz-UZ" | "vi-VN" | "yue-Hant-HK" | "zh" | "cmn-Hans-CN" | "zh-TW" | "cmn-Hant-TW" | "zu-ZA";
189
- type GatherSpeechModel = "default" | "numbers_and_commands" | "phone_call" | "experimental_conversations" | "experimental_utterances";
190
189
  type NumberEvent = "initiated" | "ringing" | "answered" | "completed";
191
190
  type PayBankAccountType = "consumer-checking" | "consumer-savings" | "commercial-checking" | "commercial-savings";
192
191
  type PayInput = "dtmf";
@@ -318,7 +317,7 @@ declare namespace VoiceResponse {
318
317
  /** profanityFilter - Profanity Filter on speech */
319
318
  profanityFilter?: boolean;
320
319
  /** speechModel - Specify the model that is best suited for your use case */
321
- speechModel?: GatherSpeechModel;
320
+ speechModel?: string;
322
321
  /** speechTimeout - Time to wait to gather speech input and it should be either auto or a positive integer. */
323
322
  speechTimeout?: string;
324
323
  /** timeout - Time to wait to gather input */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "twilio",
3
3
  "description": "A Twilio helper library",
4
- "version": "5.4.4",
4
+ "version": "5.5.0",
5
5
  "author": "API Team <api@twilio.com>",
6
6
  "contributors": [
7
7
  {
@@ -33,7 +33,7 @@
33
33
  "@babel/preset-typescript": "^7.18.6",
34
34
  "@types/jest": "^29.5.5",
35
35
  "@types/jsonwebtoken": "^9.0.2",
36
- "@types/node": "^18.11.18",
36
+ "@types/node": "22.9.0",
37
37
  "@types/qs": "^6.9.7",
38
38
  "babel-plugin-replace-ts-export-assignment": "^0.0.2",
39
39
  "eslint": "^8.31.0",
@@ -45,7 +45,7 @@
45
45
  "node-mocks-http": "^1.8.1",
46
46
  "prettier": "^2.7.1",
47
47
  "ts-jest": "^29.1.1",
48
- "typescript": "^4.7.2",
48
+ "typescript": "5.0.4",
49
49
  "typedoc": "^0.23.21"
50
50
  },
51
51
  "scripts": {