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
@@ -1,30 +0,0 @@
1
- import MicrovisorBase from "../MicrovisorBase";
2
- import Version from "../../base/Version";
3
- import { AccountConfigListInstance } from "./v1/accountConfig";
4
- import { AccountSecretListInstance } from "./v1/accountSecret";
5
- import { AppListInstance } from "./v1/app";
6
- import { DeviceListInstance } from "./v1/device";
7
- export default class V1 extends Version {
8
- /**
9
- * Initialize the V1 version of Microvisor
10
- *
11
- * @param domain - The Twilio (Twilio.Microvisor) domain
12
- */
13
- constructor(domain: MicrovisorBase);
14
- /** accountConfigs - { Twilio.Microvisor.V1.AccountConfigListInstance } resource */
15
- protected _accountConfigs?: AccountConfigListInstance;
16
- /** accountSecrets - { Twilio.Microvisor.V1.AccountSecretListInstance } resource */
17
- protected _accountSecrets?: AccountSecretListInstance;
18
- /** apps - { Twilio.Microvisor.V1.AppListInstance } resource */
19
- protected _apps?: AppListInstance;
20
- /** devices - { Twilio.Microvisor.V1.DeviceListInstance } resource */
21
- protected _devices?: DeviceListInstance;
22
- /** Getter for accountConfigs resource */
23
- get accountConfigs(): AccountConfigListInstance;
24
- /** Getter for accountSecrets resource */
25
- get accountSecrets(): AccountSecretListInstance;
26
- /** Getter for apps resource */
27
- get apps(): AppListInstance;
28
- /** Getter for devices resource */
29
- get devices(): DeviceListInstance;
30
- }
@@ -1,56 +0,0 @@
1
- "use strict";
2
- /*
3
- * This code was generated by
4
- * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
- * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
- * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
- *
8
- * Twilio - Microvisor
9
- * This is the public Twilio REST API.
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator.
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- const Version_1 = __importDefault(require("../../base/Version"));
20
- const accountConfig_1 = require("./v1/accountConfig");
21
- const accountSecret_1 = require("./v1/accountSecret");
22
- const app_1 = require("./v1/app");
23
- const device_1 = require("./v1/device");
24
- class V1 extends Version_1.default {
25
- /**
26
- * Initialize the V1 version of Microvisor
27
- *
28
- * @param domain - The Twilio (Twilio.Microvisor) domain
29
- */
30
- constructor(domain) {
31
- super(domain, "v1");
32
- }
33
- /** Getter for accountConfigs resource */
34
- get accountConfigs() {
35
- this._accountConfigs =
36
- this._accountConfigs || (0, accountConfig_1.AccountConfigListInstance)(this);
37
- return this._accountConfigs;
38
- }
39
- /** Getter for accountSecrets resource */
40
- get accountSecrets() {
41
- this._accountSecrets =
42
- this._accountSecrets || (0, accountSecret_1.AccountSecretListInstance)(this);
43
- return this._accountSecrets;
44
- }
45
- /** Getter for apps resource */
46
- get apps() {
47
- this._apps = this._apps || (0, app_1.AppListInstance)(this);
48
- return this._apps;
49
- }
50
- /** Getter for devices resource */
51
- get devices() {
52
- this._devices = this._devices || (0, device_1.DeviceListInstance)(this);
53
- return this._devices;
54
- }
55
- }
56
- exports.default = V1;
@@ -1,263 +0,0 @@
1
- /// <reference types="node" />
2
- import { inspect, InspectOptions } from "util";
3
- import Page, { TwilioResponsePayload } from "../../../base/Page";
4
- import Response from "../../../http/response";
5
- import V1 from "../V1";
6
- /**
7
- * Options to pass to update a AccountConfigInstance
8
- */
9
- export interface AccountConfigContextUpdateOptions {
10
- /** The config value; up to 4096 characters. */
11
- value: string;
12
- }
13
- /**
14
- * Options to pass to create a AccountConfigInstance
15
- */
16
- export interface AccountConfigListInstanceCreateOptions {
17
- /** The config key; up to 100 characters. */
18
- key: string;
19
- /** The config value; up to 4096 characters. */
20
- value: string;
21
- }
22
- /**
23
- * Options to pass to each
24
- */
25
- export interface AccountConfigListInstanceEachOptions {
26
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
27
- pageSize?: number;
28
- /** Function to process each record. If this and a positional callback are passed, this one will be used */
29
- callback?: (item: AccountConfigInstance, done: (err?: Error) => void) => void;
30
- /** Function to be called upon completion of streaming */
31
- done?: Function;
32
- /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
33
- limit?: number;
34
- }
35
- /**
36
- * Options to pass to list
37
- */
38
- export interface AccountConfigListInstanceOptions {
39
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
40
- pageSize?: number;
41
- /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
42
- limit?: number;
43
- }
44
- /**
45
- * Options to pass to page
46
- */
47
- export interface AccountConfigListInstancePageOptions {
48
- /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
49
- pageSize?: number;
50
- /** Page Number, this value is simply for client state */
51
- pageNumber?: number;
52
- /** PageToken provided by the API */
53
- pageToken?: string;
54
- }
55
- export interface AccountConfigContext {
56
- /**
57
- * Remove a AccountConfigInstance
58
- *
59
- * @param callback - Callback to handle processed record
60
- *
61
- * @returns Resolves to processed boolean
62
- */
63
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
64
- /**
65
- * Fetch a AccountConfigInstance
66
- *
67
- * @param callback - Callback to handle processed record
68
- *
69
- * @returns Resolves to processed AccountConfigInstance
70
- */
71
- fetch(callback?: (error: Error | null, item?: AccountConfigInstance) => any): Promise<AccountConfigInstance>;
72
- /**
73
- * Update a AccountConfigInstance
74
- *
75
- * @param params - Parameter for request
76
- * @param callback - Callback to handle processed record
77
- *
78
- * @returns Resolves to processed AccountConfigInstance
79
- */
80
- update(params: AccountConfigContextUpdateOptions, callback?: (error: Error | null, item?: AccountConfigInstance) => any): Promise<AccountConfigInstance>;
81
- /**
82
- * Provide a user-friendly representation
83
- */
84
- toJSON(): any;
85
- [inspect.custom](_depth: any, options: InspectOptions): any;
86
- }
87
- export interface AccountConfigContextSolution {
88
- key: string;
89
- }
90
- export declare class AccountConfigContextImpl implements AccountConfigContext {
91
- protected _version: V1;
92
- protected _solution: AccountConfigContextSolution;
93
- protected _uri: string;
94
- constructor(_version: V1, key: string);
95
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
96
- fetch(callback?: (error: Error | null, item?: AccountConfigInstance) => any): Promise<AccountConfigInstance>;
97
- update(params: AccountConfigContextUpdateOptions, callback?: (error: Error | null, item?: AccountConfigInstance) => any): Promise<AccountConfigInstance>;
98
- /**
99
- * Provide a user-friendly representation
100
- *
101
- * @returns Object
102
- */
103
- toJSON(): AccountConfigContextSolution;
104
- [inspect.custom](_depth: any, options: InspectOptions): string;
105
- }
106
- interface AccountConfigPayload extends TwilioResponsePayload {
107
- configs: AccountConfigResource[];
108
- }
109
- interface AccountConfigResource {
110
- key: string;
111
- date_updated: Date;
112
- value: string;
113
- url: string;
114
- }
115
- export declare class AccountConfigInstance {
116
- protected _version: V1;
117
- protected _solution: AccountConfigContextSolution;
118
- protected _context?: AccountConfigContext;
119
- constructor(_version: V1, payload: AccountConfigResource, key?: string);
120
- /**
121
- * The config key; up to 100 characters.
122
- */
123
- key: string;
124
- dateUpdated: Date;
125
- /**
126
- * The config value; up to 4096 characters.
127
- */
128
- value: string;
129
- /**
130
- * The absolute URL of the Config.
131
- */
132
- url: string;
133
- private get _proxy();
134
- /**
135
- * Remove a AccountConfigInstance
136
- *
137
- * @param callback - Callback to handle processed record
138
- *
139
- * @returns Resolves to processed boolean
140
- */
141
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
142
- /**
143
- * Fetch a AccountConfigInstance
144
- *
145
- * @param callback - Callback to handle processed record
146
- *
147
- * @returns Resolves to processed AccountConfigInstance
148
- */
149
- fetch(callback?: (error: Error | null, item?: AccountConfigInstance) => any): Promise<AccountConfigInstance>;
150
- /**
151
- * Update a AccountConfigInstance
152
- *
153
- * @param params - Parameter for request
154
- * @param callback - Callback to handle processed record
155
- *
156
- * @returns Resolves to processed AccountConfigInstance
157
- */
158
- update(params: AccountConfigContextUpdateOptions, callback?: (error: Error | null, item?: AccountConfigInstance) => any): Promise<AccountConfigInstance>;
159
- /**
160
- * Provide a user-friendly representation
161
- *
162
- * @returns Object
163
- */
164
- toJSON(): {
165
- key: string;
166
- dateUpdated: Date;
167
- value: string;
168
- url: string;
169
- };
170
- [inspect.custom](_depth: any, options: InspectOptions): string;
171
- }
172
- export interface AccountConfigSolution {
173
- }
174
- export interface AccountConfigListInstance {
175
- _version: V1;
176
- _solution: AccountConfigSolution;
177
- _uri: string;
178
- (key: string): AccountConfigContext;
179
- get(key: string): AccountConfigContext;
180
- /**
181
- * Create a AccountConfigInstance
182
- *
183
- * @param params - Parameter for request
184
- * @param callback - Callback to handle processed record
185
- *
186
- * @returns Resolves to processed AccountConfigInstance
187
- */
188
- create(params: AccountConfigListInstanceCreateOptions, callback?: (error: Error | null, item?: AccountConfigInstance) => any): Promise<AccountConfigInstance>;
189
- /**
190
- * Streams AccountConfigInstance records from the API.
191
- *
192
- * This operation lazily loads records as efficiently as possible until the limit
193
- * is reached.
194
- *
195
- * The results are passed into the callback function, so this operation is memory
196
- * efficient.
197
- *
198
- * If a function is passed as the first argument, it will be used as the callback
199
- * function.
200
- *
201
- * @param { AccountConfigListInstanceEachOptions } [params] - Options for request
202
- * @param { function } [callback] - Function to process each record
203
- */
204
- each(callback?: (item: AccountConfigInstance, done: (err?: Error) => void) => void): void;
205
- each(params: AccountConfigListInstanceEachOptions, callback?: (item: AccountConfigInstance, done: (err?: Error) => void) => void): void;
206
- /**
207
- * Retrieve a single target page of AccountConfigInstance records from the API.
208
- *
209
- * The request is executed immediately.
210
- *
211
- * @param { string } [targetUrl] - API-generated URL for the requested results page
212
- * @param { function } [callback] - Callback to handle list of records
213
- */
214
- getPage(targetUrl: string, callback?: (error: Error | null, items: AccountConfigPage) => any): Promise<AccountConfigPage>;
215
- /**
216
- * Lists AccountConfigInstance records from the API as a list.
217
- *
218
- * If a function is passed as the first argument, it will be used as the callback
219
- * function.
220
- *
221
- * @param { AccountConfigListInstanceOptions } [params] - Options for request
222
- * @param { function } [callback] - Callback to handle list of records
223
- */
224
- list(callback?: (error: Error | null, items: AccountConfigInstance[]) => any): Promise<AccountConfigInstance[]>;
225
- list(params: AccountConfigListInstanceOptions, callback?: (error: Error | null, items: AccountConfigInstance[]) => any): Promise<AccountConfigInstance[]>;
226
- /**
227
- * Retrieve a single page of AccountConfigInstance records from the API.
228
- *
229
- * The request is executed immediately.
230
- *
231
- * If a function is passed as the first argument, it will be used as the callback
232
- * function.
233
- *
234
- * @param { AccountConfigListInstancePageOptions } [params] - Options for request
235
- * @param { function } [callback] - Callback to handle list of records
236
- */
237
- page(callback?: (error: Error | null, items: AccountConfigPage) => any): Promise<AccountConfigPage>;
238
- page(params: AccountConfigListInstancePageOptions, callback?: (error: Error | null, items: AccountConfigPage) => any): Promise<AccountConfigPage>;
239
- /**
240
- * Provide a user-friendly representation
241
- */
242
- toJSON(): any;
243
- [inspect.custom](_depth: any, options: InspectOptions): any;
244
- }
245
- export declare function AccountConfigListInstance(version: V1): AccountConfigListInstance;
246
- export declare class AccountConfigPage extends Page<V1, AccountConfigPayload, AccountConfigResource, AccountConfigInstance> {
247
- /**
248
- * Initialize the AccountConfigPage
249
- *
250
- * @param version - Version of the resource
251
- * @param response - Response from the API
252
- * @param solution - Path solution
253
- */
254
- constructor(version: V1, response: Response<string>, solution: AccountConfigSolution);
255
- /**
256
- * Build an instance of AccountConfigInstance
257
- *
258
- * @param payload - Payload response from the API
259
- */
260
- getInstance(payload: AccountConfigResource): AccountConfigInstance;
261
- [inspect.custom](depth: any, options: InspectOptions): string;
262
- }
263
- export {};
@@ -1,254 +0,0 @@
1
- "use strict";
2
- /*
3
- * This code was generated by
4
- * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
- * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
- * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
- *
8
- * Twilio - Microvisor
9
- * This is the public Twilio REST API.
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator.
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.AccountConfigPage = exports.AccountConfigListInstance = exports.AccountConfigInstance = exports.AccountConfigContextImpl = void 0;
20
- const util_1 = require("util");
21
- const Page_1 = __importDefault(require("../../../base/Page"));
22
- const deserialize = require("../../../base/deserialize");
23
- const serialize = require("../../../base/serialize");
24
- const utility_1 = require("../../../base/utility");
25
- class AccountConfigContextImpl {
26
- constructor(_version, key) {
27
- this._version = _version;
28
- if (!(0, utility_1.isValidPathParam)(key)) {
29
- throw new Error("Parameter 'key' is not valid.");
30
- }
31
- this._solution = { key };
32
- this._uri = `/Configs/${key}`;
33
- }
34
- remove(callback) {
35
- const headers = {};
36
- const instance = this;
37
- let operationVersion = instance._version, operationPromise = operationVersion.remove({
38
- uri: instance._uri,
39
- method: "delete",
40
- headers,
41
- });
42
- operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
43
- return operationPromise;
44
- }
45
- fetch(callback) {
46
- const headers = {};
47
- headers["Accept"] = "application/json";
48
- const instance = this;
49
- let operationVersion = instance._version, operationPromise = operationVersion.fetch({
50
- uri: instance._uri,
51
- method: "get",
52
- headers,
53
- });
54
- operationPromise = operationPromise.then((payload) => new AccountConfigInstance(operationVersion, payload, instance._solution.key));
55
- operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
56
- return operationPromise;
57
- }
58
- update(params, callback) {
59
- if (params === null || params === undefined) {
60
- throw new Error('Required parameter "params" missing.');
61
- }
62
- if (params["value"] === null || params["value"] === undefined) {
63
- throw new Error("Required parameter \"params['value']\" missing.");
64
- }
65
- let data = {};
66
- data["Value"] = params["value"];
67
- const headers = {};
68
- headers["Content-Type"] = "application/x-www-form-urlencoded";
69
- headers["Accept"] = "application/json";
70
- const instance = this;
71
- let operationVersion = instance._version, operationPromise = operationVersion.update({
72
- uri: instance._uri,
73
- method: "post",
74
- data,
75
- headers,
76
- });
77
- operationPromise = operationPromise.then((payload) => new AccountConfigInstance(operationVersion, payload, instance._solution.key));
78
- operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
79
- return operationPromise;
80
- }
81
- /**
82
- * Provide a user-friendly representation
83
- *
84
- * @returns Object
85
- */
86
- toJSON() {
87
- return this._solution;
88
- }
89
- [util_1.inspect.custom](_depth, options) {
90
- return (0, util_1.inspect)(this.toJSON(), options);
91
- }
92
- }
93
- exports.AccountConfigContextImpl = AccountConfigContextImpl;
94
- class AccountConfigInstance {
95
- constructor(_version, payload, key) {
96
- this._version = _version;
97
- this.key = payload.key;
98
- this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
99
- this.value = payload.value;
100
- this.url = payload.url;
101
- this._solution = { key: key || this.key };
102
- }
103
- get _proxy() {
104
- this._context =
105
- this._context ||
106
- new AccountConfigContextImpl(this._version, this._solution.key);
107
- return this._context;
108
- }
109
- /**
110
- * Remove a AccountConfigInstance
111
- *
112
- * @param callback - Callback to handle processed record
113
- *
114
- * @returns Resolves to processed boolean
115
- */
116
- remove(callback) {
117
- return this._proxy.remove(callback);
118
- }
119
- /**
120
- * Fetch a AccountConfigInstance
121
- *
122
- * @param callback - Callback to handle processed record
123
- *
124
- * @returns Resolves to processed AccountConfigInstance
125
- */
126
- fetch(callback) {
127
- return this._proxy.fetch(callback);
128
- }
129
- update(params, callback) {
130
- return this._proxy.update(params, callback);
131
- }
132
- /**
133
- * Provide a user-friendly representation
134
- *
135
- * @returns Object
136
- */
137
- toJSON() {
138
- return {
139
- key: this.key,
140
- dateUpdated: this.dateUpdated,
141
- value: this.value,
142
- url: this.url,
143
- };
144
- }
145
- [util_1.inspect.custom](_depth, options) {
146
- return (0, util_1.inspect)(this.toJSON(), options);
147
- }
148
- }
149
- exports.AccountConfigInstance = AccountConfigInstance;
150
- function AccountConfigListInstance(version) {
151
- const instance = ((key) => instance.get(key));
152
- instance.get = function get(key) {
153
- return new AccountConfigContextImpl(version, key);
154
- };
155
- instance._version = version;
156
- instance._solution = {};
157
- instance._uri = `/Configs`;
158
- instance.create = function create(params, callback) {
159
- if (params === null || params === undefined) {
160
- throw new Error('Required parameter "params" missing.');
161
- }
162
- if (params["key"] === null || params["key"] === undefined) {
163
- throw new Error("Required parameter \"params['key']\" missing.");
164
- }
165
- if (params["value"] === null || params["value"] === undefined) {
166
- throw new Error("Required parameter \"params['value']\" missing.");
167
- }
168
- let data = {};
169
- data["Key"] = params["key"];
170
- data["Value"] = params["value"];
171
- const headers = {};
172
- headers["Content-Type"] = "application/x-www-form-urlencoded";
173
- headers["Accept"] = "application/json";
174
- let operationVersion = version, operationPromise = operationVersion.create({
175
- uri: instance._uri,
176
- method: "post",
177
- data,
178
- headers,
179
- });
180
- operationPromise = operationPromise.then((payload) => new AccountConfigInstance(operationVersion, payload));
181
- operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
182
- return operationPromise;
183
- };
184
- instance.page = function page(params, callback) {
185
- if (params instanceof Function) {
186
- callback = params;
187
- params = {};
188
- }
189
- else {
190
- params = params || {};
191
- }
192
- let data = {};
193
- if (params["pageSize"] !== undefined)
194
- data["PageSize"] = params["pageSize"];
195
- if (params.pageNumber !== undefined)
196
- data["Page"] = params.pageNumber;
197
- if (params.pageToken !== undefined)
198
- data["PageToken"] = params.pageToken;
199
- const headers = {};
200
- headers["Accept"] = "application/json";
201
- let operationVersion = version, operationPromise = operationVersion.page({
202
- uri: instance._uri,
203
- method: "get",
204
- params: data,
205
- headers,
206
- });
207
- operationPromise = operationPromise.then((payload) => new AccountConfigPage(operationVersion, payload, instance._solution));
208
- operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
209
- return operationPromise;
210
- };
211
- instance.each = instance._version.each;
212
- instance.list = instance._version.list;
213
- instance.getPage = function getPage(targetUrl, callback) {
214
- const operationPromise = instance._version._domain.twilio.request({
215
- method: "get",
216
- uri: targetUrl,
217
- });
218
- let pagePromise = operationPromise.then((payload) => new AccountConfigPage(instance._version, payload, instance._solution));
219
- pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
220
- return pagePromise;
221
- };
222
- instance.toJSON = function toJSON() {
223
- return instance._solution;
224
- };
225
- instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
226
- return (0, util_1.inspect)(instance.toJSON(), options);
227
- };
228
- return instance;
229
- }
230
- exports.AccountConfigListInstance = AccountConfigListInstance;
231
- class AccountConfigPage extends Page_1.default {
232
- /**
233
- * Initialize the AccountConfigPage
234
- *
235
- * @param version - Version of the resource
236
- * @param response - Response from the API
237
- * @param solution - Path solution
238
- */
239
- constructor(version, response, solution) {
240
- super(version, response, solution);
241
- }
242
- /**
243
- * Build an instance of AccountConfigInstance
244
- *
245
- * @param payload - Payload response from the API
246
- */
247
- getInstance(payload) {
248
- return new AccountConfigInstance(this._version, payload);
249
- }
250
- [util_1.inspect.custom](depth, options) {
251
- return (0, util_1.inspect)(this.toJSON(), options);
252
- }
253
- }
254
- exports.AccountConfigPage = AccountConfigPage;