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
|
@@ -157,10 +157,6 @@ export declare class SimContextImpl implements SimContext {
|
|
|
157
157
|
toJSON(): SimContextSolution;
|
|
158
158
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
159
159
|
}
|
|
160
|
-
export type SimSmsFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
161
|
-
export type SimSmsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
162
|
-
export type SimVoiceFallbackMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
163
|
-
export type SimVoiceMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
164
160
|
interface SimPayload extends TwilioResponsePayload {
|
|
165
161
|
sims: SimResource[];
|
|
166
162
|
}
|
|
@@ -175,13 +171,13 @@ interface SimResource {
|
|
|
175
171
|
status: string;
|
|
176
172
|
commands_callback_url: string;
|
|
177
173
|
commands_callback_method: string;
|
|
178
|
-
sms_fallback_method:
|
|
174
|
+
sms_fallback_method: string;
|
|
179
175
|
sms_fallback_url: string;
|
|
180
|
-
sms_method:
|
|
176
|
+
sms_method: string;
|
|
181
177
|
sms_url: string;
|
|
182
|
-
voice_fallback_method:
|
|
178
|
+
voice_fallback_method: string;
|
|
183
179
|
voice_fallback_url: string;
|
|
184
|
-
voice_method:
|
|
180
|
+
voice_method: string;
|
|
185
181
|
voice_url: string;
|
|
186
182
|
date_created: Date;
|
|
187
183
|
date_updated: Date;
|
|
@@ -203,13 +199,13 @@ export declare class SimInstance {
|
|
|
203
199
|
status: string;
|
|
204
200
|
commandsCallbackUrl: string;
|
|
205
201
|
commandsCallbackMethod: string;
|
|
206
|
-
smsFallbackMethod:
|
|
202
|
+
smsFallbackMethod: string;
|
|
207
203
|
smsFallbackUrl: string;
|
|
208
|
-
smsMethod:
|
|
204
|
+
smsMethod: string;
|
|
209
205
|
smsUrl: string;
|
|
210
|
-
voiceFallbackMethod:
|
|
206
|
+
voiceFallbackMethod: string;
|
|
211
207
|
voiceFallbackUrl: string;
|
|
212
|
-
voiceMethod:
|
|
208
|
+
voiceMethod: string;
|
|
213
209
|
voiceUrl: string;
|
|
214
210
|
dateCreated: Date;
|
|
215
211
|
dateUpdated: Date;
|
|
@@ -261,13 +257,13 @@ export declare class SimInstance {
|
|
|
261
257
|
status: string;
|
|
262
258
|
commandsCallbackUrl: string;
|
|
263
259
|
commandsCallbackMethod: string;
|
|
264
|
-
smsFallbackMethod:
|
|
260
|
+
smsFallbackMethod: string;
|
|
265
261
|
smsFallbackUrl: string;
|
|
266
|
-
smsMethod:
|
|
262
|
+
smsMethod: string;
|
|
267
263
|
smsUrl: string;
|
|
268
|
-
voiceFallbackMethod:
|
|
264
|
+
voiceFallbackMethod: string;
|
|
269
265
|
voiceFallbackUrl: string;
|
|
270
|
-
voiceMethod:
|
|
266
|
+
voiceMethod: string;
|
|
271
267
|
voiceUrl: string;
|
|
272
268
|
dateCreated: Date;
|
|
273
269
|
dateUpdated: Date;
|
|
@@ -3,8 +3,8 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V1 from "../../../V1";
|
|
6
|
-
type InteractionResourceStatus = "accepted" | "answered" | "busy" | "canceled" | "completed" | "deleted" | "delivered" | "delivery-unknown" | "failed" | "in-progress" | "initiated" | "no-answer" | "queued" | "received" | "receiving" | "ringing" | "scheduled" | "sending" | "sent" | "undelivered" | "unknown";
|
|
7
|
-
type InteractionType = "message" | "voice" | "unknown";
|
|
6
|
+
export type InteractionResourceStatus = "accepted" | "answered" | "busy" | "canceled" | "completed" | "deleted" | "delivered" | "delivery-unknown" | "failed" | "in-progress" | "initiated" | "no-answer" | "queued" | "received" | "receiving" | "ringing" | "scheduled" | "sending" | "sent" | "undelivered" | "unknown";
|
|
7
|
+
export type InteractionType = "message" | "voice" | "unknown";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to each
|
|
10
10
|
*/
|
|
@@ -3,8 +3,8 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../../http/response";
|
|
5
5
|
import V1 from "../../../../V1";
|
|
6
|
-
type MessageInteractionResourceStatus = "accepted" | "answered" | "busy" | "canceled" | "completed" | "deleted" | "delivered" | "delivery-unknown" | "failed" | "in-progress" | "initiated" | "no-answer" | "queued" | "received" | "receiving" | "ringing" | "scheduled" | "sending" | "sent" | "undelivered" | "unknown";
|
|
7
|
-
type MessageInteractionType = "message" | "voice" | "unknown";
|
|
6
|
+
export type MessageInteractionResourceStatus = "accepted" | "answered" | "busy" | "canceled" | "completed" | "deleted" | "delivered" | "delivery-unknown" | "failed" | "in-progress" | "initiated" | "no-answer" | "queued" | "received" | "receiving" | "ringing" | "scheduled" | "sending" | "sent" | "undelivered" | "unknown";
|
|
7
|
+
export type MessageInteractionType = "message" | "voice" | "unknown";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to create a MessageInteractionInstance
|
|
10
10
|
*/
|
|
@@ -5,8 +5,8 @@ import Response from "../../../../http/response";
|
|
|
5
5
|
import V1 from "../../V1";
|
|
6
6
|
import { InteractionListInstance } from "./session/interaction";
|
|
7
7
|
import { ParticipantListInstance } from "./session/participant";
|
|
8
|
-
type SessionMode = "message-only" | "voice-only" | "voice-and-message";
|
|
9
|
-
type SessionStatus = "open" | "in-progress" | "closed" | "failed" | "unknown";
|
|
8
|
+
export type SessionMode = "message-only" | "voice-only" | "voice-and-message";
|
|
9
|
+
export type SessionStatus = "open" | "in-progress" | "closed" | "failed" | "unknown";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to update a SessionInstance
|
|
12
12
|
*/
|
|
@@ -6,8 +6,8 @@ import V1 from "../V1";
|
|
|
6
6
|
import { PhoneNumberListInstance } from "./service/phoneNumber";
|
|
7
7
|
import { SessionListInstance } from "./service/session";
|
|
8
8
|
import { ShortCodeListInstance } from "./service/shortCode";
|
|
9
|
-
type ServiceGeoMatchLevel = "area-code" | "overlay" | "radius" | "country";
|
|
10
|
-
type ServiceNumberSelectionBehavior = "avoid-sticky" | "prefer-sticky";
|
|
9
|
+
export type ServiceGeoMatchLevel = "area-code" | "overlay" | "radius" | "country";
|
|
10
|
+
export type ServiceNumberSelectionBehavior = "avoid-sticky" | "prefer-sticky";
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to update a ServiceInstance
|
|
13
13
|
*/
|
|
@@ -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 V1 from "../../../V1";
|
|
6
|
-
type AssetVersionVisibility = "public" | "private" | "protected";
|
|
6
|
+
export type AssetVersionVisibility = "public" | "private" | "protected";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../../../V1";
|
|
4
|
-
type BuildStatusStatus = "building" | "completed" | "failed";
|
|
4
|
+
export type BuildStatusStatus = "building" | "completed" | "failed";
|
|
5
5
|
export interface BuildStatusContext {
|
|
6
6
|
/**
|
|
7
7
|
* Fetch a BuildStatusInstance
|
|
@@ -4,8 +4,8 @@ import Page, { TwilioResponsePayload } from "../../../../base/Page";
|
|
|
4
4
|
import Response from "../../../../http/response";
|
|
5
5
|
import V1 from "../../V1";
|
|
6
6
|
import { BuildStatusListInstance } from "./build/buildStatus";
|
|
7
|
-
type BuildRuntime = "node8" | "node10" | "node12" | "node14" | "node16";
|
|
8
|
-
type BuildStatus = "building" | "completed" | "failed";
|
|
7
|
+
export type BuildRuntime = "node8" | "node10" | "node12" | "node14" | "node16";
|
|
8
|
+
export type BuildStatus = "building" | "completed" | "failed";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to create a BuildInstance
|
|
11
11
|
*/
|
|
@@ -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 V1 from "../../../V1";
|
|
6
|
-
type LogLevel = "info" | "warn" | "error";
|
|
6
|
+
export type LogLevel = "info" | "warn" | "error";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -4,7 +4,7 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V1 from "../../../V1";
|
|
6
6
|
import { FunctionVersionContentListInstance } from "./functionVersion/functionVersionContent";
|
|
7
|
-
type FunctionVersionVisibility = "public" | "private" | "protected";
|
|
7
|
+
export type FunctionVersionVisibility = "public" | "private" | "protected";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to each
|
|
10
10
|
*/
|
|
@@ -5,7 +5,7 @@ import Response from "../../../../http/response";
|
|
|
5
5
|
import V1 from "../../V1";
|
|
6
6
|
import { EngagementContextListInstance } from "./engagement/engagementContext";
|
|
7
7
|
import { StepListInstance } from "./engagement/step";
|
|
8
|
-
type EngagementStatus = "active" | "ended";
|
|
8
|
+
export type EngagementStatus = "active" | "ended";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to create a EngagementInstance
|
|
11
11
|
*/
|
|
@@ -5,7 +5,7 @@ import Response from "../../../../http/response";
|
|
|
5
5
|
import V1 from "../../V1";
|
|
6
6
|
import { ExecutionContextListInstance } from "./execution/executionContext";
|
|
7
7
|
import { ExecutionStepListInstance } from "./execution/executionStep";
|
|
8
|
-
type ExecutionStatus = "active" | "ended";
|
|
8
|
+
export type ExecutionStatus = "active" | "ended";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to update a ExecutionInstance
|
|
11
11
|
*/
|
|
@@ -5,7 +5,7 @@ import Response from "../../../http/response";
|
|
|
5
5
|
import V1 from "../V1";
|
|
6
6
|
import { EngagementListInstance } from "./flow/engagement";
|
|
7
7
|
import { ExecutionListInstance } from "./flow/execution";
|
|
8
|
-
type FlowStatus = "draft" | "published";
|
|
8
|
+
export type FlowStatus = "draft" | "published";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to each
|
|
11
11
|
*/
|
|
@@ -5,7 +5,7 @@ import Response from "../../../../http/response";
|
|
|
5
5
|
import V2 from "../../V2";
|
|
6
6
|
import { ExecutionContextListInstance } from "./execution/executionContext";
|
|
7
7
|
import { ExecutionStepListInstance } from "./execution/executionStep";
|
|
8
|
-
type ExecutionStatus = "active" | "ended";
|
|
8
|
+
export type ExecutionStatus = "active" | "ended";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to update a ExecutionInstance
|
|
11
11
|
*/
|
|
@@ -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 V2 from "../../V2";
|
|
6
|
-
type FlowRevisionStatus = "draft" | "published";
|
|
6
|
+
export type FlowRevisionStatus = "draft" | "published";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -6,7 +6,7 @@ import V2 from "../V2";
|
|
|
6
6
|
import { ExecutionListInstance } from "./flow/execution";
|
|
7
7
|
import { FlowRevisionListInstance } from "./flow/flowRevision";
|
|
8
8
|
import { FlowTestUserListInstance } from "./flow/flowTestUser";
|
|
9
|
-
type FlowStatus = "draft" | "published";
|
|
9
|
+
export type FlowStatus = "draft" | "published";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to update a FlowInstance
|
|
12
12
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2 from "../V2";
|
|
4
|
-
type FlowValidateStatus = "draft" | "published";
|
|
4
|
+
export type FlowValidateStatus = "draft" | "published";
|
|
5
5
|
/**
|
|
6
6
|
* Options to pass to update a FlowValidateInstance
|
|
7
7
|
*/
|
|
@@ -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 V1 from "../V1";
|
|
6
|
-
type EsimProfileStatus = "new" | "reserving" | "available" | "downloaded" | "installed" | "failed";
|
|
6
|
+
export type EsimProfileStatus = "new" | "reserving" | "available" | "downloaded" | "installed" | "failed";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to create a EsimProfileInstance
|
|
9
9
|
*/
|
|
@@ -12,6 +12,8 @@ export interface EsimProfileListInstanceCreateOptions {
|
|
|
12
12
|
callbackUrl?: string;
|
|
13
13
|
/** The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is POST. */
|
|
14
14
|
callbackMethod?: string;
|
|
15
|
+
/** When set to `true`, a value for `Eid` does not need to be provided. Instead, when the eSIM profile is reserved, a matching ID will be generated and returned via the `matching_id` property. This identifies the specific eSIM profile that can be used by any capable device to claim and download the profile. */
|
|
16
|
+
generateMatchingId?: boolean;
|
|
15
17
|
/** Identifier of the eUICC that will claim the eSIM Profile. */
|
|
16
18
|
eid?: string;
|
|
17
19
|
}
|
|
@@ -109,6 +111,8 @@ interface EsimProfileResource {
|
|
|
109
111
|
status: EsimProfileStatus;
|
|
110
112
|
eid: string;
|
|
111
113
|
smdp_plus_address: string;
|
|
114
|
+
matching_id: string;
|
|
115
|
+
activation_code: string;
|
|
112
116
|
error_code: string;
|
|
113
117
|
error_message: string;
|
|
114
118
|
date_created: Date;
|
|
@@ -145,6 +149,14 @@ export declare class EsimProfileInstance {
|
|
|
145
149
|
* Address of the SM-DP+ server from which the Profile will be downloaded. The URL will appear once the eSIM Profile reaches the status `available`.
|
|
146
150
|
*/
|
|
147
151
|
smdpPlusAddress: string;
|
|
152
|
+
/**
|
|
153
|
+
* Unique identifier of the eSIM profile that can be used to identify and download the eSIM profile from the SM-DP+ server. Populated if `generate_matching_id` is set to `true` when creating the eSIM profile reservation.
|
|
154
|
+
*/
|
|
155
|
+
matchingId: string;
|
|
156
|
+
/**
|
|
157
|
+
* Combined machine-readable activation code for acquiring an eSIM Profile with the Activation Code download method. Can be used in a QR code to download an eSIM profile.
|
|
158
|
+
*/
|
|
159
|
+
activationCode: string;
|
|
148
160
|
/**
|
|
149
161
|
* Code indicating the failure if the download of the SIM Profile failed and the eSIM Profile is in `failed` state.
|
|
150
162
|
*/
|
|
@@ -187,6 +199,8 @@ export declare class EsimProfileInstance {
|
|
|
187
199
|
status: EsimProfileStatus;
|
|
188
200
|
eid: string;
|
|
189
201
|
smdpPlusAddress: string;
|
|
202
|
+
matchingId: string;
|
|
203
|
+
activationCode: string;
|
|
190
204
|
errorCode: string;
|
|
191
205
|
errorMessage: string;
|
|
192
206
|
dateCreated: Date;
|
|
@@ -64,6 +64,8 @@ class EsimProfileInstance {
|
|
|
64
64
|
this.status = payload.status;
|
|
65
65
|
this.eid = payload.eid;
|
|
66
66
|
this.smdpPlusAddress = payload.smdp_plus_address;
|
|
67
|
+
this.matchingId = payload.matching_id;
|
|
68
|
+
this.activationCode = payload.activation_code;
|
|
67
69
|
this.errorCode = payload.error_code;
|
|
68
70
|
this.errorMessage = payload.error_message;
|
|
69
71
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
@@ -101,6 +103,8 @@ class EsimProfileInstance {
|
|
|
101
103
|
status: this.status,
|
|
102
104
|
eid: this.eid,
|
|
103
105
|
smdpPlusAddress: this.smdpPlusAddress,
|
|
106
|
+
matchingId: this.matchingId,
|
|
107
|
+
activationCode: this.activationCode,
|
|
104
108
|
errorCode: this.errorCode,
|
|
105
109
|
errorMessage: this.errorMessage,
|
|
106
110
|
dateCreated: this.dateCreated,
|
|
@@ -134,6 +138,8 @@ function EsimProfileListInstance(version) {
|
|
|
134
138
|
data["CallbackUrl"] = params["callbackUrl"];
|
|
135
139
|
if (params["callbackMethod"] !== undefined)
|
|
136
140
|
data["CallbackMethod"] = params["callbackMethod"];
|
|
141
|
+
if (params["generateMatchingId"] !== undefined)
|
|
142
|
+
data["GenerateMatchingId"] = serialize.bool(params["generateMatchingId"]);
|
|
137
143
|
if (params["eid"] !== undefined)
|
|
138
144
|
data["Eid"] = params["eid"];
|
|
139
145
|
const headers = {};
|
|
@@ -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 V1 from "../V1";
|
|
6
|
-
type FleetDataMetering = "payg";
|
|
6
|
+
export type FleetDataMetering = "payg";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to update a FleetInstance
|
|
9
9
|
*/
|
|
@@ -135,8 +135,6 @@ export declare class FleetContextImpl implements FleetContext {
|
|
|
135
135
|
toJSON(): FleetContextSolution;
|
|
136
136
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
137
137
|
}
|
|
138
|
-
export type FleetSmsCommandsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
139
|
-
export type FleetIpCommandsMethod = "HEAD" | "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
|
|
140
138
|
interface FleetPayload extends TwilioResponsePayload {
|
|
141
139
|
fleets: FleetResource[];
|
|
142
140
|
}
|
|
@@ -152,10 +150,10 @@ interface FleetResource {
|
|
|
152
150
|
data_metering: FleetDataMetering;
|
|
153
151
|
sms_commands_enabled: boolean;
|
|
154
152
|
sms_commands_url: string;
|
|
155
|
-
sms_commands_method:
|
|
153
|
+
sms_commands_method: string;
|
|
156
154
|
network_access_profile_sid: string;
|
|
157
155
|
ip_commands_url: string;
|
|
158
|
-
ip_commands_method:
|
|
156
|
+
ip_commands_method: string;
|
|
159
157
|
}
|
|
160
158
|
export declare class FleetInstance {
|
|
161
159
|
protected _version: V1;
|
|
@@ -206,7 +204,7 @@ export declare class FleetInstance {
|
|
|
206
204
|
/**
|
|
207
205
|
* A string representing the HTTP method to use when making a request to `sms_commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`.
|
|
208
206
|
*/
|
|
209
|
-
smsCommandsMethod:
|
|
207
|
+
smsCommandsMethod: string;
|
|
210
208
|
/**
|
|
211
209
|
* The SID of the Network Access Profile that controls which cellular networks the Fleet\'s SIMs can connect to.
|
|
212
210
|
*/
|
|
@@ -218,7 +216,7 @@ export declare class FleetInstance {
|
|
|
218
216
|
/**
|
|
219
217
|
* A string representing the HTTP method to use when making a request to `ip_commands_url`. Can be one of `POST` or `GET`. Defaults to `POST`.
|
|
220
218
|
*/
|
|
221
|
-
ipCommandsMethod:
|
|
219
|
+
ipCommandsMethod: string;
|
|
222
220
|
private get _proxy();
|
|
223
221
|
/**
|
|
224
222
|
* Fetch a FleetInstance
|
|
@@ -262,10 +260,10 @@ export declare class FleetInstance {
|
|
|
262
260
|
dataMetering: "payg";
|
|
263
261
|
smsCommandsEnabled: boolean;
|
|
264
262
|
smsCommandsUrl: string;
|
|
265
|
-
smsCommandsMethod:
|
|
263
|
+
smsCommandsMethod: string;
|
|
266
264
|
networkAccessProfileSid: string;
|
|
267
265
|
ipCommandsUrl: string;
|
|
268
|
-
ipCommandsMethod:
|
|
266
|
+
ipCommandsMethod: string;
|
|
269
267
|
};
|
|
270
268
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
271
269
|
}
|
|
@@ -3,9 +3,9 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
4
4
|
import Response from "../../../http/response";
|
|
5
5
|
import V1 from "../V1";
|
|
6
|
-
type IpCommandDirection = "to_sim" | "from_sim";
|
|
7
|
-
type IpCommandPayloadType = "text" | "binary";
|
|
8
|
-
type IpCommandStatus = "queued" | "sent" | "received" | "failed";
|
|
6
|
+
export type IpCommandDirection = "to_sim" | "from_sim";
|
|
7
|
+
export type IpCommandPayloadType = "text" | "binary";
|
|
8
|
+
export type IpCommandStatus = "queued" | "sent" | "received" | "failed";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to create a IpCommandInstance
|
|
11
11
|
*/
|
|
@@ -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 V1 from "../V1";
|
|
6
|
-
type SettingsUpdateStatus = "scheduled" | "in-progress" | "successful" | "failed";
|
|
6
|
+
export type SettingsUpdateStatus = "scheduled" | "in-progress" | "successful" | "failed";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -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 V1 from "../../V1";
|
|
6
|
-
type BillingPeriodBpType = "ready" | "active";
|
|
6
|
+
export type BillingPeriodBpType = "ready" | "active";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -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 V1 from "../../V1";
|
|
6
|
-
type SimIpAddressIpAddressVersion = "IPv4" | "IPv6";
|
|
6
|
+
export type SimIpAddressIpAddressVersion = "IPv4" | "IPv6";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -5,8 +5,8 @@ import Response from "../../../http/response";
|
|
|
5
5
|
import V1 from "../V1";
|
|
6
6
|
import { BillingPeriodListInstance } from "./sim/billingPeriod";
|
|
7
7
|
import { SimIpAddressListInstance } from "./sim/simIpAddress";
|
|
8
|
-
type SimStatus = "new" | "ready" | "active" | "inactive" | "scheduled";
|
|
9
|
-
type SimStatusUpdate = "ready" | "active" | "inactive";
|
|
8
|
+
export type SimStatus = "new" | "ready" | "active" | "inactive" | "scheduled";
|
|
9
|
+
export type SimStatusUpdate = "ready" | "active" | "inactive";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to update a SimInstance
|
|
12
12
|
*/
|
|
@@ -3,8 +3,8 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
4
4
|
import Response from "../../../http/response";
|
|
5
5
|
import V1 from "../V1";
|
|
6
|
-
type SmsCommandDirection = "to_sim" | "from_sim";
|
|
7
|
-
type SmsCommandStatus = "queued" | "sent" | "delivered" | "received" | "failed";
|
|
6
|
+
export type SmsCommandDirection = "to_sim" | "from_sim";
|
|
7
|
+
export type SmsCommandStatus = "queued" | "sent" | "delivered" | "received" | "failed";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to create a SmsCommandInstance
|
|
10
10
|
*/
|
|
@@ -3,8 +3,8 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
4
4
|
import Response from "../../../http/response";
|
|
5
5
|
import V1 from "../V1";
|
|
6
|
-
type UsageRecordGranularity = "hour" | "day" | "all";
|
|
7
|
-
type UsageRecordGroup = "sim" | "fleet" | "network" | "isoCountry";
|
|
6
|
+
export type UsageRecordGranularity = "hour" | "day" | "all";
|
|
7
|
+
export type UsageRecordGroup = "sim" | "fleet" | "network" | "isoCountry";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to each
|
|
10
10
|
*/
|
|
@@ -3,8 +3,8 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V1 from "../../../V1";
|
|
6
|
-
type SyncListItemQueryFromBoundType = "inclusive" | "exclusive";
|
|
7
|
-
type SyncListItemQueryResultOrder = "asc" | "desc";
|
|
6
|
+
export type SyncListItemQueryFromBoundType = "inclusive" | "exclusive";
|
|
7
|
+
export type SyncListItemQueryResultOrder = "asc" | "desc";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to remove a SyncListItemInstance
|
|
10
10
|
*/
|
|
@@ -3,8 +3,8 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V1 from "../../../V1";
|
|
6
|
-
type SyncMapItemQueryFromBoundType = "inclusive" | "exclusive";
|
|
7
|
-
type SyncMapItemQueryResultOrder = "asc" | "desc";
|
|
6
|
+
export type SyncMapItemQueryFromBoundType = "inclusive" | "exclusive";
|
|
7
|
+
export type SyncMapItemQueryResultOrder = "asc" | "desc";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to remove a SyncMapItemInstance
|
|
10
10
|
*/
|
|
@@ -3,10 +3,10 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V1 from "../../../V1";
|
|
6
|
-
type
|
|
7
|
-
type
|
|
8
|
-
type
|
|
9
|
-
type
|
|
6
|
+
export type ReservationCallStatus = "initiated" | "ringing" | "answered" | "completed";
|
|
7
|
+
export type ReservationConferenceEvent = "start" | "end" | "join" | "leave" | "mute" | "hold" | "speaker";
|
|
8
|
+
export type ReservationStatus = "pending" | "accepted" | "rejected" | "timeout" | "canceled" | "rescinded" | "wrapping" | "completed";
|
|
9
|
+
export type ReservationSupervisorMode = "monitor" | "whisper" | "barge";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to update a ReservationInstance
|
|
12
12
|
*/
|
|
@@ -14,7 +14,7 @@ export interface ReservationContextUpdateOptions {
|
|
|
14
14
|
/** The If-Match HTTP request header */
|
|
15
15
|
ifMatch?: string;
|
|
16
16
|
/** */
|
|
17
|
-
reservationStatus?:
|
|
17
|
+
reservationStatus?: ReservationStatus;
|
|
18
18
|
/** The new worker activity SID if rejecting a reservation. */
|
|
19
19
|
workerActivitySid?: string;
|
|
20
20
|
/** The assignment instruction for reservation. */
|
|
@@ -60,7 +60,7 @@ export interface ReservationContextUpdateOptions {
|
|
|
60
60
|
/** The HTTP method we should use to call `status_callback`. Can be: `POST` or `GET` and the default is `POST`. */
|
|
61
61
|
statusCallbackMethod?: string;
|
|
62
62
|
/** The call progress events that we will send to `status_callback`. Can be: `initiated`, `ringing`, `answered`, or `completed`. */
|
|
63
|
-
statusCallbackEvent?: Array<
|
|
63
|
+
statusCallbackEvent?: Array<ReservationCallStatus>;
|
|
64
64
|
/** Timeout for call when executing a Conference instruction. */
|
|
65
65
|
timeout?: number;
|
|
66
66
|
/** Whether to record the participant and their conferences, including the time between conferences. The default is `false`. */
|
|
@@ -86,7 +86,7 @@ export interface ReservationContextUpdateOptions {
|
|
|
86
86
|
/** The HTTP method we should use to call `conference_status_callback`. Can be: `GET` or `POST` and defaults to `POST`. */
|
|
87
87
|
conferenceStatusCallbackMethod?: string;
|
|
88
88
|
/** The conference status events that we will send to `conference_status_callback`. Can be: `start`, `end`, `join`, `leave`, `mute`, `hold`, `speaker`. */
|
|
89
|
-
conferenceStatusCallbackEvent?: Array<
|
|
89
|
+
conferenceStatusCallbackEvent?: Array<ReservationConferenceEvent>;
|
|
90
90
|
/** Whether to record the conference the participant is joining or when to record the conference. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. */
|
|
91
91
|
conferenceRecord?: string;
|
|
92
92
|
/** How to trim the leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. */
|
|
@@ -112,7 +112,7 @@ export interface ReservationContextUpdateOptions {
|
|
|
112
112
|
/** The new worker activity SID after executing a Conference instruction. */
|
|
113
113
|
postWorkActivitySid?: string;
|
|
114
114
|
/** */
|
|
115
|
-
supervisorMode?:
|
|
115
|
+
supervisorMode?: ReservationSupervisorMode;
|
|
116
116
|
/** The Supervisor SID/URI when executing the Supervise instruction. */
|
|
117
117
|
supervisor?: string;
|
|
118
118
|
/** Whether to end the conference when the customer leaves. */
|
|
@@ -125,7 +125,7 @@ export interface ReservationContextUpdateOptions {
|
|
|
125
125
|
*/
|
|
126
126
|
export interface ReservationListInstanceEachOptions {
|
|
127
127
|
/** Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. */
|
|
128
|
-
reservationStatus?:
|
|
128
|
+
reservationStatus?: ReservationStatus;
|
|
129
129
|
/** The SID of the reserved Worker resource to read. */
|
|
130
130
|
workerSid?: string;
|
|
131
131
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -142,7 +142,7 @@ export interface ReservationListInstanceEachOptions {
|
|
|
142
142
|
*/
|
|
143
143
|
export interface ReservationListInstanceOptions {
|
|
144
144
|
/** Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. */
|
|
145
|
-
reservationStatus?:
|
|
145
|
+
reservationStatus?: ReservationStatus;
|
|
146
146
|
/** The SID of the reserved Worker resource to read. */
|
|
147
147
|
workerSid?: string;
|
|
148
148
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -155,7 +155,7 @@ export interface ReservationListInstanceOptions {
|
|
|
155
155
|
*/
|
|
156
156
|
export interface ReservationListInstancePageOptions {
|
|
157
157
|
/** Returns the list of reservations for a task with a specified ReservationStatus. Can be: `pending`, `accepted`, `rejected`, or `timeout`. */
|
|
158
|
-
reservationStatus?:
|
|
158
|
+
reservationStatus?: ReservationStatus;
|
|
159
159
|
/** The SID of the reserved Worker resource to read. */
|
|
160
160
|
workerSid?: string;
|
|
161
161
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
@@ -224,7 +224,7 @@ interface ReservationResource {
|
|
|
224
224
|
account_sid: string;
|
|
225
225
|
date_created: Date;
|
|
226
226
|
date_updated: Date;
|
|
227
|
-
reservation_status:
|
|
227
|
+
reservation_status: ReservationStatus;
|
|
228
228
|
sid: string;
|
|
229
229
|
task_sid: string;
|
|
230
230
|
worker_name: string;
|
|
@@ -250,7 +250,7 @@ export declare class ReservationInstance {
|
|
|
250
250
|
* The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
251
251
|
*/
|
|
252
252
|
dateUpdated: Date;
|
|
253
|
-
reservationStatus:
|
|
253
|
+
reservationStatus: ReservationStatus;
|
|
254
254
|
/**
|
|
255
255
|
* The unique string that we created to identify the TaskReservation resource.
|
|
256
256
|
*/
|
|
@@ -314,7 +314,7 @@ export declare class ReservationInstance {
|
|
|
314
314
|
accountSid: string;
|
|
315
315
|
dateCreated: Date;
|
|
316
316
|
dateUpdated: Date;
|
|
317
|
-
reservationStatus:
|
|
317
|
+
reservationStatus: ReservationStatus;
|
|
318
318
|
sid: string;
|
|
319
319
|
taskSid: string;
|
|
320
320
|
workerName: string;
|
|
@@ -4,7 +4,7 @@ import Page, { TwilioResponsePayload } from "../../../../base/Page";
|
|
|
4
4
|
import Response from "../../../../http/response";
|
|
5
5
|
import V1 from "../../V1";
|
|
6
6
|
import { ReservationListInstance } from "./task/reservation";
|
|
7
|
-
type TaskStatus = "pending" | "reserved" | "assigned" | "canceled" | "completed" | "wrapping";
|
|
7
|
+
export type TaskStatus = "pending" | "reserved" | "assigned" | "canceled" | "completed" | "wrapping";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to remove a TaskInstance
|
|
10
10
|
*/
|
|
@@ -7,7 +7,7 @@ import { TaskQueueCumulativeStatisticsListInstance } from "./taskQueue/taskQueue
|
|
|
7
7
|
import { TaskQueueRealTimeStatisticsListInstance } from "./taskQueue/taskQueueRealTimeStatistics";
|
|
8
8
|
import { TaskQueueStatisticsListInstance } from "./taskQueue/taskQueueStatistics";
|
|
9
9
|
import { TaskQueuesStatisticsListInstance } from "./taskQueue/taskQueuesStatistics";
|
|
10
|
-
type TaskQueueTaskOrder = "FIFO" | "LIFO";
|
|
10
|
+
export type TaskQueueTaskOrder = "FIFO" | "LIFO";
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to update a TaskQueueInstance
|
|
13
13
|
*/
|