twilio 5.3.1 → 5.3.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/lib/base/RequestClient.d.ts +1 -0
- package/lib/rest/Preview.d.ts +0 -5
- package/lib/rest/Preview.js +0 -7
- package/lib/rest/PreviewBase.d.ts +0 -3
- package/lib/rest/PreviewBase.js +0 -6
- package/lib/rest/accounts/V1.d.ts +10 -0
- package/lib/rest/accounts/V1.js +12 -0
- package/lib/rest/accounts/v1/bulkConsents.d.ts +53 -0
- package/lib/rest/accounts/v1/bulkConsents.js +74 -0
- package/lib/rest/accounts/v1/bulkContacts.d.ts +53 -0
- package/lib/rest/accounts/v1/bulkContacts.js +74 -0
- package/lib/rest/assistants/v1/assistant/assistantsKnowledge.d.ts +260 -0
- package/lib/rest/{preview/deployed_devices/fleet/key.js → assistants/v1/assistant/assistantsKnowledge.js} +62 -116
- package/lib/rest/assistants/v1/assistant/assistantsTool.d.ts +266 -0
- package/lib/rest/{preview/deployed_devices/fleet/deployment.js → assistants/v1/assistant/assistantsTool.js} +64 -112
- package/lib/rest/assistants/v1/assistant/message.d.ts +112 -0
- package/lib/rest/assistants/v1/assistant/message.js +90 -0
- package/lib/rest/assistants/v1/assistant.d.ts +38 -0
- package/lib/rest/assistants/v1/assistant.js +40 -0
- package/lib/rest/assistants/v1/knowledge/knowledgeStatus.d.ts +101 -0
- package/lib/rest/assistants/v1/knowledge/knowledgeStatus.js +115 -0
- package/lib/rest/assistants/v1/knowledge.d.ts +14 -0
- package/lib/rest/assistants/v1/knowledge.js +15 -0
- package/lib/rest/assistants/v1/tool.d.ts +67 -0
- package/lib/rest/assistants/v1/tool.js +28 -1
- package/lib/rest/iam/V1.d.ts +5 -5
- package/lib/rest/iam/V1.js +5 -5
- package/lib/rest/iam/v1/{newApiKey.d.ts → key.d.ts} +14 -14
- package/lib/rest/iam/v1/{newApiKey.js → key.js} +6 -6
- package/lib/rest/numbers/V1.d.ts +5 -5
- package/lib/rest/numbers/V1.js +6 -8
- package/lib/rest/numbers/v1/portingPortability.d.ts +2 -0
- package/lib/rest/numbers/v1/portingPortability.js +2 -0
- 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/serverless/v1/service/environment/deployment.d.ts +2 -0
- package/lib/rest/serverless/v1/service/environment/deployment.js +2 -0
- package/lib/rest/taskrouter/v1/workspace/task.d.ts +2 -2
- 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/verificationCheck.d.ts +2 -0
- package/lib/rest/verify/v2/service/verificationCheck.js +2 -0
- package/lib/webhooks/webhooks.d.ts +1 -0
- package/package.json +1 -1
- package/lib/rest/preview/DeployedDevices.d.ts +0 -15
- package/lib/rest/preview/DeployedDevices.js +0 -36
- package/lib/rest/preview/deployed_devices/fleet/certificate.d.ts +0 -324
- package/lib/rest/preview/deployed_devices/fleet/certificate.js +0 -269
- package/lib/rest/preview/deployed_devices/fleet/deployment.d.ts +0 -318
- package/lib/rest/preview/deployed_devices/fleet/device.d.ts +0 -358
- package/lib/rest/preview/deployed_devices/fleet/device.js +0 -284
- package/lib/rest/preview/deployed_devices/fleet/key.d.ts +0 -330
- package/lib/rest/preview/deployed_devices/fleet.d.ts +0 -352
- package/lib/rest/preview/deployed_devices/fleet.js +0 -307
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.KeyInstance = exports.KeyListInstance = void 0;
|
|
17
17
|
const util_1 = require("util");
|
|
18
18
|
const deserialize = require("../../../base/deserialize");
|
|
19
19
|
const serialize = require("../../../base/serialize");
|
|
20
|
-
function
|
|
20
|
+
function KeyListInstance(version) {
|
|
21
21
|
const instance = {};
|
|
22
22
|
instance._version = version;
|
|
23
23
|
instance._solution = {};
|
|
@@ -45,7 +45,7 @@ function NewApiKeyListInstance(version) {
|
|
|
45
45
|
data,
|
|
46
46
|
headers,
|
|
47
47
|
});
|
|
48
|
-
operationPromise = operationPromise.then((payload) => new
|
|
48
|
+
operationPromise = operationPromise.then((payload) => new KeyInstance(operationVersion, payload));
|
|
49
49
|
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
50
50
|
return operationPromise;
|
|
51
51
|
};
|
|
@@ -57,8 +57,8 @@ function NewApiKeyListInstance(version) {
|
|
|
57
57
|
};
|
|
58
58
|
return instance;
|
|
59
59
|
}
|
|
60
|
-
exports.
|
|
61
|
-
class
|
|
60
|
+
exports.KeyListInstance = KeyListInstance;
|
|
61
|
+
class KeyInstance {
|
|
62
62
|
constructor(_version, payload) {
|
|
63
63
|
this._version = _version;
|
|
64
64
|
this.sid = payload.sid;
|
|
@@ -87,4 +87,4 @@ class NewApiKeyInstance {
|
|
|
87
87
|
return (0, util_1.inspect)(this.toJSON(), options);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
exports.
|
|
90
|
+
exports.KeyInstance = KeyInstance;
|
package/lib/rest/numbers/V1.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ import { PortingPortInPhoneNumberListInstance } from "./v1/portingPortInPhoneNum
|
|
|
7
7
|
import { PortingPortabilityListInstance } from "./v1/portingPortability";
|
|
8
8
|
import { PortingWebhookConfigurationListInstance } from "./v1/portingWebhookConfiguration";
|
|
9
9
|
import { PortingWebhookConfigurationDeleteListInstance } from "./v1/portingWebhookConfigurationDelete";
|
|
10
|
-
import { PortingWebhookConfigurationFetchListInstance } from "./v1/portingWebhookConfigurationFetch";
|
|
11
10
|
import { SigningRequestConfigurationListInstance } from "./v1/signingRequestConfiguration";
|
|
11
|
+
import { WebhookListInstance } from "./v1/webhook";
|
|
12
12
|
export default class V1 extends Version {
|
|
13
13
|
/**
|
|
14
14
|
* Initialize the V1 version of Numbers
|
|
@@ -30,10 +30,10 @@ export default class V1 extends Version {
|
|
|
30
30
|
protected _portingWebhookConfigurations?: PortingWebhookConfigurationListInstance;
|
|
31
31
|
/** portingWebhookConfigurationsDelete - { Twilio.Numbers.V1.PortingWebhookConfigurationDeleteListInstance } resource */
|
|
32
32
|
protected _portingWebhookConfigurationsDelete?: PortingWebhookConfigurationDeleteListInstance;
|
|
33
|
-
/** portingWebhookConfigurationFetch - { Twilio.Numbers.V1.PortingWebhookConfigurationFetchListInstance } resource */
|
|
34
|
-
protected _portingWebhookConfigurationFetch?: PortingWebhookConfigurationFetchListInstance;
|
|
35
33
|
/** signingRequestConfigurations - { Twilio.Numbers.V1.SigningRequestConfigurationListInstance } resource */
|
|
36
34
|
protected _signingRequestConfigurations?: SigningRequestConfigurationListInstance;
|
|
35
|
+
/** webhook - { Twilio.Numbers.V1.WebhookListInstance } resource */
|
|
36
|
+
protected _webhook?: WebhookListInstance;
|
|
37
37
|
/** Getter for bulkEligibilities resource */
|
|
38
38
|
get bulkEligibilities(): BulkEligibilityListInstance;
|
|
39
39
|
/** Getter for eligibilities resource */
|
|
@@ -48,8 +48,8 @@ export default class V1 extends Version {
|
|
|
48
48
|
get portingWebhookConfigurations(): PortingWebhookConfigurationListInstance;
|
|
49
49
|
/** Getter for portingWebhookConfigurationsDelete resource */
|
|
50
50
|
get portingWebhookConfigurationsDelete(): PortingWebhookConfigurationDeleteListInstance;
|
|
51
|
-
/** Getter for portingWebhookConfigurationFetch resource */
|
|
52
|
-
get portingWebhookConfigurationFetch(): PortingWebhookConfigurationFetchListInstance;
|
|
53
51
|
/** Getter for signingRequestConfigurations resource */
|
|
54
52
|
get signingRequestConfigurations(): SigningRequestConfigurationListInstance;
|
|
53
|
+
/** Getter for webhook resource */
|
|
54
|
+
get webhook(): WebhookListInstance;
|
|
55
55
|
}
|
package/lib/rest/numbers/V1.js
CHANGED
|
@@ -24,8 +24,8 @@ const portingPortInPhoneNumber_1 = require("./v1/portingPortInPhoneNumber");
|
|
|
24
24
|
const portingPortability_1 = require("./v1/portingPortability");
|
|
25
25
|
const portingWebhookConfiguration_1 = require("./v1/portingWebhookConfiguration");
|
|
26
26
|
const portingWebhookConfigurationDelete_1 = require("./v1/portingWebhookConfigurationDelete");
|
|
27
|
-
const portingWebhookConfigurationFetch_1 = require("./v1/portingWebhookConfigurationFetch");
|
|
28
27
|
const signingRequestConfiguration_1 = require("./v1/signingRequestConfiguration");
|
|
28
|
+
const webhook_1 = require("./v1/webhook");
|
|
29
29
|
class V1 extends Version_1.default {
|
|
30
30
|
/**
|
|
31
31
|
* Initialize the V1 version of Numbers
|
|
@@ -79,13 +79,6 @@ class V1 extends Version_1.default {
|
|
|
79
79
|
(0, portingWebhookConfigurationDelete_1.PortingWebhookConfigurationDeleteListInstance)(this);
|
|
80
80
|
return this._portingWebhookConfigurationsDelete;
|
|
81
81
|
}
|
|
82
|
-
/** Getter for portingWebhookConfigurationFetch resource */
|
|
83
|
-
get portingWebhookConfigurationFetch() {
|
|
84
|
-
this._portingWebhookConfigurationFetch =
|
|
85
|
-
this._portingWebhookConfigurationFetch ||
|
|
86
|
-
(0, portingWebhookConfigurationFetch_1.PortingWebhookConfigurationFetchListInstance)(this);
|
|
87
|
-
return this._portingWebhookConfigurationFetch;
|
|
88
|
-
}
|
|
89
82
|
/** Getter for signingRequestConfigurations resource */
|
|
90
83
|
get signingRequestConfigurations() {
|
|
91
84
|
this._signingRequestConfigurations =
|
|
@@ -93,5 +86,10 @@ class V1 extends Version_1.default {
|
|
|
93
86
|
(0, signingRequestConfiguration_1.SigningRequestConfigurationListInstance)(this);
|
|
94
87
|
return this._signingRequestConfigurations;
|
|
95
88
|
}
|
|
89
|
+
/** Getter for webhook resource */
|
|
90
|
+
get webhook() {
|
|
91
|
+
this._webhook = this._webhook || (0, webhook_1.WebhookListInstance)(this);
|
|
92
|
+
return this._webhook;
|
|
93
|
+
}
|
|
96
94
|
}
|
|
97
95
|
exports.default = V1;
|
|
@@ -8,6 +8,8 @@ export type PortingPortabilityNumberType = "LOCAL" | "UNKNOWN" | "MOBILE" | "TOL
|
|
|
8
8
|
export interface PortingPortabilityContextFetchOptions {
|
|
9
9
|
/** Account Sid to which the number will be ported. This can be used to determine if a sub account already has the number in its inventory or a different sub account. If this is not provided, the authenticated account will be assumed to be the target account. */
|
|
10
10
|
targetAccountSid?: string;
|
|
11
|
+
/** Address Sid of customer to which the number will be ported. */
|
|
12
|
+
addressSid?: string;
|
|
11
13
|
}
|
|
12
14
|
export interface PortingPortabilityContext {
|
|
13
15
|
/**
|
|
@@ -38,6 +38,8 @@ class PortingPortabilityContextImpl {
|
|
|
38
38
|
let data = {};
|
|
39
39
|
if (params["targetAccountSid"] !== undefined)
|
|
40
40
|
data["TargetAccountSid"] = params["targetAccountSid"];
|
|
41
|
+
if (params["addressSid"] !== undefined)
|
|
42
|
+
data["AddressSid"] = params["addressSid"];
|
|
41
43
|
const headers = {};
|
|
42
44
|
const instance = this;
|
|
43
45
|
let operationVersion = instance._version, operationPromise = operationVersion.fetch({
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../V1";
|
|
4
|
-
export interface
|
|
4
|
+
export interface WebhookSolution {
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface WebhookListInstance {
|
|
7
7
|
_version: V1;
|
|
8
|
-
_solution:
|
|
8
|
+
_solution: WebhookSolution;
|
|
9
9
|
_uri: string;
|
|
10
10
|
/**
|
|
11
|
-
* Fetch a
|
|
11
|
+
* Fetch a WebhookInstance
|
|
12
12
|
*
|
|
13
13
|
* @param callback - Callback to handle processed record
|
|
14
14
|
*
|
|
15
|
-
* @returns Resolves to processed
|
|
15
|
+
* @returns Resolves to processed WebhookInstance
|
|
16
16
|
*/
|
|
17
|
-
fetch(callback?: (error: Error | null, item?:
|
|
17
|
+
fetch(callback?: (error: Error | null, item?: WebhookInstance) => any): Promise<WebhookInstance>;
|
|
18
18
|
/**
|
|
19
19
|
* Provide a user-friendly representation
|
|
20
20
|
*/
|
|
21
21
|
toJSON(): any;
|
|
22
22
|
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
23
23
|
}
|
|
24
|
-
export declare function
|
|
25
|
-
interface
|
|
24
|
+
export declare function WebhookListInstance(version: V1): WebhookListInstance;
|
|
25
|
+
interface WebhookResource {
|
|
26
26
|
url: string;
|
|
27
27
|
port_in_target_url: string;
|
|
28
28
|
port_out_target_url: string;
|
|
@@ -30,9 +30,9 @@ interface PortingWebhookConfigurationFetchResource {
|
|
|
30
30
|
port_in_target_date_created: Date;
|
|
31
31
|
port_out_target_date_created: Date;
|
|
32
32
|
}
|
|
33
|
-
export declare class
|
|
33
|
+
export declare class WebhookInstance {
|
|
34
34
|
protected _version: V1;
|
|
35
|
-
constructor(_version: V1, payload:
|
|
35
|
+
constructor(_version: V1, payload: WebhookResource);
|
|
36
36
|
/**
|
|
37
37
|
* The URL of the webhook configuration request
|
|
38
38
|
*/
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.WebhookInstance = exports.WebhookListInstance = void 0;
|
|
17
17
|
const util_1 = require("util");
|
|
18
18
|
const deserialize = require("../../../base/deserialize");
|
|
19
19
|
const serialize = require("../../../base/serialize");
|
|
20
|
-
function
|
|
20
|
+
function WebhookListInstance(version) {
|
|
21
21
|
const instance = {};
|
|
22
22
|
instance._version = version;
|
|
23
23
|
instance._solution = {};
|
|
@@ -27,7 +27,7 @@ function PortingWebhookConfigurationFetchListInstance(version) {
|
|
|
27
27
|
uri: instance._uri,
|
|
28
28
|
method: "get",
|
|
29
29
|
});
|
|
30
|
-
operationPromise = operationPromise.then((payload) => new
|
|
30
|
+
operationPromise = operationPromise.then((payload) => new WebhookInstance(operationVersion, payload));
|
|
31
31
|
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
32
32
|
return operationPromise;
|
|
33
33
|
};
|
|
@@ -39,8 +39,8 @@ function PortingWebhookConfigurationFetchListInstance(version) {
|
|
|
39
39
|
};
|
|
40
40
|
return instance;
|
|
41
41
|
}
|
|
42
|
-
exports.
|
|
43
|
-
class
|
|
42
|
+
exports.WebhookListInstance = WebhookListInstance;
|
|
43
|
+
class WebhookInstance {
|
|
44
44
|
constructor(_version, payload) {
|
|
45
45
|
this._version = _version;
|
|
46
46
|
this.url = payload.url;
|
|
@@ -69,4 +69,4 @@ class PortingWebhookConfigurationFetchInstance {
|
|
|
69
69
|
return (0, util_1.inspect)(this.toJSON(), options);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
exports.
|
|
72
|
+
exports.WebhookInstance = WebhookInstance;
|
|
@@ -9,6 +9,8 @@ import V1 from "../../../V1";
|
|
|
9
9
|
export interface DeploymentListInstanceCreateOptions {
|
|
10
10
|
/** The SID of the Build for the Deployment. */
|
|
11
11
|
buildSid?: string;
|
|
12
|
+
/** Whether the Deployment is a plugin. */
|
|
13
|
+
isPlugin?: boolean;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* Options to pass to each
|
|
@@ -136,6 +136,8 @@ function DeploymentListInstance(version, serviceSid, environmentSid) {
|
|
|
136
136
|
let data = {};
|
|
137
137
|
if (params["buildSid"] !== undefined)
|
|
138
138
|
data["BuildSid"] = params["buildSid"];
|
|
139
|
+
if (params["isPlugin"] !== undefined)
|
|
140
|
+
data["IsPlugin"] = serialize.bool(params["isPlugin"]);
|
|
139
141
|
const headers = {};
|
|
140
142
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
141
143
|
let operationVersion = version, operationPromise = operationVersion.create({
|
|
@@ -28,7 +28,7 @@ export interface TaskContextUpdateOptions {
|
|
|
28
28
|
priority?: number;
|
|
29
29
|
/** When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel\\\'s SID or its `unique_name`, such as `voice`, `sms`, or `default`. */
|
|
30
30
|
taskChannel?: string;
|
|
31
|
-
/** The task\\\'s new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can\\\'t be in the future. */
|
|
31
|
+
/** The task\\\'s new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can\\\'t be in the future or before the year of 1900. */
|
|
32
32
|
virtualStartTime?: Date;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
@@ -45,7 +45,7 @@ export interface TaskListInstanceCreateOptions {
|
|
|
45
45
|
workflowSid?: string;
|
|
46
46
|
/** A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow\\\'s `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`. */
|
|
47
47
|
attributes?: string;
|
|
48
|
-
/** The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can\\\'t be in the future. */
|
|
48
|
+
/** The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can\\\'t be in the future or before the year of 1900. */
|
|
49
49
|
virtualStartTime?: Date;
|
|
50
50
|
/** A SID of a Worker, Queue, or Workflow to route a Task to */
|
|
51
51
|
routingTarget?: string;
|
|
@@ -45,6 +45,8 @@ export interface VerificationListInstanceCreateOptions {
|
|
|
45
45
|
templateCustomSubstitutions?: string;
|
|
46
46
|
/** Strongly encouraged if using the auto channel. The IP address of the client\\\'s device. If provided, it has to be a valid IPv4 or IPv6 address. */
|
|
47
47
|
deviceIp?: string;
|
|
48
|
+
/** An optional Boolean value to indicate the requirement of sna client token in the SNA URL invocation response for added security. This token must match in the Verification Check request to confirm phone number verification. */
|
|
49
|
+
enableSnaClientToken?: boolean;
|
|
48
50
|
/** */
|
|
49
51
|
riskCheck?: VerificationRiskCheck;
|
|
50
52
|
/** A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. */
|
|
@@ -194,6 +194,8 @@ function VerificationListInstance(version, serviceSid) {
|
|
|
194
194
|
params["templateCustomSubstitutions"];
|
|
195
195
|
if (params["deviceIp"] !== undefined)
|
|
196
196
|
data["DeviceIp"] = params["deviceIp"];
|
|
197
|
+
if (params["enableSnaClientToken"] !== undefined)
|
|
198
|
+
data["EnableSnaClientToken"] = serialize.bool(params["enableSnaClientToken"]);
|
|
197
199
|
if (params["riskCheck"] !== undefined)
|
|
198
200
|
data["RiskCheck"] = params["riskCheck"];
|
|
199
201
|
if (params["tags"] !== undefined)
|
|
@@ -16,6 +16,8 @@ export interface VerificationCheckListInstanceCreateOptions {
|
|
|
16
16
|
amount?: string;
|
|
17
17
|
/** The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled. */
|
|
18
18
|
payee?: string;
|
|
19
|
+
/** A sna client token received in sna url invocation response needs to be passed in Verification Check request and should match to get successful response. */
|
|
20
|
+
snaClientToken?: string;
|
|
19
21
|
}
|
|
20
22
|
export interface VerificationCheckSolution {
|
|
21
23
|
serviceSid: string;
|
|
@@ -45,6 +45,8 @@ function VerificationCheckListInstance(version, serviceSid) {
|
|
|
45
45
|
data["Amount"] = params["amount"];
|
|
46
46
|
if (params["payee"] !== undefined)
|
|
47
47
|
data["Payee"] = params["payee"];
|
|
48
|
+
if (params["snaClientToken"] !== undefined)
|
|
49
|
+
data["SnaClientToken"] = params["snaClientToken"];
|
|
48
50
|
const headers = {};
|
|
49
51
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
50
52
|
let operationVersion = version, operationPromise = operationVersion.create({
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import PreviewBase from "../PreviewBase";
|
|
2
|
-
import Version from "../../base/Version";
|
|
3
|
-
import { FleetListInstance } from "./deployed_devices/fleet";
|
|
4
|
-
export default class DeployedDevices extends Version {
|
|
5
|
-
/**
|
|
6
|
-
* Initialize the DeployedDevices version of Preview
|
|
7
|
-
*
|
|
8
|
-
* @param domain - The Twilio (Twilio.Preview) domain
|
|
9
|
-
*/
|
|
10
|
-
constructor(domain: PreviewBase);
|
|
11
|
-
/** fleets - { Twilio.Preview.DeployedDevices.FleetListInstance } resource */
|
|
12
|
-
protected _fleets?: FleetListInstance;
|
|
13
|
-
/** Getter for fleets resource */
|
|
14
|
-
get fleets(): FleetListInstance;
|
|
15
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This code was generated by
|
|
4
|
-
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
-
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
-
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
-
*
|
|
8
|
-
* Twilio - Preview
|
|
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 fleet_1 = require("./deployed_devices/fleet");
|
|
21
|
-
class DeployedDevices extends Version_1.default {
|
|
22
|
-
/**
|
|
23
|
-
* Initialize the DeployedDevices version of Preview
|
|
24
|
-
*
|
|
25
|
-
* @param domain - The Twilio (Twilio.Preview) domain
|
|
26
|
-
*/
|
|
27
|
-
constructor(domain) {
|
|
28
|
-
super(domain, "DeployedDevices");
|
|
29
|
-
}
|
|
30
|
-
/** Getter for fleets resource */
|
|
31
|
-
get fleets() {
|
|
32
|
-
this._fleets = this._fleets || (0, fleet_1.FleetListInstance)(this);
|
|
33
|
-
return this._fleets;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
exports.default = DeployedDevices;
|