twilio 5.11.2 → 5.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base/ApiResponse.d.ts +34 -0
- package/lib/base/ApiResponse.js +2 -0
- package/lib/base/TokenPage.d.ts +134 -0
- package/lib/base/TokenPage.js +197 -0
- package/lib/base/TwilioServiceException.d.ts +30 -0
- package/lib/base/TwilioServiceException.js +54 -0
- package/lib/base/Version.d.ts +102 -0
- package/lib/base/Version.js +402 -9
- package/lib/index.d.ts +2 -0
- package/lib/rest/accounts/v1/authTokenPromotion.d.ts +18 -0
- package/lib/rest/accounts/v1/authTokenPromotion.js +29 -0
- package/lib/rest/accounts/v1/bulkConsents.d.ts +10 -0
- package/lib/rest/accounts/v1/bulkConsents.js +28 -0
- package/lib/rest/accounts/v1/bulkContacts.d.ts +10 -0
- package/lib/rest/accounts/v1/bulkContacts.js +28 -0
- package/lib/rest/accounts/v1/credential/aws.d.ts +131 -0
- package/lib/rest/accounts/v1/credential/aws.js +167 -0
- package/lib/rest/accounts/v1/credential/publicKey.d.ts +131 -0
- package/lib/rest/accounts/v1/credential/publicKey.js +167 -0
- package/lib/rest/accounts/v1/messagingGeopermissions.d.ts +27 -0
- package/lib/rest/accounts/v1/messagingGeopermissions.js +57 -0
- package/lib/rest/accounts/v1/safelist.d.ts +44 -0
- package/lib/rest/accounts/v1/safelist.js +85 -0
- package/lib/rest/accounts/v1/secondaryAuthToken.d.ts +35 -0
- package/lib/rest/accounts/v1/secondaryAuthToken.js +53 -0
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +53 -0
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.js +48 -0
- package/lib/rest/api/v2010/account/address.d.ts +131 -0
- package/lib/rest/api/v2010/account/address.js +216 -0
- package/lib/rest/api/v2010/account/application.d.ts +139 -0
- package/lib/rest/api/v2010/account/application.js +227 -0
- package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +70 -0
- package/lib/rest/api/v2010/account/authorizedConnectApp.js +77 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.d.ts +53 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/local.js +84 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.d.ts +53 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/machineToMachine.js +84 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.d.ts +53 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/mobile.js +84 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.d.ts +53 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/national.js +84 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.d.ts +53 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/sharedCost.js +84 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.d.ts +53 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/tollFree.js +84 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.d.ts +53 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry/voip.js +84 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry.d.ts +70 -0
- package/lib/rest/api/v2010/account/availablePhoneNumberCountry.js +77 -0
- package/lib/rest/api/v2010/account/balance.d.ts +9 -0
- package/lib/rest/api/v2010/account/balance.js +18 -0
- package/lib/rest/api/v2010/account/call/event.d.ts +53 -0
- package/lib/rest/api/v2010/account/call/event.js +48 -0
- package/lib/rest/api/v2010/account/call/notification.d.ts +70 -0
- package/lib/rest/api/v2010/account/call/notification.js +85 -0
- package/lib/rest/api/v2010/account/call/payment.d.ts +29 -0
- package/lib/rest/api/v2010/account/call/payment.js +104 -0
- package/lib/rest/api/v2010/account/call/recording.d.ts +123 -0
- package/lib/rest/api/v2010/account/call/recording.js +182 -0
- package/lib/rest/api/v2010/account/call/siprec.d.ts +37 -0
- package/lib/rest/api/v2010/account/call/siprec.js +466 -0
- package/lib/rest/api/v2010/account/call/stream.d.ts +29 -0
- package/lib/rest/api/v2010/account/call/stream.js +464 -0
- package/lib/rest/api/v2010/account/call/transcription.d.ts +40 -1
- package/lib/rest/api/v2010/account/call/transcription.js +92 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessage.d.ts +10 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessage.js +30 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.d.ts +27 -0
- package/lib/rest/api/v2010/account/call/userDefinedMessageSubscription.js +56 -0
- package/lib/rest/api/v2010/account/call.d.ts +131 -0
- package/lib/rest/api/v2010/account/call.js +276 -0
- package/lib/rest/api/v2010/account/conference/participant.d.ts +131 -0
- package/lib/rest/api/v2010/account/conference/participant.js +298 -0
- package/lib/rest/api/v2010/account/conference/recording.d.ts +106 -0
- package/lib/rest/api/v2010/account/conference/recording.js +141 -0
- package/lib/rest/api/v2010/account/conference.d.ts +105 -0
- package/lib/rest/api/v2010/account/conference.js +131 -0
- package/lib/rest/api/v2010/account/connectApp.d.ts +122 -0
- package/lib/rest/api/v2010/account/connectApp.js +149 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.d.ts +70 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn/assignedAddOnExtension.js +77 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +96 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.js +130 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +62 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.js +128 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +62 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.js +128 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +62 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.js +128 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +139 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber.js +263 -0
- package/lib/rest/api/v2010/account/key.d.ts +122 -0
- package/lib/rest/api/v2010/account/key.js +135 -0
- package/lib/rest/api/v2010/account/message/feedback.d.ts +18 -0
- package/lib/rest/api/v2010/account/message/feedback.js +30 -0
- package/lib/rest/api/v2010/account/message/media.d.ts +87 -0
- package/lib/rest/api/v2010/account/message/media.js +107 -0
- package/lib/rest/api/v2010/account/message.d.ts +131 -0
- package/lib/rest/api/v2010/account/message.js +221 -0
- package/lib/rest/api/v2010/account/newKey.d.ts +18 -0
- package/lib/rest/api/v2010/account/newKey.js +30 -0
- package/lib/rest/api/v2010/account/newSigningKey.d.ts +18 -0
- package/lib/rest/api/v2010/account/newSigningKey.js +30 -0
- package/lib/rest/api/v2010/account/notification.d.ts +70 -0
- package/lib/rest/api/v2010/account/notification.js +85 -0
- package/lib/rest/api/v2010/account/outgoingCallerId.d.ts +122 -0
- package/lib/rest/api/v2010/account/outgoingCallerId.js +139 -0
- package/lib/rest/api/v2010/account/queue/member.d.ts +89 -0
- package/lib/rest/api/v2010/account/queue/member.js +111 -0
- package/lib/rest/api/v2010/account/queue.d.ts +131 -0
- package/lib/rest/api/v2010/account/queue.js +168 -0
- package/lib/rest/api/v2010/account/recording/addOnResult/payload/data.d.ts +18 -0
- package/lib/rest/api/v2010/account/recording/addOnResult/payload/data.js +29 -0
- package/lib/rest/api/v2010/account/recording/addOnResult/payload.d.ts +87 -0
- package/lib/rest/api/v2010/account/recording/addOnResult/payload.js +101 -0
- package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +87 -0
- package/lib/rest/api/v2010/account/recording/addOnResult.js +101 -0
- package/lib/rest/api/v2010/account/recording/transcription.d.ts +87 -0
- package/lib/rest/api/v2010/account/recording/transcription.js +101 -0
- package/lib/rest/api/v2010/account/recording.d.ts +105 -0
- package/lib/rest/api/v2010/account/recording.js +117 -0
- package/lib/rest/api/v2010/account/shortCode.d.ts +105 -0
- package/lib/rest/api/v2010/account/shortCode.js +125 -0
- package/lib/rest/api/v2010/account/signingKey.d.ts +122 -0
- package/lib/rest/api/v2010/account/signingKey.js +135 -0
- package/lib/rest/api/v2010/account/sip/credentialList/credential.d.ts +131 -0
- package/lib/rest/api/v2010/account/sip/credentialList/credential.js +167 -0
- package/lib/rest/api/v2010/account/sip/credentialList.d.ts +115 -0
- package/lib/rest/api/v2010/account/sip/credentialList.js +163 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsCredentialListMapping.d.ts +96 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsCredentialListMapping.js +130 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsIpAccessControlListMapping.d.ts +96 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeCalls/authCallsIpAccessControlListMapping.js +130 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations/authRegistrationsCredentialListMapping.d.ts +96 -0
- package/lib/rest/api/v2010/account/sip/domain/authTypes/authTypeRegistrations/authRegistrationsCredentialListMapping.js +130 -0
- package/lib/rest/api/v2010/account/sip/domain/credentialListMapping.d.ts +96 -0
- package/lib/rest/api/v2010/account/sip/domain/credentialListMapping.js +130 -0
- package/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.d.ts +96 -0
- package/lib/rest/api/v2010/account/sip/domain/ipAccessControlListMapping.js +130 -0
- package/lib/rest/api/v2010/account/sip/domain.d.ts +131 -0
- package/lib/rest/api/v2010/account/sip/domain.js +211 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.d.ts +131 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList/ipAddress.js +174 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList.d.ts +115 -0
- package/lib/rest/api/v2010/account/sip/ipAccessControlList.js +163 -0
- package/lib/rest/api/v2010/account/token.d.ts +18 -0
- package/lib/rest/api/v2010/account/token.js +30 -0
- package/lib/rest/api/v2010/account/transcription.d.ts +87 -0
- package/lib/rest/api/v2010/account/transcription.js +101 -0
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +53 -0
- package/lib/rest/api/v2010/account/usage/record/allTime.js +56 -0
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +53 -0
- package/lib/rest/api/v2010/account/usage/record/daily.js +56 -0
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +53 -0
- package/lib/rest/api/v2010/account/usage/record/lastMonth.js +56 -0
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +53 -0
- package/lib/rest/api/v2010/account/usage/record/monthly.js +56 -0
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +53 -0
- package/lib/rest/api/v2010/account/usage/record/thisMonth.js +56 -0
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +53 -0
- package/lib/rest/api/v2010/account/usage/record/today.js +56 -0
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +53 -0
- package/lib/rest/api/v2010/account/usage/record/yearly.js +56 -0
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +53 -0
- package/lib/rest/api/v2010/account/usage/record/yesterday.js +56 -0
- package/lib/rest/api/v2010/account/usage/record.d.ts +53 -0
- package/lib/rest/api/v2010/account/usage/record.js +56 -0
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +131 -0
- package/lib/rest/api/v2010/account/usage/trigger.js +191 -0
- package/lib/rest/api/v2010/account/validationRequest.d.ts +10 -0
- package/lib/rest/api/v2010/account/validationRequest.js +38 -0
- package/lib/rest/api/v2010/account.d.ts +122 -0
- package/lib/rest/api/v2010/account.js +147 -0
- package/lib/rest/assistants/v1/assistant/assistantsKnowledge.d.ts +87 -0
- package/lib/rest/assistants/v1/assistant/assistantsKnowledge.js +100 -0
- package/lib/rest/assistants/v1/assistant/assistantsTool.d.ts +87 -0
- package/lib/rest/assistants/v1/assistant/assistantsTool.js +100 -0
- package/lib/rest/assistants/v1/assistant/feedback.d.ts +63 -0
- package/lib/rest/assistants/v1/assistant/feedback.js +75 -0
- package/lib/rest/assistants/v1/assistant/message.d.ts +11 -0
- package/lib/rest/assistants/v1/assistant/message.js +27 -0
- package/lib/rest/assistants/v1/assistant.d.ts +134 -0
- package/lib/rest/assistants/v1/assistant.js +163 -0
- package/lib/rest/assistants/v1/knowledge/chunk.d.ts +53 -0
- package/lib/rest/assistants/v1/knowledge/chunk.js +48 -0
- package/lib/rest/assistants/v1/knowledge/knowledgeStatus.d.ts +18 -0
- package/lib/rest/assistants/v1/knowledge/knowledgeStatus.js +29 -0
- package/lib/rest/assistants/v1/knowledge.d.ts +134 -0
- package/lib/rest/assistants/v1/knowledge.js +165 -0
- package/lib/rest/assistants/v1/policy.d.ts +53 -0
- package/lib/rest/assistants/v1/policy.js +52 -0
- package/lib/rest/assistants/v1/session/message.d.ts +53 -0
- package/lib/rest/assistants/v1/session/message.js +48 -0
- package/lib/rest/assistants/v1/session.d.ts +70 -0
- package/lib/rest/assistants/v1/session.js +77 -0
- package/lib/rest/assistants/v1/tool.d.ts +134 -0
- package/lib/rest/assistants/v1/tool.js +165 -0
- package/lib/rest/bulkexports/v1/export/day.d.ts +70 -0
- package/lib/rest/bulkexports/v1/export/day.js +77 -0
- package/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +62 -0
- package/lib/rest/bulkexports/v1/export/exportCustomJob.js +91 -0
- package/lib/rest/bulkexports/v1/export/job.d.ts +35 -0
- package/lib/rest/bulkexports/v1/export/job.js +53 -0
- package/lib/rest/bulkexports/v1/export.d.ts +18 -0
- package/lib/rest/bulkexports/v1/export.js +29 -0
- package/lib/rest/bulkexports/v1/exportConfiguration.d.ts +53 -0
- package/lib/rest/bulkexports/v1/exportConfiguration.js +67 -0
- package/lib/rest/chat/v1/credential.d.ts +131 -0
- package/lib/rest/chat/v1/credential.js +185 -0
- package/lib/rest/chat/v1/service/channel/invite.d.ts +96 -0
- package/lib/rest/chat/v1/service/channel/invite.js +133 -0
- package/lib/rest/chat/v1/service/channel/member.d.ts +131 -0
- package/lib/rest/chat/v1/service/channel/member.js +169 -0
- package/lib/rest/chat/v1/service/channel/message.d.ts +131 -0
- package/lib/rest/chat/v1/service/channel/message.js +171 -0
- package/lib/rest/chat/v1/service/channel.d.ts +139 -0
- package/lib/rest/chat/v1/service/channel.js +177 -0
- package/lib/rest/chat/v1/service/role.d.ts +115 -0
- package/lib/rest/chat/v1/service/role.js +170 -0
- package/lib/rest/chat/v1/service/user/userChannel.d.ts +53 -0
- package/lib/rest/chat/v1/service/user/userChannel.js +48 -0
- package/lib/rest/chat/v1/service/user.d.ts +131 -0
- package/lib/rest/chat/v1/service/user.js +173 -0
- package/lib/rest/chat/v1/service.d.ts +131 -0
- package/lib/rest/chat/v1/service.js +302 -0
- package/lib/rest/chat/v2/credential.d.ts +131 -0
- package/lib/rest/chat/v2/credential.js +185 -0
- package/lib/rest/chat/v2/service/binding.d.ts +87 -0
- package/lib/rest/chat/v2/service/binding.js +105 -0
- package/lib/rest/chat/v2/service/channel/invite.d.ts +96 -0
- package/lib/rest/chat/v2/service/channel/invite.js +133 -0
- package/lib/rest/chat/v2/service/channel/member.d.ts +149 -0
- package/lib/rest/chat/v2/service/channel/member.js +199 -0
- package/lib/rest/chat/v2/service/channel/message.d.ts +157 -0
- package/lib/rest/chat/v2/service/channel/message.js +201 -0
- package/lib/rest/chat/v2/service/channel/webhook.d.ts +131 -0
- package/lib/rest/chat/v2/service/channel/webhook.js +185 -0
- package/lib/rest/chat/v2/service/channel.d.ts +157 -0
- package/lib/rest/chat/v2/service/channel.js +201 -0
- package/lib/rest/chat/v2/service/role.d.ts +115 -0
- package/lib/rest/chat/v2/service/role.js +170 -0
- package/lib/rest/chat/v2/service/user/userBinding.d.ts +87 -0
- package/lib/rest/chat/v2/service/user/userBinding.js +103 -0
- package/lib/rest/chat/v2/service/user/userChannel.d.ts +140 -0
- package/lib/rest/chat/v2/service/user/userChannel.js +147 -0
- package/lib/rest/chat/v2/service/user.d.ts +131 -0
- package/lib/rest/chat/v2/service/user.js +177 -0
- package/lib/rest/chat/v2/service.d.ts +131 -0
- package/lib/rest/chat/v2/service.js +233 -0
- package/lib/rest/chat/v3/channel.d.ts +36 -0
- package/lib/rest/chat/v3/channel.js +38 -0
- package/lib/rest/content/v1/content/approvalCreate.d.ts +11 -0
- package/lib/rest/content/v1/content/approvalCreate.js +27 -0
- package/lib/rest/content/v1/content/approvalFetch.d.ts +18 -0
- package/lib/rest/content/v1/content/approvalFetch.js +29 -0
- package/lib/rest/content/v1/content.d.ts +118 -0
- package/lib/rest/content/v1/content.js +159 -0
- package/lib/rest/content/v1/contentAndApprovals.d.ts +53 -0
- package/lib/rest/content/v1/contentAndApprovals.js +48 -0
- package/lib/rest/content/v1/legacyContent.d.ts +53 -0
- package/lib/rest/content/v1/legacyContent.js +48 -0
- package/lib/rest/content/v2/content.d.ts +53 -0
- package/lib/rest/content/v2/content.js +66 -0
- package/lib/rest/content/v2/contentAndApprovals.d.ts +53 -0
- package/lib/rest/content/v2/contentAndApprovals.js +66 -0
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +131 -0
- package/lib/rest/conversations/v1/addressConfiguration.js +209 -0
- package/lib/rest/conversations/v1/configuration/webhook.d.ts +53 -0
- package/lib/rest/conversations/v1/configuration/webhook.js +71 -0
- package/lib/rest/conversations/v1/configuration.d.ts +53 -0
- package/lib/rest/conversations/v1/configuration.js +69 -0
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +70 -0
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.js +77 -0
- package/lib/rest/conversations/v1/conversation/message.d.ts +157 -0
- package/lib/rest/conversations/v1/conversation/message.js +205 -0
- package/lib/rest/conversations/v1/conversation/participant.d.ts +157 -0
- package/lib/rest/conversations/v1/conversation/participant.js +211 -0
- package/lib/rest/conversations/v1/conversation/webhook.d.ts +131 -0
- package/lib/rest/conversations/v1/conversation/webhook.js +183 -0
- package/lib/rest/conversations/v1/conversation.d.ts +157 -0
- package/lib/rest/conversations/v1/conversation.js +223 -0
- package/lib/rest/conversations/v1/conversationWithParticipants.d.ts +18 -0
- package/lib/rest/conversations/v1/conversationWithParticipants.js +54 -0
- package/lib/rest/conversations/v1/credential.d.ts +131 -0
- package/lib/rest/conversations/v1/credential.js +187 -0
- package/lib/rest/conversations/v1/participantConversation.d.ts +53 -0
- package/lib/rest/conversations/v1/participantConversation.js +52 -0
- package/lib/rest/conversations/v1/role.d.ts +115 -0
- package/lib/rest/conversations/v1/role.js +170 -0
- package/lib/rest/conversations/v1/service/binding.d.ts +87 -0
- package/lib/rest/conversations/v1/service/binding.js +105 -0
- package/lib/rest/conversations/v1/service/configuration/notification.d.ts +53 -0
- package/lib/rest/conversations/v1/service/configuration/notification.js +91 -0
- package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +53 -0
- package/lib/rest/conversations/v1/service/configuration/webhook.js +69 -0
- package/lib/rest/conversations/v1/service/configuration.d.ts +53 -0
- package/lib/rest/conversations/v1/service/configuration.js +70 -0
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +70 -0
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.js +77 -0
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +157 -0
- package/lib/rest/conversations/v1/service/conversation/message.js +205 -0
- package/lib/rest/conversations/v1/service/conversation/participant.d.ts +157 -0
- package/lib/rest/conversations/v1/service/conversation/participant.js +211 -0
- package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +131 -0
- package/lib/rest/conversations/v1/service/conversation/webhook.js +183 -0
- package/lib/rest/conversations/v1/service/conversation.d.ts +157 -0
- package/lib/rest/conversations/v1/service/conversation.js +223 -0
- package/lib/rest/conversations/v1/service/conversationWithParticipants.d.ts +18 -0
- package/lib/rest/conversations/v1/service/conversationWithParticipants.js +54 -0
- package/lib/rest/conversations/v1/service/participantConversation.d.ts +53 -0
- package/lib/rest/conversations/v1/service/participantConversation.js +52 -0
- package/lib/rest/conversations/v1/service/role.d.ts +115 -0
- package/lib/rest/conversations/v1/service/role.js +170 -0
- package/lib/rest/conversations/v1/service/user/userConversation.d.ts +122 -0
- package/lib/rest/conversations/v1/service/user/userConversation.js +139 -0
- package/lib/rest/conversations/v1/service/user.d.ts +149 -0
- package/lib/rest/conversations/v1/service/user.js +185 -0
- package/lib/rest/conversations/v1/service.d.ts +96 -0
- package/lib/rest/conversations/v1/service.js +130 -0
- package/lib/rest/conversations/v1/user/userConversation.d.ts +122 -0
- package/lib/rest/conversations/v1/user/userConversation.js +139 -0
- package/lib/rest/conversations/v1/user.d.ts +149 -0
- package/lib/rest/conversations/v1/user.js +185 -0
- package/lib/rest/events/v1/eventType.d.ts +70 -0
- package/lib/rest/events/v1/eventType.js +79 -0
- package/lib/rest/events/v1/schema/schemaVersion.d.ts +70 -0
- package/lib/rest/events/v1/schema/schemaVersion.js +77 -0
- package/lib/rest/events/v1/schema.d.ts +18 -0
- package/lib/rest/events/v1/schema.js +29 -0
- package/lib/rest/events/v1/sink/sinkTest.d.ts +9 -0
- package/lib/rest/events/v1/sink/sinkTest.js +18 -0
- package/lib/rest/events/v1/sink/sinkValidate.d.ts +10 -0
- package/lib/rest/events/v1/sink/sinkValidate.js +28 -0
- package/lib/rest/events/v1/sink.d.ts +115 -0
- package/lib/rest/events/v1/sink.js +174 -0
- package/lib/rest/events/v1/subscription/subscribedEvent.d.ts +131 -0
- package/lib/rest/events/v1/subscription/subscribedEvent.js +165 -0
- package/lib/rest/events/v1/subscription.d.ts +131 -0
- package/lib/rest/events/v1/subscription.js +173 -0
- package/lib/rest/flexApi/v1/assessments.d.ts +81 -0
- package/lib/rest/flexApi/v1/assessments.js +162 -0
- package/lib/rest/flexApi/v1/channel.d.ts +96 -0
- package/lib/rest/flexApi/v1/channel.js +155 -0
- package/lib/rest/flexApi/v1/configuration.d.ts +73 -0
- package/lib/rest/flexApi/v1/configuration.js +68 -0
- package/lib/rest/flexApi/v1/flexFlow.d.ts +131 -0
- package/lib/rest/flexApi/v1/flexFlow.js +235 -0
- package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +62 -0
- package/lib/rest/flexApi/v1/insightsAssessmentsComment.js +105 -0
- package/lib/rest/flexApi/v1/insightsConversations.d.ts +53 -0
- package/lib/rest/flexApi/v1/insightsConversations.js +52 -0
- package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +151 -0
- package/lib/rest/flexApi/v1/insightsQuestionnaires.js +193 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.d.ts +116 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesCategory.js +146 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +116 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +170 -0
- package/lib/rest/flexApi/v1/insightsSegments.d.ts +53 -0
- package/lib/rest/flexApi/v1/insightsSegments.js +54 -0
- package/lib/rest/flexApi/v1/insightsSession.d.ts +36 -0
- package/lib/rest/flexApi/v1/insightsSession.js +33 -0
- package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +18 -0
- package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.js +29 -0
- package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +18 -0
- package/lib/rest/flexApi/v1/insightsSettingsComment.js +29 -0
- package/lib/rest/flexApi/v1/insightsUserRoles.d.ts +36 -0
- package/lib/rest/flexApi/v1/insightsUserRoles.js +33 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +62 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.js +76 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +81 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.js +115 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.d.ts +73 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.js +95 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +89 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel.js +111 -0
- package/lib/rest/flexApi/v1/interaction.d.ts +62 -0
- package/lib/rest/flexApi/v1/interaction.js +97 -0
- package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +97 -0
- package/lib/rest/flexApi/v1/plugin/pluginVersions.js +125 -0
- package/lib/rest/flexApi/v1/plugin.d.ts +132 -0
- package/lib/rest/flexApi/v1/plugin.js +155 -0
- package/lib/rest/flexApi/v1/pluginArchive.d.ts +36 -0
- package/lib/rest/flexApi/v1/pluginArchive.js +33 -0
- package/lib/rest/flexApi/v1/pluginConfiguration/configuredPlugin.d.ts +88 -0
- package/lib/rest/flexApi/v1/pluginConfiguration/configuredPlugin.js +83 -0
- package/lib/rest/flexApi/v1/pluginConfiguration.d.ts +97 -0
- package/lib/rest/flexApi/v1/pluginConfiguration.js +117 -0
- package/lib/rest/flexApi/v1/pluginConfigurationArchive.d.ts +36 -0
- package/lib/rest/flexApi/v1/pluginConfigurationArchive.js +33 -0
- package/lib/rest/flexApi/v1/pluginRelease.d.ts +97 -0
- package/lib/rest/flexApi/v1/pluginRelease.js +114 -0
- package/lib/rest/flexApi/v1/pluginVersionArchive.d.ts +36 -0
- package/lib/rest/flexApi/v1/pluginVersionArchive.js +33 -0
- package/lib/rest/flexApi/v1/provisioningStatus.d.ts +18 -0
- package/lib/rest/flexApi/v1/provisioningStatus.js +29 -0
- package/lib/rest/flexApi/v1/webChannel.d.ts +131 -0
- package/lib/rest/flexApi/v1/webChannel.js +183 -0
- package/lib/rest/flexApi/v2/flexUser.d.ts +53 -0
- package/lib/rest/flexApi/v2/flexUser.js +67 -0
- package/lib/rest/flexApi/v2/webChannels.d.ts +10 -0
- package/lib/rest/flexApi/v2/webChannels.js +38 -0
- package/lib/rest/frontlineApi/v1/user.d.ts +53 -0
- package/lib/rest/frontlineApi/v1/user.js +69 -0
- package/lib/rest/iam/v1/apiKey.d.ts +70 -0
- package/lib/rest/iam/v1/apiKey.js +89 -0
- package/lib/rest/iam/v1/getApiKeys.d.ts +50 -0
- package/lib/rest/iam/v1/getApiKeys.js +48 -0
- package/lib/rest/iam/v1/newApiKey.d.ts +10 -0
- package/lib/rest/iam/v1/newApiKey.js +34 -0
- package/lib/rest/iam/v1/oAuthApp.d.ts +49 -0
- package/lib/rest/iam/v1/oAuthApp.js +82 -0
- package/lib/rest/iam/v1/token.d.ts +10 -0
- package/lib/rest/iam/v1/token.js +44 -0
- package/lib/rest/insights/v1/call/annotation.d.ts +53 -0
- package/lib/rest/insights/v1/call/annotation.js +75 -0
- package/lib/rest/insights/v1/call/callSummary.d.ts +36 -0
- package/lib/rest/insights/v1/call/callSummary.js +33 -0
- package/lib/rest/insights/v1/call/event.d.ts +53 -0
- package/lib/rest/insights/v1/call/event.js +50 -0
- package/lib/rest/insights/v1/call/metric.d.ts +53 -0
- package/lib/rest/insights/v1/call/metric.js +52 -0
- package/lib/rest/insights/v1/call.d.ts +18 -0
- package/lib/rest/insights/v1/call.js +29 -0
- package/lib/rest/insights/v1/callSummaries.d.ts +53 -0
- package/lib/rest/insights/v1/callSummaries.js +121 -0
- package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +88 -0
- package/lib/rest/insights/v1/conference/conferenceParticipant.js +89 -0
- package/lib/rest/insights/v1/conference.d.ts +70 -0
- package/lib/rest/insights/v1/conference.js +97 -0
- package/lib/rest/insights/v1/room/participant.d.ts +70 -0
- package/lib/rest/insights/v1/room/participant.js +77 -0
- package/lib/rest/insights/v1/room.d.ts +70 -0
- package/lib/rest/insights/v1/room.js +87 -0
- package/lib/rest/insights/v1/setting.d.ts +71 -0
- package/lib/rest/insights/v1/setting.js +71 -0
- package/lib/rest/intelligence/v2/customOperator.d.ts +115 -0
- package/lib/rest/intelligence/v2/customOperator.js +182 -0
- package/lib/rest/intelligence/v2/operator.d.ts +70 -0
- package/lib/rest/intelligence/v2/operator.js +81 -0
- package/lib/rest/intelligence/v2/operatorAttachment.d.ts +35 -0
- package/lib/rest/intelligence/v2/operatorAttachment.js +53 -0
- package/lib/rest/intelligence/v2/operatorAttachments.d.ts +18 -0
- package/lib/rest/intelligence/v2/operatorAttachments.js +29 -0
- package/lib/rest/intelligence/v2/operatorType.d.ts +70 -0
- package/lib/rest/intelligence/v2/operatorType.js +77 -0
- package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +70 -0
- package/lib/rest/intelligence/v2/prebuiltOperator.js +81 -0
- package/lib/rest/intelligence/v2/service.d.ts +131 -0
- package/lib/rest/intelligence/v2/service.js +199 -0
- package/lib/rest/intelligence/v2/transcript/encryptedOperatorResults.d.ts +36 -0
- package/lib/rest/intelligence/v2/transcript/encryptedOperatorResults.js +33 -0
- package/lib/rest/intelligence/v2/transcript/encryptedSentences.d.ts +36 -0
- package/lib/rest/intelligence/v2/transcript/encryptedSentences.js +33 -0
- package/lib/rest/intelligence/v2/transcript/media.d.ts +36 -0
- package/lib/rest/intelligence/v2/transcript/media.js +33 -0
- package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +88 -0
- package/lib/rest/intelligence/v2/transcript/operatorResult.js +83 -0
- package/lib/rest/intelligence/v2/transcript/sentence.d.ts +53 -0
- package/lib/rest/intelligence/v2/transcript/sentence.js +52 -0
- package/lib/rest/intelligence/v2/transcript.d.ts +96 -0
- package/lib/rest/intelligence/v2/transcript.js +153 -0
- package/lib/rest/ipMessaging/v1/credential.d.ts +131 -0
- package/lib/rest/ipMessaging/v1/credential.js +185 -0
- package/lib/rest/ipMessaging/v1/service/channel/invite.d.ts +96 -0
- package/lib/rest/ipMessaging/v1/service/channel/invite.js +133 -0
- package/lib/rest/ipMessaging/v1/service/channel/member.d.ts +131 -0
- package/lib/rest/ipMessaging/v1/service/channel/member.js +169 -0
- package/lib/rest/ipMessaging/v1/service/channel/message.d.ts +131 -0
- package/lib/rest/ipMessaging/v1/service/channel/message.js +171 -0
- package/lib/rest/ipMessaging/v1/service/channel.d.ts +139 -0
- package/lib/rest/ipMessaging/v1/service/channel.js +177 -0
- package/lib/rest/ipMessaging/v1/service/role.d.ts +115 -0
- package/lib/rest/ipMessaging/v1/service/role.js +170 -0
- package/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +53 -0
- package/lib/rest/ipMessaging/v1/service/user/userChannel.js +48 -0
- package/lib/rest/ipMessaging/v1/service/user.d.ts +131 -0
- package/lib/rest/ipMessaging/v1/service/user.js +173 -0
- package/lib/rest/ipMessaging/v1/service.d.ts +131 -0
- package/lib/rest/ipMessaging/v1/service.js +302 -0
- package/lib/rest/ipMessaging/v2/credential.d.ts +131 -0
- package/lib/rest/ipMessaging/v2/credential.js +185 -0
- package/lib/rest/ipMessaging/v2/service/binding.d.ts +87 -0
- package/lib/rest/ipMessaging/v2/service/binding.js +105 -0
- package/lib/rest/ipMessaging/v2/service/channel/invite.d.ts +96 -0
- package/lib/rest/ipMessaging/v2/service/channel/invite.js +133 -0
- package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +149 -0
- package/lib/rest/ipMessaging/v2/service/channel/member.js +199 -0
- package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +157 -0
- package/lib/rest/ipMessaging/v2/service/channel/message.js +201 -0
- package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +131 -0
- package/lib/rest/ipMessaging/v2/service/channel/webhook.js +185 -0
- package/lib/rest/ipMessaging/v2/service/channel.d.ts +157 -0
- package/lib/rest/ipMessaging/v2/service/channel.js +201 -0
- package/lib/rest/ipMessaging/v2/service/role.d.ts +115 -0
- package/lib/rest/ipMessaging/v2/service/role.js +170 -0
- package/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +87 -0
- package/lib/rest/ipMessaging/v2/service/user/userBinding.js +103 -0
- package/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +122 -0
- package/lib/rest/ipMessaging/v2/service/user/userChannel.js +139 -0
- package/lib/rest/ipMessaging/v2/service/user.d.ts +131 -0
- package/lib/rest/ipMessaging/v2/service/user.js +177 -0
- package/lib/rest/ipMessaging/v2/service.d.ts +131 -0
- package/lib/rest/ipMessaging/v2/service.js +233 -0
- package/lib/rest/knowledge/v1/knowledge/chunk.d.ts +53 -0
- package/lib/rest/knowledge/v1/knowledge/chunk.js +48 -0
- package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.d.ts +18 -0
- package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.js +29 -0
- package/lib/rest/knowledge/v1/knowledge.d.ts +134 -0
- package/lib/rest/knowledge/v1/knowledge.js +165 -0
- package/lib/rest/lookups/v1/phoneNumber.d.ts +36 -0
- package/lib/rest/lookups/v1/phoneNumber.js +42 -0
- package/lib/rest/lookups/v2/bucket.d.ts +72 -0
- package/lib/rest/lookups/v2/bucket.js +88 -0
- package/lib/rest/lookups/v2/lookupOverride.d.ts +109 -0
- package/lib/rest/lookups/v2/lookupOverride.js +123 -0
- package/lib/rest/lookups/v2/phoneNumber.d.ts +36 -0
- package/lib/rest/lookups/v2/phoneNumber.js +61 -0
- package/lib/rest/lookups/v2/query.d.ts +19 -0
- package/lib/rest/lookups/v2/query.js +31 -0
- package/lib/rest/lookups/v2/rateLimit.d.ts +18 -0
- package/lib/rest/lookups/v2/rateLimit.js +29 -0
- package/lib/rest/marketplace/v1/availableAddOn/availableAddOnExtension.d.ts +70 -0
- package/lib/rest/marketplace/v1/availableAddOn/availableAddOnExtension.js +77 -0
- package/lib/rest/marketplace/v1/availableAddOn.d.ts +70 -0
- package/lib/rest/marketplace/v1/availableAddOn.js +77 -0
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnExtension.d.ts +89 -0
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnExtension.js +109 -0
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.d.ts +11 -0
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.js +27 -0
- package/lib/rest/marketplace/v1/installedAddOn.d.ts +131 -0
- package/lib/rest/marketplace/v1/installedAddOn.js +175 -0
- package/lib/rest/marketplace/v1/moduleData.d.ts +26 -0
- package/lib/rest/marketplace/v1/moduleData.js +50 -0
- package/lib/rest/marketplace/v1/moduleDataManagement.d.ts +53 -0
- package/lib/rest/marketplace/v1/moduleDataManagement.js +75 -0
- package/lib/rest/marketplace/v1/referralConversion.d.ts +11 -0
- package/lib/rest/marketplace/v1/referralConversion.js +27 -0
- package/lib/rest/messaging/v1/brandRegistration/brandRegistrationOtp.d.ts +9 -0
- package/lib/rest/messaging/v1/brandRegistration/brandRegistrationOtp.js +18 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +79 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.js +108 -0
- package/lib/rest/messaging/v1/brandRegistration.d.ts +96 -0
- package/lib/rest/messaging/v1/brandRegistration.js +146 -0
- package/lib/rest/messaging/v1/deactivations.d.ts +36 -0
- package/lib/rest/messaging/v1/deactivations.js +33 -0
- package/lib/rest/messaging/v1/domainCerts.d.ts +54 -0
- package/lib/rest/messaging/v1/domainCerts.js +85 -0
- package/lib/rest/messaging/v1/domainConfig.d.ts +53 -0
- package/lib/rest/messaging/v1/domainConfig.js +69 -0
- package/lib/rest/messaging/v1/domainConfigMessagingService.d.ts +18 -0
- package/lib/rest/messaging/v1/domainConfigMessagingService.js +29 -0
- package/lib/rest/messaging/v1/domainValidateDn.d.ts +18 -0
- package/lib/rest/messaging/v1/domainValidateDn.js +29 -0
- package/lib/rest/messaging/v1/externalCampaign.d.ts +10 -0
- package/lib/rest/messaging/v1/externalCampaign.js +35 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingService.d.ts +35 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingService.js +53 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingServiceDomainAssociation.d.ts +18 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingServiceDomainAssociation.js +25 -0
- package/lib/rest/messaging/v1/requestManagedCert.d.ts +18 -0
- package/lib/rest/messaging/v1/requestManagedCert.js +29 -0
- package/lib/rest/messaging/v1/service/alphaSender.d.ts +96 -0
- package/lib/rest/messaging/v1/service/alphaSender.js +129 -0
- package/lib/rest/messaging/v1/service/channelSender.d.ts +96 -0
- package/lib/rest/messaging/v1/service/channelSender.js +129 -0
- package/lib/rest/messaging/v1/service/destinationAlphaSender.d.ts +96 -0
- package/lib/rest/messaging/v1/service/destinationAlphaSender.js +133 -0
- package/lib/rest/messaging/v1/service/phoneNumber.d.ts +96 -0
- package/lib/rest/messaging/v1/service/phoneNumber.js +130 -0
- package/lib/rest/messaging/v1/service/shortCode.d.ts +96 -0
- package/lib/rest/messaging/v1/service/shortCode.js +130 -0
- package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +115 -0
- package/lib/rest/messaging/v1/service/usAppToPerson.js +236 -0
- package/lib/rest/messaging/v1/service/usAppToPersonUsecase.d.ts +18 -0
- package/lib/rest/messaging/v1/service/usAppToPersonUsecase.js +29 -0
- package/lib/rest/messaging/v1/service.d.ts +131 -0
- package/lib/rest/messaging/v1/service.js +224 -0
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +131 -0
- package/lib/rest/messaging/v1/tollfreeVerification.js +348 -0
- package/lib/rest/messaging/v1/usecase.d.ts +9 -0
- package/lib/rest/messaging/v1/usecase.js +18 -0
- package/lib/rest/messaging/v2/channelsSender.d.ts +131 -0
- package/lib/rest/messaging/v2/channelsSender.js +163 -0
- package/lib/rest/messaging/v2/domainCerts.d.ts +18 -0
- package/lib/rest/messaging/v2/domainCerts.js +29 -0
- package/lib/rest/messaging/v2/typingIndicator.d.ts +10 -0
- package/lib/rest/messaging/v2/typingIndicator.js +32 -0
- package/lib/rest/monitor/v1/alert.d.ts +70 -0
- package/lib/rest/monitor/v1/alert.js +83 -0
- package/lib/rest/monitor/v1/event.d.ts +70 -0
- package/lib/rest/monitor/v1/event.js +89 -0
- package/lib/rest/notify/v1/credential.d.ts +131 -0
- package/lib/rest/notify/v1/credential.js +185 -0
- package/lib/rest/notify/v1/service/binding.d.ts +96 -0
- package/lib/rest/notify/v1/service/binding.js +154 -0
- package/lib/rest/notify/v1/service/notification.d.ts +18 -0
- package/lib/rest/notify/v1/service/notification.js +64 -0
- package/lib/rest/notify/v1/service.d.ts +139 -0
- package/lib/rest/notify/v1/service.js +227 -0
- package/lib/rest/numbers/v1/bulkEligibility.d.ts +36 -0
- package/lib/rest/numbers/v1/bulkEligibility.js +60 -0
- package/lib/rest/numbers/v1/eligibility.d.ts +19 -0
- package/lib/rest/numbers/v1/eligibility.js +31 -0
- package/lib/rest/numbers/v1/portingAllPortIn.d.ts +53 -0
- package/lib/rest/numbers/v1/portingAllPortIn.js +58 -0
- package/lib/rest/numbers/v1/portingPortIn.d.ts +45 -0
- package/lib/rest/numbers/v1/portingPortIn.js +80 -0
- package/lib/rest/numbers/v1/portingPortInPhoneNumber.d.ts +35 -0
- package/lib/rest/numbers/v1/portingPortInPhoneNumber.js +53 -0
- package/lib/rest/numbers/v1/portingPortability.d.ts +36 -0
- package/lib/rest/numbers/v1/portingPortability.js +35 -0
- package/lib/rest/numbers/v1/portingWebhookConfiguration.d.ts +19 -0
- package/lib/rest/numbers/v1/portingWebhookConfiguration.js +31 -0
- package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.d.ts +10 -0
- package/lib/rest/numbers/v1/portingWebhookConfigurationDelete.js +14 -0
- package/lib/rest/numbers/v1/signingRequestConfiguration.d.ts +71 -0
- package/lib/rest/numbers/v1/signingRequestConfiguration.js +83 -0
- package/lib/rest/numbers/v1/webhook.d.ts +9 -0
- package/lib/rest/numbers/v1/webhook.js +18 -0
- package/lib/rest/numbers/v2/application.d.ts +80 -0
- package/lib/rest/numbers/v2/application.js +104 -0
- package/lib/rest/numbers/v2/authorizationDocument/dependentHostedNumberOrder.d.ts +53 -0
- package/lib/rest/numbers/v2/authorizationDocument/dependentHostedNumberOrder.js +56 -0
- package/lib/rest/numbers/v2/authorizationDocument.d.ts +96 -0
- package/lib/rest/numbers/v2/authorizationDocument.js +151 -0
- package/lib/rest/numbers/v2/bulkHostedNumberOrder.d.ts +54 -0
- package/lib/rest/numbers/v2/bulkHostedNumberOrder.js +64 -0
- package/lib/rest/numbers/v2/bundleClone.d.ts +20 -0
- package/lib/rest/numbers/v2/bundleClone.js +37 -0
- package/lib/rest/numbers/v2/hostedNumberOrder.d.ts +115 -0
- package/lib/rest/numbers/v2/hostedNumberOrder.js +212 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +70 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.js +78 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +78 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.js +95 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.d.ts +96 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/itemAssignment.js +129 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +10 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.js +29 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +131 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.js +208 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +131 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/endUser.js +172 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +70 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.js +77 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +88 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/regulation.js +89 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +131 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.js +172 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +70 -0
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.js +77 -0
- package/lib/rest/numbers/v3/hostedNumberOrder.d.ts +10 -0
- package/lib/rest/numbers/v3/hostedNumberOrder.js +63 -0
- package/lib/rest/oauth/v1/authorize.d.ts +18 -0
- package/lib/rest/oauth/v1/authorize.js +37 -0
- package/lib/rest/oauth/v1/token.d.ts +10 -0
- package/lib/rest/oauth/v1/token.js +44 -0
- package/lib/rest/oauth/v2/token.d.ts +18 -0
- package/lib/rest/oauth/v2/token.js +46 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +53 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.js +58 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +114 -0
- package/lib/rest/preview/hosted_numbers/authorizationDocument.js +176 -0
- package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +131 -0
- package/lib/rest/preview/hosted_numbers/hostedNumberOrder.js +226 -0
- package/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.d.ts +70 -0
- package/lib/rest/preview/marketplace/availableAddOn/availableAddOnExtension.js +77 -0
- package/lib/rest/preview/marketplace/availableAddOn.d.ts +70 -0
- package/lib/rest/preview/marketplace/availableAddOn.js +77 -0
- package/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.d.ts +89 -0
- package/lib/rest/preview/marketplace/installedAddOn/installedAddOnExtension.js +109 -0
- package/lib/rest/preview/marketplace/installedAddOn.d.ts +131 -0
- package/lib/rest/preview/marketplace/installedAddOn.js +175 -0
- package/lib/rest/preview/wireless/command.d.ts +79 -0
- package/lib/rest/preview/wireless/command.js +125 -0
- package/lib/rest/preview/wireless/ratePlan.d.ts +139 -0
- package/lib/rest/preview/wireless/ratePlan.js +185 -0
- package/lib/rest/preview/wireless/sim/usage.d.ts +36 -0
- package/lib/rest/preview/wireless/sim/usage.js +35 -0
- package/lib/rest/preview/wireless/sim.d.ts +105 -0
- package/lib/rest/preview/wireless/sim.js +151 -0
- package/lib/rest/previewIam/v1/authorize.d.ts +18 -0
- package/lib/rest/previewIam/v1/authorize.js +37 -0
- package/lib/rest/previewIam/v1/token.d.ts +10 -0
- package/lib/rest/previewIam/v1/token.js +44 -0
- package/lib/rest/previewIam/versionless/organization/account.d.ts +70 -0
- package/lib/rest/previewIam/versionless/organization/account.js +77 -0
- package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +80 -0
- package/lib/rest/previewIam/versionless/organization/roleAssignment.js +103 -0
- package/lib/rest/previewIam/versionless/organization/user.d.ts +118 -0
- package/lib/rest/previewIam/versionless/organization/user.js +159 -0
- package/lib/rest/pricing/v1/messaging/country.d.ts +70 -0
- package/lib/rest/pricing/v1/messaging/country.js +77 -0
- package/lib/rest/pricing/v1/phoneNumber/country.d.ts +70 -0
- package/lib/rest/pricing/v1/phoneNumber/country.js +77 -0
- package/lib/rest/pricing/v1/voice/country.d.ts +70 -0
- package/lib/rest/pricing/v1/voice/country.js +77 -0
- package/lib/rest/pricing/v1/voice/number.d.ts +18 -0
- package/lib/rest/pricing/v1/voice/number.js +29 -0
- package/lib/rest/pricing/v2/country.d.ts +70 -0
- package/lib/rest/pricing/v2/country.js +77 -0
- package/lib/rest/pricing/v2/number.d.ts +36 -0
- package/lib/rest/pricing/v2/number.js +33 -0
- package/lib/rest/pricing/v2/voice/country.d.ts +70 -0
- package/lib/rest/pricing/v2/voice/country.js +77 -0
- package/lib/rest/pricing/v2/voice/number.d.ts +36 -0
- package/lib/rest/pricing/v2/voice/number.js +33 -0
- package/lib/rest/proxy/v1/service/phoneNumber.d.ts +139 -0
- package/lib/rest/proxy/v1/service/phoneNumber.js +169 -0
- package/lib/rest/proxy/v1/service/session/interaction.d.ts +87 -0
- package/lib/rest/proxy/v1/service/session/interaction.js +101 -0
- package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +87 -0
- package/lib/rest/proxy/v1/service/session/participant/messageInteraction.js +109 -0
- package/lib/rest/proxy/v1/service/session/participant.d.ts +96 -0
- package/lib/rest/proxy/v1/service/session/participant.js +135 -0
- package/lib/rest/proxy/v1/service/session.d.ts +139 -0
- package/lib/rest/proxy/v1/service/session.js +179 -0
- package/lib/rest/proxy/v1/service.d.ts +131 -0
- package/lib/rest/proxy/v1/service.js +191 -0
- package/lib/rest/routes/v2/phoneNumber.d.ts +53 -0
- package/lib/rest/routes/v2/phoneNumber.js +65 -0
- package/lib/rest/routes/v2/sipDomain.d.ts +53 -0
- package/lib/rest/routes/v2/sipDomain.js +65 -0
- package/lib/rest/routes/v2/trunk.d.ts +53 -0
- package/lib/rest/routes/v2/trunk.js +65 -0
- package/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +70 -0
- package/lib/rest/serverless/v1/service/asset/assetVersion.js +77 -0
- package/lib/rest/serverless/v1/service/asset.d.ts +115 -0
- package/lib/rest/serverless/v1/service/asset.js +163 -0
- package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +18 -0
- package/lib/rest/serverless/v1/service/build/buildStatus.js +29 -0
- package/lib/rest/serverless/v1/service/build.d.ts +104 -0
- package/lib/rest/serverless/v1/service/build.js +137 -0
- package/lib/rest/serverless/v1/service/environment/deployment.d.ts +87 -0
- package/lib/rest/serverless/v1/service/environment/deployment.js +109 -0
- package/lib/rest/serverless/v1/service/environment/log.d.ts +70 -0
- package/lib/rest/serverless/v1/service/environment/log.js +83 -0
- package/lib/rest/serverless/v1/service/environment/variable.d.ts +131 -0
- package/lib/rest/serverless/v1/service/environment/variable.js +169 -0
- package/lib/rest/serverless/v1/service/environment.d.ts +96 -0
- package/lib/rest/serverless/v1/service/environment.js +131 -0
- package/lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.d.ts +18 -0
- package/lib/rest/serverless/v1/service/function/functionVersion/functionVersionContent.js +29 -0
- package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +70 -0
- package/lib/rest/serverless/v1/service/function/functionVersion.js +77 -0
- package/lib/rest/serverless/v1/service/function.d.ts +115 -0
- package/lib/rest/serverless/v1/service/function.js +163 -0
- package/lib/rest/serverless/v1/service.d.ts +131 -0
- package/lib/rest/serverless/v1/service.js +176 -0
- package/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +18 -0
- package/lib/rest/studio/v1/flow/engagement/engagementContext.js +29 -0
- package/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +18 -0
- package/lib/rest/studio/v1/flow/engagement/step/stepContext.js +29 -0
- package/lib/rest/studio/v1/flow/engagement/step.d.ts +70 -0
- package/lib/rest/studio/v1/flow/engagement/step.js +77 -0
- package/lib/rest/studio/v1/flow/engagement.d.ts +96 -0
- package/lib/rest/studio/v1/flow/engagement.js +135 -0
- package/lib/rest/studio/v1/flow/execution/executionContext.d.ts +18 -0
- package/lib/rest/studio/v1/flow/execution/executionContext.js +29 -0
- package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +18 -0
- package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.js +29 -0
- package/lib/rest/studio/v1/flow/execution/executionStep.d.ts +70 -0
- package/lib/rest/studio/v1/flow/execution/executionStep.js +77 -0
- package/lib/rest/studio/v1/flow/execution.d.ts +115 -0
- package/lib/rest/studio/v1/flow/execution.js +171 -0
- package/lib/rest/studio/v1/flow.d.ts +87 -0
- package/lib/rest/studio/v1/flow.js +101 -0
- package/lib/rest/studio/v2/flow/execution/executionContext.d.ts +18 -0
- package/lib/rest/studio/v2/flow/execution/executionContext.js +29 -0
- package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +18 -0
- package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.js +29 -0
- package/lib/rest/studio/v2/flow/execution/executionStep.d.ts +70 -0
- package/lib/rest/studio/v2/flow/execution/executionStep.js +77 -0
- package/lib/rest/studio/v2/flow/execution.d.ts +115 -0
- package/lib/rest/studio/v2/flow/execution.js +171 -0
- package/lib/rest/studio/v2/flow/flowRevision.d.ts +70 -0
- package/lib/rest/studio/v2/flow/flowRevision.js +77 -0
- package/lib/rest/studio/v2/flow/flowTestUser.d.ts +37 -0
- package/lib/rest/studio/v2/flow/flowTestUser.js +61 -0
- package/lib/rest/studio/v2/flow.d.ts +115 -0
- package/lib/rest/studio/v2/flow.js +178 -0
- package/lib/rest/studio/v2/flowValidate.d.ts +10 -0
- package/lib/rest/studio/v2/flowValidate.js +39 -0
- package/lib/rest/supersim/v1/esimProfile.d.ts +87 -0
- package/lib/rest/supersim/v1/esimProfile.js +119 -0
- package/lib/rest/supersim/v1/fleet.d.ts +114 -0
- package/lib/rest/supersim/v1/fleet.js +170 -0
- package/lib/rest/supersim/v1/ipCommand.d.ts +79 -0
- package/lib/rest/supersim/v1/ipCommand.js +127 -0
- package/lib/rest/supersim/v1/network.d.ts +70 -0
- package/lib/rest/supersim/v1/network.js +83 -0
- package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +96 -0
- package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.js +129 -0
- package/lib/rest/supersim/v1/networkAccessProfile.d.ts +122 -0
- package/lib/rest/supersim/v1/networkAccessProfile.js +143 -0
- package/lib/rest/supersim/v1/settingsUpdate.d.ts +53 -0
- package/lib/rest/supersim/v1/settingsUpdate.js +52 -0
- package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +53 -0
- package/lib/rest/supersim/v1/sim/billingPeriod.js +48 -0
- package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +53 -0
- package/lib/rest/supersim/v1/sim/simIpAddress.js +48 -0
- package/lib/rest/supersim/v1/sim.d.ts +114 -0
- package/lib/rest/supersim/v1/sim.js +160 -0
- package/lib/rest/supersim/v1/smsCommand.d.ts +79 -0
- package/lib/rest/supersim/v1/smsCommand.js +119 -0
- package/lib/rest/supersim/v1/usageRecord.d.ts +53 -0
- package/lib/rest/supersim/v1/usageRecord.js +64 -0
- package/lib/rest/sync/v1/service/document/documentPermission.d.ts +106 -0
- package/lib/rest/sync/v1/service/document/documentPermission.js +141 -0
- package/lib/rest/sync/v1/service/document.d.ts +139 -0
- package/lib/rest/sync/v1/service/document.js +173 -0
- package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +149 -0
- package/lib/rest/sync/v1/service/syncList/syncListItem.js +191 -0
- package/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts +106 -0
- package/lib/rest/sync/v1/service/syncList/syncListPermission.js +141 -0
- package/lib/rest/sync/v1/service/syncList.d.ts +139 -0
- package/lib/rest/sync/v1/service/syncList.js +171 -0
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +149 -0
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.js +195 -0
- package/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts +106 -0
- package/lib/rest/sync/v1/service/syncMap/syncMapPermission.js +141 -0
- package/lib/rest/sync/v1/service/syncMap.d.ts +139 -0
- package/lib/rest/sync/v1/service/syncMap.js +171 -0
- package/lib/rest/sync/v1/service/syncStream/streamMessage.d.ts +10 -0
- package/lib/rest/sync/v1/service/syncStream/streamMessage.js +28 -0
- package/lib/rest/sync/v1/service/syncStream.d.ts +139 -0
- package/lib/rest/sync/v1/service/syncStream.js +167 -0
- package/lib/rest/sync/v1/service.d.ts +139 -0
- package/lib/rest/sync/v1/service.js +191 -0
- package/lib/rest/taskrouter/v1/workspace/activity.d.ts +131 -0
- package/lib/rest/taskrouter/v1/workspace/activity.js +170 -0
- package/lib/rest/taskrouter/v1/workspace/event.d.ts +70 -0
- package/lib/rest/taskrouter/v1/workspace/event.js +99 -0
- package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +105 -0
- package/lib/rest/taskrouter/v1/workspace/task/reservation.js +227 -0
- package/lib/rest/taskrouter/v1/workspace/task.d.ts +157 -0
- package/lib/rest/taskrouter/v1/workspace/task.js +221 -0
- package/lib/rest/taskrouter/v1/workspace/taskChannel.d.ts +131 -0
- package/lib/rest/taskrouter/v1/workspace/taskChannel.js +172 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +19 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.js +31 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +36 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.js +41 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +36 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.js +33 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +36 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.js +41 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +53 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.js +60 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +131 -0
- package/lib/rest/taskrouter/v1/workspace/taskQueue.js +192 -0
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +105 -0
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.js +221 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workerChannel.d.ts +105 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workerChannel.js +113 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +36 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.js +39 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +36 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.js +39 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +36 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.js +33 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +36 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.js +45 -0
- package/lib/rest/taskrouter/v1/workspace/worker.d.ts +149 -0
- package/lib/rest/taskrouter/v1/workspace/worker.js +200 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +36 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.js +41 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +36 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.js +33 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +36 -0
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.js +41 -0
- package/lib/rest/taskrouter/v1/workspace/workflow.d.ts +131 -0
- package/lib/rest/taskrouter/v1/workspace/workflow.js +189 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +36 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.js +41 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +36 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.js +33 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +36 -0
- package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.js +41 -0
- package/lib/rest/taskrouter/v1/workspace.d.ts +131 -0
- package/lib/rest/taskrouter/v1/workspace.js +188 -0
- package/lib/rest/trunking/v1/trunk/credentialList.d.ts +96 -0
- package/lib/rest/trunking/v1/trunk/credentialList.js +130 -0
- package/lib/rest/trunking/v1/trunk/ipAccessControlList.d.ts +96 -0
- package/lib/rest/trunking/v1/trunk/ipAccessControlList.js +130 -0
- package/lib/rest/trunking/v1/trunk/originationUrl.d.ts +131 -0
- package/lib/rest/trunking/v1/trunk/originationUrl.js +188 -0
- package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +96 -0
- package/lib/rest/trunking/v1/trunk/phoneNumber.js +130 -0
- package/lib/rest/trunking/v1/trunk/recording.d.ts +53 -0
- package/lib/rest/trunking/v1/trunk/recording.js +65 -0
- package/lib/rest/trunking/v1/trunk.d.ts +139 -0
- package/lib/rest/trunking/v1/trunk.js +193 -0
- package/lib/rest/trusthub/v1/complianceInquiries.d.ts +37 -0
- package/lib/rest/trusthub/v1/complianceInquiries.js +69 -0
- package/lib/rest/trusthub/v1/complianceRegistrationInquiries.d.ts +45 -0
- package/lib/rest/trusthub/v1/complianceRegistrationInquiries.js +153 -0
- package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +14 -0
- package/lib/rest/trusthub/v1/complianceTollfreeInquiries.js +113 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.d.ts +96 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesChannelEndpointAssignment.js +130 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.d.ts +96 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEntityAssignments.js +131 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +79 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.js +105 -0
- package/lib/rest/trusthub/v1/customerProfiles.d.ts +131 -0
- package/lib/rest/trusthub/v1/customerProfiles.js +186 -0
- package/lib/rest/trusthub/v1/endUser.d.ts +131 -0
- package/lib/rest/trusthub/v1/endUser.js +172 -0
- package/lib/rest/trusthub/v1/endUserType.d.ts +70 -0
- package/lib/rest/trusthub/v1/endUserType.js +77 -0
- package/lib/rest/trusthub/v1/policies.d.ts +70 -0
- package/lib/rest/trusthub/v1/policies.js +77 -0
- package/lib/rest/trusthub/v1/supportingDocument.d.ts +131 -0
- package/lib/rest/trusthub/v1/supportingDocument.js +172 -0
- package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +70 -0
- package/lib/rest/trusthub/v1/supportingDocumentType.js +77 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.d.ts +96 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsChannelEndpointAssignment.js +139 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.d.ts +96 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEntityAssignments.js +131 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +79 -0
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.js +105 -0
- package/lib/rest/trusthub/v1/trustProducts.d.ts +131 -0
- package/lib/rest/trusthub/v1/trustProducts.js +186 -0
- package/lib/rest/verify/v2/form.d.ts +18 -0
- package/lib/rest/verify/v2/form.js +29 -0
- package/lib/rest/verify/v2/safelist.d.ts +44 -0
- package/lib/rest/verify/v2/safelist.js +81 -0
- package/lib/rest/verify/v2/service/accessToken.d.ts +27 -0
- package/lib/rest/verify/v2/service/accessToken.js +65 -0
- package/lib/rest/verify/v2/service/approveChallenge.d.ts +11 -0
- package/lib/rest/verify/v2/service/approveChallenge.js +27 -0
- package/lib/rest/verify/v2/service/entity/challenge/notification.d.ts +18 -0
- package/lib/rest/verify/v2/service/entity/challenge/notification.js +30 -0
- package/lib/rest/verify/v2/service/entity/challenge.d.ts +114 -0
- package/lib/rest/verify/v2/service/entity/challenge.js +157 -0
- package/lib/rest/verify/v2/service/entity/factor.d.ts +122 -0
- package/lib/rest/verify/v2/service/entity/factor.js +152 -0
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +10 -0
- package/lib/rest/verify/v2/service/entity/newFactor.js +58 -0
- package/lib/rest/verify/v2/service/entity.d.ts +96 -0
- package/lib/rest/verify/v2/service/entity.js +129 -0
- package/lib/rest/verify/v2/service/messagingConfiguration.d.ts +115 -0
- package/lib/rest/verify/v2/service/messagingConfiguration.js +167 -0
- package/lib/rest/verify/v2/service/newChallenge.d.ts +22 -0
- package/lib/rest/verify/v2/service/newChallenge.js +31 -0
- package/lib/rest/verify/v2/service/newFactor.d.ts +11 -0
- package/lib/rest/verify/v2/service/newFactor.js +27 -0
- package/lib/rest/verify/v2/service/newVerifyFactor.d.ts +11 -0
- package/lib/rest/verify/v2/service/newVerifyFactor.js +27 -0
- package/lib/rest/verify/v2/service/rateLimit/bucket.d.ts +131 -0
- package/lib/rest/verify/v2/service/rateLimit/bucket.js +169 -0
- package/lib/rest/verify/v2/service/rateLimit.d.ts +131 -0
- package/lib/rest/verify/v2/service/rateLimit.js +165 -0
- package/lib/rest/verify/v2/service/verification.d.ts +46 -0
- package/lib/rest/verify/v2/service/verification.js +126 -0
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +18 -0
- package/lib/rest/verify/v2/service/verificationCheck.js +40 -0
- package/lib/rest/verify/v2/service/webhook.d.ts +131 -0
- package/lib/rest/verify/v2/service/webhook.js +184 -0
- package/lib/rest/verify/v2/service.d.ts +131 -0
- package/lib/rest/verify/v2/service.js +270 -0
- package/lib/rest/verify/v2/template.d.ts +53 -0
- package/lib/rest/verify/v2/template.js +50 -0
- package/lib/rest/verify/v2/verificationAttempt.d.ts +70 -0
- package/lib/rest/verify/v2/verificationAttempt.js +93 -0
- package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +36 -0
- package/lib/rest/verify/v2/verificationAttemptsSummary.js +43 -0
- package/lib/rest/video/v1/composition.d.ts +96 -0
- package/lib/rest/video/v1/composition.js +153 -0
- package/lib/rest/video/v1/compositionHook.d.ts +115 -0
- package/lib/rest/video/v1/compositionHook.js +207 -0
- package/lib/rest/video/v1/compositionSettings.d.ts +37 -0
- package/lib/rest/video/v1/compositionSettings.js +72 -0
- package/lib/rest/video/v1/recording.d.ts +87 -0
- package/lib/rest/video/v1/recording.js +113 -0
- package/lib/rest/video/v1/recordingSettings.d.ts +37 -0
- package/lib/rest/video/v1/recordingSettings.js +72 -0
- package/lib/rest/video/v1/room/participant/anonymize.d.ts +18 -0
- package/lib/rest/video/v1/room/participant/anonymize.js +29 -0
- package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +70 -0
- package/lib/rest/video/v1/room/participant/publishedTrack.js +77 -0
- package/lib/rest/video/v1/room/participant/subscribeRules.d.ts +26 -0
- package/lib/rest/video/v1/room/participant/subscribeRules.js +48 -0
- package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +70 -0
- package/lib/rest/video/v1/room/participant/subscribedTrack.js +77 -0
- package/lib/rest/video/v1/room/participant.d.ts +105 -0
- package/lib/rest/video/v1/room/participant.js +119 -0
- package/lib/rest/video/v1/room/recordingRules.d.ts +26 -0
- package/lib/rest/video/v1/room/recordingRules.js +48 -0
- package/lib/rest/video/v1/room/roomRecording.d.ts +87 -0
- package/lib/rest/video/v1/room/roomRecording.js +109 -0
- package/lib/rest/video/v1/room/transcriptions.d.ts +128 -0
- package/lib/rest/video/v1/room/transcriptions.js +143 -0
- package/lib/rest/video/v1/room.d.ts +106 -0
- package/lib/rest/video/v1/room.js +179 -0
- package/lib/rest/voice/v1/archivedCall.d.ts +10 -0
- package/lib/rest/voice/v1/archivedCall.js +14 -0
- package/lib/rest/voice/v1/byocTrunk.d.ts +139 -0
- package/lib/rest/voice/v1/byocTrunk.js +201 -0
- package/lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.d.ts +131 -0
- package/lib/rest/voice/v1/connectionPolicy/connectionPolicyTarget.js +179 -0
- package/lib/rest/voice/v1/connectionPolicy.d.ts +139 -0
- package/lib/rest/voice/v1/connectionPolicy.js +165 -0
- package/lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.d.ts +10 -0
- package/lib/rest/voice/v1/dialingPermissions/bulkCountryUpdate.js +29 -0
- package/lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.d.ts +53 -0
- package/lib/rest/voice/v1/dialingPermissions/country/highriskSpecialPrefix.js +48 -0
- package/lib/rest/voice/v1/dialingPermissions/country.d.ts +70 -0
- package/lib/rest/voice/v1/dialingPermissions/country.js +89 -0
- package/lib/rest/voice/v1/dialingPermissions/settings.d.ts +53 -0
- package/lib/rest/voice/v1/dialingPermissions/settings.js +63 -0
- package/lib/rest/voice/v1/ipRecord.d.ts +131 -0
- package/lib/rest/voice/v1/ipRecord.js +167 -0
- package/lib/rest/voice/v1/sourceIpMapping.d.ts +115 -0
- package/lib/rest/voice/v1/sourceIpMapping.js +167 -0
- package/lib/rest/wireless/v1/command.d.ts +96 -0
- package/lib/rest/wireless/v1/command.js +149 -0
- package/lib/rest/wireless/v1/ratePlan.d.ts +139 -0
- package/lib/rest/wireless/v1/ratePlan.js +190 -0
- package/lib/rest/wireless/v1/sim/dataSession.d.ts +53 -0
- package/lib/rest/wireless/v1/sim/dataSession.js +48 -0
- package/lib/rest/wireless/v1/sim/usageRecord.d.ts +53 -0
- package/lib/rest/wireless/v1/sim/usageRecord.js +54 -0
- package/lib/rest/wireless/v1/sim.d.ts +122 -0
- package/lib/rest/wireless/v1/sim.js +179 -0
- package/lib/rest/wireless/v1/usageRecord.d.ts +53 -0
- package/lib/rest/wireless/v1/usageRecord.js +54 -0
- package/lib/twiml/VoiceResponse.d.ts +69 -2
- package/lib/twiml/VoiceResponse.js +58 -0
- 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,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
|
+
}
|
package/lib/base/Version.d.ts
CHANGED
|
@@ -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
|
}
|