twilio 5.11.2 → 5.12.1

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 (1042) hide show
  1. package/lib/base/ApiResponse.d.ts +34 -0
  2. package/lib/base/ApiResponse.js +2 -0
  3. package/lib/base/BaseTwilio.d.ts +0 -1
  4. package/lib/base/BaseTwilio.js +0 -22
  5. package/lib/base/TokenPage.d.ts +134 -0
  6. package/lib/base/TokenPage.js +197 -0
  7. package/lib/base/TwilioServiceException.d.ts +30 -0
  8. package/lib/base/TwilioServiceException.js +54 -0
  9. package/lib/base/Version.d.ts +102 -0
  10. package/lib/base/Version.js +402 -9
  11. package/lib/index.d.ts +2 -0
  12. package/lib/rest/accounts/v1/authTokenPromotion.d.ts +18 -0
  13. package/lib/rest/accounts/v1/authTokenPromotion.js +29 -0
  14. package/lib/rest/accounts/v1/bulkConsents.d.ts +10 -0
  15. package/lib/rest/accounts/v1/bulkConsents.js +28 -0
  16. package/lib/rest/accounts/v1/bulkContacts.d.ts +10 -0
  17. package/lib/rest/accounts/v1/bulkContacts.js +28 -0
  18. package/lib/rest/accounts/v1/credential/aws.d.ts +131 -0
  19. package/lib/rest/accounts/v1/credential/aws.js +167 -0
  20. package/lib/rest/accounts/v1/credential/publicKey.d.ts +131 -0
  21. package/lib/rest/accounts/v1/credential/publicKey.js +167 -0
  22. package/lib/rest/accounts/v1/messagingGeopermissions.d.ts +27 -0
  23. package/lib/rest/accounts/v1/messagingGeopermissions.js +57 -0
  24. package/lib/rest/accounts/v1/safelist.d.ts +44 -0
  25. package/lib/rest/accounts/v1/safelist.js +85 -0
  26. package/lib/rest/accounts/v1/secondaryAuthToken.d.ts +35 -0
  27. package/lib/rest/accounts/v1/secondaryAuthToken.js +53 -0
  28. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +53 -0
  29. package/lib/rest/api/v2010/account/address/dependentPhoneNumber.js +48 -0
  30. package/lib/rest/api/v2010/account/address.d.ts +131 -0
  31. package/lib/rest/api/v2010/account/address.js +216 -0
  32. package/lib/rest/api/v2010/account/application.d.ts +139 -0
  33. package/lib/rest/api/v2010/account/application.js +227 -0
  34. package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +70 -0
  35. package/lib/rest/api/v2010/account/authorizedConnectApp.js +77 -0
  36. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.d.ts +53 -0
  37. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.js +84 -0
  38. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.d.ts +53 -0
  39. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.js +84 -0
  40. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.d.ts +53 -0
  41. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.js +84 -0
  42. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.d.ts +53 -0
  43. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.js +84 -0
  44. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.d.ts +53 -0
  45. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.js +84 -0
  46. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.d.ts +53 -0
  47. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.js +84 -0
  48. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.d.ts +53 -0
  49. package/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.js +84 -0
  50. package/lib/rest/api/v2010/account/availablePhoneNumberCountry.d.ts +70 -0
  51. package/lib/rest/api/v2010/account/availablePhoneNumberCountry.js +77 -0
  52. package/lib/rest/api/v2010/account/balance.d.ts +9 -0
  53. package/lib/rest/api/v2010/account/balance.js +18 -0
  54. package/lib/rest/api/v2010/account/call/event.d.ts +53 -0
  55. package/lib/rest/api/v2010/account/call/event.js +48 -0
  56. package/lib/rest/api/v2010/account/call/notification.d.ts +70 -0
  57. package/lib/rest/api/v2010/account/call/notification.js +85 -0
  58. package/lib/rest/api/v2010/account/call/payment.d.ts +29 -0
  59. package/lib/rest/api/v2010/account/call/payment.js +104 -0
  60. package/lib/rest/api/v2010/account/call/recording.d.ts +123 -0
  61. package/lib/rest/api/v2010/account/call/recording.js +182 -0
  62. package/lib/rest/api/v2010/account/call/siprec.d.ts +37 -0
  63. package/lib/rest/api/v2010/account/call/siprec.js +466 -0
  64. package/lib/rest/api/v2010/account/call/stream.d.ts +29 -0
  65. package/lib/rest/api/v2010/account/call/stream.js +464 -0
  66. package/lib/rest/api/v2010/account/call/transcription.d.ts +40 -1
  67. package/lib/rest/api/v2010/account/call/transcription.js +92 -0
  68. package/lib/rest/api/v2010/account/call/userDefinedMessage.d.ts +10 -0
  69. package/lib/rest/api/v2010/account/call/userDefinedMessage.js +30 -0
  70. package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.d.ts +27 -0
  71. package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.js +56 -0
  72. package/lib/rest/api/v2010/account/call.d.ts +143 -12
  73. package/lib/rest/api/v2010/account/call.js +276 -0
  74. package/lib/rest/api/v2010/account/conference/participant.d.ts +131 -0
  75. package/lib/rest/api/v2010/account/conference/participant.js +298 -0
  76. package/lib/rest/api/v2010/account/conference/recording.d.ts +106 -0
  77. package/lib/rest/api/v2010/account/conference/recording.js +141 -0
  78. package/lib/rest/api/v2010/account/conference.d.ts +105 -0
  79. package/lib/rest/api/v2010/account/conference.js +131 -0
  80. package/lib/rest/api/v2010/account/connectApp.d.ts +122 -0
  81. package/lib/rest/api/v2010/account/connectApp.js +149 -0
  82. package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.d.ts +70 -0
  83. package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.js +77 -0
  84. package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +96 -0
  85. package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.js +130 -0
  86. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +62 -0
  87. package/lib/rest/api/v2010/account/incomingPhoneNumber/local.js +128 -0
  88. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +62 -0
  89. package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js +128 -0
  90. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +62 -0
  91. package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js +128 -0
  92. package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +145 -0
  93. package/lib/rest/api/v2010/account/incomingPhoneNumber.js +265 -0
  94. package/lib/rest/api/v2010/account/key.d.ts +122 -0
  95. package/lib/rest/api/v2010/account/key.js +135 -0
  96. package/lib/rest/api/v2010/account/message/feedback.d.ts +18 -0
  97. package/lib/rest/api/v2010/account/message/feedback.js +30 -0
  98. package/lib/rest/api/v2010/account/message/media.d.ts +87 -0
  99. package/lib/rest/api/v2010/account/message/media.js +107 -0
  100. package/lib/rest/api/v2010/account/message.d.ts +131 -0
  101. package/lib/rest/api/v2010/account/message.js +221 -0
  102. package/lib/rest/api/v2010/account/newKey.d.ts +18 -0
  103. package/lib/rest/api/v2010/account/newKey.js +30 -0
  104. package/lib/rest/api/v2010/account/newSigningKey.d.ts +18 -0
  105. package/lib/rest/api/v2010/account/newSigningKey.js +30 -0
  106. package/lib/rest/api/v2010/account/notification.d.ts +70 -0
  107. package/lib/rest/api/v2010/account/notification.js +85 -0
  108. package/lib/rest/api/v2010/account/outgoingCallerId.d.ts +122 -0
  109. package/lib/rest/api/v2010/account/outgoingCallerId.js +139 -0
  110. package/lib/rest/api/v2010/account/queue/member.d.ts +89 -0
  111. package/lib/rest/api/v2010/account/queue/member.js +111 -0
  112. package/lib/rest/api/v2010/account/queue.d.ts +131 -0
  113. package/lib/rest/api/v2010/account/queue.js +168 -0
  114. package/lib/rest/api/v2010/account/recording/addOnResult/payload/data.d.ts +18 -0
  115. package/lib/rest/api/v2010/account/recording/addOnResult/payload/data.js +29 -0
  116. package/lib/rest/api/v2010/account/recording/addOnResult/payload.d.ts +87 -0
  117. package/lib/rest/api/v2010/account/recording/addOnResult/payload.js +101 -0
  118. package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +87 -0
  119. package/lib/rest/api/v2010/account/recording/addOnResult.js +101 -0
  120. package/lib/rest/api/v2010/account/recording/transcription.d.ts +87 -0
  121. package/lib/rest/api/v2010/account/recording/transcription.js +101 -0
  122. package/lib/rest/api/v2010/account/recording.d.ts +105 -0
  123. package/lib/rest/api/v2010/account/recording.js +117 -0
  124. package/lib/rest/api/v2010/account/shortCode.d.ts +105 -0
  125. package/lib/rest/api/v2010/account/shortCode.js +125 -0
  126. package/lib/rest/api/v2010/account/signingKey.d.ts +122 -0
  127. package/lib/rest/api/v2010/account/signingKey.js +135 -0
  128. package/lib/rest/api/v2010/account/sip/credentialList/credential.d.ts +131 -0
  129. package/lib/rest/api/v2010/account/sip/credentialList/credential.js +167 -0
  130. package/lib/rest/api/v2010/account/sip/credentialList.d.ts +115 -0
  131. package/lib/rest/api/v2010/account/sip/credentialList.js +163 -0
  132. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsCredentialListMapping.d.ts +96 -0
  133. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsCredentialListMapping.js +130 -0
  134. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsIpAccessControlListMapping.d.ts +96 -0
  135. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsIpAccessControlListMapping.js +130 -0
  136. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations/authRegistrationsCredentialListMapping.d.ts +96 -0
  137. package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations/authRegistrationsCredentialListMapping.js +130 -0
  138. package/lib/rest/api/v2010/account/sip/domain/credentialListMapping.d.ts +96 -0
  139. package/lib/rest/api/v2010/account/sip/domain/credentialListMapping.js +130 -0
  140. package/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.d.ts +96 -0
  141. package/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.js +130 -0
  142. package/lib/rest/api/v2010/account/sip/domain.d.ts +131 -0
  143. package/lib/rest/api/v2010/account/sip/domain.js +211 -0
  144. package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +131 -0
  145. package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +174 -0
  146. package/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts +115 -0
  147. package/lib/rest/api/v2010/account/sip/ipAccessControlList.js +163 -0
  148. package/lib/rest/api/v2010/account/token.d.ts +18 -0
  149. package/lib/rest/api/v2010/account/token.js +30 -0
  150. package/lib/rest/api/v2010/account/transcription.d.ts +87 -0
  151. package/lib/rest/api/v2010/account/transcription.js +101 -0
  152. package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +53 -0
  153. package/lib/rest/api/v2010/account/usage/record/allTime.js +56 -0
  154. package/lib/rest/api/v2010/account/usage/record/daily.d.ts +53 -0
  155. package/lib/rest/api/v2010/account/usage/record/daily.js +56 -0
  156. package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +53 -0
  157. package/lib/rest/api/v2010/account/usage/record/lastMonth.js +56 -0
  158. package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +53 -0
  159. package/lib/rest/api/v2010/account/usage/record/monthly.js +56 -0
  160. package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +53 -0
  161. package/lib/rest/api/v2010/account/usage/record/thisMonth.js +56 -0
  162. package/lib/rest/api/v2010/account/usage/record/today.d.ts +53 -0
  163. package/lib/rest/api/v2010/account/usage/record/today.js +56 -0
  164. package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +53 -0
  165. package/lib/rest/api/v2010/account/usage/record/yearly.js +56 -0
  166. package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +53 -0
  167. package/lib/rest/api/v2010/account/usage/record/yesterday.js +56 -0
  168. package/lib/rest/api/v2010/account/usage/record.d.ts +53 -0
  169. package/lib/rest/api/v2010/account/usage/record.js +56 -0
  170. package/lib/rest/api/v2010/account/usage/trigger.d.ts +131 -0
  171. package/lib/rest/api/v2010/account/usage/trigger.js +191 -0
  172. package/lib/rest/api/v2010/account/validationRequest.d.ts +10 -0
  173. package/lib/rest/api/v2010/account/validationRequest.js +38 -0
  174. package/lib/rest/api/v2010/account.d.ts +122 -0
  175. package/lib/rest/api/v2010/account.js +147 -0
  176. package/lib/rest/assistants/v1/assistant/assistantsKnowledge.d.ts +87 -0
  177. package/lib/rest/assistants/v1/assistant/assistantsKnowledge.js +100 -0
  178. package/lib/rest/assistants/v1/assistant/assistantsTool.d.ts +87 -0
  179. package/lib/rest/assistants/v1/assistant/assistantsTool.js +100 -0
  180. package/lib/rest/assistants/v1/assistant/feedback.d.ts +63 -0
  181. package/lib/rest/assistants/v1/assistant/feedback.js +75 -0
  182. package/lib/rest/assistants/v1/assistant/message.d.ts +11 -0
  183. package/lib/rest/assistants/v1/assistant/message.js +27 -0
  184. package/lib/rest/assistants/v1/assistant.d.ts +134 -0
  185. package/lib/rest/assistants/v1/assistant.js +163 -0
  186. package/lib/rest/assistants/v1/knowledge/chunk.d.ts +53 -0
  187. package/lib/rest/assistants/v1/knowledge/chunk.js +48 -0
  188. package/lib/rest/assistants/v1/knowledge/knowledgeStatus.d.ts +18 -0
  189. package/lib/rest/assistants/v1/knowledge/knowledgeStatus.js +29 -0
  190. package/lib/rest/assistants/v1/knowledge.d.ts +134 -0
  191. package/lib/rest/assistants/v1/knowledge.js +165 -0
  192. package/lib/rest/assistants/v1/policy.d.ts +53 -0
  193. package/lib/rest/assistants/v1/policy.js +52 -0
  194. package/lib/rest/assistants/v1/session/message.d.ts +53 -0
  195. package/lib/rest/assistants/v1/session/message.js +48 -0
  196. package/lib/rest/assistants/v1/session.d.ts +70 -0
  197. package/lib/rest/assistants/v1/session.js +77 -0
  198. package/lib/rest/assistants/v1/tool.d.ts +134 -0
  199. package/lib/rest/assistants/v1/tool.js +165 -0
  200. package/lib/rest/bulkexports/v1/export/day.d.ts +70 -0
  201. package/lib/rest/bulkexports/v1/export/day.js +77 -0
  202. package/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +62 -0
  203. package/lib/rest/bulkexports/v1/export/exportCustomJob.js +91 -0
  204. package/lib/rest/bulkexports/v1/export/job.d.ts +35 -0
  205. package/lib/rest/bulkexports/v1/export/job.js +53 -0
  206. package/lib/rest/bulkexports/v1/export.d.ts +18 -0
  207. package/lib/rest/bulkexports/v1/export.js +29 -0
  208. package/lib/rest/bulkexports/v1/exportConfiguration.d.ts +53 -0
  209. package/lib/rest/bulkexports/v1/exportConfiguration.js +67 -0
  210. package/lib/rest/chat/v1/credential.d.ts +131 -0
  211. package/lib/rest/chat/v1/credential.js +185 -0
  212. package/lib/rest/chat/v1/service/channel/invite.d.ts +96 -0
  213. package/lib/rest/chat/v1/service/channel/invite.js +133 -0
  214. package/lib/rest/chat/v1/service/channel/member.d.ts +131 -0
  215. package/lib/rest/chat/v1/service/channel/member.js +169 -0
  216. package/lib/rest/chat/v1/service/channel/message.d.ts +131 -0
  217. package/lib/rest/chat/v1/service/channel/message.js +171 -0
  218. package/lib/rest/chat/v1/service/channel.d.ts +139 -0
  219. package/lib/rest/chat/v1/service/channel.js +177 -0
  220. package/lib/rest/chat/v1/service/role.d.ts +115 -0
  221. package/lib/rest/chat/v1/service/role.js +170 -0
  222. package/lib/rest/chat/v1/service/user/userChannel.d.ts +53 -0
  223. package/lib/rest/chat/v1/service/user/userChannel.js +48 -0
  224. package/lib/rest/chat/v1/service/user.d.ts +131 -0
  225. package/lib/rest/chat/v1/service/user.js +173 -0
  226. package/lib/rest/chat/v1/service.d.ts +131 -0
  227. package/lib/rest/chat/v1/service.js +302 -0
  228. package/lib/rest/chat/v2/credential.d.ts +131 -0
  229. package/lib/rest/chat/v2/credential.js +185 -0
  230. package/lib/rest/chat/v2/service/binding.d.ts +87 -0
  231. package/lib/rest/chat/v2/service/binding.js +105 -0
  232. package/lib/rest/chat/v2/service/channel/invite.d.ts +96 -0
  233. package/lib/rest/chat/v2/service/channel/invite.js +133 -0
  234. package/lib/rest/chat/v2/service/channel/member.d.ts +149 -0
  235. package/lib/rest/chat/v2/service/channel/member.js +199 -0
  236. package/lib/rest/chat/v2/service/channel/message.d.ts +157 -0
  237. package/lib/rest/chat/v2/service/channel/message.js +201 -0
  238. package/lib/rest/chat/v2/service/channel/webhook.d.ts +131 -0
  239. package/lib/rest/chat/v2/service/channel/webhook.js +185 -0
  240. package/lib/rest/chat/v2/service/channel.d.ts +157 -0
  241. package/lib/rest/chat/v2/service/channel.js +201 -0
  242. package/lib/rest/chat/v2/service/role.d.ts +115 -0
  243. package/lib/rest/chat/v2/service/role.js +170 -0
  244. package/lib/rest/chat/v2/service/user/userBinding.d.ts +87 -0
  245. package/lib/rest/chat/v2/service/user/userBinding.js +103 -0
  246. package/lib/rest/chat/v2/service/user/userChannel.d.ts +140 -0
  247. package/lib/rest/chat/v2/service/user/userChannel.js +147 -0
  248. package/lib/rest/chat/v2/service/user.d.ts +131 -0
  249. package/lib/rest/chat/v2/service/user.js +177 -0
  250. package/lib/rest/chat/v2/service.d.ts +131 -0
  251. package/lib/rest/chat/v2/service.js +233 -0
  252. package/lib/rest/chat/v3/channel.d.ts +36 -0
  253. package/lib/rest/chat/v3/channel.js +38 -0
  254. package/lib/rest/content/v1/content/approvalCreate.d.ts +11 -0
  255. package/lib/rest/content/v1/content/approvalCreate.js +27 -0
  256. package/lib/rest/content/v1/content/approvalFetch.d.ts +18 -0
  257. package/lib/rest/content/v1/content/approvalFetch.js +29 -0
  258. package/lib/rest/content/v1/content.d.ts +118 -0
  259. package/lib/rest/content/v1/content.js +159 -0
  260. package/lib/rest/content/v1/contentAndApprovals.d.ts +53 -0
  261. package/lib/rest/content/v1/contentAndApprovals.js +48 -0
  262. package/lib/rest/content/v1/legacyContent.d.ts +53 -0
  263. package/lib/rest/content/v1/legacyContent.js +48 -0
  264. package/lib/rest/content/v2/content.d.ts +53 -0
  265. package/lib/rest/content/v2/content.js +66 -0
  266. package/lib/rest/content/v2/contentAndApprovals.d.ts +53 -0
  267. package/lib/rest/content/v2/contentAndApprovals.js +66 -0
  268. package/lib/rest/conversations/v1/addressConfiguration.d.ts +131 -0
  269. package/lib/rest/conversations/v1/addressConfiguration.js +209 -0
  270. package/lib/rest/conversations/v1/configuration/webhook.d.ts +53 -0
  271. package/lib/rest/conversations/v1/configuration/webhook.js +71 -0
  272. package/lib/rest/conversations/v1/configuration.d.ts +53 -0
  273. package/lib/rest/conversations/v1/configuration.js +69 -0
  274. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +70 -0
  275. package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.js +77 -0
  276. package/lib/rest/conversations/v1/conversation/message.d.ts +157 -0
  277. package/lib/rest/conversations/v1/conversation/message.js +205 -0
  278. package/lib/rest/conversations/v1/conversation/participant.d.ts +157 -0
  279. package/lib/rest/conversations/v1/conversation/participant.js +211 -0
  280. package/lib/rest/conversations/v1/conversation/webhook.d.ts +131 -0
  281. package/lib/rest/conversations/v1/conversation/webhook.js +183 -0
  282. package/lib/rest/conversations/v1/conversation.d.ts +157 -0
  283. package/lib/rest/conversations/v1/conversation.js +223 -0
  284. package/lib/rest/conversations/v1/conversationWithParticipants.d.ts +18 -0
  285. package/lib/rest/conversations/v1/conversationWithParticipants.js +54 -0
  286. package/lib/rest/conversations/v1/credential.d.ts +131 -0
  287. package/lib/rest/conversations/v1/credential.js +187 -0
  288. package/lib/rest/conversations/v1/participantConversation.d.ts +53 -0
  289. package/lib/rest/conversations/v1/participantConversation.js +52 -0
  290. package/lib/rest/conversations/v1/role.d.ts +115 -0
  291. package/lib/rest/conversations/v1/role.js +170 -0
  292. package/lib/rest/conversations/v1/service/binding.d.ts +87 -0
  293. package/lib/rest/conversations/v1/service/binding.js +105 -0
  294. package/lib/rest/conversations/v1/service/configuration/notification.d.ts +53 -0
  295. package/lib/rest/conversations/v1/service/configuration/notification.js +91 -0
  296. package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +53 -0
  297. package/lib/rest/conversations/v1/service/configuration/webhook.js +69 -0
  298. package/lib/rest/conversations/v1/service/configuration.d.ts +53 -0
  299. package/lib/rest/conversations/v1/service/configuration.js +70 -0
  300. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +70 -0
  301. package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.js +77 -0
  302. package/lib/rest/conversations/v1/service/conversation/message.d.ts +157 -0
  303. package/lib/rest/conversations/v1/service/conversation/message.js +205 -0
  304. package/lib/rest/conversations/v1/service/conversation/participant.d.ts +157 -0
  305. package/lib/rest/conversations/v1/service/conversation/participant.js +211 -0
  306. package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +131 -0
  307. package/lib/rest/conversations/v1/service/conversation/webhook.js +183 -0
  308. package/lib/rest/conversations/v1/service/conversation.d.ts +157 -0
  309. package/lib/rest/conversations/v1/service/conversation.js +223 -0
  310. package/lib/rest/conversations/v1/service/conversationWithParticipants.d.ts +18 -0
  311. package/lib/rest/conversations/v1/service/conversationWithParticipants.js +54 -0
  312. package/lib/rest/conversations/v1/service/participantConversation.d.ts +53 -0
  313. package/lib/rest/conversations/v1/service/participantConversation.js +52 -0
  314. package/lib/rest/conversations/v1/service/role.d.ts +115 -0
  315. package/lib/rest/conversations/v1/service/role.js +170 -0
  316. package/lib/rest/conversations/v1/service/user/userConversation.d.ts +122 -0
  317. package/lib/rest/conversations/v1/service/user/userConversation.js +139 -0
  318. package/lib/rest/conversations/v1/service/user.d.ts +149 -0
  319. package/lib/rest/conversations/v1/service/user.js +185 -0
  320. package/lib/rest/conversations/v1/service.d.ts +96 -0
  321. package/lib/rest/conversations/v1/service.js +130 -0
  322. package/lib/rest/conversations/v1/user/userConversation.d.ts +122 -0
  323. package/lib/rest/conversations/v1/user/userConversation.js +139 -0
  324. package/lib/rest/conversations/v1/user.d.ts +149 -0
  325. package/lib/rest/conversations/v1/user.js +185 -0
  326. package/lib/rest/events/v1/eventType.d.ts +70 -0
  327. package/lib/rest/events/v1/eventType.js +79 -0
  328. package/lib/rest/events/v1/schema/schemaVersion.d.ts +70 -0
  329. package/lib/rest/events/v1/schema/schemaVersion.js +77 -0
  330. package/lib/rest/events/v1/schema.d.ts +18 -0
  331. package/lib/rest/events/v1/schema.js +29 -0
  332. package/lib/rest/events/v1/sink/sinkTest.d.ts +9 -0
  333. package/lib/rest/events/v1/sink/sinkTest.js +18 -0
  334. package/lib/rest/events/v1/sink/sinkValidate.d.ts +10 -0
  335. package/lib/rest/events/v1/sink/sinkValidate.js +28 -0
  336. package/lib/rest/events/v1/sink.d.ts +115 -0
  337. package/lib/rest/events/v1/sink.js +174 -0
  338. package/lib/rest/events/v1/subscription/subscribedEvent.d.ts +131 -0
  339. package/lib/rest/events/v1/subscription/subscribedEvent.js +165 -0
  340. package/lib/rest/events/v1/subscription.d.ts +131 -0
  341. package/lib/rest/events/v1/subscription.js +173 -0
  342. package/lib/rest/flexApi/V1.d.ts +5 -0
  343. package/lib/rest/flexApi/V1.js +7 -0
  344. package/lib/rest/flexApi/v1/assessments.d.ts +81 -0
  345. package/lib/rest/flexApi/v1/assessments.js +162 -0
  346. package/lib/rest/flexApi/v1/channel.d.ts +96 -0
  347. package/lib/rest/flexApi/v1/channel.js +155 -0
  348. package/lib/rest/flexApi/v1/configuration.d.ts +73 -0
  349. package/lib/rest/flexApi/v1/configuration.js +68 -0
  350. package/lib/rest/flexApi/v1/createFlexInstance.d.ts +163 -0
  351. package/lib/rest/flexApi/v1/createFlexInstance.js +159 -0
  352. package/lib/rest/flexApi/v1/flexFlow.d.ts +131 -0
  353. package/lib/rest/flexApi/v1/flexFlow.js +235 -0
  354. package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +62 -0
  355. package/lib/rest/flexApi/v1/insightsAssessmentsComment.js +105 -0
  356. package/lib/rest/flexApi/v1/insightsConversations.d.ts +53 -0
  357. package/lib/rest/flexApi/v1/insightsConversations.js +52 -0
  358. package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +151 -0
  359. package/lib/rest/flexApi/v1/insightsQuestionnaires.js +193 -0
  360. package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.d.ts +116 -0
  361. package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.js +146 -0
  362. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +116 -0
  363. package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +170 -0
  364. package/lib/rest/flexApi/v1/insightsSegments.d.ts +53 -0
  365. package/lib/rest/flexApi/v1/insightsSegments.js +54 -0
  366. package/lib/rest/flexApi/v1/insightsSession.d.ts +36 -0
  367. package/lib/rest/flexApi/v1/insightsSession.js +33 -0
  368. package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +18 -0
  369. package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.js +29 -0
  370. package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +18 -0
  371. package/lib/rest/flexApi/v1/insightsSettingsComment.js +29 -0
  372. package/lib/rest/flexApi/v1/insightsUserRoles.d.ts +36 -0
  373. package/lib/rest/flexApi/v1/insightsUserRoles.js +33 -0
  374. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +62 -0
  375. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.js +76 -0
  376. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +81 -0
  377. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.js +115 -0
  378. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.d.ts +73 -0
  379. package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.js +95 -0
  380. package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +89 -0
  381. package/lib/rest/flexApi/v1/interaction/interactionChannel.js +111 -0
  382. package/lib/rest/flexApi/v1/interaction.d.ts +62 -0
  383. package/lib/rest/flexApi/v1/interaction.js +97 -0
  384. package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +97 -0
  385. package/lib/rest/flexApi/v1/plugin/pluginVersions.js +125 -0
  386. package/lib/rest/flexApi/v1/plugin.d.ts +132 -0
  387. package/lib/rest/flexApi/v1/plugin.js +155 -0
  388. package/lib/rest/flexApi/v1/pluginArchive.d.ts +36 -0
  389. package/lib/rest/flexApi/v1/pluginArchive.js +33 -0
  390. package/lib/rest/flexApi/v1/pluginConfiguration/configuredPlugin.d.ts +88 -0
  391. package/lib/rest/flexApi/v1/pluginConfiguration/configuredPlugin.js +83 -0
  392. package/lib/rest/flexApi/v1/pluginConfiguration.d.ts +97 -0
  393. package/lib/rest/flexApi/v1/pluginConfiguration.js +117 -0
  394. package/lib/rest/flexApi/v1/pluginConfigurationArchive.d.ts +36 -0
  395. package/lib/rest/flexApi/v1/pluginConfigurationArchive.js +33 -0
  396. package/lib/rest/flexApi/v1/pluginRelease.d.ts +97 -0
  397. package/lib/rest/flexApi/v1/pluginRelease.js +114 -0
  398. package/lib/rest/flexApi/v1/pluginVersionArchive.d.ts +36 -0
  399. package/lib/rest/flexApi/v1/pluginVersionArchive.js +33 -0
  400. package/lib/rest/flexApi/v1/provisioningStatus.d.ts +18 -0
  401. package/lib/rest/flexApi/v1/provisioningStatus.js +29 -0
  402. package/lib/rest/flexApi/v1/webChannel.d.ts +131 -0
  403. package/lib/rest/flexApi/v1/webChannel.js +183 -0
  404. package/lib/rest/flexApi/v2/flexUser.d.ts +53 -0
  405. package/lib/rest/flexApi/v2/flexUser.js +67 -0
  406. package/lib/rest/flexApi/v2/webChannels.d.ts +10 -0
  407. package/lib/rest/flexApi/v2/webChannels.js +38 -0
  408. package/lib/rest/frontlineApi/v1/user.d.ts +53 -0
  409. package/lib/rest/frontlineApi/v1/user.js +69 -0
  410. package/lib/rest/iam/v1/apiKey.d.ts +70 -0
  411. package/lib/rest/iam/v1/apiKey.js +89 -0
  412. package/lib/rest/iam/v1/getApiKeys.d.ts +50 -0
  413. package/lib/rest/iam/v1/getApiKeys.js +48 -0
  414. package/lib/rest/iam/v1/newApiKey.d.ts +10 -0
  415. package/lib/rest/iam/v1/newApiKey.js +34 -0
  416. package/lib/rest/iam/v1/oAuthApp.d.ts +49 -0
  417. package/lib/rest/iam/v1/oAuthApp.js +82 -0
  418. package/lib/rest/iam/v1/token.d.ts +10 -0
  419. package/lib/rest/iam/v1/token.js +44 -0
  420. package/lib/rest/insights/v1/call/annotation.d.ts +53 -0
  421. package/lib/rest/insights/v1/call/annotation.js +75 -0
  422. package/lib/rest/insights/v1/call/callSummary.d.ts +36 -0
  423. package/lib/rest/insights/v1/call/callSummary.js +33 -0
  424. package/lib/rest/insights/v1/call/event.d.ts +53 -0
  425. package/lib/rest/insights/v1/call/event.js +50 -0
  426. package/lib/rest/insights/v1/call/metric.d.ts +53 -0
  427. package/lib/rest/insights/v1/call/metric.js +52 -0
  428. package/lib/rest/insights/v1/call.d.ts +18 -0
  429. package/lib/rest/insights/v1/call.js +29 -0
  430. package/lib/rest/insights/v1/callSummaries.d.ts +53 -0
  431. package/lib/rest/insights/v1/callSummaries.js +121 -0
  432. package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +88 -0
  433. package/lib/rest/insights/v1/conference/conferenceParticipant.js +89 -0
  434. package/lib/rest/insights/v1/conference.d.ts +70 -0
  435. package/lib/rest/insights/v1/conference.js +97 -0
  436. package/lib/rest/insights/v1/room/participant.d.ts +70 -0
  437. package/lib/rest/insights/v1/room/participant.js +77 -0
  438. package/lib/rest/insights/v1/room.d.ts +70 -0
  439. package/lib/rest/insights/v1/room.js +87 -0
  440. package/lib/rest/insights/v1/setting.d.ts +71 -0
  441. package/lib/rest/insights/v1/setting.js +71 -0
  442. package/lib/rest/intelligence/v2/customOperator.d.ts +115 -0
  443. package/lib/rest/intelligence/v2/customOperator.js +182 -0
  444. package/lib/rest/intelligence/v2/operator.d.ts +70 -0
  445. package/lib/rest/intelligence/v2/operator.js +81 -0
  446. package/lib/rest/intelligence/v2/operatorAttachment.d.ts +35 -0
  447. package/lib/rest/intelligence/v2/operatorAttachment.js +53 -0
  448. package/lib/rest/intelligence/v2/operatorAttachments.d.ts +18 -0
  449. package/lib/rest/intelligence/v2/operatorAttachments.js +29 -0
  450. package/lib/rest/intelligence/v2/operatorType.d.ts +70 -0
  451. package/lib/rest/intelligence/v2/operatorType.js +77 -0
  452. package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +70 -0
  453. package/lib/rest/intelligence/v2/prebuiltOperator.js +81 -0
  454. package/lib/rest/intelligence/v2/service.d.ts +131 -0
  455. package/lib/rest/intelligence/v2/service.js +199 -0
  456. package/lib/rest/intelligence/v2/transcript/encryptedOperatorResults.d.ts +36 -0
  457. package/lib/rest/intelligence/v2/transcript/encryptedOperatorResults.js +33 -0
  458. package/lib/rest/intelligence/v2/transcript/encryptedSentences.d.ts +36 -0
  459. package/lib/rest/intelligence/v2/transcript/encryptedSentences.js +33 -0
  460. package/lib/rest/intelligence/v2/transcript/media.d.ts +36 -0
  461. package/lib/rest/intelligence/v2/transcript/media.js +33 -0
  462. package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +88 -0
  463. package/lib/rest/intelligence/v2/transcript/operatorResult.js +83 -0
  464. package/lib/rest/intelligence/v2/transcript/sentence.d.ts +53 -0
  465. package/lib/rest/intelligence/v2/transcript/sentence.js +52 -0
  466. package/lib/rest/intelligence/v2/transcript.d.ts +96 -0
  467. package/lib/rest/intelligence/v2/transcript.js +153 -0
  468. package/lib/rest/ipMessaging/v1/credential.d.ts +131 -0
  469. package/lib/rest/ipMessaging/v1/credential.js +185 -0
  470. package/lib/rest/ipMessaging/v1/service/channel/invite.d.ts +96 -0
  471. package/lib/rest/ipMessaging/v1/service/channel/invite.js +133 -0
  472. package/lib/rest/ipMessaging/v1/service/channel/member.d.ts +131 -0
  473. package/lib/rest/ipMessaging/v1/service/channel/member.js +169 -0
  474. package/lib/rest/ipMessaging/v1/service/channel/message.d.ts +131 -0
  475. package/lib/rest/ipMessaging/v1/service/channel/message.js +171 -0
  476. package/lib/rest/ipMessaging/v1/service/channel.d.ts +139 -0
  477. package/lib/rest/ipMessaging/v1/service/channel.js +177 -0
  478. package/lib/rest/ipMessaging/v1/service/role.d.ts +115 -0
  479. package/lib/rest/ipMessaging/v1/service/role.js +170 -0
  480. package/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +53 -0
  481. package/lib/rest/ipMessaging/v1/service/user/userChannel.js +48 -0
  482. package/lib/rest/ipMessaging/v1/service/user.d.ts +131 -0
  483. package/lib/rest/ipMessaging/v1/service/user.js +173 -0
  484. package/lib/rest/ipMessaging/v1/service.d.ts +131 -0
  485. package/lib/rest/ipMessaging/v1/service.js +302 -0
  486. package/lib/rest/ipMessaging/v2/credential.d.ts +131 -0
  487. package/lib/rest/ipMessaging/v2/credential.js +185 -0
  488. package/lib/rest/ipMessaging/v2/service/binding.d.ts +87 -0
  489. package/lib/rest/ipMessaging/v2/service/binding.js +105 -0
  490. package/lib/rest/ipMessaging/v2/service/channel/invite.d.ts +96 -0
  491. package/lib/rest/ipMessaging/v2/service/channel/invite.js +133 -0
  492. package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +149 -0
  493. package/lib/rest/ipMessaging/v2/service/channel/member.js +199 -0
  494. package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +157 -0
  495. package/lib/rest/ipMessaging/v2/service/channel/message.js +201 -0
  496. package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +131 -0
  497. package/lib/rest/ipMessaging/v2/service/channel/webhook.js +185 -0
  498. package/lib/rest/ipMessaging/v2/service/channel.d.ts +157 -0
  499. package/lib/rest/ipMessaging/v2/service/channel.js +201 -0
  500. package/lib/rest/ipMessaging/v2/service/role.d.ts +115 -0
  501. package/lib/rest/ipMessaging/v2/service/role.js +170 -0
  502. package/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +87 -0
  503. package/lib/rest/ipMessaging/v2/service/user/userBinding.js +103 -0
  504. package/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +122 -0
  505. package/lib/rest/ipMessaging/v2/service/user/userChannel.js +139 -0
  506. package/lib/rest/ipMessaging/v2/service/user.d.ts +131 -0
  507. package/lib/rest/ipMessaging/v2/service/user.js +177 -0
  508. package/lib/rest/ipMessaging/v2/service.d.ts +131 -0
  509. package/lib/rest/ipMessaging/v2/service.js +233 -0
  510. package/lib/rest/knowledge/v1/knowledge/chunk.d.ts +53 -0
  511. package/lib/rest/knowledge/v1/knowledge/chunk.js +48 -0
  512. package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.d.ts +18 -0
  513. package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.js +29 -0
  514. package/lib/rest/knowledge/v1/knowledge.d.ts +134 -0
  515. package/lib/rest/knowledge/v1/knowledge.js +165 -0
  516. package/lib/rest/lookups/v1/phoneNumber.d.ts +36 -0
  517. package/lib/rest/lookups/v1/phoneNumber.js +42 -0
  518. package/lib/rest/lookups/v2/bucket.d.ts +72 -0
  519. package/lib/rest/lookups/v2/bucket.js +88 -0
  520. package/lib/rest/lookups/v2/lookupOverride.d.ts +109 -0
  521. package/lib/rest/lookups/v2/lookupOverride.js +123 -0
  522. package/lib/rest/lookups/v2/phoneNumber.d.ts +36 -0
  523. package/lib/rest/lookups/v2/phoneNumber.js +61 -0
  524. package/lib/rest/lookups/v2/query.d.ts +19 -0
  525. package/lib/rest/lookups/v2/query.js +31 -0
  526. package/lib/rest/lookups/v2/rateLimit.d.ts +18 -0
  527. package/lib/rest/lookups/v2/rateLimit.js +29 -0
  528. package/lib/rest/marketplace/v1/availableAddOn/availableAddOnExtension.d.ts +70 -0
  529. package/lib/rest/marketplace/v1/availableAddOn/availableAddOnExtension.js +77 -0
  530. package/lib/rest/marketplace/v1/availableAddOn.d.ts +70 -0
  531. package/lib/rest/marketplace/v1/availableAddOn.js +77 -0
  532. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnExtension.d.ts +89 -0
  533. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnExtension.js +109 -0
  534. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.d.ts +11 -0
  535. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.js +27 -0
  536. package/lib/rest/marketplace/v1/installedAddOn.d.ts +131 -0
  537. package/lib/rest/marketplace/v1/installedAddOn.js +175 -0
  538. package/lib/rest/marketplace/v1/moduleData.d.ts +26 -0
  539. package/lib/rest/marketplace/v1/moduleData.js +50 -0
  540. package/lib/rest/marketplace/v1/moduleDataManagement.d.ts +53 -0
  541. package/lib/rest/marketplace/v1/moduleDataManagement.js +75 -0
  542. package/lib/rest/marketplace/v1/referralConversion.d.ts +11 -0
  543. package/lib/rest/marketplace/v1/referralConversion.js +27 -0
  544. package/lib/rest/messaging/v1/brandRegistration/brandRegistrationOtp.d.ts +9 -0
  545. package/lib/rest/messaging/v1/brandRegistration/brandRegistrationOtp.js +18 -0
  546. package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +79 -0
  547. package/lib/rest/messaging/v1/brandRegistration/brandVetting.js +108 -0
  548. package/lib/rest/messaging/v1/brandRegistration.d.ts +96 -0
  549. package/lib/rest/messaging/v1/brandRegistration.js +146 -0
  550. package/lib/rest/messaging/v1/deactivations.d.ts +36 -0
  551. package/lib/rest/messaging/v1/deactivations.js +33 -0
  552. package/lib/rest/messaging/v1/domainCerts.d.ts +54 -0
  553. package/lib/rest/messaging/v1/domainCerts.js +85 -0
  554. package/lib/rest/messaging/v1/domainConfig.d.ts +53 -0
  555. package/lib/rest/messaging/v1/domainConfig.js +69 -0
  556. package/lib/rest/messaging/v1/domainConfigMessagingService.d.ts +18 -0
  557. package/lib/rest/messaging/v1/domainConfigMessagingService.js +29 -0
  558. package/lib/rest/messaging/v1/domainValidateDn.d.ts +18 -0
  559. package/lib/rest/messaging/v1/domainValidateDn.js +29 -0
  560. package/lib/rest/messaging/v1/externalCampaign.d.ts +10 -0
  561. package/lib/rest/messaging/v1/externalCampaign.js +35 -0
  562. package/lib/rest/messaging/v1/linkshorteningMessagingService.d.ts +35 -0
  563. package/lib/rest/messaging/v1/linkshorteningMessagingService.js +53 -0
  564. package/lib/rest/messaging/v1/linkshorteningMessagingServiceDomainAssociation.d.ts +18 -0
  565. package/lib/rest/messaging/v1/linkshorteningMessagingServiceDomainAssociation.js +25 -0
  566. package/lib/rest/messaging/v1/requestManagedCert.d.ts +18 -0
  567. package/lib/rest/messaging/v1/requestManagedCert.js +29 -0
  568. package/lib/rest/messaging/v1/service/alphaSender.d.ts +96 -0
  569. package/lib/rest/messaging/v1/service/alphaSender.js +129 -0
  570. package/lib/rest/messaging/v1/service/channelSender.d.ts +96 -0
  571. package/lib/rest/messaging/v1/service/channelSender.js +129 -0
  572. package/lib/rest/messaging/v1/service/destinationAlphaSender.d.ts +96 -0
  573. package/lib/rest/messaging/v1/service/destinationAlphaSender.js +133 -0
  574. package/lib/rest/messaging/v1/service/phoneNumber.d.ts +96 -0
  575. package/lib/rest/messaging/v1/service/phoneNumber.js +130 -0
  576. package/lib/rest/messaging/v1/service/shortCode.d.ts +96 -0
  577. package/lib/rest/messaging/v1/service/shortCode.js +130 -0
  578. package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +115 -0
  579. package/lib/rest/messaging/v1/service/usAppToPerson.js +236 -0
  580. package/lib/rest/messaging/v1/service/usAppToPersonUsecase.d.ts +18 -0
  581. package/lib/rest/messaging/v1/service/usAppToPersonUsecase.js +29 -0
  582. package/lib/rest/messaging/v1/service.d.ts +131 -0
  583. package/lib/rest/messaging/v1/service.js +224 -0
  584. package/lib/rest/messaging/v1/tollfreeVerification.d.ts +135 -4
  585. package/lib/rest/messaging/v1/tollfreeVerification.js +348 -0
  586. package/lib/rest/messaging/v1/usecase.d.ts +9 -0
  587. package/lib/rest/messaging/v1/usecase.js +18 -0
  588. package/lib/rest/messaging/v2/channelsSender.d.ts +131 -0
  589. package/lib/rest/messaging/v2/channelsSender.js +163 -0
  590. package/lib/rest/messaging/v2/domainCerts.d.ts +18 -0
  591. package/lib/rest/messaging/v2/domainCerts.js +29 -0
  592. package/lib/rest/messaging/v2/typingIndicator.d.ts +10 -0
  593. package/lib/rest/messaging/v2/typingIndicator.js +32 -0
  594. package/lib/rest/monitor/v1/alert.d.ts +70 -0
  595. package/lib/rest/monitor/v1/alert.js +83 -0
  596. package/lib/rest/monitor/v1/event.d.ts +70 -0
  597. package/lib/rest/monitor/v1/event.js +89 -0
  598. package/lib/rest/notify/v1/credential.d.ts +131 -0
  599. package/lib/rest/notify/v1/credential.js +185 -0
  600. package/lib/rest/notify/v1/service/binding.d.ts +96 -0
  601. package/lib/rest/notify/v1/service/binding.js +154 -0
  602. package/lib/rest/notify/v1/service/notification.d.ts +18 -0
  603. package/lib/rest/notify/v1/service/notification.js +64 -0
  604. package/lib/rest/notify/v1/service.d.ts +139 -0
  605. package/lib/rest/notify/v1/service.js +227 -0
  606. package/lib/rest/numbers/v1/bulkEligibility.d.ts +36 -0
  607. package/lib/rest/numbers/v1/bulkEligibility.js +60 -0
  608. package/lib/rest/numbers/v1/eligibility.d.ts +19 -0
  609. package/lib/rest/numbers/v1/eligibility.js +31 -0
  610. package/lib/rest/numbers/v1/portingAllPortIn.d.ts +53 -0
  611. package/lib/rest/numbers/v1/portingAllPortIn.js +58 -0
  612. package/lib/rest/numbers/v1/portingPortIn.d.ts +45 -0
  613. package/lib/rest/numbers/v1/portingPortIn.js +80 -0
  614. package/lib/rest/numbers/v1/portingPortInPhoneNumber.d.ts +35 -0
  615. package/lib/rest/numbers/v1/portingPortInPhoneNumber.js +53 -0
  616. package/lib/rest/numbers/v1/portingPortability.d.ts +36 -0
  617. package/lib/rest/numbers/v1/portingPortability.js +35 -0
  618. package/lib/rest/numbers/v1/portingWebhookConfiguration.d.ts +19 -0
  619. package/lib/rest/numbers/v1/portingWebhookConfiguration.js +31 -0
  620. package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.d.ts +10 -0
  621. package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.js +14 -0
  622. package/lib/rest/numbers/v1/signingRequestConfiguration.d.ts +71 -0
  623. package/lib/rest/numbers/v1/signingRequestConfiguration.js +83 -0
  624. package/lib/rest/numbers/v1/webhook.d.ts +9 -0
  625. package/lib/rest/numbers/v1/webhook.js +18 -0
  626. package/lib/rest/numbers/v2/application.d.ts +80 -0
  627. package/lib/rest/numbers/v2/application.js +104 -0
  628. package/lib/rest/numbers/v2/authorizationDocument/dependentHostedNumberOrder.d.ts +53 -0
  629. package/lib/rest/numbers/v2/authorizationDocument/dependentHostedNumberOrder.js +56 -0
  630. package/lib/rest/numbers/v2/authorizationDocument.d.ts +96 -0
  631. package/lib/rest/numbers/v2/authorizationDocument.js +151 -0
  632. package/lib/rest/numbers/v2/bulkHostedNumberOrder.d.ts +54 -0
  633. package/lib/rest/numbers/v2/bulkHostedNumberOrder.js +64 -0
  634. package/lib/rest/numbers/v2/bundleClone.d.ts +20 -0
  635. package/lib/rest/numbers/v2/bundleClone.js +37 -0
  636. package/lib/rest/numbers/v2/hostedNumberOrder.d.ts +115 -0
  637. package/lib/rest/numbers/v2/hostedNumberOrder.js +212 -0
  638. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +70 -0
  639. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.js +78 -0
  640. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +78 -0
  641. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.js +95 -0
  642. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.d.ts +96 -0
  643. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.js +129 -0
  644. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +10 -0
  645. package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.js +29 -0
  646. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +131 -0
  647. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.js +208 -0
  648. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +131 -0
  649. package/lib/rest/numbers/v2/regulatoryCompliance/endUser.js +172 -0
  650. package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +70 -0
  651. package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.js +77 -0
  652. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +88 -0
  653. package/lib/rest/numbers/v2/regulatoryCompliance/regulation.js +89 -0
  654. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +131 -0
  655. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.js +172 -0
  656. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +70 -0
  657. package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.js +77 -0
  658. package/lib/rest/numbers/v3/hostedNumberOrder.d.ts +10 -0
  659. package/lib/rest/numbers/v3/hostedNumberOrder.js +63 -0
  660. package/lib/rest/oauth/V2.d.ts +5 -0
  661. package/lib/rest/oauth/V2.js +6 -0
  662. package/lib/rest/oauth/v1/authorize.d.ts +18 -0
  663. package/lib/rest/oauth/v1/authorize.js +37 -0
  664. package/lib/rest/oauth/v1/token.d.ts +10 -0
  665. package/lib/rest/oauth/v1/token.js +44 -0
  666. package/lib/rest/oauth/v2/authorize.d.ts +86 -0
  667. package/lib/rest/oauth/v2/authorize.js +121 -0
  668. package/lib/rest/oauth/v2/token.d.ts +18 -0
  669. package/lib/rest/oauth/v2/token.js +46 -0
  670. package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +53 -0
  671. package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.js +58 -0
  672. package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +114 -0
  673. package/lib/rest/preview/hosted_numbers/authorizationDocument.js +176 -0
  674. package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +131 -0
  675. package/lib/rest/preview/hosted_numbers/hostedNumberOrder.js +226 -0
  676. package/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.d.ts +70 -0
  677. package/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.js +77 -0
  678. package/lib/rest/preview/marketplace/availableAddOn.d.ts +70 -0
  679. package/lib/rest/preview/marketplace/availableAddOn.js +77 -0
  680. package/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.d.ts +89 -0
  681. package/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.js +109 -0
  682. package/lib/rest/preview/marketplace/installedAddOn.d.ts +131 -0
  683. package/lib/rest/preview/marketplace/installedAddOn.js +175 -0
  684. package/lib/rest/preview/wireless/command.d.ts +79 -0
  685. package/lib/rest/preview/wireless/command.js +125 -0
  686. package/lib/rest/preview/wireless/ratePlan.d.ts +139 -0
  687. package/lib/rest/preview/wireless/ratePlan.js +185 -0
  688. package/lib/rest/preview/wireless/sim/usage.d.ts +36 -0
  689. package/lib/rest/preview/wireless/sim/usage.js +35 -0
  690. package/lib/rest/preview/wireless/sim.d.ts +105 -0
  691. package/lib/rest/preview/wireless/sim.js +151 -0
  692. package/lib/rest/previewIam/v1/authorize.d.ts +18 -0
  693. package/lib/rest/previewIam/v1/authorize.js +37 -0
  694. package/lib/rest/previewIam/v1/token.d.ts +10 -0
  695. package/lib/rest/previewIam/v1/token.js +44 -0
  696. package/lib/rest/previewIam/versionless/organization/account.d.ts +70 -0
  697. package/lib/rest/previewIam/versionless/organization/account.js +77 -0
  698. package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +80 -0
  699. package/lib/rest/previewIam/versionless/organization/roleAssignment.js +103 -0
  700. package/lib/rest/previewIam/versionless/organization/user.d.ts +118 -0
  701. package/lib/rest/previewIam/versionless/organization/user.js +159 -0
  702. package/lib/rest/pricing/v1/messaging/country.d.ts +70 -0
  703. package/lib/rest/pricing/v1/messaging/country.js +77 -0
  704. package/lib/rest/pricing/v1/phoneNumber/country.d.ts +70 -0
  705. package/lib/rest/pricing/v1/phoneNumber/country.js +77 -0
  706. package/lib/rest/pricing/v1/voice/country.d.ts +70 -0
  707. package/lib/rest/pricing/v1/voice/country.js +77 -0
  708. package/lib/rest/pricing/v1/voice/number.d.ts +18 -0
  709. package/lib/rest/pricing/v1/voice/number.js +29 -0
  710. package/lib/rest/pricing/v2/country.d.ts +70 -0
  711. package/lib/rest/pricing/v2/country.js +77 -0
  712. package/lib/rest/pricing/v2/number.d.ts +36 -0
  713. package/lib/rest/pricing/v2/number.js +33 -0
  714. package/lib/rest/pricing/v2/voice/country.d.ts +70 -0
  715. package/lib/rest/pricing/v2/voice/country.js +77 -0
  716. package/lib/rest/pricing/v2/voice/number.d.ts +36 -0
  717. package/lib/rest/pricing/v2/voice/number.js +33 -0
  718. package/lib/rest/proxy/v1/service/phoneNumber.d.ts +139 -0
  719. package/lib/rest/proxy/v1/service/phoneNumber.js +169 -0
  720. package/lib/rest/proxy/v1/service/session/interaction.d.ts +87 -0
  721. package/lib/rest/proxy/v1/service/session/interaction.js +101 -0
  722. package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +87 -0
  723. package/lib/rest/proxy/v1/service/session/participant/messageInteraction.js +109 -0
  724. package/lib/rest/proxy/v1/service/session/participant.d.ts +96 -0
  725. package/lib/rest/proxy/v1/service/session/participant.js +135 -0
  726. package/lib/rest/proxy/v1/service/session.d.ts +139 -0
  727. package/lib/rest/proxy/v1/service/session.js +179 -0
  728. package/lib/rest/proxy/v1/service.d.ts +131 -0
  729. package/lib/rest/proxy/v1/service.js +191 -0
  730. package/lib/rest/routes/v2/phoneNumber.d.ts +53 -0
  731. package/lib/rest/routes/v2/phoneNumber.js +65 -0
  732. package/lib/rest/routes/v2/sipDomain.d.ts +53 -0
  733. package/lib/rest/routes/v2/sipDomain.js +65 -0
  734. package/lib/rest/routes/v2/trunk.d.ts +53 -0
  735. package/lib/rest/routes/v2/trunk.js +65 -0
  736. package/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +70 -0
  737. package/lib/rest/serverless/v1/service/asset/assetVersion.js +77 -0
  738. package/lib/rest/serverless/v1/service/asset.d.ts +115 -0
  739. package/lib/rest/serverless/v1/service/asset.js +163 -0
  740. package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +18 -0
  741. package/lib/rest/serverless/v1/service/build/buildStatus.js +29 -0
  742. package/lib/rest/serverless/v1/service/build.d.ts +104 -0
  743. package/lib/rest/serverless/v1/service/build.js +137 -0
  744. package/lib/rest/serverless/v1/service/environment/deployment.d.ts +87 -0
  745. package/lib/rest/serverless/v1/service/environment/deployment.js +109 -0
  746. package/lib/rest/serverless/v1/service/environment/log.d.ts +70 -0
  747. package/lib/rest/serverless/v1/service/environment/log.js +83 -0
  748. package/lib/rest/serverless/v1/service/environment/variable.d.ts +131 -0
  749. package/lib/rest/serverless/v1/service/environment/variable.js +169 -0
  750. package/lib/rest/serverless/v1/service/environment.d.ts +96 -0
  751. package/lib/rest/serverless/v1/service/environment.js +131 -0
  752. package/lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.d.ts +18 -0
  753. package/lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.js +29 -0
  754. package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +70 -0
  755. package/lib/rest/serverless/v1/service/function/functionVersion.js +77 -0
  756. package/lib/rest/serverless/v1/service/function.d.ts +115 -0
  757. package/lib/rest/serverless/v1/service/function.js +163 -0
  758. package/lib/rest/serverless/v1/service.d.ts +131 -0
  759. package/lib/rest/serverless/v1/service.js +176 -0
  760. package/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +18 -0
  761. package/lib/rest/studio/v1/flow/engagement/engagementContext.js +29 -0
  762. package/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +18 -0
  763. package/lib/rest/studio/v1/flow/engagement/step/stepContext.js +29 -0
  764. package/lib/rest/studio/v1/flow/engagement/step.d.ts +70 -0
  765. package/lib/rest/studio/v1/flow/engagement/step.js +77 -0
  766. package/lib/rest/studio/v1/flow/engagement.d.ts +96 -0
  767. package/lib/rest/studio/v1/flow/engagement.js +135 -0
  768. package/lib/rest/studio/v1/flow/execution/executionContext.d.ts +18 -0
  769. package/lib/rest/studio/v1/flow/execution/executionContext.js +29 -0
  770. package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +18 -0
  771. package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.js +29 -0
  772. package/lib/rest/studio/v1/flow/execution/executionStep.d.ts +70 -0
  773. package/lib/rest/studio/v1/flow/execution/executionStep.js +77 -0
  774. package/lib/rest/studio/v1/flow/execution.d.ts +115 -0
  775. package/lib/rest/studio/v1/flow/execution.js +171 -0
  776. package/lib/rest/studio/v1/flow.d.ts +87 -0
  777. package/lib/rest/studio/v1/flow.js +101 -0
  778. package/lib/rest/studio/v2/flow/execution/executionContext.d.ts +18 -0
  779. package/lib/rest/studio/v2/flow/execution/executionContext.js +29 -0
  780. package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +18 -0
  781. package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.js +29 -0
  782. package/lib/rest/studio/v2/flow/execution/executionStep.d.ts +70 -0
  783. package/lib/rest/studio/v2/flow/execution/executionStep.js +77 -0
  784. package/lib/rest/studio/v2/flow/execution.d.ts +115 -0
  785. package/lib/rest/studio/v2/flow/execution.js +171 -0
  786. package/lib/rest/studio/v2/flow/flowRevision.d.ts +70 -0
  787. package/lib/rest/studio/v2/flow/flowRevision.js +77 -0
  788. package/lib/rest/studio/v2/flow/flowTestUser.d.ts +37 -0
  789. package/lib/rest/studio/v2/flow/flowTestUser.js +61 -0
  790. package/lib/rest/studio/v2/flow.d.ts +115 -0
  791. package/lib/rest/studio/v2/flow.js +178 -0
  792. package/lib/rest/studio/v2/flowValidate.d.ts +10 -0
  793. package/lib/rest/studio/v2/flowValidate.js +39 -0
  794. package/lib/rest/supersim/v1/esimProfile.d.ts +87 -0
  795. package/lib/rest/supersim/v1/esimProfile.js +119 -0
  796. package/lib/rest/supersim/v1/fleet.d.ts +114 -0
  797. package/lib/rest/supersim/v1/fleet.js +170 -0
  798. package/lib/rest/supersim/v1/ipCommand.d.ts +79 -0
  799. package/lib/rest/supersim/v1/ipCommand.js +127 -0
  800. package/lib/rest/supersim/v1/network.d.ts +70 -0
  801. package/lib/rest/supersim/v1/network.js +83 -0
  802. package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +96 -0
  803. package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.js +129 -0
  804. package/lib/rest/supersim/v1/networkAccessProfile.d.ts +122 -0
  805. package/lib/rest/supersim/v1/networkAccessProfile.js +143 -0
  806. package/lib/rest/supersim/v1/settingsUpdate.d.ts +53 -0
  807. package/lib/rest/supersim/v1/settingsUpdate.js +52 -0
  808. package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +53 -0
  809. package/lib/rest/supersim/v1/sim/billingPeriod.js +48 -0
  810. package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +53 -0
  811. package/lib/rest/supersim/v1/sim/simIpAddress.js +48 -0
  812. package/lib/rest/supersim/v1/sim.d.ts +114 -0
  813. package/lib/rest/supersim/v1/sim.js +160 -0
  814. package/lib/rest/supersim/v1/smsCommand.d.ts +79 -0
  815. package/lib/rest/supersim/v1/smsCommand.js +119 -0
  816. package/lib/rest/supersim/v1/usageRecord.d.ts +53 -0
  817. package/lib/rest/supersim/v1/usageRecord.js +64 -0
  818. package/lib/rest/sync/v1/service/document/documentPermission.d.ts +106 -0
  819. package/lib/rest/sync/v1/service/document/documentPermission.js +141 -0
  820. package/lib/rest/sync/v1/service/document.d.ts +139 -0
  821. package/lib/rest/sync/v1/service/document.js +173 -0
  822. package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +149 -0
  823. package/lib/rest/sync/v1/service/syncList/syncListItem.js +191 -0
  824. package/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts +106 -0
  825. package/lib/rest/sync/v1/service/syncList/syncListPermission.js +141 -0
  826. package/lib/rest/sync/v1/service/syncList.d.ts +139 -0
  827. package/lib/rest/sync/v1/service/syncList.js +171 -0
  828. package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +149 -0
  829. package/lib/rest/sync/v1/service/syncMap/syncMapItem.js +195 -0
  830. package/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts +106 -0
  831. package/lib/rest/sync/v1/service/syncMap/syncMapPermission.js +141 -0
  832. package/lib/rest/sync/v1/service/syncMap.d.ts +139 -0
  833. package/lib/rest/sync/v1/service/syncMap.js +171 -0
  834. package/lib/rest/sync/v1/service/syncStream/streamMessage.d.ts +10 -0
  835. package/lib/rest/sync/v1/service/syncStream/streamMessage.js +28 -0
  836. package/lib/rest/sync/v1/service/syncStream.d.ts +139 -0
  837. package/lib/rest/sync/v1/service/syncStream.js +167 -0
  838. package/lib/rest/sync/v1/service.d.ts +139 -0
  839. package/lib/rest/sync/v1/service.js +191 -0
  840. package/lib/rest/taskrouter/v1/workspace/activity.d.ts +131 -0
  841. package/lib/rest/taskrouter/v1/workspace/activity.js +170 -0
  842. package/lib/rest/taskrouter/v1/workspace/event.d.ts +70 -0
  843. package/lib/rest/taskrouter/v1/workspace/event.js +99 -0
  844. package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +105 -0
  845. package/lib/rest/taskrouter/v1/workspace/task/reservation.js +227 -0
  846. package/lib/rest/taskrouter/v1/workspace/task.d.ts +157 -0
  847. package/lib/rest/taskrouter/v1/workspace/task.js +221 -0
  848. package/lib/rest/taskrouter/v1/workspace/taskChannel.d.ts +131 -0
  849. package/lib/rest/taskrouter/v1/workspace/taskChannel.js +172 -0
  850. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +19 -0
  851. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.js +31 -0
  852. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +36 -0
  853. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.js +41 -0
  854. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +36 -0
  855. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.js +33 -0
  856. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +36 -0
  857. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.js +41 -0
  858. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +53 -0
  859. package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.js +60 -0
  860. package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +131 -0
  861. package/lib/rest/taskrouter/v1/workspace/taskQueue.js +192 -0
  862. package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +105 -0
  863. package/lib/rest/taskrouter/v1/workspace/worker/reservation.js +221 -0
  864. package/lib/rest/taskrouter/v1/workspace/worker/workerChannel.d.ts +105 -0
  865. package/lib/rest/taskrouter/v1/workspace/worker/workerChannel.js +113 -0
  866. package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +36 -0
  867. package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.js +39 -0
  868. package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +36 -0
  869. package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.js +39 -0
  870. package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +36 -0
  871. package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.js +33 -0
  872. package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +36 -0
  873. package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.js +45 -0
  874. package/lib/rest/taskrouter/v1/workspace/worker.d.ts +149 -0
  875. package/lib/rest/taskrouter/v1/workspace/worker.js +200 -0
  876. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +36 -0
  877. package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.js +41 -0
  878. package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +36 -0
  879. package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.js +33 -0
  880. package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +36 -0
  881. package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.js +41 -0
  882. package/lib/rest/taskrouter/v1/workspace/workflow.d.ts +131 -0
  883. package/lib/rest/taskrouter/v1/workspace/workflow.js +189 -0
  884. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +36 -0
  885. package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.js +41 -0
  886. package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +36 -0
  887. package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.js +33 -0
  888. package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +36 -0
  889. package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.js +41 -0
  890. package/lib/rest/taskrouter/v1/workspace.d.ts +131 -0
  891. package/lib/rest/taskrouter/v1/workspace.js +188 -0
  892. package/lib/rest/trunking/v1/trunk/credentialList.d.ts +96 -0
  893. package/lib/rest/trunking/v1/trunk/credentialList.js +130 -0
  894. package/lib/rest/trunking/v1/trunk/ipAccessControlList.d.ts +96 -0
  895. package/lib/rest/trunking/v1/trunk/ipAccessControlList.js +130 -0
  896. package/lib/rest/trunking/v1/trunk/originationUrl.d.ts +131 -0
  897. package/lib/rest/trunking/v1/trunk/originationUrl.js +188 -0
  898. package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +96 -0
  899. package/lib/rest/trunking/v1/trunk/phoneNumber.js +130 -0
  900. package/lib/rest/trunking/v1/trunk/recording.d.ts +53 -0
  901. package/lib/rest/trunking/v1/trunk/recording.js +65 -0
  902. package/lib/rest/trunking/v1/trunk.d.ts +139 -0
  903. package/lib/rest/trunking/v1/trunk.js +193 -0
  904. package/lib/rest/trusthub/v1/complianceInquiries.d.ts +37 -0
  905. package/lib/rest/trusthub/v1/complianceInquiries.js +69 -0
  906. package/lib/rest/trusthub/v1/complianceRegistrationInquiries.d.ts +45 -0
  907. package/lib/rest/trusthub/v1/complianceRegistrationInquiries.js +153 -0
  908. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +14 -0
  909. package/lib/rest/trusthub/v1/complianceTollfreeInquiries.js +113 -0
  910. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.d.ts +96 -0
  911. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.js +130 -0
  912. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.d.ts +96 -0
  913. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.js +131 -0
  914. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +79 -0
  915. package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.js +105 -0
  916. package/lib/rest/trusthub/v1/customerProfiles.d.ts +131 -0
  917. package/lib/rest/trusthub/v1/customerProfiles.js +186 -0
  918. package/lib/rest/trusthub/v1/endUser.d.ts +131 -0
  919. package/lib/rest/trusthub/v1/endUser.js +172 -0
  920. package/lib/rest/trusthub/v1/endUserType.d.ts +70 -0
  921. package/lib/rest/trusthub/v1/endUserType.js +77 -0
  922. package/lib/rest/trusthub/v1/policies.d.ts +70 -0
  923. package/lib/rest/trusthub/v1/policies.js +77 -0
  924. package/lib/rest/trusthub/v1/supportingDocument.d.ts +131 -0
  925. package/lib/rest/trusthub/v1/supportingDocument.js +172 -0
  926. package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +70 -0
  927. package/lib/rest/trusthub/v1/supportingDocumentType.js +77 -0
  928. package/lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.d.ts +96 -0
  929. package/lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.js +139 -0
  930. package/lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.d.ts +96 -0
  931. package/lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.js +131 -0
  932. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +79 -0
  933. package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.js +105 -0
  934. package/lib/rest/trusthub/v1/trustProducts.d.ts +131 -0
  935. package/lib/rest/trusthub/v1/trustProducts.js +186 -0
  936. package/lib/rest/verify/v2/form.d.ts +18 -0
  937. package/lib/rest/verify/v2/form.js +29 -0
  938. package/lib/rest/verify/v2/safelist.d.ts +44 -0
  939. package/lib/rest/verify/v2/safelist.js +81 -0
  940. package/lib/rest/verify/v2/service/accessToken.d.ts +27 -0
  941. package/lib/rest/verify/v2/service/accessToken.js +65 -0
  942. package/lib/rest/verify/v2/service/approveChallenge.d.ts +11 -0
  943. package/lib/rest/verify/v2/service/approveChallenge.js +27 -0
  944. package/lib/rest/verify/v2/service/entity/challenge/notification.d.ts +18 -0
  945. package/lib/rest/verify/v2/service/entity/challenge/notification.js +30 -0
  946. package/lib/rest/verify/v2/service/entity/challenge.d.ts +114 -0
  947. package/lib/rest/verify/v2/service/entity/challenge.js +157 -0
  948. package/lib/rest/verify/v2/service/entity/factor.d.ts +122 -0
  949. package/lib/rest/verify/v2/service/entity/factor.js +152 -0
  950. package/lib/rest/verify/v2/service/entity/newFactor.d.ts +10 -0
  951. package/lib/rest/verify/v2/service/entity/newFactor.js +58 -0
  952. package/lib/rest/verify/v2/service/entity.d.ts +96 -0
  953. package/lib/rest/verify/v2/service/entity.js +129 -0
  954. package/lib/rest/verify/v2/service/messagingConfiguration.d.ts +115 -0
  955. package/lib/rest/verify/v2/service/messagingConfiguration.js +167 -0
  956. package/lib/rest/verify/v2/service/newChallenge.d.ts +22 -0
  957. package/lib/rest/verify/v2/service/newChallenge.js +31 -0
  958. package/lib/rest/verify/v2/service/newFactor.d.ts +11 -0
  959. package/lib/rest/verify/v2/service/newFactor.js +27 -0
  960. package/lib/rest/verify/v2/service/newVerifyFactor.d.ts +11 -0
  961. package/lib/rest/verify/v2/service/newVerifyFactor.js +27 -0
  962. package/lib/rest/verify/v2/service/rateLimit/bucket.d.ts +131 -0
  963. package/lib/rest/verify/v2/service/rateLimit/bucket.js +169 -0
  964. package/lib/rest/verify/v2/service/rateLimit.d.ts +131 -0
  965. package/lib/rest/verify/v2/service/rateLimit.js +165 -0
  966. package/lib/rest/verify/v2/service/verification.d.ts +46 -0
  967. package/lib/rest/verify/v2/service/verification.js +126 -0
  968. package/lib/rest/verify/v2/service/verificationCheck.d.ts +18 -0
  969. package/lib/rest/verify/v2/service/verificationCheck.js +40 -0
  970. package/lib/rest/verify/v2/service/webhook.d.ts +131 -0
  971. package/lib/rest/verify/v2/service/webhook.js +184 -0
  972. package/lib/rest/verify/v2/service.d.ts +131 -0
  973. package/lib/rest/verify/v2/service.js +270 -0
  974. package/lib/rest/verify/v2/template.d.ts +53 -0
  975. package/lib/rest/verify/v2/template.js +50 -0
  976. package/lib/rest/verify/v2/verificationAttempt.d.ts +70 -0
  977. package/lib/rest/verify/v2/verificationAttempt.js +93 -0
  978. package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +36 -0
  979. package/lib/rest/verify/v2/verificationAttemptsSummary.js +43 -0
  980. package/lib/rest/video/v1/composition.d.ts +96 -0
  981. package/lib/rest/video/v1/composition.js +153 -0
  982. package/lib/rest/video/v1/compositionHook.d.ts +115 -0
  983. package/lib/rest/video/v1/compositionHook.js +207 -0
  984. package/lib/rest/video/v1/compositionSettings.d.ts +37 -0
  985. package/lib/rest/video/v1/compositionSettings.js +72 -0
  986. package/lib/rest/video/v1/recording.d.ts +87 -0
  987. package/lib/rest/video/v1/recording.js +113 -0
  988. package/lib/rest/video/v1/recordingSettings.d.ts +37 -0
  989. package/lib/rest/video/v1/recordingSettings.js +72 -0
  990. package/lib/rest/video/v1/room/participant/anonymize.d.ts +18 -0
  991. package/lib/rest/video/v1/room/participant/anonymize.js +29 -0
  992. package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +70 -0
  993. package/lib/rest/video/v1/room/participant/publishedTrack.js +77 -0
  994. package/lib/rest/video/v1/room/participant/subscribeRules.d.ts +26 -0
  995. package/lib/rest/video/v1/room/participant/subscribeRules.js +48 -0
  996. package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +70 -0
  997. package/lib/rest/video/v1/room/participant/subscribedTrack.js +77 -0
  998. package/lib/rest/video/v1/room/participant.d.ts +105 -0
  999. package/lib/rest/video/v1/room/participant.js +119 -0
  1000. package/lib/rest/video/v1/room/recordingRules.d.ts +26 -0
  1001. package/lib/rest/video/v1/room/recordingRules.js +48 -0
  1002. package/lib/rest/video/v1/room/roomRecording.d.ts +87 -0
  1003. package/lib/rest/video/v1/room/roomRecording.js +109 -0
  1004. package/lib/rest/video/v1/room/transcriptions.d.ts +128 -0
  1005. package/lib/rest/video/v1/room/transcriptions.js +143 -0
  1006. package/lib/rest/video/v1/room.d.ts +106 -0
  1007. package/lib/rest/video/v1/room.js +179 -0
  1008. package/lib/rest/voice/v1/archivedCall.d.ts +10 -0
  1009. package/lib/rest/voice/v1/archivedCall.js +14 -0
  1010. package/lib/rest/voice/v1/byocTrunk.d.ts +139 -0
  1011. package/lib/rest/voice/v1/byocTrunk.js +201 -0
  1012. package/lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.d.ts +131 -0
  1013. package/lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.js +179 -0
  1014. package/lib/rest/voice/v1/connectionPolicy.d.ts +139 -0
  1015. package/lib/rest/voice/v1/connectionPolicy.js +165 -0
  1016. package/lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.d.ts +10 -0
  1017. package/lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.js +29 -0
  1018. package/lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.d.ts +53 -0
  1019. package/lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.js +48 -0
  1020. package/lib/rest/voice/v1/dialingPermissions/country.d.ts +70 -0
  1021. package/lib/rest/voice/v1/dialingPermissions/country.js +89 -0
  1022. package/lib/rest/voice/v1/dialingPermissions/settings.d.ts +53 -0
  1023. package/lib/rest/voice/v1/dialingPermissions/settings.js +63 -0
  1024. package/lib/rest/voice/v1/ipRecord.d.ts +131 -0
  1025. package/lib/rest/voice/v1/ipRecord.js +167 -0
  1026. package/lib/rest/voice/v1/sourceIpMapping.d.ts +115 -0
  1027. package/lib/rest/voice/v1/sourceIpMapping.js +167 -0
  1028. package/lib/rest/wireless/v1/command.d.ts +96 -0
  1029. package/lib/rest/wireless/v1/command.js +149 -0
  1030. package/lib/rest/wireless/v1/ratePlan.d.ts +139 -0
  1031. package/lib/rest/wireless/v1/ratePlan.js +190 -0
  1032. package/lib/rest/wireless/v1/sim/dataSession.d.ts +53 -0
  1033. package/lib/rest/wireless/v1/sim/dataSession.js +48 -0
  1034. package/lib/rest/wireless/v1/sim/usageRecord.d.ts +53 -0
  1035. package/lib/rest/wireless/v1/sim/usageRecord.js +54 -0
  1036. package/lib/rest/wireless/v1/sim.d.ts +122 -0
  1037. package/lib/rest/wireless/v1/sim.js +179 -0
  1038. package/lib/rest/wireless/v1/usageRecord.d.ts +53 -0
  1039. package/lib/rest/wireless/v1/usageRecord.js +54 -0
  1040. package/lib/twiml/VoiceResponse.d.ts +69 -2
  1041. package/lib/twiml/VoiceResponse.js +58 -0
  1042. package/package.json +2 -2
@@ -0,0 +1,34 @@
1
+ /**
2
+ * API Response wrapper containing HTTP metadata
3
+ *
4
+ * This interface is returned by *WithHttpInfo methods and provides access to:
5
+ * - The response data (resource instance, page, or boolean)
6
+ * - HTTP status code
7
+ * - Response headers
8
+ */
9
+ export interface ApiResponse<T> {
10
+ /**
11
+ * The response data
12
+ * - For create/fetch/update: Resource instance
13
+ * - For delete/remove: boolean indicating success
14
+ * - For page: Page object
15
+ */
16
+ body: T;
17
+ /**
18
+ * HTTP status code from the response
19
+ * - 200: Success (fetch, update)
20
+ * - 201: Created (create)
21
+ * - 204: No Content (delete)
22
+ * - 4xx/5xx: Error responses
23
+ */
24
+ statusCode: number;
25
+ /**
26
+ * Response headers as key-value pairs
27
+ * Common headers include:
28
+ * - Content-Type
29
+ * - X-RateLimit-Remaining
30
+ * - X-RateLimit-Limit
31
+ * - X-Request-ID
32
+ */
33
+ headers: Record<string, string>;
34
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,7 +5,6 @@ import { Headers } from "../http/request";
5
5
  import AuthStrategy from "../auth_strategy/AuthStrategy";
6
6
  import CredentialProvider from "../credential_provider/CredentialProvider";
7
7
  declare namespace Twilio {
8
- const regionToEdgeMap: Map<string, string>;
9
8
  interface ClientOpts {
10
9
  httpClient?: RequestClient;
11
10
  accountSid?: string;
@@ -10,17 +10,6 @@ const util = require("util"); /* jshint ignore:line */
10
10
  const RestException = require("../base/RestException"); /* jshint ignore:line */
11
11
  var Twilio;
12
12
  (function (Twilio) {
13
- Twilio.regionToEdgeMap = new Map([
14
- ["au1", "sydney"],
15
- ["br1", "sao-paulo"],
16
- ["de1", "frankfurt"],
17
- ["ie1", "dublin"],
18
- ["jp1", "tokyo"],
19
- ["jp2", "osaka"],
20
- ["sg1", "singapore"],
21
- ["us1", "ashburn"],
22
- ["us2", "umatilla"],
23
- ]);
24
13
  /* jshint ignore:start */
25
14
  /**
26
15
  * Parent class for Twilio Client that implements request & validation logic
@@ -134,17 +123,6 @@ var Twilio;
134
123
  */
135
124
  /* jshint ignore:end */
136
125
  request(opts) {
137
- if ((this.edge !== undefined && this.region === undefined) ||
138
- (this.edge === undefined && this.region !== undefined)) {
139
- console.warn("[DEPRECATION WARNING] For regional processing, DNS is of format product.edge.region.twilio.com;otherwise use product.twilio.com");
140
- }
141
- if (this.region !== undefined && this.edge === undefined) {
142
- const mappedEdge = Twilio.regionToEdgeMap.get(this.region);
143
- if (mappedEdge) {
144
- console.warn("Setting edge value from the region mapping");
145
- this.edge = mappedEdge;
146
- }
147
- }
148
126
  opts = opts || {};
149
127
  if (!opts.method) {
150
128
  throw new Error("method is required");
@@ -0,0 +1,134 @@
1
+ import Version from "./Version";
2
+ import Response from "../http/response";
3
+ /**
4
+ * Token-based pagination metadata structure
5
+ * Used for APIs that return pagination tokens instead of URLs
6
+ */
7
+ export interface TokenPaginationPayload {
8
+ [key: string]: any;
9
+ meta: {
10
+ key: string;
11
+ pageSize?: number;
12
+ nextToken?: string | null;
13
+ previousToken?: string | null;
14
+ };
15
+ }
16
+ interface Solution {
17
+ [name: string]: any;
18
+ }
19
+ /**
20
+ * TokenPage handles token-based pagination where the API returns
21
+ * nextToken/previousToken strings instead of full URLs.
22
+ *
23
+ * Example response format:
24
+ * {
25
+ * "meta": {
26
+ * "key": "items",
27
+ * "pageSize": 50,
28
+ * "nextToken": "abc123",
29
+ * "previousToken": "xyz789"
30
+ * },
31
+ * "items": [
32
+ * { "id": 1, "name": "Item 1" },
33
+ * { "id": 2, "name": "Item 2" }
34
+ * ]
35
+ * }
36
+ */
37
+ export default class TokenPage<TVersion extends Version, TPayload extends TokenPaginationPayload, TResource, TInstance> {
38
+ instances: TInstance[];
39
+ protected _version: TVersion;
40
+ protected _payload: TPayload;
41
+ protected _solution: Solution;
42
+ private readonly _uri;
43
+ private readonly _params;
44
+ /**
45
+ * Base page object to maintain request state for token-based pagination.
46
+ *
47
+ * @param version - A twilio version instance
48
+ * @param response - The http response
49
+ * @param uri - The URI for making pagination requests
50
+ * @param data - The request parameters
51
+ * @param solution - path solution
52
+ */
53
+ constructor(version: TVersion, response: Response<string | TPayload>, uri: string, data?: Record<string, any>, solution?: Solution);
54
+ /**
55
+ * Parse json response from API
56
+ *
57
+ * @param response - API response
58
+ *
59
+ * @throws Error If non 200 status code is returned
60
+ *
61
+ * @returns json parsed response
62
+ */
63
+ processResponse(response: Response<string | TPayload>): TPayload;
64
+ /**
65
+ * Load a page of records from the payload
66
+ *
67
+ * @param payload - json payload
68
+ * @returns the page of records
69
+ */
70
+ loadPage(payload: TPayload): TResource[];
71
+ /**
72
+ * Build a new instance given a json payload
73
+ *
74
+ * @param payload - Payload response from the API
75
+ * @returns instance of a resource
76
+ */
77
+ getInstance(payload: TResource): TInstance;
78
+ /**
79
+ * Load a list of records
80
+ *
81
+ * @param resources - json payload of records
82
+ * @returns list of resources
83
+ */
84
+ loadInstances(resources: TResource[]): TInstance[];
85
+ toJSON(): object;
86
+ /**
87
+ * Returns the key that identifies the collection in the response.
88
+ *
89
+ * @returns the key or undefined if doesn't exist
90
+ */
91
+ get key(): string | undefined;
92
+ /**
93
+ * Returns the page size or undefined if doesn't exist.
94
+ *
95
+ * @returns the page size or undefined
96
+ */
97
+ get pageSize(): number | undefined;
98
+ /**
99
+ * Returns the next_token for pagination or undefined if doesn't exist.
100
+ *
101
+ * @returns the next token or undefined
102
+ */
103
+ get nextToken(): string | undefined;
104
+ /**
105
+ * Returns the previous_token for pagination or undefined if doesn't exist.
106
+ *
107
+ * @returns the previous token or undefined
108
+ */
109
+ get previousToken(): string | undefined;
110
+ /**
111
+ * Internal helper to fetch a page using a given token.
112
+ *
113
+ * @param token - The pagination token to use
114
+ * @returns promise that resolves to the page or undefined if no token exists
115
+ */
116
+ private _getPage;
117
+ /**
118
+ * Fetch the next page of records using token-based pagination.
119
+ * Makes a request to the same URI with pageToken set to nextToken.
120
+ *
121
+ * @returns promise that resolves to next page of results,
122
+ * or undefined if there isn't a nextToken.
123
+ */
124
+ nextPage(): Promise<TokenPage<TVersion, TPayload, TResource, TInstance>> | undefined;
125
+ /**
126
+ * Fetch the previous page of records using token-based pagination.
127
+ * Makes a request to the same URI with pageToken set to previousToken.
128
+ *
129
+ * @returns promise that resolves to previous page of results,
130
+ * or undefined if there isn't a previousToken.
131
+ */
132
+ previousPage(): Promise<TokenPage<TVersion, TPayload, TResource, TInstance>> | undefined;
133
+ }
134
+ export {};
@@ -0,0 +1,197 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const RestException_1 = __importDefault(require("./RestException"));
7
+ /**
8
+ * TokenPage handles token-based pagination where the API returns
9
+ * nextToken/previousToken strings instead of full URLs.
10
+ *
11
+ * Example response format:
12
+ * {
13
+ * "meta": {
14
+ * "key": "items",
15
+ * "pageSize": 50,
16
+ * "nextToken": "abc123",
17
+ * "previousToken": "xyz789"
18
+ * },
19
+ * "items": [
20
+ * { "id": 1, "name": "Item 1" },
21
+ * { "id": 2, "name": "Item 2" }
22
+ * ]
23
+ * }
24
+ */
25
+ class TokenPage {
26
+ /**
27
+ * Base page object to maintain request state for token-based pagination.
28
+ *
29
+ * @param version - A twilio version instance
30
+ * @param response - The http response
31
+ * @param uri - The URI for making pagination requests
32
+ * @param data - The request parameters
33
+ * @param solution - path solution
34
+ */
35
+ constructor(version, response, uri, data = {}, solution = {}) {
36
+ const payload = this.processResponse(response);
37
+ this._version = version;
38
+ this._payload = payload;
39
+ this._solution = solution;
40
+ this._uri = uri;
41
+ this._params = data;
42
+ this.instances = this.loadInstances(this.loadPage(payload));
43
+ }
44
+ /**
45
+ * Parse json response from API
46
+ *
47
+ * @param response - API response
48
+ *
49
+ * @throws Error If non 200 status code is returned
50
+ *
51
+ * @returns json parsed response
52
+ */
53
+ processResponse(response) {
54
+ if (response.statusCode !== 200) {
55
+ throw new RestException_1.default(response);
56
+ }
57
+ if (typeof response.body === "string") {
58
+ return JSON.parse(response.body);
59
+ }
60
+ return response.body;
61
+ }
62
+ /**
63
+ * Load a page of records from the payload
64
+ *
65
+ * @param payload - json payload
66
+ * @returns the page of records
67
+ */
68
+ loadPage(payload) {
69
+ if (payload.meta?.key) {
70
+ return payload[payload.meta.key];
71
+ }
72
+ throw new Error("Token pagination requires meta.key to be present in response");
73
+ }
74
+ /**
75
+ * Build a new instance given a json payload
76
+ *
77
+ * @param payload - Payload response from the API
78
+ * @returns instance of a resource
79
+ */
80
+ getInstance(payload) {
81
+ throw new Error("TokenPage.getInstance() must be implemented in the derived class");
82
+ }
83
+ /**
84
+ * Load a list of records
85
+ *
86
+ * @param resources - json payload of records
87
+ * @returns list of resources
88
+ */
89
+ loadInstances(resources) {
90
+ const instances = [];
91
+ resources.forEach((resource) => {
92
+ instances.push(this.getInstance(resource));
93
+ });
94
+ return instances;
95
+ }
96
+ toJSON() {
97
+ const clone = {};
98
+ Object.entries(this).forEach(([key, value]) => {
99
+ if (!key.startsWith("_") && typeof value !== "function") {
100
+ clone[key] = value;
101
+ }
102
+ });
103
+ return clone;
104
+ }
105
+ /**
106
+ * Returns the key that identifies the collection in the response.
107
+ *
108
+ * @returns the key or undefined if doesn't exist
109
+ */
110
+ get key() {
111
+ if (this._payload.meta && this._payload.meta.key) {
112
+ return this._payload.meta.key;
113
+ }
114
+ return undefined;
115
+ }
116
+ /**
117
+ * Returns the page size or undefined if doesn't exist.
118
+ *
119
+ * @returns the page size or undefined
120
+ */
121
+ get pageSize() {
122
+ if (this._payload.meta && this._payload.meta.pageSize) {
123
+ return this._payload.meta.pageSize;
124
+ }
125
+ return undefined;
126
+ }
127
+ /**
128
+ * Returns the next_token for pagination or undefined if doesn't exist.
129
+ *
130
+ * @returns the next token or undefined
131
+ */
132
+ get nextToken() {
133
+ if (this._payload.meta &&
134
+ this._payload.meta.nextToken !== undefined &&
135
+ this._payload.meta.nextToken !== null) {
136
+ return this._payload.meta.nextToken;
137
+ }
138
+ return undefined;
139
+ }
140
+ /**
141
+ * Returns the previous_token for pagination or undefined if doesn't exist.
142
+ *
143
+ * @returns the previous token or undefined
144
+ */
145
+ get previousToken() {
146
+ if (this._payload.meta &&
147
+ this._payload.meta.previousToken !== undefined &&
148
+ this._payload.meta.previousToken !== null) {
149
+ return this._payload.meta.previousToken;
150
+ }
151
+ return undefined;
152
+ }
153
+ /**
154
+ * Internal helper to fetch a page using a given token.
155
+ *
156
+ * @param token - The pagination token to use
157
+ * @returns promise that resolves to the page or undefined if no token exists
158
+ */
159
+ _getPage(token) {
160
+ if (!token) {
161
+ return undefined;
162
+ }
163
+ if (!this._uri) {
164
+ throw new Error("URI must be provided for token pagination");
165
+ }
166
+ const params = { ...this._params, pageToken: token };
167
+ const responsePromise = this._version.page({
168
+ method: "get",
169
+ uri: this._uri,
170
+ params: params,
171
+ });
172
+ return responsePromise.then((response) => {
173
+ return new this.constructor(this._version, response, this._uri, this._params, this._solution);
174
+ });
175
+ }
176
+ /**
177
+ * Fetch the next page of records using token-based pagination.
178
+ * Makes a request to the same URI with pageToken set to nextToken.
179
+ *
180
+ * @returns promise that resolves to next page of results,
181
+ * or undefined if there isn't a nextToken.
182
+ */
183
+ nextPage() {
184
+ return this._getPage(this.nextToken);
185
+ }
186
+ /**
187
+ * Fetch the previous page of records using token-based pagination.
188
+ * Makes a request to the same URI with pageToken set to previousToken.
189
+ *
190
+ * @returns promise that resolves to previous page of results,
191
+ * or undefined if there isn't a previousToken.
192
+ */
193
+ previousPage() {
194
+ return this._getPage(this.previousToken);
195
+ }
196
+ }
197
+ exports.default = TokenPage;
@@ -0,0 +1,30 @@
1
+ interface ValidationError {
2
+ detail: string;
3
+ pointer: string;
4
+ }
5
+ interface TwilioServiceErrorResponse {
6
+ type: string;
7
+ title: string;
8
+ status: number;
9
+ detail?: string;
10
+ instance?: string;
11
+ code: number;
12
+ errors?: ValidationError[];
13
+ }
14
+ export default class TwilioServiceException extends Error implements TwilioServiceErrorResponse {
15
+ type: string;
16
+ title: string;
17
+ status: number;
18
+ detail?: string;
19
+ instance?: string;
20
+ code: number;
21
+ errors?: ValidationError[];
22
+ constructor(response: any);
23
+ /**
24
+ * Check if a response body matches the RFC-9457 structure
25
+ * @param body - The response body to check
26
+ * @returns true if the body has the required RFC-9457 fields
27
+ */
28
+ static isRFC9457Response(body: any): boolean;
29
+ }
30
+ export {};
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class TwilioServiceException extends Error {
4
+ constructor(response) {
5
+ const isResponseBodyString = typeof response.body == "string";
6
+ const body = isResponseBodyString
7
+ ? parseResponseBody(response.body)
8
+ : response.body;
9
+ // Initialize status first for the error message
10
+ const status = body?.status || response.statusCode;
11
+ super(`[HTTP ${status}] ${body?.title || "Failed to execute request"}`);
12
+ // Set all required properties
13
+ this.type = body?.type || "";
14
+ this.title = body?.title || "Failed to execute request";
15
+ this.status = status;
16
+ this.code = body?.code || 0;
17
+ // Set optional properties
18
+ if (body?.detail) {
19
+ this.detail = body.detail;
20
+ }
21
+ if (body?.instance) {
22
+ this.instance = body.instance;
23
+ }
24
+ if (body?.errors) {
25
+ this.errors = body.errors;
26
+ }
27
+ }
28
+ /**
29
+ * Check if a response body matches the RFC-9457 structure
30
+ * @param body - The response body to check
31
+ * @returns true if the body has the required RFC-9457 fields
32
+ */
33
+ static isRFC9457Response(body) {
34
+ if (!body || typeof body !== "object") {
35
+ return false;
36
+ }
37
+ // Check for required fields according to the spec
38
+ return (typeof body.type === "string" &&
39
+ typeof body.title === "string" &&
40
+ typeof body.status === "number" &&
41
+ typeof body.code === "number");
42
+ }
43
+ }
44
+ exports.default = TwilioServiceException;
45
+ function parseResponseBody(response_body) {
46
+ let body = null;
47
+ try {
48
+ body = JSON.parse(response_body);
49
+ }
50
+ catch (catchError) {
51
+ body = null;
52
+ }
53
+ return body;
54
+ }
@@ -1,5 +1,6 @@
1
1
  import Domain from "./Domain";
2
2
  import { RequestOpts } from "./BaseTwilio";
3
+ import { ApiResponse } from "./ApiResponse";
3
4
  export interface PageLimitOptions {
4
5
  /**
5
6
  * The maximum number of items to fetch
@@ -26,6 +27,14 @@ export default class Version {
26
27
  */
27
28
  constructor(domain: Domain, version: string | Version);
28
29
  get domain(): Domain;
30
+ /**
31
+ * Throws the appropriate exception based on the response format
32
+ *
33
+ * @param response - the response object
34
+ * @throws TwilioServiceException if response matches RFC-9457 format
35
+ * @throws RestException for legacy format
36
+ */
37
+ private throwException;
29
38
  /**
30
39
  * Generate absolute url from a uri
31
40
  *
@@ -104,6 +113,66 @@ export default class Version {
104
113
  * @returns promise that resolves to true if record was deleted
105
114
  */
106
115
  remove(opts: RequestOpts): Promise<boolean>;
116
+ /**
117
+ * Create a new record and return response metadata
118
+ *
119
+ * @param opts - request options
120
+ *
121
+ * @throws TwilioServiceException if response matches RFC-9457 format
122
+ * @throws RestException for legacy format
123
+ * @throws Error If response returns non 2xx or 201 status code
124
+ *
125
+ * @returns promise that resolves to ApiResponse with created record and metadata
126
+ */
127
+ createWithResponseInfo<T>(opts: RequestOpts): Promise<ApiResponse<T>>;
128
+ /**
129
+ * Fetch an instance of a record and return response metadata
130
+ *
131
+ * @param opts - request options
132
+ *
133
+ * @throws TwilioServiceException if response matches RFC-9457 format
134
+ * @throws RestException for legacy format
135
+ * @throws Error If response returns non 2xx or 3xx status code
136
+ *
137
+ * @returns promise that resolves to ApiResponse with fetched record and metadata
138
+ */
139
+ fetchWithResponseInfo<T>(opts: RequestOpts): Promise<ApiResponse<T>>;
140
+ /**
141
+ * Update a record and return response metadata
142
+ *
143
+ * @param opts - request options
144
+ *
145
+ * @throws TwilioServiceException if response matches RFC-9457 format
146
+ * @throws RestException for legacy format
147
+ * @throws Error If response returns non 2xx status code
148
+ *
149
+ * @returns promise that resolves to ApiResponse with updated record and metadata
150
+ */
151
+ updateWithResponseInfo<T>(opts: RequestOpts): Promise<ApiResponse<T>>;
152
+ /**
153
+ * Patch a record and return response metadata
154
+ *
155
+ * @param opts - request options
156
+ *
157
+ * @throws TwilioServiceException if response matches RFC-9457 format
158
+ * @throws RestException for legacy format
159
+ * @throws Error If response returns non 2xx status code
160
+ *
161
+ * @returns promise that resolves to ApiResponse with patched record and metadata
162
+ */
163
+ patchWithResponseInfo<T>(opts: RequestOpts): Promise<ApiResponse<T>>;
164
+ /**
165
+ * Delete a record and return response metadata
166
+ *
167
+ * @param opts - request options
168
+ *
169
+ * @throws TwilioServiceException if response matches RFC-9457 format
170
+ * @throws RestException for legacy format
171
+ * @throws Error If response returns a 5xx status
172
+ *
173
+ * @returns promise that resolves to ApiResponse with boolean and metadata
174
+ */
175
+ removeWithResponseInfo(opts: RequestOpts): Promise<ApiResponse<boolean>>;
107
176
  /**
108
177
  * Process limits for list requests
109
178
  *
@@ -136,4 +205,37 @@ export default class Version {
136
205
  */
137
206
  each<T>(params?: any, callback?: (item: T, done: (err?: Error) => void) => void): Promise<void>;
138
207
  list<T>(params?: any, callback?: (error: Error | null, items: T) => any): Promise<any>;
208
+ /**
209
+ * For each record instance, executes a provided callback function with that
210
+ * instance and captures HTTP response metadata from the first page
211
+ *
212
+ * @param params - Parameters (Optional)
213
+ * @param params.limit - Optional maximum number of record instances to
214
+ * fetch
215
+ * @param params.pageSize - Optional maximum number of records to return
216
+ * with every request
217
+ * @param params.callback - Callback function to call with each
218
+ * record instance
219
+ * @param params.done - Optional done function to call when all
220
+ * records are processed, the limit is reached, or an error occurs.
221
+ * Receives an error argument if an error occurs, and ApiResponse metadata.
222
+ * @param callback - Callback function to call with each record.
223
+ * Receives a done function argument that will short-circuit the for-each
224
+ * loop that may accept an error argument.
225
+ * @returns Returns a promise that resolves with first page metadata when all records
226
+ * processed or if the limit is reached, and rejects with an error if an
227
+ * error occurs and is not handled in the user provided done function.
228
+ */
229
+ eachWithHttpInfo<T>(params?: any, callback?: (item: T, done: (err?: Error) => void) => void): Promise<ApiResponse<void>>;
230
+ /**
231
+ * Fetches all records and returns them as an array with HTTP response metadata
232
+ * from the first page
233
+ *
234
+ * @param params - Parameters (Optional)
235
+ * @param params.limit - Optional maximum number of record instances to fetch
236
+ * @param params.pageSize - Optional maximum number of records to return with every request
237
+ * @param callback - Optional callback function
238
+ * @returns Promise that resolves to ApiResponse with array of all records and first page metadata
239
+ */
240
+ listWithHttpInfo<T>(params?: any, callback?: (error: Error | null, items: ApiResponse<T[]>) => any): Promise<ApiResponse<T[]>>;
139
241
  }