twilio 5.7.0 → 5.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/rest/Twilio.d.ts +0 -10
- package/lib/rest/Twilio.js +0 -11
- package/lib/rest/accounts/v1/bulkConsents.d.ts +4 -4
- package/lib/rest/accounts/v1/bulkConsents.js +1 -1
- package/lib/rest/accounts/v1/bulkContacts.d.ts +4 -4
- package/lib/rest/accounts/v1/bulkContacts.js +1 -1
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +15 -10
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.js +2 -2
- package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +3 -0
- package/lib/rest/api/v2010/account/call/event.d.ts +6 -6
- package/lib/rest/api/v2010/account/call/payment.d.ts +1 -1
- package/lib/rest/api/v2010/account/call/recording.d.ts +3 -3
- package/lib/rest/api/v2010/account/conference/recording.d.ts +3 -3
- package/lib/rest/api/v2010/account/connectApp.d.ts +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/assignedAddOn.d.ts +3 -3
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +3 -0
- package/lib/rest/api/v2010/account/recording.d.ts +4 -4
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +3 -0
- package/lib/rest/bulkexports/v1/export/day.d.ts +3 -3
- package/lib/rest/bulkexports/v1/export/exportCustomJob.d.ts +3 -3
- package/lib/rest/bulkexports/v1/export/job.d.ts +3 -3
- package/lib/rest/chat/v1/credential.d.ts +3 -0
- package/lib/rest/chat/v1/service/channel.d.ts +3 -0
- package/lib/rest/chat/v1/service/role.d.ts +3 -0
- package/lib/rest/chat/v1/service/user/userChannel.d.ts +3 -0
- package/lib/rest/chat/v1/service.d.ts +9 -9
- package/lib/rest/chat/v2/credential.d.ts +3 -0
- package/lib/rest/chat/v2/service/channel/message.d.ts +3 -3
- package/lib/rest/chat/v2/service/channel/webhook.d.ts +3 -3
- package/lib/rest/chat/v2/service/channel.d.ts +3 -0
- package/lib/rest/chat/v2/service/role.d.ts +3 -0
- package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -0
- package/lib/rest/chat/v2/service.d.ts +9 -9
- package/lib/rest/chat/v3/channel.d.ts +3 -0
- package/lib/rest/content/v2/content.d.ts +6 -6
- package/lib/rest/content/v2/contentAndApprovals.d.ts +9 -9
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +7 -7
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +6 -3
- package/lib/rest/conversations/v1/conversation/message.d.ts +9 -9
- package/lib/rest/conversations/v1/conversation/participant.d.ts +6 -6
- package/lib/rest/conversations/v1/conversation/webhook.d.ts +7 -7
- package/lib/rest/conversations/v1/conversation.d.ts +9 -9
- package/lib/rest/conversations/v1/conversationWithParticipants.d.ts +6 -6
- package/lib/rest/conversations/v1/credential.d.ts +6 -3
- package/lib/rest/conversations/v1/participantConversation.d.ts +12 -9
- package/lib/rest/conversations/v1/role.d.ts +6 -3
- package/lib/rest/conversations/v1/service/binding.d.ts +3 -3
- package/lib/rest/conversations/v1/service/configuration/notification.d.ts +9 -9
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +6 -3
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +9 -9
- package/lib/rest/conversations/v1/service/conversation/participant.d.ts +6 -6
- package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +7 -7
- package/lib/rest/conversations/v1/service/conversation.d.ts +9 -9
- package/lib/rest/conversations/v1/service/conversationWithParticipants.d.ts +6 -6
- package/lib/rest/conversations/v1/service/participantConversation.d.ts +12 -9
- package/lib/rest/conversations/v1/service/role.d.ts +6 -3
- package/lib/rest/conversations/v1/service/user/userConversation.d.ts +9 -6
- package/lib/rest/conversations/v1/service/user.d.ts +3 -3
- package/lib/rest/conversations/v1/service.d.ts +3 -3
- package/lib/rest/conversations/v1/user/userConversation.d.ts +9 -6
- package/lib/rest/conversations/v1/user.d.ts +3 -3
- package/lib/rest/events/v1/sink.d.ts +4 -4
- package/lib/rest/events/v1/subscription.d.ts +1 -1
- package/lib/rest/events/v1/subscription.js +1 -1
- package/lib/rest/flexApi/v1/assessments.d.ts +3 -3
- package/lib/rest/flexApi/v1/configuration.d.ts +66 -66
- package/lib/rest/flexApi/v1/flexFlow.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsAssessmentsComment.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsConversations.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsQuestionnaires.d.ts +3 -3
- package/lib/rest/flexApi/v1/insightsQuestionnairesQuestion.d.ts +6 -6
- package/lib/rest/flexApi/v1/insightsSegments.d.ts +9 -9
- package/lib/rest/flexApi/v1/insightsSettingsAnswerSets.d.ts +9 -9
- package/lib/rest/flexApi/v1/insightsSettingsComment.d.ts +3 -3
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelInvite.d.ts +4 -4
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionChannelParticipant.d.ts +5 -5
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.d.ts +6 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +4 -1
- package/lib/rest/flexApi/v1/interaction.d.ts +8 -8
- package/lib/rest/flexApi/v1/pluginConfiguration.d.ts +1 -1
- package/lib/rest/flexApi/v1/pluginConfiguration.js +1 -1
- package/lib/rest/frontlineApi/v1/user.d.ts +3 -0
- package/lib/rest/intelligence/v2/customOperator.d.ts +5 -5
- package/lib/rest/intelligence/v2/operator.d.ts +3 -3
- package/lib/rest/intelligence/v2/operatorType.d.ts +3 -3
- package/lib/rest/intelligence/v2/prebuiltOperator.d.ts +3 -3
- package/lib/rest/intelligence/v2/service.d.ts +3 -0
- package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +15 -15
- package/lib/rest/intelligence/v2/transcript/sentence.d.ts +3 -3
- package/lib/rest/intelligence/v2/transcript.d.ts +4 -4
- package/lib/rest/ipMessaging/v1/service.d.ts +9 -9
- package/lib/rest/ipMessaging/v2/service/channel/message.d.ts +3 -3
- package/lib/rest/ipMessaging/v2/service/channel/webhook.d.ts +3 -3
- package/lib/rest/ipMessaging/v2/service.d.ts +9 -9
- package/lib/rest/lookups/V2.d.ts +20 -0
- package/lib/rest/lookups/V2.js +25 -0
- package/lib/rest/lookups/v2/bucket.d.ts +205 -0
- package/lib/rest/lookups/v2/bucket.js +187 -0
- package/lib/rest/lookups/v2/lookupOverride.d.ts +264 -0
- package/lib/rest/lookups/v2/lookupOverride.js +225 -0
- package/lib/rest/lookups/v2/phoneNumber.d.ts +3 -0
- package/lib/rest/lookups/v2/query.d.ts +175 -0
- package/lib/rest/lookups/v2/query.js +123 -0
- package/lib/rest/lookups/v2/rateLimit.d.ts +83 -0
- package/lib/rest/lookups/v2/rateLimit.js +82 -0
- package/lib/rest/messaging/v1/service/destinationAlphaSender.d.ts +6 -0
- package/lib/rest/messaging/v1/service/destinationAlphaSender.js +2 -0
- package/lib/rest/messaging/v1/service.d.ts +3 -3
- package/lib/rest/messaging/v2/channelsSender.d.ts +49 -4
- package/lib/rest/messaging/v2/channelsSender.js +14 -2
- package/lib/rest/monitor/v1/event.d.ts +3 -3
- package/lib/rest/notify/v1/credential.d.ts +3 -0
- package/lib/rest/notify/v1/service/notification.d.ts +28 -28
- package/lib/rest/numbers/v1/bulkEligibility.d.ts +3 -3
- package/lib/rest/numbers/v1/eligibility.d.ts +3 -3
- package/lib/rest/numbers/v1/portingPortIn.d.ts +6 -6
- package/lib/rest/numbers/v2/bulkHostedNumberOrder.d.ts +3 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/bundle/evaluation.d.ts +3 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/endUser.d.ts +5 -5
- package/lib/rest/numbers/v2/regulatoryCompliance/endUserType.d.ts +3 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/regulation.d.ts +3 -3
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocument.d.ts +8 -8
- package/lib/rest/numbers/v2/regulatoryCompliance/supportingDocumentType.d.ts +3 -3
- package/lib/rest/preview/marketplace/availableAddOn.d.ts +3 -3
- package/lib/rest/preview/marketplace/installedAddOn.d.ts +5 -5
- package/lib/rest/preview/wireless/sim/usage.d.ts +15 -15
- package/lib/rest/proxy/v1/service/session/interaction.d.ts +3 -0
- package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +3 -0
- package/lib/rest/proxy/v1/service/session.d.ts +1 -1
- package/lib/rest/proxy/v1/service/session.js +1 -1
- package/lib/rest/proxy/v1/service.d.ts +0 -8
- package/lib/rest/proxy/v1/service.js +0 -13
- package/lib/rest/serverless/v1/service/build.d.ts +9 -9
- package/lib/rest/serverless/v1/service/environment/log.d.ts +6 -7
- package/lib/rest/studio/v1/flow/engagement/engagementContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/engagement/step/stepContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/engagement/step.d.ts +3 -3
- package/lib/rest/studio/v1/flow/engagement.d.ts +4 -4
- package/lib/rest/studio/v1/flow/execution/executionContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/execution/executionStep/executionStepContext.d.ts +3 -3
- package/lib/rest/studio/v1/flow/execution/executionStep.d.ts +3 -3
- package/lib/rest/studio/v1/flow/execution.d.ts +4 -4
- package/lib/rest/studio/v2/flow/execution/executionContext.d.ts +3 -3
- package/lib/rest/studio/v2/flow/execution/executionStep/executionStepContext.d.ts +3 -3
- package/lib/rest/studio/v2/flow/execution/executionStep.d.ts +3 -3
- package/lib/rest/studio/v2/flow/execution.d.ts +4 -4
- package/lib/rest/studio/v2/flow/flowRevision.d.ts +6 -6
- package/lib/rest/studio/v2/flow.d.ts +11 -11
- package/lib/rest/studio/v2/flowValidate.d.ts +1 -1
- package/lib/rest/supersim/v1/network.d.ts +3 -3
- package/lib/rest/supersim/v1/networkAccessProfile/networkAccessProfileNetwork.d.ts +3 -3
- package/lib/rest/supersim/v1/settingsUpdate.d.ts +3 -3
- package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +3 -0
- package/lib/rest/supersim/v1/usageRecord.d.ts +3 -3
- package/lib/rest/sync/v1/service/document/documentPermission.d.ts +3 -3
- package/lib/rest/sync/v1/service/document.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncList.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncMap.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncStream.d.ts +3 -3
- package/lib/rest/sync/v1/service.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/event.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +3 -0
- package/lib/rest/taskrouter/v1/workspace/task.d.ts +4 -1
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueBulkRealTimeStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueCumulativeStatistics.d.ts +12 -12
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueRealTimeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueueStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/taskQueue/taskQueuesStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +3 -0
- package/lib/rest/taskrouter/v1/workspace/worker/workerStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/worker/workersCumulativeStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/worker/workersRealTimeStatistics.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/worker/workersStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowCumulativeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowRealTimeStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/workflow/workflowStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace/workspaceCumulativeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/workspaceRealTimeStatistics.d.ts +9 -9
- package/lib/rest/taskrouter/v1/workspace/workspaceStatistics.d.ts +6 -6
- package/lib/rest/taskrouter/v1/workspace.d.ts +3 -0
- package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +3 -0
- package/lib/rest/trunking/v1/trunk/recording.d.ts +6 -0
- package/lib/rest/trunking/v1/trunk.d.ts +12 -3
- package/lib/rest/trunking/v1/trunk.js +2 -0
- package/lib/rest/trusthub/v1/customerProfiles/customerProfilesEvaluations.d.ts +3 -3
- package/lib/rest/trusthub/v1/customerProfiles.d.ts +3 -3
- package/lib/rest/trusthub/v1/endUser.d.ts +5 -5
- package/lib/rest/trusthub/v1/endUserType.d.ts +3 -3
- package/lib/rest/trusthub/v1/policies.d.ts +3 -3
- package/lib/rest/trusthub/v1/supportingDocument.d.ts +5 -5
- package/lib/rest/trusthub/v1/supportingDocumentType.d.ts +3 -3
- package/lib/rest/trusthub/v1/trustProducts/trustProductsEvaluations.d.ts +3 -3
- package/lib/rest/trusthub/v1/trustProducts.d.ts +3 -3
- package/lib/rest/verify/v2/form.d.ts +9 -6
- package/lib/rest/verify/v2/service/accessToken.d.ts +3 -0
- package/lib/rest/verify/v2/service/entity/challenge.d.ts +21 -12
- package/lib/rest/verify/v2/service/entity/challenge.js +1 -1
- package/lib/rest/verify/v2/service/entity/factor.d.ts +12 -6
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +16 -10
- package/lib/rest/verify/v2/service/verification.d.ts +11 -11
- package/lib/rest/verify/v2/service/verificationCheck.d.ts +3 -3
- package/lib/rest/verify/v2/service/webhook.d.ts +3 -0
- package/lib/rest/verify/v2/service.d.ts +9 -9
- package/lib/rest/verify/v2/template.d.ts +3 -3
- package/lib/rest/verify/v2/verificationAttempt.d.ts +13 -10
- package/lib/rest/verify/v2/verificationAttemptsSummary.d.ts +2 -2
- package/lib/rest/video/v1/composition.d.ts +3 -3
- package/lib/rest/video/v1/recording.d.ts +3 -3
- package/lib/rest/video/v1/room/transcriptions.d.ts +316 -0
- package/lib/rest/{proxy/v1/service/shortCode.js → video/v1/room/transcriptions.js} +61 -78
- package/lib/rest/video/v1/room.d.ts +8 -0
- package/lib/rest/video/v1/room.js +13 -0
- package/lib/rest/wireless/v1/sim/dataSession.d.ts +3 -3
- package/lib/rest/wireless/v1/sim/usageRecord.d.ts +9 -9
- package/lib/rest/wireless/v1/usageRecord.d.ts +9 -9
- package/lib/twiml/VoiceResponse.d.ts +32 -1
- package/lib/twiml/VoiceResponse.js +18 -0
- package/package.json +1 -1
- package/lib/rest/Knowledge.d.ts +0 -4
- package/lib/rest/Knowledge.js +0 -8
- package/lib/rest/KnowledgeBase.d.ts +0 -13
- package/lib/rest/KnowledgeBase.js +0 -31
- package/lib/rest/Microvisor.d.ts +0 -14
- package/lib/rest/Microvisor.js +0 -22
- package/lib/rest/MicrovisorBase.d.ts +0 -13
- package/lib/rest/MicrovisorBase.js +0 -31
- package/lib/rest/knowledge/V1.d.ts +0 -15
- package/lib/rest/knowledge/V1.js +0 -36
- package/lib/rest/knowledge/v1/knowledge/chunk.d.ts +0 -167
- package/lib/rest/knowledge/v1/knowledge/chunk.js +0 -131
- package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.d.ts +0 -101
- package/lib/rest/knowledge/v1/knowledge/knowledgeStatus.js +0 -118
- package/lib/rest/knowledge/v1/knowledge.d.ts +0 -406
- package/lib/rest/knowledge/v1/knowledge.js +0 -300
- package/lib/rest/microvisor/V1.d.ts +0 -30
- package/lib/rest/microvisor/V1.js +0 -56
- package/lib/rest/microvisor/v1/accountConfig.d.ts +0 -263
- package/lib/rest/microvisor/v1/accountConfig.js +0 -254
- package/lib/rest/microvisor/v1/accountSecret.d.ts +0 -257
- package/lib/rest/microvisor/v1/accountSecret.js +0 -252
- package/lib/rest/microvisor/v1/app/appManifest.d.ts +0 -101
- package/lib/rest/microvisor/v1/app/appManifest.js +0 -118
- package/lib/rest/microvisor/v1/app.d.ts +0 -251
- package/lib/rest/microvisor/v1/app.js +0 -222
- package/lib/rest/microvisor/v1/device/deviceConfig.d.ts +0 -271
- package/lib/rest/microvisor/v1/device/deviceConfig.js +0 -262
- package/lib/rest/microvisor/v1/device/deviceSecret.d.ts +0 -265
- package/lib/rest/microvisor/v1/device/deviceSecret.js +0 -260
- package/lib/rest/microvisor/v1/device.d.ts +0 -299
- package/lib/rest/microvisor/v1/device.js +0 -250
- package/lib/rest/proxy/v1/service/shortCode.d.ts +0 -316
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
6
|
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
7
|
*
|
|
8
|
-
* Twilio -
|
|
8
|
+
* Twilio - Video
|
|
9
9
|
* This is the public Twilio REST API.
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -16,34 +16,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.TranscriptionsPage = exports.TranscriptionsListInstance = exports.TranscriptionsInstance = exports.TranscriptionsContextImpl = void 0;
|
|
20
20
|
const util_1 = require("util");
|
|
21
21
|
const Page_1 = __importDefault(require("../../../../base/Page"));
|
|
22
22
|
const deserialize = require("../../../../base/deserialize");
|
|
23
23
|
const serialize = require("../../../../base/serialize");
|
|
24
24
|
const utility_1 = require("../../../../base/utility");
|
|
25
|
-
class
|
|
26
|
-
constructor(_version,
|
|
25
|
+
class TranscriptionsContextImpl {
|
|
26
|
+
constructor(_version, roomSid, ttid) {
|
|
27
27
|
this._version = _version;
|
|
28
|
-
if (!(0, utility_1.isValidPathParam)(
|
|
29
|
-
throw new Error("Parameter '
|
|
28
|
+
if (!(0, utility_1.isValidPathParam)(roomSid)) {
|
|
29
|
+
throw new Error("Parameter 'roomSid' is not valid.");
|
|
30
30
|
}
|
|
31
|
-
if (!(0, utility_1.isValidPathParam)(
|
|
32
|
-
throw new Error("Parameter '
|
|
31
|
+
if (!(0, utility_1.isValidPathParam)(ttid)) {
|
|
32
|
+
throw new Error("Parameter 'ttid' is not valid.");
|
|
33
33
|
}
|
|
34
|
-
this._solution = {
|
|
35
|
-
this._uri = `/
|
|
36
|
-
}
|
|
37
|
-
remove(callback) {
|
|
38
|
-
const headers = {};
|
|
39
|
-
const instance = this;
|
|
40
|
-
let operationVersion = instance._version, operationPromise = operationVersion.remove({
|
|
41
|
-
uri: instance._uri,
|
|
42
|
-
method: "delete",
|
|
43
|
-
headers,
|
|
44
|
-
});
|
|
45
|
-
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
46
|
-
return operationPromise;
|
|
34
|
+
this._solution = { roomSid, ttid };
|
|
35
|
+
this._uri = `/Rooms/${roomSid}/Transcriptions/${ttid}`;
|
|
47
36
|
}
|
|
48
37
|
fetch(callback) {
|
|
49
38
|
const headers = {};
|
|
@@ -54,7 +43,7 @@ class ShortCodeContextImpl {
|
|
|
54
43
|
method: "get",
|
|
55
44
|
headers,
|
|
56
45
|
});
|
|
57
|
-
operationPromise = operationPromise.then((payload) => new
|
|
46
|
+
operationPromise = operationPromise.then((payload) => new TranscriptionsInstance(operationVersion, payload, instance._solution.roomSid, instance._solution.ttid));
|
|
58
47
|
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
59
48
|
return operationPromise;
|
|
60
49
|
}
|
|
@@ -67,8 +56,8 @@ class ShortCodeContextImpl {
|
|
|
67
56
|
params = params || {};
|
|
68
57
|
}
|
|
69
58
|
let data = {};
|
|
70
|
-
if (params["
|
|
71
|
-
data["
|
|
59
|
+
if (params["status"] !== undefined)
|
|
60
|
+
data["Status"] = params["status"];
|
|
72
61
|
const headers = {};
|
|
73
62
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
74
63
|
headers["Accept"] = "application/json";
|
|
@@ -79,7 +68,7 @@ class ShortCodeContextImpl {
|
|
|
79
68
|
data,
|
|
80
69
|
headers,
|
|
81
70
|
});
|
|
82
|
-
operationPromise = operationPromise.then((payload) => new
|
|
71
|
+
operationPromise = operationPromise.then((payload) => new TranscriptionsInstance(operationVersion, payload, instance._solution.roomSid, instance._solution.ttid));
|
|
83
72
|
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
84
73
|
return operationPromise;
|
|
85
74
|
}
|
|
@@ -95,44 +84,35 @@ class ShortCodeContextImpl {
|
|
|
95
84
|
return (0, util_1.inspect)(this.toJSON(), options);
|
|
96
85
|
}
|
|
97
86
|
}
|
|
98
|
-
exports.
|
|
99
|
-
class
|
|
100
|
-
constructor(_version, payload,
|
|
87
|
+
exports.TranscriptionsContextImpl = TranscriptionsContextImpl;
|
|
88
|
+
class TranscriptionsInstance {
|
|
89
|
+
constructor(_version, payload, roomSid, ttid) {
|
|
101
90
|
this._version = _version;
|
|
102
|
-
this.
|
|
91
|
+
this.ttid = payload.ttid;
|
|
103
92
|
this.accountSid = payload.account_sid;
|
|
104
|
-
this.
|
|
93
|
+
this.roomSid = payload.room_sid;
|
|
94
|
+
this.status = payload.status;
|
|
95
|
+
this.identity = payload.identity;
|
|
105
96
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
106
97
|
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
109
|
-
this.
|
|
98
|
+
this.startTime = deserialize.iso8601DateTime(payload.start_time);
|
|
99
|
+
this.endTime = deserialize.iso8601DateTime(payload.end_time);
|
|
100
|
+
this.duration = deserialize.integer(payload.duration);
|
|
110
101
|
this.url = payload.url;
|
|
111
|
-
this.
|
|
112
|
-
this._solution = { serviceSid, sid: sid || this.sid };
|
|
102
|
+
this._solution = { roomSid, ttid: ttid || this.ttid };
|
|
113
103
|
}
|
|
114
104
|
get _proxy() {
|
|
115
105
|
this._context =
|
|
116
106
|
this._context ||
|
|
117
|
-
new
|
|
107
|
+
new TranscriptionsContextImpl(this._version, this._solution.roomSid, this._solution.ttid);
|
|
118
108
|
return this._context;
|
|
119
109
|
}
|
|
120
110
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* @param callback - Callback to handle processed record
|
|
124
|
-
*
|
|
125
|
-
* @returns Resolves to processed boolean
|
|
126
|
-
*/
|
|
127
|
-
remove(callback) {
|
|
128
|
-
return this._proxy.remove(callback);
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Fetch a ShortCodeInstance
|
|
111
|
+
* Fetch a TranscriptionsInstance
|
|
132
112
|
*
|
|
133
113
|
* @param callback - Callback to handle processed record
|
|
134
114
|
*
|
|
135
|
-
* @returns Resolves to processed
|
|
115
|
+
* @returns Resolves to processed TranscriptionsInstance
|
|
136
116
|
*/
|
|
137
117
|
fetch(callback) {
|
|
138
118
|
return this._proxy.fetch(callback);
|
|
@@ -147,43 +127,46 @@ class ShortCodeInstance {
|
|
|
147
127
|
*/
|
|
148
128
|
toJSON() {
|
|
149
129
|
return {
|
|
150
|
-
|
|
130
|
+
ttid: this.ttid,
|
|
151
131
|
accountSid: this.accountSid,
|
|
152
|
-
|
|
132
|
+
roomSid: this.roomSid,
|
|
133
|
+
status: this.status,
|
|
134
|
+
identity: this.identity,
|
|
153
135
|
dateCreated: this.dateCreated,
|
|
154
136
|
dateUpdated: this.dateUpdated,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
137
|
+
startTime: this.startTime,
|
|
138
|
+
endTime: this.endTime,
|
|
139
|
+
duration: this.duration,
|
|
158
140
|
url: this.url,
|
|
159
|
-
isReserved: this.isReserved,
|
|
160
141
|
};
|
|
161
142
|
}
|
|
162
143
|
[util_1.inspect.custom](_depth, options) {
|
|
163
144
|
return (0, util_1.inspect)(this.toJSON(), options);
|
|
164
145
|
}
|
|
165
146
|
}
|
|
166
|
-
exports.
|
|
167
|
-
function
|
|
168
|
-
if (!(0, utility_1.isValidPathParam)(
|
|
169
|
-
throw new Error("Parameter '
|
|
170
|
-
}
|
|
171
|
-
const instance = ((
|
|
172
|
-
instance.get = function get(
|
|
173
|
-
return new
|
|
147
|
+
exports.TranscriptionsInstance = TranscriptionsInstance;
|
|
148
|
+
function TranscriptionsListInstance(version, roomSid) {
|
|
149
|
+
if (!(0, utility_1.isValidPathParam)(roomSid)) {
|
|
150
|
+
throw new Error("Parameter 'roomSid' is not valid.");
|
|
151
|
+
}
|
|
152
|
+
const instance = ((ttid) => instance.get(ttid));
|
|
153
|
+
instance.get = function get(ttid) {
|
|
154
|
+
return new TranscriptionsContextImpl(version, roomSid, ttid);
|
|
174
155
|
};
|
|
175
156
|
instance._version = version;
|
|
176
|
-
instance._solution = {
|
|
177
|
-
instance._uri = `/
|
|
157
|
+
instance._solution = { roomSid };
|
|
158
|
+
instance._uri = `/Rooms/${roomSid}/Transcriptions`;
|
|
178
159
|
instance.create = function create(params, callback) {
|
|
179
|
-
if (params
|
|
180
|
-
|
|
160
|
+
if (params instanceof Function) {
|
|
161
|
+
callback = params;
|
|
162
|
+
params = {};
|
|
181
163
|
}
|
|
182
|
-
|
|
183
|
-
|
|
164
|
+
else {
|
|
165
|
+
params = params || {};
|
|
184
166
|
}
|
|
185
167
|
let data = {};
|
|
186
|
-
|
|
168
|
+
if (params["configuration"] !== undefined)
|
|
169
|
+
data["Configuration"] = serialize.object(params["configuration"]);
|
|
187
170
|
const headers = {};
|
|
188
171
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
189
172
|
headers["Accept"] = "application/json";
|
|
@@ -193,7 +176,7 @@ function ShortCodeListInstance(version, serviceSid) {
|
|
|
193
176
|
data,
|
|
194
177
|
headers,
|
|
195
178
|
});
|
|
196
|
-
operationPromise = operationPromise.then((payload) => new
|
|
179
|
+
operationPromise = operationPromise.then((payload) => new TranscriptionsInstance(operationVersion, payload, instance._solution.roomSid));
|
|
197
180
|
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
198
181
|
return operationPromise;
|
|
199
182
|
};
|
|
@@ -220,7 +203,7 @@ function ShortCodeListInstance(version, serviceSid) {
|
|
|
220
203
|
params: data,
|
|
221
204
|
headers,
|
|
222
205
|
});
|
|
223
|
-
operationPromise = operationPromise.then((payload) => new
|
|
206
|
+
operationPromise = operationPromise.then((payload) => new TranscriptionsPage(operationVersion, payload, instance._solution));
|
|
224
207
|
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
225
208
|
return operationPromise;
|
|
226
209
|
};
|
|
@@ -231,7 +214,7 @@ function ShortCodeListInstance(version, serviceSid) {
|
|
|
231
214
|
method: "get",
|
|
232
215
|
uri: targetUrl,
|
|
233
216
|
});
|
|
234
|
-
let pagePromise = operationPromise.then((payload) => new
|
|
217
|
+
let pagePromise = operationPromise.then((payload) => new TranscriptionsPage(instance._version, payload, instance._solution));
|
|
235
218
|
pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
|
|
236
219
|
return pagePromise;
|
|
237
220
|
};
|
|
@@ -243,10 +226,10 @@ function ShortCodeListInstance(version, serviceSid) {
|
|
|
243
226
|
};
|
|
244
227
|
return instance;
|
|
245
228
|
}
|
|
246
|
-
exports.
|
|
247
|
-
class
|
|
229
|
+
exports.TranscriptionsListInstance = TranscriptionsListInstance;
|
|
230
|
+
class TranscriptionsPage extends Page_1.default {
|
|
248
231
|
/**
|
|
249
|
-
* Initialize the
|
|
232
|
+
* Initialize the TranscriptionsPage
|
|
250
233
|
*
|
|
251
234
|
* @param version - Version of the resource
|
|
252
235
|
* @param response - Response from the API
|
|
@@ -256,15 +239,15 @@ class ShortCodePage extends Page_1.default {
|
|
|
256
239
|
super(version, response, solution);
|
|
257
240
|
}
|
|
258
241
|
/**
|
|
259
|
-
* Build an instance of
|
|
242
|
+
* Build an instance of TranscriptionsInstance
|
|
260
243
|
*
|
|
261
244
|
* @param payload - Payload response from the API
|
|
262
245
|
*/
|
|
263
246
|
getInstance(payload) {
|
|
264
|
-
return new
|
|
247
|
+
return new TranscriptionsInstance(this._version, payload, this._solution.roomSid);
|
|
265
248
|
}
|
|
266
249
|
[util_1.inspect.custom](depth, options) {
|
|
267
250
|
return (0, util_1.inspect)(this.toJSON(), options);
|
|
268
251
|
}
|
|
269
252
|
}
|
|
270
|
-
exports.
|
|
253
|
+
exports.TranscriptionsPage = TranscriptionsPage;
|
|
@@ -6,6 +6,7 @@ import V1 from "../V1";
|
|
|
6
6
|
import { ParticipantListInstance } from "./room/participant";
|
|
7
7
|
import { RecordingRulesListInstance } from "./room/recordingRules";
|
|
8
8
|
import { RoomRecordingListInstance } from "./room/roomRecording";
|
|
9
|
+
import { TranscriptionsListInstance } from "./room/transcriptions";
|
|
9
10
|
export type RoomRoomStatus = "in-progress" | "completed" | "failed";
|
|
10
11
|
export type RoomRoomType = "go" | "peer-to-peer" | "group" | "group-small";
|
|
11
12
|
export type RoomVideoCodec = "VP8" | "H264";
|
|
@@ -116,6 +117,7 @@ export interface RoomContext {
|
|
|
116
117
|
participants: ParticipantListInstance;
|
|
117
118
|
recordingRules: RecordingRulesListInstance;
|
|
118
119
|
recordings: RoomRecordingListInstance;
|
|
120
|
+
transcriptions: TranscriptionsListInstance;
|
|
119
121
|
/**
|
|
120
122
|
* Fetch a RoomInstance
|
|
121
123
|
*
|
|
@@ -149,10 +151,12 @@ export declare class RoomContextImpl implements RoomContext {
|
|
|
149
151
|
protected _participants?: ParticipantListInstance;
|
|
150
152
|
protected _recordingRules?: RecordingRulesListInstance;
|
|
151
153
|
protected _recordings?: RoomRecordingListInstance;
|
|
154
|
+
protected _transcriptions?: TranscriptionsListInstance;
|
|
152
155
|
constructor(_version: V1, sid: string);
|
|
153
156
|
get participants(): ParticipantListInstance;
|
|
154
157
|
get recordingRules(): RecordingRulesListInstance;
|
|
155
158
|
get recordings(): RoomRecordingListInstance;
|
|
159
|
+
get transcriptions(): TranscriptionsListInstance;
|
|
156
160
|
fetch(callback?: (error: Error | null, item?: RoomInstance) => any): Promise<RoomInstance>;
|
|
157
161
|
update(params: RoomContextUpdateOptions, callback?: (error: Error | null, item?: RoomInstance) => any): Promise<RoomInstance>;
|
|
158
162
|
/**
|
|
@@ -317,6 +321,10 @@ export declare class RoomInstance {
|
|
|
317
321
|
* Access the recordings.
|
|
318
322
|
*/
|
|
319
323
|
recordings(): RoomRecordingListInstance;
|
|
324
|
+
/**
|
|
325
|
+
* Access the transcriptions.
|
|
326
|
+
*/
|
|
327
|
+
transcriptions(): TranscriptionsListInstance;
|
|
320
328
|
/**
|
|
321
329
|
* Provide a user-friendly representation
|
|
322
330
|
*
|
|
@@ -25,6 +25,7 @@ const utility_1 = require("../../../base/utility");
|
|
|
25
25
|
const participant_1 = require("./room/participant");
|
|
26
26
|
const recordingRules_1 = require("./room/recordingRules");
|
|
27
27
|
const roomRecording_1 = require("./room/roomRecording");
|
|
28
|
+
const transcriptions_1 = require("./room/transcriptions");
|
|
28
29
|
class RoomContextImpl {
|
|
29
30
|
constructor(_version, sid) {
|
|
30
31
|
this._version = _version;
|
|
@@ -52,6 +53,12 @@ class RoomContextImpl {
|
|
|
52
53
|
(0, roomRecording_1.RoomRecordingListInstance)(this._version, this._solution.sid);
|
|
53
54
|
return this._recordings;
|
|
54
55
|
}
|
|
56
|
+
get transcriptions() {
|
|
57
|
+
this._transcriptions =
|
|
58
|
+
this._transcriptions ||
|
|
59
|
+
(0, transcriptions_1.TranscriptionsListInstance)(this._version, this._solution.sid);
|
|
60
|
+
return this._transcriptions;
|
|
61
|
+
}
|
|
55
62
|
fetch(callback) {
|
|
56
63
|
const headers = {};
|
|
57
64
|
headers["Accept"] = "application/json";
|
|
@@ -166,6 +173,12 @@ class RoomInstance {
|
|
|
166
173
|
recordings() {
|
|
167
174
|
return this._proxy.recordings;
|
|
168
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Access the transcriptions.
|
|
178
|
+
*/
|
|
179
|
+
transcriptions() {
|
|
180
|
+
return this._proxy.transcriptions;
|
|
181
|
+
}
|
|
169
182
|
/**
|
|
170
183
|
* Provide a user-friendly representation
|
|
171
184
|
*
|
|
@@ -113,7 +113,7 @@ interface DataSessionResource {
|
|
|
113
113
|
operator_country: string;
|
|
114
114
|
operator_name: string;
|
|
115
115
|
cell_id: string;
|
|
116
|
-
cell_location_estimate:
|
|
116
|
+
cell_location_estimate: any;
|
|
117
117
|
packets_uploaded: number;
|
|
118
118
|
packets_downloaded: number;
|
|
119
119
|
last_updated: Date;
|
|
@@ -163,7 +163,7 @@ export declare class DataSessionInstance {
|
|
|
163
163
|
/**
|
|
164
164
|
* An object that describes the estimated location in latitude and longitude where the device\'s Data Session took place. The location is derived from the `cell_id` when the Data Session was last updated. See [Cell Location Estimate Object](https://www.twilio.com/docs/iot/wireless/api/datasession-resource#cell-location-estimate-object).
|
|
165
165
|
*/
|
|
166
|
-
cellLocationEstimate:
|
|
166
|
+
cellLocationEstimate: any;
|
|
167
167
|
/**
|
|
168
168
|
* The number of packets uploaded by the device between the `start` time and when the Data Session was last updated.
|
|
169
169
|
*/
|
|
@@ -203,7 +203,7 @@ export declare class DataSessionInstance {
|
|
|
203
203
|
operatorCountry: string;
|
|
204
204
|
operatorName: string;
|
|
205
205
|
cellId: string;
|
|
206
|
-
cellLocationEstimate:
|
|
206
|
+
cellLocationEstimate: any;
|
|
207
207
|
packetsUploaded: number;
|
|
208
208
|
packetsDownloaded: number;
|
|
209
209
|
lastUpdated: Date;
|
|
@@ -125,9 +125,9 @@ interface UsageRecordPayload extends TwilioResponsePayload {
|
|
|
125
125
|
interface UsageRecordResource {
|
|
126
126
|
sim_sid: string;
|
|
127
127
|
account_sid: string;
|
|
128
|
-
period:
|
|
129
|
-
commands:
|
|
130
|
-
data:
|
|
128
|
+
period: any;
|
|
129
|
+
commands: any;
|
|
130
|
+
data: any;
|
|
131
131
|
}
|
|
132
132
|
export declare class UsageRecordInstance {
|
|
133
133
|
protected _version: V1;
|
|
@@ -143,15 +143,15 @@ export declare class UsageRecordInstance {
|
|
|
143
143
|
/**
|
|
144
144
|
* The time period for which the usage is reported. Contains `start` and `end` datetime values given as GMT in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
145
145
|
*/
|
|
146
|
-
period:
|
|
146
|
+
period: any;
|
|
147
147
|
/**
|
|
148
148
|
* An object that describes the SIM\'s usage of Commands during the specified period. See [Commands Usage Object](https://www.twilio.com/docs/iot/wireless/api/sim-usagerecord-resource#commands-usage-object).
|
|
149
149
|
*/
|
|
150
|
-
commands:
|
|
150
|
+
commands: any;
|
|
151
151
|
/**
|
|
152
152
|
* An object that describes the SIM\'s data usage during the specified period. See [Data Usage Object](https://www.twilio.com/docs/iot/wireless/api/sim-usagerecord-resource#data-usage-object).
|
|
153
153
|
*/
|
|
154
|
-
data:
|
|
154
|
+
data: any;
|
|
155
155
|
/**
|
|
156
156
|
* Provide a user-friendly representation
|
|
157
157
|
*
|
|
@@ -160,9 +160,9 @@ export declare class UsageRecordInstance {
|
|
|
160
160
|
toJSON(): {
|
|
161
161
|
simSid: string;
|
|
162
162
|
accountSid: string;
|
|
163
|
-
period:
|
|
164
|
-
commands:
|
|
165
|
-
data:
|
|
163
|
+
period: any;
|
|
164
|
+
commands: any;
|
|
165
|
+
data: any;
|
|
166
166
|
};
|
|
167
167
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
168
168
|
}
|
|
@@ -123,9 +123,9 @@ interface UsageRecordPayload extends TwilioResponsePayload {
|
|
|
123
123
|
}
|
|
124
124
|
interface UsageRecordResource {
|
|
125
125
|
account_sid: string;
|
|
126
|
-
period:
|
|
127
|
-
commands:
|
|
128
|
-
data:
|
|
126
|
+
period: any;
|
|
127
|
+
commands: any;
|
|
128
|
+
data: any;
|
|
129
129
|
}
|
|
130
130
|
export declare class UsageRecordInstance {
|
|
131
131
|
protected _version: V1;
|
|
@@ -137,15 +137,15 @@ export declare class UsageRecordInstance {
|
|
|
137
137
|
/**
|
|
138
138
|
* The time period for which usage is reported. Contains `start` and `end` properties that describe the period using GMT date-time values specified in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.
|
|
139
139
|
*/
|
|
140
|
-
period:
|
|
140
|
+
period: any;
|
|
141
141
|
/**
|
|
142
142
|
* An object that describes the aggregated Commands usage for all SIMs during the specified period. See [Commands Usage Object](https://www.twilio.com/docs/iot/wireless/api/account-usagerecord-resource#commands-usage-object).
|
|
143
143
|
*/
|
|
144
|
-
commands:
|
|
144
|
+
commands: any;
|
|
145
145
|
/**
|
|
146
146
|
* An object that describes the aggregated Data usage for all SIMs over the period. See [Data Usage Object](https://www.twilio.com/docs/iot/wireless/api/account-usagerecord-resource#data-usage-object).
|
|
147
147
|
*/
|
|
148
|
-
data:
|
|
148
|
+
data: any;
|
|
149
149
|
/**
|
|
150
150
|
* Provide a user-friendly representation
|
|
151
151
|
*
|
|
@@ -153,9 +153,9 @@ export declare class UsageRecordInstance {
|
|
|
153
153
|
*/
|
|
154
154
|
toJSON(): {
|
|
155
155
|
accountSid: string;
|
|
156
|
-
period:
|
|
157
|
-
commands:
|
|
158
|
-
data:
|
|
156
|
+
period: any;
|
|
157
|
+
commands: any;
|
|
158
|
+
data: any;
|
|
159
159
|
};
|
|
160
160
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
161
161
|
}
|
|
@@ -172,7 +172,7 @@ declare namespace VoiceResponse {
|
|
|
172
172
|
type ConferenceJitterBufferSize = "large" | "medium" | "small" | "off";
|
|
173
173
|
type ConferenceRecord = "do-not-record" | "record-from-start";
|
|
174
174
|
type ConferenceRecordingEvent = "in-progress" | "completed" | "absent";
|
|
175
|
-
type ConferenceRegion = "us1" | "ie1" | "sg1" | "br1" | "au1" | "jp1" | "de1";
|
|
175
|
+
type ConferenceRegion = "us1" | "us2" | "ie1" | "sg1" | "br1" | "au1" | "jp1" | "de1";
|
|
176
176
|
type ConferenceTrim = "trim-silence" | "do-not-trim";
|
|
177
177
|
type ConversationEvent = "call-initiated" | "call-ringing" | "call-answered" | "call-completed";
|
|
178
178
|
type ConversationRecord = "do-not-record" | "record-from-answer" | "record-from-ringing" | "record-from-answer-dual" | "record-from-ringing-dual" | "true" | "false";
|
|
@@ -215,6 +215,7 @@ declare namespace VoiceResponse {
|
|
|
215
215
|
type StreamTrack = "inbound_track" | "outbound_track" | "both_tracks";
|
|
216
216
|
type TranscriptionStatusCallbackMethod = "GET" | "POST";
|
|
217
217
|
type TranscriptionTrack = "inbound_track" | "outbound_track" | "both_tracks";
|
|
218
|
+
type WhatsAppEvent = "initiated" | "ringing" | "answered" | "completed";
|
|
218
219
|
/**
|
|
219
220
|
* Attributes to pass to connect
|
|
220
221
|
*/
|
|
@@ -1372,6 +1373,21 @@ declare namespace VoiceResponse {
|
|
|
1372
1373
|
/** url - TwiML URL */
|
|
1373
1374
|
url?: string;
|
|
1374
1375
|
}
|
|
1376
|
+
/**
|
|
1377
|
+
* Attributes to pass to whatsApp
|
|
1378
|
+
*/
|
|
1379
|
+
export interface WhatsAppAttributes {
|
|
1380
|
+
/** method - TwiML URL Method */
|
|
1381
|
+
method?: string;
|
|
1382
|
+
/** statusCallback - Status Callback URL */
|
|
1383
|
+
statusCallback?: string;
|
|
1384
|
+
/** statusCallbackEvent - Events to trigger status callback */
|
|
1385
|
+
statusCallbackEvent?: WhatsAppEvent[];
|
|
1386
|
+
/** statusCallbackMethod - Status Callback URL Method */
|
|
1387
|
+
statusCallbackMethod?: string;
|
|
1388
|
+
/** url - TwiML URL */
|
|
1389
|
+
url?: string;
|
|
1390
|
+
}
|
|
1375
1391
|
/**
|
|
1376
1392
|
* Attributes to pass to parameter
|
|
1377
1393
|
*/
|
|
@@ -1852,6 +1868,14 @@ declare namespace VoiceResponse {
|
|
|
1852
1868
|
*/
|
|
1853
1869
|
sip(sipUrl: string): VoiceResponse.Sip;
|
|
1854
1870
|
sip(attributes: VoiceResponse.SipAttributes, sipUrl: string): VoiceResponse.Sip;
|
|
1871
|
+
/**
|
|
1872
|
+
* <WhatsApp> TwiML Noun
|
|
1873
|
+
*
|
|
1874
|
+
* @param attributes - TwiML attributes
|
|
1875
|
+
* @param phoneNumber - WhatsApp Phone Number to dial
|
|
1876
|
+
*/
|
|
1877
|
+
whatsApp(phoneNumber: string): VoiceResponse.WhatsApp;
|
|
1878
|
+
whatsApp(attributes: VoiceResponse.WhatsAppAttributes, phoneNumber: string): VoiceResponse.WhatsApp;
|
|
1855
1879
|
}
|
|
1856
1880
|
export class Echo extends TwiML {
|
|
1857
1881
|
echo: XMLElement;
|
|
@@ -2770,6 +2794,13 @@ declare namespace VoiceResponse {
|
|
|
2770
2794
|
*/
|
|
2771
2795
|
parameter(attributes?: VoiceResponse.ParameterAttributes): VoiceResponse.Parameter;
|
|
2772
2796
|
}
|
|
2797
|
+
export class WhatsApp extends TwiML {
|
|
2798
|
+
whatsApp: XMLElement;
|
|
2799
|
+
/**
|
|
2800
|
+
* <WhatsApp> TwiML Noun
|
|
2801
|
+
*/
|
|
2802
|
+
constructor(whatsApp: XMLElement);
|
|
2803
|
+
}
|
|
2773
2804
|
export {};
|
|
2774
2805
|
}
|
|
2775
2806
|
export = VoiceResponse;
|
|
@@ -480,6 +480,13 @@ class VoiceResponse extends TwiML_1.default {
|
|
|
480
480
|
}
|
|
481
481
|
return new VoiceResponse.Sip(this.dial.ele("Sip", attributes, sipUrl));
|
|
482
482
|
}
|
|
483
|
+
whatsApp(attributes, phoneNumber) {
|
|
484
|
+
if (typeof attributes === "string") {
|
|
485
|
+
phoneNumber = attributes;
|
|
486
|
+
attributes = {};
|
|
487
|
+
}
|
|
488
|
+
return new VoiceResponse.WhatsApp(this.dial.ele("WhatsApp", attributes, phoneNumber));
|
|
489
|
+
}
|
|
483
490
|
}
|
|
484
491
|
VoiceResponse.Dial = Dial;
|
|
485
492
|
class Echo extends TwiML_1.default {
|
|
@@ -1553,5 +1560,16 @@ class VoiceResponse extends TwiML_1.default {
|
|
|
1553
1560
|
}
|
|
1554
1561
|
}
|
|
1555
1562
|
VoiceResponse.VirtualAgent = VirtualAgent;
|
|
1563
|
+
class WhatsApp extends TwiML_1.default {
|
|
1564
|
+
/**
|
|
1565
|
+
* <WhatsApp> TwiML Noun
|
|
1566
|
+
*/
|
|
1567
|
+
constructor(whatsApp) {
|
|
1568
|
+
super();
|
|
1569
|
+
this.whatsApp = whatsApp;
|
|
1570
|
+
this._propertyName = "whatsApp";
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
VoiceResponse.WhatsApp = WhatsApp;
|
|
1556
1574
|
})(VoiceResponse || (VoiceResponse = {}));
|
|
1557
1575
|
module.exports = VoiceResponse;
|
package/package.json
CHANGED
package/lib/rest/Knowledge.d.ts
DELETED
package/lib/rest/Knowledge.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
const KnowledgeBase_1 = __importDefault(require("./KnowledgeBase"));
|
|
6
|
-
class Knowledge extends KnowledgeBase_1.default {
|
|
7
|
-
}
|
|
8
|
-
module.exports = Knowledge;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import Domain from "../base/Domain";
|
|
2
|
-
import V1 from "./knowledge/V1";
|
|
3
|
-
declare class KnowledgeBase extends Domain {
|
|
4
|
-
_v1?: V1;
|
|
5
|
-
/**
|
|
6
|
-
* Initialize knowledge domain
|
|
7
|
-
*
|
|
8
|
-
* @param twilio - The twilio client
|
|
9
|
-
*/
|
|
10
|
-
constructor(twilio: any);
|
|
11
|
-
get v1(): V1;
|
|
12
|
-
}
|
|
13
|
-
export = KnowledgeBase;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This code was generated by
|
|
4
|
-
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
-
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
-
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
14
|
-
};
|
|
15
|
-
const Domain_1 = __importDefault(require("../base/Domain"));
|
|
16
|
-
const V1_1 = __importDefault(require("./knowledge/V1"));
|
|
17
|
-
class KnowledgeBase extends Domain_1.default {
|
|
18
|
-
/**
|
|
19
|
-
* Initialize knowledge domain
|
|
20
|
-
*
|
|
21
|
-
* @param twilio - The twilio client
|
|
22
|
-
*/
|
|
23
|
-
constructor(twilio) {
|
|
24
|
-
super(twilio, "https://knowledge.twilio.com");
|
|
25
|
-
}
|
|
26
|
-
get v1() {
|
|
27
|
-
this._v1 = this._v1 || new V1_1.default(this);
|
|
28
|
-
return this._v1;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
module.exports = KnowledgeBase;
|
package/lib/rest/Microvisor.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AppListInstance } from "./microvisor/v1/app";
|
|
2
|
-
import { DeviceListInstance } from "./microvisor/v1/device";
|
|
3
|
-
import MicrovisorBase from "./MicrovisorBase";
|
|
4
|
-
declare class Microvisor extends MicrovisorBase {
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated - Use v1.apps instead
|
|
7
|
-
*/
|
|
8
|
-
get apps(): AppListInstance;
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated - Use v1.devices instead
|
|
11
|
-
*/
|
|
12
|
-
get devices(): DeviceListInstance;
|
|
13
|
-
}
|
|
14
|
-
export = Microvisor;
|