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,252 +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.AccountSecretPage = exports.AccountSecretListInstance = exports.AccountSecretInstance = exports.AccountSecretContextImpl = 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
|
-
class AccountSecretContextImpl {
|
|
26
|
-
constructor(_version, key) {
|
|
27
|
-
this._version = _version;
|
|
28
|
-
if (!(0, utility_1.isValidPathParam)(key)) {
|
|
29
|
-
throw new Error("Parameter 'key' is not valid.");
|
|
30
|
-
}
|
|
31
|
-
this._solution = { key };
|
|
32
|
-
this._uri = `/Secrets/${key}`;
|
|
33
|
-
}
|
|
34
|
-
remove(callback) {
|
|
35
|
-
const headers = {};
|
|
36
|
-
const instance = this;
|
|
37
|
-
let operationVersion = instance._version, operationPromise = operationVersion.remove({
|
|
38
|
-
uri: instance._uri,
|
|
39
|
-
method: "delete",
|
|
40
|
-
headers,
|
|
41
|
-
});
|
|
42
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
43
|
-
return operationPromise;
|
|
44
|
-
}
|
|
45
|
-
fetch(callback) {
|
|
46
|
-
const headers = {};
|
|
47
|
-
headers["Accept"] = "application/json";
|
|
48
|
-
const instance = this;
|
|
49
|
-
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
50
|
-
uri: instance._uri,
|
|
51
|
-
method: "get",
|
|
52
|
-
headers,
|
|
53
|
-
});
|
|
54
|
-
operationPromise = operationPromise.then((payload) => new AccountSecretInstance(operationVersion, payload, instance._solution.key));
|
|
55
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
56
|
-
return operationPromise;
|
|
57
|
-
}
|
|
58
|
-
update(params, callback) {
|
|
59
|
-
if (params === null || params === undefined) {
|
|
60
|
-
throw new Error('Required parameter "params" missing.');
|
|
61
|
-
}
|
|
62
|
-
if (params["value"] === null || params["value"] === undefined) {
|
|
63
|
-
throw new Error("Required parameter \"params['value']\" missing.");
|
|
64
|
-
}
|
|
65
|
-
let data = {};
|
|
66
|
-
data["Value"] = params["value"];
|
|
67
|
-
const headers = {};
|
|
68
|
-
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
69
|
-
headers["Accept"] = "application/json";
|
|
70
|
-
const instance = this;
|
|
71
|
-
let operationVersion = instance._version, operationPromise = operationVersion.update({
|
|
72
|
-
uri: instance._uri,
|
|
73
|
-
method: "post",
|
|
74
|
-
data,
|
|
75
|
-
headers,
|
|
76
|
-
});
|
|
77
|
-
operationPromise = operationPromise.then((payload) => new AccountSecretInstance(operationVersion, payload, instance._solution.key));
|
|
78
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
79
|
-
return operationPromise;
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Provide a user-friendly representation
|
|
83
|
-
*
|
|
84
|
-
* @returns Object
|
|
85
|
-
*/
|
|
86
|
-
toJSON() {
|
|
87
|
-
return this._solution;
|
|
88
|
-
}
|
|
89
|
-
[util_1.inspect.custom](_depth, options) {
|
|
90
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
exports.AccountSecretContextImpl = AccountSecretContextImpl;
|
|
94
|
-
class AccountSecretInstance {
|
|
95
|
-
constructor(_version, payload, key) {
|
|
96
|
-
this._version = _version;
|
|
97
|
-
this.key = payload.key;
|
|
98
|
-
this.dateRotated = deserialize.iso8601DateTime(payload.date_rotated);
|
|
99
|
-
this.url = payload.url;
|
|
100
|
-
this._solution = { key: key || this.key };
|
|
101
|
-
}
|
|
102
|
-
get _proxy() {
|
|
103
|
-
this._context =
|
|
104
|
-
this._context ||
|
|
105
|
-
new AccountSecretContextImpl(this._version, this._solution.key);
|
|
106
|
-
return this._context;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Remove a AccountSecretInstance
|
|
110
|
-
*
|
|
111
|
-
* @param callback - Callback to handle processed record
|
|
112
|
-
*
|
|
113
|
-
* @returns Resolves to processed boolean
|
|
114
|
-
*/
|
|
115
|
-
remove(callback) {
|
|
116
|
-
return this._proxy.remove(callback);
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Fetch a AccountSecretInstance
|
|
120
|
-
*
|
|
121
|
-
* @param callback - Callback to handle processed record
|
|
122
|
-
*
|
|
123
|
-
* @returns Resolves to processed AccountSecretInstance
|
|
124
|
-
*/
|
|
125
|
-
fetch(callback) {
|
|
126
|
-
return this._proxy.fetch(callback);
|
|
127
|
-
}
|
|
128
|
-
update(params, callback) {
|
|
129
|
-
return this._proxy.update(params, callback);
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Provide a user-friendly representation
|
|
133
|
-
*
|
|
134
|
-
* @returns Object
|
|
135
|
-
*/
|
|
136
|
-
toJSON() {
|
|
137
|
-
return {
|
|
138
|
-
key: this.key,
|
|
139
|
-
dateRotated: this.dateRotated,
|
|
140
|
-
url: this.url,
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
[util_1.inspect.custom](_depth, options) {
|
|
144
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
exports.AccountSecretInstance = AccountSecretInstance;
|
|
148
|
-
function AccountSecretListInstance(version) {
|
|
149
|
-
const instance = ((key) => instance.get(key));
|
|
150
|
-
instance.get = function get(key) {
|
|
151
|
-
return new AccountSecretContextImpl(version, key);
|
|
152
|
-
};
|
|
153
|
-
instance._version = version;
|
|
154
|
-
instance._solution = {};
|
|
155
|
-
instance._uri = `/Secrets`;
|
|
156
|
-
instance.create = function create(params, callback) {
|
|
157
|
-
if (params === null || params === undefined) {
|
|
158
|
-
throw new Error('Required parameter "params" missing.');
|
|
159
|
-
}
|
|
160
|
-
if (params["key"] === null || params["key"] === undefined) {
|
|
161
|
-
throw new Error("Required parameter \"params['key']\" missing.");
|
|
162
|
-
}
|
|
163
|
-
if (params["value"] === null || params["value"] === undefined) {
|
|
164
|
-
throw new Error("Required parameter \"params['value']\" missing.");
|
|
165
|
-
}
|
|
166
|
-
let data = {};
|
|
167
|
-
data["Key"] = params["key"];
|
|
168
|
-
data["Value"] = params["value"];
|
|
169
|
-
const headers = {};
|
|
170
|
-
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
171
|
-
headers["Accept"] = "application/json";
|
|
172
|
-
let operationVersion = version, operationPromise = operationVersion.create({
|
|
173
|
-
uri: instance._uri,
|
|
174
|
-
method: "post",
|
|
175
|
-
data,
|
|
176
|
-
headers,
|
|
177
|
-
});
|
|
178
|
-
operationPromise = operationPromise.then((payload) => new AccountSecretInstance(operationVersion, payload));
|
|
179
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
180
|
-
return operationPromise;
|
|
181
|
-
};
|
|
182
|
-
instance.page = function page(params, callback) {
|
|
183
|
-
if (params instanceof Function) {
|
|
184
|
-
callback = params;
|
|
185
|
-
params = {};
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
params = params || {};
|
|
189
|
-
}
|
|
190
|
-
let data = {};
|
|
191
|
-
if (params["pageSize"] !== undefined)
|
|
192
|
-
data["PageSize"] = params["pageSize"];
|
|
193
|
-
if (params.pageNumber !== undefined)
|
|
194
|
-
data["Page"] = params.pageNumber;
|
|
195
|
-
if (params.pageToken !== undefined)
|
|
196
|
-
data["PageToken"] = params.pageToken;
|
|
197
|
-
const headers = {};
|
|
198
|
-
headers["Accept"] = "application/json";
|
|
199
|
-
let operationVersion = version, operationPromise = operationVersion.page({
|
|
200
|
-
uri: instance._uri,
|
|
201
|
-
method: "get",
|
|
202
|
-
params: data,
|
|
203
|
-
headers,
|
|
204
|
-
});
|
|
205
|
-
operationPromise = operationPromise.then((payload) => new AccountSecretPage(operationVersion, payload, instance._solution));
|
|
206
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
207
|
-
return operationPromise;
|
|
208
|
-
};
|
|
209
|
-
instance.each = instance._version.each;
|
|
210
|
-
instance.list = instance._version.list;
|
|
211
|
-
instance.getPage = function getPage(targetUrl, callback) {
|
|
212
|
-
const operationPromise = instance._version._domain.twilio.request({
|
|
213
|
-
method: "get",
|
|
214
|
-
uri: targetUrl,
|
|
215
|
-
});
|
|
216
|
-
let pagePromise = operationPromise.then((payload) => new AccountSecretPage(instance._version, payload, instance._solution));
|
|
217
|
-
pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
|
|
218
|
-
return pagePromise;
|
|
219
|
-
};
|
|
220
|
-
instance.toJSON = function toJSON() {
|
|
221
|
-
return instance._solution;
|
|
222
|
-
};
|
|
223
|
-
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
224
|
-
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
225
|
-
};
|
|
226
|
-
return instance;
|
|
227
|
-
}
|
|
228
|
-
exports.AccountSecretListInstance = AccountSecretListInstance;
|
|
229
|
-
class AccountSecretPage extends Page_1.default {
|
|
230
|
-
/**
|
|
231
|
-
* Initialize the AccountSecretPage
|
|
232
|
-
*
|
|
233
|
-
* @param version - Version of the resource
|
|
234
|
-
* @param response - Response from the API
|
|
235
|
-
* @param solution - Path solution
|
|
236
|
-
*/
|
|
237
|
-
constructor(version, response, solution) {
|
|
238
|
-
super(version, response, solution);
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Build an instance of AccountSecretInstance
|
|
242
|
-
*
|
|
243
|
-
* @param payload - Payload response from the API
|
|
244
|
-
*/
|
|
245
|
-
getInstance(payload) {
|
|
246
|
-
return new AccountSecretInstance(this._version, payload);
|
|
247
|
-
}
|
|
248
|
-
[util_1.inspect.custom](depth, options) {
|
|
249
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
exports.AccountSecretPage = AccountSecretPage;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { inspect, InspectOptions } from "util";
|
|
3
|
-
import V1 from "../../V1";
|
|
4
|
-
export interface AppManifestContext {
|
|
5
|
-
/**
|
|
6
|
-
* Fetch a AppManifestInstance
|
|
7
|
-
*
|
|
8
|
-
* @param callback - Callback to handle processed record
|
|
9
|
-
*
|
|
10
|
-
* @returns Resolves to processed AppManifestInstance
|
|
11
|
-
*/
|
|
12
|
-
fetch(callback?: (error: Error | null, item?: AppManifestInstance) => any): Promise<AppManifestInstance>;
|
|
13
|
-
/**
|
|
14
|
-
* Provide a user-friendly representation
|
|
15
|
-
*/
|
|
16
|
-
toJSON(): any;
|
|
17
|
-
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
18
|
-
}
|
|
19
|
-
export interface AppManifestContextSolution {
|
|
20
|
-
appSid: string;
|
|
21
|
-
}
|
|
22
|
-
export declare class AppManifestContextImpl implements AppManifestContext {
|
|
23
|
-
protected _version: V1;
|
|
24
|
-
protected _solution: AppManifestContextSolution;
|
|
25
|
-
protected _uri: string;
|
|
26
|
-
constructor(_version: V1, appSid: string);
|
|
27
|
-
fetch(callback?: (error: Error | null, item?: AppManifestInstance) => any): Promise<AppManifestInstance>;
|
|
28
|
-
/**
|
|
29
|
-
* Provide a user-friendly representation
|
|
30
|
-
*
|
|
31
|
-
* @returns Object
|
|
32
|
-
*/
|
|
33
|
-
toJSON(): AppManifestContextSolution;
|
|
34
|
-
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
35
|
-
}
|
|
36
|
-
interface AppManifestResource {
|
|
37
|
-
app_sid: string;
|
|
38
|
-
hash: string;
|
|
39
|
-
encoded_bytes: string;
|
|
40
|
-
url: string;
|
|
41
|
-
}
|
|
42
|
-
export declare class AppManifestInstance {
|
|
43
|
-
protected _version: V1;
|
|
44
|
-
protected _solution: AppManifestContextSolution;
|
|
45
|
-
protected _context?: AppManifestContext;
|
|
46
|
-
constructor(_version: V1, payload: AppManifestResource, appSid: string);
|
|
47
|
-
/**
|
|
48
|
-
* A 34-character string that uniquely identifies this App.
|
|
49
|
-
*/
|
|
50
|
-
appSid: string;
|
|
51
|
-
/**
|
|
52
|
-
* App manifest hash represented as `hash_algorithm:hash_value`.
|
|
53
|
-
*/
|
|
54
|
-
hash: string;
|
|
55
|
-
/**
|
|
56
|
-
* The base-64 encoded manifest
|
|
57
|
-
*/
|
|
58
|
-
encodedBytes: string;
|
|
59
|
-
/**
|
|
60
|
-
* The absolute URL of this Manifest.
|
|
61
|
-
*/
|
|
62
|
-
url: string;
|
|
63
|
-
private get _proxy();
|
|
64
|
-
/**
|
|
65
|
-
* Fetch a AppManifestInstance
|
|
66
|
-
*
|
|
67
|
-
* @param callback - Callback to handle processed record
|
|
68
|
-
*
|
|
69
|
-
* @returns Resolves to processed AppManifestInstance
|
|
70
|
-
*/
|
|
71
|
-
fetch(callback?: (error: Error | null, item?: AppManifestInstance) => any): Promise<AppManifestInstance>;
|
|
72
|
-
/**
|
|
73
|
-
* Provide a user-friendly representation
|
|
74
|
-
*
|
|
75
|
-
* @returns Object
|
|
76
|
-
*/
|
|
77
|
-
toJSON(): {
|
|
78
|
-
appSid: string;
|
|
79
|
-
hash: string;
|
|
80
|
-
encodedBytes: string;
|
|
81
|
-
url: string;
|
|
82
|
-
};
|
|
83
|
-
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
84
|
-
}
|
|
85
|
-
export interface AppManifestSolution {
|
|
86
|
-
appSid: string;
|
|
87
|
-
}
|
|
88
|
-
export interface AppManifestListInstance {
|
|
89
|
-
_version: V1;
|
|
90
|
-
_solution: AppManifestSolution;
|
|
91
|
-
_uri: string;
|
|
92
|
-
(): AppManifestContext;
|
|
93
|
-
get(): AppManifestContext;
|
|
94
|
-
/**
|
|
95
|
-
* Provide a user-friendly representation
|
|
96
|
-
*/
|
|
97
|
-
toJSON(): any;
|
|
98
|
-
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
99
|
-
}
|
|
100
|
-
export declare function AppManifestListInstance(version: V1, appSid: string): AppManifestListInstance;
|
|
101
|
-
export {};
|
|
@@ -1,118 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.AppManifestListInstance = exports.AppManifestInstance = exports.AppManifestContextImpl = 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
|
-
class AppManifestContextImpl {
|
|
22
|
-
constructor(_version, appSid) {
|
|
23
|
-
this._version = _version;
|
|
24
|
-
if (!(0, utility_1.isValidPathParam)(appSid)) {
|
|
25
|
-
throw new Error("Parameter 'appSid' is not valid.");
|
|
26
|
-
}
|
|
27
|
-
this._solution = { appSid };
|
|
28
|
-
this._uri = `/Apps/${appSid}/Manifest`;
|
|
29
|
-
}
|
|
30
|
-
fetch(callback) {
|
|
31
|
-
const headers = {};
|
|
32
|
-
headers["Accept"] = "application/json";
|
|
33
|
-
const instance = this;
|
|
34
|
-
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
35
|
-
uri: instance._uri,
|
|
36
|
-
method: "get",
|
|
37
|
-
headers,
|
|
38
|
-
});
|
|
39
|
-
operationPromise = operationPromise.then((payload) => new AppManifestInstance(operationVersion, payload, instance._solution.appSid));
|
|
40
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
41
|
-
return operationPromise;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Provide a user-friendly representation
|
|
45
|
-
*
|
|
46
|
-
* @returns Object
|
|
47
|
-
*/
|
|
48
|
-
toJSON() {
|
|
49
|
-
return this._solution;
|
|
50
|
-
}
|
|
51
|
-
[util_1.inspect.custom](_depth, options) {
|
|
52
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.AppManifestContextImpl = AppManifestContextImpl;
|
|
56
|
-
class AppManifestInstance {
|
|
57
|
-
constructor(_version, payload, appSid) {
|
|
58
|
-
this._version = _version;
|
|
59
|
-
this.appSid = payload.app_sid;
|
|
60
|
-
this.hash = payload.hash;
|
|
61
|
-
this.encodedBytes = payload.encoded_bytes;
|
|
62
|
-
this.url = payload.url;
|
|
63
|
-
this._solution = { appSid };
|
|
64
|
-
}
|
|
65
|
-
get _proxy() {
|
|
66
|
-
this._context =
|
|
67
|
-
this._context ||
|
|
68
|
-
new AppManifestContextImpl(this._version, this._solution.appSid);
|
|
69
|
-
return this._context;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Fetch a AppManifestInstance
|
|
73
|
-
*
|
|
74
|
-
* @param callback - Callback to handle processed record
|
|
75
|
-
*
|
|
76
|
-
* @returns Resolves to processed AppManifestInstance
|
|
77
|
-
*/
|
|
78
|
-
fetch(callback) {
|
|
79
|
-
return this._proxy.fetch(callback);
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Provide a user-friendly representation
|
|
83
|
-
*
|
|
84
|
-
* @returns Object
|
|
85
|
-
*/
|
|
86
|
-
toJSON() {
|
|
87
|
-
return {
|
|
88
|
-
appSid: this.appSid,
|
|
89
|
-
hash: this.hash,
|
|
90
|
-
encodedBytes: this.encodedBytes,
|
|
91
|
-
url: this.url,
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
[util_1.inspect.custom](_depth, options) {
|
|
95
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
exports.AppManifestInstance = AppManifestInstance;
|
|
99
|
-
function AppManifestListInstance(version, appSid) {
|
|
100
|
-
if (!(0, utility_1.isValidPathParam)(appSid)) {
|
|
101
|
-
throw new Error("Parameter 'appSid' is not valid.");
|
|
102
|
-
}
|
|
103
|
-
const instance = (() => instance.get());
|
|
104
|
-
instance.get = function get() {
|
|
105
|
-
return new AppManifestContextImpl(version, appSid);
|
|
106
|
-
};
|
|
107
|
-
instance._version = version;
|
|
108
|
-
instance._solution = { appSid };
|
|
109
|
-
instance._uri = ``;
|
|
110
|
-
instance.toJSON = function toJSON() {
|
|
111
|
-
return instance._solution;
|
|
112
|
-
};
|
|
113
|
-
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
114
|
-
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
115
|
-
};
|
|
116
|
-
return instance;
|
|
117
|
-
}
|
|
118
|
-
exports.AppManifestListInstance = AppManifestListInstance;
|