twilio 5.7.1 → 5.7.3
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 +3 -3
- 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/incomingPhoneNumber/assignedAddOn.d.ts +3 -3
- package/lib/rest/api/v2010/account/recording.d.ts +3 -3
- 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/service.d.ts +9 -9
- 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.d.ts +9 -9
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +4 -4
- package/lib/rest/conversations/v1/conversation/message.d.ts +6 -6
- package/lib/rest/conversations/v1/conversation/participant.d.ts +3 -3
- package/lib/rest/conversations/v1/conversation/webhook.d.ts +4 -4
- package/lib/rest/conversations/v1/conversation.d.ts +6 -6
- package/lib/rest/conversations/v1/conversationWithParticipants.d.ts +6 -6
- package/lib/rest/conversations/v1/participantConversation.d.ts +6 -6
- package/lib/rest/conversations/v1/service/configuration/notification.d.ts +9 -9
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +6 -6
- package/lib/rest/conversations/v1/service/conversation/participant.d.ts +3 -3
- package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +4 -4
- package/lib/rest/conversations/v1/service/conversation.d.ts +6 -6
- package/lib/rest/conversations/v1/service/conversationWithParticipants.d.ts +6 -6
- package/lib/rest/conversations/v1/service/participantConversation.d.ts +6 -6
- package/lib/rest/conversations/v1/service/user/userConversation.d.ts +3 -3
- package/lib/rest/conversations/v1/user/userConversation.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.d.ts +1 -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/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/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 +279 -0
- package/lib/rest/lookups/v2/lookupOverride.js +225 -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/usAppToPerson.d.ts +3 -3
- package/lib/rest/messaging/v1/service/usAppToPersonUsecase.d.ts +3 -3
- package/lib/rest/messaging/v1/service.d.ts +3 -3
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +3 -3
- package/lib/rest/messaging/v1/usecase.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/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.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/usageRecord.d.ts +3 -3
- package/lib/rest/sync/v1/service/document.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/sync/v1/service/syncStream/streamMessage.d.ts +1 -1
- package/lib/rest/taskrouter/v1/workspace/event.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/task.d.ts +1 -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/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/trunking/v1/trunk.d.ts +9 -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 +6 -6
- package/lib/rest/verify/v2/service/entity/challenge.d.ts +12 -12
- package/lib/rest/verify/v2/service/entity/challenge.js +1 -1
- package/lib/rest/verify/v2/service/entity/factor.d.ts +6 -6
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +10 -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.d.ts +9 -9
- package/lib/rest/verify/v2/template.d.ts +3 -3
- package/lib/rest/verify/v2/verificationAttempt.d.ts +11 -11
- package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +2 -2
- package/lib/rest/video/v1/composition.d.ts +1 -1
- package/lib/rest/video/v1/compositionHook.d.ts +2 -2
- package/lib/rest/video/v1/room/participant/subscribeRules.d.ts +1 -1
- package/lib/rest/video/v1/room/recordingRules.d.ts +1 -1
- 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 +9 -1
- 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 +31 -0
- 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 -412
- package/lib/rest/knowledge/v1/knowledge.js +0 -302
- 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,251 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { inspect, InspectOptions } from "util";
|
|
3
|
-
import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
4
|
-
import Response from "../../../http/response";
|
|
5
|
-
import V1 from "../V1";
|
|
6
|
-
import { AppManifestListInstance } from "./app/appManifest";
|
|
7
|
-
/**
|
|
8
|
-
* Options to pass to each
|
|
9
|
-
*/
|
|
10
|
-
export interface AppListInstanceEachOptions {
|
|
11
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
12
|
-
pageSize?: number;
|
|
13
|
-
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
14
|
-
callback?: (item: AppInstance, done: (err?: Error) => void) => void;
|
|
15
|
-
/** Function to be called upon completion of streaming */
|
|
16
|
-
done?: Function;
|
|
17
|
-
/** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
|
|
18
|
-
limit?: number;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Options to pass to list
|
|
22
|
-
*/
|
|
23
|
-
export interface AppListInstanceOptions {
|
|
24
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
25
|
-
pageSize?: number;
|
|
26
|
-
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
27
|
-
limit?: number;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Options to pass to page
|
|
31
|
-
*/
|
|
32
|
-
export interface AppListInstancePageOptions {
|
|
33
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
34
|
-
pageSize?: number;
|
|
35
|
-
/** Page Number, this value is simply for client state */
|
|
36
|
-
pageNumber?: number;
|
|
37
|
-
/** PageToken provided by the API */
|
|
38
|
-
pageToken?: string;
|
|
39
|
-
}
|
|
40
|
-
export interface AppContext {
|
|
41
|
-
appManifests: AppManifestListInstance;
|
|
42
|
-
/**
|
|
43
|
-
* Remove a AppInstance
|
|
44
|
-
*
|
|
45
|
-
* @param callback - Callback to handle processed record
|
|
46
|
-
*
|
|
47
|
-
* @returns Resolves to processed boolean
|
|
48
|
-
*/
|
|
49
|
-
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
|
|
50
|
-
/**
|
|
51
|
-
* Fetch a AppInstance
|
|
52
|
-
*
|
|
53
|
-
* @param callback - Callback to handle processed record
|
|
54
|
-
*
|
|
55
|
-
* @returns Resolves to processed AppInstance
|
|
56
|
-
*/
|
|
57
|
-
fetch(callback?: (error: Error | null, item?: AppInstance) => any): Promise<AppInstance>;
|
|
58
|
-
/**
|
|
59
|
-
* Provide a user-friendly representation
|
|
60
|
-
*/
|
|
61
|
-
toJSON(): any;
|
|
62
|
-
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
63
|
-
}
|
|
64
|
-
export interface AppContextSolution {
|
|
65
|
-
sid: string;
|
|
66
|
-
}
|
|
67
|
-
export declare class AppContextImpl implements AppContext {
|
|
68
|
-
protected _version: V1;
|
|
69
|
-
protected _solution: AppContextSolution;
|
|
70
|
-
protected _uri: string;
|
|
71
|
-
protected _appManifests?: AppManifestListInstance;
|
|
72
|
-
constructor(_version: V1, sid: string);
|
|
73
|
-
get appManifests(): AppManifestListInstance;
|
|
74
|
-
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
|
|
75
|
-
fetch(callback?: (error: Error | null, item?: AppInstance) => any): Promise<AppInstance>;
|
|
76
|
-
/**
|
|
77
|
-
* Provide a user-friendly representation
|
|
78
|
-
*
|
|
79
|
-
* @returns Object
|
|
80
|
-
*/
|
|
81
|
-
toJSON(): AppContextSolution;
|
|
82
|
-
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
83
|
-
}
|
|
84
|
-
interface AppPayload extends TwilioResponsePayload {
|
|
85
|
-
apps: AppResource[];
|
|
86
|
-
}
|
|
87
|
-
interface AppResource {
|
|
88
|
-
sid: string;
|
|
89
|
-
account_sid: string;
|
|
90
|
-
hash: string;
|
|
91
|
-
unique_name: string;
|
|
92
|
-
date_created: Date;
|
|
93
|
-
date_updated: Date;
|
|
94
|
-
url: string;
|
|
95
|
-
links: Record<string, string>;
|
|
96
|
-
}
|
|
97
|
-
export declare class AppInstance {
|
|
98
|
-
protected _version: V1;
|
|
99
|
-
protected _solution: AppContextSolution;
|
|
100
|
-
protected _context?: AppContext;
|
|
101
|
-
constructor(_version: V1, payload: AppResource, sid?: string);
|
|
102
|
-
/**
|
|
103
|
-
* A 34-character string that uniquely identifies this App.
|
|
104
|
-
*/
|
|
105
|
-
sid: string;
|
|
106
|
-
/**
|
|
107
|
-
* The unique SID identifier of the Account.
|
|
108
|
-
*/
|
|
109
|
-
accountSid: string;
|
|
110
|
-
/**
|
|
111
|
-
* App manifest hash represented as `hash_algorithm:hash_value`.
|
|
112
|
-
*/
|
|
113
|
-
hash: string;
|
|
114
|
-
/**
|
|
115
|
-
* A developer-defined string that uniquely identifies the App. This value must be unique for all Apps on this Account. The `unique_name` value may be used as an alternative to the `sid` in the URL path to address the resource.
|
|
116
|
-
*/
|
|
117
|
-
uniqueName: string;
|
|
118
|
-
/**
|
|
119
|
-
* The date that this App was created, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
120
|
-
*/
|
|
121
|
-
dateCreated: Date;
|
|
122
|
-
/**
|
|
123
|
-
* The date that this App was last updated, given in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
124
|
-
*/
|
|
125
|
-
dateUpdated: Date;
|
|
126
|
-
/**
|
|
127
|
-
* The URL of this resource.
|
|
128
|
-
*/
|
|
129
|
-
url: string;
|
|
130
|
-
links: Record<string, string>;
|
|
131
|
-
private get _proxy();
|
|
132
|
-
/**
|
|
133
|
-
* Remove a AppInstance
|
|
134
|
-
*
|
|
135
|
-
* @param callback - Callback to handle processed record
|
|
136
|
-
*
|
|
137
|
-
* @returns Resolves to processed boolean
|
|
138
|
-
*/
|
|
139
|
-
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
|
|
140
|
-
/**
|
|
141
|
-
* Fetch a AppInstance
|
|
142
|
-
*
|
|
143
|
-
* @param callback - Callback to handle processed record
|
|
144
|
-
*
|
|
145
|
-
* @returns Resolves to processed AppInstance
|
|
146
|
-
*/
|
|
147
|
-
fetch(callback?: (error: Error | null, item?: AppInstance) => any): Promise<AppInstance>;
|
|
148
|
-
/**
|
|
149
|
-
* Access the appManifests.
|
|
150
|
-
*/
|
|
151
|
-
appManifests(): AppManifestListInstance;
|
|
152
|
-
/**
|
|
153
|
-
* Provide a user-friendly representation
|
|
154
|
-
*
|
|
155
|
-
* @returns Object
|
|
156
|
-
*/
|
|
157
|
-
toJSON(): {
|
|
158
|
-
sid: string;
|
|
159
|
-
accountSid: string;
|
|
160
|
-
hash: string;
|
|
161
|
-
uniqueName: string;
|
|
162
|
-
dateCreated: Date;
|
|
163
|
-
dateUpdated: Date;
|
|
164
|
-
url: string;
|
|
165
|
-
links: Record<string, string>;
|
|
166
|
-
};
|
|
167
|
-
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
168
|
-
}
|
|
169
|
-
export interface AppSolution {
|
|
170
|
-
}
|
|
171
|
-
export interface AppListInstance {
|
|
172
|
-
_version: V1;
|
|
173
|
-
_solution: AppSolution;
|
|
174
|
-
_uri: string;
|
|
175
|
-
(sid: string): AppContext;
|
|
176
|
-
get(sid: string): AppContext;
|
|
177
|
-
/**
|
|
178
|
-
* Streams AppInstance records from the API.
|
|
179
|
-
*
|
|
180
|
-
* This operation lazily loads records as efficiently as possible until the limit
|
|
181
|
-
* is reached.
|
|
182
|
-
*
|
|
183
|
-
* The results are passed into the callback function, so this operation is memory
|
|
184
|
-
* efficient.
|
|
185
|
-
*
|
|
186
|
-
* If a function is passed as the first argument, it will be used as the callback
|
|
187
|
-
* function.
|
|
188
|
-
*
|
|
189
|
-
* @param { AppListInstanceEachOptions } [params] - Options for request
|
|
190
|
-
* @param { function } [callback] - Function to process each record
|
|
191
|
-
*/
|
|
192
|
-
each(callback?: (item: AppInstance, done: (err?: Error) => void) => void): void;
|
|
193
|
-
each(params: AppListInstanceEachOptions, callback?: (item: AppInstance, done: (err?: Error) => void) => void): void;
|
|
194
|
-
/**
|
|
195
|
-
* Retrieve a single target page of AppInstance records from the API.
|
|
196
|
-
*
|
|
197
|
-
* The request is executed immediately.
|
|
198
|
-
*
|
|
199
|
-
* @param { string } [targetUrl] - API-generated URL for the requested results page
|
|
200
|
-
* @param { function } [callback] - Callback to handle list of records
|
|
201
|
-
*/
|
|
202
|
-
getPage(targetUrl: string, callback?: (error: Error | null, items: AppPage) => any): Promise<AppPage>;
|
|
203
|
-
/**
|
|
204
|
-
* Lists AppInstance records from the API as a list.
|
|
205
|
-
*
|
|
206
|
-
* If a function is passed as the first argument, it will be used as the callback
|
|
207
|
-
* function.
|
|
208
|
-
*
|
|
209
|
-
* @param { AppListInstanceOptions } [params] - Options for request
|
|
210
|
-
* @param { function } [callback] - Callback to handle list of records
|
|
211
|
-
*/
|
|
212
|
-
list(callback?: (error: Error | null, items: AppInstance[]) => any): Promise<AppInstance[]>;
|
|
213
|
-
list(params: AppListInstanceOptions, callback?: (error: Error | null, items: AppInstance[]) => any): Promise<AppInstance[]>;
|
|
214
|
-
/**
|
|
215
|
-
* Retrieve a single page of AppInstance records from the API.
|
|
216
|
-
*
|
|
217
|
-
* The request is executed immediately.
|
|
218
|
-
*
|
|
219
|
-
* If a function is passed as the first argument, it will be used as the callback
|
|
220
|
-
* function.
|
|
221
|
-
*
|
|
222
|
-
* @param { AppListInstancePageOptions } [params] - Options for request
|
|
223
|
-
* @param { function } [callback] - Callback to handle list of records
|
|
224
|
-
*/
|
|
225
|
-
page(callback?: (error: Error | null, items: AppPage) => any): Promise<AppPage>;
|
|
226
|
-
page(params: AppListInstancePageOptions, callback?: (error: Error | null, items: AppPage) => any): Promise<AppPage>;
|
|
227
|
-
/**
|
|
228
|
-
* Provide a user-friendly representation
|
|
229
|
-
*/
|
|
230
|
-
toJSON(): any;
|
|
231
|
-
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
232
|
-
}
|
|
233
|
-
export declare function AppListInstance(version: V1): AppListInstance;
|
|
234
|
-
export declare class AppPage extends Page<V1, AppPayload, AppResource, AppInstance> {
|
|
235
|
-
/**
|
|
236
|
-
* Initialize the AppPage
|
|
237
|
-
*
|
|
238
|
-
* @param version - Version of the resource
|
|
239
|
-
* @param response - Response from the API
|
|
240
|
-
* @param solution - Path solution
|
|
241
|
-
*/
|
|
242
|
-
constructor(version: V1, response: Response<string>, solution: AppSolution);
|
|
243
|
-
/**
|
|
244
|
-
* Build an instance of AppInstance
|
|
245
|
-
*
|
|
246
|
-
* @param payload - Payload response from the API
|
|
247
|
-
*/
|
|
248
|
-
getInstance(payload: AppResource): AppInstance;
|
|
249
|
-
[inspect.custom](depth: any, options: InspectOptions): string;
|
|
250
|
-
}
|
|
251
|
-
export {};
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This code was generated by
|
|
4
|
-
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
-
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
-
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
-
*
|
|
8
|
-
* Twilio - Microvisor
|
|
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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
-
};
|
|
18
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.AppPage = exports.AppListInstance = exports.AppInstance = exports.AppContextImpl = void 0;
|
|
20
|
-
const util_1 = require("util");
|
|
21
|
-
const Page_1 = __importDefault(require("../../../base/Page"));
|
|
22
|
-
const deserialize = require("../../../base/deserialize");
|
|
23
|
-
const serialize = require("../../../base/serialize");
|
|
24
|
-
const utility_1 = require("../../../base/utility");
|
|
25
|
-
const appManifest_1 = require("./app/appManifest");
|
|
26
|
-
class AppContextImpl {
|
|
27
|
-
constructor(_version, sid) {
|
|
28
|
-
this._version = _version;
|
|
29
|
-
if (!(0, utility_1.isValidPathParam)(sid)) {
|
|
30
|
-
throw new Error("Parameter 'sid' is not valid.");
|
|
31
|
-
}
|
|
32
|
-
this._solution = { sid };
|
|
33
|
-
this._uri = `/Apps/${sid}`;
|
|
34
|
-
}
|
|
35
|
-
get appManifests() {
|
|
36
|
-
this._appManifests =
|
|
37
|
-
this._appManifests ||
|
|
38
|
-
(0, appManifest_1.AppManifestListInstance)(this._version, this._solution.sid);
|
|
39
|
-
return this._appManifests;
|
|
40
|
-
}
|
|
41
|
-
remove(callback) {
|
|
42
|
-
const headers = {};
|
|
43
|
-
const instance = this;
|
|
44
|
-
let operationVersion = instance._version, operationPromise = operationVersion.remove({
|
|
45
|
-
uri: instance._uri,
|
|
46
|
-
method: "delete",
|
|
47
|
-
headers,
|
|
48
|
-
});
|
|
49
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
50
|
-
return operationPromise;
|
|
51
|
-
}
|
|
52
|
-
fetch(callback) {
|
|
53
|
-
const headers = {};
|
|
54
|
-
headers["Accept"] = "application/json";
|
|
55
|
-
const instance = this;
|
|
56
|
-
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
57
|
-
uri: instance._uri,
|
|
58
|
-
method: "get",
|
|
59
|
-
headers,
|
|
60
|
-
});
|
|
61
|
-
operationPromise = operationPromise.then((payload) => new AppInstance(operationVersion, payload, instance._solution.sid));
|
|
62
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
63
|
-
return operationPromise;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Provide a user-friendly representation
|
|
67
|
-
*
|
|
68
|
-
* @returns Object
|
|
69
|
-
*/
|
|
70
|
-
toJSON() {
|
|
71
|
-
return this._solution;
|
|
72
|
-
}
|
|
73
|
-
[util_1.inspect.custom](_depth, options) {
|
|
74
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.AppContextImpl = AppContextImpl;
|
|
78
|
-
class AppInstance {
|
|
79
|
-
constructor(_version, payload, sid) {
|
|
80
|
-
this._version = _version;
|
|
81
|
-
this.sid = payload.sid;
|
|
82
|
-
this.accountSid = payload.account_sid;
|
|
83
|
-
this.hash = payload.hash;
|
|
84
|
-
this.uniqueName = payload.unique_name;
|
|
85
|
-
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
86
|
-
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
87
|
-
this.url = payload.url;
|
|
88
|
-
this.links = payload.links;
|
|
89
|
-
this._solution = { sid: sid || this.sid };
|
|
90
|
-
}
|
|
91
|
-
get _proxy() {
|
|
92
|
-
this._context =
|
|
93
|
-
this._context || new AppContextImpl(this._version, this._solution.sid);
|
|
94
|
-
return this._context;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Remove a AppInstance
|
|
98
|
-
*
|
|
99
|
-
* @param callback - Callback to handle processed record
|
|
100
|
-
*
|
|
101
|
-
* @returns Resolves to processed boolean
|
|
102
|
-
*/
|
|
103
|
-
remove(callback) {
|
|
104
|
-
return this._proxy.remove(callback);
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Fetch a AppInstance
|
|
108
|
-
*
|
|
109
|
-
* @param callback - Callback to handle processed record
|
|
110
|
-
*
|
|
111
|
-
* @returns Resolves to processed AppInstance
|
|
112
|
-
*/
|
|
113
|
-
fetch(callback) {
|
|
114
|
-
return this._proxy.fetch(callback);
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Access the appManifests.
|
|
118
|
-
*/
|
|
119
|
-
appManifests() {
|
|
120
|
-
return this._proxy.appManifests;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Provide a user-friendly representation
|
|
124
|
-
*
|
|
125
|
-
* @returns Object
|
|
126
|
-
*/
|
|
127
|
-
toJSON() {
|
|
128
|
-
return {
|
|
129
|
-
sid: this.sid,
|
|
130
|
-
accountSid: this.accountSid,
|
|
131
|
-
hash: this.hash,
|
|
132
|
-
uniqueName: this.uniqueName,
|
|
133
|
-
dateCreated: this.dateCreated,
|
|
134
|
-
dateUpdated: this.dateUpdated,
|
|
135
|
-
url: this.url,
|
|
136
|
-
links: this.links,
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
[util_1.inspect.custom](_depth, options) {
|
|
140
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
exports.AppInstance = AppInstance;
|
|
144
|
-
function AppListInstance(version) {
|
|
145
|
-
const instance = ((sid) => instance.get(sid));
|
|
146
|
-
instance.get = function get(sid) {
|
|
147
|
-
return new AppContextImpl(version, sid);
|
|
148
|
-
};
|
|
149
|
-
instance._version = version;
|
|
150
|
-
instance._solution = {};
|
|
151
|
-
instance._uri = `/Apps`;
|
|
152
|
-
instance.page = function page(params, callback) {
|
|
153
|
-
if (params instanceof Function) {
|
|
154
|
-
callback = params;
|
|
155
|
-
params = {};
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
params = params || {};
|
|
159
|
-
}
|
|
160
|
-
let data = {};
|
|
161
|
-
if (params["pageSize"] !== undefined)
|
|
162
|
-
data["PageSize"] = params["pageSize"];
|
|
163
|
-
if (params.pageNumber !== undefined)
|
|
164
|
-
data["Page"] = params.pageNumber;
|
|
165
|
-
if (params.pageToken !== undefined)
|
|
166
|
-
data["PageToken"] = params.pageToken;
|
|
167
|
-
const headers = {};
|
|
168
|
-
headers["Accept"] = "application/json";
|
|
169
|
-
let operationVersion = version, operationPromise = operationVersion.page({
|
|
170
|
-
uri: instance._uri,
|
|
171
|
-
method: "get",
|
|
172
|
-
params: data,
|
|
173
|
-
headers,
|
|
174
|
-
});
|
|
175
|
-
operationPromise = operationPromise.then((payload) => new AppPage(operationVersion, payload, instance._solution));
|
|
176
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
177
|
-
return operationPromise;
|
|
178
|
-
};
|
|
179
|
-
instance.each = instance._version.each;
|
|
180
|
-
instance.list = instance._version.list;
|
|
181
|
-
instance.getPage = function getPage(targetUrl, callback) {
|
|
182
|
-
const operationPromise = instance._version._domain.twilio.request({
|
|
183
|
-
method: "get",
|
|
184
|
-
uri: targetUrl,
|
|
185
|
-
});
|
|
186
|
-
let pagePromise = operationPromise.then((payload) => new AppPage(instance._version, payload, instance._solution));
|
|
187
|
-
pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
|
|
188
|
-
return pagePromise;
|
|
189
|
-
};
|
|
190
|
-
instance.toJSON = function toJSON() {
|
|
191
|
-
return instance._solution;
|
|
192
|
-
};
|
|
193
|
-
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
194
|
-
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
195
|
-
};
|
|
196
|
-
return instance;
|
|
197
|
-
}
|
|
198
|
-
exports.AppListInstance = AppListInstance;
|
|
199
|
-
class AppPage extends Page_1.default {
|
|
200
|
-
/**
|
|
201
|
-
* Initialize the AppPage
|
|
202
|
-
*
|
|
203
|
-
* @param version - Version of the resource
|
|
204
|
-
* @param response - Response from the API
|
|
205
|
-
* @param solution - Path solution
|
|
206
|
-
*/
|
|
207
|
-
constructor(version, response, solution) {
|
|
208
|
-
super(version, response, solution);
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Build an instance of AppInstance
|
|
212
|
-
*
|
|
213
|
-
* @param payload - Payload response from the API
|
|
214
|
-
*/
|
|
215
|
-
getInstance(payload) {
|
|
216
|
-
return new AppInstance(this._version, payload);
|
|
217
|
-
}
|
|
218
|
-
[util_1.inspect.custom](depth, options) {
|
|
219
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
exports.AppPage = AppPage;
|