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
package/lib/base/Page.js CHANGED
@@ -174,7 +174,6 @@ class Page {
174
174
  return clone;
175
175
  }
176
176
  }
177
- exports.default = Page;
178
177
  /**
179
178
  * Meta keys returned in a list request
180
179
  *
@@ -193,3 +192,4 @@ Page.META_KEYS = [
193
192
  "total",
194
193
  "uri",
195
194
  ];
195
+ exports.default = Page;
@@ -116,7 +116,7 @@ class ClientCapability {
116
116
  return jsonwebtoken_1.default.sign(payload, this.authToken);
117
117
  }
118
118
  }
119
- exports.default = ClientCapability;
120
119
  ClientCapability.EventStreamScope = EventStreamScope;
121
120
  ClientCapability.IncomingClientScope = IncomingClientScope;
122
121
  ClientCapability.OutgoingClientScope = OutgoingClientScope;
122
+ exports.default = ClientCapability;
@@ -97,5 +97,5 @@ class TaskRouterCapability {
97
97
  return jsonwebtoken_1.default.sign(payload, this.authToken);
98
98
  }
99
99
  }
100
- exports.default = TaskRouterCapability;
101
100
  TaskRouterCapability.Policy = Policy;
101
+ exports.default = TaskRouterCapability;
@@ -6,7 +6,7 @@ import V1 from "../V1";
6
6
  */
7
7
  export interface BulkConsentsListInstanceCreateOptions {
8
8
  /** This is a list of objects that describes a contact\\\'s opt-in status. Each object contains the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID used to uniquely map the request item with the response item; `sender_id`, which can be either a valid messaging service SID or a from phone number; `status`, a string representing the consent status. Can be one of [`opt-in`, `opt-out`]; and `source`, a string indicating the medium through which the consent was collected. Can be one of [`website`, `offline`, `opt-in-message`, `opt-out-message`, `others`]. */
9
- items: Array<any>;
9
+ items: Array<object>;
10
10
  }
11
11
  export interface BulkConsentsSolution {
12
12
  }
@@ -31,7 +31,7 @@ export interface BulkConsentsListInstance {
31
31
  }
32
32
  export declare function BulkConsentsListInstance(version: V1): BulkConsentsListInstance;
33
33
  interface BulkConsentsResource {
34
- items: any;
34
+ items: Record<string, object>;
35
35
  }
36
36
  export declare class BulkConsentsInstance {
37
37
  protected _version: V1;
@@ -39,14 +39,14 @@ export declare class BulkConsentsInstance {
39
39
  /**
40
40
  * A list of objects where each object represents the result of processing a `correlation_id`. Each object contains the following fields: `correlation_id`, a unique 32-character UUID that maps the response to the original request; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty.
41
41
  */
42
- items: any;
42
+ items: Record<string, object>;
43
43
  /**
44
44
  * Provide a user-friendly representation
45
45
  *
46
46
  * @returns Object
47
47
  */
48
48
  toJSON(): {
49
- items: any;
49
+ items: Record<string, object>;
50
50
  };
51
51
  [inspect.custom](_depth: any, options: InspectOptions): string;
52
52
  }
@@ -30,7 +30,7 @@ function BulkConsentsListInstance(version) {
30
30
  throw new Error("Required parameter \"params['items']\" missing.");
31
31
  }
32
32
  let data = {};
33
- data["Items"] = serialize.map(params["items"], (e) => serialize.object(e));
33
+ data["Items"] = serialize.map(params["items"], (e) => e);
34
34
  const headers = {};
35
35
  headers["Content-Type"] = "application/x-www-form-urlencoded";
36
36
  headers["Accept"] = "application/json";
@@ -6,7 +6,7 @@ import V1 from "../V1";
6
6
  */
7
7
  export interface BulkContactsListInstanceCreateOptions {
8
8
  /** A list of objects where each object represents a contact\\\'s details. Each object includes the following fields: `contact_id`, which must be a string representing phone number in [E.164 format](https://www.twilio.com/docs/glossary/what-e164); `correlation_id`, a unique 32-character UUID that maps the response to the original request; `country_iso_code`, a string representing the country using the ISO format (e.g., US for the United States); and `zip_code`, a string representing the postal code. */
9
- items: Array<any>;
9
+ items: Array<object>;
10
10
  }
11
11
  export interface BulkContactsSolution {
12
12
  }
@@ -31,7 +31,7 @@ export interface BulkContactsListInstance {
31
31
  }
32
32
  export declare function BulkContactsListInstance(version: V1): BulkContactsListInstance;
33
33
  interface BulkContactsResource {
34
- items: any;
34
+ items: Record<string, object>;
35
35
  }
36
36
  export declare class BulkContactsInstance {
37
37
  protected _version: V1;
@@ -39,14 +39,14 @@ export declare class BulkContactsInstance {
39
39
  /**
40
40
  * A list of objects where each object represents the result of processing a `correlation_id`. Each object contains the following fields: `correlation_id`, a unique 32-character UUID that maps the response to the original request; `error_code`, an integer where 0 indicates success and any non-zero value represents an error; and `error_messages`, an array of strings describing specific validation errors encountered. If the request is successful, the error_messages array will be empty.
41
41
  */
42
- items: any;
42
+ items: Record<string, object>;
43
43
  /**
44
44
  * Provide a user-friendly representation
45
45
  *
46
46
  * @returns Object
47
47
  */
48
48
  toJSON(): {
49
- items: any;
49
+ items: Record<string, object>;
50
50
  };
51
51
  [inspect.custom](_depth: any, options: InspectOptions): string;
52
52
  }
@@ -30,7 +30,7 @@ function BulkContactsListInstance(version) {
30
30
  throw new Error("Required parameter \"params['items']\" missing.");
31
31
  }
32
32
  let data = {};
33
- data["Items"] = serialize.map(params["items"], (e) => serialize.object(e));
33
+ data["Items"] = serialize.map(params["items"], (e) => e);
34
34
  const headers = {};
35
35
  headers["Content-Type"] = "application/x-www-form-urlencoded";
36
36
  headers["Accept"] = "application/json";
@@ -123,7 +123,7 @@ interface DependentPhoneNumberResource {
123
123
  sms_method: string;
124
124
  sms_url: string;
125
125
  address_requirements: DependentPhoneNumberAddressRequirement;
126
- capabilities: any;
126
+ capabilities: Record<string, object>;
127
127
  status_callback: string;
128
128
  status_callback_method: string;
129
129
  api_version: string;
@@ -201,7 +201,7 @@ export declare class DependentPhoneNumberInstance {
201
201
  /**
202
202
  * The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`.
203
203
  */
204
- capabilities: any;
204
+ capabilities: Record<string, object>;
205
205
  /**
206
206
  * The URL we call using the `status_callback_method` to send status information to your application.
207
207
  */
@@ -257,7 +257,7 @@ export declare class DependentPhoneNumberInstance {
257
257
  smsMethod: string;
258
258
  smsUrl: string;
259
259
  addressRequirements: DependentPhoneNumberAddressRequirement;
260
- capabilities: any;
260
+ capabilities: Record<string, object>;
261
261
  statusCallback: string;
262
262
  statusCallbackMethod: string;
263
263
  apiVersion: string;
@@ -60,6 +60,8 @@ export interface AddressListInstanceEachOptions {
60
60
  customerName?: string;
61
61
  /** The string that identifies the Address resources to read. */
62
62
  friendlyName?: string;
63
+ /** Whether the address can be associated to a number for emergency calling. */
64
+ emergencyEnabled?: boolean;
63
65
  /** The ISO country code of the Address resources to read. */
64
66
  isoCountry?: string;
65
67
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
@@ -79,6 +81,8 @@ export interface AddressListInstanceOptions {
79
81
  customerName?: string;
80
82
  /** The string that identifies the Address resources to read. */
81
83
  friendlyName?: string;
84
+ /** Whether the address can be associated to a number for emergency calling. */
85
+ emergencyEnabled?: boolean;
82
86
  /** The ISO country code of the Address resources to read. */
83
87
  isoCountry?: string;
84
88
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
@@ -94,6 +98,8 @@ export interface AddressListInstancePageOptions {
94
98
  customerName?: string;
95
99
  /** The string that identifies the Address resources to read. */
96
100
  friendlyName?: string;
101
+ /** Whether the address can be associated to a number for emergency calling. */
102
+ emergencyEnabled?: boolean;
97
103
  /** The ISO country code of the Address resources to read. */
98
104
  isoCountry?: string;
99
105
  /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
@@ -280,6 +280,8 @@ function AddressListInstance(version, accountSid) {
280
280
  data["CustomerName"] = params["customerName"];
281
281
  if (params["friendlyName"] !== undefined)
282
282
  data["FriendlyName"] = params["friendlyName"];
283
+ if (params["emergencyEnabled"] !== undefined)
284
+ data["EmergencyEnabled"] = serialize.bool(params["emergencyEnabled"]);
283
285
  if (params["isoCountry"] !== undefined)
284
286
  data["IsoCountry"] = params["isoCountry"];
285
287
  if (params["pageSize"] !== undefined)
@@ -105,8 +105,8 @@ interface EventPayload extends TwilioResponsePayload {
105
105
  events: EventResource[];
106
106
  }
107
107
  interface EventResource {
108
- request: any;
109
- response: any;
108
+ request: Record<string, object>;
109
+ response: Record<string, object>;
110
110
  }
111
111
  export declare class EventInstance {
112
112
  protected _version: V2010;
@@ -114,19 +114,19 @@ export declare class EventInstance {
114
114
  /**
115
115
  * Contains a dictionary representing the request of the call.
116
116
  */
117
- request: any;
117
+ request: Record<string, object>;
118
118
  /**
119
119
  * Contains a dictionary representing the call response, including a list of the call events.
120
120
  */
121
- response: any;
121
+ response: Record<string, object>;
122
122
  /**
123
123
  * Provide a user-friendly representation
124
124
  *
125
125
  * @returns Object
126
126
  */
127
127
  toJSON(): {
128
- request: any;
129
- response: any;
128
+ request: Record<string, object>;
129
+ response: Record<string, object>;
130
130
  };
131
131
  [inspect.custom](_depth: any, options: InspectOptions): string;
132
132
  }
@@ -40,7 +40,7 @@ export interface PaymentListInstanceCreateOptions {
40
40
  /** A positive integer that is used to validate the length of the `PostalCode` inputted by the user. User must enter this many digits. */
41
41
  minPostalCodeLength?: number;
42
42
  /** A single-level JSON object used to pass custom parameters to payment processors. (Required for ACH payments). The information that has to be included here depends on the <Pay> Connector. [Read more](https://www.twilio.com/console/voice/pay-connectors). */
43
- parameter?: any;
43
+ parameter?: object;
44
44
  /** This is the unique name corresponding to the Pay Connector installed in the Twilio Add-ons. Learn more about [<Pay> Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`. */
45
45
  paymentConnector?: string;
46
46
  /** */
@@ -150,7 +150,7 @@ interface RecordingResource {
150
150
  sid: string;
151
151
  price: number;
152
152
  uri: string;
153
- encryption_details: any;
153
+ encryption_details: Record<string, object>;
154
154
  price_unit: string;
155
155
  status: RecordingStatus;
156
156
  channels: number;
@@ -210,7 +210,7 @@ export declare class RecordingInstance {
210
210
  /**
211
211
  * How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature.
212
212
  */
213
- encryptionDetails: any;
213
+ encryptionDetails: Record<string, object>;
214
214
  /**
215
215
  * The currency used in the `price` property. Example: `USD`.
216
216
  */
@@ -272,7 +272,7 @@ export declare class RecordingInstance {
272
272
  sid: string;
273
273
  price: number;
274
274
  uri: string;
275
- encryptionDetails: any;
275
+ encryptionDetails: Record<string, object>;
276
276
  priceUnit: string;
277
277
  status: RecordingStatus;
278
278
  channels: number;
@@ -41,7 +41,7 @@ export interface TranscriptionListInstanceCreateOptions {
41
41
  hints?: string;
42
42
  /** The provider will add punctuation to recognition result */
43
43
  enableAutomaticPunctuation?: boolean;
44
- /** The SID of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . */
44
+ /** The SID or unique name of the [Voice Intelligence Service](https://www.twilio.com/docs/voice/intelligence/api/service-resource) for persisting transcripts and running post-call Language Operators . */
45
45
  intelligenceService?: string;
46
46
  }
47
47
  export interface TranscriptionContext {
@@ -137,7 +137,7 @@ interface RecordingResource {
137
137
  channels: number;
138
138
  source: RecordingSource;
139
139
  error_code: number;
140
- encryption_details: any;
140
+ encryption_details: Record<string, object>;
141
141
  uri: string;
142
142
  }
143
143
  export declare class RecordingInstance {
@@ -202,7 +202,7 @@ export declare class RecordingInstance {
202
202
  /**
203
203
  * How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature.
204
204
  */
205
- encryptionDetails: any;
205
+ encryptionDetails: Record<string, object>;
206
206
  /**
207
207
  * The URI of the resource, relative to `https://api.twilio.com`.
208
208
  */
@@ -254,7 +254,7 @@ export declare class RecordingInstance {
254
254
  channels: number;
255
255
  source: RecordingSource;
256
256
  errorCode: number;
257
- encryptionDetails: any;
257
+ encryptionDetails: Record<string, object>;
258
258
  uri: string;
259
259
  };
260
260
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -99,7 +99,7 @@ interface AssignedAddOnResource {
99
99
  resource_sid: string;
100
100
  friendly_name: string;
101
101
  description: string;
102
- configuration: any;
102
+ configuration: Record<string, object>;
103
103
  unique_name: string;
104
104
  date_created: Date;
105
105
  date_updated: Date;
@@ -134,7 +134,7 @@ export declare class AssignedAddOnInstance {
134
134
  /**
135
135
  * A JSON string that represents the current configuration of this Add-on installation.
136
136
  */
137
- configuration: any;
137
+ configuration: Record<string, object>;
138
138
  /**
139
139
  * An application-defined string that uniquely identifies the resource. It can be used in place of the resource\'s `sid` in the URL to address the resource.
140
140
  */
@@ -187,7 +187,7 @@ export declare class AssignedAddOnInstance {
187
187
  resourceSid: string;
188
188
  friendlyName: string;
189
189
  description: string;
190
- configuration: any;
190
+ configuration: Record<string, object>;
191
191
  uniqueName: string;
192
192
  dateCreated: Date;
193
193
  dateUpdated: Date;
@@ -160,7 +160,7 @@ interface RecordingResource {
160
160
  source: RecordingSource;
161
161
  error_code: number;
162
162
  uri: string;
163
- encryption_details: any;
163
+ encryption_details: Record<string, object>;
164
164
  subresource_uris: Record<string, string>;
165
165
  media_url: string;
166
166
  }
@@ -230,7 +230,7 @@ export declare class RecordingInstance {
230
230
  /**
231
231
  * How to decrypt the recording if it was encrypted using [Call Recording Encryption](https://www.twilio.com/docs/voice/tutorials/voice-recording-encryption) feature.
232
232
  */
233
- encryptionDetails: any;
233
+ encryptionDetails: Record<string, object>;
234
234
  /**
235
235
  * A list of related resources identified by their relative URIs.
236
236
  */
@@ -295,7 +295,7 @@ export declare class RecordingInstance {
295
295
  source: RecordingSource;
296
296
  errorCode: number;
297
297
  uri: string;
298
- encryptionDetails: any;
298
+ encryptionDetails: Record<string, object>;
299
299
  subresourceUris: Record<string, string>;
300
300
  mediaUrl: string;
301
301
  };
@@ -138,7 +138,7 @@ interface ExportCustomJobResource {
138
138
  webhook_method: string;
139
139
  email: string;
140
140
  job_sid: string;
141
- details: any;
141
+ details: Record<string, object>;
142
142
  job_queue_position: string;
143
143
  estimated_completion_time: string;
144
144
  }
@@ -180,7 +180,7 @@ export declare class ExportCustomJobInstance {
180
180
  /**
181
181
  * The details of a job which is an object that contains an array of status grouped by `status` state. Each `status` object has a `status` string, a count which is the number of days in that `status`, and list of days in that `status`. The day strings are in the format yyyy-MM-dd. As an example, a currently running job may have a status object for COMPLETED and a `status` object for SUBMITTED each with its own count and list of days.
182
182
  */
183
- details: any;
183
+ details: Record<string, object>;
184
184
  /**
185
185
  * This is the job position from the 1st in line. Your queue position will never increase. As jobs ahead of yours in the queue are processed, the queue position number will decrease
186
186
  */
@@ -203,7 +203,7 @@ export declare class ExportCustomJobInstance {
203
203
  webhookMethod: string;
204
204
  email: string;
205
205
  jobSid: string;
206
- details: any;
206
+ details: Record<string, object>;
207
207
  jobQueuePosition: string;
208
208
  estimatedCompletionTime: string;
209
209
  };
@@ -45,7 +45,7 @@ export declare class JobContextImpl implements JobContext {
45
45
  interface JobResource {
46
46
  resource_type: string;
47
47
  friendly_name: string;
48
- details: any;
48
+ details: Record<string, object>;
49
49
  start_day: string;
50
50
  end_day: string;
51
51
  job_sid: string;
@@ -72,7 +72,7 @@ export declare class JobInstance {
72
72
  /**
73
73
  * The details of a job which is an object that contains an array of status grouped by `status` state. Each `status` object has a `status` string, a count which is the number of days in that `status`, and list of days in that `status`. The day strings are in the format yyyy-MM-dd. As an example, a currently running job may have a status object for COMPLETED and a `status` object for SUBMITTED each with its own count and list of days.
74
74
  */
75
- details: any;
75
+ details: Record<string, object>;
76
76
  /**
77
77
  * The start time for the export specified when creating the job
78
78
  */
@@ -131,7 +131,7 @@ export declare class JobInstance {
131
131
  toJSON(): {
132
132
  resourceType: string;
133
133
  friendlyName: string;
134
- details: any;
134
+ details: Record<string, object>;
135
135
  startDay: string;
136
136
  endDay: string;
137
137
  jobSid: string;
@@ -243,13 +243,13 @@ interface ServiceResource {
243
243
  reachability_enabled: boolean;
244
244
  typing_indicator_timeout: number;
245
245
  consumption_report_interval: number;
246
- limits: any;
247
- webhooks: any;
246
+ limits: Record<string, object>;
247
+ webhooks: Record<string, object>;
248
248
  pre_webhook_url: string;
249
249
  post_webhook_url: string;
250
250
  webhook_method: string;
251
251
  webhook_filters: Array<string>;
252
- notifications: any;
252
+ notifications: Record<string, object>;
253
253
  url: string;
254
254
  links: Record<string, string>;
255
255
  }
@@ -309,11 +309,11 @@ export declare class ServiceInstance {
309
309
  /**
310
310
  * An object that describes the limits of the service instance. The `limits` object contains `channel_members` to describe the members/channel limit and `user_channels` to describe the channels/user limit. `channel_members` can be 1,000 or less, with a default of 250. `user_channels` can be 1,000 or less, with a default value of 100.
311
311
  */
312
- limits: any;
312
+ limits: Record<string, object>;
313
313
  /**
314
314
  * An object that contains information about the webhooks configured for this service.
315
315
  */
316
- webhooks: any;
316
+ webhooks: Record<string, object>;
317
317
  /**
318
318
  * The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/api/chat/webhooks) for more details.
319
319
  */
@@ -333,7 +333,7 @@ export declare class ServiceInstance {
333
333
  /**
334
334
  * The notification configuration for the Service instance. See [Push Notification Configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more information.
335
335
  */
336
- notifications: any;
336
+ notifications: Record<string, object>;
337
337
  /**
338
338
  * The absolute URL of the Service resource.
339
339
  */
@@ -406,13 +406,13 @@ export declare class ServiceInstance {
406
406
  reachabilityEnabled: boolean;
407
407
  typingIndicatorTimeout: number;
408
408
  consumptionReportInterval: number;
409
- limits: any;
410
- webhooks: any;
409
+ limits: Record<string, object>;
410
+ webhooks: Record<string, object>;
411
411
  preWebhookUrl: string;
412
412
  postWebhookUrl: string;
413
413
  webhookMethod: string;
414
414
  webhookFilters: string[];
415
- notifications: any;
415
+ notifications: Record<string, object>;
416
416
  url: string;
417
417
  links: Record<string, string>;
418
418
  };
@@ -179,7 +179,7 @@ interface MessageResource {
179
179
  body: string;
180
180
  index: number;
181
181
  type: string;
182
- media: any;
182
+ media: Record<string, object>;
183
183
  url: string;
184
184
  }
185
185
  export declare class MessageInstance {
@@ -246,7 +246,7 @@ export declare class MessageInstance {
246
246
  /**
247
247
  * An object that describes the Message\'s media, if the message contains media. The object contains these fields: `content_type` with the MIME type of the media, `filename` with the name of the media, `sid` with the SID of the Media resource, and `size` with the media object\'s file size in bytes. If the Message has no media, this value is `null`.
248
248
  */
249
- media: any;
249
+ media: Record<string, object>;
250
250
  /**
251
251
  * The absolute URL of the Message resource.
252
252
  */
@@ -314,7 +314,7 @@ export declare class MessageInstance {
314
314
  body: string;
315
315
  index: number;
316
316
  type: string;
317
- media: any;
317
+ media: Record<string, object>;
318
318
  url: string;
319
319
  };
320
320
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -145,7 +145,7 @@ interface WebhookResource {
145
145
  channel_sid: string;
146
146
  type: string;
147
147
  url: string;
148
- configuration: any;
148
+ configuration: Record<string, object>;
149
149
  date_created: Date;
150
150
  date_updated: Date;
151
151
  }
@@ -181,7 +181,7 @@ export declare class WebhookInstance {
181
181
  /**
182
182
  * The JSON string that describes how the channel webhook is configured. The configuration object contains the `url`, `method`, `filters`, and `retry_count` values that are configured by the create and update actions.
183
183
  */
184
- configuration: any;
184
+ configuration: Record<string, object>;
185
185
  /**
186
186
  * The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
187
187
  */
@@ -236,7 +236,7 @@ export declare class WebhookInstance {
236
236
  channelSid: string;
237
237
  type: string;
238
238
  url: string;
239
- configuration: any;
239
+ configuration: Record<string, object>;
240
240
  dateCreated: Date;
241
241
  dateUpdated: Date;
242
242
  };
@@ -201,15 +201,15 @@ interface ServiceResource {
201
201
  reachability_enabled: boolean;
202
202
  typing_indicator_timeout: number;
203
203
  consumption_report_interval: number;
204
- limits: any;
204
+ limits: Record<string, object>;
205
205
  pre_webhook_url: string;
206
206
  post_webhook_url: string;
207
207
  webhook_method: string;
208
208
  webhook_filters: Array<string>;
209
209
  pre_webhook_retry_count: number;
210
210
  post_webhook_retry_count: number;
211
- notifications: any;
212
- media: any;
211
+ notifications: Record<string, object>;
212
+ media: Record<string, object>;
213
213
  url: string;
214
214
  links: Record<string, string>;
215
215
  }
@@ -269,7 +269,7 @@ export declare class ServiceInstance {
269
269
  /**
270
270
  * An object that describes the limits of the service instance. The `limits` object contains `channel_members` to describe the members/channel limit and `user_channels` to describe the channels/user limit. `channel_members` can be 1,000 or less, with a default of 250. `user_channels` can be 1,000 or less, with a default value of 100.
271
271
  */
272
- limits: any;
272
+ limits: Record<string, object>;
273
273
  /**
274
274
  * The URL for pre-event webhooks, which are called by using the `webhook_method`. See [Webhook Events](https://www.twilio.com/docs/chat/webhook-events) for more details.
275
275
  */
@@ -297,11 +297,11 @@ export declare class ServiceInstance {
297
297
  /**
298
298
  * The notification configuration for the Service instance. See [Push Notification Configuration](https://www.twilio.com/docs/chat/push-notification-configuration) for more info.
299
299
  */
300
- notifications: any;
300
+ notifications: Record<string, object>;
301
301
  /**
302
302
  * An object that describes the properties of media that the service supports. The object contains the `size_limit_mb` property, which describes the size of the largest media file in MB; and the `compatibility_message` property, which contains the message text to send when a media message does not have any text.
303
303
  */
304
- media: any;
304
+ media: Record<string, object>;
305
305
  /**
306
306
  * The absolute URL of the Service resource.
307
307
  */
@@ -378,15 +378,15 @@ export declare class ServiceInstance {
378
378
  reachabilityEnabled: boolean;
379
379
  typingIndicatorTimeout: number;
380
380
  consumptionReportInterval: number;
381
- limits: any;
381
+ limits: Record<string, object>;
382
382
  preWebhookUrl: string;
383
383
  postWebhookUrl: string;
384
384
  webhookMethod: string;
385
385
  webhookFilters: string[];
386
386
  preWebhookRetryCount: number;
387
387
  postWebhookRetryCount: number;
388
- notifications: any;
389
- media: any;
388
+ notifications: Record<string, object>;
389
+ media: Record<string, object>;
390
390
  url: string;
391
391
  links: Record<string, string>;
392
392
  };
@@ -5,7 +5,7 @@ import Response from "../../../http/response";
5
5
  import V1 from "../V1";
6
6
  export type AddressConfigurationAutoCreationType = "webhook" | "studio" | "default";
7
7
  export type AddressConfigurationMethod = "GET" | "POST";
8
- export type AddressConfigurationType = "sms" | "whatsapp" | "messenger" | "gbm" | "email" | "rcs" | "apple";
8
+ export type AddressConfigurationType = "sms" | "whatsapp" | "messenger" | "gbm" | "email" | "rcs" | "apple" | "chat";
9
9
  /**
10
10
  * Options to pass to update a AddressConfigurationInstance
11
11
  */
@@ -165,7 +165,7 @@ interface AddressConfigurationResource {
165
165
  type: string;
166
166
  address: string;
167
167
  friendly_name: string;
168
- auto_creation: any;
168
+ auto_creation: Record<string, object>;
169
169
  date_created: Date;
170
170
  date_updated: Date;
171
171
  url: string;
@@ -199,7 +199,7 @@ export declare class AddressConfigurationInstance {
199
199
  /**
200
200
  * Auto Creation configuration for the address.
201
201
  */
202
- autoCreation: any;
202
+ autoCreation: Record<string, object>;
203
203
  /**
204
204
  * The date that this resource was created.
205
205
  */
@@ -261,7 +261,7 @@ export declare class AddressConfigurationInstance {
261
261
  type: string;
262
262
  address: string;
263
263
  friendlyName: string;
264
- autoCreation: any;
264
+ autoCreation: Record<string, object>;
265
265
  dateCreated: Date;
266
266
  dateUpdated: Date;
267
267
  url: string;