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
@@ -178,13 +178,13 @@ interface MessageResource {
178
178
  index: number;
179
179
  author: string;
180
180
  body: string;
181
- media: Array<any>;
181
+ media: Array<Record<string, object>>;
182
182
  attributes: string;
183
183
  participant_sid: string;
184
184
  date_created: Date;
185
185
  date_updated: Date;
186
186
  url: string;
187
- delivery: any;
187
+ delivery: Record<string, object>;
188
188
  links: Record<string, string>;
189
189
  content_sid: string;
190
190
  }
@@ -220,7 +220,7 @@ export declare class MessageInstance {
220
220
  /**
221
221
  * An array of objects that describe the Message\'s media, if the message contains media. Each 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`.
222
222
  */
223
- media: Array<any>;
223
+ media: Array<Record<string, object>>;
224
224
  /**
225
225
  * A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned.
226
226
  */
@@ -244,7 +244,7 @@ export declare class MessageInstance {
244
244
  /**
245
245
  * An object that contains the summary of delivery statuses for the message to non-chat participants.
246
246
  */
247
- delivery: any;
247
+ delivery: Record<string, object>;
248
248
  /**
249
249
  * Contains an absolute API resource URL to access the delivery & read receipts of this message.
250
250
  */
@@ -312,13 +312,13 @@ export declare class MessageInstance {
312
312
  index: number;
313
313
  author: string;
314
314
  body: string;
315
- media: any[];
315
+ media: Record<string, object>[];
316
316
  attributes: string;
317
317
  participantSid: string;
318
318
  dateCreated: Date;
319
319
  dateUpdated: Date;
320
320
  url: string;
321
- delivery: any;
321
+ delivery: Record<string, object>;
322
322
  links: Record<string, string>;
323
323
  contentSid: string;
324
324
  };
@@ -170,7 +170,7 @@ interface ParticipantResource {
170
170
  sid: string;
171
171
  identity: string;
172
172
  attributes: string;
173
- messaging_binding: any;
173
+ messaging_binding: Record<string, object>;
174
174
  role_sid: string;
175
175
  date_created: Date;
176
176
  date_updated: Date;
@@ -206,7 +206,7 @@ export declare class ParticipantInstance {
206
206
  /**
207
207
  * Information about how this participant exchanges messages with the conversation. A JSON parameter consisting of type and address fields of the participant.
208
208
  */
209
- messagingBinding: any;
209
+ messagingBinding: Record<string, object>;
210
210
  /**
211
211
  * The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant.
212
212
  */
@@ -285,7 +285,7 @@ export declare class ParticipantInstance {
285
285
  sid: string;
286
286
  identity: string;
287
287
  attributes: string;
288
- messagingBinding: any;
288
+ messagingBinding: Record<string, object>;
289
289
  roleSid: string;
290
290
  dateCreated: Date;
291
291
  dateUpdated: Date;
@@ -141,7 +141,7 @@ interface WebhookResource {
141
141
  conversation_sid: string;
142
142
  target: string;
143
143
  url: string;
144
- configuration: any;
144
+ configuration: Record<string, object>;
145
145
  date_created: Date;
146
146
  date_updated: Date;
147
147
  }
@@ -173,7 +173,7 @@ export declare class WebhookInstance {
173
173
  /**
174
174
  * The configuration of this webhook. Is defined based on target.
175
175
  */
176
- configuration: any;
176
+ configuration: Record<string, object>;
177
177
  /**
178
178
  * The date that this resource was created.
179
179
  */
@@ -227,7 +227,7 @@ export declare class WebhookInstance {
227
227
  conversationSid: string;
228
228
  target: string;
229
229
  url: string;
230
- configuration: any;
230
+ configuration: Record<string, object>;
231
231
  dateCreated: Date;
232
232
  dateUpdated: Date;
233
233
  };
@@ -215,10 +215,10 @@ interface ConversationResource {
215
215
  state: ConversationState;
216
216
  date_created: Date;
217
217
  date_updated: Date;
218
- timers: any;
218
+ timers: Record<string, object>;
219
219
  url: string;
220
220
  links: Record<string, string>;
221
- bindings: any;
221
+ bindings: Record<string, object>;
222
222
  }
223
223
  export declare class ConversationInstance {
224
224
  protected _version: V1;
@@ -265,7 +265,7 @@ export declare class ConversationInstance {
265
265
  /**
266
266
  * Timer date values representing state update for this conversation.
267
267
  */
268
- timers: any;
268
+ timers: Record<string, object>;
269
269
  /**
270
270
  * An absolute API resource URL for this conversation.
271
271
  */
@@ -274,7 +274,7 @@ export declare class ConversationInstance {
274
274
  * Contains absolute URLs to access the [participants](https://www.twilio.com/docs/conversations/api/conversation-participant-resource), [messages](https://www.twilio.com/docs/conversations/api/conversation-message-resource) and [webhooks](https://www.twilio.com/docs/conversations/api/conversation-scoped-webhook-resource) of this conversation.
275
275
  */
276
276
  links: Record<string, string>;
277
- bindings: any;
277
+ bindings: Record<string, object>;
278
278
  private get _proxy();
279
279
  /**
280
280
  * Remove a ConversationInstance
@@ -346,10 +346,10 @@ export declare class ConversationInstance {
346
346
  state: ConversationState;
347
347
  dateCreated: Date;
348
348
  dateUpdated: Date;
349
- timers: any;
349
+ timers: Record<string, object>;
350
350
  url: string;
351
351
  links: Record<string, string>;
352
- bindings: any;
352
+ bindings: Record<string, object>;
353
353
  };
354
354
  [inspect.custom](_depth: any, options: InspectOptions): string;
355
355
  }
@@ -75,9 +75,9 @@ interface ConversationWithParticipantsResource {
75
75
  state: ConversationWithParticipantsState;
76
76
  date_created: Date;
77
77
  date_updated: Date;
78
- timers: any;
78
+ timers: Record<string, object>;
79
79
  links: Record<string, string>;
80
- bindings: any;
80
+ bindings: Record<string, object>;
81
81
  url: string;
82
82
  }
83
83
  export declare class ConversationWithParticipantsInstance {
@@ -123,12 +123,12 @@ export declare class ConversationWithParticipantsInstance {
123
123
  /**
124
124
  * Timer date values representing state update for this conversation.
125
125
  */
126
- timers: any;
126
+ timers: Record<string, object>;
127
127
  /**
128
128
  * Contains absolute URLs to access the [participants](https://www.twilio.com/docs/conversations/api/conversation-participant-resource), [messages](https://www.twilio.com/docs/conversations/api/conversation-message-resource) and [webhooks](https://www.twilio.com/docs/conversations/api/conversation-scoped-webhook-resource) of this conversation.
129
129
  */
130
130
  links: Record<string, string>;
131
- bindings: any;
131
+ bindings: Record<string, object>;
132
132
  /**
133
133
  * An absolute API resource URL for this conversation.
134
134
  */
@@ -149,9 +149,9 @@ export declare class ConversationWithParticipantsInstance {
149
149
  state: ConversationWithParticipantsState;
150
150
  dateCreated: Date;
151
151
  dateUpdated: Date;
152
- timers: any;
152
+ timers: Record<string, object>;
153
153
  links: Record<string, string>;
154
- bindings: any;
154
+ bindings: Record<string, object>;
155
155
  url: string;
156
156
  };
157
157
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -121,7 +121,7 @@ interface ParticipantConversationResource {
121
121
  participant_sid: string;
122
122
  participant_user_sid: string;
123
123
  participant_identity: string;
124
- participant_messaging_binding: any;
124
+ participant_messaging_binding: Record<string, object>;
125
125
  conversation_sid: string;
126
126
  conversation_unique_name: string;
127
127
  conversation_friendly_name: string;
@@ -130,7 +130,7 @@ interface ParticipantConversationResource {
130
130
  conversation_date_updated: Date;
131
131
  conversation_created_by: string;
132
132
  conversation_state: ParticipantConversationState;
133
- conversation_timers: any;
133
+ conversation_timers: Record<string, object>;
134
134
  links: Record<string, string>;
135
135
  }
136
136
  export declare class ParticipantConversationInstance {
@@ -159,7 +159,7 @@ export declare class ParticipantConversationInstance {
159
159
  /**
160
160
  * Information about how this participant exchanges messages with the conversation. A JSON parameter consisting of type and address fields of the participant.
161
161
  */
162
- participantMessagingBinding: any;
162
+ participantMessagingBinding: Record<string, object>;
163
163
  /**
164
164
  * The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) this Participant belongs to.
165
165
  */
@@ -192,7 +192,7 @@ export declare class ParticipantConversationInstance {
192
192
  /**
193
193
  * Timer date values representing state update for this conversation.
194
194
  */
195
- conversationTimers: any;
195
+ conversationTimers: Record<string, object>;
196
196
  /**
197
197
  * Contains absolute URLs to access the [participant](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) and [conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) of this conversation.
198
198
  */
@@ -208,7 +208,7 @@ export declare class ParticipantConversationInstance {
208
208
  participantSid: string;
209
209
  participantUserSid: string;
210
210
  participantIdentity: string;
211
- participantMessagingBinding: any;
211
+ participantMessagingBinding: Record<string, object>;
212
212
  conversationSid: string;
213
213
  conversationUniqueName: string;
214
214
  conversationFriendlyName: string;
@@ -217,7 +217,7 @@ export declare class ParticipantConversationInstance {
217
217
  conversationDateUpdated: Date;
218
218
  conversationCreatedBy: string;
219
219
  conversationState: ParticipantConversationState;
220
- conversationTimers: any;
220
+ conversationTimers: Record<string, object>;
221
221
  links: Record<string, string>;
222
222
  };
223
223
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -85,9 +85,9 @@ export declare class NotificationContextImpl implements NotificationContext {
85
85
  interface NotificationResource {
86
86
  account_sid: string;
87
87
  chat_service_sid: string;
88
- new_message: any;
89
- added_to_conversation: any;
90
- removed_from_conversation: any;
88
+ new_message: Record<string, object>;
89
+ added_to_conversation: Record<string, object>;
90
+ removed_from_conversation: Record<string, object>;
91
91
  log_enabled: boolean;
92
92
  url: string;
93
93
  }
@@ -107,15 +107,15 @@ export declare class NotificationInstance {
107
107
  /**
108
108
  * The Push Notification configuration for New Messages.
109
109
  */
110
- newMessage: any;
110
+ newMessage: Record<string, object>;
111
111
  /**
112
112
  * The Push Notification configuration for being added to a Conversation.
113
113
  */
114
- addedToConversation: any;
114
+ addedToConversation: Record<string, object>;
115
115
  /**
116
116
  * The Push Notification configuration for being removed from a Conversation.
117
117
  */
118
- removedFromConversation: any;
118
+ removedFromConversation: Record<string, object>;
119
119
  /**
120
120
  * Weather the notification logging is enabled.
121
121
  */
@@ -158,9 +158,9 @@ export declare class NotificationInstance {
158
158
  toJSON(): {
159
159
  accountSid: string;
160
160
  chatServiceSid: string;
161
- newMessage: any;
162
- addedToConversation: any;
163
- removedFromConversation: any;
161
+ newMessage: Record<string, object>;
162
+ addedToConversation: Record<string, object>;
163
+ removedFromConversation: Record<string, object>;
164
164
  logEnabled: boolean;
165
165
  url: string;
166
166
  };
@@ -180,12 +180,12 @@ interface MessageResource {
180
180
  index: number;
181
181
  author: string;
182
182
  body: string;
183
- media: Array<any>;
183
+ media: Array<Record<string, object>>;
184
184
  attributes: string;
185
185
  participant_sid: string;
186
186
  date_created: Date;
187
187
  date_updated: Date;
188
- delivery: any;
188
+ delivery: Record<string, object>;
189
189
  url: string;
190
190
  links: Record<string, string>;
191
191
  content_sid: string;
@@ -226,7 +226,7 @@ export declare class MessageInstance {
226
226
  /**
227
227
  * An array of objects that describe the Message\'s media, if the message contains media. Each 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`.
228
228
  */
229
- media: Array<any>;
229
+ media: Array<Record<string, object>>;
230
230
  /**
231
231
  * A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned.
232
232
  */
@@ -246,7 +246,7 @@ export declare class MessageInstance {
246
246
  /**
247
247
  * An object that contains the summary of delivery statuses for the message to non-chat participants.
248
248
  */
249
- delivery: any;
249
+ delivery: Record<string, object>;
250
250
  /**
251
251
  * An absolute API resource URL for this message.
252
252
  */
@@ -319,12 +319,12 @@ export declare class MessageInstance {
319
319
  index: number;
320
320
  author: string;
321
321
  body: string;
322
- media: any[];
322
+ media: Record<string, object>[];
323
323
  attributes: string;
324
324
  participantSid: string;
325
325
  dateCreated: Date;
326
326
  dateUpdated: Date;
327
- delivery: any;
327
+ delivery: Record<string, object>;
328
328
  url: string;
329
329
  links: Record<string, string>;
330
330
  contentSid: string;
@@ -172,7 +172,7 @@ interface ParticipantResource {
172
172
  sid: string;
173
173
  identity: string;
174
174
  attributes: string;
175
- messaging_binding: any;
175
+ messaging_binding: Record<string, object>;
176
176
  role_sid: string;
177
177
  date_created: Date;
178
178
  date_updated: Date;
@@ -212,7 +212,7 @@ export declare class ParticipantInstance {
212
212
  /**
213
213
  * Information about how this participant exchanges messages with the conversation. A JSON parameter consisting of type and address fields of the participant.
214
214
  */
215
- messagingBinding: any;
215
+ messagingBinding: Record<string, object>;
216
216
  /**
217
217
  * The SID of a conversation-level [Role](https://www.twilio.com/docs/conversations/api/role-resource) to assign to the participant.
218
218
  */
@@ -292,7 +292,7 @@ export declare class ParticipantInstance {
292
292
  sid: string;
293
293
  identity: string;
294
294
  attributes: string;
295
- messagingBinding: any;
295
+ messagingBinding: Record<string, object>;
296
296
  roleSid: string;
297
297
  dateCreated: Date;
298
298
  dateUpdated: Date;
@@ -143,7 +143,7 @@ interface WebhookResource {
143
143
  conversation_sid: string;
144
144
  target: string;
145
145
  url: string;
146
- configuration: any;
146
+ configuration: Record<string, object>;
147
147
  date_created: Date;
148
148
  date_updated: Date;
149
149
  }
@@ -179,7 +179,7 @@ export declare class WebhookInstance {
179
179
  /**
180
180
  * The configuration of this webhook. Is defined based on target.
181
181
  */
182
- configuration: any;
182
+ configuration: Record<string, object>;
183
183
  /**
184
184
  * The date that this resource was created.
185
185
  */
@@ -234,7 +234,7 @@ export declare class WebhookInstance {
234
234
  conversationSid: string;
235
235
  target: string;
236
236
  url: string;
237
- configuration: any;
237
+ configuration: Record<string, object>;
238
238
  dateCreated: Date;
239
239
  dateUpdated: Date;
240
240
  };
@@ -216,10 +216,10 @@ interface ConversationResource {
216
216
  state: ConversationState;
217
217
  date_created: Date;
218
218
  date_updated: Date;
219
- timers: any;
219
+ timers: Record<string, object>;
220
220
  url: string;
221
221
  links: Record<string, string>;
222
- bindings: any;
222
+ bindings: Record<string, object>;
223
223
  }
224
224
  export declare class ConversationInstance {
225
225
  protected _version: V1;
@@ -266,7 +266,7 @@ export declare class ConversationInstance {
266
266
  /**
267
267
  * Timer date values representing state update for this conversation.
268
268
  */
269
- timers: any;
269
+ timers: Record<string, object>;
270
270
  /**
271
271
  * An absolute API resource URL for this conversation.
272
272
  */
@@ -275,7 +275,7 @@ export declare class ConversationInstance {
275
275
  * Contains absolute URLs to access the [participants](https://www.twilio.com/docs/conversations/api/conversation-participant-resource), [messages](https://www.twilio.com/docs/conversations/api/conversation-message-resource) and [webhooks](https://www.twilio.com/docs/conversations/api/conversation-scoped-webhook-resource) of this conversation.
276
276
  */
277
277
  links: Record<string, string>;
278
- bindings: any;
278
+ bindings: Record<string, object>;
279
279
  private get _proxy();
280
280
  /**
281
281
  * Remove a ConversationInstance
@@ -347,10 +347,10 @@ export declare class ConversationInstance {
347
347
  state: ConversationState;
348
348
  dateCreated: Date;
349
349
  dateUpdated: Date;
350
- timers: any;
350
+ timers: Record<string, object>;
351
351
  url: string;
352
352
  links: Record<string, string>;
353
- bindings: any;
353
+ bindings: Record<string, object>;
354
354
  };
355
355
  [inspect.custom](_depth: any, options: InspectOptions): string;
356
356
  }
@@ -76,9 +76,9 @@ interface ConversationWithParticipantsResource {
76
76
  state: ConversationWithParticipantsState;
77
77
  date_created: Date;
78
78
  date_updated: Date;
79
- timers: any;
79
+ timers: Record<string, object>;
80
80
  links: Record<string, string>;
81
- bindings: any;
81
+ bindings: Record<string, object>;
82
82
  url: string;
83
83
  }
84
84
  export declare class ConversationWithParticipantsInstance {
@@ -124,12 +124,12 @@ export declare class ConversationWithParticipantsInstance {
124
124
  /**
125
125
  * Timer date values representing state update for this conversation.
126
126
  */
127
- timers: any;
127
+ timers: Record<string, object>;
128
128
  /**
129
129
  * Contains absolute URLs to access the [participants](https://www.twilio.com/docs/conversations/api/conversation-participant-resource), [messages](https://www.twilio.com/docs/conversations/api/conversation-message-resource) and [webhooks](https://www.twilio.com/docs/conversations/api/conversation-scoped-webhook-resource) of this conversation.
130
130
  */
131
131
  links: Record<string, string>;
132
- bindings: any;
132
+ bindings: Record<string, object>;
133
133
  /**
134
134
  * An absolute API resource URL for this conversation.
135
135
  */
@@ -150,9 +150,9 @@ export declare class ConversationWithParticipantsInstance {
150
150
  state: ConversationWithParticipantsState;
151
151
  dateCreated: Date;
152
152
  dateUpdated: Date;
153
- timers: any;
153
+ timers: Record<string, object>;
154
154
  links: Record<string, string>;
155
- bindings: any;
155
+ bindings: Record<string, object>;
156
156
  url: string;
157
157
  };
158
158
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -122,7 +122,7 @@ interface ParticipantConversationResource {
122
122
  participant_sid: string;
123
123
  participant_user_sid: string;
124
124
  participant_identity: string;
125
- participant_messaging_binding: any;
125
+ participant_messaging_binding: Record<string, object>;
126
126
  conversation_sid: string;
127
127
  conversation_unique_name: string;
128
128
  conversation_friendly_name: string;
@@ -131,7 +131,7 @@ interface ParticipantConversationResource {
131
131
  conversation_date_updated: Date;
132
132
  conversation_created_by: string;
133
133
  conversation_state: ParticipantConversationState;
134
- conversation_timers: any;
134
+ conversation_timers: Record<string, object>;
135
135
  links: Record<string, string>;
136
136
  }
137
137
  export declare class ParticipantConversationInstance {
@@ -160,7 +160,7 @@ export declare class ParticipantConversationInstance {
160
160
  /**
161
161
  * Information about how this participant exchanges messages with the conversation. A JSON parameter consisting of type and address fields of the participant.
162
162
  */
163
- participantMessagingBinding: any;
163
+ participantMessagingBinding: Record<string, object>;
164
164
  /**
165
165
  * The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) this Participant belongs to.
166
166
  */
@@ -193,7 +193,7 @@ export declare class ParticipantConversationInstance {
193
193
  /**
194
194
  * Timer date values representing state update for this conversation.
195
195
  */
196
- conversationTimers: any;
196
+ conversationTimers: Record<string, object>;
197
197
  /**
198
198
  * Contains absolute URLs to access the [participant](https://www.twilio.com/docs/conversations/api/conversation-participant-resource) and [conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) of this conversation.
199
199
  */
@@ -209,7 +209,7 @@ export declare class ParticipantConversationInstance {
209
209
  participantSid: string;
210
210
  participantUserSid: string;
211
211
  participantIdentity: string;
212
- participantMessagingBinding: any;
212
+ participantMessagingBinding: Record<string, object>;
213
213
  conversationSid: string;
214
214
  conversationUniqueName: string;
215
215
  conversationFriendlyName: string;
@@ -218,7 +218,7 @@ export declare class ParticipantConversationInstance {
218
218
  conversationDateUpdated: Date;
219
219
  conversationCreatedBy: string;
220
220
  conversationState: ParticipantConversationState;
221
- conversationTimers: any;
221
+ conversationTimers: Record<string, object>;
222
222
  links: Record<string, string>;
223
223
  };
224
224
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -123,7 +123,7 @@ interface UserConversationResource {
123
123
  user_sid: string;
124
124
  friendly_name: string;
125
125
  conversation_state: UserConversationState;
126
- timers: any;
126
+ timers: Record<string, object>;
127
127
  attributes: string;
128
128
  date_created: Date;
129
129
  date_updated: Date;
@@ -174,7 +174,7 @@ export declare class UserConversationInstance {
174
174
  /**
175
175
  * Timer date values representing state update for this conversation.
176
176
  */
177
- timers: any;
177
+ timers: Record<string, object>;
178
178
  /**
179
179
  * An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned.
180
180
  */
@@ -250,7 +250,7 @@ export declare class UserConversationInstance {
250
250
  userSid: string;
251
251
  friendlyName: string;
252
252
  conversationState: UserConversationState;
253
- timers: any;
253
+ timers: Record<string, object>;
254
254
  attributes: string;
255
255
  dateCreated: Date;
256
256
  dateUpdated: Date;
@@ -122,7 +122,7 @@ interface UserConversationResource {
122
122
  user_sid: string;
123
123
  friendly_name: string;
124
124
  conversation_state: UserConversationState;
125
- timers: any;
125
+ timers: Record<string, object>;
126
126
  attributes: string;
127
127
  date_created: Date;
128
128
  date_updated: Date;
@@ -173,7 +173,7 @@ export declare class UserConversationInstance {
173
173
  /**
174
174
  * Timer date values representing state update for this conversation.
175
175
  */
176
- timers: any;
176
+ timers: Record<string, object>;
177
177
  /**
178
178
  * An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \"{}\" will be returned.
179
179
  */
@@ -249,7 +249,7 @@ export declare class UserConversationInstance {
249
249
  userSid: string;
250
250
  friendlyName: string;
251
251
  conversationState: UserConversationState;
252
- timers: any;
252
+ timers: Record<string, object>;
253
253
  attributes: string;
254
254
  dateCreated: Date;
255
255
  dateUpdated: Date;
@@ -5,7 +5,7 @@ import Response from "../../../http/response";
5
5
  import V1 from "../V1";
6
6
  import { SinkTestListInstance } from "./sink/sinkTest";
7
7
  import { SinkValidateListInstance } from "./sink/sinkValidate";
8
- export type SinkSinkType = "kinesis" | "webhook" | "segment";
8
+ export type SinkSinkType = "kinesis" | "webhook" | "segment" | "email";
9
9
  export type SinkStatus = "initialized" | "validating" | "active" | "failed";
10
10
  /**
11
11
  * Options to pass to update a SinkInstance
@@ -21,7 +21,7 @@ export interface SinkListInstanceCreateOptions {
21
21
  /** A human readable description for the Sink **This value should not contain PII.** */
22
22
  description: string;
23
23
  /** The information required for Twilio to connect to the provided Sink encoded as JSON. */
24
- sinkConfiguration: any;
24
+ sinkConfiguration: object;
25
25
  /** */
26
26
  sinkType: SinkSinkType;
27
27
  }
@@ -135,7 +135,7 @@ interface SinkResource {
135
135
  date_updated: Date;
136
136
  description: string;
137
137
  sid: string;
138
- sink_configuration: any;
138
+ sink_configuration: Record<string, object>;
139
139
  sink_type: SinkSinkType;
140
140
  status: SinkStatus;
141
141
  url: string;
@@ -165,7 +165,7 @@ export declare class SinkInstance {
165
165
  /**
166
166
  * The information required for Twilio to connect to the provided Sink encoded as JSON.
167
167
  */
168
- sinkConfiguration: any;
168
+ sinkConfiguration: Record<string, object>;
169
169
  sinkType: SinkSinkType;
170
170
  status: SinkStatus;
171
171
  /**
@@ -220,7 +220,7 @@ export declare class SinkInstance {
220
220
  dateUpdated: Date;
221
221
  description: string;
222
222
  sid: string;
223
- sinkConfiguration: any;
223
+ sinkConfiguration: Record<string, object>;
224
224
  sinkType: SinkSinkType;
225
225
  status: SinkStatus;
226
226
  url: string;
@@ -24,7 +24,7 @@ export interface SubscriptionListInstanceCreateOptions {
24
24
  /** The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created. */
25
25
  sinkSid: string;
26
26
  /** An array of objects containing the subscribed Event Types */
27
- types: Array<any>;
27
+ types: Array<object>;
28
28
  /** Receive events from all children accounts in the parent account subscription. */
29
29
  receiveEventsFromSubaccounts?: boolean;
30
30
  }
@@ -200,7 +200,7 @@ function SubscriptionListInstance(version) {
200
200
  let data = {};
201
201
  data["Description"] = params["description"];
202
202
  data["SinkSid"] = params["sinkSid"];
203
- data["Types"] = serialize.map(params["types"], (e) => serialize.object(e));
203
+ data["Types"] = serialize.map(params["types"], (e) => e);
204
204
  if (params["receiveEventsFromSubaccounts"] !== undefined)
205
205
  data["ReceiveEventsFromSubaccounts"] = serialize.bool(params["receiveEventsFromSubaccounts"]);
206
206
  const headers = {};