twilio 5.7.0 → 5.7.2
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/rest/Twilio.d.ts +0 -10
- package/lib/rest/Twilio.js +0 -11
- package/lib/rest/accounts/v1/bulkConsents.d.ts +4 -4
- package/lib/rest/accounts/v1/bulkConsents.js +1 -1
- package/lib/rest/accounts/v1/bulkContacts.d.ts +4 -4
- package/lib/rest/accounts/v1/bulkContacts.js +1 -1
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +15 -10
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.js +2 -2
- package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +3 -0
- package/lib/rest/api/v2010/account/call/event.d.ts +6 -6
- package/lib/rest/api/v2010/account/call/payment.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/recording.d.ts +3 -3
- package/lib/rest/api/v2010/account/conference/recording.d.ts +3 -3
- package/lib/rest/api/v2010/account/connectApp.d.ts +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +3 -3
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +3 -0
- package/lib/rest/api/v2010/account/recording.d.ts +4 -4
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +3 -0
- package/lib/rest/bulkexports/v1/export/day.d.ts +3 -3
- package/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +3 -3
- package/lib/rest/bulkexports/v1/export/job.d.ts +3 -3
- package/lib/rest/chat/v1/credential.d.ts +3 -0
- package/lib/rest/chat/v1/service/channel.d.ts +3 -0
- package/lib/rest/chat/v1/service/role.d.ts +3 -0
- package/lib/rest/chat/v1/service/user/userChannel.d.ts +3 -0
- package/lib/rest/chat/v1/service.d.ts +9 -9
- package/lib/rest/chat/v2/credential.d.ts +3 -0
- package/lib/rest/chat/v2/service/channel/message.d.ts +3 -3
- package/lib/rest/chat/v2/service/channel/webhook.d.ts +3 -3
- package/lib/rest/chat/v2/service/channel.d.ts +3 -0
- package/lib/rest/chat/v2/service/role.d.ts +3 -0
- package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -0
- package/lib/rest/chat/v2/service.d.ts +9 -9
- package/lib/rest/chat/v3/channel.d.ts +3 -0
- package/lib/rest/content/v2/content.d.ts +6 -6
- package/lib/rest/content/v2/contentAndApprovals.d.ts +9 -9
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +7 -7
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +6 -3
- package/lib/rest/conversations/v1/conversation/message.d.ts +9 -9
- package/lib/rest/conversations/v1/conversation/participant.d.ts +6 -6
- package/lib/rest/conversations/v1/conversation/webhook.d.ts +7 -7
- package/lib/rest/conversations/v1/conversation.d.ts +9 -9
- package/lib/rest/conversations/v1/conversationWithParticipants.d.ts +6 -6
- package/lib/rest/conversations/v1/credential.d.ts +6 -3
- package/lib/rest/conversations/v1/participantConversation.d.ts +12 -9
- package/lib/rest/conversations/v1/role.d.ts +6 -3
- package/lib/rest/conversations/v1/service/binding.d.ts +3 -3
- package/lib/rest/conversations/v1/service/configuration/notification.d.ts +9 -9
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +6 -3
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +9 -9
- package/lib/rest/conversations/v1/service/conversation/participant.d.ts +6 -6
- package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +7 -7
- package/lib/rest/conversations/v1/service/conversation.d.ts +9 -9
- package/lib/rest/conversations/v1/service/conversationWithParticipants.d.ts +6 -6
- package/lib/rest/conversations/v1/service/participantConversation.d.ts +12 -9
- package/lib/rest/conversations/v1/service/role.d.ts +6 -3
- package/lib/rest/conversations/v1/service/user/userConversation.d.ts +9 -6
- package/lib/rest/conversations/v1/service/user.d.ts +3 -3
- package/lib/rest/conversations/v1/service.d.ts +3 -3
- package/lib/rest/conversations/v1/user/userConversation.d.ts +9 -6
- package/lib/rest/conversations/v1/user.d.ts +3 -3
- package/lib/rest/events/v1/sink.d.ts +4 -4
- package/lib/rest/events/v1/subscription.d.ts +1 -1
- package/lib/rest/events/v1/subscription.js +1 -1
- package/lib/rest/flexApi/v1/assessments.d.ts +3 -3
- package/lib/rest/flexApi/v1/configuration.d.ts +66 -66
- package/lib/rest/flexApi/v1/flexFlow.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsConversations.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +6 -6
- package/lib/rest/flexApi/v1/insightsSegments.d.ts +9 -9
- package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +9 -9
- package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +3 -3
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +4 -4
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +5 -5
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.d.ts +6 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +4 -1
- package/lib/rest/flexApi/v1/interaction.d.ts +8 -8
- package/lib/rest/flexApi/v1/pluginConfiguration.d.ts +1 -1
- package/lib/rest/flexApi/v1/pluginConfiguration.js +1 -1
- package/lib/rest/frontlineApi/v1/user.d.ts +3 -0
- package/lib/rest/intelligence/v2/customOperator.d.ts +5 -5
- package/lib/rest/intelligence/v2/operator.d.ts +3 -3
- package/lib/rest/intelligence/v2/operatorType.d.ts +3 -3
- package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +3 -3
- package/lib/rest/intelligence/v2/service.d.ts +3 -0
- package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +15 -15
- package/lib/rest/intelligence/v2/transcript/sentence.d.ts +3 -3
- package/lib/rest/intelligence/v2/transcript.d.ts +4 -4
- package/lib/rest/ipMessaging/v1/service.d.ts +9 -9
- package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +3 -3
- package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +3 -3
- package/lib/rest/ipMessaging/v2/service.d.ts +9 -9
- package/lib/rest/lookups/V2.d.ts +20 -0
- package/lib/rest/lookups/V2.js +25 -0
- package/lib/rest/lookups/v2/bucket.d.ts +205 -0
- package/lib/rest/lookups/v2/bucket.js +187 -0
- package/lib/rest/lookups/v2/lookupOverride.d.ts +264 -0
- package/lib/rest/lookups/v2/lookupOverride.js +225 -0
- package/lib/rest/lookups/v2/phoneNumber.d.ts +3 -0
- package/lib/rest/lookups/v2/query.d.ts +175 -0
- package/lib/rest/lookups/v2/query.js +123 -0
- package/lib/rest/lookups/v2/rateLimit.d.ts +83 -0
- package/lib/rest/lookups/v2/rateLimit.js +82 -0
- package/lib/rest/messaging/v1/service/destinationAlphaSender.d.ts +6 -0
- package/lib/rest/messaging/v1/service/destinationAlphaSender.js +2 -0
- package/lib/rest/messaging/v1/service.d.ts +3 -3
- package/lib/rest/messaging/v2/channelsSender.d.ts +49 -4
- package/lib/rest/messaging/v2/channelsSender.js +14 -2
- package/lib/rest/monitor/v1/event.d.ts +3 -3
- package/lib/rest/notify/v1/credential.d.ts +3 -0
- package/lib/rest/notify/v1/service/notification.d.ts +28 -28
- package/lib/rest/numbers/v1/bulkEligibility.d.ts +3 -3
- package/lib/rest/numbers/v1/eligibility.d.ts +3 -3
- package/lib/rest/numbers/v1/portingPortIn.d.ts +6 -6
- package/lib/rest/numbers/v2/bulkHostedNumberOrder.d.ts +3 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +3 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +5 -5
- package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +3 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +3 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +8 -8
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +3 -3
- package/lib/rest/preview/marketplace/availableAddOn.d.ts +3 -3
- package/lib/rest/preview/marketplace/installedAddOn.d.ts +5 -5
- package/lib/rest/preview/wireless/sim/usage.d.ts +15 -15
- package/lib/rest/proxy/v1/service/session/interaction.d.ts +3 -0
- package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +3 -0
- package/lib/rest/proxy/v1/service/session.d.ts +1 -1
- package/lib/rest/proxy/v1/service/session.js +1 -1
- package/lib/rest/proxy/v1/service.d.ts +0 -8
- package/lib/rest/proxy/v1/service.js +0 -13
- package/lib/rest/serverless/v1/service/build.d.ts +9 -9
- package/lib/rest/serverless/v1/service/environment/log.d.ts +6 -7
- package/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/engagement/step.d.ts +3 -3
- package/lib/rest/studio/v1/flow/engagement.d.ts +4 -4
- package/lib/rest/studio/v1/flow/execution/executionContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/execution/executionStep.d.ts +3 -3
- package/lib/rest/studio/v1/flow/execution.d.ts +4 -4
- package/lib/rest/studio/v2/flow/execution/executionContext.d.ts +3 -3
- package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +3 -3
- package/lib/rest/studio/v2/flow/execution/executionStep.d.ts +3 -3
- package/lib/rest/studio/v2/flow/execution.d.ts +4 -4
- package/lib/rest/studio/v2/flow/flowRevision.d.ts +6 -6
- package/lib/rest/studio/v2/flow.d.ts +11 -11
- package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
- package/lib/rest/supersim/v1/network.d.ts +3 -3
- package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +3 -3
- package/lib/rest/supersim/v1/settingsUpdate.d.ts +3 -3
- package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +3 -0
- package/lib/rest/supersim/v1/usageRecord.d.ts +3 -3
- package/lib/rest/sync/v1/service/document/documentPermission.d.ts +3 -3
- package/lib/rest/sync/v1/service/document.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncList.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncMap.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncStream.d.ts +3 -3
- package/lib/rest/sync/v1/service.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/event.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +3 -0
- package/lib/rest/taskrouter/v1/workspace/task.d.ts +4 -1
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +12 -12
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +3 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace.d.ts +3 -0
- package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +3 -0
- package/lib/rest/trunking/v1/trunk/recording.d.ts +6 -0
- package/lib/rest/trunking/v1/trunk.d.ts +12 -3
- package/lib/rest/trunking/v1/trunk.js +2 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +3 -3
- package/lib/rest/trusthub/v1/customerProfiles.d.ts +3 -3
- package/lib/rest/trusthub/v1/endUser.d.ts +5 -5
- package/lib/rest/trusthub/v1/endUserType.d.ts +3 -3
- package/lib/rest/trusthub/v1/policies.d.ts +3 -3
- package/lib/rest/trusthub/v1/supportingDocument.d.ts +5 -5
- package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +3 -3
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +3 -3
- package/lib/rest/trusthub/v1/trustProducts.d.ts +3 -3
- package/lib/rest/verify/v2/form.d.ts +9 -6
- package/lib/rest/verify/v2/service/accessToken.d.ts +3 -0
- package/lib/rest/verify/v2/service/entity/challenge.d.ts +21 -12
- package/lib/rest/verify/v2/service/entity/challenge.js +1 -1
- package/lib/rest/verify/v2/service/entity/factor.d.ts +12 -6
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +16 -10
- package/lib/rest/verify/v2/service/verification.d.ts +11 -11
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +3 -3
- package/lib/rest/verify/v2/service/webhook.d.ts +3 -0
- package/lib/rest/verify/v2/service.d.ts +9 -9
- package/lib/rest/verify/v2/template.d.ts +3 -3
- package/lib/rest/verify/v2/verificationAttempt.d.ts +13 -10
- package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +2 -2
- package/lib/rest/video/v1/composition.d.ts +3 -3
- package/lib/rest/video/v1/recording.d.ts +3 -3
- package/lib/rest/video/v1/room/transcriptions.d.ts +316 -0
- package/lib/rest/{proxy/v1/service/shortCode.js → video/v1/room/transcriptions.js} +61 -78
- package/lib/rest/video/v1/room.d.ts +8 -0
- package/lib/rest/video/v1/room.js +13 -0
- package/lib/rest/wireless/v1/sim/dataSession.d.ts +3 -3
- package/lib/rest/wireless/v1/sim/usageRecord.d.ts +9 -9
- package/lib/rest/wireless/v1/usageRecord.d.ts +9 -9
- package/lib/twiml/VoiceResponse.d.ts +32 -1
- package/lib/twiml/VoiceResponse.js +18 -0
- package/package.json +1 -1
- package/lib/rest/Knowledge.d.ts +0 -4
- package/lib/rest/Knowledge.js +0 -8
- package/lib/rest/KnowledgeBase.d.ts +0 -13
- package/lib/rest/KnowledgeBase.js +0 -31
- package/lib/rest/Microvisor.d.ts +0 -14
- package/lib/rest/Microvisor.js +0 -22
- package/lib/rest/MicrovisorBase.d.ts +0 -13
- package/lib/rest/MicrovisorBase.js +0 -31
- package/lib/rest/knowledge/V1.d.ts +0 -15
- package/lib/rest/knowledge/V1.js +0 -36
- package/lib/rest/knowledge/v1/knowledge/chunk.d.ts +0 -167
- package/lib/rest/knowledge/v1/knowledge/chunk.js +0 -131
- package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.d.ts +0 -101
- package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.js +0 -118
- package/lib/rest/knowledge/v1/knowledge.d.ts +0 -406
- package/lib/rest/knowledge/v1/knowledge.js +0 -300
- package/lib/rest/microvisor/V1.d.ts +0 -30
- package/lib/rest/microvisor/V1.js +0 -56
- package/lib/rest/microvisor/v1/accountConfig.d.ts +0 -263
- package/lib/rest/microvisor/v1/accountConfig.js +0 -254
- package/lib/rest/microvisor/v1/accountSecret.d.ts +0 -257
- package/lib/rest/microvisor/v1/accountSecret.js +0 -252
- package/lib/rest/microvisor/v1/app/appManifest.d.ts +0 -101
- package/lib/rest/microvisor/v1/app/appManifest.js +0 -118
- package/lib/rest/microvisor/v1/app.d.ts +0 -251
- package/lib/rest/microvisor/v1/app.js +0 -222
- package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +0 -271
- package/lib/rest/microvisor/v1/device/deviceConfig.js +0 -262
- package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +0 -265
- package/lib/rest/microvisor/v1/device/deviceSecret.js +0 -260
- package/lib/rest/microvisor/v1/device.d.ts +0 -299
- package/lib/rest/microvisor/v1/device.js +0 -250
- package/lib/rest/proxy/v1/service/shortCode.d.ts +0 -316
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../../V1";
|
|
4
|
+
/**
|
|
5
|
+
* The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual.
|
|
6
|
+
*/
|
|
4
7
|
export type RecordingRecordingMode = "do-not-record" | "record-from-ringing" | "record-from-answer" | "record-from-ringing-dual" | "record-from-answer-dual";
|
|
8
|
+
/**
|
|
9
|
+
* The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence.
|
|
10
|
+
*/
|
|
5
11
|
export type RecordingRecordingTrim = "trim-silence" | "do-not-trim";
|
|
6
12
|
/**
|
|
7
13
|
* Options to pass to update a RecordingInstance
|
|
@@ -12,6 +12,9 @@ import { RecordingListInstance } from "./trunk/recording";
|
|
|
12
12
|
* Caller Id for transfer target. Can be: `from-transferee` (default) or `from-transferor`.
|
|
13
13
|
*/
|
|
14
14
|
export type TrunkTransferCallerId = "from-transferee" | "from-transferor";
|
|
15
|
+
/**
|
|
16
|
+
* The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information.
|
|
17
|
+
*/
|
|
15
18
|
export type TrunkTransferSetting = "disable-all" | "enable-all" | "sip-only";
|
|
16
19
|
/**
|
|
17
20
|
* Options to pass to update a TrunkInstance
|
|
@@ -172,11 +175,12 @@ interface TrunkResource {
|
|
|
172
175
|
disaster_recovery_url: string;
|
|
173
176
|
friendly_name: string;
|
|
174
177
|
secure: boolean;
|
|
175
|
-
recording:
|
|
178
|
+
recording: any;
|
|
176
179
|
transfer_mode: TrunkTransferSetting;
|
|
177
180
|
transfer_caller_id: TrunkTransferCallerId;
|
|
178
181
|
cnam_lookup_enabled: boolean;
|
|
179
182
|
auth_type: string;
|
|
183
|
+
symmetric_rtp_enabled: boolean;
|
|
180
184
|
auth_type_set: Array<string>;
|
|
181
185
|
date_created: Date;
|
|
182
186
|
date_updated: Date;
|
|
@@ -216,7 +220,7 @@ export declare class TrunkInstance {
|
|
|
216
220
|
/**
|
|
217
221
|
* The recording settings for the trunk. Can be: `do-not-record`, `record-from-ringing`, `record-from-answer`. If set to `record-from-ringing` or `record-from-answer`, all calls going through the trunk will be recorded. The only way to change recording parameters is on a sub-resource of a Trunk after it has been created. e.g.`/Trunks/[Trunk_SID]/Recording -XPOST -d\'Mode=record-from-answer\'`. See [Recording](https://www.twilio.com/docs/sip-trunking#recording) for more information.
|
|
218
222
|
*/
|
|
219
|
-
recording:
|
|
223
|
+
recording: any;
|
|
220
224
|
transferMode: TrunkTransferSetting;
|
|
221
225
|
transferCallerId: TrunkTransferCallerId;
|
|
222
226
|
/**
|
|
@@ -227,6 +231,10 @@ export declare class TrunkInstance {
|
|
|
227
231
|
* The types of authentication mapped to the domain. Can be: `IP_ACL` and `CREDENTIAL_LIST`. If both are mapped, the values are returned in a comma delimited list. If empty, the domain will not receive any traffic.
|
|
228
232
|
*/
|
|
229
233
|
authType: string;
|
|
234
|
+
/**
|
|
235
|
+
* Whether Symmetric RTP is enabled for the trunk. When Symmetric RTP is disabled, Twilio will send RTP to the destination negotiated in the SDP. Disabling Symmetric RTP is considered to be more secure and therefore recommended. See [Symmetric RTP](https://www.twilio.com/docs/sip-trunking#symmetric-rtp) for more information.
|
|
236
|
+
*/
|
|
237
|
+
symmetricRtpEnabled: boolean;
|
|
230
238
|
/**
|
|
231
239
|
* Reserved.
|
|
232
240
|
*/
|
|
@@ -317,11 +325,12 @@ export declare class TrunkInstance {
|
|
|
317
325
|
disasterRecoveryUrl: string;
|
|
318
326
|
friendlyName: string;
|
|
319
327
|
secure: boolean;
|
|
320
|
-
recording:
|
|
328
|
+
recording: any;
|
|
321
329
|
transferMode: TrunkTransferSetting;
|
|
322
330
|
transferCallerId: TrunkTransferCallerId;
|
|
323
331
|
cnamLookupEnabled: boolean;
|
|
324
332
|
authType: string;
|
|
333
|
+
symmetricRtpEnabled: boolean;
|
|
325
334
|
authTypeSet: string[];
|
|
326
335
|
dateCreated: Date;
|
|
327
336
|
dateUpdated: Date;
|
|
@@ -156,6 +156,7 @@ class TrunkInstance {
|
|
|
156
156
|
this.transferCallerId = payload.transfer_caller_id;
|
|
157
157
|
this.cnamLookupEnabled = payload.cnam_lookup_enabled;
|
|
158
158
|
this.authType = payload.auth_type;
|
|
159
|
+
this.symmetricRtpEnabled = payload.symmetric_rtp_enabled;
|
|
159
160
|
this.authTypeSet = payload.auth_type_set;
|
|
160
161
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
161
162
|
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
@@ -240,6 +241,7 @@ class TrunkInstance {
|
|
|
240
241
|
transferCallerId: this.transferCallerId,
|
|
241
242
|
cnamLookupEnabled: this.cnamLookupEnabled,
|
|
242
243
|
authType: this.authType,
|
|
244
|
+
symmetricRtpEnabled: this.symmetricRtpEnabled,
|
|
243
245
|
authTypeSet: this.authTypeSet,
|
|
244
246
|
dateCreated: this.dateCreated,
|
|
245
247
|
dateUpdated: this.dateUpdated,
|
|
@@ -89,7 +89,7 @@ interface CustomerProfilesEvaluationsResource {
|
|
|
89
89
|
policy_sid: string;
|
|
90
90
|
customer_profile_sid: string;
|
|
91
91
|
status: CustomerProfilesEvaluationsStatus;
|
|
92
|
-
results: Array<
|
|
92
|
+
results: Array<any>;
|
|
93
93
|
date_created: Date;
|
|
94
94
|
url: string;
|
|
95
95
|
}
|
|
@@ -118,7 +118,7 @@ export declare class CustomerProfilesEvaluationsInstance {
|
|
|
118
118
|
/**
|
|
119
119
|
* The results of the Evaluation which includes the valid and invalid attributes.
|
|
120
120
|
*/
|
|
121
|
-
results: Array<
|
|
121
|
+
results: Array<any>;
|
|
122
122
|
dateCreated: Date;
|
|
123
123
|
url: string;
|
|
124
124
|
private get _proxy();
|
|
@@ -141,7 +141,7 @@ export declare class CustomerProfilesEvaluationsInstance {
|
|
|
141
141
|
policySid: string;
|
|
142
142
|
customerProfileSid: string;
|
|
143
143
|
status: CustomerProfilesEvaluationsStatus;
|
|
144
|
-
results:
|
|
144
|
+
results: any[];
|
|
145
145
|
dateCreated: Date;
|
|
146
146
|
url: string;
|
|
147
147
|
};
|
|
@@ -171,7 +171,7 @@ interface CustomerProfilesResource {
|
|
|
171
171
|
date_updated: Date;
|
|
172
172
|
url: string;
|
|
173
173
|
links: Record<string, string>;
|
|
174
|
-
errors: Array<
|
|
174
|
+
errors: Array<any>;
|
|
175
175
|
}
|
|
176
176
|
export declare class CustomerProfilesInstance {
|
|
177
177
|
protected _version: V1;
|
|
@@ -226,7 +226,7 @@ export declare class CustomerProfilesInstance {
|
|
|
226
226
|
/**
|
|
227
227
|
* The error codes associated with the rejection of the Customer-Profile.
|
|
228
228
|
*/
|
|
229
|
-
errors: Array<
|
|
229
|
+
errors: Array<any>;
|
|
230
230
|
private get _proxy();
|
|
231
231
|
/**
|
|
232
232
|
* Remove a CustomerProfilesInstance
|
|
@@ -291,7 +291,7 @@ export declare class CustomerProfilesInstance {
|
|
|
291
291
|
dateUpdated: Date;
|
|
292
292
|
url: string;
|
|
293
293
|
links: Record<string, string>;
|
|
294
|
-
errors:
|
|
294
|
+
errors: any[];
|
|
295
295
|
};
|
|
296
296
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
297
297
|
}
|
|
@@ -10,7 +10,7 @@ export interface EndUserContextUpdateOptions {
|
|
|
10
10
|
/** The string that you assigned to describe the resource. */
|
|
11
11
|
friendlyName?: string;
|
|
12
12
|
/** The set of parameters that are the attributes of the End User resource which are derived End User Types. */
|
|
13
|
-
attributes?:
|
|
13
|
+
attributes?: any;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Options to pass to create a EndUserInstance
|
|
@@ -21,7 +21,7 @@ export interface EndUserListInstanceCreateOptions {
|
|
|
21
21
|
/** The type of end user of the Bundle resource - can be `individual` or `business`. */
|
|
22
22
|
type: string;
|
|
23
23
|
/** The set of parameters that are the attributes of the End User resource which are derived End User Types. */
|
|
24
|
-
attributes?:
|
|
24
|
+
attributes?: any;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Options to pass to each
|
|
@@ -123,7 +123,7 @@ interface EndUserResource {
|
|
|
123
123
|
account_sid: string;
|
|
124
124
|
friendly_name: string;
|
|
125
125
|
type: string;
|
|
126
|
-
attributes:
|
|
126
|
+
attributes: any;
|
|
127
127
|
date_created: Date;
|
|
128
128
|
date_updated: Date;
|
|
129
129
|
url: string;
|
|
@@ -152,7 +152,7 @@ export declare class EndUserInstance {
|
|
|
152
152
|
/**
|
|
153
153
|
* The set of parameters that are the attributes of the End Users resource which are listed in the End User Types.
|
|
154
154
|
*/
|
|
155
|
-
attributes:
|
|
155
|
+
attributes: any;
|
|
156
156
|
/**
|
|
157
157
|
* The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
158
158
|
*/
|
|
@@ -209,7 +209,7 @@ export declare class EndUserInstance {
|
|
|
209
209
|
accountSid: string;
|
|
210
210
|
friendlyName: string;
|
|
211
211
|
type: string;
|
|
212
|
-
attributes:
|
|
212
|
+
attributes: any;
|
|
213
213
|
dateCreated: Date;
|
|
214
214
|
dateUpdated: Date;
|
|
215
215
|
url: string;
|
|
@@ -75,7 +75,7 @@ interface EndUserTypeResource {
|
|
|
75
75
|
sid: string;
|
|
76
76
|
friendly_name: string;
|
|
77
77
|
machine_name: string;
|
|
78
|
-
fields: Array<
|
|
78
|
+
fields: Array<any>;
|
|
79
79
|
url: string;
|
|
80
80
|
}
|
|
81
81
|
export declare class EndUserTypeInstance {
|
|
@@ -98,7 +98,7 @@ export declare class EndUserTypeInstance {
|
|
|
98
98
|
/**
|
|
99
99
|
* The required information for creating an End-User. The required fields will change as regulatory needs change and will differ for businesses and individuals.
|
|
100
100
|
*/
|
|
101
|
-
fields: Array<
|
|
101
|
+
fields: Array<any>;
|
|
102
102
|
/**
|
|
103
103
|
* The absolute URL of the End-User Type resource.
|
|
104
104
|
*/
|
|
@@ -121,7 +121,7 @@ export declare class EndUserTypeInstance {
|
|
|
121
121
|
sid: string;
|
|
122
122
|
friendlyName: string;
|
|
123
123
|
machineName: string;
|
|
124
|
-
fields:
|
|
124
|
+
fields: any[];
|
|
125
125
|
url: string;
|
|
126
126
|
};
|
|
127
127
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
@@ -74,7 +74,7 @@ interface PoliciesPayload extends TwilioResponsePayload {
|
|
|
74
74
|
interface PoliciesResource {
|
|
75
75
|
sid: string;
|
|
76
76
|
friendly_name: string;
|
|
77
|
-
requirements:
|
|
77
|
+
requirements: any;
|
|
78
78
|
url: string;
|
|
79
79
|
}
|
|
80
80
|
export declare class PoliciesInstance {
|
|
@@ -93,7 +93,7 @@ export declare class PoliciesInstance {
|
|
|
93
93
|
/**
|
|
94
94
|
* The SID of an object that holds the policy information
|
|
95
95
|
*/
|
|
96
|
-
requirements:
|
|
96
|
+
requirements: any;
|
|
97
97
|
/**
|
|
98
98
|
* The absolute URL of the Policy resource.
|
|
99
99
|
*/
|
|
@@ -115,7 +115,7 @@ export declare class PoliciesInstance {
|
|
|
115
115
|
toJSON(): {
|
|
116
116
|
sid: string;
|
|
117
117
|
friendlyName: string;
|
|
118
|
-
requirements:
|
|
118
|
+
requirements: any;
|
|
119
119
|
url: string;
|
|
120
120
|
};
|
|
121
121
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
@@ -14,7 +14,7 @@ export interface SupportingDocumentContextUpdateOptions {
|
|
|
14
14
|
/** The string that you assigned to describe the resource. */
|
|
15
15
|
friendlyName?: string;
|
|
16
16
|
/** The set of parameters that are the attributes of the Supporting Document resource which are derived Supporting Document Types. */
|
|
17
|
-
attributes?:
|
|
17
|
+
attributes?: any;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
20
|
* Options to pass to create a SupportingDocumentInstance
|
|
@@ -25,7 +25,7 @@ export interface SupportingDocumentListInstanceCreateOptions {
|
|
|
25
25
|
/** The type of the Supporting Document. */
|
|
26
26
|
type: string;
|
|
27
27
|
/** The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types. */
|
|
28
|
-
attributes?:
|
|
28
|
+
attributes?: any;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* Options to pass to each
|
|
@@ -129,7 +129,7 @@ interface SupportingDocumentResource {
|
|
|
129
129
|
mime_type: string;
|
|
130
130
|
status: SupportingDocumentStatus;
|
|
131
131
|
type: string;
|
|
132
|
-
attributes:
|
|
132
|
+
attributes: any;
|
|
133
133
|
date_created: Date;
|
|
134
134
|
date_updated: Date;
|
|
135
135
|
url: string;
|
|
@@ -163,7 +163,7 @@ export declare class SupportingDocumentInstance {
|
|
|
163
163
|
/**
|
|
164
164
|
* The set of parameters that are the attributes of the Supporting Documents resource which are listed in the Supporting Document Types.
|
|
165
165
|
*/
|
|
166
|
-
attributes:
|
|
166
|
+
attributes: any;
|
|
167
167
|
/**
|
|
168
168
|
* The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
169
169
|
*/
|
|
@@ -222,7 +222,7 @@ export declare class SupportingDocumentInstance {
|
|
|
222
222
|
mimeType: string;
|
|
223
223
|
status: SupportingDocumentStatus;
|
|
224
224
|
type: string;
|
|
225
|
-
attributes:
|
|
225
|
+
attributes: any;
|
|
226
226
|
dateCreated: Date;
|
|
227
227
|
dateUpdated: Date;
|
|
228
228
|
url: string;
|
|
@@ -75,7 +75,7 @@ interface SupportingDocumentTypeResource {
|
|
|
75
75
|
sid: string;
|
|
76
76
|
friendly_name: string;
|
|
77
77
|
machine_name: string;
|
|
78
|
-
fields: Array<
|
|
78
|
+
fields: Array<any>;
|
|
79
79
|
url: string;
|
|
80
80
|
}
|
|
81
81
|
export declare class SupportingDocumentTypeInstance {
|
|
@@ -98,7 +98,7 @@ export declare class SupportingDocumentTypeInstance {
|
|
|
98
98
|
/**
|
|
99
99
|
* The required information for creating a Supporting Document. The required fields will change as regulatory needs change and will differ for businesses and individuals.
|
|
100
100
|
*/
|
|
101
|
-
fields: Array<
|
|
101
|
+
fields: Array<any>;
|
|
102
102
|
/**
|
|
103
103
|
* The absolute URL of the Supporting Document Type resource.
|
|
104
104
|
*/
|
|
@@ -121,7 +121,7 @@ export declare class SupportingDocumentTypeInstance {
|
|
|
121
121
|
sid: string;
|
|
122
122
|
friendlyName: string;
|
|
123
123
|
machineName: string;
|
|
124
|
-
fields:
|
|
124
|
+
fields: any[];
|
|
125
125
|
url: string;
|
|
126
126
|
};
|
|
127
127
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
@@ -89,7 +89,7 @@ interface TrustProductsEvaluationsResource {
|
|
|
89
89
|
policy_sid: string;
|
|
90
90
|
trust_product_sid: string;
|
|
91
91
|
status: TrustProductsEvaluationsStatus;
|
|
92
|
-
results: Array<
|
|
92
|
+
results: Array<any>;
|
|
93
93
|
date_created: Date;
|
|
94
94
|
url: string;
|
|
95
95
|
}
|
|
@@ -118,7 +118,7 @@ export declare class TrustProductsEvaluationsInstance {
|
|
|
118
118
|
/**
|
|
119
119
|
* The results of the Evaluation which includes the valid and invalid attributes.
|
|
120
120
|
*/
|
|
121
|
-
results: Array<
|
|
121
|
+
results: Array<any>;
|
|
122
122
|
dateCreated: Date;
|
|
123
123
|
url: string;
|
|
124
124
|
private get _proxy();
|
|
@@ -141,7 +141,7 @@ export declare class TrustProductsEvaluationsInstance {
|
|
|
141
141
|
policySid: string;
|
|
142
142
|
trustProductSid: string;
|
|
143
143
|
status: TrustProductsEvaluationsStatus;
|
|
144
|
-
results:
|
|
144
|
+
results: any[];
|
|
145
145
|
dateCreated: Date;
|
|
146
146
|
url: string;
|
|
147
147
|
};
|
|
@@ -171,7 +171,7 @@ interface TrustProductsResource {
|
|
|
171
171
|
date_updated: Date;
|
|
172
172
|
url: string;
|
|
173
173
|
links: Record<string, string>;
|
|
174
|
-
errors: Array<
|
|
174
|
+
errors: Array<any>;
|
|
175
175
|
}
|
|
176
176
|
export declare class TrustProductsInstance {
|
|
177
177
|
protected _version: V1;
|
|
@@ -226,7 +226,7 @@ export declare class TrustProductsInstance {
|
|
|
226
226
|
/**
|
|
227
227
|
* The error codes associated with the rejection of the Trust Product.
|
|
228
228
|
*/
|
|
229
|
-
errors: Array<
|
|
229
|
+
errors: Array<any>;
|
|
230
230
|
private get _proxy();
|
|
231
231
|
/**
|
|
232
232
|
* Remove a TrustProductsInstance
|
|
@@ -291,7 +291,7 @@ export declare class TrustProductsInstance {
|
|
|
291
291
|
dateUpdated: Date;
|
|
292
292
|
url: string;
|
|
293
293
|
links: Record<string, string>;
|
|
294
|
-
errors:
|
|
294
|
+
errors: any[];
|
|
295
295
|
};
|
|
296
296
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
297
297
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2 from "../V2";
|
|
4
|
+
/**
|
|
5
|
+
* The Type of this Form. Currently only `form-push` is supported.
|
|
6
|
+
*/
|
|
4
7
|
export type FormFormTypes = "form-push";
|
|
5
8
|
export interface FormContext {
|
|
6
9
|
/**
|
|
@@ -36,8 +39,8 @@ export declare class FormContextImpl implements FormContext {
|
|
|
36
39
|
}
|
|
37
40
|
interface FormResource {
|
|
38
41
|
form_type: FormFormTypes;
|
|
39
|
-
forms:
|
|
40
|
-
form_meta:
|
|
42
|
+
forms: any;
|
|
43
|
+
form_meta: any;
|
|
41
44
|
url: string;
|
|
42
45
|
}
|
|
43
46
|
export declare class FormInstance {
|
|
@@ -49,11 +52,11 @@ export declare class FormInstance {
|
|
|
49
52
|
/**
|
|
50
53
|
* Object that contains the available forms for this type. This available forms are given in the standard [JSON Schema](https://json-schema.org/) format
|
|
51
54
|
*/
|
|
52
|
-
forms:
|
|
55
|
+
forms: any;
|
|
53
56
|
/**
|
|
54
57
|
* Additional information for the available forms for this type. E.g. The separator string used for `binding` in a Factor push.
|
|
55
58
|
*/
|
|
56
|
-
formMeta:
|
|
59
|
+
formMeta: any;
|
|
57
60
|
/**
|
|
58
61
|
* The URL to access the forms for this type.
|
|
59
62
|
*/
|
|
@@ -74,8 +77,8 @@ export declare class FormInstance {
|
|
|
74
77
|
*/
|
|
75
78
|
toJSON(): {
|
|
76
79
|
formType: "form-push";
|
|
77
|
-
forms:
|
|
78
|
-
formMeta:
|
|
80
|
+
forms: any;
|
|
81
|
+
formMeta: any;
|
|
79
82
|
url: string;
|
|
80
83
|
};
|
|
81
84
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2 from "../../V2";
|
|
4
|
+
/**
|
|
5
|
+
* The Type of the Factor. Currently only `push` is supported.
|
|
6
|
+
*/
|
|
4
7
|
export type AccessTokenFactorTypes = "push";
|
|
5
8
|
/**
|
|
6
9
|
* Options to pass to create a AccessTokenInstance
|
|
@@ -4,8 +4,17 @@ 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
|
+
/**
|
|
8
|
+
* Reason for the Challenge to be in certain `status`. One of `none`, `not_needed` or `not_requested`.
|
|
9
|
+
*/
|
|
7
10
|
export type ChallengeChallengeReasons = "none" | "not_needed" | "not_requested";
|
|
11
|
+
/**
|
|
12
|
+
* The Status of this Challenge. One of `pending`, `expired`, `approved` or `denied`.
|
|
13
|
+
*/
|
|
8
14
|
export type ChallengeChallengeStatuses = "pending" | "expired" | "approved" | "denied";
|
|
15
|
+
/**
|
|
16
|
+
* The Factor Type of this Challenge. Currently `push` and `totp` are supported.
|
|
17
|
+
*/
|
|
9
18
|
export type ChallengeFactorTypes = "push" | "totp";
|
|
10
19
|
export type ChallengeListOrders = "asc" | "desc";
|
|
11
20
|
/**
|
|
@@ -15,7 +24,7 @@ export interface ChallengeContextUpdateOptions {
|
|
|
15
24
|
/** The optional payload needed to verify the Challenge. E.g., a TOTP would use the numeric code. For `TOTP` this value must be between 3 and 8 characters long. For `Push` this value can be up to 5456 characters in length */
|
|
16
25
|
authPayload?: string;
|
|
17
26
|
/** Custom metadata associated with the challenge. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\\\"os\\\": \\\"Android\\\"}`. Can be up to 1024 characters in length. */
|
|
18
|
-
metadata?:
|
|
27
|
+
metadata?: any;
|
|
19
28
|
}
|
|
20
29
|
/**
|
|
21
30
|
* Options to pass to create a ChallengeInstance
|
|
@@ -28,9 +37,9 @@ export interface ChallengeListInstanceCreateOptions {
|
|
|
28
37
|
/** Shown to the user when the push notification arrives. Required when `factor_type` is `push`. Can be up to 256 characters in length */
|
|
29
38
|
"details.message"?: string;
|
|
30
39
|
/** A list of objects that describe the Fields included in the Challenge. Each object contains the label and value of the field, the label can be up to 36 characters in length and the value can be up to 128 characters in length. Used when `factor_type` is `push`. There can be up to 20 details fields. */
|
|
31
|
-
"details.fields"?: Array<
|
|
40
|
+
"details.fields"?: Array<any>;
|
|
32
41
|
/** Details provided to give context about the Challenge. Not shown to the end user. It must be a stringified JSON with only strings values eg. `{\\\"ip\\\": \\\"172.168.1.234\\\"}`. Can be up to 1024 characters in length */
|
|
33
|
-
hiddenDetails?:
|
|
42
|
+
hiddenDetails?: any;
|
|
34
43
|
/** Optional payload used to verify the Challenge upon creation. Only used with a Factor of type `totp` to carry the TOTP code that needs to be verified. For `TOTP` this value must be between 3 and 8 characters long. */
|
|
35
44
|
authPayload?: string;
|
|
36
45
|
}
|
|
@@ -156,9 +165,9 @@ interface ChallengeResource {
|
|
|
156
165
|
expiration_date: Date;
|
|
157
166
|
status: ChallengeChallengeStatuses;
|
|
158
167
|
responded_reason: ChallengeChallengeReasons;
|
|
159
|
-
details:
|
|
160
|
-
hidden_details:
|
|
161
|
-
metadata:
|
|
168
|
+
details: any;
|
|
169
|
+
hidden_details: any;
|
|
170
|
+
metadata: any;
|
|
162
171
|
factor_type: ChallengeFactorTypes;
|
|
163
172
|
url: string;
|
|
164
173
|
links: Record<string, string>;
|
|
@@ -213,15 +222,15 @@ export declare class ChallengeInstance {
|
|
|
213
222
|
/**
|
|
214
223
|
* Details provided to give context about the Challenge. Intended to be shown to the end user.
|
|
215
224
|
*/
|
|
216
|
-
details:
|
|
225
|
+
details: any;
|
|
217
226
|
/**
|
|
218
227
|
* Details provided to give context about the Challenge. Intended to be hidden from the end user. It must be a stringified JSON with only strings values eg. `{\"ip\": \"172.168.1.234\"}`
|
|
219
228
|
*/
|
|
220
|
-
hiddenDetails:
|
|
229
|
+
hiddenDetails: any;
|
|
221
230
|
/**
|
|
222
231
|
* Custom metadata associated with the challenge. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\"os\": \"Android\"}`. Can be up to 1024 characters in length.
|
|
223
232
|
*/
|
|
224
|
-
metadata:
|
|
233
|
+
metadata: any;
|
|
225
234
|
factorType: ChallengeFactorTypes;
|
|
226
235
|
/**
|
|
227
236
|
* The URL of this resource.
|
|
@@ -279,9 +288,9 @@ export declare class ChallengeInstance {
|
|
|
279
288
|
expirationDate: Date;
|
|
280
289
|
status: ChallengeChallengeStatuses;
|
|
281
290
|
respondedReason: ChallengeChallengeReasons;
|
|
282
|
-
details:
|
|
283
|
-
hiddenDetails:
|
|
284
|
-
metadata:
|
|
291
|
+
details: any;
|
|
292
|
+
hiddenDetails: any;
|
|
293
|
+
metadata: any;
|
|
285
294
|
factorType: ChallengeFactorTypes;
|
|
286
295
|
url: string;
|
|
287
296
|
links: Record<string, string>;
|
|
@@ -205,7 +205,7 @@ function ChallengeListInstance(version, serviceSid, identity) {
|
|
|
205
205
|
if (params["details.message"] !== undefined)
|
|
206
206
|
data["Details.Message"] = params["details.message"];
|
|
207
207
|
if (params["details.fields"] !== undefined)
|
|
208
|
-
data["Details.Fields"] = serialize.map(params["details.fields"], (e) => e);
|
|
208
|
+
data["Details.Fields"] = serialize.map(params["details.fields"], (e) => serialize.object(e));
|
|
209
209
|
if (params["hiddenDetails"] !== undefined)
|
|
210
210
|
data["HiddenDetails"] = serialize.object(params["hiddenDetails"]);
|
|
211
211
|
if (params["authPayload"] !== undefined)
|
|
@@ -3,7 +3,13 @@ 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
|
+
/**
|
|
7
|
+
* The Status of this Factor. One of `unverified` or `verified`.
|
|
8
|
+
*/
|
|
6
9
|
export type FactorFactorStatuses = "unverified" | "verified";
|
|
10
|
+
/**
|
|
11
|
+
* The Type of this Factor. Currently `push` and `totp` are supported.
|
|
12
|
+
*/
|
|
7
13
|
export type FactorFactorTypes = "push" | "totp";
|
|
8
14
|
export type FactorTotpAlgorithms = "sha1" | "sha256" | "sha512";
|
|
9
15
|
/**
|
|
@@ -137,8 +143,8 @@ interface FactorResource {
|
|
|
137
143
|
friendly_name: string;
|
|
138
144
|
status: FactorFactorStatuses;
|
|
139
145
|
factor_type: FactorFactorTypes;
|
|
140
|
-
config:
|
|
141
|
-
metadata:
|
|
146
|
+
config: any;
|
|
147
|
+
metadata: any;
|
|
142
148
|
url: string;
|
|
143
149
|
}
|
|
144
150
|
export declare class FactorInstance {
|
|
@@ -183,11 +189,11 @@ export declare class FactorInstance {
|
|
|
183
189
|
/**
|
|
184
190
|
* An object that contains configurations specific to a `factor_type`.
|
|
185
191
|
*/
|
|
186
|
-
config:
|
|
192
|
+
config: any;
|
|
187
193
|
/**
|
|
188
194
|
* Custom metadata associated with the factor. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\"os\": \"Android\"}`. Can be up to 1024 characters in length.
|
|
189
195
|
*/
|
|
190
|
-
metadata:
|
|
196
|
+
metadata: any;
|
|
191
197
|
/**
|
|
192
198
|
* The URL of this resource.
|
|
193
199
|
*/
|
|
@@ -242,8 +248,8 @@ export declare class FactorInstance {
|
|
|
242
248
|
friendlyName: string;
|
|
243
249
|
status: FactorFactorStatuses;
|
|
244
250
|
factorType: FactorFactorTypes;
|
|
245
|
-
config:
|
|
246
|
-
metadata:
|
|
251
|
+
config: any;
|
|
252
|
+
metadata: any;
|
|
247
253
|
url: string;
|
|
248
254
|
};
|
|
249
255
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2 from "../../../V2";
|
|
4
|
+
/**
|
|
5
|
+
* The Status of this Factor. One of `unverified` or `verified`.
|
|
6
|
+
*/
|
|
4
7
|
export type NewFactorFactorStatuses = "unverified" | "verified";
|
|
8
|
+
/**
|
|
9
|
+
* The Type of this Factor. Currently `push` and `totp` are supported.
|
|
10
|
+
*/
|
|
5
11
|
export type NewFactorFactorTypes = "push" | "totp";
|
|
6
12
|
export type NewFactorNotificationPlatforms = "apn" | "fcm" | "none";
|
|
7
13
|
export type NewFactorTotpAlgorithms = "sha1" | "sha256" | "sha512";
|
|
@@ -36,7 +42,7 @@ export interface NewFactorListInstanceCreateOptions {
|
|
|
36
42
|
/** */
|
|
37
43
|
"config.alg"?: NewFactorTotpAlgorithms;
|
|
38
44
|
/** Custom metadata associated with the factor. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\\\"os\\\": \\\"Android\\\"}`. Can be up to 1024 characters in length. */
|
|
39
|
-
metadata?:
|
|
45
|
+
metadata?: any;
|
|
40
46
|
}
|
|
41
47
|
export interface NewFactorSolution {
|
|
42
48
|
serviceSid: string;
|
|
@@ -68,14 +74,14 @@ interface NewFactorResource {
|
|
|
68
74
|
service_sid: string;
|
|
69
75
|
entity_sid: string;
|
|
70
76
|
identity: string;
|
|
71
|
-
binding:
|
|
77
|
+
binding: any;
|
|
72
78
|
date_created: Date;
|
|
73
79
|
date_updated: Date;
|
|
74
80
|
friendly_name: string;
|
|
75
81
|
status: NewFactorFactorStatuses;
|
|
76
82
|
factor_type: NewFactorFactorTypes;
|
|
77
|
-
config:
|
|
78
|
-
metadata:
|
|
83
|
+
config: any;
|
|
84
|
+
metadata: any;
|
|
79
85
|
url: string;
|
|
80
86
|
}
|
|
81
87
|
export declare class NewFactorInstance {
|
|
@@ -104,7 +110,7 @@ export declare class NewFactorInstance {
|
|
|
104
110
|
/**
|
|
105
111
|
* Contains the `factor_type` specific secret and metadata. For push, this is `binding.public_key` and `binding.alg`. For totp, this is `binding.secret` and `binding.uri`. The `binding.uri` property is generated following the [google authenticator key URI format](https://github.com/google/google-authenticator/wiki/Key-Uri-Format), and `Factor.friendly_name` is used for the “accountname” value and `Service.friendly_name` or `Service.totp.issuer` is used for the `issuer` value. The Binding property is ONLY returned upon Factor creation.
|
|
106
112
|
*/
|
|
107
|
-
binding:
|
|
113
|
+
binding: any;
|
|
108
114
|
/**
|
|
109
115
|
* The date that this Factor was created, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
110
116
|
*/
|
|
@@ -122,11 +128,11 @@ export declare class NewFactorInstance {
|
|
|
122
128
|
/**
|
|
123
129
|
* An object that contains configurations specific to a `factor_type`.
|
|
124
130
|
*/
|
|
125
|
-
config:
|
|
131
|
+
config: any;
|
|
126
132
|
/**
|
|
127
133
|
* Custom metadata associated with the factor. This is added by the Device/SDK directly to allow for the inclusion of device information. It must be a stringified JSON with only strings values eg. `{\"os\": \"Android\"}`. Can be up to 1024 characters in length.
|
|
128
134
|
*/
|
|
129
|
-
metadata:
|
|
135
|
+
metadata: any;
|
|
130
136
|
/**
|
|
131
137
|
* The URL of this resource.
|
|
132
138
|
*/
|
|
@@ -142,14 +148,14 @@ export declare class NewFactorInstance {
|
|
|
142
148
|
serviceSid: string;
|
|
143
149
|
entitySid: string;
|
|
144
150
|
identity: string;
|
|
145
|
-
binding:
|
|
151
|
+
binding: any;
|
|
146
152
|
dateCreated: Date;
|
|
147
153
|
dateUpdated: Date;
|
|
148
154
|
friendlyName: string;
|
|
149
155
|
status: NewFactorFactorStatuses;
|
|
150
156
|
factorType: NewFactorFactorTypes;
|
|
151
|
-
config:
|
|
152
|
-
metadata:
|
|
157
|
+
config: any;
|
|
158
|
+
metadata: any;
|
|
153
159
|
url: string;
|
|
154
160
|
};
|
|
155
161
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|