twilio 5.13.1 → 6.0.1
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/README.md +2 -4
- package/lib/rest/ConversationsBase.d.ts +3 -0
- package/lib/rest/ConversationsBase.js +5 -0
- package/lib/rest/InsightsBase.d.ts +3 -0
- package/lib/rest/InsightsBase.js +5 -0
- package/lib/rest/IntelligenceBase.d.ts +3 -0
- package/lib/rest/IntelligenceBase.js +5 -0
- package/lib/rest/KnowledgeBase.d.ts +3 -0
- package/lib/rest/KnowledgeBase.js +5 -0
- package/lib/rest/Memory.d.ts +4 -0
- package/lib/rest/Memory.js +8 -0
- package/lib/rest/MemoryBase.d.ts +13 -0
- package/lib/rest/MemoryBase.js +31 -0
- package/lib/rest/MessagingBase.d.ts +3 -0
- package/lib/rest/MessagingBase.js +5 -0
- package/lib/rest/Twilio.d.ts +5 -0
- package/lib/rest/Twilio.js +5 -0
- package/lib/rest/VoiceBase.d.ts +3 -0
- package/lib/rest/VoiceBase.js +5 -0
- package/lib/rest/api/v2010/account/call/recording.d.ts +2 -0
- package/lib/rest/api/v2010/account/call/recording.js +4 -0
- package/lib/rest/api/v2010/account/call/transcription.d.ts +2 -0
- package/lib/rest/api/v2010/account/call/transcription.js +6 -0
- package/lib/rest/api/v2010/account/call.d.ts +2 -0
- package/lib/rest/api/v2010/account/call.js +4 -0
- package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -0
- package/lib/rest/api/v2010/account/conference/participant.js +4 -0
- package/lib/rest/api/v2010/account/message.d.ts +2 -0
- package/lib/rest/api/v2010/account/message.js +4 -0
- package/lib/rest/conversations/V2.d.ts +35 -0
- package/lib/rest/conversations/V2.js +67 -0
- package/lib/rest/conversations/v2/communication.d.ts +479 -0
- package/lib/rest/conversations/v2/communication.js +436 -0
- package/lib/rest/conversations/v2/configuration.d.ts +906 -0
- package/lib/rest/conversations/v2/configuration.js +619 -0
- package/lib/rest/conversations/v2/conversation.d.ts +936 -0
- package/lib/rest/conversations/v2/conversation.js +664 -0
- package/lib/rest/conversations/v2/operation.d.ts +167 -0
- package/lib/rest/conversations/v2/operation.js +170 -0
- package/lib/rest/conversations/v2/participant.d.ts +469 -0
- package/lib/rest/conversations/v2/participant.js +442 -0
- package/lib/rest/flexApi/V1.d.ts +0 -5
- package/lib/rest/flexApi/V1.js +0 -7
- package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +1 -1
- package/lib/rest/flexApi/v1/plugin/pluginVersions.js +8 -6
- package/lib/rest/iam/V1.d.ts +3 -0
- package/lib/rest/iam/V1.js +5 -0
- package/lib/rest/iam/v1/rolePermission.d.ts +225 -0
- package/lib/rest/iam/v1/rolePermission.js +181 -0
- package/lib/rest/insights/V3.d.ts +20 -0
- package/lib/rest/insights/V3.js +42 -0
- package/lib/rest/insights/v1/call/callSummary.d.ts +10 -10
- package/lib/rest/insights/v1/call/event.d.ts +4 -4
- package/lib/rest/insights/v1/callSummaries.d.ts +12 -9
- package/lib/rest/insights/v2/inbound.d.ts +8 -8
- package/lib/rest/insights/v2/inbound.js +4 -4
- package/lib/rest/insights/v2/outbound.d.ts +8 -8
- package/lib/rest/insights/v2/outbound.js +4 -4
- package/lib/rest/insights/v2/report.d.ts +8 -8
- package/lib/rest/insights/v2/report.js +4 -4
- package/lib/rest/insights/v3/metadata.d.ts +115 -0
- package/lib/rest/insights/v3/metadata.js +118 -0
- package/lib/rest/insights/v3/query.d.ts +180 -0
- package/lib/rest/insights/v3/query.js +214 -0
- package/lib/rest/intelligence/V3.d.ts +35 -0
- package/lib/rest/intelligence/V3.js +65 -0
- package/lib/rest/intelligence/v3/configuration.d.ts +693 -0
- package/lib/rest/intelligence/v3/configuration.js +528 -0
- package/lib/rest/intelligence/v3/conversation.d.ts +478 -0
- package/lib/rest/intelligence/v3/conversation.js +342 -0
- package/lib/rest/intelligence/v3/operator.d.ts +619 -0
- package/lib/rest/intelligence/v3/operator.js +493 -0
- package/lib/rest/intelligence/v3/operatorResult.d.ts +543 -0
- package/lib/rest/intelligence/v3/operatorResult.js +478 -0
- package/lib/rest/intelligence/v3/version.d.ts +469 -0
- package/lib/rest/intelligence/v3/version.js +341 -0
- package/lib/rest/knowledge/V2.d.ts +31 -0
- package/lib/rest/knowledge/V2.js +62 -0
- package/lib/rest/knowledge/v2/chunk.d.ts +209 -0
- package/lib/rest/knowledge/v2/chunk.js +178 -0
- package/lib/rest/knowledge/v2/knowledge.d.ts +507 -0
- package/lib/rest/knowledge/v2/knowledge.js +466 -0
- package/lib/rest/knowledge/v2/knowledgeBasis.d.ts +484 -0
- package/lib/rest/knowledge/v2/knowledgeBasis.js +441 -0
- package/lib/rest/knowledge/v2/operation.d.ts +162 -0
- package/lib/rest/knowledge/v2/operation.js +175 -0
- package/lib/rest/knowledge/v2/search.d.ts +180 -0
- package/lib/rest/{flexApi/v1/createFlexInstance.js → knowledge/v2/search.js} +45 -36
- package/lib/rest/memory/V1.d.ts +76 -0
- package/lib/rest/memory/V1.js +140 -0
- package/lib/rest/memory/v1/bulk.d.ts +129 -0
- package/lib/rest/memory/v1/bulk.js +158 -0
- package/lib/rest/memory/v1/conversationSummary.d.ts +531 -0
- package/lib/rest/memory/v1/conversationSummary.js +473 -0
- package/lib/rest/memory/v1/dataMapping.d.ts +630 -0
- package/lib/rest/memory/v1/dataMapping.js +512 -0
- package/lib/rest/memory/v1/event.d.ts +153 -0
- package/lib/rest/memory/v1/event.js +159 -0
- package/lib/rest/memory/v1/identifier.d.ts +362 -0
- package/lib/rest/memory/v1/identifier.js +369 -0
- package/lib/rest/memory/v1/identityResolutionSetting.d.ts +247 -0
- package/lib/rest/memory/v1/identityResolutionSetting.js +229 -0
- package/lib/rest/memory/v1/import.d.ts +292 -0
- package/lib/rest/memory/v1/import.js +280 -0
- package/lib/rest/memory/v1/lookup.d.ts +82 -0
- package/lib/rest/memory/v1/lookup.js +118 -0
- package/lib/rest/memory/v1/observation.d.ts +521 -0
- package/lib/rest/memory/v1/observation.js +477 -0
- package/lib/rest/memory/v1/operation.d.ts +162 -0
- package/lib/rest/memory/v1/operation.js +175 -0
- package/lib/rest/memory/v1/profile.d.ts +441 -0
- package/lib/rest/memory/v1/profile.js +467 -0
- package/lib/rest/memory/v1/recall.d.ts +306 -0
- package/lib/rest/memory/v1/recall.js +234 -0
- package/lib/rest/memory/v1/revision.d.ts +246 -0
- package/lib/rest/memory/v1/revision.js +195 -0
- package/lib/rest/memory/v1/store.d.ts +503 -0
- package/lib/rest/memory/v1/store.js +482 -0
- package/lib/rest/memory/v1/trait.d.ts +233 -0
- package/lib/rest/memory/v1/trait.js +190 -0
- package/lib/rest/memory/v1/traitGroup.d.ts +758 -0
- package/lib/rest/memory/v1/traitGroup.js +555 -0
- package/lib/rest/messaging/V3.d.ts +15 -0
- package/lib/rest/messaging/V3.js +37 -0
- package/lib/rest/messaging/v2/channelsSender.d.ts +9 -1
- package/lib/rest/messaging/v2/channelsSender.js +2 -0
- package/lib/rest/messaging/v3/typingIndicator.d.ts +90 -0
- package/lib/rest/messaging/v3/typingIndicator.js +114 -0
- package/lib/rest/numbers/v3/hostedNumberOrder.d.ts +1 -1
- package/lib/rest/numbers/v3/hostedNumberOrder.js +2 -1
- package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +32 -0
- package/lib/rest/previewIam/versionless/organization/roleAssignment.js +14 -0
- package/lib/rest/studio/v2/flow/execution.d.ts +12 -0
- package/lib/rest/studio/v2/flow/execution.js +6 -0
- package/lib/rest/studio/v2/flow.d.ts +4 -0
- package/lib/rest/studio/v2/flow.js +8 -0
- package/lib/rest/verify/v2/service/approveChallenge.d.ts +6 -6
- package/lib/rest/verify/v2/service/approveChallenge.js +2 -2
- package/lib/rest/verify/v2/service/newChallenge.d.ts +6 -6
- package/lib/rest/verify/v2/service/newChallenge.js +2 -2
- package/lib/rest/verify/v2/service/verification.d.ts +1 -1
- package/lib/rest/verify/v2/service/webhook.d.ts +2 -2
- package/lib/rest/verify/v2/service/webhook.js +8 -8
- package/lib/rest/video/v1/room.d.ts +4 -1
- package/lib/rest/voice/V3.d.ts +15 -0
- package/lib/rest/voice/V3.js +37 -0
- package/lib/rest/voice/v3/transcription.d.ts +378 -0
- package/lib/rest/voice/v3/transcription.js +264 -0
- package/lib/twiml/VoiceResponse.d.ts +18 -0
- package/package.json +2 -2
- package/lib/rest/flexApi/v1/createFlexInstance.d.ts +0 -165
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Insights
|
|
9
|
+
* Insights Domain V3 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.QueryInstance = exports.QueryDefinitionOrderBy = exports.QueryDefinitionFiltersExpressions = exports.QueryDefinitionFilters = exports.QueryDefinition = exports.PaginationMeta = exports.InsightsQueryRequest = void 0;
|
|
17
|
+
exports.QueryListInstance = QueryListInstance;
|
|
18
|
+
const util_1 = require("util");
|
|
19
|
+
const deserialize = require("../../../base/deserialize");
|
|
20
|
+
const serialize = require("../../../base/serialize");
|
|
21
|
+
class InsightsQueryRequest {
|
|
22
|
+
constructor(payload) {
|
|
23
|
+
this.domain = payload["domain"];
|
|
24
|
+
this.query = payload["query"];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.InsightsQueryRequest = InsightsQueryRequest;
|
|
28
|
+
/**
|
|
29
|
+
* Pagination metadata containing navigation tokens and result information, this schema should according to convention be added to the response payload\'s \'meta\' attribute
|
|
30
|
+
*/
|
|
31
|
+
class PaginationMeta {
|
|
32
|
+
constructor(payload) {
|
|
33
|
+
this.key = payload["key"];
|
|
34
|
+
this.pageSize = payload["pageSize"];
|
|
35
|
+
this.previousToken = payload["previousToken"];
|
|
36
|
+
this.nextToken = payload["nextToken"];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.PaginationMeta = PaginationMeta;
|
|
40
|
+
/**
|
|
41
|
+
* Structured query definition that specifies what data to retrieve and how to filter, group, and order it
|
|
42
|
+
*/
|
|
43
|
+
class QueryDefinition {
|
|
44
|
+
constructor(payload) {
|
|
45
|
+
this.measures = payload["measures"];
|
|
46
|
+
this.dimensions = payload["dimensions"];
|
|
47
|
+
this.filters = payload["filters"];
|
|
48
|
+
this.orderBy = payload["orderBy"];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.QueryDefinition = QueryDefinition;
|
|
52
|
+
class QueryDefinitionFilters {
|
|
53
|
+
constructor(payload) {
|
|
54
|
+
this.op = payload["op"];
|
|
55
|
+
this.expressions = payload["expressions"];
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.QueryDefinitionFilters = QueryDefinitionFilters;
|
|
59
|
+
class QueryDefinitionFiltersExpressions {
|
|
60
|
+
constructor(payload) {
|
|
61
|
+
this.op = payload["op"];
|
|
62
|
+
this.field = payload["field"];
|
|
63
|
+
this.values = payload["values"];
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
exports.QueryDefinitionFiltersExpressions = QueryDefinitionFiltersExpressions;
|
|
67
|
+
class QueryDefinitionOrderBy {
|
|
68
|
+
constructor(payload) {
|
|
69
|
+
this.field = payload["field"];
|
|
70
|
+
this.direction = payload["direction"];
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.QueryDefinitionOrderBy = QueryDefinitionOrderBy;
|
|
74
|
+
function QueryListInstance(version) {
|
|
75
|
+
const instance = {};
|
|
76
|
+
instance._version = version;
|
|
77
|
+
instance._solution = {};
|
|
78
|
+
instance._uri = `/InsightsDomains/Conversations/Query`;
|
|
79
|
+
instance.create = function create(params, headers, callback) {
|
|
80
|
+
if (params === null || params === undefined) {
|
|
81
|
+
throw new Error('Required parameter "params" missing.');
|
|
82
|
+
}
|
|
83
|
+
let data = {};
|
|
84
|
+
if (params["pageSize"] !== undefined)
|
|
85
|
+
data["pageSize"] = params["pageSize"];
|
|
86
|
+
data = params;
|
|
87
|
+
if (headers === null || headers === undefined) {
|
|
88
|
+
headers = {};
|
|
89
|
+
}
|
|
90
|
+
headers["Content-Type"] = "application/json";
|
|
91
|
+
headers["Accept"] = "application/json";
|
|
92
|
+
let operationVersion = version, operationPromise = operationVersion.create({
|
|
93
|
+
uri: instance._uri,
|
|
94
|
+
method: "post",
|
|
95
|
+
data,
|
|
96
|
+
headers,
|
|
97
|
+
});
|
|
98
|
+
operationPromise = operationPromise.then((payload) => new QueryInstance(operationVersion, payload));
|
|
99
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
100
|
+
return operationPromise;
|
|
101
|
+
};
|
|
102
|
+
instance.createWithHttpInfo = function createWithHttpInfo(params, headers, callback) {
|
|
103
|
+
if (params === null || params === undefined) {
|
|
104
|
+
throw new Error('Required parameter "params" missing.');
|
|
105
|
+
}
|
|
106
|
+
let data = {};
|
|
107
|
+
if (params["pageSize"] !== undefined)
|
|
108
|
+
data["pageSize"] = params["pageSize"];
|
|
109
|
+
data = params;
|
|
110
|
+
if (headers === null || headers === undefined) {
|
|
111
|
+
headers = {};
|
|
112
|
+
}
|
|
113
|
+
headers["Content-Type"] = "application/json";
|
|
114
|
+
headers["Accept"] = "application/json";
|
|
115
|
+
let operationVersion = version;
|
|
116
|
+
// CREATE, FETCH, UPDATE operations
|
|
117
|
+
let operationPromise = operationVersion
|
|
118
|
+
.createWithResponseInfo({
|
|
119
|
+
uri: instance._uri,
|
|
120
|
+
method: "post",
|
|
121
|
+
data,
|
|
122
|
+
headers,
|
|
123
|
+
})
|
|
124
|
+
.then((response) => ({
|
|
125
|
+
...response,
|
|
126
|
+
body: new QueryInstance(operationVersion, response.body),
|
|
127
|
+
}));
|
|
128
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
129
|
+
return operationPromise;
|
|
130
|
+
};
|
|
131
|
+
instance.fetch = function fetch(params, callback) {
|
|
132
|
+
if (params === null || params === undefined) {
|
|
133
|
+
throw new Error('Required parameter "params" missing.');
|
|
134
|
+
}
|
|
135
|
+
if (params["pageToken"] === null || params["pageToken"] === undefined) {
|
|
136
|
+
throw new Error("Required parameter \"params['pageToken']\" missing.");
|
|
137
|
+
}
|
|
138
|
+
let data = {};
|
|
139
|
+
data["pageToken"] = params["pageToken"];
|
|
140
|
+
const headers = {};
|
|
141
|
+
headers["Accept"] = "application/json";
|
|
142
|
+
let operationVersion = version, operationPromise = operationVersion.fetch({
|
|
143
|
+
uri: instance._uri,
|
|
144
|
+
method: "get",
|
|
145
|
+
params: data,
|
|
146
|
+
headers,
|
|
147
|
+
});
|
|
148
|
+
operationPromise = operationPromise.then((payload) => new QueryInstance(operationVersion, payload));
|
|
149
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
150
|
+
return operationPromise;
|
|
151
|
+
};
|
|
152
|
+
instance.fetchWithHttpInfo = function fetchWithHttpInfo(params, callback) {
|
|
153
|
+
if (params === null || params === undefined) {
|
|
154
|
+
throw new Error('Required parameter "params" missing.');
|
|
155
|
+
}
|
|
156
|
+
if (params["pageToken"] === null || params["pageToken"] === undefined) {
|
|
157
|
+
throw new Error("Required parameter \"params['pageToken']\" missing.");
|
|
158
|
+
}
|
|
159
|
+
let data = {};
|
|
160
|
+
data["pageToken"] = params["pageToken"];
|
|
161
|
+
const headers = {};
|
|
162
|
+
headers["Accept"] = "application/json";
|
|
163
|
+
let operationVersion = version;
|
|
164
|
+
// CREATE, FETCH, UPDATE operations
|
|
165
|
+
let operationPromise = operationVersion
|
|
166
|
+
.fetchWithResponseInfo({
|
|
167
|
+
uri: instance._uri,
|
|
168
|
+
method: "get",
|
|
169
|
+
params: data,
|
|
170
|
+
headers,
|
|
171
|
+
})
|
|
172
|
+
.then((response) => ({
|
|
173
|
+
...response,
|
|
174
|
+
body: new QueryInstance(operationVersion, response.body),
|
|
175
|
+
}));
|
|
176
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
177
|
+
return operationPromise;
|
|
178
|
+
};
|
|
179
|
+
instance.toJSON = function toJSON() {
|
|
180
|
+
return instance._solution;
|
|
181
|
+
};
|
|
182
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
183
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
184
|
+
};
|
|
185
|
+
return instance;
|
|
186
|
+
}
|
|
187
|
+
class QueryInstance {
|
|
188
|
+
constructor(_version, _payload) {
|
|
189
|
+
this._version = _version;
|
|
190
|
+
const payload = _payload;
|
|
191
|
+
this.domain = payload.domain;
|
|
192
|
+
this.items = payload.items;
|
|
193
|
+
this.meta =
|
|
194
|
+
payload.meta !== null && payload.meta !== undefined
|
|
195
|
+
? new PaginationMeta(payload.meta)
|
|
196
|
+
: null;
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Provide a user-friendly representation
|
|
200
|
+
*
|
|
201
|
+
* @returns Object
|
|
202
|
+
*/
|
|
203
|
+
toJSON() {
|
|
204
|
+
return {
|
|
205
|
+
domain: this.domain,
|
|
206
|
+
items: this.items,
|
|
207
|
+
meta: this.meta,
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
[util_1.inspect.custom](_depth, options) {
|
|
211
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
exports.QueryInstance = QueryInstance;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import IntelligenceBase from "../IntelligenceBase";
|
|
2
|
+
import Version from "../../base/Version";
|
|
3
|
+
import { ConfigurationListInstance } from "./v3/configuration";
|
|
4
|
+
import { ConversationListInstance } from "./v3/conversation";
|
|
5
|
+
import { OperatorListInstance } from "./v3/operator";
|
|
6
|
+
import { OperatorResultListInstance } from "./v3/operatorResult";
|
|
7
|
+
import { VersionListInstance, VersionContext } from "./v3/version";
|
|
8
|
+
export default class V3 extends Version {
|
|
9
|
+
/**
|
|
10
|
+
* Initialize the V3 version of Intelligence
|
|
11
|
+
*
|
|
12
|
+
* @param domain - The Twilio (Twilio.Intelligence) domain
|
|
13
|
+
*/
|
|
14
|
+
constructor(domain: IntelligenceBase);
|
|
15
|
+
/** configurations - { Twilio.Intelligence.V3.ConfigurationListInstance } resource */
|
|
16
|
+
protected _configurations?: ConfigurationListInstance;
|
|
17
|
+
/** conversations - { Twilio.Intelligence.V3.ConversationListInstance } resource */
|
|
18
|
+
protected _conversations?: ConversationListInstance;
|
|
19
|
+
/** operators - { Twilio.Intelligence.V3.OperatorListInstance } resource */
|
|
20
|
+
protected _operators?: OperatorListInstance;
|
|
21
|
+
/** operatorResults - { Twilio.Intelligence.V3.OperatorResultListInstance } resource */
|
|
22
|
+
protected _operatorResults?: OperatorResultListInstance;
|
|
23
|
+
/** Getter for configurations resource */
|
|
24
|
+
get configurations(): ConfigurationListInstance;
|
|
25
|
+
/** Getter for conversations resource */
|
|
26
|
+
get conversations(): ConversationListInstance;
|
|
27
|
+
/** Getter for operators resource */
|
|
28
|
+
get operators(): OperatorListInstance;
|
|
29
|
+
/** Getter for operatorResults resource */
|
|
30
|
+
get operatorResults(): OperatorResultListInstance;
|
|
31
|
+
/** Accessor for versions resource - list operations */
|
|
32
|
+
versions(id: string): VersionListInstance;
|
|
33
|
+
/** Accessor for versions resource - instance operations */
|
|
34
|
+
versions(id: string, version: number): VersionContext;
|
|
35
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio Conversational Intelligence API
|
|
9
|
+
* The Conversational Intelligence API includes resources to create and manage intelligence configurations, define and run language operators, and retrieve processed conversations and operator results. * Use the Configurations resource to create and manage intelligence configurations and define rules that control how and when language operators analyze and transform conversations. * Use the Operators resource to create custom language operators or retrieve Twilio-author and custom operators. * Use the Conversations resource to retrieve conversations processed with an intelligence configuration, and the OperatorResults resource to retrieve language operator results for those conversations.
|
|
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
|
+
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
|
+
const configuration_1 = require("./v3/configuration");
|
|
21
|
+
const conversation_1 = require("./v3/conversation");
|
|
22
|
+
const operator_1 = require("./v3/operator");
|
|
23
|
+
const operatorResult_1 = require("./v3/operatorResult");
|
|
24
|
+
const version_1 = require("./v3/version");
|
|
25
|
+
class V3 extends Version_1.default {
|
|
26
|
+
/**
|
|
27
|
+
* Initialize the V3 version of Intelligence
|
|
28
|
+
*
|
|
29
|
+
* @param domain - The Twilio (Twilio.Intelligence) domain
|
|
30
|
+
*/
|
|
31
|
+
constructor(domain) {
|
|
32
|
+
super(domain, "v3");
|
|
33
|
+
}
|
|
34
|
+
/** Getter for configurations resource */
|
|
35
|
+
get configurations() {
|
|
36
|
+
this._configurations =
|
|
37
|
+
this._configurations || (0, configuration_1.ConfigurationListInstance)(this);
|
|
38
|
+
return this._configurations;
|
|
39
|
+
}
|
|
40
|
+
/** Getter for conversations resource */
|
|
41
|
+
get conversations() {
|
|
42
|
+
this._conversations = this._conversations || (0, conversation_1.ConversationListInstance)(this);
|
|
43
|
+
return this._conversations;
|
|
44
|
+
}
|
|
45
|
+
/** Getter for operators resource */
|
|
46
|
+
get operators() {
|
|
47
|
+
this._operators = this._operators || (0, operator_1.OperatorListInstance)(this);
|
|
48
|
+
return this._operators;
|
|
49
|
+
}
|
|
50
|
+
/** Getter for operatorResults resource */
|
|
51
|
+
get operatorResults() {
|
|
52
|
+
this._operatorResults =
|
|
53
|
+
this._operatorResults || (0, operatorResult_1.OperatorResultListInstance)(this);
|
|
54
|
+
return this._operatorResults;
|
|
55
|
+
}
|
|
56
|
+
/** Implementation */
|
|
57
|
+
versions(id, version) {
|
|
58
|
+
const listInstance = (0, version_1.VersionListInstance)(this, id);
|
|
59
|
+
if (version !== undefined) {
|
|
60
|
+
return listInstance.get(version);
|
|
61
|
+
}
|
|
62
|
+
return listInstance;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.default = V3;
|