twilio 5.7.1 → 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 +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 +264 -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.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.d.ts +5 -5
- package/lib/rest/numbers/V1.js +6 -8
- 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/v1/{portingWebhookConfigurationFetch.d.ts → webhook.d.ts} +10 -10
- package/lib/rest/numbers/v1/{portingWebhookConfigurationFetch.js → webhook.js} +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/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/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 +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
|
@@ -14,9 +14,9 @@ export interface InteractionContextUpdateOptions {
|
|
|
14
14
|
*/
|
|
15
15
|
export interface InteractionListInstanceCreateOptions {
|
|
16
16
|
/** The Interaction\\\'s channel. */
|
|
17
|
-
channel:
|
|
17
|
+
channel: any;
|
|
18
18
|
/** The Interaction\\\'s routing logic. */
|
|
19
|
-
routing?:
|
|
19
|
+
routing?: any;
|
|
20
20
|
/** The Interaction context sid is used for adding a context lookup sid */
|
|
21
21
|
interactionContextSid?: string;
|
|
22
22
|
/** The unique identifier for Interaction level webhook */
|
|
@@ -77,8 +77,8 @@ export declare class InteractionContextImpl implements InteractionContext {
|
|
|
77
77
|
}
|
|
78
78
|
interface InteractionResource {
|
|
79
79
|
sid: string;
|
|
80
|
-
channel:
|
|
81
|
-
routing:
|
|
80
|
+
channel: any;
|
|
81
|
+
routing: any;
|
|
82
82
|
url: string;
|
|
83
83
|
links: Record<string, string>;
|
|
84
84
|
interaction_context_sid: string;
|
|
@@ -96,11 +96,11 @@ export declare class InteractionInstance {
|
|
|
96
96
|
/**
|
|
97
97
|
* A JSON object that defines the Interaction’s communication channel and includes details about the channel. See the [Outbound SMS](https://www.twilio.com/docs/flex/developer/conversations/interactions-api/interactions#agent-initiated-outbound-interactions) and [inbound (API-initiated)](https://www.twilio.com/docs/flex/developer/conversations/interactions-api/interactions#api-initiated-contact) Channel object examples.
|
|
98
98
|
*/
|
|
99
|
-
channel:
|
|
99
|
+
channel: any;
|
|
100
100
|
/**
|
|
101
101
|
* A JSON Object representing the routing rules for the Interaction Channel. See [Outbound SMS Example](https://www.twilio.com/docs/flex/developer/conversations/interactions-api/interactions#agent-initiated-outbound-interactions) for an example Routing object. The Interactions resource uses TaskRouter for all routing functionality. All attributes in the Routing object on your Interaction request body are added “as is” to the task. For a list of known attributes consumed by the Flex UI and/or Flex Insights, see [Known Task Attributes](https://www.twilio.com/docs/flex/developer/conversations/interactions-api#task-attributes).
|
|
102
102
|
*/
|
|
103
|
-
routing:
|
|
103
|
+
routing: any;
|
|
104
104
|
url: string;
|
|
105
105
|
links: Record<string, string>;
|
|
106
106
|
interactionContextSid: string;
|
|
@@ -142,8 +142,8 @@ export declare class InteractionInstance {
|
|
|
142
142
|
*/
|
|
143
143
|
toJSON(): {
|
|
144
144
|
sid: string;
|
|
145
|
-
channel:
|
|
146
|
-
routing:
|
|
145
|
+
channel: any;
|
|
146
|
+
routing: any;
|
|
147
147
|
url: string;
|
|
148
148
|
links: Record<string, string>;
|
|
149
149
|
interactionContextSid: string;
|
|
@@ -20,7 +20,7 @@ export interface PluginConfigurationListInstanceCreateOptions {
|
|
|
20
20
|
/** The Flex-Metadata HTTP request header */
|
|
21
21
|
flexMetadata?: string;
|
|
22
22
|
/** A list of objects that describe the plugin versions included in the configuration. Each object contains the sid of the plugin version. */
|
|
23
|
-
plugins?: Array<
|
|
23
|
+
plugins?: Array<any>;
|
|
24
24
|
/** The Flex Plugin Configuration\\\'s description. */
|
|
25
25
|
description?: string;
|
|
26
26
|
}
|
|
@@ -143,7 +143,7 @@ function PluginConfigurationListInstance(version) {
|
|
|
143
143
|
let data = {};
|
|
144
144
|
data["Name"] = params["name"];
|
|
145
145
|
if (params["plugins"] !== undefined)
|
|
146
|
-
data["Plugins"] = serialize.map(params["plugins"], (e) => e);
|
|
146
|
+
data["Plugins"] = serialize.map(params["plugins"], (e) => serialize.object(e));
|
|
147
147
|
if (params["description"] !== undefined)
|
|
148
148
|
data["Description"] = params["description"];
|
|
149
149
|
const headers = {};
|
|
@@ -14,7 +14,7 @@ export interface CustomOperatorContextUpdateOptions {
|
|
|
14
14
|
/** A human-readable name of this resource, up to 64 characters. */
|
|
15
15
|
friendlyName: string;
|
|
16
16
|
/** Operator configuration, following the schema defined by the Operator Type. */
|
|
17
|
-
config:
|
|
17
|
+
config: any;
|
|
18
18
|
/** The If-Match HTTP request header */
|
|
19
19
|
ifMatch?: string;
|
|
20
20
|
}
|
|
@@ -27,7 +27,7 @@ export interface CustomOperatorListInstanceCreateOptions {
|
|
|
27
27
|
/** Operator Type for this Operator. References an existing Operator Type resource. */
|
|
28
28
|
operatorType: string;
|
|
29
29
|
/** Operator configuration, following the schema defined by the Operator Type. */
|
|
30
|
-
config:
|
|
30
|
+
config: any;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Options to pass to each
|
|
@@ -137,7 +137,7 @@ interface CustomOperatorResource {
|
|
|
137
137
|
operator_type: string;
|
|
138
138
|
version: number;
|
|
139
139
|
availability: CustomOperatorAvailability;
|
|
140
|
-
config:
|
|
140
|
+
config: any;
|
|
141
141
|
date_created: Date;
|
|
142
142
|
date_updated: Date;
|
|
143
143
|
url: string;
|
|
@@ -179,7 +179,7 @@ export declare class CustomOperatorInstance {
|
|
|
179
179
|
/**
|
|
180
180
|
* Operator configuration, following the schema defined by the Operator Type. Only available on Operators created by the Account.
|
|
181
181
|
*/
|
|
182
|
-
config:
|
|
182
|
+
config: any;
|
|
183
183
|
/**
|
|
184
184
|
* The date that this Custom Operator was created, given in ISO 8601 format.
|
|
185
185
|
*/
|
|
@@ -232,7 +232,7 @@ export declare class CustomOperatorInstance {
|
|
|
232
232
|
operatorType: string;
|
|
233
233
|
version: number;
|
|
234
234
|
availability: CustomOperatorAvailability;
|
|
235
|
-
config:
|
|
235
|
+
config: any;
|
|
236
236
|
dateCreated: Date;
|
|
237
237
|
dateUpdated: Date;
|
|
238
238
|
url: string;
|
|
@@ -96,7 +96,7 @@ interface OperatorResource {
|
|
|
96
96
|
operator_type: string;
|
|
97
97
|
version: number;
|
|
98
98
|
availability: OperatorAvailability;
|
|
99
|
-
config:
|
|
99
|
+
config: any;
|
|
100
100
|
date_created: Date;
|
|
101
101
|
date_updated: Date;
|
|
102
102
|
url: string;
|
|
@@ -138,7 +138,7 @@ export declare class OperatorInstance {
|
|
|
138
138
|
/**
|
|
139
139
|
* Operator configuration, following the schema defined by the Operator Type. Only available on Custom Operators created by the Account.
|
|
140
140
|
*/
|
|
141
|
-
config:
|
|
141
|
+
config: any;
|
|
142
142
|
/**
|
|
143
143
|
* The date that this Operator was created, given in ISO 8601 format.
|
|
144
144
|
*/
|
|
@@ -174,7 +174,7 @@ export declare class OperatorInstance {
|
|
|
174
174
|
operatorType: string;
|
|
175
175
|
version: number;
|
|
176
176
|
availability: OperatorAvailability;
|
|
177
|
-
config:
|
|
177
|
+
config: any;
|
|
178
178
|
dateCreated: Date;
|
|
179
179
|
dateUpdated: Date;
|
|
180
180
|
url: string;
|
|
@@ -94,7 +94,7 @@ interface OperatorTypeResource {
|
|
|
94
94
|
provider: OperatorTypeProvider;
|
|
95
95
|
availability: OperatorTypeAvailability;
|
|
96
96
|
configurable: boolean;
|
|
97
|
-
config_schema:
|
|
97
|
+
config_schema: any;
|
|
98
98
|
date_created: Date;
|
|
99
99
|
date_updated: Date;
|
|
100
100
|
url: string;
|
|
@@ -138,7 +138,7 @@ export declare class OperatorTypeInstance {
|
|
|
138
138
|
/**
|
|
139
139
|
* JSON Schema for configuring an Operator with this Operator Type. Following https://json-schema.org/
|
|
140
140
|
*/
|
|
141
|
-
configSchema:
|
|
141
|
+
configSchema: any;
|
|
142
142
|
/**
|
|
143
143
|
* The date that this Operator Type was created, given in ISO 8601 format.
|
|
144
144
|
*/
|
|
@@ -176,7 +176,7 @@ export declare class OperatorTypeInstance {
|
|
|
176
176
|
provider: OperatorTypeProvider;
|
|
177
177
|
availability: OperatorTypeAvailability;
|
|
178
178
|
configurable: boolean;
|
|
179
|
-
configSchema:
|
|
179
|
+
configSchema: any;
|
|
180
180
|
dateCreated: Date;
|
|
181
181
|
dateUpdated: Date;
|
|
182
182
|
url: string;
|
|
@@ -96,7 +96,7 @@ interface PrebuiltOperatorResource {
|
|
|
96
96
|
operator_type: string;
|
|
97
97
|
version: number;
|
|
98
98
|
availability: PrebuiltOperatorAvailability;
|
|
99
|
-
config:
|
|
99
|
+
config: any;
|
|
100
100
|
date_created: Date;
|
|
101
101
|
date_updated: Date;
|
|
102
102
|
url: string;
|
|
@@ -138,7 +138,7 @@ export declare class PrebuiltOperatorInstance {
|
|
|
138
138
|
/**
|
|
139
139
|
* Operator configuration, following the schema defined by the Operator Type. Only available on Custom Operators created by the Account, will be empty for Pre-Built Operators.
|
|
140
140
|
*/
|
|
141
|
-
config:
|
|
141
|
+
config: any;
|
|
142
142
|
/**
|
|
143
143
|
* The date that this Pre-built Operator was created, given in ISO 8601 format.
|
|
144
144
|
*/
|
|
@@ -174,7 +174,7 @@ export declare class PrebuiltOperatorInstance {
|
|
|
174
174
|
operatorType: string;
|
|
175
175
|
version: number;
|
|
176
176
|
availability: PrebuiltOperatorAvailability;
|
|
177
|
-
config:
|
|
177
|
+
config: any;
|
|
178
178
|
dateCreated: Date;
|
|
179
179
|
dateUpdated: Date;
|
|
180
180
|
url: string;
|
|
@@ -105,14 +105,14 @@ interface OperatorResultResource {
|
|
|
105
105
|
extract_match: boolean;
|
|
106
106
|
match_probability: number;
|
|
107
107
|
normalized_result: string;
|
|
108
|
-
utterance_results: Array<
|
|
108
|
+
utterance_results: Array<any>;
|
|
109
109
|
utterance_match: boolean;
|
|
110
110
|
predicted_label: string;
|
|
111
111
|
predicted_probability: number;
|
|
112
|
-
label_probabilities:
|
|
113
|
-
extract_results:
|
|
114
|
-
text_generation_results:
|
|
115
|
-
json_results:
|
|
112
|
+
label_probabilities: any;
|
|
113
|
+
extract_results: any;
|
|
114
|
+
text_generation_results: any;
|
|
115
|
+
json_results: any;
|
|
116
116
|
transcript_sid: string;
|
|
117
117
|
url: string;
|
|
118
118
|
}
|
|
@@ -145,7 +145,7 @@ export declare class OperatorResultInstance {
|
|
|
145
145
|
/**
|
|
146
146
|
* List of mapped utterance object which matches sentences.
|
|
147
147
|
*/
|
|
148
|
-
utteranceResults: Array<
|
|
148
|
+
utteranceResults: Array<any>;
|
|
149
149
|
/**
|
|
150
150
|
* Boolean to tell if Utterance matches results.
|
|
151
151
|
*/
|
|
@@ -161,16 +161,16 @@ export declare class OperatorResultInstance {
|
|
|
161
161
|
/**
|
|
162
162
|
* The labels probabilities. This might be available on conversation classify model outputs.
|
|
163
163
|
*/
|
|
164
|
-
labelProbabilities:
|
|
164
|
+
labelProbabilities: any;
|
|
165
165
|
/**
|
|
166
166
|
* List of text extraction results. This might be available on classify-extract model outputs.
|
|
167
167
|
*/
|
|
168
|
-
extractResults:
|
|
168
|
+
extractResults: any;
|
|
169
169
|
/**
|
|
170
170
|
* Output of a text generation operator for example Conversation Sumamary.
|
|
171
171
|
*/
|
|
172
|
-
textGenerationResults:
|
|
173
|
-
jsonResults:
|
|
172
|
+
textGenerationResults: any;
|
|
173
|
+
jsonResults: any;
|
|
174
174
|
/**
|
|
175
175
|
* A 34 character string that uniquely identifies this Transcript.
|
|
176
176
|
*/
|
|
@@ -209,14 +209,14 @@ export declare class OperatorResultInstance {
|
|
|
209
209
|
extractMatch: boolean;
|
|
210
210
|
matchProbability: number;
|
|
211
211
|
normalizedResult: string;
|
|
212
|
-
utteranceResults:
|
|
212
|
+
utteranceResults: any[];
|
|
213
213
|
utteranceMatch: boolean;
|
|
214
214
|
predictedLabel: string;
|
|
215
215
|
predictedProbability: number;
|
|
216
|
-
labelProbabilities:
|
|
217
|
-
extractResults:
|
|
218
|
-
textGenerationResults:
|
|
219
|
-
jsonResults:
|
|
216
|
+
labelProbabilities: any;
|
|
217
|
+
extractResults: any;
|
|
218
|
+
textGenerationResults: any;
|
|
219
|
+
jsonResults: any;
|
|
220
220
|
transcriptSid: string;
|
|
221
221
|
url: string;
|
|
222
222
|
};
|
|
@@ -123,7 +123,7 @@ interface SentenceResource {
|
|
|
123
123
|
transcript: string;
|
|
124
124
|
sid: string;
|
|
125
125
|
confidence: number;
|
|
126
|
-
words: Array<
|
|
126
|
+
words: Array<any>;
|
|
127
127
|
}
|
|
128
128
|
export declare class SentenceInstance {
|
|
129
129
|
protected _version: V2;
|
|
@@ -156,7 +156,7 @@ export declare class SentenceInstance {
|
|
|
156
156
|
/**
|
|
157
157
|
* Detailed information for each of the words of the given Sentence.
|
|
158
158
|
*/
|
|
159
|
-
words: Array<
|
|
159
|
+
words: Array<any>;
|
|
160
160
|
/**
|
|
161
161
|
* Provide a user-friendly representation
|
|
162
162
|
*
|
|
@@ -170,7 +170,7 @@ export declare class SentenceInstance {
|
|
|
170
170
|
transcript: string;
|
|
171
171
|
sid: string;
|
|
172
172
|
confidence: number;
|
|
173
|
-
words:
|
|
173
|
+
words: any[];
|
|
174
174
|
};
|
|
175
175
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
176
176
|
}
|
|
@@ -17,7 +17,7 @@ export interface TranscriptListInstanceCreateOptions {
|
|
|
17
17
|
/** The unique SID identifier of the Service. */
|
|
18
18
|
serviceSid: string;
|
|
19
19
|
/** JSON object describing Media Channel including Source and Participants */
|
|
20
|
-
channel:
|
|
20
|
+
channel: any;
|
|
21
21
|
/** Used to store client provided metadata. Maximum of 64 double-byte UTF8 characters. */
|
|
22
22
|
customerKey?: string;
|
|
23
23
|
/** The date that this Transcript\\\'s media was started, given in ISO 8601 format. */
|
|
@@ -164,7 +164,7 @@ interface TranscriptResource {
|
|
|
164
164
|
date_created: Date;
|
|
165
165
|
date_updated: Date;
|
|
166
166
|
status: TranscriptStatus;
|
|
167
|
-
channel:
|
|
167
|
+
channel: any;
|
|
168
168
|
data_logging: boolean;
|
|
169
169
|
language_code: string;
|
|
170
170
|
customer_key: string;
|
|
@@ -203,7 +203,7 @@ export declare class TranscriptInstance {
|
|
|
203
203
|
/**
|
|
204
204
|
* Media Channel describing Transcript Source and Participant Mapping
|
|
205
205
|
*/
|
|
206
|
-
channel:
|
|
206
|
+
channel: any;
|
|
207
207
|
/**
|
|
208
208
|
* Data logging allows Twilio to improve the quality of the speech recognition & language understanding services through using customer data to refine, fine tune and evaluate machine learning models. Note: Data logging cannot be activated via API, only via www.twilio.com, as it requires additional consent.
|
|
209
209
|
*/
|
|
@@ -271,7 +271,7 @@ export declare class TranscriptInstance {
|
|
|
271
271
|
dateCreated: Date;
|
|
272
272
|
dateUpdated: Date;
|
|
273
273
|
status: TranscriptStatus;
|
|
274
|
-
channel:
|
|
274
|
+
channel: any;
|
|
275
275
|
dataLogging: boolean;
|
|
276
276
|
languageCode: string;
|
|
277
277
|
customerKey: string;
|
|
@@ -243,13 +243,13 @@ interface ServiceResource {
|
|
|
243
243
|
reachability_enabled: boolean;
|
|
244
244
|
typing_indicator_timeout: number;
|
|
245
245
|
consumption_report_interval: number;
|
|
246
|
-
limits:
|
|
247
|
-
webhooks:
|
|
246
|
+
limits: any;
|
|
247
|
+
webhooks: any;
|
|
248
248
|
pre_webhook_url: string;
|
|
249
249
|
post_webhook_url: string;
|
|
250
250
|
webhook_method: string;
|
|
251
251
|
webhook_filters: Array<string>;
|
|
252
|
-
notifications:
|
|
252
|
+
notifications: any;
|
|
253
253
|
url: string;
|
|
254
254
|
links: Record<string, string>;
|
|
255
255
|
}
|
|
@@ -270,13 +270,13 @@ export declare class ServiceInstance {
|
|
|
270
270
|
reachabilityEnabled: boolean;
|
|
271
271
|
typingIndicatorTimeout: number;
|
|
272
272
|
consumptionReportInterval: number;
|
|
273
|
-
limits:
|
|
274
|
-
webhooks:
|
|
273
|
+
limits: any;
|
|
274
|
+
webhooks: any;
|
|
275
275
|
preWebhookUrl: string;
|
|
276
276
|
postWebhookUrl: string;
|
|
277
277
|
webhookMethod: string;
|
|
278
278
|
webhookFilters: Array<string>;
|
|
279
|
-
notifications:
|
|
279
|
+
notifications: any;
|
|
280
280
|
url: string;
|
|
281
281
|
links: Record<string, string>;
|
|
282
282
|
private get _proxy();
|
|
@@ -343,13 +343,13 @@ export declare class ServiceInstance {
|
|
|
343
343
|
reachabilityEnabled: boolean;
|
|
344
344
|
typingIndicatorTimeout: number;
|
|
345
345
|
consumptionReportInterval: number;
|
|
346
|
-
limits:
|
|
347
|
-
webhooks:
|
|
346
|
+
limits: any;
|
|
347
|
+
webhooks: any;
|
|
348
348
|
preWebhookUrl: string;
|
|
349
349
|
postWebhookUrl: string;
|
|
350
350
|
webhookMethod: string;
|
|
351
351
|
webhookFilters: string[];
|
|
352
|
-
notifications:
|
|
352
|
+
notifications: any;
|
|
353
353
|
url: string;
|
|
354
354
|
links: Record<string, string>;
|
|
355
355
|
};
|
|
@@ -179,7 +179,7 @@ interface MessageResource {
|
|
|
179
179
|
body: string;
|
|
180
180
|
index: number;
|
|
181
181
|
type: string;
|
|
182
|
-
media:
|
|
182
|
+
media: any;
|
|
183
183
|
url: string;
|
|
184
184
|
}
|
|
185
185
|
export declare class MessageInstance {
|
|
@@ -201,7 +201,7 @@ export declare class MessageInstance {
|
|
|
201
201
|
body: string;
|
|
202
202
|
index: number;
|
|
203
203
|
type: string;
|
|
204
|
-
media:
|
|
204
|
+
media: any;
|
|
205
205
|
url: string;
|
|
206
206
|
private get _proxy();
|
|
207
207
|
/**
|
|
@@ -266,7 +266,7 @@ export declare class MessageInstance {
|
|
|
266
266
|
body: string;
|
|
267
267
|
index: number;
|
|
268
268
|
type: string;
|
|
269
|
-
media:
|
|
269
|
+
media: any;
|
|
270
270
|
url: string;
|
|
271
271
|
};
|
|
272
272
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
@@ -145,7 +145,7 @@ interface WebhookResource {
|
|
|
145
145
|
channel_sid: string;
|
|
146
146
|
type: string;
|
|
147
147
|
url: string;
|
|
148
|
-
configuration:
|
|
148
|
+
configuration: any;
|
|
149
149
|
date_created: Date;
|
|
150
150
|
date_updated: Date;
|
|
151
151
|
}
|
|
@@ -160,7 +160,7 @@ export declare class WebhookInstance {
|
|
|
160
160
|
channelSid: string;
|
|
161
161
|
type: string;
|
|
162
162
|
url: string;
|
|
163
|
-
configuration:
|
|
163
|
+
configuration: any;
|
|
164
164
|
dateCreated: Date;
|
|
165
165
|
dateUpdated: Date;
|
|
166
166
|
private get _proxy();
|
|
@@ -209,7 +209,7 @@ export declare class WebhookInstance {
|
|
|
209
209
|
channelSid: string;
|
|
210
210
|
type: string;
|
|
211
211
|
url: string;
|
|
212
|
-
configuration:
|
|
212
|
+
configuration: any;
|
|
213
213
|
dateCreated: Date;
|
|
214
214
|
dateUpdated: Date;
|
|
215
215
|
};
|
|
@@ -201,15 +201,15 @@ interface ServiceResource {
|
|
|
201
201
|
reachability_enabled: boolean;
|
|
202
202
|
typing_indicator_timeout: number;
|
|
203
203
|
consumption_report_interval: number;
|
|
204
|
-
limits:
|
|
204
|
+
limits: any;
|
|
205
205
|
pre_webhook_url: string;
|
|
206
206
|
post_webhook_url: string;
|
|
207
207
|
webhook_method: string;
|
|
208
208
|
webhook_filters: Array<string>;
|
|
209
209
|
pre_webhook_retry_count: number;
|
|
210
210
|
post_webhook_retry_count: number;
|
|
211
|
-
notifications:
|
|
212
|
-
media:
|
|
211
|
+
notifications: any;
|
|
212
|
+
media: any;
|
|
213
213
|
url: string;
|
|
214
214
|
links: Record<string, string>;
|
|
215
215
|
}
|
|
@@ -230,15 +230,15 @@ export declare class ServiceInstance {
|
|
|
230
230
|
reachabilityEnabled: boolean;
|
|
231
231
|
typingIndicatorTimeout: number;
|
|
232
232
|
consumptionReportInterval: number;
|
|
233
|
-
limits:
|
|
233
|
+
limits: any;
|
|
234
234
|
preWebhookUrl: string;
|
|
235
235
|
postWebhookUrl: string;
|
|
236
236
|
webhookMethod: string;
|
|
237
237
|
webhookFilters: Array<string>;
|
|
238
238
|
preWebhookRetryCount: number;
|
|
239
239
|
postWebhookRetryCount: number;
|
|
240
|
-
notifications:
|
|
241
|
-
media:
|
|
240
|
+
notifications: any;
|
|
241
|
+
media: any;
|
|
242
242
|
url: string;
|
|
243
243
|
links: Record<string, string>;
|
|
244
244
|
private get _proxy();
|
|
@@ -309,15 +309,15 @@ export declare class ServiceInstance {
|
|
|
309
309
|
reachabilityEnabled: boolean;
|
|
310
310
|
typingIndicatorTimeout: number;
|
|
311
311
|
consumptionReportInterval: number;
|
|
312
|
-
limits:
|
|
312
|
+
limits: any;
|
|
313
313
|
preWebhookUrl: string;
|
|
314
314
|
postWebhookUrl: string;
|
|
315
315
|
webhookMethod: string;
|
|
316
316
|
webhookFilters: string[];
|
|
317
317
|
preWebhookRetryCount: number;
|
|
318
318
|
postWebhookRetryCount: number;
|
|
319
|
-
notifications:
|
|
320
|
-
media:
|
|
319
|
+
notifications: any;
|
|
320
|
+
media: any;
|
|
321
321
|
url: string;
|
|
322
322
|
links: Record<string, string>;
|
|
323
323
|
};
|
package/lib/rest/lookups/V2.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import LookupsBase from "../LookupsBase";
|
|
2
2
|
import Version from "../../base/Version";
|
|
3
|
+
import { BucketListInstance } from "./v2/bucket";
|
|
4
|
+
import { LookupOverrideListInstance } from "./v2/lookupOverride";
|
|
3
5
|
import { PhoneNumberListInstance } from "./v2/phoneNumber";
|
|
6
|
+
import { QueryListInstance } from "./v2/query";
|
|
7
|
+
import { RateLimitListInstance } from "./v2/rateLimit";
|
|
4
8
|
export default class V2 extends Version {
|
|
5
9
|
/**
|
|
6
10
|
* Initialize the V2 version of Lookups
|
|
@@ -8,8 +12,24 @@ export default class V2 extends Version {
|
|
|
8
12
|
* @param domain - The Twilio (Twilio.Lookups) domain
|
|
9
13
|
*/
|
|
10
14
|
constructor(domain: LookupsBase);
|
|
15
|
+
/** bucket - { Twilio.Lookups.V2.BucketListInstance } resource */
|
|
16
|
+
protected _bucket?: BucketListInstance;
|
|
17
|
+
/** lookupOverrides - { Twilio.Lookups.V2.LookupOverrideListInstance } resource */
|
|
18
|
+
protected _lookupOverrides?: LookupOverrideListInstance;
|
|
11
19
|
/** phoneNumbers - { Twilio.Lookups.V2.PhoneNumberListInstance } resource */
|
|
12
20
|
protected _phoneNumbers?: PhoneNumberListInstance;
|
|
21
|
+
/** query - { Twilio.Lookups.V2.QueryListInstance } resource */
|
|
22
|
+
protected _query?: QueryListInstance;
|
|
23
|
+
/** rateLimits - { Twilio.Lookups.V2.RateLimitListInstance } resource */
|
|
24
|
+
protected _rateLimits?: RateLimitListInstance;
|
|
25
|
+
/** Getter for bucket resource */
|
|
26
|
+
get bucket(): BucketListInstance;
|
|
27
|
+
/** Getter for lookupOverrides resource */
|
|
28
|
+
get lookupOverrides(): LookupOverrideListInstance;
|
|
13
29
|
/** Getter for phoneNumbers resource */
|
|
14
30
|
get phoneNumbers(): PhoneNumberListInstance;
|
|
31
|
+
/** Getter for query resource */
|
|
32
|
+
get query(): QueryListInstance;
|
|
33
|
+
/** Getter for rateLimits resource */
|
|
34
|
+
get rateLimits(): RateLimitListInstance;
|
|
15
35
|
}
|
package/lib/rest/lookups/V2.js
CHANGED
|
@@ -17,7 +17,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
|
+
const bucket_1 = require("./v2/bucket");
|
|
21
|
+
const lookupOverride_1 = require("./v2/lookupOverride");
|
|
20
22
|
const phoneNumber_1 = require("./v2/phoneNumber");
|
|
23
|
+
const query_1 = require("./v2/query");
|
|
24
|
+
const rateLimit_1 = require("./v2/rateLimit");
|
|
21
25
|
class V2 extends Version_1.default {
|
|
22
26
|
/**
|
|
23
27
|
* Initialize the V2 version of Lookups
|
|
@@ -27,10 +31,31 @@ class V2 extends Version_1.default {
|
|
|
27
31
|
constructor(domain) {
|
|
28
32
|
super(domain, "v2");
|
|
29
33
|
}
|
|
34
|
+
/** Getter for bucket resource */
|
|
35
|
+
get bucket() {
|
|
36
|
+
this._bucket = this._bucket || (0, bucket_1.BucketListInstance)(this);
|
|
37
|
+
return this._bucket;
|
|
38
|
+
}
|
|
39
|
+
/** Getter for lookupOverrides resource */
|
|
40
|
+
get lookupOverrides() {
|
|
41
|
+
this._lookupOverrides =
|
|
42
|
+
this._lookupOverrides || (0, lookupOverride_1.LookupOverrideListInstance)(this);
|
|
43
|
+
return this._lookupOverrides;
|
|
44
|
+
}
|
|
30
45
|
/** Getter for phoneNumbers resource */
|
|
31
46
|
get phoneNumbers() {
|
|
32
47
|
this._phoneNumbers = this._phoneNumbers || (0, phoneNumber_1.PhoneNumberListInstance)(this);
|
|
33
48
|
return this._phoneNumbers;
|
|
34
49
|
}
|
|
50
|
+
/** Getter for query resource */
|
|
51
|
+
get query() {
|
|
52
|
+
this._query = this._query || (0, query_1.QueryListInstance)(this);
|
|
53
|
+
return this._query;
|
|
54
|
+
}
|
|
55
|
+
/** Getter for rateLimits resource */
|
|
56
|
+
get rateLimits() {
|
|
57
|
+
this._rateLimits = this._rateLimits || (0, rateLimit_1.RateLimitListInstance)(this);
|
|
58
|
+
return this._rateLimits;
|
|
59
|
+
}
|
|
35
60
|
}
|
|
36
61
|
exports.default = V2;
|