twilio 4.7.2 → 4.8.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/index.d.ts +52 -36
- package/lib/index.js +32 -51
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +2 -2
- package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/feedback.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/feedbackSummary.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/payment.d.ts +5 -5
- package/lib/rest/api/v2010/account/call/recording.d.ts +2 -2
- 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 +2 -2
- package/lib/rest/api/v2010/account/conference.d.ts +4 -4
- package/lib/rest/api/v2010/account/connectApp.d.ts +1 -1
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +4 -4
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +4 -4
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +4 -4
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +4 -4
- package/lib/rest/api/v2010/account/message/feedback.d.ts +1 -1
- package/lib/rest/api/v2010/account/message.d.ts +6 -6
- package/lib/rest/api/v2010/account/recording/addOnResult.d.ts +1 -1
- package/lib/rest/api/v2010/account/recording/transcription.d.ts +1 -1
- package/lib/rest/api/v2010/account/recording.d.ts +2 -2
- package/lib/rest/api/v2010/account/transcription.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/allTime.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/daily.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/lastMonth.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/monthly.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/thisMonth.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/today.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/yearly.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record/yesterday.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/record.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +3 -3
- 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 +2 -2
- 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/conversations/v1/addressConfiguration.d.ts +3 -3
- package/lib/rest/conversations/v1/configuration/webhook.d.ts +2 -2
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +1 -1
- package/lib/rest/conversations/v1/conversation/message.d.ts +2 -2
- package/lib/rest/conversations/v1/conversation/participant.d.ts +1 -1
- package/lib/rest/conversations/v1/conversation/webhook.d.ts +2 -2
- 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 +1 -1
- package/lib/rest/conversations/v1/service/configuration/webhook.d.ts +1 -1
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +1 -1
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +2 -2
- package/lib/rest/conversations/v1/service/conversation/participant.d.ts +1 -1
- package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +2 -2
- package/lib/rest/conversations/v1/service/conversation.d.ts +2 -2
- package/lib/rest/conversations/v1/service/participantConversation.d.ts +1 -1
- package/lib/rest/conversations/v1/service/role.d.ts +1 -1
- package/lib/rest/conversations/v1/service/user/userConversation.d.ts +2 -2
- package/lib/rest/conversations/v1/service/user.d.ts +1 -1
- 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/assessments.d.ts +138 -10
- package/lib/rest/flexApi/v1/assessments.js +138 -22
- 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/insightsQuestionnairesQuestion.d.ts +6 -0
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.js +2 -0
- 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 +4 -4
- 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 +4 -4
- package/lib/rest/insights/v1/room.d.ts +8 -8
- 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 +2 -2
- 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 +3 -3
- package/lib/rest/media/v1/mediaRecording.d.ts +3 -3
- package/lib/rest/media/v1/playerStreamer.d.ts +4 -4
- package/lib/rest/messaging/v1/brandRegistration/brandVetting.d.ts +1 -1
- package/lib/rest/messaging/v1/brandRegistration.d.ts +3 -3
- package/lib/rest/messaging/v1/service.d.ts +1 -1
- 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/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/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/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 +1 -1
- package/lib/rest/supersim/v1/fleet.d.ts +1 -1
- 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 +4 -4
- 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 +3 -3
- package/lib/rest/taskrouter/v1/workspace.d.ts +1 -1
- package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +1 -1
- package/lib/rest/trunking/v1/trunk/recording.d.ts +2 -2
- package/lib/rest/trunking/v1/trunk.d.ts +2 -2
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +1 -1
- package/lib/rest/trusthub/v1/customerProfiles.d.ts +1 -1
- package/lib/rest/trusthub/v1/supportingDocument.d.ts +1 -1
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +1 -1
- package/lib/rest/trusthub/v1/trustProducts.d.ts +1 -1
- 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 +2 -2
- 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 +2 -2
- package/lib/rest/video/v1/compositionHook.d.ts +1 -1
- package/lib/rest/video/v1/recording.d.ts +4 -4
- package/lib/rest/video/v1/room/participant/anonymize.d.ts +1 -1
- package/lib/rest/video/v1/room/participant/publishedTrack.d.ts +1 -1
- package/lib/rest/video/v1/room/participant/subscribedTrack.d.ts +1 -1
- package/lib/rest/video/v1/room/participant.d.ts +1 -1
- package/lib/rest/video/v1/room/roomRecording.d.ts +4 -4
- package/lib/rest/video/v1/room.d.ts +3 -3
- 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 +2 -2
- package/lib/rest/wireless/v1/usageRecord.d.ts +1 -1
- package/package.json +2 -5
|
@@ -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 TaskReservationCallStatus = "initiated" | "ringing" | "answered" | "completed";
|
|
7
|
-
type TaskReservationConferenceEvent = "start" | "end" | "join" | "leave" | "mute" | "hold" | "speaker";
|
|
8
|
-
type TaskReservationStatus = "pending" | "accepted" | "rejected" | "timeout" | "canceled" | "rescinded" | "wrapping" | "completed";
|
|
9
|
-
type TaskReservationSupervisorMode = "monitor" | "whisper" | "barge";
|
|
6
|
+
export type TaskReservationCallStatus = "initiated" | "ringing" | "answered" | "completed";
|
|
7
|
+
export type TaskReservationConferenceEvent = "start" | "end" | "join" | "leave" | "mute" | "hold" | "speaker";
|
|
8
|
+
export type TaskReservationStatus = "pending" | "accepted" | "rejected" | "timeout" | "canceled" | "rescinded" | "wrapping" | "completed";
|
|
9
|
+
export type TaskReservationSupervisorMode = "monitor" | "whisper" | "barge";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to update a ReservationInstance
|
|
12
12
|
*/
|
|
@@ -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
|
*/
|
|
@@ -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 WorkerReservationCallStatus = "initiated" | "ringing" | "answered" | "completed";
|
|
7
|
-
type WorkerReservationConferenceEvent = "start" | "end" | "join" | "leave" | "mute" | "hold" | "speaker";
|
|
8
|
-
type WorkerReservationStatus = "pending" | "accepted" | "rejected" | "timeout" | "canceled" | "rescinded" | "wrapping" | "completed";
|
|
6
|
+
export type WorkerReservationCallStatus = "initiated" | "ringing" | "answered" | "completed";
|
|
7
|
+
export type WorkerReservationConferenceEvent = "start" | "end" | "join" | "leave" | "mute" | "hold" | "speaker";
|
|
8
|
+
export type WorkerReservationStatus = "pending" | "accepted" | "rejected" | "timeout" | "canceled" | "rescinded" | "wrapping" | "completed";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to update a ReservationInstance
|
|
11
11
|
*/
|
|
@@ -13,7 +13,7 @@ import { WorkflowListInstance } from "./workspace/workflow";
|
|
|
13
13
|
import { WorkspaceCumulativeStatisticsListInstance } from "./workspace/workspaceCumulativeStatistics";
|
|
14
14
|
import { WorkspaceRealTimeStatisticsListInstance } from "./workspace/workspaceRealTimeStatistics";
|
|
15
15
|
import { WorkspaceStatisticsListInstance } from "./workspace/workspaceStatistics";
|
|
16
|
-
type WorkspaceQueueOrder = "FIFO" | "LIFO";
|
|
16
|
+
export type WorkspaceQueueOrder = "FIFO" | "LIFO";
|
|
17
17
|
/**
|
|
18
18
|
* Options to pass to update a WorkspaceInstance
|
|
19
19
|
*/
|
|
@@ -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 PhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
|
|
6
|
+
export type PhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to create a PhoneNumberInstance
|
|
9
9
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../../V1";
|
|
4
|
-
type RecordingRecordingMode = "do-not-record" | "record-from-ringing" | "record-from-answer" | "record-from-ringing-dual" | "record-from-answer-dual";
|
|
5
|
-
type RecordingRecordingTrim = "trim-silence" | "do-not-trim";
|
|
4
|
+
export type RecordingRecordingMode = "do-not-record" | "record-from-ringing" | "record-from-answer" | "record-from-ringing-dual" | "record-from-answer-dual";
|
|
5
|
+
export type RecordingRecordingTrim = "trim-silence" | "do-not-trim";
|
|
6
6
|
/**
|
|
7
7
|
* Options to pass to update a RecordingInstance
|
|
8
8
|
*/
|
|
@@ -8,8 +8,8 @@ import { IpAccessControlListListInstance } from "./trunk/ipAccessControlList";
|
|
|
8
8
|
import { OriginationUrlListInstance } from "./trunk/originationUrl";
|
|
9
9
|
import { PhoneNumberListInstance } from "./trunk/phoneNumber";
|
|
10
10
|
import { RecordingListInstance } from "./trunk/recording";
|
|
11
|
-
type TrunkTransferCallerId = "from-transferee" | "from-transferor";
|
|
12
|
-
type TrunkTransferSetting = "disable-all" | "enable-all" | "sip-only";
|
|
11
|
+
export type TrunkTransferCallerId = "from-transferee" | "from-transferor";
|
|
12
|
+
export type TrunkTransferSetting = "disable-all" | "enable-all" | "sip-only";
|
|
13
13
|
/**
|
|
14
14
|
* Options to pass to update a TrunkInstance
|
|
15
15
|
*/
|
|
@@ -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 CustomerProfileEvaluationStatus = "compliant" | "noncompliant";
|
|
6
|
+
export type CustomerProfileEvaluationStatus = "compliant" | "noncompliant";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to create a CustomerProfilesEvaluationsInstance
|
|
9
9
|
*/
|
|
@@ -6,7 +6,7 @@ import V1 from "../V1";
|
|
|
6
6
|
import { CustomerProfilesChannelEndpointAssignmentListInstance } from "./customerProfiles/customerProfilesChannelEndpointAssignment";
|
|
7
7
|
import { CustomerProfilesEntityAssignmentsListInstance } from "./customerProfiles/customerProfilesEntityAssignments";
|
|
8
8
|
import { CustomerProfilesEvaluationsListInstance } from "./customerProfiles/customerProfilesEvaluations";
|
|
9
|
-
type CustomerProfileStatus = "draft" | "pending-review" | "in-review" | "twilio-rejected" | "twilio-approved";
|
|
9
|
+
export type CustomerProfileStatus = "draft" | "pending-review" | "in-review" | "twilio-rejected" | "twilio-approved";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to update a CustomerProfilesInstance
|
|
12
12
|
*/
|
|
@@ -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 SupportingDocumentStatus = "draft" | "pending-review" | "rejected" | "approved" | "expired" | "provisionally-approved";
|
|
6
|
+
export type SupportingDocumentStatus = "draft" | "pending-review" | "rejected" | "approved" | "expired" | "provisionally-approved";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to update a SupportingDocumentInstance
|
|
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 TrustProductEvaluationStatus = "compliant" | "noncompliant";
|
|
6
|
+
export type TrustProductEvaluationStatus = "compliant" | "noncompliant";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to create a TrustProductsEvaluationsInstance
|
|
9
9
|
*/
|
|
@@ -6,7 +6,7 @@ import V1 from "../V1";
|
|
|
6
6
|
import { TrustProductsChannelEndpointAssignmentListInstance } from "./trustProducts/trustProductsChannelEndpointAssignment";
|
|
7
7
|
import { TrustProductsEntityAssignmentsListInstance } from "./trustProducts/trustProductsEntityAssignments";
|
|
8
8
|
import { TrustProductsEvaluationsListInstance } from "./trustProducts/trustProductsEvaluations";
|
|
9
|
-
type TrustProductStatus = "draft" | "pending-review" | "in-review" | "twilio-rejected" | "twilio-approved";
|
|
9
|
+
export type TrustProductStatus = "draft" | "pending-review" | "in-review" | "twilio-rejected" | "twilio-approved";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to update a TrustProductsInstance
|
|
12
12
|
*/
|
|
@@ -4,10 +4,10 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2 from "../../../V2";
|
|
6
6
|
import { NotificationListInstance } from "./challenge/notification";
|
|
7
|
-
type ChallengeChallengeReasons = "none" | "not_needed" | "not_requested";
|
|
8
|
-
type ChallengeChallengeStatuses = "pending" | "expired" | "approved" | "denied";
|
|
9
|
-
type ChallengeFactorTypes = "push" | "totp";
|
|
10
|
-
type ChallengeListOrders = "asc" | "desc";
|
|
7
|
+
export type ChallengeChallengeReasons = "none" | "not_needed" | "not_requested";
|
|
8
|
+
export type ChallengeChallengeStatuses = "pending" | "expired" | "approved" | "denied";
|
|
9
|
+
export type ChallengeFactorTypes = "push" | "totp";
|
|
10
|
+
export type ChallengeListOrders = "asc" | "desc";
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to update a ChallengeInstance
|
|
13
13
|
*/
|
|
@@ -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 V2 from "../../../V2";
|
|
6
|
-
type FactorFactorStatuses = "unverified" | "verified";
|
|
7
|
-
type FactorFactorTypes = "push" | "totp";
|
|
8
|
-
type FactorTotpAlgorithms = "sha1" | "sha256" | "sha512";
|
|
6
|
+
export type FactorFactorStatuses = "unverified" | "verified";
|
|
7
|
+
export type FactorFactorTypes = "push" | "totp";
|
|
8
|
+
export type FactorTotpAlgorithms = "sha1" | "sha256" | "sha512";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to update a FactorInstance
|
|
11
11
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2 from "../../../V2";
|
|
4
|
-
type NewFactorFactorStatuses = "unverified" | "verified";
|
|
5
|
-
type NewFactorFactorTypes = "push" | "totp";
|
|
6
|
-
type NewFactorNotificationPlatforms = "apn" | "fcm" | "none";
|
|
7
|
-
type NewFactorTotpAlgorithms = "sha1" | "sha256" | "sha512";
|
|
4
|
+
export type NewFactorFactorStatuses = "unverified" | "verified";
|
|
5
|
+
export type NewFactorFactorTypes = "push" | "totp";
|
|
6
|
+
export type NewFactorNotificationPlatforms = "apn" | "fcm" | "none";
|
|
7
|
+
export type NewFactorTotpAlgorithms = "sha1" | "sha256" | "sha512";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to create a NewFactorInstance
|
|
10
10
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2 from "../../V2";
|
|
4
|
-
type VerificationChannel = "sms" | "call" | "email" | "whatsapp" | "sna";
|
|
5
|
-
type VerificationStatus = "canceled" | "approved";
|
|
4
|
+
export type VerificationChannel = "sms" | "call" | "email" | "whatsapp" | "sna";
|
|
5
|
+
export type VerificationStatus = "canceled" | "approved";
|
|
6
6
|
/**
|
|
7
7
|
* Options to pass to update a VerificationInstance
|
|
8
8
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2 from "../../V2";
|
|
4
|
-
type VerificationCheckChannel = "sms" | "call" | "email" | "whatsapp" | "sna";
|
|
4
|
+
export type VerificationCheckChannel = "sms" | "call" | "email" | "whatsapp" | "sna";
|
|
5
5
|
/**
|
|
6
6
|
* Options to pass to create a VerificationCheckInstance
|
|
7
7
|
*/
|
|
@@ -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 V2 from "../../V2";
|
|
6
|
-
type WebhookMethods = "GET" | "POST";
|
|
7
|
-
type WebhookStatus = "enabled" | "disabled";
|
|
8
|
-
type WebhookVersion = "v1" | "v2";
|
|
6
|
+
export type WebhookMethods = "GET" | "POST";
|
|
7
|
+
export type WebhookStatus = "enabled" | "disabled";
|
|
8
|
+
export type WebhookVersion = "v1" | "v2";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to update a WebhookInstance
|
|
11
11
|
*/
|
|
@@ -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 V2 from "../V2";
|
|
6
|
-
type VerificationAttemptChannels = "sms" | "call" | "email" | "whatsapp";
|
|
7
|
-
type VerificationAttemptConversionStatus = "converted" | "unconverted";
|
|
6
|
+
export type VerificationAttemptChannels = "sms" | "call" | "email" | "whatsapp";
|
|
7
|
+
export type VerificationAttemptConversionStatus = "converted" | "unconverted";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to each
|
|
10
10
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2 from "../V2";
|
|
4
|
-
type VerificationAttemptsSummaryChannels = "sms" | "call" | "email" | "whatsapp";
|
|
4
|
+
export type VerificationAttemptsSummaryChannels = "sms" | "call" | "email" | "whatsapp";
|
|
5
5
|
/**
|
|
6
6
|
* Options to pass to fetch a VerificationAttemptsSummaryInstance
|
|
7
7
|
*/
|
|
@@ -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 CompositionFormat = "mp4" | "webm";
|
|
7
|
-
type CompositionStatus = "enqueued" | "processing" | "completed" | "deleted" | "failed";
|
|
6
|
+
export type CompositionFormat = "mp4" | "webm";
|
|
7
|
+
export type CompositionStatus = "enqueued" | "processing" | "completed" | "deleted" | "failed";
|
|
8
8
|
/**
|
|
9
9
|
* Options to pass to create a CompositionInstance
|
|
10
10
|
*/
|
|
@@ -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 CompositionHookFormat = "mp4" | "webm";
|
|
6
|
+
export type CompositionHookFormat = "mp4" | "webm";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to update a CompositionHookInstance
|
|
9
9
|
*/
|
|
@@ -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 RecordingCodec = "VP8" | "H264" | "OPUS" | "PCMU";
|
|
7
|
-
type RecordingFormat = "mka" | "mkv";
|
|
8
|
-
type RecordingStatus = "processing" | "completed" | "deleted" | "failed";
|
|
9
|
-
type RecordingType = "audio" | "video" | "data";
|
|
6
|
+
export type RecordingCodec = "VP8" | "H264" | "OPUS" | "PCMU";
|
|
7
|
+
export type RecordingFormat = "mka" | "mkv";
|
|
8
|
+
export type RecordingStatus = "processing" | "completed" | "deleted" | "failed";
|
|
9
|
+
export type RecordingType = "audio" | "video" | "data";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to each
|
|
12
12
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../../../V1";
|
|
4
|
-
type RoomParticipantAnonymizeStatus = "connected" | "disconnected";
|
|
4
|
+
export type RoomParticipantAnonymizeStatus = "connected" | "disconnected";
|
|
5
5
|
export interface AnonymizeContext {
|
|
6
6
|
/**
|
|
7
7
|
* Update a AnonymizeInstance
|
|
@@ -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 RoomParticipantPublishedTrackKind = "audio" | "video" | "data";
|
|
6
|
+
export type RoomParticipantPublishedTrackKind = "audio" | "video" | "data";
|
|
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 RoomParticipantSubscribedTrackKind = "audio" | "video" | "data";
|
|
6
|
+
export type RoomParticipantSubscribedTrackKind = "audio" | "video" | "data";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
|
@@ -7,7 +7,7 @@ import { AnonymizeListInstance } from "./participant/anonymize";
|
|
|
7
7
|
import { PublishedTrackListInstance } from "./participant/publishedTrack";
|
|
8
8
|
import { SubscribeRulesListInstance } from "./participant/subscribeRules";
|
|
9
9
|
import { SubscribedTrackListInstance } from "./participant/subscribedTrack";
|
|
10
|
-
type RoomParticipantStatus = "connected" | "disconnected";
|
|
10
|
+
export type RoomParticipantStatus = "connected" | "disconnected";
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to update a ParticipantInstance
|
|
13
13
|
*/
|
|
@@ -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 RoomRecordingCodec = "VP8" | "H264" | "OPUS" | "PCMU";
|
|
7
|
-
type RoomRecordingFormat = "mka" | "mkv";
|
|
8
|
-
type RoomRecordingStatus = "processing" | "completed" | "deleted" | "failed";
|
|
9
|
-
type RoomRecordingType = "audio" | "video" | "data";
|
|
6
|
+
export type RoomRecordingCodec = "VP8" | "H264" | "OPUS" | "PCMU";
|
|
7
|
+
export type RoomRecordingFormat = "mka" | "mkv";
|
|
8
|
+
export type RoomRecordingStatus = "processing" | "completed" | "deleted" | "failed";
|
|
9
|
+
export type RoomRecordingType = "audio" | "video" | "data";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to each
|
|
12
12
|
*/
|
|
@@ -6,9 +6,9 @@ import V1 from "../V1";
|
|
|
6
6
|
import { ParticipantListInstance } from "./room/participant";
|
|
7
7
|
import { RecordingRulesListInstance } from "./room/recordingRules";
|
|
8
8
|
import { RoomRecordingListInstance } from "./room/roomRecording";
|
|
9
|
-
type RoomRoomStatus = "in-progress" | "completed" | "failed";
|
|
10
|
-
type RoomRoomType = "go" | "peer-to-peer" | "group" | "group-small";
|
|
11
|
-
type RoomVideoCodec = "VP8" | "H264";
|
|
9
|
+
export type RoomRoomStatus = "in-progress" | "completed" | "failed";
|
|
10
|
+
export type RoomRoomType = "go" | "peer-to-peer" | "group" | "group-small";
|
|
11
|
+
export type RoomVideoCodec = "VP8" | "H264";
|
|
12
12
|
/**
|
|
13
13
|
* Options to pass to update a RoomInstance
|
|
14
14
|
*/
|
|
@@ -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 CommandCommandMode = "text" | "binary";
|
|
7
|
-
type CommandDirection = "from_sim" | "to_sim";
|
|
8
|
-
type CommandStatus = "queued" | "sent" | "delivered" | "received" | "failed";
|
|
9
|
-
type CommandTransport = "sms" | "ip";
|
|
6
|
+
export type CommandCommandMode = "text" | "binary";
|
|
7
|
+
export type CommandDirection = "from_sim" | "to_sim";
|
|
8
|
+
export type CommandStatus = "queued" | "sent" | "delivered" | "received" | "failed";
|
|
9
|
+
export type CommandTransport = "sms" | "ip";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to create a CommandInstance
|
|
12
12
|
*/
|
|
@@ -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 UsageRecordGranularity = "hourly" | "daily" | "all";
|
|
6
|
+
export type UsageRecordGranularity = "hourly" | "daily" | "all";
|
|
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 { DataSessionListInstance } from "./sim/dataSession";
|
|
7
7
|
import { UsageRecordListInstance } from "./sim/usageRecord";
|
|
8
|
-
type SimResetStatus = "resetting";
|
|
9
|
-
type SimStatus = "new" | "ready" | "active" | "suspended" | "deactivated" | "canceled" | "scheduled" | "updating";
|
|
8
|
+
export type SimResetStatus = "resetting";
|
|
9
|
+
export type SimStatus = "new" | "ready" | "active" | "suspended" | "deactivated" | "canceled" | "scheduled" | "updating";
|
|
10
10
|
/**
|
|
11
11
|
* Options to pass to update a SimInstance
|
|
12
12
|
*/
|
|
@@ -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 AccountUsageRecordGranularity = "hourly" | "daily" | "all";
|
|
6
|
+
export type AccountUsageRecordGranularity = "hourly" | "daily" | "all";
|
|
7
7
|
/**
|
|
8
8
|
* Options to pass to each
|
|
9
9
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "twilio",
|
|
3
3
|
"description": "A Twilio helper library",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.8.0",
|
|
5
5
|
"author": "API Team <api@twilio.com>",
|
|
6
6
|
"contributors": [
|
|
7
7
|
{
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
"express": "^4.17.1",
|
|
43
43
|
"jest": "^29.3.1",
|
|
44
44
|
"jshint": "^2.11.0",
|
|
45
|
-
"localtunnel": "^2.0.2",
|
|
46
45
|
"mock-fs": "^5.2.0",
|
|
47
46
|
"nock": "^13.2.9",
|
|
48
47
|
"node-mocks-http": "^1.8.1",
|
|
@@ -53,7 +52,7 @@
|
|
|
53
52
|
},
|
|
54
53
|
"scripts": {
|
|
55
54
|
"test": "npm run test:javascript && npm run test:typescript",
|
|
56
|
-
"test:javascript": "jest spec
|
|
55
|
+
"test:javascript": "jest spec --coverage --detectOpenHandles --testPathIgnorePatterns=spec/cluster",
|
|
57
56
|
"test:typescript": "tsc --noEmit",
|
|
58
57
|
"jshint": "jshint src/rest/** src/base/** src/http/**",
|
|
59
58
|
"jscs": "eslint src/base/**/**.js src/http/**/**.js --fix",
|
|
@@ -64,8 +63,6 @@
|
|
|
64
63
|
"nsp": "npm audit --production",
|
|
65
64
|
"prettier": "prettier --write .",
|
|
66
65
|
"prettier-check": "prettier --check .",
|
|
67
|
-
"cluster": "jest ./cluster_test.spec.ts --coverage",
|
|
68
|
-
"webhook-test": "jest ./webhook_cluster_test.spec.ts --coverage",
|
|
69
66
|
"typedoc": "typedoc --entryPointStrategy expand src --out docs --logLevel Error"
|
|
70
67
|
},
|
|
71
68
|
"files": [
|