twilio 4.18.1 → 4.19.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/lib/rest/Twilio.d.ts +0 -5
- package/lib/rest/Twilio.js +0 -5
- package/lib/rest/accounts/V1.d.ts +5 -0
- package/lib/rest/accounts/V1.js +6 -0
- package/lib/rest/{api/v2010 → accounts/v1}/safelist.d.ts +5 -5
- package/lib/rest/{api/v2010 → accounts/v1}/safelist.js +2 -2
- package/lib/rest/api/V2010.d.ts +0 -5
- package/lib/rest/api/V2010.js +0 -6
- package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -0
- package/lib/rest/api/v2010/account/conference/participant.js +2 -0
- package/lib/rest/api/v2010/account/message.d.ts +4 -4
- package/lib/rest/content/v1/content.d.ts +1 -1
- package/lib/rest/content/v1/contentAndApprovals.d.ts +1 -1
- package/lib/rest/content/v1/legacyContent.d.ts +1 -1
- package/lib/rest/conversations/v1/conversation/message.d.ts +2 -2
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +2 -2
- package/lib/rest/flexApi/V1.d.ts +5 -0
- package/lib/rest/flexApi/V1.js +7 -0
- package/lib/rest/flexApi/v1/configuration.d.ts +6 -0
- package/lib/rest/flexApi/v1/configuration.js +2 -0
- package/lib/rest/flexApi/v1/provisioningStatus.d.ts +85 -0
- package/lib/rest/{oauth/v1/oauth.js → flexApi/v1/provisioningStatus.js} +17 -16
- package/lib/rest/insights/v1/call/annotation.d.ts +0 -3
- package/lib/rest/intelligence/v2/service.d.ts +3 -3
- package/lib/rest/intelligence/v2/transcript/media.d.ts +1 -1
- package/lib/rest/intelligence/v2/transcript/operatorResult.d.ts +10 -4
- package/lib/rest/intelligence/v2/transcript/operatorResult.js +2 -0
- package/lib/rest/intelligence/v2/transcript/sentence.d.ts +3 -3
- package/lib/rest/intelligence/v2/transcript.d.ts +2 -27
- package/lib/rest/intelligence/v2/transcript.js +10 -16
- package/lib/rest/lookups/v2/phoneNumber.d.ts +4 -4
- package/lib/rest/lookups/v2/phoneNumber.js +2 -2
- package/lib/rest/messaging/v1/service/channelSender.d.ts +3 -0
- package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +2 -2
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +25 -0
- package/lib/rest/messaging/v1/tollfreeVerification.js +23 -0
- package/lib/rest/notify/v1/service/notification.d.ts +1 -1
- package/lib/rest/notify/v1/service.d.ts +3 -3
- package/lib/rest/proxy/v1/service/session/interaction.d.ts +1 -1
- package/lib/rest/proxy/v1/service/shortCode.d.ts +1 -1
- package/lib/rest/serverless/v1/service/build.d.ts +1 -1
- package/lib/rest/supersim/v1/esimProfile.d.ts +4 -4
- package/lib/rest/taskrouter/v1/workspace/task.d.ts +17 -7
- package/lib/rest/taskrouter/v1/workspace/task.js +6 -0
- package/lib/rest/trusthub/V1.d.ts +5 -0
- package/lib/rest/trusthub/V1.js +8 -0
- package/lib/rest/trusthub/v1/complianceTollfreeInquiries.d.ts +73 -0
- package/lib/rest/{oauth/v1/deviceCode.js → trusthub/v1/complianceTollfreeInquiries.js} +24 -28
- package/lib/rest/verify/v2/service/verification.d.ts +2 -0
- package/lib/rest/verify/v2/service/verification.js +2 -0
- package/lib/rest/verify/v2/service.d.ts +10 -0
- package/lib/rest/verify/v2/service.js +7 -0
- package/lib/rest/verify/v2/verificationAttempt.d.ts +1 -1
- package/package.json +6 -6
- package/lib/rest/Oauth.d.ts +0 -29
- package/lib/rest/Oauth.js +0 -43
- package/lib/rest/OauthBase.d.ts +0 -13
- package/lib/rest/OauthBase.js +0 -31
- package/lib/rest/oauth/V1.d.ts +0 -35
- package/lib/rest/oauth/V1.js +0 -61
- package/lib/rest/oauth/v1/deviceCode.d.ts +0 -87
- package/lib/rest/oauth/v1/oauth.d.ts +0 -84
- package/lib/rest/oauth/v1/openidDiscovery.d.ts +0 -150
- package/lib/rest/oauth/v1/openidDiscovery.js +0 -126
- package/lib/rest/oauth/v1/token.d.ts +0 -88
- package/lib/rest/oauth/v1/token.js +0 -98
- package/lib/rest/oauth/v1/userInfo.d.ts +0 -108
- package/lib/rest/oauth/v1/userInfo.js +0 -110
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (C) 2023, Twilio, Inc. <
|
|
3
|
+
Copyright (C) 2023, Twilio, Inc. <https://www.twilio.com/help/contact>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
package/lib/rest/Twilio.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ import Microvisor from "./Microvisor";
|
|
|
19
19
|
import Monitor from "./Monitor";
|
|
20
20
|
import Notify from "./Notify";
|
|
21
21
|
import Numbers from "./Numbers";
|
|
22
|
-
import Oauth from "./Oauth";
|
|
23
22
|
import Preview from "./Preview";
|
|
24
23
|
import Pricing from "./Pricing";
|
|
25
24
|
import Proxy from "./Proxy";
|
|
@@ -103,8 +102,6 @@ declare class Twilio extends Client {
|
|
|
103
102
|
_notify?: Notify;
|
|
104
103
|
/** (Twilio.Numbers) - numbers domain */
|
|
105
104
|
_numbers?: Numbers;
|
|
106
|
-
/** (Twilio.Oauth) - oauth domain */
|
|
107
|
-
_oauth?: Oauth;
|
|
108
105
|
/** (Twilio.Preview) - preview domain */
|
|
109
106
|
_preview?: Preview;
|
|
110
107
|
/** (Twilio.Pricing) - pricing domain */
|
|
@@ -187,8 +184,6 @@ declare class Twilio extends Client {
|
|
|
187
184
|
get notify(): Notify;
|
|
188
185
|
/** Getter for (Twilio.Numbers) domain */
|
|
189
186
|
get numbers(): Numbers;
|
|
190
|
-
/** Getter for (Twilio.Oauth) domain */
|
|
191
|
-
get oauth(): Oauth;
|
|
192
187
|
/** Getter for (Twilio.Preview) domain */
|
|
193
188
|
get preview(): Preview;
|
|
194
189
|
/** Getter for (Twilio.Pricing) domain */
|
package/lib/rest/Twilio.js
CHANGED
|
@@ -52,7 +52,6 @@ class Twilio extends BaseTwilio_1.Client {
|
|
|
52
52
|
this.monitor;
|
|
53
53
|
this.notify;
|
|
54
54
|
this.numbers;
|
|
55
|
-
this.oauth;
|
|
56
55
|
this.preview;
|
|
57
56
|
this.pricing;
|
|
58
57
|
this.proxy;
|
|
@@ -157,10 +156,6 @@ class Twilio extends BaseTwilio_1.Client {
|
|
|
157
156
|
get numbers() {
|
|
158
157
|
return this._numbers ?? (this._numbers = new (require("./Numbers"))(this));
|
|
159
158
|
}
|
|
160
|
-
/** Getter for (Twilio.Oauth) domain */
|
|
161
|
-
get oauth() {
|
|
162
|
-
return this._oauth ?? (this._oauth = new (require("./Oauth"))(this));
|
|
163
|
-
}
|
|
164
159
|
/** Getter for (Twilio.Preview) domain */
|
|
165
160
|
get preview() {
|
|
166
161
|
return this._preview ?? (this._preview = new (require("./Preview"))(this));
|
|
@@ -2,6 +2,7 @@ import AccountsBase from "../AccountsBase";
|
|
|
2
2
|
import Version from "../../base/Version";
|
|
3
3
|
import { AuthTokenPromotionListInstance } from "./v1/authTokenPromotion";
|
|
4
4
|
import { CredentialListInstance } from "./v1/credential";
|
|
5
|
+
import { SafelistListInstance } from "./v1/safelist";
|
|
5
6
|
import { SecondaryAuthTokenListInstance } from "./v1/secondaryAuthToken";
|
|
6
7
|
export default class V1 extends Version {
|
|
7
8
|
/**
|
|
@@ -14,12 +15,16 @@ export default class V1 extends Version {
|
|
|
14
15
|
protected _authTokenPromotion?: AuthTokenPromotionListInstance;
|
|
15
16
|
/** credentials - { Twilio.Accounts.V1.CredentialListInstance } resource */
|
|
16
17
|
protected _credentials?: CredentialListInstance;
|
|
18
|
+
/** safelist - { Twilio.Accounts.V1.SafelistListInstance } resource */
|
|
19
|
+
protected _safelist?: SafelistListInstance;
|
|
17
20
|
/** secondaryAuthToken - { Twilio.Accounts.V1.SecondaryAuthTokenListInstance } resource */
|
|
18
21
|
protected _secondaryAuthToken?: SecondaryAuthTokenListInstance;
|
|
19
22
|
/** Getter for authTokenPromotion resource */
|
|
20
23
|
get authTokenPromotion(): AuthTokenPromotionListInstance;
|
|
21
24
|
/** Getter for credentials resource */
|
|
22
25
|
get credentials(): CredentialListInstance;
|
|
26
|
+
/** Getter for safelist resource */
|
|
27
|
+
get safelist(): SafelistListInstance;
|
|
23
28
|
/** Getter for secondaryAuthToken resource */
|
|
24
29
|
get secondaryAuthToken(): SecondaryAuthTokenListInstance;
|
|
25
30
|
}
|
package/lib/rest/accounts/V1.js
CHANGED
|
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
19
19
|
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
20
|
const authTokenPromotion_1 = require("./v1/authTokenPromotion");
|
|
21
21
|
const credential_1 = require("./v1/credential");
|
|
22
|
+
const safelist_1 = require("./v1/safelist");
|
|
22
23
|
const secondaryAuthToken_1 = require("./v1/secondaryAuthToken");
|
|
23
24
|
class V1 extends Version_1.default {
|
|
24
25
|
/**
|
|
@@ -40,6 +41,11 @@ class V1 extends Version_1.default {
|
|
|
40
41
|
this._credentials = this._credentials || (0, credential_1.CredentialListInstance)(this);
|
|
41
42
|
return this._credentials;
|
|
42
43
|
}
|
|
44
|
+
/** Getter for safelist resource */
|
|
45
|
+
get safelist() {
|
|
46
|
+
this._safelist = this._safelist || (0, safelist_1.SafelistListInstance)(this);
|
|
47
|
+
return this._safelist;
|
|
48
|
+
}
|
|
43
49
|
/** Getter for secondaryAuthToken resource */
|
|
44
50
|
get secondaryAuthToken() {
|
|
45
51
|
this._secondaryAuthToken =
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
|
-
import
|
|
3
|
+
import V1 from "../V1";
|
|
4
4
|
/**
|
|
5
5
|
* Options to pass to create a SafelistInstance
|
|
6
6
|
*/
|
|
@@ -25,7 +25,7 @@ export interface SafelistListInstanceFetchOptions {
|
|
|
25
25
|
export interface SafelistSolution {
|
|
26
26
|
}
|
|
27
27
|
export interface SafelistListInstance {
|
|
28
|
-
_version:
|
|
28
|
+
_version: V1;
|
|
29
29
|
_solution: SafelistSolution;
|
|
30
30
|
_uri: string;
|
|
31
31
|
/**
|
|
@@ -77,14 +77,14 @@ export interface SafelistListInstance {
|
|
|
77
77
|
toJSON(): any;
|
|
78
78
|
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
79
79
|
}
|
|
80
|
-
export declare function SafelistListInstance(version:
|
|
80
|
+
export declare function SafelistListInstance(version: V1): SafelistListInstance;
|
|
81
81
|
interface SafelistResource {
|
|
82
82
|
sid: string;
|
|
83
83
|
phone_number: string;
|
|
84
84
|
}
|
|
85
85
|
export declare class SafelistInstance {
|
|
86
|
-
protected _version:
|
|
87
|
-
constructor(_version:
|
|
86
|
+
protected _version: V1;
|
|
87
|
+
constructor(_version: V1, payload: SafelistResource);
|
|
88
88
|
/**
|
|
89
89
|
* The unique string that we created to identify the SafeList resource.
|
|
90
90
|
*/
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
6
|
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
7
|
*
|
|
8
|
-
* Twilio -
|
|
8
|
+
* Twilio - Accounts
|
|
9
9
|
* This is the public Twilio REST API.
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -21,7 +21,7 @@ function SafelistListInstance(version) {
|
|
|
21
21
|
const instance = {};
|
|
22
22
|
instance._version = version;
|
|
23
23
|
instance._solution = {};
|
|
24
|
-
instance._uri = `/SafeList/Numbers
|
|
24
|
+
instance._uri = `/SafeList/Numbers`;
|
|
25
25
|
instance.create = function create(params, callback) {
|
|
26
26
|
if (params === null || params === undefined) {
|
|
27
27
|
throw new Error('Required parameter "params" missing.');
|
package/lib/rest/api/V2010.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import ApiBase from "../ApiBase";
|
|
2
2
|
import Version from "../../base/Version";
|
|
3
3
|
import { AccountListInstance } from "./v2010/account";
|
|
4
|
-
import { SafelistListInstance } from "./v2010/safelist";
|
|
5
4
|
import { AccountContext } from "./v2010/account";
|
|
6
5
|
export default class V2010 extends Version {
|
|
7
6
|
/**
|
|
@@ -12,14 +11,10 @@ export default class V2010 extends Version {
|
|
|
12
11
|
constructor(domain: ApiBase);
|
|
13
12
|
/** accounts - { Twilio.Api.V2010.AccountListInstance } resource */
|
|
14
13
|
protected _accounts?: AccountListInstance;
|
|
15
|
-
/** safelist - { Twilio.Api.V2010.SafelistListInstance } resource */
|
|
16
|
-
protected _safelist?: SafelistListInstance;
|
|
17
14
|
/** account - { Twilio.Api.V2010.AccountContext } resource */
|
|
18
15
|
protected _account?: AccountContext;
|
|
19
16
|
/** Getter for accounts resource */
|
|
20
17
|
get accounts(): AccountListInstance;
|
|
21
|
-
/** Getter for safelist resource */
|
|
22
|
-
get safelist(): SafelistListInstance;
|
|
23
18
|
/** Getter for account resource */
|
|
24
19
|
get account(): AccountContext;
|
|
25
20
|
}
|
package/lib/rest/api/V2010.js
CHANGED
|
@@ -18,7 +18,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
19
|
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
20
|
const account_1 = require("./v2010/account");
|
|
21
|
-
const safelist_1 = require("./v2010/safelist");
|
|
22
21
|
class V2010 extends Version_1.default {
|
|
23
22
|
/**
|
|
24
23
|
* Initialize the V2010 version of Api
|
|
@@ -33,11 +32,6 @@ class V2010 extends Version_1.default {
|
|
|
33
32
|
this._accounts = this._accounts || (0, account_1.AccountListInstance)(this);
|
|
34
33
|
return this._accounts;
|
|
35
34
|
}
|
|
36
|
-
/** Getter for safelist resource */
|
|
37
|
-
get safelist() {
|
|
38
|
-
this._safelist = this._safelist || (0, safelist_1.SafelistListInstance)(this);
|
|
39
|
-
return this._safelist;
|
|
40
|
-
}
|
|
41
35
|
/** Getter for account resource */
|
|
42
36
|
get account() {
|
|
43
37
|
this._account =
|
|
@@ -131,6 +131,8 @@ export interface ParticipantListInstanceCreateOptions {
|
|
|
131
131
|
amdStatusCallbackMethod?: string;
|
|
132
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
133
|
trim?: string;
|
|
134
|
+
/** A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call\\\'s call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call. */
|
|
135
|
+
callToken?: string;
|
|
134
136
|
}
|
|
135
137
|
/**
|
|
136
138
|
* Options to pass to each
|
|
@@ -319,6 +319,8 @@ function ParticipantListInstance(version, accountSid, conferenceSid) {
|
|
|
319
319
|
data["AmdStatusCallbackMethod"] = params["amdStatusCallbackMethod"];
|
|
320
320
|
if (params["trim"] !== undefined)
|
|
321
321
|
data["Trim"] = params["trim"];
|
|
322
|
+
if (params["callToken"] !== undefined)
|
|
323
|
+
data["CallToken"] = params["callToken"];
|
|
322
324
|
const headers = {};
|
|
323
325
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
324
326
|
let operationVersion = version, operationPromise = operationVersion.create({
|
|
@@ -49,7 +49,7 @@ export interface MessageListInstanceCreateOptions {
|
|
|
49
49
|
smartEncoded?: boolean;
|
|
50
50
|
/** Rich actions for non-SMS/MMS channels. Used for [sending location in WhatsApp messages](https://www.twilio.com/docs/whatsapp/message-features#location-messages-with-whatsapp). */
|
|
51
51
|
persistentAction?: Array<string>;
|
|
52
|
-
/** For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/
|
|
52
|
+
/** For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided. */
|
|
53
53
|
shortenUrls?: boolean;
|
|
54
54
|
/** */
|
|
55
55
|
scheduleType?: MessageScheduleType;
|
|
@@ -61,13 +61,13 @@ export interface MessageListInstanceCreateOptions {
|
|
|
61
61
|
contentVariables?: string;
|
|
62
62
|
/** */
|
|
63
63
|
riskCheck?: MessageRiskCheck;
|
|
64
|
-
/** The sender\\\'s Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/
|
|
64
|
+
/** The sender\\\'s Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service\\\'s Sender Pool) or you can provide a specific sender from your Sender Pool. */
|
|
65
65
|
from?: string;
|
|
66
66
|
/** The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service\\\'s Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool. */
|
|
67
67
|
messagingServiceSid?: string;
|
|
68
68
|
/** The text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the `body` contains more than 160 [GSM-7](https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding) characters (or 70 [UCS-2](https://www.twilio.com/docs/glossary/what-is-ucs-2-character-encoding) characters), the message is segmented and charged accordingly. For long `body` text, consider using the [send_as_mms parameter](https://www.twilio.com/blog/mms-for-long-text-messages). */
|
|
69
69
|
body?: string;
|
|
70
|
-
/** The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/
|
|
70
|
+
/** The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/messaging/guides/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply. */
|
|
71
71
|
mediaUrl?: Array<string>;
|
|
72
72
|
/** For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio\\\'s response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources). */
|
|
73
73
|
contentSid?: string;
|
|
@@ -241,7 +241,7 @@ export declare class MessageInstance {
|
|
|
241
241
|
numSegments: string;
|
|
242
242
|
direction: MessageDirection;
|
|
243
243
|
/**
|
|
244
|
-
* The sender\'s phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/
|
|
244
|
+
* The sender\'s phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent.
|
|
245
245
|
*/
|
|
246
246
|
from: string;
|
|
247
247
|
/**
|
|
@@ -130,7 +130,7 @@ export declare class ContentInstance {
|
|
|
130
130
|
*/
|
|
131
131
|
variables: any;
|
|
132
132
|
/**
|
|
133
|
-
* The [Content types](https://www.twilio.com/docs/content
|
|
133
|
+
* The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
|
|
134
134
|
*/
|
|
135
135
|
types: any;
|
|
136
136
|
/**
|
|
@@ -145,7 +145,7 @@ export declare class ContentAndApprovalsInstance {
|
|
|
145
145
|
*/
|
|
146
146
|
variables: any;
|
|
147
147
|
/**
|
|
148
|
-
* The [Content types](https://www.twilio.com/docs/content
|
|
148
|
+
* The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
|
|
149
149
|
*/
|
|
150
150
|
types: any;
|
|
151
151
|
/**
|
|
@@ -147,7 +147,7 @@ export declare class LegacyContentInstance {
|
|
|
147
147
|
*/
|
|
148
148
|
variables: any;
|
|
149
149
|
/**
|
|
150
|
-
* The [Content types](https://www.twilio.com/docs/content
|
|
150
|
+
* The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
|
|
151
151
|
*/
|
|
152
152
|
types: any;
|
|
153
153
|
/**
|
|
@@ -50,7 +50,7 @@ export interface MessageListInstanceCreateOptions {
|
|
|
50
50
|
attributes?: string;
|
|
51
51
|
/** The Media SID to be attached to the new Message. */
|
|
52
52
|
mediaSid?: string;
|
|
53
|
-
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content
|
|
53
|
+
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
|
|
54
54
|
contentSid?: string;
|
|
55
55
|
/** A structurally valid JSON string that contains values to resolve Rich Content template variables. */
|
|
56
56
|
contentVariables?: string;
|
|
@@ -250,7 +250,7 @@ export declare class MessageInstance {
|
|
|
250
250
|
*/
|
|
251
251
|
links: Record<string, string>;
|
|
252
252
|
/**
|
|
253
|
-
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content
|
|
253
|
+
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template.
|
|
254
254
|
*/
|
|
255
255
|
contentSid: string;
|
|
256
256
|
private get _proxy();
|
|
@@ -50,7 +50,7 @@ export interface MessageListInstanceCreateOptions {
|
|
|
50
50
|
attributes?: string;
|
|
51
51
|
/** The Media SID to be attached to the new Message. */
|
|
52
52
|
mediaSid?: string;
|
|
53
|
-
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content
|
|
53
|
+
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
|
|
54
54
|
contentSid?: string;
|
|
55
55
|
/** A structurally valid JSON string that contains values to resolve Rich Content template variables. */
|
|
56
56
|
contentVariables?: string;
|
|
@@ -256,7 +256,7 @@ export declare class MessageInstance {
|
|
|
256
256
|
*/
|
|
257
257
|
links: Record<string, string>;
|
|
258
258
|
/**
|
|
259
|
-
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content
|
|
259
|
+
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template.
|
|
260
260
|
*/
|
|
261
261
|
contentSid: string;
|
|
262
262
|
private get _proxy();
|
package/lib/rest/flexApi/V1.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import { InsightsSettingsAnswerSetsListInstance } from "./v1/insightsSettingsAns
|
|
|
15
15
|
import { InsightsSettingsCommentListInstance } from "./v1/insightsSettingsComment";
|
|
16
16
|
import { InsightsUserRolesListInstance } from "./v1/insightsUserRoles";
|
|
17
17
|
import { InteractionListInstance } from "./v1/interaction";
|
|
18
|
+
import { ProvisioningStatusListInstance } from "./v1/provisioningStatus";
|
|
18
19
|
import { WebChannelListInstance } from "./v1/webChannel";
|
|
19
20
|
export default class V1 extends Version {
|
|
20
21
|
/**
|
|
@@ -53,6 +54,8 @@ export default class V1 extends Version {
|
|
|
53
54
|
protected _insightsUserRoles?: InsightsUserRolesListInstance;
|
|
54
55
|
/** interaction - { Twilio.FlexApi.V1.InteractionListInstance } resource */
|
|
55
56
|
protected _interaction?: InteractionListInstance;
|
|
57
|
+
/** provisioningStatus - { Twilio.FlexApi.V1.ProvisioningStatusListInstance } resource */
|
|
58
|
+
protected _provisioningStatus?: ProvisioningStatusListInstance;
|
|
56
59
|
/** webChannel - { Twilio.FlexApi.V1.WebChannelListInstance } resource */
|
|
57
60
|
protected _webChannel?: WebChannelListInstance;
|
|
58
61
|
/** Getter for assessments resource */
|
|
@@ -85,6 +88,8 @@ export default class V1 extends Version {
|
|
|
85
88
|
get insightsUserRoles(): InsightsUserRolesListInstance;
|
|
86
89
|
/** Getter for interaction resource */
|
|
87
90
|
get interaction(): InteractionListInstance;
|
|
91
|
+
/** Getter for provisioningStatus resource */
|
|
92
|
+
get provisioningStatus(): ProvisioningStatusListInstance;
|
|
88
93
|
/** Getter for webChannel resource */
|
|
89
94
|
get webChannel(): WebChannelListInstance;
|
|
90
95
|
}
|
package/lib/rest/flexApi/V1.js
CHANGED
|
@@ -32,6 +32,7 @@ const insightsSettingsAnswerSets_1 = require("./v1/insightsSettingsAnswerSets");
|
|
|
32
32
|
const insightsSettingsComment_1 = require("./v1/insightsSettingsComment");
|
|
33
33
|
const insightsUserRoles_1 = require("./v1/insightsUserRoles");
|
|
34
34
|
const interaction_1 = require("./v1/interaction");
|
|
35
|
+
const provisioningStatus_1 = require("./v1/provisioningStatus");
|
|
35
36
|
const webChannel_1 = require("./v1/webChannel");
|
|
36
37
|
class V1 extends Version_1.default {
|
|
37
38
|
/**
|
|
@@ -133,6 +134,12 @@ class V1 extends Version_1.default {
|
|
|
133
134
|
this._interaction = this._interaction || (0, interaction_1.InteractionListInstance)(this);
|
|
134
135
|
return this._interaction;
|
|
135
136
|
}
|
|
137
|
+
/** Getter for provisioningStatus resource */
|
|
138
|
+
get provisioningStatus() {
|
|
139
|
+
this._provisioningStatus =
|
|
140
|
+
this._provisioningStatus || (0, provisioningStatus_1.ProvisioningStatusListInstance)(this);
|
|
141
|
+
return this._provisioningStatus;
|
|
142
|
+
}
|
|
136
143
|
/** Getter for webChannel resource */
|
|
137
144
|
get webChannel() {
|
|
138
145
|
this._webChannel = this._webChannel || (0, webChannel_1.WebChannelListInstance)(this);
|
|
@@ -97,6 +97,7 @@ interface ConfigurationResource {
|
|
|
97
97
|
flex_ui_status_report: any;
|
|
98
98
|
agent_conv_end_methods: any;
|
|
99
99
|
citrix_voice_vdi: any;
|
|
100
|
+
offline_config: any;
|
|
100
101
|
}
|
|
101
102
|
export declare class ConfigurationInstance {
|
|
102
103
|
protected _version: V1;
|
|
@@ -288,6 +289,10 @@ export declare class ConfigurationInstance {
|
|
|
288
289
|
* Citrix voice vdi configuration and settings.
|
|
289
290
|
*/
|
|
290
291
|
citrixVoiceVdi: any;
|
|
292
|
+
/**
|
|
293
|
+
* Presence and presence ttl configuration
|
|
294
|
+
*/
|
|
295
|
+
offlineConfig: any;
|
|
291
296
|
private get _proxy();
|
|
292
297
|
/**
|
|
293
298
|
* Fetch a ConfigurationInstance
|
|
@@ -359,6 +364,7 @@ export declare class ConfigurationInstance {
|
|
|
359
364
|
flexUiStatusReport: any;
|
|
360
365
|
agentConvEndMethods: any;
|
|
361
366
|
citrixVoiceVdi: any;
|
|
367
|
+
offlineConfig: any;
|
|
362
368
|
};
|
|
363
369
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
364
370
|
}
|
|
@@ -109,6 +109,7 @@ class ConfigurationInstance {
|
|
|
109
109
|
this.flexUiStatusReport = payload.flex_ui_status_report;
|
|
110
110
|
this.agentConvEndMethods = payload.agent_conv_end_methods;
|
|
111
111
|
this.citrixVoiceVdi = payload.citrix_voice_vdi;
|
|
112
|
+
this.offlineConfig = payload.offline_config;
|
|
112
113
|
this._solution = {};
|
|
113
114
|
}
|
|
114
115
|
get _proxy() {
|
|
@@ -173,6 +174,7 @@ class ConfigurationInstance {
|
|
|
173
174
|
flexUiStatusReport: this.flexUiStatusReport,
|
|
174
175
|
agentConvEndMethods: this.agentConvEndMethods,
|
|
175
176
|
citrixVoiceVdi: this.citrixVoiceVdi,
|
|
177
|
+
offlineConfig: this.offlineConfig,
|
|
176
178
|
};
|
|
177
179
|
}
|
|
178
180
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { inspect, InspectOptions } from "util";
|
|
3
|
+
import V1 from "../V1";
|
|
4
|
+
export type ProvisioningStatusStatus = "active" | "in-progress" | "not-configured" | "failed";
|
|
5
|
+
export interface ProvisioningStatusContext {
|
|
6
|
+
/**
|
|
7
|
+
* Fetch a ProvisioningStatusInstance
|
|
8
|
+
*
|
|
9
|
+
* @param callback - Callback to handle processed record
|
|
10
|
+
*
|
|
11
|
+
* @returns Resolves to processed ProvisioningStatusInstance
|
|
12
|
+
*/
|
|
13
|
+
fetch(callback?: (error: Error | null, item?: ProvisioningStatusInstance) => any): Promise<ProvisioningStatusInstance>;
|
|
14
|
+
/**
|
|
15
|
+
* Provide a user-friendly representation
|
|
16
|
+
*/
|
|
17
|
+
toJSON(): any;
|
|
18
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
19
|
+
}
|
|
20
|
+
export interface ProvisioningStatusContextSolution {
|
|
21
|
+
}
|
|
22
|
+
export declare class ProvisioningStatusContextImpl implements ProvisioningStatusContext {
|
|
23
|
+
protected _version: V1;
|
|
24
|
+
protected _solution: ProvisioningStatusContextSolution;
|
|
25
|
+
protected _uri: string;
|
|
26
|
+
constructor(_version: V1);
|
|
27
|
+
fetch(callback?: (error: Error | null, item?: ProvisioningStatusInstance) => any): Promise<ProvisioningStatusInstance>;
|
|
28
|
+
/**
|
|
29
|
+
* Provide a user-friendly representation
|
|
30
|
+
*
|
|
31
|
+
* @returns Object
|
|
32
|
+
*/
|
|
33
|
+
toJSON(): ProvisioningStatusContextSolution;
|
|
34
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
35
|
+
}
|
|
36
|
+
interface ProvisioningStatusResource {
|
|
37
|
+
status: ProvisioningStatusStatus;
|
|
38
|
+
url: string;
|
|
39
|
+
}
|
|
40
|
+
export declare class ProvisioningStatusInstance {
|
|
41
|
+
protected _version: V1;
|
|
42
|
+
protected _solution: ProvisioningStatusContextSolution;
|
|
43
|
+
protected _context?: ProvisioningStatusContext;
|
|
44
|
+
constructor(_version: V1, payload: ProvisioningStatusResource);
|
|
45
|
+
status: ProvisioningStatusStatus;
|
|
46
|
+
/**
|
|
47
|
+
* The absolute URL of the resource.
|
|
48
|
+
*/
|
|
49
|
+
url: string;
|
|
50
|
+
private get _proxy();
|
|
51
|
+
/**
|
|
52
|
+
* Fetch a ProvisioningStatusInstance
|
|
53
|
+
*
|
|
54
|
+
* @param callback - Callback to handle processed record
|
|
55
|
+
*
|
|
56
|
+
* @returns Resolves to processed ProvisioningStatusInstance
|
|
57
|
+
*/
|
|
58
|
+
fetch(callback?: (error: Error | null, item?: ProvisioningStatusInstance) => any): Promise<ProvisioningStatusInstance>;
|
|
59
|
+
/**
|
|
60
|
+
* Provide a user-friendly representation
|
|
61
|
+
*
|
|
62
|
+
* @returns Object
|
|
63
|
+
*/
|
|
64
|
+
toJSON(): {
|
|
65
|
+
status: ProvisioningStatusStatus;
|
|
66
|
+
url: string;
|
|
67
|
+
};
|
|
68
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
69
|
+
}
|
|
70
|
+
export interface ProvisioningStatusSolution {
|
|
71
|
+
}
|
|
72
|
+
export interface ProvisioningStatusListInstance {
|
|
73
|
+
_version: V1;
|
|
74
|
+
_solution: ProvisioningStatusSolution;
|
|
75
|
+
_uri: string;
|
|
76
|
+
(): ProvisioningStatusContext;
|
|
77
|
+
get(): ProvisioningStatusContext;
|
|
78
|
+
/**
|
|
79
|
+
* Provide a user-friendly representation
|
|
80
|
+
*/
|
|
81
|
+
toJSON(): any;
|
|
82
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
83
|
+
}
|
|
84
|
+
export declare function ProvisioningStatusListInstance(version: V1): ProvisioningStatusListInstance;
|
|
85
|
+
export {};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
6
|
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
7
|
*
|
|
8
|
-
* Twilio -
|
|
8
|
+
* Twilio - Flex
|
|
9
9
|
* This is the public Twilio REST API.
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.ProvisioningStatusListInstance = exports.ProvisioningStatusInstance = exports.ProvisioningStatusContextImpl = void 0;
|
|
17
17
|
const util_1 = require("util");
|
|
18
18
|
const deserialize = require("../../../base/deserialize");
|
|
19
19
|
const serialize = require("../../../base/serialize");
|
|
20
|
-
class
|
|
20
|
+
class ProvisioningStatusContextImpl {
|
|
21
21
|
constructor(_version) {
|
|
22
22
|
this._version = _version;
|
|
23
23
|
this._solution = {};
|
|
24
|
-
this._uri = `/
|
|
24
|
+
this._uri = `/account/provision/status`;
|
|
25
25
|
}
|
|
26
26
|
fetch(callback) {
|
|
27
27
|
const instance = this;
|
|
@@ -29,7 +29,7 @@ class OauthContextImpl {
|
|
|
29
29
|
uri: instance._uri,
|
|
30
30
|
method: "get",
|
|
31
31
|
});
|
|
32
|
-
operationPromise = operationPromise.then((payload) => new
|
|
32
|
+
operationPromise = operationPromise.then((payload) => new ProvisioningStatusInstance(operationVersion, payload));
|
|
33
33
|
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
34
34
|
return operationPromise;
|
|
35
35
|
}
|
|
@@ -45,24 +45,25 @@ class OauthContextImpl {
|
|
|
45
45
|
return (0, util_1.inspect)(this.toJSON(), options);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
exports.
|
|
49
|
-
class
|
|
48
|
+
exports.ProvisioningStatusContextImpl = ProvisioningStatusContextImpl;
|
|
49
|
+
class ProvisioningStatusInstance {
|
|
50
50
|
constructor(_version, payload) {
|
|
51
51
|
this._version = _version;
|
|
52
|
-
this.
|
|
52
|
+
this.status = payload.status;
|
|
53
53
|
this.url = payload.url;
|
|
54
54
|
this._solution = {};
|
|
55
55
|
}
|
|
56
56
|
get _proxy() {
|
|
57
|
-
this._context =
|
|
57
|
+
this._context =
|
|
58
|
+
this._context || new ProvisioningStatusContextImpl(this._version);
|
|
58
59
|
return this._context;
|
|
59
60
|
}
|
|
60
61
|
/**
|
|
61
|
-
* Fetch a
|
|
62
|
+
* Fetch a ProvisioningStatusInstance
|
|
62
63
|
*
|
|
63
64
|
* @param callback - Callback to handle processed record
|
|
64
65
|
*
|
|
65
|
-
* @returns Resolves to processed
|
|
66
|
+
* @returns Resolves to processed ProvisioningStatusInstance
|
|
66
67
|
*/
|
|
67
68
|
fetch(callback) {
|
|
68
69
|
return this._proxy.fetch(callback);
|
|
@@ -74,7 +75,7 @@ class OauthInstance {
|
|
|
74
75
|
*/
|
|
75
76
|
toJSON() {
|
|
76
77
|
return {
|
|
77
|
-
|
|
78
|
+
status: this.status,
|
|
78
79
|
url: this.url,
|
|
79
80
|
};
|
|
80
81
|
}
|
|
@@ -82,11 +83,11 @@ class OauthInstance {
|
|
|
82
83
|
return (0, util_1.inspect)(this.toJSON(), options);
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
|
-
exports.
|
|
86
|
-
function
|
|
86
|
+
exports.ProvisioningStatusInstance = ProvisioningStatusInstance;
|
|
87
|
+
function ProvisioningStatusListInstance(version) {
|
|
87
88
|
const instance = (() => instance.get());
|
|
88
89
|
instance.get = function get() {
|
|
89
|
-
return new
|
|
90
|
+
return new ProvisioningStatusContextImpl(version);
|
|
90
91
|
};
|
|
91
92
|
instance._version = version;
|
|
92
93
|
instance._solution = {};
|
|
@@ -99,4 +100,4 @@ function OauthListInstance(version) {
|
|
|
99
100
|
};
|
|
100
101
|
return instance;
|
|
101
102
|
}
|
|
102
|
-
exports.
|
|
103
|
+
exports.ProvisioningStatusListInstance = ProvisioningStatusListInstance;
|
|
@@ -119,9 +119,6 @@ export declare class AnnotationInstance {
|
|
|
119
119
|
* Incident or support ticket associated with this call. The `incident` property is of type string with a maximum character limit of 100. Twilio does not treat this field as PII, so no PII should be included in `incident`.
|
|
120
120
|
*/
|
|
121
121
|
incident: string;
|
|
122
|
-
/**
|
|
123
|
-
* The URL of this resource.
|
|
124
|
-
*/
|
|
125
122
|
url: string;
|
|
126
123
|
private get _proxy();
|
|
127
124
|
/**
|
|
@@ -12,7 +12,7 @@ export interface ServiceContextUpdateOptions {
|
|
|
12
12
|
ifMatch?: string;
|
|
13
13
|
/** Instructs the Speech Recognition service to automatically transcribe all recordings made on the account. */
|
|
14
14
|
autoTranscribe?: boolean;
|
|
15
|
-
/** Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine
|
|
15
|
+
/** 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. */
|
|
16
16
|
dataLogging?: boolean;
|
|
17
17
|
/** A human readable description of this resource, up to 64 characters. */
|
|
18
18
|
friendlyName?: string;
|
|
@@ -37,7 +37,7 @@ export interface ServiceListInstanceCreateOptions {
|
|
|
37
37
|
uniqueName: string;
|
|
38
38
|
/** Instructs the Speech Recognition service to automatically transcribe all recordings made on the account. */
|
|
39
39
|
autoTranscribe?: boolean;
|
|
40
|
-
/** Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine
|
|
40
|
+
/** 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. */
|
|
41
41
|
dataLogging?: boolean;
|
|
42
42
|
/** A human readable description of this resource, up to 64 characters. */
|
|
43
43
|
friendlyName?: string;
|
|
@@ -186,7 +186,7 @@ export declare class ServiceInstance {
|
|
|
186
186
|
*/
|
|
187
187
|
autoTranscribe: boolean;
|
|
188
188
|
/**
|
|
189
|
-
* Data logging allows Twilio to improve the quality of the speech recognition through using customer data to refine
|
|
189
|
+
* 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.
|
|
190
190
|
*/
|
|
191
191
|
dataLogging: boolean;
|
|
192
192
|
/**
|