twilio 5.7.0 → 5.7.2

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 (258) hide show
  1. package/lib/rest/Twilio.d.ts +0 -10
  2. package/lib/rest/Twilio.js +0 -11
  3. package/lib/rest/accounts/v1/bulkConsents.d.ts +4 -4
  4. package/lib/rest/accounts/v1/bulkConsents.js +1 -1
  5. package/lib/rest/accounts/v1/bulkContacts.d.ts +4 -4
  6. package/lib/rest/accounts/v1/bulkContacts.js +1 -1
  7. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +15 -10
  8. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.js +2 -2
  9. package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +3 -0
  10. package/lib/rest/api/v2010/account/call/event.d.ts +6 -6
  11. package/lib/rest/api/v2010/account/call/payment.d.ts +1 -1
  12. package/lib/rest/api/v2010/account/call/recording.d.ts +3 -3
  13. package/lib/rest/api/v2010/account/conference/recording.d.ts +3 -3
  14. package/lib/rest/api/v2010/account/connectApp.d.ts +3 -0
  15. package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +3 -3
  16. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +3 -0
  17. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +3 -0
  18. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +3 -0
  19. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +3 -0
  20. package/lib/rest/api/v2010/account/recording.d.ts +4 -4
  21. package/lib/rest/api/v2010/account/usage/trigger.d.ts +3 -0
  22. package/lib/rest/bulkexports/v1/export/day.d.ts +3 -3
  23. package/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +3 -3
  24. package/lib/rest/bulkexports/v1/export/job.d.ts +3 -3
  25. package/lib/rest/chat/v1/credential.d.ts +3 -0
  26. package/lib/rest/chat/v1/service/channel.d.ts +3 -0
  27. package/lib/rest/chat/v1/service/role.d.ts +3 -0
  28. package/lib/rest/chat/v1/service/user/userChannel.d.ts +3 -0
  29. package/lib/rest/chat/v1/service.d.ts +9 -9
  30. package/lib/rest/chat/v2/credential.d.ts +3 -0
  31. package/lib/rest/chat/v2/service/channel/message.d.ts +3 -3
  32. package/lib/rest/chat/v2/service/channel/webhook.d.ts +3 -3
  33. package/lib/rest/chat/v2/service/channel.d.ts +3 -0
  34. package/lib/rest/chat/v2/service/role.d.ts +3 -0
  35. package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -0
  36. package/lib/rest/chat/v2/service.d.ts +9 -9
  37. package/lib/rest/chat/v3/channel.d.ts +3 -0
  38. package/lib/rest/content/v2/content.d.ts +6 -6
  39. package/lib/rest/content/v2/contentAndApprovals.d.ts +9 -9
  40. package/lib/rest/conversations/v1/addressConfiguration.d.ts +7 -7
  41. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +6 -3
  42. package/lib/rest/conversations/v1/conversation/message.d.ts +9 -9
  43. package/lib/rest/conversations/v1/conversation/participant.d.ts +6 -6
  44. package/lib/rest/conversations/v1/conversation/webhook.d.ts +7 -7
  45. package/lib/rest/conversations/v1/conversation.d.ts +9 -9
  46. package/lib/rest/conversations/v1/conversationWithParticipants.d.ts +6 -6
  47. package/lib/rest/conversations/v1/credential.d.ts +6 -3
  48. package/lib/rest/conversations/v1/participantConversation.d.ts +12 -9
  49. package/lib/rest/conversations/v1/role.d.ts +6 -3
  50. package/lib/rest/conversations/v1/service/binding.d.ts +3 -3
  51. package/lib/rest/conversations/v1/service/configuration/notification.d.ts +9 -9
  52. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +6 -3
  53. package/lib/rest/conversations/v1/service/conversation/message.d.ts +9 -9
  54. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +6 -6
  55. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +7 -7
  56. package/lib/rest/conversations/v1/service/conversation.d.ts +9 -9
  57. package/lib/rest/conversations/v1/service/conversationWithParticipants.d.ts +6 -6
  58. package/lib/rest/conversations/v1/service/participantConversation.d.ts +12 -9
  59. package/lib/rest/conversations/v1/service/role.d.ts +6 -3
  60. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +9 -6
  61. package/lib/rest/conversations/v1/service/user.d.ts +3 -3
  62. package/lib/rest/conversations/v1/service.d.ts +3 -3
  63. package/lib/rest/conversations/v1/user/userConversation.d.ts +9 -6
  64. package/lib/rest/conversations/v1/user.d.ts +3 -3
  65. package/lib/rest/events/v1/sink.d.ts +4 -4
  66. package/lib/rest/events/v1/subscription.d.ts +1 -1
  67. package/lib/rest/events/v1/subscription.js +1 -1
  68. package/lib/rest/flexApi/v1/assessments.d.ts +3 -3
  69. package/lib/rest/flexApi/v1/configuration.d.ts +66 -66
  70. package/lib/rest/flexApi/v1/flexFlow.d.ts +3 -3
  71. package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +3 -3
  72. package/lib/rest/flexApi/v1/insightsConversations.d.ts +3 -3
  73. package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +3 -3
  74. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +6 -6
  75. package/lib/rest/flexApi/v1/insightsSegments.d.ts +9 -9
  76. package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +9 -9
  77. package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +3 -3
  78. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +4 -4
  79. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +5 -5
  80. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.d.ts +6 -0
  81. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +4 -1
  82. package/lib/rest/flexApi/v1/interaction.d.ts +8 -8
  83. package/lib/rest/flexApi/v1/pluginConfiguration.d.ts +1 -1
  84. package/lib/rest/flexApi/v1/pluginConfiguration.js +1 -1
  85. package/lib/rest/frontlineApi/v1/user.d.ts +3 -0
  86. package/lib/rest/intelligence/v2/customOperator.d.ts +5 -5
  87. package/lib/rest/intelligence/v2/operator.d.ts +3 -3
  88. package/lib/rest/intelligence/v2/operatorType.d.ts +3 -3
  89. package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +3 -3
  90. package/lib/rest/intelligence/v2/service.d.ts +3 -0
  91. package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +15 -15
  92. package/lib/rest/intelligence/v2/transcript/sentence.d.ts +3 -3
  93. package/lib/rest/intelligence/v2/transcript.d.ts +4 -4
  94. package/lib/rest/ipMessaging/v1/service.d.ts +9 -9
  95. package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +3 -3
  96. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +3 -3
  97. package/lib/rest/ipMessaging/v2/service.d.ts +9 -9
  98. package/lib/rest/lookups/V2.d.ts +20 -0
  99. package/lib/rest/lookups/V2.js +25 -0
  100. package/lib/rest/lookups/v2/bucket.d.ts +205 -0
  101. package/lib/rest/lookups/v2/bucket.js +187 -0
  102. package/lib/rest/lookups/v2/lookupOverride.d.ts +264 -0
  103. package/lib/rest/lookups/v2/lookupOverride.js +225 -0
  104. package/lib/rest/lookups/v2/phoneNumber.d.ts +3 -0
  105. package/lib/rest/lookups/v2/query.d.ts +175 -0
  106. package/lib/rest/lookups/v2/query.js +123 -0
  107. package/lib/rest/lookups/v2/rateLimit.d.ts +83 -0
  108. package/lib/rest/lookups/v2/rateLimit.js +82 -0
  109. package/lib/rest/messaging/v1/service/destinationAlphaSender.d.ts +6 -0
  110. package/lib/rest/messaging/v1/service/destinationAlphaSender.js +2 -0
  111. package/lib/rest/messaging/v1/service.d.ts +3 -3
  112. package/lib/rest/messaging/v2/channelsSender.d.ts +49 -4
  113. package/lib/rest/messaging/v2/channelsSender.js +14 -2
  114. package/lib/rest/monitor/v1/event.d.ts +3 -3
  115. package/lib/rest/notify/v1/credential.d.ts +3 -0
  116. package/lib/rest/notify/v1/service/notification.d.ts +28 -28
  117. package/lib/rest/numbers/v1/bulkEligibility.d.ts +3 -3
  118. package/lib/rest/numbers/v1/eligibility.d.ts +3 -3
  119. package/lib/rest/numbers/v1/portingPortIn.d.ts +6 -6
  120. package/lib/rest/numbers/v2/bulkHostedNumberOrder.d.ts +3 -3
  121. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +3 -3
  122. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +5 -5
  123. package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +3 -3
  124. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +3 -3
  125. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +8 -8
  126. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +3 -3
  127. package/lib/rest/preview/marketplace/availableAddOn.d.ts +3 -3
  128. package/lib/rest/preview/marketplace/installedAddOn.d.ts +5 -5
  129. package/lib/rest/preview/wireless/sim/usage.d.ts +15 -15
  130. package/lib/rest/proxy/v1/service/session/interaction.d.ts +3 -0
  131. package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +3 -0
  132. package/lib/rest/proxy/v1/service/session.d.ts +1 -1
  133. package/lib/rest/proxy/v1/service/session.js +1 -1
  134. package/lib/rest/proxy/v1/service.d.ts +0 -8
  135. package/lib/rest/proxy/v1/service.js +0 -13
  136. package/lib/rest/serverless/v1/service/build.d.ts +9 -9
  137. package/lib/rest/serverless/v1/service/environment/log.d.ts +6 -7
  138. package/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +3 -3
  139. package/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +3 -3
  140. package/lib/rest/studio/v1/flow/engagement/step.d.ts +3 -3
  141. package/lib/rest/studio/v1/flow/engagement.d.ts +4 -4
  142. package/lib/rest/studio/v1/flow/execution/executionContext.d.ts +3 -3
  143. package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +3 -3
  144. package/lib/rest/studio/v1/flow/execution/executionStep.d.ts +3 -3
  145. package/lib/rest/studio/v1/flow/execution.d.ts +4 -4
  146. package/lib/rest/studio/v2/flow/execution/executionContext.d.ts +3 -3
  147. package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +3 -3
  148. package/lib/rest/studio/v2/flow/execution/executionStep.d.ts +3 -3
  149. package/lib/rest/studio/v2/flow/execution.d.ts +4 -4
  150. package/lib/rest/studio/v2/flow/flowRevision.d.ts +6 -6
  151. package/lib/rest/studio/v2/flow.d.ts +11 -11
  152. package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
  153. package/lib/rest/supersim/v1/network.d.ts +3 -3
  154. package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +3 -3
  155. package/lib/rest/supersim/v1/settingsUpdate.d.ts +3 -3
  156. package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +3 -0
  157. package/lib/rest/supersim/v1/usageRecord.d.ts +3 -3
  158. package/lib/rest/sync/v1/service/document/documentPermission.d.ts +3 -3
  159. package/lib/rest/sync/v1/service/document.d.ts +3 -3
  160. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +3 -3
  161. package/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts +3 -3
  162. package/lib/rest/sync/v1/service/syncList.d.ts +3 -3
  163. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +3 -3
  164. package/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts +3 -3
  165. package/lib/rest/sync/v1/service/syncMap.d.ts +3 -3
  166. package/lib/rest/sync/v1/service/syncStream.d.ts +3 -3
  167. package/lib/rest/sync/v1/service.d.ts +3 -3
  168. package/lib/rest/taskrouter/v1/workspace/event.d.ts +3 -3
  169. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +3 -0
  170. package/lib/rest/taskrouter/v1/workspace/task.d.ts +4 -1
  171. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +3 -3
  172. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +12 -12
  173. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +9 -9
  174. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +6 -6
  175. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +6 -6
  176. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +3 -0
  177. package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +3 -3
  178. package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +3 -3
  179. package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +3 -3
  180. package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +6 -6
  181. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +9 -9
  182. package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +6 -6
  183. package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +6 -6
  184. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +9 -9
  185. package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +9 -9
  186. package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +6 -6
  187. package/lib/rest/taskrouter/v1/workspace.d.ts +3 -0
  188. package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +3 -0
  189. package/lib/rest/trunking/v1/trunk/recording.d.ts +6 -0
  190. package/lib/rest/trunking/v1/trunk.d.ts +12 -3
  191. package/lib/rest/trunking/v1/trunk.js +2 -0
  192. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +3 -3
  193. package/lib/rest/trusthub/v1/customerProfiles.d.ts +3 -3
  194. package/lib/rest/trusthub/v1/endUser.d.ts +5 -5
  195. package/lib/rest/trusthub/v1/endUserType.d.ts +3 -3
  196. package/lib/rest/trusthub/v1/policies.d.ts +3 -3
  197. package/lib/rest/trusthub/v1/supportingDocument.d.ts +5 -5
  198. package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +3 -3
  199. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +3 -3
  200. package/lib/rest/trusthub/v1/trustProducts.d.ts +3 -3
  201. package/lib/rest/verify/v2/form.d.ts +9 -6
  202. package/lib/rest/verify/v2/service/accessToken.d.ts +3 -0
  203. package/lib/rest/verify/v2/service/entity/challenge.d.ts +21 -12
  204. package/lib/rest/verify/v2/service/entity/challenge.js +1 -1
  205. package/lib/rest/verify/v2/service/entity/factor.d.ts +12 -6
  206. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +16 -10
  207. package/lib/rest/verify/v2/service/verification.d.ts +11 -11
  208. package/lib/rest/verify/v2/service/verificationCheck.d.ts +3 -3
  209. package/lib/rest/verify/v2/service/webhook.d.ts +3 -0
  210. package/lib/rest/verify/v2/service.d.ts +9 -9
  211. package/lib/rest/verify/v2/template.d.ts +3 -3
  212. package/lib/rest/verify/v2/verificationAttempt.d.ts +13 -10
  213. package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +2 -2
  214. package/lib/rest/video/v1/composition.d.ts +3 -3
  215. package/lib/rest/video/v1/recording.d.ts +3 -3
  216. package/lib/rest/video/v1/room/transcriptions.d.ts +316 -0
  217. package/lib/rest/{proxy/v1/service/shortCode.js → video/v1/room/transcriptions.js} +61 -78
  218. package/lib/rest/video/v1/room.d.ts +8 -0
  219. package/lib/rest/video/v1/room.js +13 -0
  220. package/lib/rest/wireless/v1/sim/dataSession.d.ts +3 -3
  221. package/lib/rest/wireless/v1/sim/usageRecord.d.ts +9 -9
  222. package/lib/rest/wireless/v1/usageRecord.d.ts +9 -9
  223. package/lib/twiml/VoiceResponse.d.ts +32 -1
  224. package/lib/twiml/VoiceResponse.js +18 -0
  225. package/package.json +1 -1
  226. package/lib/rest/Knowledge.d.ts +0 -4
  227. package/lib/rest/Knowledge.js +0 -8
  228. package/lib/rest/KnowledgeBase.d.ts +0 -13
  229. package/lib/rest/KnowledgeBase.js +0 -31
  230. package/lib/rest/Microvisor.d.ts +0 -14
  231. package/lib/rest/Microvisor.js +0 -22
  232. package/lib/rest/MicrovisorBase.d.ts +0 -13
  233. package/lib/rest/MicrovisorBase.js +0 -31
  234. package/lib/rest/knowledge/V1.d.ts +0 -15
  235. package/lib/rest/knowledge/V1.js +0 -36
  236. package/lib/rest/knowledge/v1/knowledge/chunk.d.ts +0 -167
  237. package/lib/rest/knowledge/v1/knowledge/chunk.js +0 -131
  238. package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.d.ts +0 -101
  239. package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.js +0 -118
  240. package/lib/rest/knowledge/v1/knowledge.d.ts +0 -406
  241. package/lib/rest/knowledge/v1/knowledge.js +0 -300
  242. package/lib/rest/microvisor/V1.d.ts +0 -30
  243. package/lib/rest/microvisor/V1.js +0 -56
  244. package/lib/rest/microvisor/v1/accountConfig.d.ts +0 -263
  245. package/lib/rest/microvisor/v1/accountConfig.js +0 -254
  246. package/lib/rest/microvisor/v1/accountSecret.d.ts +0 -257
  247. package/lib/rest/microvisor/v1/accountSecret.js +0 -252
  248. package/lib/rest/microvisor/v1/app/appManifest.d.ts +0 -101
  249. package/lib/rest/microvisor/v1/app/appManifest.js +0 -118
  250. package/lib/rest/microvisor/v1/app.d.ts +0 -251
  251. package/lib/rest/microvisor/v1/app.js +0 -222
  252. package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +0 -271
  253. package/lib/rest/microvisor/v1/device/deviceConfig.js +0 -262
  254. package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +0 -265
  255. package/lib/rest/microvisor/v1/device/deviceSecret.js +0 -260
  256. package/lib/rest/microvisor/v1/device.d.ts +0 -299
  257. package/lib/rest/microvisor/v1/device.js +0 -250
  258. package/lib/rest/proxy/v1/service/shortCode.d.ts +0 -316
@@ -79,9 +79,9 @@ interface ConversationWithParticipantsResource {
79
79
  state: ConversationWithParticipantsState;
80
80
  date_created: Date;
81
81
  date_updated: Date;
82
- timers: Record<string, object>;
82
+ timers: any;
83
83
  links: Record<string, string>;
84
- bindings: Record<string, object>;
84
+ bindings: any;
85
85
  url: string;
86
86
  }
87
87
  export declare class ConversationWithParticipantsInstance {
@@ -127,12 +127,12 @@ export declare class ConversationWithParticipantsInstance {
127
127
  /**
128
128
  * Timer date values representing state update for this conversation.
129
129
  */
130
- timers: Record<string, object>;
130
+ timers: any;
131
131
  /**
132
132
  * 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.
133
133
  */
134
134
  links: Record<string, string>;
135
- bindings: Record<string, object>;
135
+ bindings: any;
136
136
  /**
137
137
  * An absolute API resource URL for this conversation.
138
138
  */
@@ -153,9 +153,9 @@ export declare class ConversationWithParticipantsInstance {
153
153
  state: ConversationWithParticipantsState;
154
154
  dateCreated: Date;
155
155
  dateUpdated: Date;
156
- timers: Record<string, object>;
156
+ timers: any;
157
157
  links: Record<string, string>;
158
- bindings: Record<string, object>;
158
+ bindings: any;
159
159
  url: string;
160
160
  };
161
161
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -3,6 +3,9 @@ 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
+ /**
7
+ * The current state of this User Conversation. One of `inactive`, `active` or `closed`.
8
+ */
6
9
  export type ParticipantConversationState = "inactive" | "active" | "closed";
7
10
  /**
8
11
  * Options to pass to each
@@ -12,7 +15,7 @@ export interface ParticipantConversationListInstanceEachOptions {
12
15
  identity?: string;
13
16
  /** A unique string identifier for the conversation participant who\'s not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded. */
14
17
  address?: string;
15
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
18
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
16
19
  pageSize?: number;
17
20
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
18
21
  callback?: (item: ParticipantConversationInstance, done: (err?: Error) => void) => void;
@@ -29,7 +32,7 @@ export interface ParticipantConversationListInstanceOptions {
29
32
  identity?: string;
30
33
  /** A unique string identifier for the conversation participant who\'s not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded. */
31
34
  address?: string;
32
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
35
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
33
36
  pageSize?: number;
34
37
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
35
38
  limit?: number;
@@ -42,7 +45,7 @@ export interface ParticipantConversationListInstancePageOptions {
42
45
  identity?: string;
43
46
  /** A unique string identifier for the conversation participant who\'s not a Conversation User. This parameter could be found in messaging_binding.address field of Participant resource. It should be url-encoded. */
44
47
  address?: string;
45
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
48
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
46
49
  pageSize?: number;
47
50
  /** Page Number, this value is simply for client state */
48
51
  pageNumber?: number;
@@ -122,7 +125,7 @@ interface ParticipantConversationResource {
122
125
  participant_sid: string;
123
126
  participant_user_sid: string;
124
127
  participant_identity: string;
125
- participant_messaging_binding: Record<string, object>;
128
+ participant_messaging_binding: any;
126
129
  conversation_sid: string;
127
130
  conversation_unique_name: string;
128
131
  conversation_friendly_name: string;
@@ -131,7 +134,7 @@ interface ParticipantConversationResource {
131
134
  conversation_date_updated: Date;
132
135
  conversation_created_by: string;
133
136
  conversation_state: ParticipantConversationState;
134
- conversation_timers: Record<string, object>;
137
+ conversation_timers: any;
135
138
  links: Record<string, string>;
136
139
  }
137
140
  export declare class ParticipantConversationInstance {
@@ -160,7 +163,7 @@ export declare class ParticipantConversationInstance {
160
163
  /**
161
164
  * Information about how this participant exchanges messages with the conversation. A JSON parameter consisting of type and address fields of the participant.
162
165
  */
163
- participantMessagingBinding: Record<string, object>;
166
+ participantMessagingBinding: any;
164
167
  /**
165
168
  * The unique ID of the [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) this Participant belongs to.
166
169
  */
@@ -193,7 +196,7 @@ export declare class ParticipantConversationInstance {
193
196
  /**
194
197
  * Timer date values representing state update for this conversation.
195
198
  */
196
- conversationTimers: Record<string, object>;
199
+ conversationTimers: any;
197
200
  /**
198
201
  * 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
202
  */
@@ -209,7 +212,7 @@ export declare class ParticipantConversationInstance {
209
212
  participantSid: string;
210
213
  participantUserSid: string;
211
214
  participantIdentity: string;
212
- participantMessagingBinding: Record<string, object>;
215
+ participantMessagingBinding: any;
213
216
  conversationSid: string;
214
217
  conversationUniqueName: string;
215
218
  conversationFriendlyName: string;
@@ -218,7 +221,7 @@ export declare class ParticipantConversationInstance {
218
221
  conversationDateUpdated: Date;
219
222
  conversationCreatedBy: string;
220
223
  conversationState: ParticipantConversationState;
221
- conversationTimers: Record<string, object>;
224
+ conversationTimers: any;
222
225
  links: Record<string, string>;
223
226
  };
224
227
  [inspect.custom](_depth: any, options: InspectOptions): string;
@@ -3,6 +3,9 @@ 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
+ /**
7
+ * The type of role. Can be: `conversation` for [Conversation](https://www.twilio.com/docs/conversations/api/conversation-resource) roles or `service` for [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) roles.
8
+ */
6
9
  export type RoleRoleType = "conversation" | "service";
7
10
  /**
8
11
  * Options to pass to update a RoleInstance
@@ -26,7 +29,7 @@ export interface RoleListInstanceCreateOptions {
26
29
  * Options to pass to each
27
30
  */
28
31
  export interface RoleListInstanceEachOptions {
29
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
32
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
30
33
  pageSize?: number;
31
34
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
32
35
  callback?: (item: RoleInstance, done: (err?: Error) => void) => void;
@@ -39,7 +42,7 @@ export interface RoleListInstanceEachOptions {
39
42
  * Options to pass to list
40
43
  */
41
44
  export interface RoleListInstanceOptions {
42
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
45
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
43
46
  pageSize?: number;
44
47
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
45
48
  limit?: number;
@@ -48,7 +51,7 @@ export interface RoleListInstanceOptions {
48
51
  * Options to pass to page
49
52
  */
50
53
  export interface RoleListInstancePageOptions {
51
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
54
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
52
55
  pageSize?: number;
53
56
  /** Page Number, this value is simply for client state */
54
57
  pageNumber?: number;
@@ -7,6 +7,9 @@ import V1 from "../../../V1";
7
7
  * The Notification Level of this User Conversation. One of `default` or `muted`.
8
8
  */
9
9
  export type UserConversationNotificationLevel = "default" | "muted";
10
+ /**
11
+ * The current state of this User Conversation. One of `inactive`, `active` or `closed`.
12
+ */
10
13
  export type UserConversationState = "inactive" | "active" | "closed";
11
14
  /**
12
15
  * Options to pass to update a UserConversationInstance
@@ -23,7 +26,7 @@ export interface UserConversationContextUpdateOptions {
23
26
  * Options to pass to each
24
27
  */
25
28
  export interface UserConversationListInstanceEachOptions {
26
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
29
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
27
30
  pageSize?: number;
28
31
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
29
32
  callback?: (item: UserConversationInstance, done: (err?: Error) => void) => void;
@@ -36,7 +39,7 @@ export interface UserConversationListInstanceEachOptions {
36
39
  * Options to pass to list
37
40
  */
38
41
  export interface UserConversationListInstanceOptions {
39
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
42
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
40
43
  pageSize?: number;
41
44
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
42
45
  limit?: number;
@@ -45,7 +48,7 @@ export interface UserConversationListInstanceOptions {
45
48
  * Options to pass to page
46
49
  */
47
50
  export interface UserConversationListInstancePageOptions {
48
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
51
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
49
52
  pageSize?: number;
50
53
  /** Page Number, this value is simply for client state */
51
54
  pageNumber?: number;
@@ -126,7 +129,7 @@ interface UserConversationResource {
126
129
  user_sid: string;
127
130
  friendly_name: string;
128
131
  conversation_state: UserConversationState;
129
- timers: Record<string, object>;
132
+ timers: any;
130
133
  attributes: string;
131
134
  date_created: Date;
132
135
  date_updated: Date;
@@ -177,7 +180,7 @@ export declare class UserConversationInstance {
177
180
  /**
178
181
  * Timer date values representing state update for this conversation.
179
182
  */
180
- timers: Record<string, object>;
183
+ timers: any;
181
184
  /**
182
185
  * 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.
183
186
  */
@@ -253,7 +256,7 @@ export declare class UserConversationInstance {
253
256
  userSid: string;
254
257
  friendlyName: string;
255
258
  conversationState: UserConversationState;
256
- timers: Record<string, object>;
259
+ timers: any;
257
260
  attributes: string;
258
261
  dateCreated: Date;
259
262
  dateUpdated: Date;
@@ -44,7 +44,7 @@ export interface UserListInstanceCreateOptions {
44
44
  * Options to pass to each
45
45
  */
46
46
  export interface UserListInstanceEachOptions {
47
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
47
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
48
48
  pageSize?: number;
49
49
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
50
50
  callback?: (item: UserInstance, done: (err?: Error) => void) => void;
@@ -57,7 +57,7 @@ export interface UserListInstanceEachOptions {
57
57
  * Options to pass to list
58
58
  */
59
59
  export interface UserListInstanceOptions {
60
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
60
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
61
61
  pageSize?: number;
62
62
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
63
63
  limit?: number;
@@ -66,7 +66,7 @@ export interface UserListInstanceOptions {
66
66
  * Options to pass to page
67
67
  */
68
68
  export interface UserListInstancePageOptions {
69
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
69
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
70
70
  pageSize?: number;
71
71
  /** Page Number, this value is simply for client state */
72
72
  pageNumber?: number;
@@ -21,7 +21,7 @@ export interface ServiceListInstanceCreateOptions {
21
21
  * Options to pass to each
22
22
  */
23
23
  export interface ServiceListInstanceEachOptions {
24
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
24
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
25
25
  pageSize?: number;
26
26
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
27
27
  callback?: (item: ServiceInstance, done: (err?: Error) => void) => void;
@@ -34,7 +34,7 @@ export interface ServiceListInstanceEachOptions {
34
34
  * Options to pass to list
35
35
  */
36
36
  export interface ServiceListInstanceOptions {
37
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
37
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
38
38
  pageSize?: number;
39
39
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
40
40
  limit?: number;
@@ -43,7 +43,7 @@ export interface ServiceListInstanceOptions {
43
43
  * Options to pass to page
44
44
  */
45
45
  export interface ServiceListInstancePageOptions {
46
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
46
+ /** How many resources to return in each list page. The default is 50, and the maximum is 100. */
47
47
  pageSize?: number;
48
48
  /** Page Number, this value is simply for client state */
49
49
  pageNumber?: number;
@@ -7,6 +7,9 @@ import V1 from "../../V1";
7
7
  * The Notification Level of this User Conversation. One of `default` or `muted`.
8
8
  */
9
9
  export type UserConversationNotificationLevel = "default" | "muted";
10
+ /**
11
+ * The current state of this User Conversation. One of `inactive`, `active` or `closed`.
12
+ */
10
13
  export type UserConversationState = "inactive" | "active" | "closed";
11
14
  /**
12
15
  * Options to pass to update a UserConversationInstance
@@ -23,7 +26,7 @@ export interface UserConversationContextUpdateOptions {
23
26
  * Options to pass to each
24
27
  */
25
28
  export interface UserConversationListInstanceEachOptions {
26
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
29
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
27
30
  pageSize?: number;
28
31
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
29
32
  callback?: (item: UserConversationInstance, done: (err?: Error) => void) => void;
@@ -36,7 +39,7 @@ export interface UserConversationListInstanceEachOptions {
36
39
  * Options to pass to list
37
40
  */
38
41
  export interface UserConversationListInstanceOptions {
39
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
42
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
40
43
  pageSize?: number;
41
44
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
42
45
  limit?: number;
@@ -45,7 +48,7 @@ export interface UserConversationListInstanceOptions {
45
48
  * Options to pass to page
46
49
  */
47
50
  export interface UserConversationListInstancePageOptions {
48
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
51
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
49
52
  pageSize?: number;
50
53
  /** Page Number, this value is simply for client state */
51
54
  pageNumber?: number;
@@ -125,7 +128,7 @@ interface UserConversationResource {
125
128
  user_sid: string;
126
129
  friendly_name: string;
127
130
  conversation_state: UserConversationState;
128
- timers: Record<string, object>;
131
+ timers: any;
129
132
  attributes: string;
130
133
  date_created: Date;
131
134
  date_updated: Date;
@@ -176,7 +179,7 @@ export declare class UserConversationInstance {
176
179
  /**
177
180
  * Timer date values representing state update for this conversation.
178
181
  */
179
- timers: Record<string, object>;
182
+ timers: any;
180
183
  /**
181
184
  * 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.
182
185
  */
@@ -252,7 +255,7 @@ export declare class UserConversationInstance {
252
255
  userSid: string;
253
256
  friendlyName: string;
254
257
  conversationState: UserConversationState;
255
- timers: Record<string, object>;
258
+ timers: any;
256
259
  attributes: string;
257
260
  dateCreated: Date;
258
261
  dateUpdated: Date;
@@ -44,7 +44,7 @@ export interface UserListInstanceCreateOptions {
44
44
  * Options to pass to each
45
45
  */
46
46
  export interface UserListInstanceEachOptions {
47
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
47
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
48
48
  pageSize?: number;
49
49
  /** Function to process each record. If this and a positional callback are passed, this one will be used */
50
50
  callback?: (item: UserInstance, done: (err?: Error) => void) => void;
@@ -57,7 +57,7 @@ export interface UserListInstanceEachOptions {
57
57
  * Options to pass to list
58
58
  */
59
59
  export interface UserListInstanceOptions {
60
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
60
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
61
61
  pageSize?: number;
62
62
  /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
63
63
  limit?: number;
@@ -66,7 +66,7 @@ export interface UserListInstanceOptions {
66
66
  * Options to pass to page
67
67
  */
68
68
  export interface UserListInstancePageOptions {
69
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
69
+ /** How many resources to return in each list page. The default is 50, and the maximum is 50. */
70
70
  pageSize?: number;
71
71
  /** Page Number, this value is simply for client state */
72
72
  pageNumber?: number;
@@ -27,7 +27,7 @@ export interface SinkListInstanceCreateOptions {
27
27
  /** A human readable description for the Sink **This value should not contain PII.** */
28
28
  description: string;
29
29
  /** The information required for Twilio to connect to the provided Sink encoded as JSON. */
30
- sinkConfiguration: object;
30
+ sinkConfiguration: any;
31
31
  /** */
32
32
  sinkType: SinkSinkType;
33
33
  }
@@ -141,7 +141,7 @@ interface SinkResource {
141
141
  date_updated: Date;
142
142
  description: string;
143
143
  sid: string;
144
- sink_configuration: Record<string, object>;
144
+ sink_configuration: any;
145
145
  sink_type: SinkSinkType;
146
146
  status: SinkStatus;
147
147
  url: string;
@@ -171,7 +171,7 @@ export declare class SinkInstance {
171
171
  /**
172
172
  * The information required for Twilio to connect to the provided Sink encoded as JSON.
173
173
  */
174
- sinkConfiguration: Record<string, object>;
174
+ sinkConfiguration: any;
175
175
  sinkType: SinkSinkType;
176
176
  status: SinkStatus;
177
177
  /**
@@ -226,7 +226,7 @@ export declare class SinkInstance {
226
226
  dateUpdated: Date;
227
227
  description: string;
228
228
  sid: string;
229
- sinkConfiguration: Record<string, object>;
229
+ sinkConfiguration: any;
230
230
  sinkType: SinkSinkType;
231
231
  status: SinkStatus;
232
232
  url: string;
@@ -22,7 +22,7 @@ export interface SubscriptionListInstanceCreateOptions {
22
22
  /** 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. */
23
23
  sinkSid: string;
24
24
  /** An array of objects containing the subscribed Event Types */
25
- types: Array<object>;
25
+ types: Array<any>;
26
26
  }
27
27
  /**
28
28
  * Options to pass to each
@@ -196,7 +196,7 @@ function SubscriptionListInstance(version) {
196
196
  let data = {};
197
197
  data["Description"] = params["description"];
198
198
  data["SinkSid"] = params["sinkSid"];
199
- data["Types"] = serialize.map(params["types"], (e) => e);
199
+ data["Types"] = serialize.map(params["types"], (e) => serialize.object(e));
200
200
  const headers = {};
201
201
  headers["Content-Type"] = "application/x-www-form-urlencoded";
202
202
  headers["Accept"] = "application/json";
@@ -136,7 +136,7 @@ interface AssessmentsResource {
136
136
  user_email: string;
137
137
  answer_text: string;
138
138
  answer_id: string;
139
- assessment: Record<string, object>;
139
+ assessment: any;
140
140
  timestamp: number;
141
141
  url: string;
142
142
  }
@@ -192,7 +192,7 @@ export declare class AssessmentsInstance {
192
192
  /**
193
193
  * Assessment Details associated with an assessment
194
194
  */
195
- assessment: Record<string, object>;
195
+ assessment: any;
196
196
  timestamp: number;
197
197
  url: string;
198
198
  private get _proxy();
@@ -222,7 +222,7 @@ export declare class AssessmentsInstance {
222
222
  userEmail: string;
223
223
  answerText: string;
224
224
  answerId: string;
225
- assessment: Record<string, object>;
225
+ assessment: any;
226
226
  timestamp: number;
227
227
  url: string;
228
228
  };