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
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { inspect, InspectOptions } from "util";
|
|
3
|
+
import V2 from "../V2";
|
|
4
|
+
/**
|
|
5
|
+
* Rate limit request schema
|
|
6
|
+
*/
|
|
7
|
+
export declare class RateLimitRequest {
|
|
8
|
+
/**
|
|
9
|
+
* Limit of requests for the bucket
|
|
10
|
+
*/
|
|
11
|
+
"limit"?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Time to live of the rule
|
|
14
|
+
*/
|
|
15
|
+
"ttl"?: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Options to pass to update a BucketInstance
|
|
19
|
+
*/
|
|
20
|
+
export interface BucketContextUpdateOptions {
|
|
21
|
+
/** */
|
|
22
|
+
rateLimitRequest?: RateLimitRequest;
|
|
23
|
+
}
|
|
24
|
+
export interface BucketContext {
|
|
25
|
+
/**
|
|
26
|
+
* Remove a BucketInstance
|
|
27
|
+
*
|
|
28
|
+
* @param callback - Callback to handle processed record
|
|
29
|
+
*
|
|
30
|
+
* @returns Resolves to processed boolean
|
|
31
|
+
*/
|
|
32
|
+
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
|
|
33
|
+
/**
|
|
34
|
+
* Fetch a BucketInstance
|
|
35
|
+
*
|
|
36
|
+
* @param callback - Callback to handle processed record
|
|
37
|
+
*
|
|
38
|
+
* @returns Resolves to processed BucketInstance
|
|
39
|
+
*/
|
|
40
|
+
fetch(callback?: (error: Error | null, item?: BucketInstance) => any): Promise<BucketInstance>;
|
|
41
|
+
/**
|
|
42
|
+
* Update a BucketInstance
|
|
43
|
+
*
|
|
44
|
+
* @param callback - Callback to handle processed record
|
|
45
|
+
*
|
|
46
|
+
* @returns Resolves to processed BucketInstance
|
|
47
|
+
*/
|
|
48
|
+
update(callback?: (error: Error | null, item?: BucketInstance) => any): Promise<BucketInstance>;
|
|
49
|
+
/**
|
|
50
|
+
* Update a BucketInstance
|
|
51
|
+
*
|
|
52
|
+
* @param params - Body for request
|
|
53
|
+
* @param headers - header params for request
|
|
54
|
+
* @param callback - Callback to handle processed record
|
|
55
|
+
*
|
|
56
|
+
* @returns Resolves to processed BucketInstance
|
|
57
|
+
*/
|
|
58
|
+
update(params: RateLimitRequest, headers?: any, callback?: (error: Error | null, item?: BucketInstance) => any): Promise<BucketInstance>;
|
|
59
|
+
/**
|
|
60
|
+
* Provide a user-friendly representation
|
|
61
|
+
*/
|
|
62
|
+
toJSON(): any;
|
|
63
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
64
|
+
}
|
|
65
|
+
export interface BucketContextSolution {
|
|
66
|
+
field: string;
|
|
67
|
+
bucket: string;
|
|
68
|
+
}
|
|
69
|
+
export declare class BucketContextImpl implements BucketContext {
|
|
70
|
+
protected _version: V2;
|
|
71
|
+
protected _solution: BucketContextSolution;
|
|
72
|
+
protected _uri: string;
|
|
73
|
+
constructor(_version: V2, field: string, bucket: string);
|
|
74
|
+
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
|
|
75
|
+
fetch(callback?: (error: Error | null, item?: BucketInstance) => any): Promise<BucketInstance>;
|
|
76
|
+
update(params?: RateLimitRequest | ((error: Error | null, item?: BucketInstance) => any), headers?: any, callback?: (error: Error | null, item?: BucketInstance) => any): Promise<BucketInstance>;
|
|
77
|
+
/**
|
|
78
|
+
* Provide a user-friendly representation
|
|
79
|
+
*
|
|
80
|
+
* @returns Object
|
|
81
|
+
*/
|
|
82
|
+
toJSON(): BucketContextSolution;
|
|
83
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
84
|
+
}
|
|
85
|
+
interface BucketResource {
|
|
86
|
+
code: number;
|
|
87
|
+
message: string;
|
|
88
|
+
more_info: string;
|
|
89
|
+
status: number;
|
|
90
|
+
field: string;
|
|
91
|
+
limit: number;
|
|
92
|
+
bucket: string;
|
|
93
|
+
owner: string;
|
|
94
|
+
ttl: number;
|
|
95
|
+
}
|
|
96
|
+
export declare class BucketInstance {
|
|
97
|
+
protected _version: V2;
|
|
98
|
+
protected _solution: BucketContextSolution;
|
|
99
|
+
protected _context?: BucketContext;
|
|
100
|
+
constructor(_version: V2, payload: BucketResource, field?: string, bucket?: string);
|
|
101
|
+
/**
|
|
102
|
+
* Twilio-specific error code
|
|
103
|
+
*/
|
|
104
|
+
code: number;
|
|
105
|
+
/**
|
|
106
|
+
* Error message
|
|
107
|
+
*/
|
|
108
|
+
message: string;
|
|
109
|
+
/**
|
|
110
|
+
* Link to Error Code References
|
|
111
|
+
*/
|
|
112
|
+
moreInfo: string;
|
|
113
|
+
/**
|
|
114
|
+
* HTTP response status code
|
|
115
|
+
*/
|
|
116
|
+
status: number;
|
|
117
|
+
/**
|
|
118
|
+
* Limit of requests for the bucket
|
|
119
|
+
*/
|
|
120
|
+
field: string;
|
|
121
|
+
/**
|
|
122
|
+
* Limit of requests for the bucket
|
|
123
|
+
*/
|
|
124
|
+
limit: number;
|
|
125
|
+
/**
|
|
126
|
+
* Name of the bucket
|
|
127
|
+
*/
|
|
128
|
+
bucket: string;
|
|
129
|
+
/**
|
|
130
|
+
* Owner of the rule
|
|
131
|
+
*/
|
|
132
|
+
owner: string;
|
|
133
|
+
/**
|
|
134
|
+
* Time to live of the rule
|
|
135
|
+
*/
|
|
136
|
+
ttl: number;
|
|
137
|
+
private get _proxy();
|
|
138
|
+
/**
|
|
139
|
+
* Remove a BucketInstance
|
|
140
|
+
*
|
|
141
|
+
* @param callback - Callback to handle processed record
|
|
142
|
+
*
|
|
143
|
+
* @returns Resolves to processed boolean
|
|
144
|
+
*/
|
|
145
|
+
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
|
|
146
|
+
/**
|
|
147
|
+
* Fetch a BucketInstance
|
|
148
|
+
*
|
|
149
|
+
* @param callback - Callback to handle processed record
|
|
150
|
+
*
|
|
151
|
+
* @returns Resolves to processed BucketInstance
|
|
152
|
+
*/
|
|
153
|
+
fetch(callback?: (error: Error | null, item?: BucketInstance) => any): Promise<BucketInstance>;
|
|
154
|
+
/**
|
|
155
|
+
* Update a BucketInstance
|
|
156
|
+
*
|
|
157
|
+
* @param callback - Callback to handle processed record
|
|
158
|
+
*
|
|
159
|
+
* @returns Resolves to processed BucketInstance
|
|
160
|
+
*/
|
|
161
|
+
update(callback?: (error: Error | null, item?: BucketInstance) => any): Promise<BucketInstance>;
|
|
162
|
+
/**
|
|
163
|
+
* Update a BucketInstance
|
|
164
|
+
*
|
|
165
|
+
* @param params - Body for request
|
|
166
|
+
* @param headers - header params for request
|
|
167
|
+
* @param callback - Callback to handle processed record
|
|
168
|
+
*
|
|
169
|
+
* @returns Resolves to processed BucketInstance
|
|
170
|
+
*/
|
|
171
|
+
update(params: RateLimitRequest, headers?: any, callback?: (error: Error | null, item?: BucketInstance) => any): Promise<BucketInstance>;
|
|
172
|
+
/**
|
|
173
|
+
* Provide a user-friendly representation
|
|
174
|
+
*
|
|
175
|
+
* @returns Object
|
|
176
|
+
*/
|
|
177
|
+
toJSON(): {
|
|
178
|
+
code: number;
|
|
179
|
+
message: string;
|
|
180
|
+
moreInfo: string;
|
|
181
|
+
status: number;
|
|
182
|
+
field: string;
|
|
183
|
+
limit: number;
|
|
184
|
+
bucket: string;
|
|
185
|
+
owner: string;
|
|
186
|
+
ttl: number;
|
|
187
|
+
};
|
|
188
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
189
|
+
}
|
|
190
|
+
export interface BucketSolution {
|
|
191
|
+
}
|
|
192
|
+
export interface BucketListInstance {
|
|
193
|
+
_version: V2;
|
|
194
|
+
_solution: BucketSolution;
|
|
195
|
+
_uri: string;
|
|
196
|
+
(field: string, bucket: string): BucketContext;
|
|
197
|
+
get(field: string, bucket: string): BucketContext;
|
|
198
|
+
/**
|
|
199
|
+
* Provide a user-friendly representation
|
|
200
|
+
*/
|
|
201
|
+
toJSON(): any;
|
|
202
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
203
|
+
}
|
|
204
|
+
export declare function BucketListInstance(version: V2): BucketListInstance;
|
|
205
|
+
export {};
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Lookups
|
|
9
|
+
* This is the public Twilio REST API.
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.BucketListInstance = exports.BucketInstance = exports.BucketContextImpl = exports.RateLimitRequest = void 0;
|
|
17
|
+
const util_1 = require("util");
|
|
18
|
+
const deserialize = require("../../../base/deserialize");
|
|
19
|
+
const serialize = require("../../../base/serialize");
|
|
20
|
+
const utility_1 = require("../../../base/utility");
|
|
21
|
+
/**
|
|
22
|
+
* Rate limit request schema
|
|
23
|
+
*/
|
|
24
|
+
class RateLimitRequest {
|
|
25
|
+
}
|
|
26
|
+
exports.RateLimitRequest = RateLimitRequest;
|
|
27
|
+
class BucketContextImpl {
|
|
28
|
+
constructor(_version, field, bucket) {
|
|
29
|
+
this._version = _version;
|
|
30
|
+
if (!(0, utility_1.isValidPathParam)(field)) {
|
|
31
|
+
throw new Error("Parameter 'field' is not valid.");
|
|
32
|
+
}
|
|
33
|
+
if (!(0, utility_1.isValidPathParam)(bucket)) {
|
|
34
|
+
throw new Error("Parameter 'bucket' is not valid.");
|
|
35
|
+
}
|
|
36
|
+
this._solution = { field, bucket };
|
|
37
|
+
this._uri = `/RateLimits/Fields/${field}/Bucket/${bucket}`;
|
|
38
|
+
}
|
|
39
|
+
remove(callback) {
|
|
40
|
+
const headers = {};
|
|
41
|
+
const instance = this;
|
|
42
|
+
let operationVersion = instance._version, operationPromise = operationVersion.remove({
|
|
43
|
+
uri: instance._uri,
|
|
44
|
+
method: "delete",
|
|
45
|
+
headers,
|
|
46
|
+
});
|
|
47
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
48
|
+
return operationPromise;
|
|
49
|
+
}
|
|
50
|
+
fetch(callback) {
|
|
51
|
+
const headers = {};
|
|
52
|
+
headers["Accept"] = "application/json";
|
|
53
|
+
const instance = this;
|
|
54
|
+
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
55
|
+
uri: instance._uri,
|
|
56
|
+
method: "get",
|
|
57
|
+
headers,
|
|
58
|
+
});
|
|
59
|
+
operationPromise = operationPromise.then((payload) => new BucketInstance(operationVersion, payload, instance._solution.field, instance._solution.bucket));
|
|
60
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
61
|
+
return operationPromise;
|
|
62
|
+
}
|
|
63
|
+
update(params, headers, callback) {
|
|
64
|
+
if (params instanceof Function) {
|
|
65
|
+
callback = params;
|
|
66
|
+
params = {};
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
params = params || {};
|
|
70
|
+
}
|
|
71
|
+
let data = {};
|
|
72
|
+
data = params;
|
|
73
|
+
if (headers === null || headers === undefined) {
|
|
74
|
+
headers = {};
|
|
75
|
+
}
|
|
76
|
+
headers["Content-Type"] = "application/json";
|
|
77
|
+
headers["Accept"] = "application/json";
|
|
78
|
+
const instance = this;
|
|
79
|
+
let operationVersion = instance._version, operationPromise = operationVersion.update({
|
|
80
|
+
uri: instance._uri,
|
|
81
|
+
method: "put",
|
|
82
|
+
data,
|
|
83
|
+
headers,
|
|
84
|
+
});
|
|
85
|
+
operationPromise = operationPromise.then((payload) => new BucketInstance(operationVersion, payload, instance._solution.field, instance._solution.bucket));
|
|
86
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
87
|
+
return operationPromise;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Provide a user-friendly representation
|
|
91
|
+
*
|
|
92
|
+
* @returns Object
|
|
93
|
+
*/
|
|
94
|
+
toJSON() {
|
|
95
|
+
return this._solution;
|
|
96
|
+
}
|
|
97
|
+
[util_1.inspect.custom](_depth, options) {
|
|
98
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.BucketContextImpl = BucketContextImpl;
|
|
102
|
+
class BucketInstance {
|
|
103
|
+
constructor(_version, payload, field, bucket) {
|
|
104
|
+
this._version = _version;
|
|
105
|
+
this.code = payload.code;
|
|
106
|
+
this.message = payload.message;
|
|
107
|
+
this.moreInfo = payload.more_info;
|
|
108
|
+
this.status = payload.status;
|
|
109
|
+
this.field = payload.field;
|
|
110
|
+
this.limit = payload.limit;
|
|
111
|
+
this.bucket = payload.bucket;
|
|
112
|
+
this.owner = payload.owner;
|
|
113
|
+
this.ttl = payload.ttl;
|
|
114
|
+
this._solution = {
|
|
115
|
+
field: field || this.field,
|
|
116
|
+
bucket: bucket || this.bucket,
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
get _proxy() {
|
|
120
|
+
this._context =
|
|
121
|
+
this._context ||
|
|
122
|
+
new BucketContextImpl(this._version, this._solution.field, this._solution.bucket);
|
|
123
|
+
return this._context;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Remove a BucketInstance
|
|
127
|
+
*
|
|
128
|
+
* @param callback - Callback to handle processed record
|
|
129
|
+
*
|
|
130
|
+
* @returns Resolves to processed boolean
|
|
131
|
+
*/
|
|
132
|
+
remove(callback) {
|
|
133
|
+
return this._proxy.remove(callback);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Fetch a BucketInstance
|
|
137
|
+
*
|
|
138
|
+
* @param callback - Callback to handle processed record
|
|
139
|
+
*
|
|
140
|
+
* @returns Resolves to processed BucketInstance
|
|
141
|
+
*/
|
|
142
|
+
fetch(callback) {
|
|
143
|
+
return this._proxy.fetch(callback);
|
|
144
|
+
}
|
|
145
|
+
update(params, callback) {
|
|
146
|
+
return this._proxy.update(params, callback);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Provide a user-friendly representation
|
|
150
|
+
*
|
|
151
|
+
* @returns Object
|
|
152
|
+
*/
|
|
153
|
+
toJSON() {
|
|
154
|
+
return {
|
|
155
|
+
code: this.code,
|
|
156
|
+
message: this.message,
|
|
157
|
+
moreInfo: this.moreInfo,
|
|
158
|
+
status: this.status,
|
|
159
|
+
field: this.field,
|
|
160
|
+
limit: this.limit,
|
|
161
|
+
bucket: this.bucket,
|
|
162
|
+
owner: this.owner,
|
|
163
|
+
ttl: this.ttl,
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
[util_1.inspect.custom](_depth, options) {
|
|
167
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.BucketInstance = BucketInstance;
|
|
171
|
+
function BucketListInstance(version) {
|
|
172
|
+
const instance = ((field, bucket) => instance.get(field, bucket));
|
|
173
|
+
instance.get = function get(field, bucket) {
|
|
174
|
+
return new BucketContextImpl(version, field, bucket);
|
|
175
|
+
};
|
|
176
|
+
instance._version = version;
|
|
177
|
+
instance._solution = {};
|
|
178
|
+
instance._uri = ``;
|
|
179
|
+
instance.toJSON = function toJSON() {
|
|
180
|
+
return instance._solution;
|
|
181
|
+
};
|
|
182
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
183
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
184
|
+
};
|
|
185
|
+
return instance;
|
|
186
|
+
}
|
|
187
|
+
exports.BucketListInstance = BucketListInstance;
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { inspect, InspectOptions } from "util";
|
|
3
|
+
import V2 from "../V2";
|
|
4
|
+
export declare class OverridesRequest {
|
|
5
|
+
"line_type"?: string;
|
|
6
|
+
"reason"?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Options to pass to create a LookupOverrideInstance
|
|
10
|
+
*/
|
|
11
|
+
export interface LookupOverrideContextCreateOptions {
|
|
12
|
+
/** */
|
|
13
|
+
overridesRequest?: OverridesRequest;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Options to pass to update a LookupOverrideInstance
|
|
17
|
+
*/
|
|
18
|
+
export interface LookupOverrideContextUpdateOptions {
|
|
19
|
+
/** */
|
|
20
|
+
overridesRequest?: OverridesRequest;
|
|
21
|
+
}
|
|
22
|
+
export interface LookupOverrideContext {
|
|
23
|
+
/**
|
|
24
|
+
* Create a LookupOverrideInstance
|
|
25
|
+
*
|
|
26
|
+
* @param callback - Callback to handle processed record
|
|
27
|
+
*
|
|
28
|
+
* @returns Resolves to processed LookupOverrideInstance
|
|
29
|
+
*/
|
|
30
|
+
create(callback?: (error: Error | null, item?: LookupOverrideInstance) => any): Promise<LookupOverrideInstance>;
|
|
31
|
+
/**
|
|
32
|
+
* Create a LookupOverrideInstance
|
|
33
|
+
*
|
|
34
|
+
* @param params - Body for request
|
|
35
|
+
* @param headers - header params for request
|
|
36
|
+
* @param callback - Callback to handle processed record
|
|
37
|
+
*
|
|
38
|
+
* @returns Resolves to processed LookupOverrideInstance
|
|
39
|
+
*/
|
|
40
|
+
create(params: OverridesRequest, headers?: any, callback?: (error: Error | null, item?: LookupOverrideInstance) => any): Promise<LookupOverrideInstance>;
|
|
41
|
+
/**
|
|
42
|
+
* Remove a LookupOverrideInstance
|
|
43
|
+
*
|
|
44
|
+
* @param callback - Callback to handle processed record
|
|
45
|
+
*
|
|
46
|
+
* @returns Resolves to processed boolean
|
|
47
|
+
*/
|
|
48
|
+
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
|
|
49
|
+
/**
|
|
50
|
+
* Fetch a LookupOverrideInstance
|
|
51
|
+
*
|
|
52
|
+
* @param callback - Callback to handle processed record
|
|
53
|
+
*
|
|
54
|
+
* @returns Resolves to processed LookupOverrideInstance
|
|
55
|
+
*/
|
|
56
|
+
fetch(callback?: (error: Error | null, item?: LookupOverrideInstance) => any): Promise<LookupOverrideInstance>;
|
|
57
|
+
/**
|
|
58
|
+
* Update a LookupOverrideInstance
|
|
59
|
+
*
|
|
60
|
+
* @param callback - Callback to handle processed record
|
|
61
|
+
*
|
|
62
|
+
* @returns Resolves to processed LookupOverrideInstance
|
|
63
|
+
*/
|
|
64
|
+
update(callback?: (error: Error | null, item?: LookupOverrideInstance) => any): Promise<LookupOverrideInstance>;
|
|
65
|
+
/**
|
|
66
|
+
* Update a LookupOverrideInstance
|
|
67
|
+
*
|
|
68
|
+
* @param params - Body for request
|
|
69
|
+
* @param headers - header params for request
|
|
70
|
+
* @param callback - Callback to handle processed record
|
|
71
|
+
*
|
|
72
|
+
* @returns Resolves to processed LookupOverrideInstance
|
|
73
|
+
*/
|
|
74
|
+
update(params: OverridesRequest, headers?: any, callback?: (error: Error | null, item?: LookupOverrideInstance) => any): Promise<LookupOverrideInstance>;
|
|
75
|
+
/**
|
|
76
|
+
* Provide a user-friendly representation
|
|
77
|
+
*/
|
|
78
|
+
toJSON(): any;
|
|
79
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
80
|
+
}
|
|
81
|
+
export interface LookupOverrideContextSolution {
|
|
82
|
+
field: string;
|
|
83
|
+
phoneNumber: string;
|
|
84
|
+
}
|
|
85
|
+
export declare class LookupOverrideContextImpl implements LookupOverrideContext {
|
|
86
|
+
protected _version: V2;
|
|
87
|
+
protected _solution: LookupOverrideContextSolution;
|
|
88
|
+
protected _uri: string;
|
|
89
|
+
constructor(_version: V2, field: string, phoneNumber: string);
|
|
90
|
+
create(params?: OverridesRequest | ((error: Error | null, item?: LookupOverrideInstance) => any), headers?: any, callback?: (error: Error | null, item?: LookupOverrideInstance) => any): Promise<LookupOverrideInstance>;
|
|
91
|
+
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
|
|
92
|
+
fetch(callback?: (error: Error | null, item?: LookupOverrideInstance) => any): Promise<LookupOverrideInstance>;
|
|
93
|
+
update(params?: OverridesRequest | ((error: Error | null, item?: LookupOverrideInstance) => any), headers?: any, callback?: (error: Error | null, item?: LookupOverrideInstance) => any): Promise<LookupOverrideInstance>;
|
|
94
|
+
/**
|
|
95
|
+
* Provide a user-friendly representation
|
|
96
|
+
*
|
|
97
|
+
* @returns Object
|
|
98
|
+
*/
|
|
99
|
+
toJSON(): LookupOverrideContextSolution;
|
|
100
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
101
|
+
}
|
|
102
|
+
interface LookupOverrideResource {
|
|
103
|
+
phone_number: string;
|
|
104
|
+
original_line_type: string;
|
|
105
|
+
overridden_line_type: string;
|
|
106
|
+
override_reason: string;
|
|
107
|
+
override_timestamp: Date;
|
|
108
|
+
overridden_by_account_sid: string;
|
|
109
|
+
code: number;
|
|
110
|
+
message: string;
|
|
111
|
+
more_info: string;
|
|
112
|
+
status: number;
|
|
113
|
+
field: string;
|
|
114
|
+
limit: number;
|
|
115
|
+
bucket: string;
|
|
116
|
+
owner: string;
|
|
117
|
+
ttl: number;
|
|
118
|
+
}
|
|
119
|
+
export declare class LookupOverrideInstance {
|
|
120
|
+
protected _version: V2;
|
|
121
|
+
protected _solution: LookupOverrideContextSolution;
|
|
122
|
+
protected _context?: LookupOverrideContext;
|
|
123
|
+
constructor(_version: V2, payload: LookupOverrideResource, field?: string, phoneNumber?: string);
|
|
124
|
+
phoneNumber: string;
|
|
125
|
+
originalLineType: string;
|
|
126
|
+
overriddenLineType: string;
|
|
127
|
+
/**
|
|
128
|
+
* The reason for the override
|
|
129
|
+
*/
|
|
130
|
+
overrideReason: string;
|
|
131
|
+
overrideTimestamp: Date;
|
|
132
|
+
/**
|
|
133
|
+
* The user who overrode the line type
|
|
134
|
+
*/
|
|
135
|
+
overriddenByAccountSid: string;
|
|
136
|
+
/**
|
|
137
|
+
* Twilio-specific error code
|
|
138
|
+
*/
|
|
139
|
+
code: number;
|
|
140
|
+
/**
|
|
141
|
+
* Error message
|
|
142
|
+
*/
|
|
143
|
+
message: string;
|
|
144
|
+
/**
|
|
145
|
+
* Link to Error Code References
|
|
146
|
+
*/
|
|
147
|
+
moreInfo: string;
|
|
148
|
+
/**
|
|
149
|
+
* HTTP response status code
|
|
150
|
+
*/
|
|
151
|
+
status: number;
|
|
152
|
+
/**
|
|
153
|
+
* Limit of requests for the bucket
|
|
154
|
+
*/
|
|
155
|
+
field: string;
|
|
156
|
+
/**
|
|
157
|
+
* Limit of requests for the bucket
|
|
158
|
+
*/
|
|
159
|
+
limit: number;
|
|
160
|
+
/**
|
|
161
|
+
* Name of the bucket
|
|
162
|
+
*/
|
|
163
|
+
bucket: string;
|
|
164
|
+
/**
|
|
165
|
+
* Owner of the rule
|
|
166
|
+
*/
|
|
167
|
+
owner: string;
|
|
168
|
+
/**
|
|
169
|
+
* Time to live of the rule
|
|
170
|
+
*/
|
|
171
|
+
ttl: number;
|
|
172
|
+
private get _proxy();
|
|
173
|
+
/**
|
|
174
|
+
* Create a LookupOverrideInstance
|
|
175
|
+
*
|
|
176
|
+
* @param callback - Callback to handle processed record
|
|
177
|
+
*
|
|
178
|
+
* @returns Resolves to processed LookupOverrideInstance
|
|
179
|
+
*/
|
|
180
|
+
create(callback?: (error: Error | null, item?: LookupOverrideInstance) => any): Promise<LookupOverrideInstance>;
|
|
181
|
+
/**
|
|
182
|
+
* Create a LookupOverrideInstance
|
|
183
|
+
*
|
|
184
|
+
* @param params - Body for request
|
|
185
|
+
* @param headers - header params for request
|
|
186
|
+
* @param callback - Callback to handle processed record
|
|
187
|
+
*
|
|
188
|
+
* @returns Resolves to processed LookupOverrideInstance
|
|
189
|
+
*/
|
|
190
|
+
create(params: OverridesRequest, headers?: any, callback?: (error: Error | null, item?: LookupOverrideInstance) => any): Promise<LookupOverrideInstance>;
|
|
191
|
+
/**
|
|
192
|
+
* Remove a LookupOverrideInstance
|
|
193
|
+
*
|
|
194
|
+
* @param callback - Callback to handle processed record
|
|
195
|
+
*
|
|
196
|
+
* @returns Resolves to processed boolean
|
|
197
|
+
*/
|
|
198
|
+
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
|
|
199
|
+
/**
|
|
200
|
+
* Fetch a LookupOverrideInstance
|
|
201
|
+
*
|
|
202
|
+
* @param callback - Callback to handle processed record
|
|
203
|
+
*
|
|
204
|
+
* @returns Resolves to processed LookupOverrideInstance
|
|
205
|
+
*/
|
|
206
|
+
fetch(callback?: (error: Error | null, item?: LookupOverrideInstance) => any): Promise<LookupOverrideInstance>;
|
|
207
|
+
/**
|
|
208
|
+
* Update a LookupOverrideInstance
|
|
209
|
+
*
|
|
210
|
+
* @param callback - Callback to handle processed record
|
|
211
|
+
*
|
|
212
|
+
* @returns Resolves to processed LookupOverrideInstance
|
|
213
|
+
*/
|
|
214
|
+
update(callback?: (error: Error | null, item?: LookupOverrideInstance) => any): Promise<LookupOverrideInstance>;
|
|
215
|
+
/**
|
|
216
|
+
* Update a LookupOverrideInstance
|
|
217
|
+
*
|
|
218
|
+
* @param params - Body for request
|
|
219
|
+
* @param headers - header params for request
|
|
220
|
+
* @param callback - Callback to handle processed record
|
|
221
|
+
*
|
|
222
|
+
* @returns Resolves to processed LookupOverrideInstance
|
|
223
|
+
*/
|
|
224
|
+
update(params: OverridesRequest, headers?: any, callback?: (error: Error | null, item?: LookupOverrideInstance) => any): Promise<LookupOverrideInstance>;
|
|
225
|
+
/**
|
|
226
|
+
* Provide a user-friendly representation
|
|
227
|
+
*
|
|
228
|
+
* @returns Object
|
|
229
|
+
*/
|
|
230
|
+
toJSON(): {
|
|
231
|
+
phoneNumber: string;
|
|
232
|
+
originalLineType: string;
|
|
233
|
+
overriddenLineType: string;
|
|
234
|
+
overrideReason: string;
|
|
235
|
+
overrideTimestamp: Date;
|
|
236
|
+
overriddenByAccountSid: string;
|
|
237
|
+
code: number;
|
|
238
|
+
message: string;
|
|
239
|
+
moreInfo: string;
|
|
240
|
+
status: number;
|
|
241
|
+
field: string;
|
|
242
|
+
limit: number;
|
|
243
|
+
bucket: string;
|
|
244
|
+
owner: string;
|
|
245
|
+
ttl: number;
|
|
246
|
+
};
|
|
247
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
248
|
+
}
|
|
249
|
+
export interface LookupOverrideSolution {
|
|
250
|
+
}
|
|
251
|
+
export interface LookupOverrideListInstance {
|
|
252
|
+
_version: V2;
|
|
253
|
+
_solution: LookupOverrideSolution;
|
|
254
|
+
_uri: string;
|
|
255
|
+
(field: string, phoneNumber: string): LookupOverrideContext;
|
|
256
|
+
get(field: string, phoneNumber: string): LookupOverrideContext;
|
|
257
|
+
/**
|
|
258
|
+
* Provide a user-friendly representation
|
|
259
|
+
*/
|
|
260
|
+
toJSON(): any;
|
|
261
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
262
|
+
}
|
|
263
|
+
export declare function LookupOverrideListInstance(version: V2): LookupOverrideListInstance;
|
|
264
|
+
export {};
|