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
@@ -74,7 +74,7 @@ interface PoliciesPayload extends TwilioResponsePayload {
74
74
  interface PoliciesResource {
75
75
  sid: string;
76
76
  friendly_name: string;
77
- requirements: any;
77
+ requirements: Record<string, object>;
78
78
  url: string;
79
79
  }
80
80
  export declare class PoliciesInstance {
@@ -93,7 +93,7 @@ export declare class PoliciesInstance {
93
93
  /**
94
94
  * The SID of an object that holds the policy information
95
95
  */
96
- requirements: any;
96
+ requirements: Record<string, object>;
97
97
  /**
98
98
  * The absolute URL of the Policy resource.
99
99
  */
@@ -115,7 +115,7 @@ export declare class PoliciesInstance {
115
115
  toJSON(): {
116
116
  sid: string;
117
117
  friendlyName: string;
118
- requirements: any;
118
+ requirements: Record<string, object>;
119
119
  url: string;
120
120
  };
121
121
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
3
3
  import Page, { TwilioResponsePayload } from "../../../base/Page";
4
4
  import Response from "../../../http/response";
5
5
  import V1 from "../V1";
6
- export type SupportingDocumentStatus = "draft" | "pending-review" | "rejected" | "approved" | "expired" | "provisionally-approved";
6
+ export type SupportingDocumentStatus = "DRAFT" | "PENDING_REVIEW" | "REJECTED" | "APPROVED" | "EXPIRED" | "PROVISIONALLY_APPROVED";
7
7
  /**
8
8
  * Options to pass to update a SupportingDocumentInstance
9
9
  */
@@ -11,7 +11,7 @@ export interface SupportingDocumentContextUpdateOptions {
11
11
  /** The string that you assigned to describe the resource. */
12
12
  friendlyName?: string;
13
13
  /** The set of parameters that are the attributes of the Supporting Document resource which are derived Supporting Document Types. */
14
- attributes?: any;
14
+ attributes?: object;
15
15
  }
16
16
  /**
17
17
  * Options to pass to create a SupportingDocumentInstance
@@ -22,7 +22,7 @@ export interface SupportingDocumentListInstanceCreateOptions {
22
22
  /** The type of the Supporting Document. */
23
23
  type: string;
24
24
  /** The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types. */
25
- attributes?: any;
25
+ attributes?: object;
26
26
  }
27
27
  /**
28
28
  * Options to pass to each
@@ -126,7 +126,7 @@ interface SupportingDocumentResource {
126
126
  mime_type: string;
127
127
  status: SupportingDocumentStatus;
128
128
  type: string;
129
- attributes: any;
129
+ attributes: Record<string, object>;
130
130
  date_created: Date;
131
131
  date_updated: Date;
132
132
  url: string;
@@ -160,7 +160,7 @@ export declare class SupportingDocumentInstance {
160
160
  /**
161
161
  * The set of parameters that are the attributes of the Supporting Documents resource which are listed in the Supporting Document Types.
162
162
  */
163
- attributes: any;
163
+ attributes: Record<string, object>;
164
164
  /**
165
165
  * The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
166
166
  */
@@ -219,7 +219,7 @@ export declare class SupportingDocumentInstance {
219
219
  mimeType: string;
220
220
  status: SupportingDocumentStatus;
221
221
  type: string;
222
- attributes: any;
222
+ attributes: Record<string, object>;
223
223
  dateCreated: Date;
224
224
  dateUpdated: Date;
225
225
  url: string;
@@ -75,7 +75,7 @@ interface SupportingDocumentTypeResource {
75
75
  sid: string;
76
76
  friendly_name: string;
77
77
  machine_name: string;
78
- fields: Array<any>;
78
+ fields: Array<Record<string, object>>;
79
79
  url: string;
80
80
  }
81
81
  export declare class SupportingDocumentTypeInstance {
@@ -98,7 +98,7 @@ export declare class SupportingDocumentTypeInstance {
98
98
  /**
99
99
  * The required information for creating a Supporting Document. The required fields will change as regulatory needs change and will differ for businesses and individuals.
100
100
  */
101
- fields: Array<any>;
101
+ fields: Array<Record<string, object>>;
102
102
  /**
103
103
  * The absolute URL of the Supporting Document Type resource.
104
104
  */
@@ -121,7 +121,7 @@ export declare class SupportingDocumentTypeInstance {
121
121
  sid: string;
122
122
  friendlyName: string;
123
123
  machineName: string;
124
- fields: any[];
124
+ fields: Record<string, object>[];
125
125
  url: string;
126
126
  };
127
127
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -86,7 +86,7 @@ interface TrustProductsEvaluationsResource {
86
86
  policy_sid: string;
87
87
  trust_product_sid: string;
88
88
  status: TrustProductsEvaluationsStatus;
89
- results: Array<any>;
89
+ results: Array<Record<string, object>>;
90
90
  date_created: Date;
91
91
  url: string;
92
92
  }
@@ -115,7 +115,7 @@ export declare class TrustProductsEvaluationsInstance {
115
115
  /**
116
116
  * The results of the Evaluation which includes the valid and invalid attributes.
117
117
  */
118
- results: Array<any>;
118
+ results: Array<Record<string, object>>;
119
119
  dateCreated: Date;
120
120
  url: string;
121
121
  private get _proxy();
@@ -138,7 +138,7 @@ export declare class TrustProductsEvaluationsInstance {
138
138
  policySid: string;
139
139
  trustProductSid: string;
140
140
  status: TrustProductsEvaluationsStatus;
141
- results: any[];
141
+ results: Record<string, object>[];
142
142
  dateCreated: Date;
143
143
  url: string;
144
144
  };
@@ -168,7 +168,7 @@ interface TrustProductsResource {
168
168
  date_updated: Date;
169
169
  url: string;
170
170
  links: Record<string, string>;
171
- errors: Array<any>;
171
+ errors: Array<Record<string, object>>;
172
172
  }
173
173
  export declare class TrustProductsInstance {
174
174
  protected _version: V1;
@@ -223,7 +223,7 @@ export declare class TrustProductsInstance {
223
223
  /**
224
224
  * The error codes associated with the rejection of the Trust Product.
225
225
  */
226
- errors: Array<any>;
226
+ errors: Array<Record<string, object>>;
227
227
  private get _proxy();
228
228
  /**
229
229
  * Remove a TrustProductsInstance
@@ -288,7 +288,7 @@ export declare class TrustProductsInstance {
288
288
  dateUpdated: Date;
289
289
  url: string;
290
290
  links: Record<string, string>;
291
- errors: any[];
291
+ errors: Record<string, object>[];
292
292
  };
293
293
  [inspect.custom](_depth: any, options: InspectOptions): string;
294
294
  }
@@ -36,8 +36,8 @@ export declare class FormContextImpl implements FormContext {
36
36
  }
37
37
  interface FormResource {
38
38
  form_type: FormFormTypes;
39
- forms: any;
40
- form_meta: any;
39
+ forms: Record<string, object>;
40
+ form_meta: Record<string, object>;
41
41
  url: string;
42
42
  }
43
43
  export declare class FormInstance {
@@ -49,11 +49,11 @@ export declare class FormInstance {
49
49
  /**
50
50
  * Object that contains the available forms for this type. This available forms are given in the standard [JSON Schema](https://json-schema.org/) format
51
51
  */
52
- forms: any;
52
+ forms: Record<string, object>;
53
53
  /**
54
54
  * Additional information for the available forms for this type. E.g. The separator string used for `binding` in a Factor push.
55
55
  */
56
- formMeta: any;
56
+ formMeta: Record<string, object>;
57
57
  /**
58
58
  * The URL to access the forms for this type.
59
59
  */
@@ -74,8 +74,8 @@ export declare class FormInstance {
74
74
  */
75
75
  toJSON(): {
76
76
  formType: "form-push";
77
- forms: any;
78
- formMeta: any;
77
+ forms: Record<string, object>;
78
+ formMeta: Record<string, object>;
79
79
  url: string;
80
80
  };
81
81
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -15,7 +15,7 @@ export interface ChallengeContextUpdateOptions {
15
15
  /** The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. For `TOTP` this value must be between 3 and 8 characters long. For `Push` this value can be up to 5456 characters in length */
16
16
  authPayload?: string;
17
17
  /** Custom metadata associated with the challenge. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\\\"os\\\": \\\"Android\\\"}`. Can be up to 1024 characters in length. */
18
- metadata?: any;
18
+ metadata?: object;
19
19
  }
20
20
  /**
21
21
  * Options to pass to create a ChallengeInstance
@@ -28,9 +28,9 @@ export interface ChallengeListInstanceCreateOptions {
28
28
  /** Shown to the user when the push notification arrives. Required when `factor_type` is `push`. Can be up to 256 characters in length */
29
29
  "details.message"?: string;
30
30
  /** A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field, the label can be up to 36 characters in length and the value can be up to 128 characters in length. Used when `factor_type` is `push`. There can be up to 20 details fields. */
31
- "details.fields"?: Array<any>;
31
+ "details.fields"?: Array<object>;
32
32
  /** Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\\\"ip\\\": \\\"172.168.1.234\\\"}`. Can be up to 1024 characters in length */
33
- hiddenDetails?: any;
33
+ hiddenDetails?: object;
34
34
  /** Optional payload used to verify the Challenge upon creation. Only used with a Factor of type `totp` to carry the TOTP code that needs to be verified. For `TOTP` this value must be between 3 and 8 characters long. */
35
35
  authPayload?: string;
36
36
  }
@@ -156,9 +156,9 @@ interface ChallengeResource {
156
156
  expiration_date: Date;
157
157
  status: ChallengeChallengeStatuses;
158
158
  responded_reason: ChallengeChallengeReasons;
159
- details: any;
160
- hidden_details: any;
161
- metadata: any;
159
+ details: Record<string, object>;
160
+ hidden_details: Record<string, object>;
161
+ metadata: Record<string, object>;
162
162
  factor_type: ChallengeFactorTypes;
163
163
  url: string;
164
164
  links: Record<string, string>;
@@ -213,15 +213,15 @@ export declare class ChallengeInstance {
213
213
  /**
214
214
  * Details provided to give context about the Challenge. Intended to be shown to the end user.
215
215
  */
216
- details: any;
216
+ details: Record<string, object>;
217
217
  /**
218
218
  * Details provided to give context about the Challenge. Intended to be hidden from the end user. It must be a stringified JSON with only strings values eg. `{\"ip\": \"172.168.1.234\"}`
219
219
  */
220
- hiddenDetails: any;
220
+ hiddenDetails: Record<string, object>;
221
221
  /**
222
222
  * Custom metadata associated with the challenge. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\"os\": \"Android\"}`. Can be up to 1024 characters in length.
223
223
  */
224
- metadata: any;
224
+ metadata: Record<string, object>;
225
225
  factorType: ChallengeFactorTypes;
226
226
  /**
227
227
  * The URL of this resource.
@@ -279,9 +279,9 @@ export declare class ChallengeInstance {
279
279
  expirationDate: Date;
280
280
  status: ChallengeChallengeStatuses;
281
281
  respondedReason: ChallengeChallengeReasons;
282
- details: any;
283
- hiddenDetails: any;
284
- metadata: any;
282
+ details: Record<string, object>;
283
+ hiddenDetails: Record<string, object>;
284
+ metadata: Record<string, object>;
285
285
  factorType: ChallengeFactorTypes;
286
286
  url: string;
287
287
  links: Record<string, string>;
@@ -205,7 +205,7 @@ function ChallengeListInstance(version, serviceSid, identity) {
205
205
  if (params["details.message"] !== undefined)
206
206
  data["Details.Message"] = params["details.message"];
207
207
  if (params["details.fields"] !== undefined)
208
- data["Details.Fields"] = serialize.map(params["details.fields"], (e) => serialize.object(e));
208
+ data["Details.Fields"] = serialize.map(params["details.fields"], (e) => e);
209
209
  if (params["hiddenDetails"] !== undefined)
210
210
  data["HiddenDetails"] = serialize.object(params["hiddenDetails"]);
211
211
  if (params["authPayload"] !== undefined)
@@ -137,8 +137,8 @@ interface FactorResource {
137
137
  friendly_name: string;
138
138
  status: FactorFactorStatuses;
139
139
  factor_type: FactorFactorTypes;
140
- config: any;
141
- metadata: any;
140
+ config: Record<string, object>;
141
+ metadata: Record<string, object>;
142
142
  url: string;
143
143
  }
144
144
  export declare class FactorInstance {
@@ -183,11 +183,11 @@ export declare class FactorInstance {
183
183
  /**
184
184
  * An object that contains configurations specific to a `factor_type`.
185
185
  */
186
- config: any;
186
+ config: Record<string, object>;
187
187
  /**
188
188
  * Custom metadata associated with the factor. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\"os\": \"Android\"}`. Can be up to 1024 characters in length.
189
189
  */
190
- metadata: any;
190
+ metadata: Record<string, object>;
191
191
  /**
192
192
  * The URL of this resource.
193
193
  */
@@ -242,8 +242,8 @@ export declare class FactorInstance {
242
242
  friendlyName: string;
243
243
  status: FactorFactorStatuses;
244
244
  factorType: FactorFactorTypes;
245
- config: any;
246
- metadata: any;
245
+ config: Record<string, object>;
246
+ metadata: Record<string, object>;
247
247
  url: string;
248
248
  };
249
249
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -36,7 +36,7 @@ export interface NewFactorListInstanceCreateOptions {
36
36
  /** */
37
37
  "config.alg"?: NewFactorTotpAlgorithms;
38
38
  /** Custom metadata associated with the factor. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\\\"os\\\": \\\"Android\\\"}`. Can be up to 1024 characters in length. */
39
- metadata?: any;
39
+ metadata?: object;
40
40
  }
41
41
  export interface NewFactorSolution {
42
42
  serviceSid: string;
@@ -68,14 +68,14 @@ interface NewFactorResource {
68
68
  service_sid: string;
69
69
  entity_sid: string;
70
70
  identity: string;
71
- binding: any;
71
+ binding: Record<string, object>;
72
72
  date_created: Date;
73
73
  date_updated: Date;
74
74
  friendly_name: string;
75
75
  status: NewFactorFactorStatuses;
76
76
  factor_type: NewFactorFactorTypes;
77
- config: any;
78
- metadata: any;
77
+ config: Record<string, object>;
78
+ metadata: Record<string, object>;
79
79
  url: string;
80
80
  }
81
81
  export declare class NewFactorInstance {
@@ -104,7 +104,7 @@ export declare class NewFactorInstance {
104
104
  /**
105
105
  * Contains the `factor_type` specific secret and metadata. For push, this is `binding.public_key` and `binding.alg`. For totp, this is `binding.secret` and `binding.uri`. The `binding.uri` property is generated following the [google authenticator key URI format](https://github.com/google/google-authenticator/wiki/Key-Uri-Format), and `Factor.friendly_name` is used for the “accountname” value and `Service.friendly_name` or `Service.totp.issuer` is used for the `issuer` value. The Binding property is ONLY returned upon Factor creation.
106
106
  */
107
- binding: any;
107
+ binding: Record<string, object>;
108
108
  /**
109
109
  * The date that this Factor was created, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
110
110
  */
@@ -122,11 +122,11 @@ export declare class NewFactorInstance {
122
122
  /**
123
123
  * An object that contains configurations specific to a `factor_type`.
124
124
  */
125
- config: any;
125
+ config: Record<string, object>;
126
126
  /**
127
127
  * Custom metadata associated with the factor. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\"os\": \"Android\"}`. Can be up to 1024 characters in length.
128
128
  */
129
- metadata: any;
129
+ metadata: Record<string, object>;
130
130
  /**
131
131
  * The URL of this resource.
132
132
  */
@@ -142,14 +142,14 @@ export declare class NewFactorInstance {
142
142
  serviceSid: string;
143
143
  entitySid: string;
144
144
  identity: string;
145
- binding: any;
145
+ binding: Record<string, object>;
146
146
  dateCreated: Date;
147
147
  dateUpdated: Date;
148
148
  friendlyName: string;
149
149
  status: NewFactorFactorStatuses;
150
150
  factorType: NewFactorFactorTypes;
151
- config: any;
152
- metadata: any;
151
+ config: Record<string, object>;
152
+ metadata: Record<string, object>;
153
153
  url: string;
154
154
  };
155
155
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -34,9 +34,9 @@ export interface VerificationListInstanceCreateOptions {
34
34
  /** The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. */
35
35
  payee?: string;
36
36
  /** The custom key-value pairs of Programmable Rate Limits. Keys correspond to `unique_name` fields defined when [creating your Rate Limit](https://www.twilio.com/docs/verify/api/service-rate-limits). Associated value pairs represent values in the request that you are rate limiting on. You may include multiple Rate Limit values in each request. */
37
- rateLimits?: any;
37
+ rateLimits?: object;
38
38
  /** [`email`](https://www.twilio.com/docs/verify/email) channel configuration in json format. The fields \\\'from\\\' and \\\'from_name\\\' are optional but if included the \\\'from\\\' field must have a valid email address. */
39
- channelConfiguration?: any;
39
+ channelConfiguration?: object;
40
40
  /** Your [App Hash](https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string) to be appended at the end of your verification SMS body. Applies only to SMS. Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`. */
41
41
  appHash?: string;
42
42
  /** The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only. */
@@ -103,13 +103,13 @@ interface VerificationResource {
103
103
  channel: VerificationChannel;
104
104
  status: string;
105
105
  valid: boolean;
106
- lookup: any;
106
+ lookup: Record<string, object>;
107
107
  amount: string;
108
108
  payee: string;
109
- send_code_attempts: Array<any>;
109
+ send_code_attempts: Array<Record<string, object>>;
110
110
  date_created: Date;
111
111
  date_updated: Date;
112
- sna: any;
112
+ sna: Record<string, object>;
113
113
  url: string;
114
114
  }
115
115
  export declare class VerificationInstance {
@@ -145,7 +145,7 @@ export declare class VerificationInstance {
145
145
  /**
146
146
  * Information about the phone number being verified.
147
147
  */
148
- lookup: any;
148
+ lookup: Record<string, object>;
149
149
  /**
150
150
  * The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
151
151
  */
@@ -157,7 +157,7 @@ export declare class VerificationInstance {
157
157
  /**
158
158
  * An array of verification attempt objects containing the channel attempted and the channel-specific transaction SID.
159
159
  */
160
- sendCodeAttempts: Array<any>;
160
+ sendCodeAttempts: Array<Record<string, object>>;
161
161
  /**
162
162
  * The date and time in GMT when the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
163
163
  */
@@ -169,7 +169,7 @@ export declare class VerificationInstance {
169
169
  /**
170
170
  * The set of fields used for a silent network auth (`sna`) verification. Contains a single field with the URL to be invoked to verify the phone number.
171
171
  */
172
- sna: any;
172
+ sna: Record<string, object>;
173
173
  /**
174
174
  * The absolute URL of the Verification resource.
175
175
  */
@@ -205,13 +205,13 @@ export declare class VerificationInstance {
205
205
  channel: VerificationChannel;
206
206
  status: string;
207
207
  valid: boolean;
208
- lookup: any;
208
+ lookup: Record<string, object>;
209
209
  amount: string;
210
210
  payee: string;
211
- sendCodeAttempts: any[];
211
+ sendCodeAttempts: Record<string, object>[];
212
212
  dateCreated: Date;
213
213
  dateUpdated: Date;
214
- sna: any;
214
+ sna: Record<string, object>;
215
215
  url: string;
216
216
  };
217
217
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -62,7 +62,7 @@ interface VerificationCheckResource {
62
62
  payee: string;
63
63
  date_created: Date;
64
64
  date_updated: Date;
65
- sna_attempts_error_codes: Array<any>;
65
+ sna_attempts_error_codes: Array<Record<string, object>>;
66
66
  }
67
67
  export declare class VerificationCheckInstance {
68
68
  protected _version: V2;
@@ -111,7 +111,7 @@ export declare class VerificationCheckInstance {
111
111
  /**
112
112
  * List of error codes as a result of attempting a verification using the `sna` channel. The error codes are chronologically ordered, from the first attempt to the latest attempt. This will be an empty list if no errors occured or `null` if the last channel used wasn\'t `sna`.
113
113
  */
114
- snaAttemptsErrorCodes: Array<any>;
114
+ snaAttemptsErrorCodes: Array<Record<string, object>>;
115
115
  /**
116
116
  * Provide a user-friendly representation
117
117
  *
@@ -129,7 +129,7 @@ export declare class VerificationCheckInstance {
129
129
  payee: string;
130
130
  dateCreated: Date;
131
131
  dateUpdated: Date;
132
- snaAttemptsErrorCodes: any[];
132
+ snaAttemptsErrorCodes: Record<string, object>[];
133
133
  };
134
134
  [inspect.custom](_depth: any, options: InspectOptions): string;
135
135
  }
@@ -228,10 +228,10 @@ interface ServiceResource {
228
228
  tts_name: string;
229
229
  do_not_share_warning_enabled: boolean;
230
230
  custom_code_enabled: boolean;
231
- push: any;
232
- totp: any;
231
+ push: Record<string, object>;
232
+ totp: Record<string, object>;
233
233
  default_template_sid: string;
234
- whatsapp: any;
234
+ whatsapp: Record<string, object>;
235
235
  verify_event_subscription_enabled: boolean;
236
236
  date_created: Date;
237
237
  date_updated: Date;
@@ -290,13 +290,13 @@ export declare class ServiceInstance {
290
290
  /**
291
291
  * Configurations for the Push factors (channel) created under this Service.
292
292
  */
293
- push: any;
293
+ push: Record<string, object>;
294
294
  /**
295
295
  * Configurations for the TOTP factors (channel) created under this Service.
296
296
  */
297
- totp: any;
297
+ totp: Record<string, object>;
298
298
  defaultTemplateSid: string;
299
- whatsapp: any;
299
+ whatsapp: Record<string, object>;
300
300
  /**
301
301
  * Whether to allow verifications from the service to reach the stream-events sinks if configured
302
302
  */
@@ -396,10 +396,10 @@ export declare class ServiceInstance {
396
396
  ttsName: string;
397
397
  doNotShareWarningEnabled: boolean;
398
398
  customCodeEnabled: boolean;
399
- push: any;
400
- totp: any;
399
+ push: Record<string, object>;
400
+ totp: Record<string, object>;
401
401
  defaultTemplateSid: string;
402
- whatsapp: any;
402
+ whatsapp: Record<string, object>;
403
403
  verifyEventSubscriptionEnabled: boolean;
404
404
  dateCreated: Date;
405
405
  dateUpdated: Date;
@@ -113,7 +113,7 @@ interface TemplateResource {
113
113
  account_sid: string;
114
114
  friendly_name: string;
115
115
  channels: Array<string>;
116
- translations: any;
116
+ translations: Record<string, object>;
117
117
  }
118
118
  export declare class TemplateInstance {
119
119
  protected _version: V2;
@@ -137,7 +137,7 @@ export declare class TemplateInstance {
137
137
  /**
138
138
  * An object that contains the different translations of the template. Every translation is identified by the language short name and contains its respective information as the approval status, text and created/modified date.
139
139
  */
140
- translations: any;
140
+ translations: Record<string, object>;
141
141
  /**
142
142
  * Provide a user-friendly representation
143
143
  *
@@ -148,7 +148,7 @@ export declare class TemplateInstance {
148
148
  accountSid: string;
149
149
  friendlyName: string;
150
150
  channels: string[];
151
- translations: any;
151
+ translations: Record<string, object>;
152
152
  };
153
153
  [inspect.custom](_depth: any, options: InspectOptions): string;
154
154
  }
@@ -130,8 +130,8 @@ interface VerificationAttemptResource {
130
130
  date_updated: Date;
131
131
  conversion_status: VerificationAttemptConversionStatus;
132
132
  channel: VerificationAttemptChannels;
133
- price: any;
134
- channel_data: any;
133
+ price: Record<string, object>;
134
+ channel_data: Record<string, object>;
135
135
  url: string;
136
136
  }
137
137
  export declare class VerificationAttemptInstance {
@@ -168,11 +168,11 @@ export declare class VerificationAttemptInstance {
168
168
  /**
169
169
  * An object containing the charge for this verification attempt related to the channel costs and the currency used. The costs related to the succeeded verifications are not included. May not be immediately available. More information on pricing is available [here](https://www.twilio.com/en-us/verify/pricing).
170
170
  */
171
- price: any;
171
+ price: Record<string, object>;
172
172
  /**
173
173
  * An object containing the channel specific information for an attempt.
174
174
  */
175
- channelData: any;
175
+ channelData: Record<string, object>;
176
176
  url: string;
177
177
  private get _proxy();
178
178
  /**
@@ -197,8 +197,8 @@ export declare class VerificationAttemptInstance {
197
197
  dateUpdated: Date;
198
198
  conversionStatus: VerificationAttemptConversionStatus;
199
199
  channel: VerificationAttemptChannels;
200
- price: any;
201
- channelData: any;
200
+ price: Record<string, object>;
201
+ channelData: Record<string, object>;
202
202
  url: string;
203
203
  };
204
204
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -12,7 +12,7 @@ export interface CompositionListInstanceCreateOptions {
12
12
  /** The SID of the Group Room with the media tracks to be used as composition sources. */
13
13
  roomSid: string;
14
14
  /** An object that describes the video layout of the composition in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request */
15
- videoLayout?: any;
15
+ videoLayout?: object;
16
16
  /** An array of track names from the same group room to merge into the new composition. Can include zero or more track names. The new composition 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 will match zero or more characters in a track name. For example, `student*` includes `student` as well as `studentTeam`. Please, be aware that either video_layout or audio_sources have to be provided to get a valid creation request */
17
17
  audioSources?: Array<string>;
18
18
  /** An array of track names to exclude. The new composition 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 will match zero or more characters in a track name. For example, `student*` excludes `student` as well as `studentTeam`. This parameter can also be empty. */
@@ -139,7 +139,7 @@ interface CompositionResource {
139
139
  room_sid: string;
140
140
  audio_sources: Array<string>;
141
141
  audio_sources_excluded: Array<string>;
142
- video_layout: any;
142
+ video_layout: Record<string, object>;
143
143
  resolution: string;
144
144
  trim: boolean;
145
145
  format: CompositionFormat;
@@ -193,7 +193,7 @@ export declare class CompositionInstance {
193
193
  /**
194
194
  * An object that describes the video layout of the composition in terms of regions. See [Specifying Video Layouts](https://www.twilio.com/docs/video/api/compositions-resource#specifying-video-layouts) for more info.
195
195
  */
196
- videoLayout: any;
196
+ videoLayout: Record<string, object>;
197
197
  /**
198
198
  * 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`.
199
199
  */
@@ -267,7 +267,7 @@ export declare class CompositionInstance {
267
267
  roomSid: string;
268
268
  audioSources: string[];
269
269
  audioSourcesExcluded: string[];
270
- videoLayout: any;
270
+ videoLayout: Record<string, object>;
271
271
  resolution: string;
272
272
  trim: boolean;
273
273
  format: CompositionFormat;