twilio 4.7.2 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/base/BaseTwilio.d.ts +1 -0
- package/lib/index.d.ts +52 -36
- package/lib/index.js +32 -51
- package/lib/jwt/AccessToken.d.ts +168 -173
- package/lib/jwt/AccessToken.js +180 -185
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +17 -22
- package/lib/rest/api/v2010/account/application.d.ts +15 -20
- package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/feedback.d.ts +5 -5
- package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +4 -4
- package/lib/rest/api/v2010/account/call/notification.d.ts +3 -4
- package/lib/rest/api/v2010/account/call/payment.d.ts +10 -10
- package/lib/rest/api/v2010/account/call/recording.d.ts +9 -9
- package/lib/rest/api/v2010/account/call/siprec.d.ts +3 -3
- package/lib/rest/api/v2010/account/call/stream.d.ts +3 -3
- package/lib/rest/api/v2010/account/call.d.ts +2 -2
- package/lib/rest/api/v2010/account/conference/participant.d.ts +1 -1
- package/lib/rest/api/v2010/account/conference/recording.d.ts +9 -9
- package/lib/rest/api/v2010/account/conference.d.ts +4 -4
- package/lib/rest/api/v2010/account/connectApp.d.ts +4 -5
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +33 -38
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +33 -38
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +33 -38
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +19 -24
- package/lib/rest/api/v2010/account/message/feedback.d.ts +5 -5
- package/lib/rest/api/v2010/account/message.d.ts +6 -6
- package/lib/rest/api/v2010/account/notification.d.ts +3 -4
- package/lib/rest/api/v2010/account/queue.d.ts +3 -3
- package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +4 -4
- package/lib/rest/api/v2010/account/recording/transcription.d.ts +4 -4
- package/lib/rest/api/v2010/account/recording.d.ts +2 -2
- package/lib/rest/api/v2010/account/shortCode.d.ts +6 -8
- package/lib/rest/api/v2010/account/sip/domain.d.ts +9 -12
- package/lib/rest/api/v2010/account/transcription.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/record.d.ts +7 -7
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +27 -28
- package/lib/rest/api/v2010/account/usage.d.ts +1 -0
- package/lib/rest/api/v2010/account.d.ts +2 -2
- package/lib/rest/autopilot/v1/assistant/modelBuild.d.ts +1 -1
- package/lib/rest/chat/v1/credential.d.ts +1 -1
- package/lib/rest/chat/v1/service/channel/message.d.ts +1 -1
- package/lib/rest/chat/v1/service/channel.d.ts +1 -1
- package/lib/rest/chat/v1/service/role.d.ts +1 -1
- package/lib/rest/chat/v1/service/user/userChannel.d.ts +1 -1
- package/lib/rest/chat/v2/credential.d.ts +1 -1
- package/lib/rest/chat/v2/service/binding.d.ts +1 -1
- package/lib/rest/chat/v2/service/channel/member.d.ts +1 -1
- package/lib/rest/chat/v2/service/channel/message.d.ts +2 -2
- package/lib/rest/chat/v2/service/channel/webhook.d.ts +5 -5
- package/lib/rest/chat/v2/service/channel.d.ts +2 -2
- package/lib/rest/chat/v2/service/role.d.ts +1 -1
- package/lib/rest/chat/v2/service/user/userBinding.d.ts +1 -1
- package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -3
- package/lib/rest/chat/v2/service/user.d.ts +1 -1
- package/lib/rest/chat/v3/channel.d.ts +2 -2
- package/lib/rest/content/V1.d.ts +5 -0
- package/lib/rest/content/V1.js +7 -0
- package/lib/rest/content/v1/contentAndApprovals.d.ts +190 -0
- package/lib/rest/content/v1/contentAndApprovals.js +134 -0
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +8 -8
- package/lib/rest/conversations/v1/configuration/webhook.d.ts +9 -9
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +4 -4
- package/lib/rest/conversations/v1/conversation/message.d.ts +8 -8
- package/lib/rest/conversations/v1/conversation/participant.d.ts +4 -4
- package/lib/rest/conversations/v1/conversation/webhook.d.ts +5 -5
- package/lib/rest/conversations/v1/conversation.d.ts +2 -2
- package/lib/rest/conversations/v1/credential.d.ts +1 -1
- package/lib/rest/conversations/v1/participantConversation.d.ts +1 -1
- package/lib/rest/conversations/v1/role.d.ts +1 -1
- package/lib/rest/conversations/v1/service/binding.d.ts +7 -7
- package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +4 -4
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +4 -4
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +8 -8
- package/lib/rest/conversations/v1/service/conversation/participant.d.ts +4 -4
- package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +5 -5
- package/lib/rest/conversations/v1/service/conversation.d.ts +10 -10
- package/lib/rest/conversations/v1/service/participantConversation.d.ts +4 -4
- package/lib/rest/conversations/v1/service/role.d.ts +5 -5
- package/lib/rest/conversations/v1/service/user/userConversation.d.ts +9 -9
- package/lib/rest/conversations/v1/service/user.d.ts +4 -4
- package/lib/rest/conversations/v1/user/userConversation.d.ts +2 -2
- package/lib/rest/conversations/v1/user.d.ts +1 -1
- package/lib/rest/events/v1/sink.d.ts +2 -2
- package/lib/rest/flexApi/V1.d.ts +5 -0
- package/lib/rest/flexApi/V1.js +7 -0
- package/lib/rest/flexApi/v1/assessments.d.ts +255 -10
- package/lib/rest/flexApi/v1/assessments.js +208 -23
- package/lib/rest/flexApi/v1/configuration.d.ts +1 -1
- package/lib/rest/flexApi/v1/flexFlow.d.ts +2 -2
- package/lib/rest/flexApi/v1/insightsConversations.d.ts +172 -0
- package/lib/rest/flexApi/v1/insightsConversations.js +128 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +8 -2
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +4 -4
- package/lib/rest/flexApi/v1/insightsSegments.d.ts +121 -4
- package/lib/rest/flexApi/v1/insightsSegments.js +71 -2
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +2 -2
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +3 -3
- package/lib/rest/flexApi/v1/webChannel.d.ts +1 -1
- package/lib/rest/frontlineApi/v1/user.d.ts +1 -1
- package/lib/rest/insights/v1/call/annotation.d.ts +2 -2
- package/lib/rest/insights/v1/call/callSummary.d.ts +17 -17
- package/lib/rest/insights/v1/call/event.d.ts +2 -2
- package/lib/rest/insights/v1/call/metric.d.ts +2 -2
- package/lib/rest/insights/v1/callSummaries.d.ts +6 -6
- package/lib/rest/insights/v1/conference/conferenceParticipant.d.ts +6 -6
- package/lib/rest/insights/v1/conference.d.ts +5 -5
- package/lib/rest/insights/v1/room/participant.d.ts +16 -16
- package/lib/rest/insights/v1/room.d.ts +41 -42
- package/lib/rest/ipMessaging/v1/credential.d.ts +1 -1
- package/lib/rest/ipMessaging/v1/service/channel/message.d.ts +1 -1
- package/lib/rest/ipMessaging/v1/service/channel.d.ts +1 -1
- package/lib/rest/ipMessaging/v1/service/role.d.ts +1 -1
- package/lib/rest/ipMessaging/v1/service/user/userChannel.d.ts +1 -1
- package/lib/rest/ipMessaging/v2/credential.d.ts +1 -1
- package/lib/rest/ipMessaging/v2/service/binding.d.ts +1 -1
- package/lib/rest/ipMessaging/v2/service/channel/member.d.ts +1 -1
- package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +2 -2
- package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +5 -5
- package/lib/rest/ipMessaging/v2/service/channel.d.ts +2 -2
- package/lib/rest/ipMessaging/v2/service/role.d.ts +1 -1
- package/lib/rest/ipMessaging/v2/service/user/userBinding.d.ts +1 -1
- package/lib/rest/ipMessaging/v2/service/user/userChannel.d.ts +2 -2
- package/lib/rest/ipMessaging/v2/service/user.d.ts +1 -1
- package/lib/rest/lookups/v2/phoneNumber.d.ts +1 -1
- package/lib/rest/media/v1/mediaProcessor.d.ts +6 -7
- package/lib/rest/media/v1/mediaRecording.d.ts +6 -7
- package/lib/rest/media/v1/playerStreamer.d.ts +7 -8
- package/lib/rest/messaging/V1.d.ts +10 -0
- package/lib/rest/messaging/V1.js +16 -0
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +1 -1
- package/lib/rest/messaging/v1/brandRegistration.d.ts +12 -12
- package/lib/rest/messaging/v1/domainCerts.d.ts +4 -4
- package/lib/rest/messaging/v1/domainCerts.js +2 -2
- package/lib/rest/messaging/v1/domainConfigMessagingService.d.ts +121 -0
- package/lib/rest/messaging/v1/domainConfigMessagingService.js +122 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingService.d.ts +109 -0
- package/lib/rest/messaging/v1/linkshorteningMessagingService.js +135 -0
- package/lib/rest/messaging/v1/service.d.ts +7 -9
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +2 -2
- package/lib/rest/microvisor/v1/accountConfig.d.ts +27 -1
- package/lib/rest/microvisor/v1/accountConfig.js +25 -0
- package/lib/rest/microvisor/v1/accountSecret.d.ts +26 -0
- package/lib/rest/microvisor/v1/accountSecret.js +25 -0
- package/lib/rest/microvisor/v1/app/appManifest.d.ts +101 -0
- package/lib/rest/microvisor/v1/app/appManifest.js +115 -0
- package/lib/rest/microvisor/v1/app.d.ts +11 -0
- package/lib/rest/microvisor/v1/app.js +15 -0
- package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +26 -0
- package/lib/rest/microvisor/v1/device/deviceConfig.js +25 -0
- package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +26 -0
- package/lib/rest/microvisor/v1/device/deviceSecret.js +25 -0
- package/lib/rest/monitor/v1/alert.d.ts +3 -4
- package/lib/rest/notify/v1/credential.d.ts +1 -1
- package/lib/rest/notify/v1/service/binding.d.ts +1 -1
- package/lib/rest/notify/v1/service/notification.d.ts +1 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/bundleCopy.d.ts +1 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +1 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/replaceItems.d.ts +1 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +4 -4
- package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +1 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +1 -1
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +1 -1
- package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +2 -2
- package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +1 -1
- package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +2 -2
- package/lib/rest/preview/sync/service/syncList/syncListItem.d.ts +2 -2
- package/lib/rest/preview/sync/service/syncMap/syncMapItem.d.ts +2 -2
- package/lib/rest/preview/understand/assistant/modelBuild.d.ts +1 -1
- package/lib/rest/preview/wireless/sim.d.ts +12 -16
- package/lib/rest/proxy/v1/service/session/interaction.d.ts +2 -2
- package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +2 -2
- package/lib/rest/proxy/v1/service/session.d.ts +2 -2
- package/lib/rest/proxy/v1/service.d.ts +2 -2
- package/lib/rest/serverless/v1/service/asset/assetVersion.d.ts +1 -1
- package/lib/rest/serverless/v1/service/build/buildStatus.d.ts +1 -1
- package/lib/rest/serverless/v1/service/build.d.ts +2 -2
- package/lib/rest/serverless/v1/service/environment/log.d.ts +1 -1
- package/lib/rest/serverless/v1/service/function/functionVersion.d.ts +1 -1
- package/lib/rest/studio/v1/flow/engagement.d.ts +1 -1
- package/lib/rest/studio/v1/flow/execution.d.ts +1 -1
- package/lib/rest/studio/v1/flow.d.ts +1 -1
- package/lib/rest/studio/v2/flow/execution.d.ts +1 -1
- package/lib/rest/studio/v2/flow/flowRevision.d.ts +1 -1
- package/lib/rest/studio/v2/flow.d.ts +1 -1
- package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
- package/lib/rest/supersim/v1/esimProfile.d.ts +15 -1
- package/lib/rest/supersim/v1/esimProfile.js +6 -0
- package/lib/rest/supersim/v1/fleet.d.ts +7 -9
- package/lib/rest/supersim/v1/ipCommand.d.ts +3 -3
- package/lib/rest/supersim/v1/settingsUpdate.d.ts +1 -1
- package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +1 -1
- package/lib/rest/supersim/v1/sim/simIpAddress.d.ts +1 -1
- package/lib/rest/supersim/v1/sim.d.ts +2 -2
- package/lib/rest/supersim/v1/smsCommand.d.ts +2 -2
- package/lib/rest/supersim/v1/usageRecord.d.ts +2 -2
- package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +2 -2
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +2 -2
- package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +14 -14
- package/lib/rest/taskrouter/v1/workspace/task.d.ts +1 -1
- package/lib/rest/taskrouter/v1/workspace/taskQueue.d.ts +1 -1
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +12 -12
- package/lib/rest/taskrouter/v1/workspace.d.ts +1 -1
- package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +16 -21
- package/lib/rest/trunking/v1/trunk/recording.d.ts +2 -2
- package/lib/rest/trunking/v1/trunk.d.ts +5 -6
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +4 -4
- package/lib/rest/trusthub/v1/customerProfiles.d.ts +8 -8
- package/lib/rest/trusthub/v1/supportingDocument.d.ts +1 -1
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +4 -4
- package/lib/rest/trusthub/v1/trustProducts.d.ts +8 -8
- package/lib/rest/verify/v2/form.d.ts +1 -1
- package/lib/rest/verify/v2/service/accessToken.d.ts +1 -1
- package/lib/rest/verify/v2/service/entity/challenge.d.ts +4 -4
- package/lib/rest/verify/v2/service/entity/factor.d.ts +3 -3
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +4 -4
- package/lib/rest/verify/v2/service/verification.d.ts +3 -3
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +1 -1
- package/lib/rest/verify/v2/service/webhook.d.ts +3 -3
- package/lib/rest/verify/v2/verificationAttempt.d.ts +2 -2
- package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +1 -1
- package/lib/rest/video/v1/composition.d.ts +5 -6
- package/lib/rest/video/v1/compositionHook.d.ts +4 -5
- package/lib/rest/video/v1/recording.d.ts +7 -8
- package/lib/rest/video/v1/room/participant/anonymize.d.ts +4 -4
- package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +4 -4
- package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +4 -4
- package/lib/rest/video/v1/room/participant.d.ts +8 -8
- package/lib/rest/video/v1/room/roomRecording.d.ts +4 -4
- package/lib/rest/video/v1/room.d.ts +6 -7
- package/lib/rest/voice/v1/byocTrunk.d.ts +9 -12
- package/lib/rest/wireless/v1/command.d.ts +4 -4
- package/lib/rest/wireless/v1/sim/usageRecord.d.ts +1 -1
- package/lib/rest/wireless/v1/sim.d.ts +17 -22
- package/lib/rest/wireless/v1/usageRecord.d.ts +4 -4
- package/package.json +2 -5
|
@@ -4,10 +4,10 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2010 from "../../../V2010";
|
|
6
6
|
import { PhoneNumberCapabilities } from "../../../../../interfaces";
|
|
7
|
-
type
|
|
8
|
-
type
|
|
9
|
-
type
|
|
10
|
-
type
|
|
7
|
+
export type MobileAddressRequirement = "none" | "any" | "local" | "foreign";
|
|
8
|
+
export type MobileEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
|
|
9
|
+
export type MobileEmergencyStatus = "Active" | "Inactive";
|
|
10
|
+
export type MobileVoiceReceiveMode = "voice" | "fax";
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to create a MobileInstance
|
|
13
13
|
*/
|
|
@@ -49,13 +49,13 @@ export interface MobileListInstanceCreateOptions {
|
|
|
49
49
|
/** The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. */
|
|
50
50
|
addressSid?: string;
|
|
51
51
|
/** */
|
|
52
|
-
emergencyStatus?:
|
|
52
|
+
emergencyStatus?: MobileEmergencyStatus;
|
|
53
53
|
/** The SID of the emergency address configuration to use for emergency calling from the new phone number. */
|
|
54
54
|
emergencyAddressSid?: string;
|
|
55
55
|
/** The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. */
|
|
56
56
|
trunkSid?: string;
|
|
57
57
|
/** */
|
|
58
|
-
voiceReceiveMode?:
|
|
58
|
+
voiceReceiveMode?: MobileVoiceReceiveMode;
|
|
59
59
|
/** The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. */
|
|
60
60
|
bundleSid?: string;
|
|
61
61
|
}
|
|
@@ -189,18 +189,13 @@ export interface MobileListInstance {
|
|
|
189
189
|
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
190
190
|
}
|
|
191
191
|
export declare function MobileListInstance(version: V2010, accountSid: string): MobileListInstance;
|
|
192
|
-
export type MobileSmsFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
193
|
-
export type MobileSmsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
194
|
-
export type MobileStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
195
|
-
export type MobileVoiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
196
|
-
export type MobileVoiceMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
197
192
|
interface MobilePayload extends TwilioResponsePayload {
|
|
198
193
|
incoming_phone_numbers: MobileResource[];
|
|
199
194
|
}
|
|
200
195
|
interface MobileResource {
|
|
201
196
|
account_sid: string;
|
|
202
197
|
address_sid: string;
|
|
203
|
-
address_requirements:
|
|
198
|
+
address_requirements: MobileAddressRequirement;
|
|
204
199
|
api_version: string;
|
|
205
200
|
beta: boolean;
|
|
206
201
|
capabilities: PhoneNumberCapabilities;
|
|
@@ -212,24 +207,24 @@ interface MobileResource {
|
|
|
212
207
|
origin: string;
|
|
213
208
|
sid: string;
|
|
214
209
|
sms_application_sid: string;
|
|
215
|
-
sms_fallback_method:
|
|
210
|
+
sms_fallback_method: string;
|
|
216
211
|
sms_fallback_url: string;
|
|
217
|
-
sms_method:
|
|
212
|
+
sms_method: string;
|
|
218
213
|
sms_url: string;
|
|
219
214
|
status_callback: string;
|
|
220
|
-
status_callback_method:
|
|
215
|
+
status_callback_method: string;
|
|
221
216
|
trunk_sid: string;
|
|
222
217
|
uri: string;
|
|
223
|
-
voice_receive_mode:
|
|
218
|
+
voice_receive_mode: MobileVoiceReceiveMode;
|
|
224
219
|
voice_application_sid: string;
|
|
225
220
|
voice_caller_id_lookup: boolean;
|
|
226
|
-
voice_fallback_method:
|
|
221
|
+
voice_fallback_method: string;
|
|
227
222
|
voice_fallback_url: string;
|
|
228
|
-
voice_method:
|
|
223
|
+
voice_method: string;
|
|
229
224
|
voice_url: string;
|
|
230
|
-
emergency_status:
|
|
225
|
+
emergency_status: MobileEmergencyStatus;
|
|
231
226
|
emergency_address_sid: string;
|
|
232
|
-
emergency_address_status:
|
|
227
|
+
emergency_address_status: MobileEmergencyAddressStatus;
|
|
233
228
|
bundle_sid: string;
|
|
234
229
|
status: string;
|
|
235
230
|
}
|
|
@@ -244,7 +239,7 @@ export declare class MobileInstance {
|
|
|
244
239
|
* The SID of the Address resource associated with the phone number.
|
|
245
240
|
*/
|
|
246
241
|
addressSid: string;
|
|
247
|
-
addressRequirements:
|
|
242
|
+
addressRequirements: MobileAddressRequirement;
|
|
248
243
|
/**
|
|
249
244
|
* The API version used to start a new TwiML session.
|
|
250
245
|
*/
|
|
@@ -289,7 +284,7 @@ export declare class MobileInstance {
|
|
|
289
284
|
/**
|
|
290
285
|
* The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`.
|
|
291
286
|
*/
|
|
292
|
-
smsFallbackMethod:
|
|
287
|
+
smsFallbackMethod: string;
|
|
293
288
|
/**
|
|
294
289
|
* The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`.
|
|
295
290
|
*/
|
|
@@ -297,7 +292,7 @@ export declare class MobileInstance {
|
|
|
297
292
|
/**
|
|
298
293
|
* The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`.
|
|
299
294
|
*/
|
|
300
|
-
smsMethod:
|
|
295
|
+
smsMethod: string;
|
|
301
296
|
/**
|
|
302
297
|
* The URL we call when the phone number receives an incoming SMS message.
|
|
303
298
|
*/
|
|
@@ -309,7 +304,7 @@ export declare class MobileInstance {
|
|
|
309
304
|
/**
|
|
310
305
|
* The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`.
|
|
311
306
|
*/
|
|
312
|
-
statusCallbackMethod:
|
|
307
|
+
statusCallbackMethod: string;
|
|
313
308
|
/**
|
|
314
309
|
* The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa.
|
|
315
310
|
*/
|
|
@@ -318,7 +313,7 @@ export declare class MobileInstance {
|
|
|
318
313
|
* The URI of the resource, relative to `https://api.twilio.com`.
|
|
319
314
|
*/
|
|
320
315
|
uri: string;
|
|
321
|
-
voiceReceiveMode:
|
|
316
|
+
voiceReceiveMode: MobileVoiceReceiveMode;
|
|
322
317
|
/**
|
|
323
318
|
* The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa.
|
|
324
319
|
*/
|
|
@@ -330,7 +325,7 @@ export declare class MobileInstance {
|
|
|
330
325
|
/**
|
|
331
326
|
* The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`.
|
|
332
327
|
*/
|
|
333
|
-
voiceFallbackMethod:
|
|
328
|
+
voiceFallbackMethod: string;
|
|
334
329
|
/**
|
|
335
330
|
* The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`.
|
|
336
331
|
*/
|
|
@@ -338,17 +333,17 @@ export declare class MobileInstance {
|
|
|
338
333
|
/**
|
|
339
334
|
* The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`.
|
|
340
335
|
*/
|
|
341
|
-
voiceMethod:
|
|
336
|
+
voiceMethod: string;
|
|
342
337
|
/**
|
|
343
338
|
* The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set.
|
|
344
339
|
*/
|
|
345
340
|
voiceUrl: string;
|
|
346
|
-
emergencyStatus:
|
|
341
|
+
emergencyStatus: MobileEmergencyStatus;
|
|
347
342
|
/**
|
|
348
343
|
* The SID of the emergency address configuration that we use for emergency calling from this phone number.
|
|
349
344
|
*/
|
|
350
345
|
emergencyAddressSid: string;
|
|
351
|
-
emergencyAddressStatus:
|
|
346
|
+
emergencyAddressStatus: MobileEmergencyAddressStatus;
|
|
352
347
|
/**
|
|
353
348
|
* The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations.
|
|
354
349
|
*/
|
|
@@ -362,7 +357,7 @@ export declare class MobileInstance {
|
|
|
362
357
|
toJSON(): {
|
|
363
358
|
accountSid: string;
|
|
364
359
|
addressSid: string;
|
|
365
|
-
addressRequirements:
|
|
360
|
+
addressRequirements: MobileAddressRequirement;
|
|
366
361
|
apiVersion: string;
|
|
367
362
|
beta: boolean;
|
|
368
363
|
capabilities: PhoneNumberCapabilities;
|
|
@@ -374,24 +369,24 @@ export declare class MobileInstance {
|
|
|
374
369
|
origin: string;
|
|
375
370
|
sid: string;
|
|
376
371
|
smsApplicationSid: string;
|
|
377
|
-
smsFallbackMethod:
|
|
372
|
+
smsFallbackMethod: string;
|
|
378
373
|
smsFallbackUrl: string;
|
|
379
|
-
smsMethod:
|
|
374
|
+
smsMethod: string;
|
|
380
375
|
smsUrl: string;
|
|
381
376
|
statusCallback: string;
|
|
382
|
-
statusCallbackMethod:
|
|
377
|
+
statusCallbackMethod: string;
|
|
383
378
|
trunkSid: string;
|
|
384
379
|
uri: string;
|
|
385
|
-
voiceReceiveMode:
|
|
380
|
+
voiceReceiveMode: MobileVoiceReceiveMode;
|
|
386
381
|
voiceApplicationSid: string;
|
|
387
382
|
voiceCallerIdLookup: boolean;
|
|
388
|
-
voiceFallbackMethod:
|
|
383
|
+
voiceFallbackMethod: string;
|
|
389
384
|
voiceFallbackUrl: string;
|
|
390
|
-
voiceMethod:
|
|
385
|
+
voiceMethod: string;
|
|
391
386
|
voiceUrl: string;
|
|
392
|
-
emergencyStatus:
|
|
387
|
+
emergencyStatus: MobileEmergencyStatus;
|
|
393
388
|
emergencyAddressSid: string;
|
|
394
|
-
emergencyAddressStatus:
|
|
389
|
+
emergencyAddressStatus: MobileEmergencyAddressStatus;
|
|
395
390
|
bundleSid: string;
|
|
396
391
|
status: string;
|
|
397
392
|
};
|
|
@@ -4,10 +4,10 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2010 from "../../../V2010";
|
|
6
6
|
import { PhoneNumberCapabilities } from "../../../../../interfaces";
|
|
7
|
-
type
|
|
8
|
-
type
|
|
9
|
-
type
|
|
10
|
-
type
|
|
7
|
+
export type TollFreeAddressRequirement = "none" | "any" | "local" | "foreign";
|
|
8
|
+
export type TollFreeEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
|
|
9
|
+
export type TollFreeEmergencyStatus = "Active" | "Inactive";
|
|
10
|
+
export type TollFreeVoiceReceiveMode = "voice" | "fax";
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to create a TollFreeInstance
|
|
13
13
|
*/
|
|
@@ -49,13 +49,13 @@ export interface TollFreeListInstanceCreateOptions {
|
|
|
49
49
|
/** The SID of the Address resource we should associate with the new phone number. Some regions require addresses to meet local regulations. */
|
|
50
50
|
addressSid?: string;
|
|
51
51
|
/** */
|
|
52
|
-
emergencyStatus?:
|
|
52
|
+
emergencyStatus?: TollFreeEmergencyStatus;
|
|
53
53
|
/** The SID of the emergency address configuration to use for emergency calling from the new phone number. */
|
|
54
54
|
emergencyAddressSid?: string;
|
|
55
55
|
/** The SID of the Trunk we should use to handle calls to the new phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use only those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa. */
|
|
56
56
|
trunkSid?: string;
|
|
57
57
|
/** */
|
|
58
|
-
voiceReceiveMode?:
|
|
58
|
+
voiceReceiveMode?: TollFreeVoiceReceiveMode;
|
|
59
59
|
/** The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations. */
|
|
60
60
|
bundleSid?: string;
|
|
61
61
|
}
|
|
@@ -189,18 +189,13 @@ export interface TollFreeListInstance {
|
|
|
189
189
|
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
190
190
|
}
|
|
191
191
|
export declare function TollFreeListInstance(version: V2010, accountSid: string): TollFreeListInstance;
|
|
192
|
-
export type TollFreeSmsFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
193
|
-
export type TollFreeSmsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
194
|
-
export type TollFreeStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
195
|
-
export type TollFreeVoiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
196
|
-
export type TollFreeVoiceMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
197
192
|
interface TollFreePayload extends TwilioResponsePayload {
|
|
198
193
|
incoming_phone_numbers: TollFreeResource[];
|
|
199
194
|
}
|
|
200
195
|
interface TollFreeResource {
|
|
201
196
|
account_sid: string;
|
|
202
197
|
address_sid: string;
|
|
203
|
-
address_requirements:
|
|
198
|
+
address_requirements: TollFreeAddressRequirement;
|
|
204
199
|
api_version: string;
|
|
205
200
|
beta: boolean;
|
|
206
201
|
capabilities: PhoneNumberCapabilities;
|
|
@@ -212,24 +207,24 @@ interface TollFreeResource {
|
|
|
212
207
|
origin: string;
|
|
213
208
|
sid: string;
|
|
214
209
|
sms_application_sid: string;
|
|
215
|
-
sms_fallback_method:
|
|
210
|
+
sms_fallback_method: string;
|
|
216
211
|
sms_fallback_url: string;
|
|
217
|
-
sms_method:
|
|
212
|
+
sms_method: string;
|
|
218
213
|
sms_url: string;
|
|
219
214
|
status_callback: string;
|
|
220
|
-
status_callback_method:
|
|
215
|
+
status_callback_method: string;
|
|
221
216
|
trunk_sid: string;
|
|
222
217
|
uri: string;
|
|
223
|
-
voice_receive_mode:
|
|
218
|
+
voice_receive_mode: TollFreeVoiceReceiveMode;
|
|
224
219
|
voice_application_sid: string;
|
|
225
220
|
voice_caller_id_lookup: boolean;
|
|
226
|
-
voice_fallback_method:
|
|
221
|
+
voice_fallback_method: string;
|
|
227
222
|
voice_fallback_url: string;
|
|
228
|
-
voice_method:
|
|
223
|
+
voice_method: string;
|
|
229
224
|
voice_url: string;
|
|
230
|
-
emergency_status:
|
|
225
|
+
emergency_status: TollFreeEmergencyStatus;
|
|
231
226
|
emergency_address_sid: string;
|
|
232
|
-
emergency_address_status:
|
|
227
|
+
emergency_address_status: TollFreeEmergencyAddressStatus;
|
|
233
228
|
bundle_sid: string;
|
|
234
229
|
status: string;
|
|
235
230
|
}
|
|
@@ -244,7 +239,7 @@ export declare class TollFreeInstance {
|
|
|
244
239
|
* The SID of the Address resource associated with the phone number.
|
|
245
240
|
*/
|
|
246
241
|
addressSid: string;
|
|
247
|
-
addressRequirements:
|
|
242
|
+
addressRequirements: TollFreeAddressRequirement;
|
|
248
243
|
/**
|
|
249
244
|
* The API version used to start a new TwiML session.
|
|
250
245
|
*/
|
|
@@ -289,7 +284,7 @@ export declare class TollFreeInstance {
|
|
|
289
284
|
/**
|
|
290
285
|
* The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`.
|
|
291
286
|
*/
|
|
292
|
-
smsFallbackMethod:
|
|
287
|
+
smsFallbackMethod: string;
|
|
293
288
|
/**
|
|
294
289
|
* The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`.
|
|
295
290
|
*/
|
|
@@ -297,7 +292,7 @@ export declare class TollFreeInstance {
|
|
|
297
292
|
/**
|
|
298
293
|
* The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`.
|
|
299
294
|
*/
|
|
300
|
-
smsMethod:
|
|
295
|
+
smsMethod: string;
|
|
301
296
|
/**
|
|
302
297
|
* The URL we call when the phone number receives an incoming SMS message.
|
|
303
298
|
*/
|
|
@@ -309,7 +304,7 @@ export declare class TollFreeInstance {
|
|
|
309
304
|
/**
|
|
310
305
|
* The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`.
|
|
311
306
|
*/
|
|
312
|
-
statusCallbackMethod:
|
|
307
|
+
statusCallbackMethod: string;
|
|
313
308
|
/**
|
|
314
309
|
* The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa.
|
|
315
310
|
*/
|
|
@@ -318,7 +313,7 @@ export declare class TollFreeInstance {
|
|
|
318
313
|
* The URI of the resource, relative to `https://api.twilio.com`.
|
|
319
314
|
*/
|
|
320
315
|
uri: string;
|
|
321
|
-
voiceReceiveMode:
|
|
316
|
+
voiceReceiveMode: TollFreeVoiceReceiveMode;
|
|
322
317
|
/**
|
|
323
318
|
* The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa.
|
|
324
319
|
*/
|
|
@@ -330,7 +325,7 @@ export declare class TollFreeInstance {
|
|
|
330
325
|
/**
|
|
331
326
|
* The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`.
|
|
332
327
|
*/
|
|
333
|
-
voiceFallbackMethod:
|
|
328
|
+
voiceFallbackMethod: string;
|
|
334
329
|
/**
|
|
335
330
|
* The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`.
|
|
336
331
|
*/
|
|
@@ -338,17 +333,17 @@ export declare class TollFreeInstance {
|
|
|
338
333
|
/**
|
|
339
334
|
* The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`.
|
|
340
335
|
*/
|
|
341
|
-
voiceMethod:
|
|
336
|
+
voiceMethod: string;
|
|
342
337
|
/**
|
|
343
338
|
* The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set.
|
|
344
339
|
*/
|
|
345
340
|
voiceUrl: string;
|
|
346
|
-
emergencyStatus:
|
|
341
|
+
emergencyStatus: TollFreeEmergencyStatus;
|
|
347
342
|
/**
|
|
348
343
|
* The SID of the emergency address configuration that we use for emergency calling from this phone number.
|
|
349
344
|
*/
|
|
350
345
|
emergencyAddressSid: string;
|
|
351
|
-
emergencyAddressStatus:
|
|
346
|
+
emergencyAddressStatus: TollFreeEmergencyAddressStatus;
|
|
352
347
|
/**
|
|
353
348
|
* The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations.
|
|
354
349
|
*/
|
|
@@ -362,7 +357,7 @@ export declare class TollFreeInstance {
|
|
|
362
357
|
toJSON(): {
|
|
363
358
|
accountSid: string;
|
|
364
359
|
addressSid: string;
|
|
365
|
-
addressRequirements:
|
|
360
|
+
addressRequirements: TollFreeAddressRequirement;
|
|
366
361
|
apiVersion: string;
|
|
367
362
|
beta: boolean;
|
|
368
363
|
capabilities: PhoneNumberCapabilities;
|
|
@@ -374,24 +369,24 @@ export declare class TollFreeInstance {
|
|
|
374
369
|
origin: string;
|
|
375
370
|
sid: string;
|
|
376
371
|
smsApplicationSid: string;
|
|
377
|
-
smsFallbackMethod:
|
|
372
|
+
smsFallbackMethod: string;
|
|
378
373
|
smsFallbackUrl: string;
|
|
379
|
-
smsMethod:
|
|
374
|
+
smsMethod: string;
|
|
380
375
|
smsUrl: string;
|
|
381
376
|
statusCallback: string;
|
|
382
|
-
statusCallbackMethod:
|
|
377
|
+
statusCallbackMethod: string;
|
|
383
378
|
trunkSid: string;
|
|
384
379
|
uri: string;
|
|
385
|
-
voiceReceiveMode:
|
|
380
|
+
voiceReceiveMode: TollFreeVoiceReceiveMode;
|
|
386
381
|
voiceApplicationSid: string;
|
|
387
382
|
voiceCallerIdLookup: boolean;
|
|
388
|
-
voiceFallbackMethod:
|
|
383
|
+
voiceFallbackMethod: string;
|
|
389
384
|
voiceFallbackUrl: string;
|
|
390
|
-
voiceMethod:
|
|
385
|
+
voiceMethod: string;
|
|
391
386
|
voiceUrl: string;
|
|
392
|
-
emergencyStatus:
|
|
387
|
+
emergencyStatus: TollFreeEmergencyStatus;
|
|
393
388
|
emergencyAddressSid: string;
|
|
394
|
-
emergencyAddressStatus:
|
|
389
|
+
emergencyAddressStatus: TollFreeEmergencyAddressStatus;
|
|
395
390
|
bundleSid: string;
|
|
396
391
|
status: string;
|
|
397
392
|
};
|
|
@@ -8,10 +8,10 @@ import { LocalListInstance } from "./incomingPhoneNumber/local";
|
|
|
8
8
|
import { MobileListInstance } from "./incomingPhoneNumber/mobile";
|
|
9
9
|
import { TollFreeListInstance } from "./incomingPhoneNumber/tollFree";
|
|
10
10
|
import { PhoneNumberCapabilities } from "../../../../interfaces";
|
|
11
|
-
type IncomingPhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
|
|
12
|
-
type IncomingPhoneNumberEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
|
|
13
|
-
type IncomingPhoneNumberEmergencyStatus = "Active" | "Inactive";
|
|
14
|
-
type IncomingPhoneNumberVoiceReceiveMode = "voice" | "fax";
|
|
11
|
+
export type IncomingPhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
|
|
12
|
+
export type IncomingPhoneNumberEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
|
|
13
|
+
export type IncomingPhoneNumberEmergencyStatus = "Active" | "Inactive";
|
|
14
|
+
export type IncomingPhoneNumberVoiceReceiveMode = "voice" | "fax";
|
|
15
15
|
/**
|
|
16
16
|
* Options to pass to update a IncomingPhoneNumberInstance
|
|
17
17
|
*/
|
|
@@ -236,11 +236,6 @@ export declare class IncomingPhoneNumberContextImpl implements IncomingPhoneNumb
|
|
|
236
236
|
toJSON(): IncomingPhoneNumberContextSolution;
|
|
237
237
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
238
238
|
}
|
|
239
|
-
export type IncomingPhoneNumberSmsFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
240
|
-
export type IncomingPhoneNumberSmsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
241
|
-
export type IncomingPhoneNumberStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
242
|
-
export type IncomingPhoneNumberVoiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
243
|
-
export type IncomingPhoneNumberVoiceMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
244
239
|
interface IncomingPhoneNumberPayload extends TwilioResponsePayload {
|
|
245
240
|
incoming_phone_numbers: IncomingPhoneNumberResource[];
|
|
246
241
|
}
|
|
@@ -259,20 +254,20 @@ interface IncomingPhoneNumberResource {
|
|
|
259
254
|
origin: string;
|
|
260
255
|
sid: string;
|
|
261
256
|
sms_application_sid: string;
|
|
262
|
-
sms_fallback_method:
|
|
257
|
+
sms_fallback_method: string;
|
|
263
258
|
sms_fallback_url: string;
|
|
264
|
-
sms_method:
|
|
259
|
+
sms_method: string;
|
|
265
260
|
sms_url: string;
|
|
266
261
|
status_callback: string;
|
|
267
|
-
status_callback_method:
|
|
262
|
+
status_callback_method: string;
|
|
268
263
|
trunk_sid: string;
|
|
269
264
|
uri: string;
|
|
270
265
|
voice_receive_mode: IncomingPhoneNumberVoiceReceiveMode;
|
|
271
266
|
voice_application_sid: string;
|
|
272
267
|
voice_caller_id_lookup: boolean;
|
|
273
|
-
voice_fallback_method:
|
|
268
|
+
voice_fallback_method: string;
|
|
274
269
|
voice_fallback_url: string;
|
|
275
|
-
voice_method:
|
|
270
|
+
voice_method: string;
|
|
276
271
|
voice_url: string;
|
|
277
272
|
emergency_status: IncomingPhoneNumberEmergencyStatus;
|
|
278
273
|
emergency_address_sid: string;
|
|
@@ -338,7 +333,7 @@ export declare class IncomingPhoneNumberInstance {
|
|
|
338
333
|
/**
|
|
339
334
|
* The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`.
|
|
340
335
|
*/
|
|
341
|
-
smsFallbackMethod:
|
|
336
|
+
smsFallbackMethod: string;
|
|
342
337
|
/**
|
|
343
338
|
* The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`.
|
|
344
339
|
*/
|
|
@@ -346,7 +341,7 @@ export declare class IncomingPhoneNumberInstance {
|
|
|
346
341
|
/**
|
|
347
342
|
* The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`.
|
|
348
343
|
*/
|
|
349
|
-
smsMethod:
|
|
344
|
+
smsMethod: string;
|
|
350
345
|
/**
|
|
351
346
|
* The URL we call when the phone number receives an incoming SMS message.
|
|
352
347
|
*/
|
|
@@ -358,7 +353,7 @@ export declare class IncomingPhoneNumberInstance {
|
|
|
358
353
|
/**
|
|
359
354
|
* The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`.
|
|
360
355
|
*/
|
|
361
|
-
statusCallbackMethod:
|
|
356
|
+
statusCallbackMethod: string;
|
|
362
357
|
/**
|
|
363
358
|
* The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa.
|
|
364
359
|
*/
|
|
@@ -379,7 +374,7 @@ export declare class IncomingPhoneNumberInstance {
|
|
|
379
374
|
/**
|
|
380
375
|
* The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`.
|
|
381
376
|
*/
|
|
382
|
-
voiceFallbackMethod:
|
|
377
|
+
voiceFallbackMethod: string;
|
|
383
378
|
/**
|
|
384
379
|
* The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`.
|
|
385
380
|
*/
|
|
@@ -387,7 +382,7 @@ export declare class IncomingPhoneNumberInstance {
|
|
|
387
382
|
/**
|
|
388
383
|
* The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`.
|
|
389
384
|
*/
|
|
390
|
-
voiceMethod:
|
|
385
|
+
voiceMethod: string;
|
|
391
386
|
/**
|
|
392
387
|
* The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set.
|
|
393
388
|
*/
|
|
@@ -461,20 +456,20 @@ export declare class IncomingPhoneNumberInstance {
|
|
|
461
456
|
origin: string;
|
|
462
457
|
sid: string;
|
|
463
458
|
smsApplicationSid: string;
|
|
464
|
-
smsFallbackMethod:
|
|
459
|
+
smsFallbackMethod: string;
|
|
465
460
|
smsFallbackUrl: string;
|
|
466
|
-
smsMethod:
|
|
461
|
+
smsMethod: string;
|
|
467
462
|
smsUrl: string;
|
|
468
463
|
statusCallback: string;
|
|
469
|
-
statusCallbackMethod:
|
|
464
|
+
statusCallbackMethod: string;
|
|
470
465
|
trunkSid: string;
|
|
471
466
|
uri: string;
|
|
472
467
|
voiceReceiveMode: IncomingPhoneNumberVoiceReceiveMode;
|
|
473
468
|
voiceApplicationSid: string;
|
|
474
469
|
voiceCallerIdLookup: boolean;
|
|
475
|
-
voiceFallbackMethod:
|
|
470
|
+
voiceFallbackMethod: string;
|
|
476
471
|
voiceFallbackUrl: string;
|
|
477
|
-
voiceMethod:
|
|
472
|
+
voiceMethod: string;
|
|
478
473
|
voiceUrl: string;
|
|
479
474
|
emergencyStatus: IncomingPhoneNumberEmergencyStatus;
|
|
480
475
|
emergencyAddressSid: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2010 from "../../../V2010";
|
|
4
|
-
type
|
|
4
|
+
export type FeedbackOutcome = "confirmed" | "unconfirmed";
|
|
5
5
|
/**
|
|
6
6
|
* Options to pass to create a FeedbackInstance
|
|
7
7
|
*/
|
|
8
8
|
export interface FeedbackListInstanceCreateOptions {
|
|
9
9
|
/** */
|
|
10
|
-
outcome?:
|
|
10
|
+
outcome?: FeedbackOutcome;
|
|
11
11
|
}
|
|
12
12
|
export interface FeedbackSolution {
|
|
13
13
|
accountSid: string;
|
|
@@ -44,7 +44,7 @@ export declare function FeedbackListInstance(version: V2010, accountSid: string,
|
|
|
44
44
|
interface FeedbackResource {
|
|
45
45
|
account_sid: string;
|
|
46
46
|
message_sid: string;
|
|
47
|
-
outcome:
|
|
47
|
+
outcome: FeedbackOutcome;
|
|
48
48
|
date_created: Date;
|
|
49
49
|
date_updated: Date;
|
|
50
50
|
uri: string;
|
|
@@ -60,7 +60,7 @@ export declare class FeedbackInstance {
|
|
|
60
60
|
* The SID of the Message resource for which the feedback was provided.
|
|
61
61
|
*/
|
|
62
62
|
messageSid: string;
|
|
63
|
-
outcome:
|
|
63
|
+
outcome: FeedbackOutcome;
|
|
64
64
|
/**
|
|
65
65
|
* The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
|
66
66
|
*/
|
|
@@ -81,7 +81,7 @@ export declare class FeedbackInstance {
|
|
|
81
81
|
toJSON(): {
|
|
82
82
|
accountSid: string;
|
|
83
83
|
messageSid: string;
|
|
84
|
-
outcome:
|
|
84
|
+
outcome: FeedbackOutcome;
|
|
85
85
|
dateCreated: Date;
|
|
86
86
|
dateUpdated: Date;
|
|
87
87
|
uri: string;
|
|
@@ -5,12 +5,12 @@ import Response from "../../../../http/response";
|
|
|
5
5
|
import V2010 from "../../V2010";
|
|
6
6
|
import { FeedbackListInstance } from "./message/feedback";
|
|
7
7
|
import { MediaListInstance } from "./message/media";
|
|
8
|
-
type MessageAddressRetention = "retain";
|
|
9
|
-
type MessageContentRetention = "retain";
|
|
10
|
-
type MessageDirection = "inbound" | "outbound-api" | "outbound-call" | "outbound-reply";
|
|
11
|
-
type MessageScheduleType = "fixed";
|
|
12
|
-
type MessageStatus = "queued" | "sending" | "sent" | "failed" | "delivered" | "undelivered" | "receiving" | "received" | "accepted" | "scheduled" | "read" | "partially_delivered" | "canceled";
|
|
13
|
-
type MessageUpdateStatus = "canceled";
|
|
8
|
+
export type MessageAddressRetention = "retain";
|
|
9
|
+
export type MessageContentRetention = "retain";
|
|
10
|
+
export type MessageDirection = "inbound" | "outbound-api" | "outbound-call" | "outbound-reply";
|
|
11
|
+
export type MessageScheduleType = "fixed";
|
|
12
|
+
export type MessageStatus = "queued" | "sending" | "sent" | "failed" | "delivered" | "undelivered" | "receiving" | "received" | "accepted" | "scheduled" | "read" | "partially_delivered" | "canceled";
|
|
13
|
+
export type MessageUpdateStatus = "canceled";
|
|
14
14
|
/**
|
|
15
15
|
* Options to pass to update a MessageInstance
|
|
16
16
|
*/
|
|
@@ -93,7 +93,6 @@ export declare class NotificationContextImpl implements NotificationContext {
|
|
|
93
93
|
toJSON(): NotificationContextSolution;
|
|
94
94
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
95
95
|
}
|
|
96
|
-
export type NotificationRequestMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
97
96
|
interface NotificationPayload extends TwilioResponsePayload {
|
|
98
97
|
notifications: NotificationResource[];
|
|
99
98
|
}
|
|
@@ -108,7 +107,7 @@ interface NotificationResource {
|
|
|
108
107
|
message_date: Date;
|
|
109
108
|
message_text: string;
|
|
110
109
|
more_info: string;
|
|
111
|
-
request_method:
|
|
110
|
+
request_method: string;
|
|
112
111
|
request_url: string;
|
|
113
112
|
request_variables: string;
|
|
114
113
|
response_body: string;
|
|
@@ -164,7 +163,7 @@ export declare class NotificationInstance {
|
|
|
164
163
|
/**
|
|
165
164
|
* The HTTP method used to generate the notification. If the notification was generated during a phone call, this is the HTTP Method used to request the resource on your server. If the notification was generated by your use of our REST API, this is the HTTP method used to call the resource on our servers.
|
|
166
165
|
*/
|
|
167
|
-
requestMethod:
|
|
166
|
+
requestMethod: string;
|
|
168
167
|
/**
|
|
169
168
|
* The URL of the resource that generated the notification. If the notification was generated during a phone call, this is the URL of the resource on your server that caused the notification. If the notification was generated by your use of our REST API, this is the URL of the resource you called.
|
|
170
169
|
*/
|
|
@@ -214,7 +213,7 @@ export declare class NotificationInstance {
|
|
|
214
213
|
messageDate: Date;
|
|
215
214
|
messageText: string;
|
|
216
215
|
moreInfo: string;
|
|
217
|
-
requestMethod:
|
|
216
|
+
requestMethod: string;
|
|
218
217
|
requestUrl: string;
|
|
219
218
|
requestVariables: string;
|
|
220
219
|
responseBody: string;
|
|
@@ -10,7 +10,7 @@ import { MemberListInstance } from "./queue/member";
|
|
|
10
10
|
export interface QueueContextUpdateOptions {
|
|
11
11
|
/** A descriptive string that you created to describe this resource. It can be up to 64 characters long. */
|
|
12
12
|
friendlyName?: string;
|
|
13
|
-
/** The maximum number of calls allowed to be in the queue. The default is
|
|
13
|
+
/** The maximum number of calls allowed to be in the queue. The default is 1000. The maximum is 5000. */
|
|
14
14
|
maxSize?: number;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
@@ -19,7 +19,7 @@ export interface QueueContextUpdateOptions {
|
|
|
19
19
|
export interface QueueListInstanceCreateOptions {
|
|
20
20
|
/** A descriptive string that you created to describe this resource. It can be up to 64 characters long. */
|
|
21
21
|
friendlyName: string;
|
|
22
|
-
/** The maximum number of calls allowed to be in the queue. The default is
|
|
22
|
+
/** The maximum number of calls allowed to be in the queue. The default is 1000. The maximum is 5000. */
|
|
23
23
|
maxSize?: number;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
@@ -170,7 +170,7 @@ export declare class QueueInstance {
|
|
|
170
170
|
*/
|
|
171
171
|
dateCreated: Date;
|
|
172
172
|
/**
|
|
173
|
-
* The maximum number of calls that can be in the queue. The default is
|
|
173
|
+
* The maximum number of calls that can be in the queue. The default is 1000 and the maximum is 5000.
|
|
174
174
|
*/
|
|
175
175
|
maxSize: number;
|
|
176
176
|
private get _proxy();
|