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,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This code was generated by
|
|
4
|
-
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
-
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
-
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
-
*
|
|
8
|
-
* Twilio - Knowledge
|
|
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.ChunkPage = exports.ChunkInstance = exports.ChunkListInstance = 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
|
-
function ChunkListInstance(version, id) {
|
|
26
|
-
if (!(0, utility_1.isValidPathParam)(id)) {
|
|
27
|
-
throw new Error("Parameter 'id' is not valid.");
|
|
28
|
-
}
|
|
29
|
-
const instance = {};
|
|
30
|
-
instance._version = version;
|
|
31
|
-
instance._solution = { id };
|
|
32
|
-
instance._uri = `/Knowledge/${id}/Chunks`;
|
|
33
|
-
instance.page = function page(params, callback) {
|
|
34
|
-
if (params instanceof Function) {
|
|
35
|
-
callback = params;
|
|
36
|
-
params = {};
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
params = params || {};
|
|
40
|
-
}
|
|
41
|
-
let data = {};
|
|
42
|
-
if (params["pageSize"] !== undefined)
|
|
43
|
-
data["PageSize"] = params["pageSize"];
|
|
44
|
-
if (params.pageNumber !== undefined)
|
|
45
|
-
data["Page"] = params.pageNumber;
|
|
46
|
-
if (params.pageToken !== undefined)
|
|
47
|
-
data["PageToken"] = params.pageToken;
|
|
48
|
-
const headers = {};
|
|
49
|
-
headers["Accept"] = "application/json";
|
|
50
|
-
let operationVersion = version, operationPromise = operationVersion.page({
|
|
51
|
-
uri: instance._uri,
|
|
52
|
-
method: "get",
|
|
53
|
-
params: data,
|
|
54
|
-
headers,
|
|
55
|
-
});
|
|
56
|
-
operationPromise = operationPromise.then((payload) => new ChunkPage(operationVersion, payload, instance._solution));
|
|
57
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
58
|
-
return operationPromise;
|
|
59
|
-
};
|
|
60
|
-
instance.each = instance._version.each;
|
|
61
|
-
instance.list = instance._version.list;
|
|
62
|
-
instance.getPage = function getPage(targetUrl, callback) {
|
|
63
|
-
const operationPromise = instance._version._domain.twilio.request({
|
|
64
|
-
method: "get",
|
|
65
|
-
uri: targetUrl,
|
|
66
|
-
});
|
|
67
|
-
let pagePromise = operationPromise.then((payload) => new ChunkPage(instance._version, payload, instance._solution));
|
|
68
|
-
pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
|
|
69
|
-
return pagePromise;
|
|
70
|
-
};
|
|
71
|
-
instance.toJSON = function toJSON() {
|
|
72
|
-
return instance._solution;
|
|
73
|
-
};
|
|
74
|
-
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
75
|
-
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
76
|
-
};
|
|
77
|
-
return instance;
|
|
78
|
-
}
|
|
79
|
-
exports.ChunkListInstance = ChunkListInstance;
|
|
80
|
-
class ChunkInstance {
|
|
81
|
-
constructor(_version, payload, id) {
|
|
82
|
-
this._version = _version;
|
|
83
|
-
this.accountSid = payload.account_sid;
|
|
84
|
-
this.content = payload.content;
|
|
85
|
-
this.metadata = payload.metadata;
|
|
86
|
-
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
87
|
-
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Provide a user-friendly representation
|
|
91
|
-
*
|
|
92
|
-
* @returns Object
|
|
93
|
-
*/
|
|
94
|
-
toJSON() {
|
|
95
|
-
return {
|
|
96
|
-
accountSid: this.accountSid,
|
|
97
|
-
content: this.content,
|
|
98
|
-
metadata: this.metadata,
|
|
99
|
-
dateCreated: this.dateCreated,
|
|
100
|
-
dateUpdated: this.dateUpdated,
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
[util_1.inspect.custom](_depth, options) {
|
|
104
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
exports.ChunkInstance = ChunkInstance;
|
|
108
|
-
class ChunkPage extends Page_1.default {
|
|
109
|
-
/**
|
|
110
|
-
* Initialize the ChunkPage
|
|
111
|
-
*
|
|
112
|
-
* @param version - Version of the resource
|
|
113
|
-
* @param response - Response from the API
|
|
114
|
-
* @param solution - Path solution
|
|
115
|
-
*/
|
|
116
|
-
constructor(version, response, solution) {
|
|
117
|
-
super(version, response, solution);
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Build an instance of ChunkInstance
|
|
121
|
-
*
|
|
122
|
-
* @param payload - Payload response from the API
|
|
123
|
-
*/
|
|
124
|
-
getInstance(payload) {
|
|
125
|
-
return new ChunkInstance(this._version, payload, this._solution.id);
|
|
126
|
-
}
|
|
127
|
-
[util_1.inspect.custom](depth, options) {
|
|
128
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
exports.ChunkPage = ChunkPage;
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { inspect, InspectOptions } from "util";
|
|
3
|
-
import V1 from "../../V1";
|
|
4
|
-
export interface KnowledgeStatusContext {
|
|
5
|
-
/**
|
|
6
|
-
* Fetch a KnowledgeStatusInstance
|
|
7
|
-
*
|
|
8
|
-
* @param callback - Callback to handle processed record
|
|
9
|
-
*
|
|
10
|
-
* @returns Resolves to processed KnowledgeStatusInstance
|
|
11
|
-
*/
|
|
12
|
-
fetch(callback?: (error: Error | null, item?: KnowledgeStatusInstance) => any): Promise<KnowledgeStatusInstance>;
|
|
13
|
-
/**
|
|
14
|
-
* Provide a user-friendly representation
|
|
15
|
-
*/
|
|
16
|
-
toJSON(): any;
|
|
17
|
-
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
18
|
-
}
|
|
19
|
-
export interface KnowledgeStatusContextSolution {
|
|
20
|
-
id: string;
|
|
21
|
-
}
|
|
22
|
-
export declare class KnowledgeStatusContextImpl implements KnowledgeStatusContext {
|
|
23
|
-
protected _version: V1;
|
|
24
|
-
protected _solution: KnowledgeStatusContextSolution;
|
|
25
|
-
protected _uri: string;
|
|
26
|
-
constructor(_version: V1, id: string);
|
|
27
|
-
fetch(callback?: (error: Error | null, item?: KnowledgeStatusInstance) => any): Promise<KnowledgeStatusInstance>;
|
|
28
|
-
/**
|
|
29
|
-
* Provide a user-friendly representation
|
|
30
|
-
*
|
|
31
|
-
* @returns Object
|
|
32
|
-
*/
|
|
33
|
-
toJSON(): KnowledgeStatusContextSolution;
|
|
34
|
-
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
35
|
-
}
|
|
36
|
-
interface KnowledgeStatusResource {
|
|
37
|
-
account_sid: string;
|
|
38
|
-
status: string;
|
|
39
|
-
last_status: string;
|
|
40
|
-
date_updated: Date;
|
|
41
|
-
}
|
|
42
|
-
export declare class KnowledgeStatusInstance {
|
|
43
|
-
protected _version: V1;
|
|
44
|
-
protected _solution: KnowledgeStatusContextSolution;
|
|
45
|
-
protected _context?: KnowledgeStatusContext;
|
|
46
|
-
constructor(_version: V1, payload: KnowledgeStatusResource, id: string);
|
|
47
|
-
/**
|
|
48
|
-
* The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Knowledge resource.
|
|
49
|
-
*/
|
|
50
|
-
accountSid: string;
|
|
51
|
-
/**
|
|
52
|
-
* The status of processing the knowledge source (\'QUEUED\', \'PROCESSING\', \'COMPLETED\', \'FAILED\')
|
|
53
|
-
*/
|
|
54
|
-
status: string;
|
|
55
|
-
/**
|
|
56
|
-
* The last status of processing the knowledge source (\'QUEUED\', \'PROCESSING\', \'COMPLETED\', \'FAILED\')
|
|
57
|
-
*/
|
|
58
|
-
lastStatus: string;
|
|
59
|
-
/**
|
|
60
|
-
* The date and time in GMT when the Knowledge was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
61
|
-
*/
|
|
62
|
-
dateUpdated: Date;
|
|
63
|
-
private get _proxy();
|
|
64
|
-
/**
|
|
65
|
-
* Fetch a KnowledgeStatusInstance
|
|
66
|
-
*
|
|
67
|
-
* @param callback - Callback to handle processed record
|
|
68
|
-
*
|
|
69
|
-
* @returns Resolves to processed KnowledgeStatusInstance
|
|
70
|
-
*/
|
|
71
|
-
fetch(callback?: (error: Error | null, item?: KnowledgeStatusInstance) => any): Promise<KnowledgeStatusInstance>;
|
|
72
|
-
/**
|
|
73
|
-
* Provide a user-friendly representation
|
|
74
|
-
*
|
|
75
|
-
* @returns Object
|
|
76
|
-
*/
|
|
77
|
-
toJSON(): {
|
|
78
|
-
accountSid: string;
|
|
79
|
-
status: string;
|
|
80
|
-
lastStatus: string;
|
|
81
|
-
dateUpdated: Date;
|
|
82
|
-
};
|
|
83
|
-
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
84
|
-
}
|
|
85
|
-
export interface KnowledgeStatusSolution {
|
|
86
|
-
id: string;
|
|
87
|
-
}
|
|
88
|
-
export interface KnowledgeStatusListInstance {
|
|
89
|
-
_version: V1;
|
|
90
|
-
_solution: KnowledgeStatusSolution;
|
|
91
|
-
_uri: string;
|
|
92
|
-
(): KnowledgeStatusContext;
|
|
93
|
-
get(): KnowledgeStatusContext;
|
|
94
|
-
/**
|
|
95
|
-
* Provide a user-friendly representation
|
|
96
|
-
*/
|
|
97
|
-
toJSON(): any;
|
|
98
|
-
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
99
|
-
}
|
|
100
|
-
export declare function KnowledgeStatusListInstance(version: V1, id: string): KnowledgeStatusListInstance;
|
|
101
|
-
export {};
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This code was generated by
|
|
4
|
-
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
-
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
-
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
-
*
|
|
8
|
-
* Twilio - Knowledge
|
|
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.KnowledgeStatusListInstance = exports.KnowledgeStatusInstance = exports.KnowledgeStatusContextImpl = 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 KnowledgeStatusContextImpl {
|
|
22
|
-
constructor(_version, id) {
|
|
23
|
-
this._version = _version;
|
|
24
|
-
if (!(0, utility_1.isValidPathParam)(id)) {
|
|
25
|
-
throw new Error("Parameter 'id' is not valid.");
|
|
26
|
-
}
|
|
27
|
-
this._solution = { id };
|
|
28
|
-
this._uri = `/Knowledge/${id}/Status`;
|
|
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 KnowledgeStatusInstance(operationVersion, payload, instance._solution.id));
|
|
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.KnowledgeStatusContextImpl = KnowledgeStatusContextImpl;
|
|
56
|
-
class KnowledgeStatusInstance {
|
|
57
|
-
constructor(_version, payload, id) {
|
|
58
|
-
this._version = _version;
|
|
59
|
-
this.accountSid = payload.account_sid;
|
|
60
|
-
this.status = payload.status;
|
|
61
|
-
this.lastStatus = payload.last_status;
|
|
62
|
-
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
63
|
-
this._solution = { id };
|
|
64
|
-
}
|
|
65
|
-
get _proxy() {
|
|
66
|
-
this._context =
|
|
67
|
-
this._context ||
|
|
68
|
-
new KnowledgeStatusContextImpl(this._version, this._solution.id);
|
|
69
|
-
return this._context;
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Fetch a KnowledgeStatusInstance
|
|
73
|
-
*
|
|
74
|
-
* @param callback - Callback to handle processed record
|
|
75
|
-
*
|
|
76
|
-
* @returns Resolves to processed KnowledgeStatusInstance
|
|
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
|
-
accountSid: this.accountSid,
|
|
89
|
-
status: this.status,
|
|
90
|
-
lastStatus: this.lastStatus,
|
|
91
|
-
dateUpdated: this.dateUpdated,
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
[util_1.inspect.custom](_depth, options) {
|
|
95
|
-
return (0, util_1.inspect)(this.toJSON(), options);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
exports.KnowledgeStatusInstance = KnowledgeStatusInstance;
|
|
99
|
-
function KnowledgeStatusListInstance(version, id) {
|
|
100
|
-
if (!(0, utility_1.isValidPathParam)(id)) {
|
|
101
|
-
throw new Error("Parameter 'id' is not valid.");
|
|
102
|
-
}
|
|
103
|
-
const instance = (() => instance.get());
|
|
104
|
-
instance.get = function get() {
|
|
105
|
-
return new KnowledgeStatusContextImpl(version, id);
|
|
106
|
-
};
|
|
107
|
-
instance._version = version;
|
|
108
|
-
instance._solution = { id };
|
|
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.KnowledgeStatusListInstance = KnowledgeStatusListInstance;
|