twilio 4.11.1 → 4.12.0
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/Intelligence.d.ts +4 -0
- package/lib/rest/Intelligence.js +8 -0
- package/lib/rest/IntelligenceBase.d.ts +13 -0
- package/lib/rest/IntelligenceBase.js +31 -0
- package/lib/rest/Twilio.d.ts +5 -0
- package/lib/rest/Twilio.js +6 -0
- package/lib/rest/api/v2010/account/conference/participant.d.ts +3 -1
- package/lib/rest/api/v2010/account/conference/participant.js +2 -0
- package/lib/rest/api/v2010/account/message.d.ts +2 -2
- package/lib/rest/api/v2010/account/message.js +2 -2
- package/lib/rest/insights/v1/callSummaries.d.ts +12 -9
- package/lib/rest/insights/v1/callSummaries.js +8 -6
- package/lib/rest/intelligence/V2.d.ts +20 -0
- package/lib/rest/intelligence/V2.js +42 -0
- package/lib/rest/intelligence/v2/service.d.ts +378 -0
- package/lib/rest/intelligence/v2/service.js +300 -0
- package/lib/rest/intelligence/v2/transcript/media.d.ts +132 -0
- package/lib/rest/intelligence/v2/transcript/media.js +122 -0
- package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +296 -0
- package/lib/rest/intelligence/v2/transcript/operatorResult.js +214 -0
- package/lib/rest/intelligence/v2/transcript/sentence.d.ts +182 -0
- package/lib/rest/intelligence/v2/transcript/sentence.js +136 -0
- package/lib/rest/intelligence/v2/transcript.d.ts +399 -0
- package/lib/rest/intelligence/v2/transcript.js +307 -0
- package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +6 -0
- package/lib/rest/messaging/v1/service/usAppToPerson.js +2 -0
- package/lib/rest/supersim/v1/fleet.d.ts +2 -2
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
const IntelligenceBase_1 = __importDefault(require("./IntelligenceBase"));
|
|
6
|
+
class Intelligence extends IntelligenceBase_1.default {
|
|
7
|
+
}
|
|
8
|
+
module.exports = Intelligence;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Domain from "../base/Domain";
|
|
2
|
+
import V2 from "./intelligence/V2";
|
|
3
|
+
declare class IntelligenceBase extends Domain {
|
|
4
|
+
_v2?: V2;
|
|
5
|
+
/**
|
|
6
|
+
* Initialize intelligence domain
|
|
7
|
+
*
|
|
8
|
+
* @param twilio - The twilio client
|
|
9
|
+
*/
|
|
10
|
+
constructor(twilio: any);
|
|
11
|
+
get v2(): V2;
|
|
12
|
+
}
|
|
13
|
+
export = IntelligenceBase;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 V2_1 = __importDefault(require("./intelligence/V2"));
|
|
17
|
+
class IntelligenceBase extends Domain_1.default {
|
|
18
|
+
/**
|
|
19
|
+
* Initialize intelligence domain
|
|
20
|
+
*
|
|
21
|
+
* @param twilio - The twilio client
|
|
22
|
+
*/
|
|
23
|
+
constructor(twilio) {
|
|
24
|
+
super(twilio, "https://intelligence.twilio.com");
|
|
25
|
+
}
|
|
26
|
+
get v2() {
|
|
27
|
+
this._v2 = this._v2 || new V2_1.default(this);
|
|
28
|
+
return this._v2;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
module.exports = IntelligenceBase;
|
package/lib/rest/Twilio.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import Events from "./Events";
|
|
|
10
10
|
import FlexApi from "./FlexApi";
|
|
11
11
|
import FrontlineApi from "./FrontlineApi";
|
|
12
12
|
import Insights from "./Insights";
|
|
13
|
+
import Intelligence from "./Intelligence";
|
|
13
14
|
import IpMessaging from "./IpMessaging";
|
|
14
15
|
import Lookups from "./Lookups";
|
|
15
16
|
import Media from "./Media";
|
|
@@ -84,6 +85,8 @@ declare class Twilio extends Client {
|
|
|
84
85
|
_frontlineApi?: FrontlineApi;
|
|
85
86
|
/** (Twilio.Insights) - insights domain */
|
|
86
87
|
_insights?: Insights;
|
|
88
|
+
/** (Twilio.Intelligence) - intelligence domain */
|
|
89
|
+
_intelligence?: Intelligence;
|
|
87
90
|
/** (Twilio.IpMessaging) - ipMessaging domain */
|
|
88
91
|
_ipMessaging?: IpMessaging;
|
|
89
92
|
/** (Twilio.Lookups) - lookups domain */
|
|
@@ -166,6 +169,8 @@ declare class Twilio extends Client {
|
|
|
166
169
|
get frontlineApi(): FrontlineApi;
|
|
167
170
|
/** Getter for (Twilio.Insights) domain */
|
|
168
171
|
get insights(): Insights;
|
|
172
|
+
/** Getter for (Twilio.Intelligence) domain */
|
|
173
|
+
get intelligence(): Intelligence;
|
|
169
174
|
/** Getter for (Twilio.IpMessaging) domain */
|
|
170
175
|
get ipMessaging(): IpMessaging;
|
|
171
176
|
/** Getter for (Twilio.Lookups) domain */
|
package/lib/rest/Twilio.js
CHANGED
|
@@ -43,6 +43,7 @@ class Twilio extends BaseTwilio_1.Client {
|
|
|
43
43
|
this.flexApi;
|
|
44
44
|
this.frontlineApi;
|
|
45
45
|
this.insights;
|
|
46
|
+
this.intelligence;
|
|
46
47
|
this.ipMessaging;
|
|
47
48
|
this.lookups;
|
|
48
49
|
this.media;
|
|
@@ -117,6 +118,11 @@ class Twilio extends BaseTwilio_1.Client {
|
|
|
117
118
|
get insights() {
|
|
118
119
|
return (this._insights ?? (this._insights = new (require("./Insights"))(this)));
|
|
119
120
|
}
|
|
121
|
+
/** Getter for (Twilio.Intelligence) domain */
|
|
122
|
+
get intelligence() {
|
|
123
|
+
return (this._intelligence ??
|
|
124
|
+
(this._intelligence = new (require("./Intelligence"))(this)));
|
|
125
|
+
}
|
|
120
126
|
/** Getter for (Twilio.IpMessaging) domain */
|
|
121
127
|
get ipMessaging() {
|
|
122
128
|
return (this._ipMessaging ??
|
|
@@ -71,7 +71,7 @@ export interface ParticipantListInstanceCreateOptions {
|
|
|
71
71
|
maxParticipants?: number;
|
|
72
72
|
/** Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. */
|
|
73
73
|
conferenceRecord?: string;
|
|
74
|
-
/** Whether to trim leading and trailing silence from
|
|
74
|
+
/** Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. */
|
|
75
75
|
conferenceTrim?: string;
|
|
76
76
|
/** The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored. */
|
|
77
77
|
conferenceStatusCallback?: string;
|
|
@@ -129,6 +129,8 @@ export interface ParticipantListInstanceCreateOptions {
|
|
|
129
129
|
amdStatusCallback?: string;
|
|
130
130
|
/** The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. */
|
|
131
131
|
amdStatusCallbackMethod?: string;
|
|
132
|
+
/** Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. */
|
|
133
|
+
trim?: string;
|
|
132
134
|
}
|
|
133
135
|
/**
|
|
134
136
|
* Options to pass to each
|
|
@@ -317,6 +317,8 @@ function ParticipantListInstance(version, accountSid, conferenceSid) {
|
|
|
317
317
|
data["AmdStatusCallback"] = params["amdStatusCallback"];
|
|
318
318
|
if (params["amdStatusCallbackMethod"] !== undefined)
|
|
319
319
|
data["AmdStatusCallbackMethod"] = params["amdStatusCallbackMethod"];
|
|
320
|
+
if (params["trim"] !== undefined)
|
|
321
|
+
data["Trim"] = params["trim"];
|
|
320
322
|
const headers = {};
|
|
321
323
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
322
324
|
let operationVersion = version, operationPromise = operationVersion.create({
|
|
@@ -56,8 +56,6 @@ export interface MessageListInstanceCreateOptions {
|
|
|
56
56
|
sendAt?: Date;
|
|
57
57
|
/** If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media. */
|
|
58
58
|
sendAsMms?: boolean;
|
|
59
|
-
/** The SID of the Content object returned at Content API content create time (https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template). If this parameter is not specified, then the Content API will not be utilized. */
|
|
60
|
-
contentSid?: string;
|
|
61
59
|
/** Key-value pairs of variable names to substitution values, used alongside a content_sid. If not specified, Content API will default to the default variables defined at create time. */
|
|
62
60
|
contentVariables?: string;
|
|
63
61
|
/** A Twilio phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, an [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), or a [Channel Endpoint address](https://www.twilio.com/docs/sms/channels#channel-addresses) that is enabled for the type of message you want to send. Phone numbers or [short codes](https://www.twilio.com/docs/sms/api/short-code) purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using `messaging_service_sid`, this parameter must be empty. */
|
|
@@ -68,6 +66,8 @@ export interface MessageListInstanceCreateOptions {
|
|
|
68
66
|
body?: string;
|
|
69
67
|
/** The URL of the media to send with the message. The media can be of type `gif`, `png`, and `jpeg` and will be formatted correctly on the recipient\\\'s device. The media size limit is 5MB for supported file types (JPEG, PNG, GIF) and 500KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message body, provide multiple `media_url` parameters in the POST request. You can include up to 10 `media_url` parameters per message. You can send images in an SMS message in only the US and Canada. */
|
|
70
68
|
mediaUrl?: Array<string>;
|
|
69
|
+
/** The SID of the Content object returned at Content API content create time (https://www.twilio.com/docs/content-api/create-and-send-your-first-content-api-template#create-a-template). If this parameter is not specified, then the Content API will not be utilized. */
|
|
70
|
+
contentSid?: string;
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* Options to pass to each
|
|
@@ -256,8 +256,6 @@ function MessageListInstance(version, accountSid) {
|
|
|
256
256
|
data["SendAt"] = serialize.iso8601DateTime(params["sendAt"]);
|
|
257
257
|
if (params["sendAsMms"] !== undefined)
|
|
258
258
|
data["SendAsMms"] = serialize.bool(params["sendAsMms"]);
|
|
259
|
-
if (params["contentSid"] !== undefined)
|
|
260
|
-
data["ContentSid"] = params["contentSid"];
|
|
261
259
|
if (params["contentVariables"] !== undefined)
|
|
262
260
|
data["ContentVariables"] = params["contentVariables"];
|
|
263
261
|
if (params["from"] !== undefined)
|
|
@@ -268,6 +266,8 @@ function MessageListInstance(version, accountSid) {
|
|
|
268
266
|
data["Body"] = params["body"];
|
|
269
267
|
if (params["mediaUrl"] !== undefined)
|
|
270
268
|
data["MediaUrl"] = serialize.map(params["mediaUrl"], (e) => e);
|
|
269
|
+
if (params["contentSid"] !== undefined)
|
|
270
|
+
data["ContentSid"] = params["contentSid"];
|
|
271
271
|
const headers = {};
|
|
272
272
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
273
273
|
let operationVersion = version, operationPromise = operationVersion.create({
|
|
@@ -52,13 +52,13 @@ export interface CallSummariesListInstanceEachOptions {
|
|
|
52
52
|
/** */
|
|
53
53
|
answeredBy?: CallSummariesAnsweredBy;
|
|
54
54
|
/** */
|
|
55
|
-
|
|
55
|
+
connectivityIssue?: string;
|
|
56
56
|
/** */
|
|
57
|
-
|
|
57
|
+
qualityIssue?: string;
|
|
58
58
|
/** */
|
|
59
59
|
spam?: boolean;
|
|
60
60
|
/** */
|
|
61
|
-
|
|
61
|
+
callScore?: string;
|
|
62
62
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
63
63
|
pageSize?: number;
|
|
64
64
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
@@ -111,13 +111,13 @@ export interface CallSummariesListInstanceOptions {
|
|
|
111
111
|
/** */
|
|
112
112
|
answeredBy?: CallSummariesAnsweredBy;
|
|
113
113
|
/** */
|
|
114
|
-
|
|
114
|
+
connectivityIssue?: string;
|
|
115
115
|
/** */
|
|
116
|
-
|
|
116
|
+
qualityIssue?: string;
|
|
117
117
|
/** */
|
|
118
118
|
spam?: boolean;
|
|
119
119
|
/** */
|
|
120
|
-
|
|
120
|
+
callScore?: string;
|
|
121
121
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
122
122
|
pageSize?: number;
|
|
123
123
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
@@ -166,13 +166,13 @@ export interface CallSummariesListInstancePageOptions {
|
|
|
166
166
|
/** */
|
|
167
167
|
answeredBy?: CallSummariesAnsweredBy;
|
|
168
168
|
/** */
|
|
169
|
-
|
|
169
|
+
connectivityIssue?: string;
|
|
170
170
|
/** */
|
|
171
|
-
|
|
171
|
+
qualityIssue?: string;
|
|
172
172
|
/** */
|
|
173
173
|
spam?: boolean;
|
|
174
174
|
/** */
|
|
175
|
-
|
|
175
|
+
callScore?: string;
|
|
176
176
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
177
177
|
pageSize?: number;
|
|
178
178
|
/** Page Number, this value is simply for client state */
|
|
@@ -269,6 +269,7 @@ interface CallSummariesResource {
|
|
|
269
269
|
attributes: any;
|
|
270
270
|
properties: any;
|
|
271
271
|
trust: any;
|
|
272
|
+
annotation: any;
|
|
272
273
|
}
|
|
273
274
|
export declare class CallSummariesInstance {
|
|
274
275
|
protected _version: V1;
|
|
@@ -295,6 +296,7 @@ export declare class CallSummariesInstance {
|
|
|
295
296
|
attributes: any;
|
|
296
297
|
properties: any;
|
|
297
298
|
trust: any;
|
|
299
|
+
annotation: any;
|
|
298
300
|
/**
|
|
299
301
|
* Provide a user-friendly representation
|
|
300
302
|
*
|
|
@@ -323,6 +325,7 @@ export declare class CallSummariesInstance {
|
|
|
323
325
|
attributes: any;
|
|
324
326
|
properties: any;
|
|
325
327
|
trust: any;
|
|
328
|
+
annotation: any;
|
|
326
329
|
};
|
|
327
330
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
328
331
|
}
|
|
@@ -73,14 +73,14 @@ function CallSummariesListInstance(version) {
|
|
|
73
73
|
data["AbnormalSession"] = serialize.bool(params["abnormalSession"]);
|
|
74
74
|
if (params["answeredBy"] !== undefined)
|
|
75
75
|
data["AnsweredBy"] = params["answeredBy"];
|
|
76
|
-
if (params["
|
|
77
|
-
data["
|
|
78
|
-
if (params["
|
|
79
|
-
data["
|
|
76
|
+
if (params["connectivityIssue"] !== undefined)
|
|
77
|
+
data["ConnectivityIssue"] = params["connectivityIssue"];
|
|
78
|
+
if (params["qualityIssue"] !== undefined)
|
|
79
|
+
data["QualityIssue"] = params["qualityIssue"];
|
|
80
80
|
if (params["spam"] !== undefined)
|
|
81
81
|
data["Spam"] = serialize.bool(params["spam"]);
|
|
82
|
-
if (params["
|
|
83
|
-
data["
|
|
82
|
+
if (params["callScore"] !== undefined)
|
|
83
|
+
data["CallScore"] = params["callScore"];
|
|
84
84
|
if (params["pageSize"] !== undefined)
|
|
85
85
|
data["PageSize"] = params["pageSize"];
|
|
86
86
|
if (params.pageNumber !== undefined)
|
|
@@ -143,6 +143,7 @@ class CallSummariesInstance {
|
|
|
143
143
|
this.attributes = payload.attributes;
|
|
144
144
|
this.properties = payload.properties;
|
|
145
145
|
this.trust = payload.trust;
|
|
146
|
+
this.annotation = payload.annotation;
|
|
146
147
|
}
|
|
147
148
|
/**
|
|
148
149
|
* Provide a user-friendly representation
|
|
@@ -173,6 +174,7 @@ class CallSummariesInstance {
|
|
|
173
174
|
attributes: this.attributes,
|
|
174
175
|
properties: this.properties,
|
|
175
176
|
trust: this.trust,
|
|
177
|
+
annotation: this.annotation,
|
|
176
178
|
};
|
|
177
179
|
}
|
|
178
180
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import IntelligenceBase from "../IntelligenceBase";
|
|
2
|
+
import Version from "../../base/Version";
|
|
3
|
+
import { ServiceListInstance } from "./v2/service";
|
|
4
|
+
import { TranscriptListInstance } from "./v2/transcript";
|
|
5
|
+
export default class V2 extends Version {
|
|
6
|
+
/**
|
|
7
|
+
* Initialize the V2 version of Intelligence
|
|
8
|
+
*
|
|
9
|
+
* @param domain - The Twilio (Twilio.Intelligence) domain
|
|
10
|
+
*/
|
|
11
|
+
constructor(domain: IntelligenceBase);
|
|
12
|
+
/** services - { Twilio.Intelligence.V2.ServiceListInstance } resource */
|
|
13
|
+
protected _services?: ServiceListInstance;
|
|
14
|
+
/** transcripts - { Twilio.Intelligence.V2.TranscriptListInstance } resource */
|
|
15
|
+
protected _transcripts?: TranscriptListInstance;
|
|
16
|
+
/** Getter for services resource */
|
|
17
|
+
get services(): ServiceListInstance;
|
|
18
|
+
/** Getter for transcripts resource */
|
|
19
|
+
get transcripts(): TranscriptListInstance;
|
|
20
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Intelligence
|
|
9
|
+
* This is the public Twilio REST API.
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
|
+
const service_1 = require("./v2/service");
|
|
21
|
+
const transcript_1 = require("./v2/transcript");
|
|
22
|
+
class V2 extends Version_1.default {
|
|
23
|
+
/**
|
|
24
|
+
* Initialize the V2 version of Intelligence
|
|
25
|
+
*
|
|
26
|
+
* @param domain - The Twilio (Twilio.Intelligence) domain
|
|
27
|
+
*/
|
|
28
|
+
constructor(domain) {
|
|
29
|
+
super(domain, "v2");
|
|
30
|
+
}
|
|
31
|
+
/** Getter for services resource */
|
|
32
|
+
get services() {
|
|
33
|
+
this._services = this._services || (0, service_1.ServiceListInstance)(this);
|
|
34
|
+
return this._services;
|
|
35
|
+
}
|
|
36
|
+
/** Getter for transcripts resource */
|
|
37
|
+
get transcripts() {
|
|
38
|
+
this._transcripts = this._transcripts || (0, transcript_1.TranscriptListInstance)(this);
|
|
39
|
+
return this._transcripts;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.default = V2;
|