twilio 4.7.2 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/lib/base/BaseTwilio.d.ts +1 -0
  2. package/lib/index.d.ts +52 -36
  3. package/lib/index.js +32 -51
  4. package/lib/jwt/AccessToken.d.ts +168 -173
  5. package/lib/jwt/AccessToken.js +180 -185
  6. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +17 -22
  7. package/lib/rest/api/v2010/account/application.d.ts +15 -20
  8. package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +1 -1
  9. package/lib/rest/api/v2010/account/call/feedback.d.ts +5 -5
  10. package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +4 -4
  11. package/lib/rest/api/v2010/account/call/notification.d.ts +3 -4
  12. package/lib/rest/api/v2010/account/call/payment.d.ts +10 -10
  13. package/lib/rest/api/v2010/account/call/recording.d.ts +9 -9
  14. package/lib/rest/api/v2010/account/call/siprec.d.ts +3 -3
  15. package/lib/rest/api/v2010/account/call/stream.d.ts +3 -3
  16. package/lib/rest/api/v2010/account/call.d.ts +2 -2
  17. package/lib/rest/api/v2010/account/conference/participant.d.ts +1 -1
  18. package/lib/rest/api/v2010/account/conference/recording.d.ts +9 -9
  19. package/lib/rest/api/v2010/account/conference.d.ts +4 -4
  20. package/lib/rest/api/v2010/account/connectApp.d.ts +4 -5
  21. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +33 -38
  22. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +33 -38
  23. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +33 -38
  24. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +19 -24
  25. package/lib/rest/api/v2010/account/message/feedback.d.ts +5 -5
  26. package/lib/rest/api/v2010/account/message.d.ts +6 -6
  27. package/lib/rest/api/v2010/account/notification.d.ts +3 -4
  28. package/lib/rest/api/v2010/account/queue.d.ts +3 -3
  29. package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +4 -4
  30. package/lib/rest/api/v2010/account/recording/transcription.d.ts +4 -4
  31. package/lib/rest/api/v2010/account/recording.d.ts +2 -2
  32. package/lib/rest/api/v2010/account/shortCode.d.ts +6 -8
  33. package/lib/rest/api/v2010/account/sip/domain.d.ts +9 -12
  34. package/lib/rest/api/v2010/account/transcription.d.ts +1 -1
  35. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +7 -7
  36. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +7 -7
  37. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +7 -7
  38. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +7 -7
  39. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +7 -7
  40. package/lib/rest/api/v2010/account/usage/record/today.d.ts +7 -7
  41. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +7 -7
  42. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +7 -7
  43. package/lib/rest/api/v2010/account/usage/record.d.ts +7 -7
  44. package/lib/rest/api/v2010/account/usage/trigger.d.ts +27 -28
  45. package/lib/rest/api/v2010/account/usage.d.ts +1 -0
  46. package/lib/rest/api/v2010/account.d.ts +2 -2
  47. package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +1 -1
  48. package/lib/rest/chat/v1/credential.d.ts +1 -1
  49. package/lib/rest/chat/v1/service/channel/message.d.ts +1 -1
  50. package/lib/rest/chat/v1/service/channel.d.ts +1 -1
  51. package/lib/rest/chat/v1/service/role.d.ts +1 -1
  52. package/lib/rest/chat/v1/service/user/userChannel.d.ts +1 -1
  53. package/lib/rest/chat/v2/credential.d.ts +1 -1
  54. package/lib/rest/chat/v2/service/binding.d.ts +1 -1
  55. package/lib/rest/chat/v2/service/channel/member.d.ts +1 -1
  56. package/lib/rest/chat/v2/service/channel/message.d.ts +2 -2
  57. package/lib/rest/chat/v2/service/channel/webhook.d.ts +5 -5
  58. package/lib/rest/chat/v2/service/channel.d.ts +2 -2
  59. package/lib/rest/chat/v2/service/role.d.ts +1 -1
  60. package/lib/rest/chat/v2/service/user/userBinding.d.ts +1 -1
  61. package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -3
  62. package/lib/rest/chat/v2/service/user.d.ts +1 -1
  63. package/lib/rest/chat/v3/channel.d.ts +2 -2
  64. package/lib/rest/content/V1.d.ts +5 -0
  65. package/lib/rest/content/V1.js +7 -0
  66. package/lib/rest/content/v1/contentAndApprovals.d.ts +190 -0
  67. package/lib/rest/content/v1/contentAndApprovals.js +134 -0
  68. package/lib/rest/conversations/v1/addressConfiguration.d.ts +8 -8
  69. package/lib/rest/conversations/v1/configuration/webhook.d.ts +9 -9
  70. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +4 -4
  71. package/lib/rest/conversations/v1/conversation/message.d.ts +8 -8
  72. package/lib/rest/conversations/v1/conversation/participant.d.ts +4 -4
  73. package/lib/rest/conversations/v1/conversation/webhook.d.ts +5 -5
  74. package/lib/rest/conversations/v1/conversation.d.ts +2 -2
  75. package/lib/rest/conversations/v1/credential.d.ts +1 -1
  76. package/lib/rest/conversations/v1/participantConversation.d.ts +1 -1
  77. package/lib/rest/conversations/v1/role.d.ts +1 -1
  78. package/lib/rest/conversations/v1/service/binding.d.ts +7 -7
  79. package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +4 -4
  80. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +4 -4
  81. package/lib/rest/conversations/v1/service/conversation/message.d.ts +8 -8
  82. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +4 -4
  83. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +5 -5
  84. package/lib/rest/conversations/v1/service/conversation.d.ts +10 -10
  85. package/lib/rest/conversations/v1/service/participantConversation.d.ts +4 -4
  86. package/lib/rest/conversations/v1/service/role.d.ts +5 -5
  87. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +9 -9
  88. package/lib/rest/conversations/v1/service/user.d.ts +4 -4
  89. package/lib/rest/conversations/v1/user/userConversation.d.ts +2 -2
  90. package/lib/rest/conversations/v1/user.d.ts +1 -1
  91. package/lib/rest/events/v1/sink.d.ts +2 -2
  92. package/lib/rest/flexApi/V1.d.ts +5 -0
  93. package/lib/rest/flexApi/V1.js +7 -0
  94. package/lib/rest/flexApi/v1/assessments.d.ts +255 -10
  95. package/lib/rest/flexApi/v1/assessments.js +208 -23
  96. package/lib/rest/flexApi/v1/configuration.d.ts +1 -1
  97. package/lib/rest/flexApi/v1/flexFlow.d.ts +2 -2
  98. package/lib/rest/flexApi/v1/insightsConversations.d.ts +172 -0
  99. package/lib/rest/flexApi/v1/insightsConversations.js +128 -0
  100. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +8 -2
  101. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +4 -4
  102. package/lib/rest/flexApi/v1/insightsSegments.d.ts +121 -4
  103. package/lib/rest/flexApi/v1/insightsSegments.js +71 -2
  104. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +2 -2
  105. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +3 -3
  106. package/lib/rest/flexApi/v1/webChannel.d.ts +1 -1
  107. package/lib/rest/frontlineApi/v1/user.d.ts +1 -1
  108. package/lib/rest/insights/v1/call/annotation.d.ts +2 -2
  109. package/lib/rest/insights/v1/call/callSummary.d.ts +17 -17
  110. package/lib/rest/insights/v1/call/event.d.ts +2 -2
  111. package/lib/rest/insights/v1/call/metric.d.ts +2 -2
  112. package/lib/rest/insights/v1/callSummaries.d.ts +6 -6
  113. package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +6 -6
  114. package/lib/rest/insights/v1/conference.d.ts +5 -5
  115. package/lib/rest/insights/v1/room/participant.d.ts +16 -16
  116. package/lib/rest/insights/v1/room.d.ts +41 -42
  117. package/lib/rest/ipMessaging/v1/credential.d.ts +1 -1
  118. package/lib/rest/ipMessaging/v1/service/channel/message.d.ts +1 -1
  119. package/lib/rest/ipMessaging/v1/service/channel.d.ts +1 -1
  120. package/lib/rest/ipMessaging/v1/service/role.d.ts +1 -1
  121. package/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +1 -1
  122. package/lib/rest/ipMessaging/v2/credential.d.ts +1 -1
  123. package/lib/rest/ipMessaging/v2/service/binding.d.ts +1 -1
  124. package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +1 -1
  125. package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +2 -2
  126. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +5 -5
  127. package/lib/rest/ipMessaging/v2/service/channel.d.ts +2 -2
  128. package/lib/rest/ipMessaging/v2/service/role.d.ts +1 -1
  129. package/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +1 -1
  130. package/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +2 -2
  131. package/lib/rest/ipMessaging/v2/service/user.d.ts +1 -1
  132. package/lib/rest/lookups/v2/phoneNumber.d.ts +1 -1
  133. package/lib/rest/media/v1/mediaProcessor.d.ts +6 -7
  134. package/lib/rest/media/v1/mediaRecording.d.ts +6 -7
  135. package/lib/rest/media/v1/playerStreamer.d.ts +7 -8
  136. package/lib/rest/messaging/V1.d.ts +10 -0
  137. package/lib/rest/messaging/V1.js +16 -0
  138. package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +1 -1
  139. package/lib/rest/messaging/v1/brandRegistration.d.ts +12 -12
  140. package/lib/rest/messaging/v1/domainCerts.d.ts +4 -4
  141. package/lib/rest/messaging/v1/domainCerts.js +2 -2
  142. package/lib/rest/messaging/v1/domainConfigMessagingService.d.ts +121 -0
  143. package/lib/rest/messaging/v1/domainConfigMessagingService.js +122 -0
  144. package/lib/rest/messaging/v1/linkshorteningMessagingService.d.ts +109 -0
  145. package/lib/rest/messaging/v1/linkshorteningMessagingService.js +135 -0
  146. package/lib/rest/messaging/v1/service.d.ts +7 -9
  147. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +2 -2
  148. package/lib/rest/microvisor/v1/accountConfig.d.ts +27 -1
  149. package/lib/rest/microvisor/v1/accountConfig.js +25 -0
  150. package/lib/rest/microvisor/v1/accountSecret.d.ts +26 -0
  151. package/lib/rest/microvisor/v1/accountSecret.js +25 -0
  152. package/lib/rest/microvisor/v1/app/appManifest.d.ts +101 -0
  153. package/lib/rest/microvisor/v1/app/appManifest.js +115 -0
  154. package/lib/rest/microvisor/v1/app.d.ts +11 -0
  155. package/lib/rest/microvisor/v1/app.js +15 -0
  156. package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +26 -0
  157. package/lib/rest/microvisor/v1/device/deviceConfig.js +25 -0
  158. package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +26 -0
  159. package/lib/rest/microvisor/v1/device/deviceSecret.js +25 -0
  160. package/lib/rest/monitor/v1/alert.d.ts +3 -4
  161. package/lib/rest/notify/v1/credential.d.ts +1 -1
  162. package/lib/rest/notify/v1/service/binding.d.ts +1 -1
  163. package/lib/rest/notify/v1/service/notification.d.ts +1 -1
  164. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +1 -1
  165. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +1 -1
  166. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +1 -1
  167. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +4 -4
  168. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +1 -1
  169. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +1 -1
  170. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +1 -1
  171. package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +2 -2
  172. package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +1 -1
  173. package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +2 -2
  174. package/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +2 -2
  175. package/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +2 -2
  176. package/lib/rest/preview/understand/assistant/modelBuild.d.ts +1 -1
  177. package/lib/rest/preview/wireless/sim.d.ts +12 -16
  178. package/lib/rest/proxy/v1/service/session/interaction.d.ts +2 -2
  179. package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +2 -2
  180. package/lib/rest/proxy/v1/service/session.d.ts +2 -2
  181. package/lib/rest/proxy/v1/service.d.ts +2 -2
  182. package/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +1 -1
  183. package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +1 -1
  184. package/lib/rest/serverless/v1/service/build.d.ts +2 -2
  185. package/lib/rest/serverless/v1/service/environment/log.d.ts +1 -1
  186. package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +1 -1
  187. package/lib/rest/studio/v1/flow/engagement.d.ts +1 -1
  188. package/lib/rest/studio/v1/flow/execution.d.ts +1 -1
  189. package/lib/rest/studio/v1/flow.d.ts +1 -1
  190. package/lib/rest/studio/v2/flow/execution.d.ts +1 -1
  191. package/lib/rest/studio/v2/flow/flowRevision.d.ts +1 -1
  192. package/lib/rest/studio/v2/flow.d.ts +1 -1
  193. package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
  194. package/lib/rest/supersim/v1/esimProfile.d.ts +15 -1
  195. package/lib/rest/supersim/v1/esimProfile.js +6 -0
  196. package/lib/rest/supersim/v1/fleet.d.ts +7 -9
  197. package/lib/rest/supersim/v1/ipCommand.d.ts +3 -3
  198. package/lib/rest/supersim/v1/settingsUpdate.d.ts +1 -1
  199. package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +1 -1
  200. package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +1 -1
  201. package/lib/rest/supersim/v1/sim.d.ts +2 -2
  202. package/lib/rest/supersim/v1/smsCommand.d.ts +2 -2
  203. package/lib/rest/supersim/v1/usageRecord.d.ts +2 -2
  204. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +2 -2
  205. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +2 -2
  206. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +14 -14
  207. package/lib/rest/taskrouter/v1/workspace/task.d.ts +1 -1
  208. package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +1 -1
  209. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +12 -12
  210. package/lib/rest/taskrouter/v1/workspace.d.ts +1 -1
  211. package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +16 -21
  212. package/lib/rest/trunking/v1/trunk/recording.d.ts +2 -2
  213. package/lib/rest/trunking/v1/trunk.d.ts +5 -6
  214. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +4 -4
  215. package/lib/rest/trusthub/v1/customerProfiles.d.ts +8 -8
  216. package/lib/rest/trusthub/v1/supportingDocument.d.ts +1 -1
  217. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +4 -4
  218. package/lib/rest/trusthub/v1/trustProducts.d.ts +8 -8
  219. package/lib/rest/verify/v2/form.d.ts +1 -1
  220. package/lib/rest/verify/v2/service/accessToken.d.ts +1 -1
  221. package/lib/rest/verify/v2/service/entity/challenge.d.ts +4 -4
  222. package/lib/rest/verify/v2/service/entity/factor.d.ts +3 -3
  223. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +4 -4
  224. package/lib/rest/verify/v2/service/verification.d.ts +3 -3
  225. package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
  226. package/lib/rest/verify/v2/service/webhook.d.ts +3 -3
  227. package/lib/rest/verify/v2/verificationAttempt.d.ts +2 -2
  228. package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +1 -1
  229. package/lib/rest/video/v1/composition.d.ts +5 -6
  230. package/lib/rest/video/v1/compositionHook.d.ts +4 -5
  231. package/lib/rest/video/v1/recording.d.ts +7 -8
  232. package/lib/rest/video/v1/room/participant/anonymize.d.ts +4 -4
  233. package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +4 -4
  234. package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +4 -4
  235. package/lib/rest/video/v1/room/participant.d.ts +8 -8
  236. package/lib/rest/video/v1/room/roomRecording.d.ts +4 -4
  237. package/lib/rest/video/v1/room.d.ts +6 -7
  238. package/lib/rest/voice/v1/byocTrunk.d.ts +9 -12
  239. package/lib/rest/wireless/v1/command.d.ts +4 -4
  240. package/lib/rest/wireless/v1/sim/usageRecord.d.ts +1 -1
  241. package/lib/rest/wireless/v1/sim.d.ts +17 -22
  242. package/lib/rest/wireless/v1/usageRecord.d.ts +4 -4
  243. package/package.json +2 -5
@@ -0,0 +1,109 @@
1
+ /// <reference types="node" />
2
+ import { inspect, InspectOptions } from "util";
3
+ import V1 from "../V1";
4
+ export interface LinkshorteningMessagingServiceContext {
5
+ /**
6
+ * Create a LinkshorteningMessagingServiceInstance
7
+ *
8
+ * @param callback - Callback to handle processed record
9
+ *
10
+ * @returns Resolves to processed LinkshorteningMessagingServiceInstance
11
+ */
12
+ create(callback?: (error: Error | null, item?: LinkshorteningMessagingServiceInstance) => any): Promise<LinkshorteningMessagingServiceInstance>;
13
+ /**
14
+ * Remove a LinkshorteningMessagingServiceInstance
15
+ *
16
+ * @param callback - Callback to handle processed record
17
+ *
18
+ * @returns Resolves to processed boolean
19
+ */
20
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
21
+ /**
22
+ * Provide a user-friendly representation
23
+ */
24
+ toJSON(): any;
25
+ [inspect.custom](_depth: any, options: InspectOptions): any;
26
+ }
27
+ export interface LinkshorteningMessagingServiceContextSolution {
28
+ domainSid: string;
29
+ messagingServiceSid: string;
30
+ }
31
+ export declare class LinkshorteningMessagingServiceContextImpl implements LinkshorteningMessagingServiceContext {
32
+ protected _version: V1;
33
+ protected _solution: LinkshorteningMessagingServiceContextSolution;
34
+ protected _uri: string;
35
+ constructor(_version: V1, domainSid: string, messagingServiceSid: string);
36
+ create(callback?: (error: Error | null, item?: LinkshorteningMessagingServiceInstance) => any): Promise<LinkshorteningMessagingServiceInstance>;
37
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
38
+ /**
39
+ * Provide a user-friendly representation
40
+ *
41
+ * @returns Object
42
+ */
43
+ toJSON(): LinkshorteningMessagingServiceContextSolution;
44
+ [inspect.custom](_depth: any, options: InspectOptions): string;
45
+ }
46
+ interface LinkshorteningMessagingServiceResource {
47
+ domain_sid: string;
48
+ messaging_service_sid: string;
49
+ url: string;
50
+ }
51
+ export declare class LinkshorteningMessagingServiceInstance {
52
+ protected _version: V1;
53
+ protected _solution: LinkshorteningMessagingServiceContextSolution;
54
+ protected _context?: LinkshorteningMessagingServiceContext;
55
+ constructor(_version: V1, payload: LinkshorteningMessagingServiceResource, domainSid?: string, messagingServiceSid?: string);
56
+ /**
57
+ * The unique string identifies the domain resource
58
+ */
59
+ domainSid: string;
60
+ /**
61
+ * The unique string that identifies the messaging service
62
+ */
63
+ messagingServiceSid: string;
64
+ url: string;
65
+ private get _proxy();
66
+ /**
67
+ * Create a LinkshorteningMessagingServiceInstance
68
+ *
69
+ * @param callback - Callback to handle processed record
70
+ *
71
+ * @returns Resolves to processed LinkshorteningMessagingServiceInstance
72
+ */
73
+ create(callback?: (error: Error | null, item?: LinkshorteningMessagingServiceInstance) => any): Promise<LinkshorteningMessagingServiceInstance>;
74
+ /**
75
+ * Remove a LinkshorteningMessagingServiceInstance
76
+ *
77
+ * @param callback - Callback to handle processed record
78
+ *
79
+ * @returns Resolves to processed boolean
80
+ */
81
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
82
+ /**
83
+ * Provide a user-friendly representation
84
+ *
85
+ * @returns Object
86
+ */
87
+ toJSON(): {
88
+ domainSid: string;
89
+ messagingServiceSid: string;
90
+ url: string;
91
+ };
92
+ [inspect.custom](_depth: any, options: InspectOptions): string;
93
+ }
94
+ export interface LinkshorteningMessagingServiceSolution {
95
+ }
96
+ export interface LinkshorteningMessagingServiceListInstance {
97
+ _version: V1;
98
+ _solution: LinkshorteningMessagingServiceSolution;
99
+ _uri: string;
100
+ (domainSid: string, messagingServiceSid: string): LinkshorteningMessagingServiceContext;
101
+ get(domainSid: string, messagingServiceSid: string): LinkshorteningMessagingServiceContext;
102
+ /**
103
+ * Provide a user-friendly representation
104
+ */
105
+ toJSON(): any;
106
+ [inspect.custom](_depth: any, options: InspectOptions): any;
107
+ }
108
+ export declare function LinkshorteningMessagingServiceListInstance(version: V1): LinkshorteningMessagingServiceListInstance;
109
+ export {};
@@ -0,0 +1,135 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Messaging
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.LinkshorteningMessagingServiceListInstance = exports.LinkshorteningMessagingServiceInstance = exports.LinkshorteningMessagingServiceContextImpl = void 0;
17
+ const util_1 = require("util");
18
+ const deserialize = require("../../../base/deserialize");
19
+ const serialize = require("../../../base/serialize");
20
+ const utility_1 = require("../../../base/utility");
21
+ class LinkshorteningMessagingServiceContextImpl {
22
+ constructor(_version, domainSid, messagingServiceSid) {
23
+ this._version = _version;
24
+ if (!(0, utility_1.isValidPathParam)(domainSid)) {
25
+ throw new Error("Parameter 'domainSid' is not valid.");
26
+ }
27
+ if (!(0, utility_1.isValidPathParam)(messagingServiceSid)) {
28
+ throw new Error("Parameter 'messagingServiceSid' is not valid.");
29
+ }
30
+ this._solution = { domainSid, messagingServiceSid };
31
+ this._uri = `/LinkShortening/Domains/${domainSid}/MessagingServices/${messagingServiceSid}`;
32
+ }
33
+ create(callback) {
34
+ const instance = this;
35
+ let operationVersion = instance._version, operationPromise = operationVersion.create({
36
+ uri: instance._uri,
37
+ method: "post",
38
+ });
39
+ operationPromise = operationPromise.then((payload) => new LinkshorteningMessagingServiceInstance(operationVersion, payload, instance._solution.domainSid, instance._solution.messagingServiceSid));
40
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
41
+ return operationPromise;
42
+ }
43
+ remove(callback) {
44
+ const instance = this;
45
+ let operationVersion = instance._version, operationPromise = operationVersion.remove({
46
+ uri: instance._uri,
47
+ method: "delete",
48
+ });
49
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
50
+ return operationPromise;
51
+ }
52
+ /**
53
+ * Provide a user-friendly representation
54
+ *
55
+ * @returns Object
56
+ */
57
+ toJSON() {
58
+ return this._solution;
59
+ }
60
+ [util_1.inspect.custom](_depth, options) {
61
+ return (0, util_1.inspect)(this.toJSON(), options);
62
+ }
63
+ }
64
+ exports.LinkshorteningMessagingServiceContextImpl = LinkshorteningMessagingServiceContextImpl;
65
+ class LinkshorteningMessagingServiceInstance {
66
+ constructor(_version, payload, domainSid, messagingServiceSid) {
67
+ this._version = _version;
68
+ this.domainSid = payload.domain_sid;
69
+ this.messagingServiceSid = payload.messaging_service_sid;
70
+ this.url = payload.url;
71
+ this._solution = {
72
+ domainSid: domainSid || this.domainSid,
73
+ messagingServiceSid: messagingServiceSid || this.messagingServiceSid,
74
+ };
75
+ }
76
+ get _proxy() {
77
+ this._context =
78
+ this._context ||
79
+ new LinkshorteningMessagingServiceContextImpl(this._version, this._solution.domainSid, this._solution.messagingServiceSid);
80
+ return this._context;
81
+ }
82
+ /**
83
+ * Create a LinkshorteningMessagingServiceInstance
84
+ *
85
+ * @param callback - Callback to handle processed record
86
+ *
87
+ * @returns Resolves to processed LinkshorteningMessagingServiceInstance
88
+ */
89
+ create(callback) {
90
+ return this._proxy.create(callback);
91
+ }
92
+ /**
93
+ * Remove a LinkshorteningMessagingServiceInstance
94
+ *
95
+ * @param callback - Callback to handle processed record
96
+ *
97
+ * @returns Resolves to processed boolean
98
+ */
99
+ remove(callback) {
100
+ return this._proxy.remove(callback);
101
+ }
102
+ /**
103
+ * Provide a user-friendly representation
104
+ *
105
+ * @returns Object
106
+ */
107
+ toJSON() {
108
+ return {
109
+ domainSid: this.domainSid,
110
+ messagingServiceSid: this.messagingServiceSid,
111
+ url: this.url,
112
+ };
113
+ }
114
+ [util_1.inspect.custom](_depth, options) {
115
+ return (0, util_1.inspect)(this.toJSON(), options);
116
+ }
117
+ }
118
+ exports.LinkshorteningMessagingServiceInstance = LinkshorteningMessagingServiceInstance;
119
+ function LinkshorteningMessagingServiceListInstance(version) {
120
+ const instance = ((domainSid, messagingServiceSid) => instance.get(domainSid, messagingServiceSid));
121
+ instance.get = function get(domainSid, messagingServiceSid) {
122
+ return new LinkshorteningMessagingServiceContextImpl(version, domainSid, messagingServiceSid);
123
+ };
124
+ instance._version = version;
125
+ instance._solution = {};
126
+ instance._uri = ``;
127
+ instance.toJSON = function toJSON() {
128
+ return instance._solution;
129
+ };
130
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
131
+ return (0, util_1.inspect)(instance.toJSON(), options);
132
+ };
133
+ return instance;
134
+ }
135
+ exports.LinkshorteningMessagingServiceListInstance = LinkshorteningMessagingServiceListInstance;
@@ -8,7 +8,7 @@ import { PhoneNumberListInstance } from "./service/phoneNumber";
8
8
  import { ShortCodeListInstance } from "./service/shortCode";
9
9
  import { UsAppToPersonListInstance } from "./service/usAppToPerson";
10
10
  import { UsAppToPersonUsecaseListInstance } from "./service/usAppToPersonUsecase";
11
- type ServiceScanMessageContent = "inherit" | "enable" | "disable";
11
+ export type ServiceScanMessageContent = "inherit" | "enable" | "disable";
12
12
  /**
13
13
  * Options to pass to update a ServiceInstance
14
14
  */
@@ -190,8 +190,6 @@ export declare class ServiceContextImpl implements ServiceContext {
190
190
  toJSON(): ServiceContextSolution;
191
191
  [inspect.custom](_depth: any, options: InspectOptions): string;
192
192
  }
193
- export type ServiceInboundMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
194
- export type ServiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
195
193
  interface ServicePayload extends TwilioResponsePayload {
196
194
  services: ServiceResource[];
197
195
  }
@@ -202,9 +200,9 @@ interface ServiceResource {
202
200
  date_created: Date;
203
201
  date_updated: Date;
204
202
  inbound_request_url: string;
205
- inbound_method: ServiceInboundMethod;
203
+ inbound_method: string;
206
204
  fallback_url: string;
207
- fallback_method: ServiceFallbackMethod;
205
+ fallback_method: string;
208
206
  status_callback: string;
209
207
  sticky_sender: boolean;
210
208
  mms_converter: boolean;
@@ -252,7 +250,7 @@ export declare class ServiceInstance {
252
250
  /**
253
251
  * The HTTP method we use to call `inbound_request_url`. Can be `GET` or `POST`.
254
252
  */
255
- inboundMethod: ServiceInboundMethod;
253
+ inboundMethod: string;
256
254
  /**
257
255
  * The URL that we call using `fallback_method` if an error occurs while retrieving or executing the TwiML from the Inbound Request URL. If the `use_inbound_webhook_on_number` field is enabled then the webhook url defined on the phone number will override the `fallback_url` defined for the Messaging Service.
258
256
  */
@@ -260,7 +258,7 @@ export declare class ServiceInstance {
260
258
  /**
261
259
  * The HTTP method we use to call `fallback_url`. Can be: `GET` or `POST`.
262
260
  */
263
- fallbackMethod: ServiceFallbackMethod;
261
+ fallbackMethod: string;
264
262
  /**
265
263
  * The URL we call to [pass status updates](https://www.twilio.com/docs/sms/api/message-resource#message-status-values) about message delivery.
266
264
  */
@@ -380,9 +378,9 @@ export declare class ServiceInstance {
380
378
  dateCreated: Date;
381
379
  dateUpdated: Date;
382
380
  inboundRequestUrl: string;
383
- inboundMethod: ServiceInboundMethod;
381
+ inboundMethod: string;
384
382
  fallbackUrl: string;
385
- fallbackMethod: ServiceFallbackMethod;
383
+ fallbackMethod: string;
386
384
  statusCallback: string;
387
385
  stickySender: boolean;
388
386
  mmsConverter: boolean;
@@ -3,8 +3,8 @@ 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
- type TollfreeVerificationOptInType = "VERBAL" | "WEB_FORM" | "PAPER_FORM" | "VIA_TEXT" | "MOBILE_QR_CODE";
7
- type TollfreeVerificationStatus = "PENDING_REVIEW" | "IN_REVIEW" | "TWILIO_APPROVED" | "TWILIO_REJECTED";
6
+ export type TollfreeVerificationOptInType = "VERBAL" | "WEB_FORM" | "PAPER_FORM" | "VIA_TEXT" | "MOBILE_QR_CODE";
7
+ export type TollfreeVerificationStatus = "PENDING_REVIEW" | "IN_REVIEW" | "TWILIO_APPROVED" | "TWILIO_REJECTED";
8
8
  /**
9
9
  * Options to pass to update a TollfreeVerificationInstance
10
10
  */
@@ -3,13 +3,20 @@ 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
+ * Options to pass to update a AccountConfigInstance
8
+ */
9
+ export interface AccountConfigContextUpdateOptions {
10
+ /** The config value; up to 4096 characters. */
11
+ value: string;
12
+ }
6
13
  /**
7
14
  * Options to pass to create a AccountConfigInstance
8
15
  */
9
16
  export interface AccountConfigListInstanceCreateOptions {
10
17
  /** The config key; up to 100 characters. */
11
18
  key: string;
12
- /** The config value; up to 4096 characters. */
19
+ /** The config value; up to 4096 characters. */
13
20
  value: string;
14
21
  }
15
22
  /**
@@ -62,6 +69,15 @@ export interface AccountConfigContext {
62
69
  * @returns Resolves to processed AccountConfigInstance
63
70
  */
64
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>;
65
81
  /**
66
82
  * Provide a user-friendly representation
67
83
  */
@@ -78,6 +94,7 @@ export declare class AccountConfigContextImpl implements AccountConfigContext {
78
94
  constructor(_version: V1, key: string);
79
95
  remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
80
96
  fetch(callback?: (error: Error | null, item?: AccountConfigInstance) => any): Promise<AccountConfigInstance>;
97
+ update(params: AccountConfigContextUpdateOptions, callback?: (error: Error | null, item?: AccountConfigInstance) => any): Promise<AccountConfigInstance>;
81
98
  /**
82
99
  * Provide a user-friendly representation
83
100
  *
@@ -130,6 +147,15 @@ export declare class AccountConfigInstance {
130
147
  * @returns Resolves to processed AccountConfigInstance
131
148
  */
132
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>;
133
159
  /**
134
160
  * Provide a user-friendly representation
135
161
  *
@@ -50,6 +50,28 @@ class AccountConfigContextImpl {
50
50
  operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
51
51
  return operationPromise;
52
52
  }
53
+ update(params, callback) {
54
+ if (params === null || params === undefined) {
55
+ throw new Error('Required parameter "params" missing.');
56
+ }
57
+ if (params["value"] === null || params["value"] === undefined) {
58
+ throw new Error("Required parameter \"params['value']\" missing.");
59
+ }
60
+ let data = {};
61
+ data["Value"] = params["value"];
62
+ const headers = {};
63
+ headers["Content-Type"] = "application/x-www-form-urlencoded";
64
+ const instance = this;
65
+ let operationVersion = instance._version, operationPromise = operationVersion.update({
66
+ uri: instance._uri,
67
+ method: "post",
68
+ data,
69
+ headers,
70
+ });
71
+ operationPromise = operationPromise.then((payload) => new AccountConfigInstance(operationVersion, payload, instance._solution.key));
72
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
73
+ return operationPromise;
74
+ }
53
75
  /**
54
76
  * Provide a user-friendly representation
55
77
  *
@@ -98,6 +120,9 @@ class AccountConfigInstance {
98
120
  fetch(callback) {
99
121
  return this._proxy.fetch(callback);
100
122
  }
123
+ update(params, callback) {
124
+ return this._proxy.update(params, callback);
125
+ }
101
126
  /**
102
127
  * Provide a user-friendly representation
103
128
  *
@@ -3,6 +3,13 @@ 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
+ * Options to pass to update a AccountSecretInstance
8
+ */
9
+ export interface AccountSecretContextUpdateOptions {
10
+ /** The secret value; up to 4096 characters. */
11
+ value: string;
12
+ }
6
13
  /**
7
14
  * Options to pass to create a AccountSecretInstance
8
15
  */
@@ -62,6 +69,15 @@ export interface AccountSecretContext {
62
69
  * @returns Resolves to processed AccountSecretInstance
63
70
  */
64
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>;
65
81
  /**
66
82
  * Provide a user-friendly representation
67
83
  */
@@ -78,6 +94,7 @@ export declare class AccountSecretContextImpl implements AccountSecretContext {
78
94
  constructor(_version: V1, key: string);
79
95
  remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
80
96
  fetch(callback?: (error: Error | null, item?: AccountSecretInstance) => any): Promise<AccountSecretInstance>;
97
+ update(params: AccountSecretContextUpdateOptions, callback?: (error: Error | null, item?: AccountSecretInstance) => any): Promise<AccountSecretInstance>;
81
98
  /**
82
99
  * Provide a user-friendly representation
83
100
  *
@@ -125,6 +142,15 @@ export declare class AccountSecretInstance {
125
142
  * @returns Resolves to processed AccountSecretInstance
126
143
  */
127
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>;
128
154
  /**
129
155
  * Provide a user-friendly representation
130
156
  *
@@ -50,6 +50,28 @@ class AccountSecretContextImpl {
50
50
  operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
51
51
  return operationPromise;
52
52
  }
53
+ update(params, callback) {
54
+ if (params === null || params === undefined) {
55
+ throw new Error('Required parameter "params" missing.');
56
+ }
57
+ if (params["value"] === null || params["value"] === undefined) {
58
+ throw new Error("Required parameter \"params['value']\" missing.");
59
+ }
60
+ let data = {};
61
+ data["Value"] = params["value"];
62
+ const headers = {};
63
+ headers["Content-Type"] = "application/x-www-form-urlencoded";
64
+ const instance = this;
65
+ let operationVersion = instance._version, operationPromise = operationVersion.update({
66
+ uri: instance._uri,
67
+ method: "post",
68
+ data,
69
+ headers,
70
+ });
71
+ operationPromise = operationPromise.then((payload) => new AccountSecretInstance(operationVersion, payload, instance._solution.key));
72
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
73
+ return operationPromise;
74
+ }
53
75
  /**
54
76
  * Provide a user-friendly representation
55
77
  *
@@ -97,6 +119,9 @@ class AccountSecretInstance {
97
119
  fetch(callback) {
98
120
  return this._proxy.fetch(callback);
99
121
  }
122
+ update(params, callback) {
123
+ return this._proxy.update(params, callback);
124
+ }
100
125
  /**
101
126
  * Provide a user-friendly representation
102
127
  *
@@ -0,0 +1,101 @@
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 {};