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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2010 from "../../../V2010";
|
|
4
|
-
type
|
|
4
|
+
export type FeedbackSummaryStatus = "queued" | "in-progress" | "completed" | "failed";
|
|
5
5
|
/**
|
|
6
6
|
* Options to pass to create a FeedbackSummaryInstance
|
|
7
7
|
*/
|
|
@@ -73,7 +73,7 @@ interface FeedbackSummaryResource {
|
|
|
73
73
|
quality_score_standard_deviation: number;
|
|
74
74
|
sid: string;
|
|
75
75
|
start_date: Date;
|
|
76
|
-
status:
|
|
76
|
+
status: FeedbackSummaryStatus;
|
|
77
77
|
}
|
|
78
78
|
export declare class FeedbackSummaryInstance {
|
|
79
79
|
protected _version: V2010;
|
|
@@ -132,7 +132,7 @@ export declare class FeedbackSummaryInstance {
|
|
|
132
132
|
* The first date for which feedback entries are included in this feedback summary, formatted as `YYYY-MM-DD` and specified in UTC.
|
|
133
133
|
*/
|
|
134
134
|
startDate: Date;
|
|
135
|
-
status:
|
|
135
|
+
status: FeedbackSummaryStatus;
|
|
136
136
|
private get _proxy();
|
|
137
137
|
/**
|
|
138
138
|
* Remove a FeedbackSummaryInstance
|
|
@@ -169,7 +169,7 @@ export declare class FeedbackSummaryInstance {
|
|
|
169
169
|
qualityScoreStandardDeviation: number;
|
|
170
170
|
sid: string;
|
|
171
171
|
startDate: Date;
|
|
172
|
-
status:
|
|
172
|
+
status: FeedbackSummaryStatus;
|
|
173
173
|
};
|
|
174
174
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
175
175
|
}
|
|
@@ -94,7 +94,6 @@ export declare class NotificationContextImpl implements NotificationContext {
|
|
|
94
94
|
toJSON(): NotificationContextSolution;
|
|
95
95
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
96
96
|
}
|
|
97
|
-
export type NotificationRequestMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
98
97
|
interface NotificationPayload extends TwilioResponsePayload {
|
|
99
98
|
notifications: NotificationResource[];
|
|
100
99
|
}
|
|
@@ -109,7 +108,7 @@ interface NotificationResource {
|
|
|
109
108
|
message_date: Date;
|
|
110
109
|
message_text: string;
|
|
111
110
|
more_info: string;
|
|
112
|
-
request_method:
|
|
111
|
+
request_method: string;
|
|
113
112
|
request_url: string;
|
|
114
113
|
request_variables: string;
|
|
115
114
|
response_body: string;
|
|
@@ -165,7 +164,7 @@ export declare class NotificationInstance {
|
|
|
165
164
|
/**
|
|
166
165
|
* 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.
|
|
167
166
|
*/
|
|
168
|
-
requestMethod:
|
|
167
|
+
requestMethod: string;
|
|
169
168
|
/**
|
|
170
169
|
* 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.
|
|
171
170
|
*/
|
|
@@ -215,7 +214,7 @@ export declare class NotificationInstance {
|
|
|
215
214
|
messageDate: Date;
|
|
216
215
|
messageText: string;
|
|
217
216
|
moreInfo: string;
|
|
218
|
-
requestMethod:
|
|
217
|
+
requestMethod: string;
|
|
219
218
|
requestUrl: string;
|
|
220
219
|
requestVariables: string;
|
|
221
220
|
responseBody: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2010 from "../../../V2010";
|
|
4
|
-
type
|
|
5
|
-
type
|
|
6
|
-
type
|
|
7
|
-
type
|
|
8
|
-
type
|
|
4
|
+
export type PaymentBankAccountType = "consumer-checking" | "consumer-savings" | "commercial-checking";
|
|
5
|
+
export type PaymentCapture = "payment-card-number" | "expiration-date" | "security-code" | "postal-code" | "bank-routing-number" | "bank-account-number";
|
|
6
|
+
export type PaymentPaymentMethod = "credit-card" | "ach-debit";
|
|
7
|
+
export type PaymentStatus = "complete" | "cancel";
|
|
8
|
+
export type PaymentTokenType = "one-time" | "reusable";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to update a PaymentInstance
|
|
11
11
|
*/
|
|
@@ -15,9 +15,9 @@ export interface PaymentContextUpdateOptions {
|
|
|
15
15
|
/** Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [Update](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-update) and [Complete/Cancel](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback-cancelcomplete) POST requests. */
|
|
16
16
|
statusCallback: string;
|
|
17
17
|
/** */
|
|
18
|
-
capture?:
|
|
18
|
+
capture?: PaymentCapture;
|
|
19
19
|
/** */
|
|
20
|
-
status?:
|
|
20
|
+
status?: PaymentStatus;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Options to pass to create a PaymentInstance
|
|
@@ -28,7 +28,7 @@ export interface PaymentListInstanceCreateOptions {
|
|
|
28
28
|
/** Provide an absolute or relative URL to receive status updates regarding your Pay session. Read more about the [expected StatusCallback values](https://www.twilio.com/docs/voice/api/payment-resource#statuscallback) */
|
|
29
29
|
statusCallback: string;
|
|
30
30
|
/** */
|
|
31
|
-
bankAccountType?:
|
|
31
|
+
bankAccountType?: PaymentBankAccountType;
|
|
32
32
|
/** A positive decimal value less than 1,000,000 to charge against the credit card or bank account. Default currency can be overwritten with `currency` field. Leave blank or set to 0 to tokenize. */
|
|
33
33
|
chargeAmount?: number;
|
|
34
34
|
/** The currency of the `charge_amount`, formatted as [ISO 4127](http://www.iso.org/iso/home/standards/currency_codes.htm) format. The default value is `USD` and all values allowed from the Pay Connector are accepted. */
|
|
@@ -44,7 +44,7 @@ export interface PaymentListInstanceCreateOptions {
|
|
|
44
44
|
/** This is the unique name corresponding to the Pay Connector installed in the Twilio Add-ons. Learn more about [<Pay> Connectors](https://www.twilio.com/console/voice/pay-connectors). The default value is `Default`. */
|
|
45
45
|
paymentConnector?: string;
|
|
46
46
|
/** */
|
|
47
|
-
paymentMethod?:
|
|
47
|
+
paymentMethod?: PaymentPaymentMethod;
|
|
48
48
|
/** Indicates whether the credit card postal code (zip code) is a required piece of payment information that must be provided by the caller. The default is `true`. */
|
|
49
49
|
postalCode?: boolean;
|
|
50
50
|
/** Indicates whether the credit card security code is a required piece of payment information that must be provided by the caller. The default is `true`. */
|
|
@@ -52,7 +52,7 @@ export interface PaymentListInstanceCreateOptions {
|
|
|
52
52
|
/** The number of seconds that <Pay> should wait for the caller to press a digit between each subsequent digit, after the first one, before moving on to validate the digits captured. The default is `5`, maximum is `600`. */
|
|
53
53
|
timeout?: number;
|
|
54
54
|
/** */
|
|
55
|
-
tokenType?:
|
|
55
|
+
tokenType?: PaymentTokenType;
|
|
56
56
|
/** Credit card types separated by space that Pay should accept. The default value is `visa mastercard amex` */
|
|
57
57
|
validCardTypes?: string;
|
|
58
58
|
}
|
|
@@ -3,14 +3,14 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2010 from "../../../V2010";
|
|
6
|
-
type
|
|
7
|
-
type
|
|
6
|
+
export type RecordingSource = "DialVerb" | "Conference" | "OutboundAPI" | "Trunking" | "RecordVerb" | "StartCallRecordingAPI" | "StartConferenceRecordingAPI";
|
|
7
|
+
export type RecordingStatus = "in-progress" | "paused" | "stopped" | "processing" | "completed" | "absent";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to update a RecordingInstance
|
|
10
10
|
*/
|
|
11
11
|
export interface RecordingContextUpdateOptions {
|
|
12
12
|
/** */
|
|
13
|
-
status:
|
|
13
|
+
status: RecordingStatus;
|
|
14
14
|
/** Whether to record during a pause. Can be: `skip` or `silence` and the default is `silence`. `skip` does not record during the pause period, while `silence` will replace the actual audio of the call with silence during the pause period. This parameter only applies when setting `status` is set to `paused`. */
|
|
15
15
|
pauseBehavior?: string;
|
|
16
16
|
}
|
|
@@ -152,9 +152,9 @@ interface RecordingResource {
|
|
|
152
152
|
uri: string;
|
|
153
153
|
encryption_details: any;
|
|
154
154
|
price_unit: string;
|
|
155
|
-
status:
|
|
155
|
+
status: RecordingStatus;
|
|
156
156
|
channels: number;
|
|
157
|
-
source:
|
|
157
|
+
source: RecordingSource;
|
|
158
158
|
error_code: number;
|
|
159
159
|
track: string;
|
|
160
160
|
}
|
|
@@ -215,12 +215,12 @@ export declare class RecordingInstance {
|
|
|
215
215
|
* The currency used in the `price` property. Example: `USD`.
|
|
216
216
|
*/
|
|
217
217
|
priceUnit: string;
|
|
218
|
-
status:
|
|
218
|
+
status: RecordingStatus;
|
|
219
219
|
/**
|
|
220
220
|
* The number of channels in the final recording file. Can be: `1`, or `2`. Separating a two leg call into two separate channels of the recording file is supported in [Dial](https://www.twilio.com/docs/voice/twiml/dial#attributes-record) and [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls) record options.
|
|
221
221
|
*/
|
|
222
222
|
channels: number;
|
|
223
|
-
source:
|
|
223
|
+
source: RecordingSource;
|
|
224
224
|
/**
|
|
225
225
|
* The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`.
|
|
226
226
|
*/
|
|
@@ -274,9 +274,9 @@ export declare class RecordingInstance {
|
|
|
274
274
|
uri: string;
|
|
275
275
|
encryptionDetails: any;
|
|
276
276
|
priceUnit: string;
|
|
277
|
-
status:
|
|
277
|
+
status: RecordingStatus;
|
|
278
278
|
channels: number;
|
|
279
|
-
source:
|
|
279
|
+
source: RecordingSource;
|
|
280
280
|
errorCode: number;
|
|
281
281
|
track: string;
|
|
282
282
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2010 from "../../../V2010";
|
|
4
|
-
type SiprecStatus = "in-progress" | "stopped";
|
|
5
|
-
type SiprecTrack = "inbound_track" | "outbound_track" | "both_tracks";
|
|
6
|
-
type SiprecUpdateStatus = "stopped";
|
|
4
|
+
export type SiprecStatus = "in-progress" | "stopped";
|
|
5
|
+
export type SiprecTrack = "inbound_track" | "outbound_track" | "both_tracks";
|
|
6
|
+
export type SiprecUpdateStatus = "stopped";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to update a SiprecInstance
|
|
9
9
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2010 from "../../../V2010";
|
|
4
|
-
type StreamStatus = "in-progress" | "stopped";
|
|
5
|
-
type StreamTrack = "inbound_track" | "outbound_track" | "both_tracks";
|
|
6
|
-
type StreamUpdateStatus = "stopped";
|
|
4
|
+
export type StreamStatus = "in-progress" | "stopped";
|
|
5
|
+
export type StreamTrack = "inbound_track" | "outbound_track" | "both_tracks";
|
|
6
|
+
export type StreamUpdateStatus = "stopped";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to update a StreamInstance
|
|
9
9
|
*/
|
|
@@ -14,8 +14,8 @@ import { StreamListInstance } from "./call/stream";
|
|
|
14
14
|
import { UserDefinedMessageListInstance } from "./call/userDefinedMessage";
|
|
15
15
|
import { UserDefinedMessageSubscriptionListInstance } from "./call/userDefinedMessageSubscription";
|
|
16
16
|
import TwiML from "../../../../twiml/TwiML";
|
|
17
|
-
type CallStatus = "queued" | "ringing" | "in-progress" | "completed" | "busy" | "failed" | "no-answer" | "canceled";
|
|
18
|
-
type CallUpdateStatus = "canceled" | "completed";
|
|
17
|
+
export type CallStatus = "queued" | "ringing" | "in-progress" | "completed" | "busy" | "failed" | "no-answer" | "canceled";
|
|
18
|
+
export type CallUpdateStatus = "canceled" | "completed";
|
|
19
19
|
/**
|
|
20
20
|
* Options to pass to update a CallInstance
|
|
21
21
|
*/
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2010 from "../../../V2010";
|
|
6
|
-
type ParticipantStatus = "queued" | "connecting" | "ringing" | "connected" | "complete" | "failed";
|
|
6
|
+
export type ParticipantStatus = "queued" | "connecting" | "ringing" | "connected" | "complete" | "failed";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to update a ParticipantInstance
|
|
9
9
|
*/
|
|
@@ -3,14 +3,14 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2010 from "../../../V2010";
|
|
6
|
-
type
|
|
7
|
-
type
|
|
6
|
+
export type RecordingSource = "DialVerb" | "Conference" | "OutboundAPI" | "Trunking" | "RecordVerb" | "StartCallRecordingAPI" | "StartConferenceRecordingAPI";
|
|
7
|
+
export type RecordingStatus = "in-progress" | "paused" | "stopped" | "processing" | "completed" | "absent";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to update a RecordingInstance
|
|
10
10
|
*/
|
|
11
11
|
export interface RecordingContextUpdateOptions {
|
|
12
12
|
/** */
|
|
13
|
-
status:
|
|
13
|
+
status: RecordingStatus;
|
|
14
14
|
/** Whether to record during a pause. Can be: `skip` or `silence` and the default is `silence`. `skip` does not record during the pause period, while `silence` will replace the actual audio of the call with silence during the pause period. This parameter only applies when setting `status` is set to `paused`. */
|
|
15
15
|
pauseBehavior?: string;
|
|
16
16
|
}
|
|
@@ -133,9 +133,9 @@ interface RecordingResource {
|
|
|
133
133
|
sid: string;
|
|
134
134
|
price: string;
|
|
135
135
|
price_unit: string;
|
|
136
|
-
status:
|
|
136
|
+
status: RecordingStatus;
|
|
137
137
|
channels: number;
|
|
138
|
-
source:
|
|
138
|
+
source: RecordingSource;
|
|
139
139
|
error_code: number;
|
|
140
140
|
encryption_details: any;
|
|
141
141
|
uri: string;
|
|
@@ -189,12 +189,12 @@ export declare class RecordingInstance {
|
|
|
189
189
|
* The currency used in the `price` property. Example: `USD`.
|
|
190
190
|
*/
|
|
191
191
|
priceUnit: string;
|
|
192
|
-
status:
|
|
192
|
+
status: RecordingStatus;
|
|
193
193
|
/**
|
|
194
194
|
* The number of channels in the final recording file. Can be: `1`, or `2`. Separating a two leg call into two separate channels of the recording file is supported in [Dial](https://www.twilio.com/docs/voice/twiml/dial#attributes-record) and [Outbound Rest API](https://www.twilio.com/docs/voice/make-calls) record options.
|
|
195
195
|
*/
|
|
196
196
|
channels: number;
|
|
197
|
-
source:
|
|
197
|
+
source: RecordingSource;
|
|
198
198
|
/**
|
|
199
199
|
* The error code that describes why the recording is `absent`. The error code is described in our [Error Dictionary](https://www.twilio.com/docs/api/errors). This value is null if the recording `status` is not `absent`.
|
|
200
200
|
*/
|
|
@@ -250,9 +250,9 @@ export declare class RecordingInstance {
|
|
|
250
250
|
sid: string;
|
|
251
251
|
price: string;
|
|
252
252
|
priceUnit: string;
|
|
253
|
-
status:
|
|
253
|
+
status: RecordingStatus;
|
|
254
254
|
channels: number;
|
|
255
|
-
source:
|
|
255
|
+
source: RecordingSource;
|
|
256
256
|
errorCode: number;
|
|
257
257
|
encryptionDetails: any;
|
|
258
258
|
uri: string;
|
|
@@ -5,9 +5,9 @@ import Response from "../../../../http/response";
|
|
|
5
5
|
import V2010 from "../../V2010";
|
|
6
6
|
import { ParticipantListInstance } from "./conference/participant";
|
|
7
7
|
import { RecordingListInstance } from "./conference/recording";
|
|
8
|
-
type ConferenceReasonConferenceEnded = "conference-ended-via-api" | "participant-with-end-conference-on-exit-left" | "participant-with-end-conference-on-exit-kicked" | "last-participant-kicked" | "last-participant-left";
|
|
9
|
-
type ConferenceStatus = "init" | "in-progress" | "completed";
|
|
10
|
-
type ConferenceUpdateStatus = "completed";
|
|
8
|
+
export type ConferenceReasonConferenceEnded = "conference-ended-via-api" | "participant-with-end-conference-on-exit-left" | "participant-with-end-conference-on-exit-kicked" | "last-participant-kicked" | "last-participant-left";
|
|
9
|
+
export type ConferenceStatus = "init" | "in-progress" | "completed";
|
|
10
|
+
export type ConferenceUpdateStatus = "completed";
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to update a ConferenceInstance
|
|
13
13
|
*/
|
|
@@ -196,7 +196,7 @@ export declare class ConferenceInstance {
|
|
|
196
196
|
*/
|
|
197
197
|
apiVersion: string;
|
|
198
198
|
/**
|
|
199
|
-
* A string that you assigned to describe this conference room.
|
|
199
|
+
* A string that you assigned to describe this conference room. Maxiumum length is 128 characters.
|
|
200
200
|
*/
|
|
201
201
|
friendlyName: string;
|
|
202
202
|
/**
|
|
@@ -3,7 +3,7 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../base/Page";
|
|
4
4
|
import Response from "../../../../http/response";
|
|
5
5
|
import V2010 from "../../V2010";
|
|
6
|
-
type ConnectAppPermission = "get-all" | "post-all";
|
|
6
|
+
export type ConnectAppPermission = "get-all" | "post-all";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to update a ConnectAppInstance
|
|
9
9
|
*/
|
|
@@ -118,7 +118,6 @@ export declare class ConnectAppContextImpl implements ConnectAppContext {
|
|
|
118
118
|
toJSON(): ConnectAppContextSolution;
|
|
119
119
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
120
120
|
}
|
|
121
|
-
export type ConnectAppDeauthorizeCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
122
121
|
interface ConnectAppPayload extends TwilioResponsePayload {
|
|
123
122
|
connect_apps: ConnectAppResource[];
|
|
124
123
|
}
|
|
@@ -126,7 +125,7 @@ interface ConnectAppResource {
|
|
|
126
125
|
account_sid: string;
|
|
127
126
|
authorize_redirect_url: string;
|
|
128
127
|
company_name: string;
|
|
129
|
-
deauthorize_callback_method:
|
|
128
|
+
deauthorize_callback_method: string;
|
|
130
129
|
deauthorize_callback_url: string;
|
|
131
130
|
description: string;
|
|
132
131
|
friendly_name: string;
|
|
@@ -155,7 +154,7 @@ export declare class ConnectAppInstance {
|
|
|
155
154
|
/**
|
|
156
155
|
* The HTTP method we use to call `deauthorize_callback_url`.
|
|
157
156
|
*/
|
|
158
|
-
deauthorizeCallbackMethod:
|
|
157
|
+
deauthorizeCallbackMethod: string;
|
|
159
158
|
/**
|
|
160
159
|
* The URL we call using the `deauthorize_callback_method` to de-authorize the Connect App.
|
|
161
160
|
*/
|
|
@@ -227,7 +226,7 @@ export declare class ConnectAppInstance {
|
|
|
227
226
|
accountSid: string;
|
|
228
227
|
authorizeRedirectUrl: string;
|
|
229
228
|
companyName: string;
|
|
230
|
-
deauthorizeCallbackMethod:
|
|
229
|
+
deauthorizeCallbackMethod: string;
|
|
231
230
|
deauthorizeCallbackUrl: string;
|
|
232
231
|
description: string;
|
|
233
232
|
friendlyName: string;
|
|
@@ -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 LocalAddressRequirement = "none" | "any" | "local" | "foreign";
|
|
8
|
+
export type LocalEmergencyAddressStatus = "registered" | "unregistered" | "pending-registration" | "registration-failure" | "pending-unregistration" | "unregistration-failure";
|
|
9
|
+
export type LocalEmergencyStatus = "Active" | "Inactive";
|
|
10
|
+
export type LocalVoiceReceiveMode = "voice" | "fax";
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to create a LocalInstance
|
|
13
13
|
*/
|
|
@@ -49,13 +49,13 @@ export interface LocalListInstanceCreateOptions {
|
|
|
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?: LocalEmergencyStatus;
|
|
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?: LocalVoiceReceiveMode;
|
|
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 LocalListInstance {
|
|
|
189
189
|
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
190
190
|
}
|
|
191
191
|
export declare function LocalListInstance(version: V2010, accountSid: string): LocalListInstance;
|
|
192
|
-
export type LocalSmsFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
193
|
-
export type LocalSmsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
194
|
-
export type LocalStatusCallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
195
|
-
export type LocalVoiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
196
|
-
export type LocalVoiceMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
197
192
|
interface LocalPayload extends TwilioResponsePayload {
|
|
198
193
|
incoming_phone_numbers: LocalResource[];
|
|
199
194
|
}
|
|
200
195
|
interface LocalResource {
|
|
201
196
|
account_sid: string;
|
|
202
197
|
address_sid: string;
|
|
203
|
-
address_requirements:
|
|
198
|
+
address_requirements: LocalAddressRequirement;
|
|
204
199
|
api_version: string;
|
|
205
200
|
beta: boolean;
|
|
206
201
|
capabilities: PhoneNumberCapabilities;
|
|
@@ -212,24 +207,24 @@ interface LocalResource {
|
|
|
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: LocalVoiceReceiveMode;
|
|
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: LocalEmergencyStatus;
|
|
231
226
|
emergency_address_sid: string;
|
|
232
|
-
emergency_address_status:
|
|
227
|
+
emergency_address_status: LocalEmergencyAddressStatus;
|
|
233
228
|
bundle_sid: string;
|
|
234
229
|
status: string;
|
|
235
230
|
}
|
|
@@ -244,7 +239,7 @@ export declare class LocalInstance {
|
|
|
244
239
|
* The SID of the Address resource associated with the phone number.
|
|
245
240
|
*/
|
|
246
241
|
addressSid: string;
|
|
247
|
-
addressRequirements:
|
|
242
|
+
addressRequirements: LocalAddressRequirement;
|
|
248
243
|
/**
|
|
249
244
|
* The API version used to start a new TwiML session.
|
|
250
245
|
*/
|
|
@@ -289,7 +284,7 @@ export declare class LocalInstance {
|
|
|
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 LocalInstance {
|
|
|
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 LocalInstance {
|
|
|
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 LocalInstance {
|
|
|
318
313
|
* The URI of the resource, relative to `https://api.twilio.com`.
|
|
319
314
|
*/
|
|
320
315
|
uri: string;
|
|
321
|
-
voiceReceiveMode:
|
|
316
|
+
voiceReceiveMode: LocalVoiceReceiveMode;
|
|
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 LocalInstance {
|
|
|
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 LocalInstance {
|
|
|
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 this 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: LocalEmergencyStatus;
|
|
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: LocalEmergencyAddressStatus;
|
|
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 LocalInstance {
|
|
|
362
357
|
toJSON(): {
|
|
363
358
|
accountSid: string;
|
|
364
359
|
addressSid: string;
|
|
365
|
-
addressRequirements:
|
|
360
|
+
addressRequirements: LocalAddressRequirement;
|
|
366
361
|
apiVersion: string;
|
|
367
362
|
beta: boolean;
|
|
368
363
|
capabilities: PhoneNumberCapabilities;
|
|
@@ -374,24 +369,24 @@ export declare class LocalInstance {
|
|
|
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: LocalVoiceReceiveMode;
|
|
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: LocalEmergencyStatus;
|
|
393
388
|
emergencyAddressSid: string;
|
|
394
|
-
emergencyAddressStatus:
|
|
389
|
+
emergencyAddressStatus: LocalEmergencyAddressStatus;
|
|
395
390
|
bundleSid: string;
|
|
396
391
|
status: string;
|
|
397
392
|
};
|