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,257 +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 AccountSecretInstance
8
- */
9
- export interface AccountSecretContextUpdateOptions {
10
- /** The secret value; up to 4096 characters. */
11
- value: string;
12
- }
13
- /**
14
- * Options to pass to create a AccountSecretInstance
15
- */
16
- export interface AccountSecretListInstanceCreateOptions {
17
- /** The secret key; up to 100 characters. */
18
- key: string;
19
- /** The secret value; up to 4096 characters. */
20
- value: string;
21
- }
22
- /**
23
- * Options to pass to each
24
- */
25
- export interface AccountSecretListInstanceEachOptions {
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: AccountSecretInstance, 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 AccountSecretListInstanceOptions {
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 AccountSecretListInstancePageOptions {
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 AccountSecretContext {
56
- /**
57
- * Remove a AccountSecretInstance
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 AccountSecretInstance
66
- *
67
- * @param callback - Callback to handle processed record
68
- *
69
- * @returns Resolves to processed AccountSecretInstance
70
- */
71
- fetch(callback?: (error: Error | null, item?: AccountSecretInstance) => any): Promise<AccountSecretInstance>;
72
- /**
73
- * Update a AccountSecretInstance
74
- *
75
- * @param params - Parameter for request
76
- * @param callback - Callback to handle processed record
77
- *
78
- * @returns Resolves to processed AccountSecretInstance
79
- */
80
- update(params: AccountSecretContextUpdateOptions, callback?: (error: Error | null, item?: AccountSecretInstance) => any): Promise<AccountSecretInstance>;
81
- /**
82
- * Provide a user-friendly representation
83
- */
84
- toJSON(): any;
85
- [inspect.custom](_depth: any, options: InspectOptions): any;
86
- }
87
- export interface AccountSecretContextSolution {
88
- key: string;
89
- }
90
- export declare class AccountSecretContextImpl implements AccountSecretContext {
91
- protected _version: V1;
92
- protected _solution: AccountSecretContextSolution;
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?: AccountSecretInstance) => any): Promise<AccountSecretInstance>;
97
- update(params: AccountSecretContextUpdateOptions, callback?: (error: Error | null, item?: AccountSecretInstance) => any): Promise<AccountSecretInstance>;
98
- /**
99
- * Provide a user-friendly representation
100
- *
101
- * @returns Object
102
- */
103
- toJSON(): AccountSecretContextSolution;
104
- [inspect.custom](_depth: any, options: InspectOptions): string;
105
- }
106
- interface AccountSecretPayload extends TwilioResponsePayload {
107
- secrets: AccountSecretResource[];
108
- }
109
- interface AccountSecretResource {
110
- key: string;
111
- date_rotated: Date;
112
- url: string;
113
- }
114
- export declare class AccountSecretInstance {
115
- protected _version: V1;
116
- protected _solution: AccountSecretContextSolution;
117
- protected _context?: AccountSecretContext;
118
- constructor(_version: V1, payload: AccountSecretResource, key?: string);
119
- /**
120
- * The secret key; up to 100 characters.
121
- */
122
- key: string;
123
- dateRotated: Date;
124
- /**
125
- * The absolute URL of the Secret.
126
- */
127
- url: string;
128
- private get _proxy();
129
- /**
130
- * Remove a AccountSecretInstance
131
- *
132
- * @param callback - Callback to handle processed record
133
- *
134
- * @returns Resolves to processed boolean
135
- */
136
- remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
137
- /**
138
- * Fetch a AccountSecretInstance
139
- *
140
- * @param callback - Callback to handle processed record
141
- *
142
- * @returns Resolves to processed AccountSecretInstance
143
- */
144
- fetch(callback?: (error: Error | null, item?: AccountSecretInstance) => any): Promise<AccountSecretInstance>;
145
- /**
146
- * Update a AccountSecretInstance
147
- *
148
- * @param params - Parameter for request
149
- * @param callback - Callback to handle processed record
150
- *
151
- * @returns Resolves to processed AccountSecretInstance
152
- */
153
- update(params: AccountSecretContextUpdateOptions, callback?: (error: Error | null, item?: AccountSecretInstance) => any): Promise<AccountSecretInstance>;
154
- /**
155
- * Provide a user-friendly representation
156
- *
157
- * @returns Object
158
- */
159
- toJSON(): {
160
- key: string;
161
- dateRotated: Date;
162
- url: string;
163
- };
164
- [inspect.custom](_depth: any, options: InspectOptions): string;
165
- }
166
- export interface AccountSecretSolution {
167
- }
168
- export interface AccountSecretListInstance {
169
- _version: V1;
170
- _solution: AccountSecretSolution;
171
- _uri: string;
172
- (key: string): AccountSecretContext;
173
- get(key: string): AccountSecretContext;
174
- /**
175
- * Create a AccountSecretInstance
176
- *
177
- * @param params - Parameter for request
178
- * @param callback - Callback to handle processed record
179
- *
180
- * @returns Resolves to processed AccountSecretInstance
181
- */
182
- create(params: AccountSecretListInstanceCreateOptions, callback?: (error: Error | null, item?: AccountSecretInstance) => any): Promise<AccountSecretInstance>;
183
- /**
184
- * Streams AccountSecretInstance records from the API.
185
- *
186
- * This operation lazily loads records as efficiently as possible until the limit
187
- * is reached.
188
- *
189
- * The results are passed into the callback function, so this operation is memory
190
- * efficient.
191
- *
192
- * If a function is passed as the first argument, it will be used as the callback
193
- * function.
194
- *
195
- * @param { AccountSecretListInstanceEachOptions } [params] - Options for request
196
- * @param { function } [callback] - Function to process each record
197
- */
198
- each(callback?: (item: AccountSecretInstance, done: (err?: Error) => void) => void): void;
199
- each(params: AccountSecretListInstanceEachOptions, callback?: (item: AccountSecretInstance, done: (err?: Error) => void) => void): void;
200
- /**
201
- * Retrieve a single target page of AccountSecretInstance records from the API.
202
- *
203
- * The request is executed immediately.
204
- *
205
- * @param { string } [targetUrl] - API-generated URL for the requested results page
206
- * @param { function } [callback] - Callback to handle list of records
207
- */
208
- getPage(targetUrl: string, callback?: (error: Error | null, items: AccountSecretPage) => any): Promise<AccountSecretPage>;
209
- /**
210
- * Lists AccountSecretInstance records from the API as a list.
211
- *
212
- * If a function is passed as the first argument, it will be used as the callback
213
- * function.
214
- *
215
- * @param { AccountSecretListInstanceOptions } [params] - Options for request
216
- * @param { function } [callback] - Callback to handle list of records
217
- */
218
- list(callback?: (error: Error | null, items: AccountSecretInstance[]) => any): Promise<AccountSecretInstance[]>;
219
- list(params: AccountSecretListInstanceOptions, callback?: (error: Error | null, items: AccountSecretInstance[]) => any): Promise<AccountSecretInstance[]>;
220
- /**
221
- * Retrieve a single page of AccountSecretInstance records from the API.
222
- *
223
- * The request is executed immediately.
224
- *
225
- * If a function is passed as the first argument, it will be used as the callback
226
- * function.
227
- *
228
- * @param { AccountSecretListInstancePageOptions } [params] - Options for request
229
- * @param { function } [callback] - Callback to handle list of records
230
- */
231
- page(callback?: (error: Error | null, items: AccountSecretPage) => any): Promise<AccountSecretPage>;
232
- page(params: AccountSecretListInstancePageOptions, callback?: (error: Error | null, items: AccountSecretPage) => any): Promise<AccountSecretPage>;
233
- /**
234
- * Provide a user-friendly representation
235
- */
236
- toJSON(): any;
237
- [inspect.custom](_depth: any, options: InspectOptions): any;
238
- }
239
- export declare function AccountSecretListInstance(version: V1): AccountSecretListInstance;
240
- export declare class AccountSecretPage extends Page<V1, AccountSecretPayload, AccountSecretResource, AccountSecretInstance> {
241
- /**
242
- * Initialize the AccountSecretPage
243
- *
244
- * @param version - Version of the resource
245
- * @param response - Response from the API
246
- * @param solution - Path solution
247
- */
248
- constructor(version: V1, response: Response<string>, solution: AccountSecretSolution);
249
- /**
250
- * Build an instance of AccountSecretInstance
251
- *
252
- * @param payload - Payload response from the API
253
- */
254
- getInstance(payload: AccountSecretResource): AccountSecretInstance;
255
- [inspect.custom](depth: any, options: InspectOptions): string;
256
- }
257
- export {};
@@ -1,252 +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.AccountSecretPage = exports.AccountSecretListInstance = exports.AccountSecretInstance = exports.AccountSecretContextImpl = 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 AccountSecretContextImpl {
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 = `/Secrets/${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 AccountSecretInstance(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 AccountSecretInstance(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.AccountSecretContextImpl = AccountSecretContextImpl;
94
- class AccountSecretInstance {
95
- constructor(_version, payload, key) {
96
- this._version = _version;
97
- this.key = payload.key;
98
- this.dateRotated = deserialize.iso8601DateTime(payload.date_rotated);
99
- this.url = payload.url;
100
- this._solution = { key: key || this.key };
101
- }
102
- get _proxy() {
103
- this._context =
104
- this._context ||
105
- new AccountSecretContextImpl(this._version, this._solution.key);
106
- return this._context;
107
- }
108
- /**
109
- * Remove a AccountSecretInstance
110
- *
111
- * @param callback - Callback to handle processed record
112
- *
113
- * @returns Resolves to processed boolean
114
- */
115
- remove(callback) {
116
- return this._proxy.remove(callback);
117
- }
118
- /**
119
- * Fetch a AccountSecretInstance
120
- *
121
- * @param callback - Callback to handle processed record
122
- *
123
- * @returns Resolves to processed AccountSecretInstance
124
- */
125
- fetch(callback) {
126
- return this._proxy.fetch(callback);
127
- }
128
- update(params, callback) {
129
- return this._proxy.update(params, callback);
130
- }
131
- /**
132
- * Provide a user-friendly representation
133
- *
134
- * @returns Object
135
- */
136
- toJSON() {
137
- return {
138
- key: this.key,
139
- dateRotated: this.dateRotated,
140
- url: this.url,
141
- };
142
- }
143
- [util_1.inspect.custom](_depth, options) {
144
- return (0, util_1.inspect)(this.toJSON(), options);
145
- }
146
- }
147
- exports.AccountSecretInstance = AccountSecretInstance;
148
- function AccountSecretListInstance(version) {
149
- const instance = ((key) => instance.get(key));
150
- instance.get = function get(key) {
151
- return new AccountSecretContextImpl(version, key);
152
- };
153
- instance._version = version;
154
- instance._solution = {};
155
- instance._uri = `/Secrets`;
156
- instance.create = function create(params, callback) {
157
- if (params === null || params === undefined) {
158
- throw new Error('Required parameter "params" missing.');
159
- }
160
- if (params["key"] === null || params["key"] === undefined) {
161
- throw new Error("Required parameter \"params['key']\" missing.");
162
- }
163
- if (params["value"] === null || params["value"] === undefined) {
164
- throw new Error("Required parameter \"params['value']\" missing.");
165
- }
166
- let data = {};
167
- data["Key"] = params["key"];
168
- data["Value"] = params["value"];
169
- const headers = {};
170
- headers["Content-Type"] = "application/x-www-form-urlencoded";
171
- headers["Accept"] = "application/json";
172
- let operationVersion = version, operationPromise = operationVersion.create({
173
- uri: instance._uri,
174
- method: "post",
175
- data,
176
- headers,
177
- });
178
- operationPromise = operationPromise.then((payload) => new AccountSecretInstance(operationVersion, payload));
179
- operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
180
- return operationPromise;
181
- };
182
- instance.page = function page(params, callback) {
183
- if (params instanceof Function) {
184
- callback = params;
185
- params = {};
186
- }
187
- else {
188
- params = params || {};
189
- }
190
- let data = {};
191
- if (params["pageSize"] !== undefined)
192
- data["PageSize"] = params["pageSize"];
193
- if (params.pageNumber !== undefined)
194
- data["Page"] = params.pageNumber;
195
- if (params.pageToken !== undefined)
196
- data["PageToken"] = params.pageToken;
197
- const headers = {};
198
- headers["Accept"] = "application/json";
199
- let operationVersion = version, operationPromise = operationVersion.page({
200
- uri: instance._uri,
201
- method: "get",
202
- params: data,
203
- headers,
204
- });
205
- operationPromise = operationPromise.then((payload) => new AccountSecretPage(operationVersion, payload, instance._solution));
206
- operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
207
- return operationPromise;
208
- };
209
- instance.each = instance._version.each;
210
- instance.list = instance._version.list;
211
- instance.getPage = function getPage(targetUrl, callback) {
212
- const operationPromise = instance._version._domain.twilio.request({
213
- method: "get",
214
- uri: targetUrl,
215
- });
216
- let pagePromise = operationPromise.then((payload) => new AccountSecretPage(instance._version, payload, instance._solution));
217
- pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
218
- return pagePromise;
219
- };
220
- instance.toJSON = function toJSON() {
221
- return instance._solution;
222
- };
223
- instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
224
- return (0, util_1.inspect)(instance.toJSON(), options);
225
- };
226
- return instance;
227
- }
228
- exports.AccountSecretListInstance = AccountSecretListInstance;
229
- class AccountSecretPage extends Page_1.default {
230
- /**
231
- * Initialize the AccountSecretPage
232
- *
233
- * @param version - Version of the resource
234
- * @param response - Response from the API
235
- * @param solution - Path solution
236
- */
237
- constructor(version, response, solution) {
238
- super(version, response, solution);
239
- }
240
- /**
241
- * Build an instance of AccountSecretInstance
242
- *
243
- * @param payload - Payload response from the API
244
- */
245
- getInstance(payload) {
246
- return new AccountSecretInstance(this._version, payload);
247
- }
248
- [util_1.inspect.custom](depth, options) {
249
- return (0, util_1.inspect)(this.toJSON(), options);
250
- }
251
- }
252
- exports.AccountSecretPage = AccountSecretPage;
@@ -1,101 +0,0 @@
1
- /// <reference types="node" />
2
- import { inspect, InspectOptions } from "util";
3
- import V1 from "../../V1";
4
- export interface AppManifestContext {
5
- /**
6
- * Fetch a AppManifestInstance
7
- *
8
- * @param callback - Callback to handle processed record
9
- *
10
- * @returns Resolves to processed AppManifestInstance
11
- */
12
- fetch(callback?: (error: Error | null, item?: AppManifestInstance) => any): Promise<AppManifestInstance>;
13
- /**
14
- * Provide a user-friendly representation
15
- */
16
- toJSON(): any;
17
- [inspect.custom](_depth: any, options: InspectOptions): any;
18
- }
19
- export interface AppManifestContextSolution {
20
- appSid: string;
21
- }
22
- export declare class AppManifestContextImpl implements AppManifestContext {
23
- protected _version: V1;
24
- protected _solution: AppManifestContextSolution;
25
- protected _uri: string;
26
- constructor(_version: V1, appSid: string);
27
- fetch(callback?: (error: Error | null, item?: AppManifestInstance) => any): Promise<AppManifestInstance>;
28
- /**
29
- * Provide a user-friendly representation
30
- *
31
- * @returns Object
32
- */
33
- toJSON(): AppManifestContextSolution;
34
- [inspect.custom](_depth: any, options: InspectOptions): string;
35
- }
36
- interface AppManifestResource {
37
- app_sid: string;
38
- hash: string;
39
- encoded_bytes: string;
40
- url: string;
41
- }
42
- export declare class AppManifestInstance {
43
- protected _version: V1;
44
- protected _solution: AppManifestContextSolution;
45
- protected _context?: AppManifestContext;
46
- constructor(_version: V1, payload: AppManifestResource, appSid: string);
47
- /**
48
- * A 34-character string that uniquely identifies this App.
49
- */
50
- appSid: string;
51
- /**
52
- * App manifest hash represented as `hash_algorithm:hash_value`.
53
- */
54
- hash: string;
55
- /**
56
- * The base-64 encoded manifest
57
- */
58
- encodedBytes: string;
59
- /**
60
- * The absolute URL of this Manifest.
61
- */
62
- url: string;
63
- private get _proxy();
64
- /**
65
- * Fetch a AppManifestInstance
66
- *
67
- * @param callback - Callback to handle processed record
68
- *
69
- * @returns Resolves to processed AppManifestInstance
70
- */
71
- fetch(callback?: (error: Error | null, item?: AppManifestInstance) => any): Promise<AppManifestInstance>;
72
- /**
73
- * Provide a user-friendly representation
74
- *
75
- * @returns Object
76
- */
77
- toJSON(): {
78
- appSid: string;
79
- hash: string;
80
- encodedBytes: string;
81
- url: string;
82
- };
83
- [inspect.custom](_depth: any, options: InspectOptions): string;
84
- }
85
- export interface AppManifestSolution {
86
- appSid: string;
87
- }
88
- export interface AppManifestListInstance {
89
- _version: V1;
90
- _solution: AppManifestSolution;
91
- _uri: string;
92
- (): AppManifestContext;
93
- get(): AppManifestContext;
94
- /**
95
- * Provide a user-friendly representation
96
- */
97
- toJSON(): any;
98
- [inspect.custom](_depth: any, options: InspectOptions): any;
99
- }
100
- export declare function AppManifestListInstance(version: V1, appSid: string): AppManifestListInstance;
101
- export {};