twilio 5.12.2 → 5.13.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 +1 -0
- package/lib/rest/InsightsBase.d.ts +3 -0
- package/lib/rest/InsightsBase.js +5 -0
- package/lib/rest/api/v2010/account/call/payment.d.ts +6 -2
- package/lib/rest/api/v2010/account/call/payment.js +8 -0
- package/lib/rest/api/v2010/account/call/transcription.d.ts +4 -0
- package/lib/rest/api/v2010/account/call/transcription.js +8 -0
- package/lib/rest/api/v2010/account/token.d.ts +1 -0
- package/lib/rest/api/v2010/account/token.js +10 -1
- package/lib/rest/assistants/v1/assistant/feedback.d.ts +1 -0
- package/lib/rest/assistants/v1/assistant/feedback.js +6 -0
- package/lib/rest/assistants/v1/assistant/message.d.ts +1 -0
- package/lib/rest/assistants/v1/assistant/message.js +7 -0
- package/lib/rest/assistants/v1/assistant.d.ts +6 -0
- package/lib/rest/assistants/v1/assistant.js +58 -2
- package/lib/rest/assistants/v1/knowledge.d.ts +3 -0
- package/lib/rest/assistants/v1/knowledge.js +24 -0
- package/lib/rest/assistants/v1/tool.d.ts +4 -0
- package/lib/rest/assistants/v1/tool.js +40 -1
- package/lib/rest/content/v1/content/approvalCreate.d.ts +1 -0
- package/lib/rest/content/v1/content/approvalCreate.js +4 -0
- package/lib/rest/content/v1/content.d.ts +27 -0
- package/lib/rest/content/v1/content.js +171 -0
- package/lib/rest/flexApi/v1/createFlexInstance.d.ts +2 -0
- package/lib/rest/flexApi/v1/createFlexInstance.js +6 -0
- package/lib/rest/iam/v1/oAuthApp.d.ts +4 -0
- package/lib/rest/iam/v1/oAuthApp.js +28 -1
- package/lib/rest/insights/V2.d.ts +21 -0
- package/lib/rest/insights/V2.js +46 -0
- package/lib/rest/insights/v2/inbound.d.ts +436 -0
- package/lib/rest/insights/v2/inbound.js +342 -0
- package/lib/rest/insights/v2/outbound.d.ts +529 -0
- package/lib/rest/insights/v2/outbound.js +392 -0
- package/lib/rest/insights/v2/report.d.ts +783 -0
- package/lib/rest/insights/v2/report.js +550 -0
- package/lib/rest/intelligence/v2/operatorType.d.ts +6 -0
- package/lib/rest/intelligence/v2/operatorType.js +4 -0
- package/lib/rest/knowledge/v1/knowledge.d.ts +3 -0
- package/lib/rest/knowledge/v1/knowledge.js +23 -0
- package/lib/rest/lookups/v2/bucket.d.ts +1 -0
- package/lib/rest/lookups/v2/bucket.js +4 -0
- package/lib/rest/lookups/v2/lookupOverride.d.ts +1 -0
- package/lib/rest/lookups/v2/lookupOverride.js +4 -0
- package/lib/rest/lookups/v2/phoneNumber.d.ts +9 -0
- package/lib/rest/lookups/v2/phoneNumber.js +94 -8
- package/lib/rest/lookups/v2/query.d.ts +15 -0
- package/lib/rest/lookups/v2/query.js +113 -1
- package/lib/rest/lookups/v2/rateLimit.d.ts +1 -0
- package/lib/rest/lookups/v2/rateLimit.js +11 -1
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.d.ts +2 -0
- package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.js +13 -1
- package/lib/rest/marketplace/v1/referralConversion.d.ts +1 -0
- package/lib/rest/marketplace/v1/referralConversion.js +3 -0
- package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +78 -5
- package/lib/rest/messaging/v1/service/usAppToPerson.js +60 -20
- package/lib/rest/messaging/v1/tollfreeVerification.d.ts +26 -24
- package/lib/rest/messaging/v2/channelsSender.d.ts +18 -0
- package/lib/rest/messaging/v2/channelsSender.js +115 -6
- package/lib/rest/numbers/V1.d.ts +8 -0
- package/lib/rest/numbers/V1.js +12 -0
- package/lib/rest/numbers/v1/embeddedSession.d.ts +84 -0
- package/lib/rest/numbers/v1/embeddedSession.js +115 -0
- package/lib/rest/numbers/v1/portingPortIn.d.ts +5 -0
- package/lib/rest/numbers/v1/portingPortIn.js +67 -2
- package/lib/rest/numbers/v1/senderIdRegistration.d.ts +181 -0
- package/lib/rest/numbers/v1/senderIdRegistration.js +146 -0
- package/lib/rest/numbers/v2/application.d.ts +194 -4
- package/lib/rest/numbers/v2/application.js +188 -3
- package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +1 -0
- package/lib/rest/previewIam/versionless/organization/roleAssignment.js +5 -0
- package/lib/rest/previewIam/versionless/organization/user.d.ts +69 -0
- package/lib/rest/previewIam/versionless/organization/user.js +117 -4
- package/lib/rest/pricing/v1/messaging/country.d.ts +3 -0
- package/lib/rest/pricing/v1/messaging/country.js +26 -2
- package/lib/rest/pricing/v1/phoneNumber/country.d.ts +1 -0
- package/lib/rest/pricing/v1/phoneNumber/country.js +10 -1
- package/lib/rest/pricing/v1/voice/country.d.ts +2 -0
- package/lib/rest/pricing/v1/voice/country.js +21 -2
- package/lib/rest/pricing/v1/voice/number.d.ts +2 -0
- package/lib/rest/pricing/v1/voice/number.js +19 -2
- package/lib/rest/pricing/v2/country.d.ts +2 -0
- package/lib/rest/pricing/v2/country.js +22 -2
- package/lib/rest/pricing/v2/number.d.ts +2 -0
- package/lib/rest/pricing/v2/number.js +22 -2
- package/lib/rest/pricing/v2/voice/country.d.ts +2 -0
- package/lib/rest/pricing/v2/voice/country.js +22 -2
- package/lib/rest/pricing/v2/voice/number.d.ts +2 -0
- package/lib/rest/pricing/v2/voice/number.js +20 -2
- package/lib/rest/studio/v2/flow/execution.d.ts +12 -0
- package/lib/rest/studio/v2/flow/execution.js +4 -0
- package/lib/rest/studio/v2/flow/flowRevision.d.ts +6 -0
- package/lib/rest/studio/v2/flow/flowRevision.js +2 -0
- package/lib/rest/studio/v2/flow.d.ts +6 -0
- package/lib/rest/studio/v2/flow.js +2 -0
- package/lib/rest/verify/v2/service/approveChallenge.d.ts +2 -0
- package/lib/rest/verify/v2/service/approveChallenge.js +13 -0
- package/lib/rest/verify/v2/service/newChallenge.d.ts +1 -0
- package/lib/rest/verify/v2/service/newChallenge.js +4 -0
- package/lib/rest/verify/v2/service/newFactor.d.ts +3 -0
- package/lib/rest/verify/v2/service/newFactor.js +16 -0
- package/lib/rest/verify/v2/service/newVerifyFactor.d.ts +2 -0
- package/lib/rest/verify/v2/service/newVerifyFactor.js +12 -0
- package/lib/rest/verify/v2/service/verification.d.ts +1 -1
- package/lib/rest/video/v1/room/participant/subscribeRules.d.ts +1 -0
- package/lib/rest/video/v1/room/participant/subscribeRules.js +12 -1
- package/lib/rest/video/v1/room/recordingRules.d.ts +1 -0
- package/lib/rest/video/v1/room/recordingRules.js +11 -1
- package/package.json +4 -4
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { inspect, InspectOptions } from "util";
|
|
2
|
+
import V1 from "../V1";
|
|
3
|
+
import { ApiResponse } from "../../../base/ApiResponse";
|
|
4
|
+
export declare class NumbersV1CreateEmbeddedRegistrationRequest {
|
|
5
|
+
/**
|
|
6
|
+
* The regulation for this registration.
|
|
7
|
+
*/
|
|
8
|
+
"regulationId": string;
|
|
9
|
+
/**
|
|
10
|
+
* The regulation version.
|
|
11
|
+
*/
|
|
12
|
+
"regulationVersion": number;
|
|
13
|
+
/**
|
|
14
|
+
* Human-readable name for the registration.
|
|
15
|
+
*/
|
|
16
|
+
"friendlyName": string;
|
|
17
|
+
/**
|
|
18
|
+
* Email address for registration status notifications.
|
|
19
|
+
*/
|
|
20
|
+
"statusNotificationEmail"?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The URL of this resource.
|
|
23
|
+
*/
|
|
24
|
+
"statusCallbackUrl"?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Additional comments about the registration.
|
|
27
|
+
*/
|
|
28
|
+
"comments"?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Theme ID for the Compliance Embeddable UI.
|
|
31
|
+
*/
|
|
32
|
+
"themeSetId"?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Registration data organized by section (alphanumericSender, business, useCase, authorizedRepresentative, officer, businessAddress).
|
|
35
|
+
*/
|
|
36
|
+
"data": {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
};
|
|
39
|
+
constructor(payload: any);
|
|
40
|
+
}
|
|
41
|
+
export declare class NumbersV1EmbeddedSession {
|
|
42
|
+
/**
|
|
43
|
+
* Session ID for the compliance embeddable.
|
|
44
|
+
*/
|
|
45
|
+
"sessionId": string;
|
|
46
|
+
/**
|
|
47
|
+
* Ephemeral session token for the compliance embeddable.
|
|
48
|
+
*/
|
|
49
|
+
"sessionToken": string;
|
|
50
|
+
constructor(payload: any);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Options to pass to create a SenderIdRegistrationInstance
|
|
54
|
+
*/
|
|
55
|
+
export interface SenderIdRegistrationListInstanceCreateOptions {
|
|
56
|
+
/** */
|
|
57
|
+
numbersV1CreateEmbeddedRegistrationRequest: NumbersV1CreateEmbeddedRegistrationRequest;
|
|
58
|
+
}
|
|
59
|
+
export interface SenderIdRegistrationSolution {
|
|
60
|
+
}
|
|
61
|
+
export interface SenderIdRegistrationListInstance {
|
|
62
|
+
_version: V1;
|
|
63
|
+
_solution: SenderIdRegistrationSolution;
|
|
64
|
+
_uri: string;
|
|
65
|
+
/**
|
|
66
|
+
* Create a SenderIdRegistrationInstance
|
|
67
|
+
*
|
|
68
|
+
* @param params - Body for request
|
|
69
|
+
* @param headers - header params for request
|
|
70
|
+
* @param callback - Callback to handle processed record
|
|
71
|
+
*
|
|
72
|
+
* @returns Resolves to processed SenderIdRegistrationInstance
|
|
73
|
+
*/
|
|
74
|
+
create(params: NumbersV1CreateEmbeddedRegistrationRequest, headers?: any, callback?: (error: Error | null, item?: SenderIdRegistrationInstance) => any): Promise<SenderIdRegistrationInstance>;
|
|
75
|
+
/**
|
|
76
|
+
* Create a SenderIdRegistrationInstance and return HTTP info
|
|
77
|
+
*
|
|
78
|
+
* @param params - Body for request
|
|
79
|
+
* @param headers - header params for request
|
|
80
|
+
* @param callback - Callback to handle processed record
|
|
81
|
+
*
|
|
82
|
+
* @returns Resolves to processed SenderIdRegistrationInstance with HTTP metadata
|
|
83
|
+
*/
|
|
84
|
+
createWithHttpInfo(params: NumbersV1CreateEmbeddedRegistrationRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<SenderIdRegistrationInstance>) => any): Promise<ApiResponse<SenderIdRegistrationInstance>>;
|
|
85
|
+
/**
|
|
86
|
+
* Provide a user-friendly representation
|
|
87
|
+
*/
|
|
88
|
+
toJSON(): any;
|
|
89
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
90
|
+
}
|
|
91
|
+
export declare function SenderIdRegistrationListInstance(version: V1): SenderIdRegistrationListInstance;
|
|
92
|
+
interface SenderIdRegistrationResource {
|
|
93
|
+
id: string;
|
|
94
|
+
regulationId: string;
|
|
95
|
+
regulationVersion: number;
|
|
96
|
+
friendlyName: string;
|
|
97
|
+
status: string;
|
|
98
|
+
statusNotificationEmail: string;
|
|
99
|
+
statusCallbackUrl: string;
|
|
100
|
+
comments: string;
|
|
101
|
+
embeddedSession: NumbersV1EmbeddedSession;
|
|
102
|
+
data: {
|
|
103
|
+
[key: string]: any;
|
|
104
|
+
};
|
|
105
|
+
dateCreated: Date;
|
|
106
|
+
dateUpdated: Date;
|
|
107
|
+
}
|
|
108
|
+
export declare class SenderIdRegistrationInstance {
|
|
109
|
+
protected _version: V1;
|
|
110
|
+
constructor(_version: V1, payload: SenderIdRegistrationResource);
|
|
111
|
+
/**
|
|
112
|
+
* Registration identifier (BU-prefixed).
|
|
113
|
+
*/
|
|
114
|
+
id: string;
|
|
115
|
+
/**
|
|
116
|
+
* The regulation ID for this registration.
|
|
117
|
+
*/
|
|
118
|
+
regulationId: string;
|
|
119
|
+
/**
|
|
120
|
+
* The regulation version.
|
|
121
|
+
*/
|
|
122
|
+
regulationVersion: number;
|
|
123
|
+
/**
|
|
124
|
+
* The friendly name provided in the request.
|
|
125
|
+
*/
|
|
126
|
+
friendlyName: string;
|
|
127
|
+
/**
|
|
128
|
+
* Registration status. Always DRAFT on creation.
|
|
129
|
+
*/
|
|
130
|
+
status: string;
|
|
131
|
+
/**
|
|
132
|
+
* Email address for status notifications.
|
|
133
|
+
*/
|
|
134
|
+
statusNotificationEmail: string;
|
|
135
|
+
/**
|
|
136
|
+
* Callback URL for status webhooks.
|
|
137
|
+
*/
|
|
138
|
+
statusCallbackUrl: string;
|
|
139
|
+
/**
|
|
140
|
+
* Additional comments.
|
|
141
|
+
*/
|
|
142
|
+
comments: string;
|
|
143
|
+
embeddedSession: NumbersV1EmbeddedSession;
|
|
144
|
+
/**
|
|
145
|
+
* Registration data echoed from the request.
|
|
146
|
+
*/
|
|
147
|
+
data: {
|
|
148
|
+
[key: string]: any;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Timestamp of creation.
|
|
152
|
+
*/
|
|
153
|
+
dateCreated: Date;
|
|
154
|
+
/**
|
|
155
|
+
* Timestamp of last update.
|
|
156
|
+
*/
|
|
157
|
+
dateUpdated: Date;
|
|
158
|
+
/**
|
|
159
|
+
* Provide a user-friendly representation
|
|
160
|
+
*
|
|
161
|
+
* @returns Object
|
|
162
|
+
*/
|
|
163
|
+
toJSON(): {
|
|
164
|
+
id: string;
|
|
165
|
+
regulationId: string;
|
|
166
|
+
regulationVersion: number;
|
|
167
|
+
friendlyName: string;
|
|
168
|
+
status: string;
|
|
169
|
+
statusNotificationEmail: string;
|
|
170
|
+
statusCallbackUrl: string;
|
|
171
|
+
comments: string;
|
|
172
|
+
embeddedSession: NumbersV1EmbeddedSession;
|
|
173
|
+
data: {
|
|
174
|
+
[key: string]: any;
|
|
175
|
+
};
|
|
176
|
+
dateCreated: Date;
|
|
177
|
+
dateUpdated: Date;
|
|
178
|
+
};
|
|
179
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
180
|
+
}
|
|
181
|
+
export {};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Numbers
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SenderIdRegistrationInstance = exports.NumbersV1EmbeddedSession = exports.NumbersV1CreateEmbeddedRegistrationRequest = void 0;
|
|
17
|
+
exports.SenderIdRegistrationListInstance = SenderIdRegistrationListInstance;
|
|
18
|
+
const util_1 = require("util");
|
|
19
|
+
const deserialize = require("../../../base/deserialize");
|
|
20
|
+
const serialize = require("../../../base/serialize");
|
|
21
|
+
class NumbersV1CreateEmbeddedRegistrationRequest {
|
|
22
|
+
constructor(payload) {
|
|
23
|
+
this.regulationId = payload["regulationId"];
|
|
24
|
+
this.regulationVersion = payload["regulationVersion"];
|
|
25
|
+
this.friendlyName = payload["friendlyName"];
|
|
26
|
+
this.statusNotificationEmail = payload["statusNotificationEmail"];
|
|
27
|
+
this.statusCallbackUrl = payload["statusCallbackUrl"];
|
|
28
|
+
this.comments = payload["comments"];
|
|
29
|
+
this.themeSetId = payload["themeSetId"];
|
|
30
|
+
this.data = payload["data"];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.NumbersV1CreateEmbeddedRegistrationRequest = NumbersV1CreateEmbeddedRegistrationRequest;
|
|
34
|
+
class NumbersV1EmbeddedSession {
|
|
35
|
+
constructor(payload) {
|
|
36
|
+
this.sessionId = payload["sessionId"];
|
|
37
|
+
this.sessionToken = payload["sessionToken"];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.NumbersV1EmbeddedSession = NumbersV1EmbeddedSession;
|
|
41
|
+
function SenderIdRegistrationListInstance(version) {
|
|
42
|
+
const instance = {};
|
|
43
|
+
instance._version = version;
|
|
44
|
+
instance._solution = {};
|
|
45
|
+
instance._uri = `/SenderIdRegistrations`;
|
|
46
|
+
instance.create = function create(params, headers, callback) {
|
|
47
|
+
if (params === null || params === undefined) {
|
|
48
|
+
throw new Error('Required parameter "params" missing.');
|
|
49
|
+
}
|
|
50
|
+
let data = {};
|
|
51
|
+
data = params;
|
|
52
|
+
if (headers === null || headers === undefined) {
|
|
53
|
+
headers = {};
|
|
54
|
+
}
|
|
55
|
+
headers["Content-Type"] = "application/json";
|
|
56
|
+
headers["Accept"] = "application/json";
|
|
57
|
+
let operationVersion = version, operationPromise = operationVersion.create({
|
|
58
|
+
uri: instance._uri,
|
|
59
|
+
method: "post",
|
|
60
|
+
data,
|
|
61
|
+
headers,
|
|
62
|
+
});
|
|
63
|
+
operationPromise = operationPromise.then((payload) => new SenderIdRegistrationInstance(operationVersion, payload));
|
|
64
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
65
|
+
return operationPromise;
|
|
66
|
+
};
|
|
67
|
+
instance.createWithHttpInfo = function createWithHttpInfo(params, headers, callback) {
|
|
68
|
+
if (params === null || params === undefined) {
|
|
69
|
+
throw new Error('Required parameter "params" missing.');
|
|
70
|
+
}
|
|
71
|
+
let data = {};
|
|
72
|
+
data = params;
|
|
73
|
+
if (headers === null || headers === undefined) {
|
|
74
|
+
headers = {};
|
|
75
|
+
}
|
|
76
|
+
headers["Content-Type"] = "application/json";
|
|
77
|
+
headers["Accept"] = "application/json";
|
|
78
|
+
let operationVersion = version;
|
|
79
|
+
// CREATE, FETCH, UPDATE operations
|
|
80
|
+
let operationPromise = operationVersion
|
|
81
|
+
.createWithResponseInfo({
|
|
82
|
+
uri: instance._uri,
|
|
83
|
+
method: "post",
|
|
84
|
+
data,
|
|
85
|
+
headers,
|
|
86
|
+
})
|
|
87
|
+
.then((response) => ({
|
|
88
|
+
...response,
|
|
89
|
+
body: new SenderIdRegistrationInstance(operationVersion, response.body),
|
|
90
|
+
}));
|
|
91
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
92
|
+
return operationPromise;
|
|
93
|
+
};
|
|
94
|
+
instance.toJSON = function toJSON() {
|
|
95
|
+
return instance._solution;
|
|
96
|
+
};
|
|
97
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
98
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
99
|
+
};
|
|
100
|
+
return instance;
|
|
101
|
+
}
|
|
102
|
+
class SenderIdRegistrationInstance {
|
|
103
|
+
constructor(_version, payload) {
|
|
104
|
+
this._version = _version;
|
|
105
|
+
this.id = payload.id;
|
|
106
|
+
this.regulationId = payload.regulationId;
|
|
107
|
+
this.regulationVersion = deserialize.integer(payload.regulationVersion);
|
|
108
|
+
this.friendlyName = payload.friendlyName;
|
|
109
|
+
this.status = payload.status;
|
|
110
|
+
this.statusNotificationEmail = payload.statusNotificationEmail;
|
|
111
|
+
this.statusCallbackUrl = payload.statusCallbackUrl;
|
|
112
|
+
this.comments = payload.comments;
|
|
113
|
+
this.embeddedSession =
|
|
114
|
+
payload.embeddedSession !== null && payload.embeddedSession !== undefined
|
|
115
|
+
? new NumbersV1EmbeddedSession(payload.embeddedSession)
|
|
116
|
+
: null;
|
|
117
|
+
this.data = payload.data;
|
|
118
|
+
this.dateCreated = deserialize.iso8601DateTime(payload.dateCreated);
|
|
119
|
+
this.dateUpdated = deserialize.iso8601DateTime(payload.dateUpdated);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Provide a user-friendly representation
|
|
123
|
+
*
|
|
124
|
+
* @returns Object
|
|
125
|
+
*/
|
|
126
|
+
toJSON() {
|
|
127
|
+
return {
|
|
128
|
+
id: this.id,
|
|
129
|
+
regulationId: this.regulationId,
|
|
130
|
+
regulationVersion: this.regulationVersion,
|
|
131
|
+
friendlyName: this.friendlyName,
|
|
132
|
+
status: this.status,
|
|
133
|
+
statusNotificationEmail: this.statusNotificationEmail,
|
|
134
|
+
statusCallbackUrl: this.statusCallbackUrl,
|
|
135
|
+
comments: this.comments,
|
|
136
|
+
embeddedSession: this.embeddedSession,
|
|
137
|
+
data: this.data,
|
|
138
|
+
dateCreated: this.dateCreated,
|
|
139
|
+
dateUpdated: this.dateUpdated,
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
[util_1.inspect.custom](_depth, options) {
|
|
143
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
exports.SenderIdRegistrationInstance = SenderIdRegistrationInstance;
|
|
@@ -14,6 +14,7 @@ export declare class CreateShortCodeApplicationRequest {
|
|
|
14
14
|
"isoCountry": string;
|
|
15
15
|
"businessInformation": CreateShortCodeApplicationRequestBusinessInformation;
|
|
16
16
|
"setup": CreateShortCodeApplicationRequestSetup;
|
|
17
|
+
constructor(payload: any);
|
|
17
18
|
}
|
|
18
19
|
/**
|
|
19
20
|
* Business information associated with the application.
|
|
@@ -23,9 +24,96 @@ export declare class CreateShortCodeApplicationRequestBusinessInformation {
|
|
|
23
24
|
* The Compliance Profile SID for the customer-facing business profile.
|
|
24
25
|
*/
|
|
25
26
|
"customerFacingProfile": string;
|
|
27
|
+
constructor(payload: any);
|
|
26
28
|
}
|
|
27
29
|
export declare class CreateShortCodeApplicationRequestSetup {
|
|
28
30
|
"chargesApply": boolean;
|
|
31
|
+
constructor(payload: any);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Business information associated with the application.
|
|
35
|
+
*/
|
|
36
|
+
export declare class CreateShortCodeApplicationResponseBusinessInformation {
|
|
37
|
+
"managingCompanyProfile"?: string;
|
|
38
|
+
"customerFacingProfile"?: string;
|
|
39
|
+
"businessWebsite"?: string;
|
|
40
|
+
"einManagingCompanyProfile"?: string;
|
|
41
|
+
"einCustomerFacingProfile"?: string;
|
|
42
|
+
constructor(payload: any);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Compliance keywords for the application.
|
|
46
|
+
*/
|
|
47
|
+
export declare class CreateShortCodeApplicationResponseComplianceKeywords {
|
|
48
|
+
"help"?: string;
|
|
49
|
+
"stop"?: string;
|
|
50
|
+
"info"?: string;
|
|
51
|
+
"aide"?: string;
|
|
52
|
+
"arret"?: string;
|
|
53
|
+
"optOutFiltering"?: boolean;
|
|
54
|
+
constructor(payload: any);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Content examples for the application.
|
|
58
|
+
*/
|
|
59
|
+
export declare class CreateShortCodeApplicationResponseContentExamples {
|
|
60
|
+
"examples"?: Array<string>;
|
|
61
|
+
constructor(payload: any);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Setup configuration for the application.
|
|
65
|
+
*/
|
|
66
|
+
export declare class CreateShortCodeApplicationResponseSetup {
|
|
67
|
+
"requestType"?: string;
|
|
68
|
+
"trafficType"?: string;
|
|
69
|
+
"leaseType"?: string;
|
|
70
|
+
"paymentFrequency"?: string;
|
|
71
|
+
"shortCodePreference"?: string;
|
|
72
|
+
"mmsEnabled"?: boolean;
|
|
73
|
+
"freeToEndUser"?: boolean;
|
|
74
|
+
"chargesApply"?: boolean;
|
|
75
|
+
"currentProvider"?: string;
|
|
76
|
+
"migratedMmsEnabled"?: boolean;
|
|
77
|
+
"migratedLiveTraffic"?: boolean;
|
|
78
|
+
constructor(payload: any);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* SMS campaign details for the application.
|
|
82
|
+
*/
|
|
83
|
+
export declare class CreateShortCodeApplicationResponseSmsCampaignDetails {
|
|
84
|
+
"campaignName"?: string;
|
|
85
|
+
"campaignBrandWebsite"?: string;
|
|
86
|
+
"customerCareChannel"?: string;
|
|
87
|
+
"customerCareValue"?: string;
|
|
88
|
+
"campaignFrequency"?: Array<string>;
|
|
89
|
+
"scUseCaseCategories"?: Array<string>;
|
|
90
|
+
"smsTermsOfServiceUrl"?: string;
|
|
91
|
+
"smsPrivacyPolicyUrl"?: string;
|
|
92
|
+
"monthlyOutboundVolumeExpected"?: string;
|
|
93
|
+
"monthlyInboundVolumeExpected"?: string;
|
|
94
|
+
"avgMonthlyMessagesSentToEachSubscriber"?: string;
|
|
95
|
+
"avgMonthlyMessagesReceivedFromSubscribers"?: string;
|
|
96
|
+
"estimatedTotalSubscribers"?: string;
|
|
97
|
+
"durationOfTheCampaign"?: string;
|
|
98
|
+
"plannedTrafficSpikes"?: string;
|
|
99
|
+
"spikeDetails"?: string;
|
|
100
|
+
"expectedTrafficStartDate"?: string;
|
|
101
|
+
constructor(payload: any);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* User sign-up configuration for the application.
|
|
105
|
+
*/
|
|
106
|
+
export declare class CreateShortCodeApplicationResponseUserSignUp {
|
|
107
|
+
"signUpOptions"?: Array<string>;
|
|
108
|
+
"doubleOptInProcess"?: boolean;
|
|
109
|
+
"doubleOptInMessage"?: string;
|
|
110
|
+
"signUpConfirmationMessage"?: string;
|
|
111
|
+
"doubleOptInResponseMessage"?: string;
|
|
112
|
+
"onlineWebFormMessage"?: string;
|
|
113
|
+
"keywordMessage"?: string;
|
|
114
|
+
"ivrMessage"?: string;
|
|
115
|
+
"otherFormMessage"?: string;
|
|
116
|
+
constructor(payload: any);
|
|
29
117
|
}
|
|
30
118
|
/**
|
|
31
119
|
* Options to pass to create a ApplicationInstance
|
|
@@ -38,6 +126,16 @@ export interface ApplicationListInstanceCreateOptions {
|
|
|
38
126
|
* Options to pass to each
|
|
39
127
|
*/
|
|
40
128
|
export interface ApplicationListInstanceEachOptions {
|
|
129
|
+
/** The Account SID to filter by. */
|
|
130
|
+
accountSid?: string;
|
|
131
|
+
/** The ISO country to filter by. */
|
|
132
|
+
isoCountry?: string;
|
|
133
|
+
/** The application status to filter by. */
|
|
134
|
+
status?: string;
|
|
135
|
+
/** The friendly name to filter by. */
|
|
136
|
+
friendlyName?: string;
|
|
137
|
+
/** The application SID to filter by. */
|
|
138
|
+
sid?: string;
|
|
41
139
|
/** How many resources to return in each list page. The default is 50, and the maximum is 50. */
|
|
42
140
|
pageSize?: number;
|
|
43
141
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
@@ -51,6 +149,16 @@ export interface ApplicationListInstanceEachOptions {
|
|
|
51
149
|
* Options to pass to list
|
|
52
150
|
*/
|
|
53
151
|
export interface ApplicationListInstanceOptions {
|
|
152
|
+
/** The Account SID to filter by. */
|
|
153
|
+
accountSid?: string;
|
|
154
|
+
/** The ISO country to filter by. */
|
|
155
|
+
isoCountry?: string;
|
|
156
|
+
/** The application status to filter by. */
|
|
157
|
+
status?: string;
|
|
158
|
+
/** The friendly name to filter by. */
|
|
159
|
+
friendlyName?: string;
|
|
160
|
+
/** The application SID to filter by. */
|
|
161
|
+
sid?: string;
|
|
54
162
|
/** How many resources to return in each list page. The default is 50, and the maximum is 50. */
|
|
55
163
|
pageSize?: number;
|
|
56
164
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
@@ -60,6 +168,16 @@ export interface ApplicationListInstanceOptions {
|
|
|
60
168
|
* Options to pass to page
|
|
61
169
|
*/
|
|
62
170
|
export interface ApplicationListInstancePageOptions {
|
|
171
|
+
/** The Account SID to filter by. */
|
|
172
|
+
accountSid?: string;
|
|
173
|
+
/** The ISO country to filter by. */
|
|
174
|
+
isoCountry?: string;
|
|
175
|
+
/** The application status to filter by. */
|
|
176
|
+
status?: string;
|
|
177
|
+
/** The friendly name to filter by. */
|
|
178
|
+
friendlyName?: string;
|
|
179
|
+
/** The application SID to filter by. */
|
|
180
|
+
sid?: string;
|
|
63
181
|
/** How many resources to return in each list page. The default is 50, and the maximum is 50. */
|
|
64
182
|
pageSize?: number;
|
|
65
183
|
/** Page Number, this value is simply for client state */
|
|
@@ -113,11 +231,26 @@ interface ApplicationPayload extends TwilioResponsePayload {
|
|
|
113
231
|
}
|
|
114
232
|
interface ApplicationResource {
|
|
115
233
|
sid: string;
|
|
116
|
-
bundle_sid: string;
|
|
117
234
|
application_requirements_sid: string;
|
|
235
|
+
application_requirements_version: number;
|
|
236
|
+
account_sid: string;
|
|
237
|
+
bundle_sid: string;
|
|
238
|
+
reviewer: string;
|
|
239
|
+
zendesk_ticket_id: string;
|
|
118
240
|
friendly_name: string;
|
|
241
|
+
notification_emails: Array<string>;
|
|
119
242
|
iso_country: string;
|
|
120
243
|
state: string;
|
|
244
|
+
setup: CreateShortCodeApplicationResponseSetup;
|
|
245
|
+
business_information: CreateShortCodeApplicationResponseBusinessInformation;
|
|
246
|
+
user_sign_up: CreateShortCodeApplicationResponseUserSignUp;
|
|
247
|
+
compliance_keywords: CreateShortCodeApplicationResponseComplianceKeywords;
|
|
248
|
+
content_examples: CreateShortCodeApplicationResponseContentExamples;
|
|
249
|
+
sms_campaign_details: CreateShortCodeApplicationResponseSmsCampaignDetails;
|
|
250
|
+
date_created: Date;
|
|
251
|
+
date_updated: Date;
|
|
252
|
+
created_by: string;
|
|
253
|
+
updated_by: string;
|
|
121
254
|
}
|
|
122
255
|
export declare class ApplicationInstance {
|
|
123
256
|
protected _version: V2;
|
|
@@ -128,18 +261,38 @@ export declare class ApplicationInstance {
|
|
|
128
261
|
* The unique identifier of the Short Code Application.
|
|
129
262
|
*/
|
|
130
263
|
sid: string;
|
|
264
|
+
/**
|
|
265
|
+
* The Application Requirements SID.
|
|
266
|
+
*/
|
|
267
|
+
applicationRequirementsSid: string;
|
|
268
|
+
/**
|
|
269
|
+
* The version of the application requirements.
|
|
270
|
+
*/
|
|
271
|
+
applicationRequirementsVersion: number;
|
|
272
|
+
/**
|
|
273
|
+
* The Account SID associated with the application.
|
|
274
|
+
*/
|
|
275
|
+
accountSid: string;
|
|
131
276
|
/**
|
|
132
277
|
* The Bundle SID for regulatory compliance.
|
|
133
278
|
*/
|
|
134
279
|
bundleSid: string;
|
|
135
280
|
/**
|
|
136
|
-
* The
|
|
281
|
+
* The reviewer of the application.
|
|
137
282
|
*/
|
|
138
|
-
|
|
283
|
+
reviewer: string;
|
|
284
|
+
/**
|
|
285
|
+
* The Zendesk ticket ID associated with the application.
|
|
286
|
+
*/
|
|
287
|
+
zendeskTicketId: string;
|
|
139
288
|
/**
|
|
140
289
|
* The friendly name of the application.
|
|
141
290
|
*/
|
|
142
291
|
friendlyName: string;
|
|
292
|
+
/**
|
|
293
|
+
* The notification emails for the application.
|
|
294
|
+
*/
|
|
295
|
+
notificationEmails: Array<string>;
|
|
143
296
|
/**
|
|
144
297
|
* The ISO country code.
|
|
145
298
|
*/
|
|
@@ -148,6 +301,28 @@ export declare class ApplicationInstance {
|
|
|
148
301
|
* The state of the application.
|
|
149
302
|
*/
|
|
150
303
|
state: string;
|
|
304
|
+
setup: CreateShortCodeApplicationResponseSetup;
|
|
305
|
+
businessInformation: CreateShortCodeApplicationResponseBusinessInformation;
|
|
306
|
+
userSignUp: CreateShortCodeApplicationResponseUserSignUp;
|
|
307
|
+
complianceKeywords: CreateShortCodeApplicationResponseComplianceKeywords;
|
|
308
|
+
contentExamples: CreateShortCodeApplicationResponseContentExamples;
|
|
309
|
+
smsCampaignDetails: CreateShortCodeApplicationResponseSmsCampaignDetails;
|
|
310
|
+
/**
|
|
311
|
+
* The date and time the application was created.
|
|
312
|
+
*/
|
|
313
|
+
dateCreated: Date;
|
|
314
|
+
/**
|
|
315
|
+
* The date and time the application was last updated.
|
|
316
|
+
*/
|
|
317
|
+
dateUpdated: Date;
|
|
318
|
+
/**
|
|
319
|
+
* The identity of the user who created the application.
|
|
320
|
+
*/
|
|
321
|
+
createdBy: string;
|
|
322
|
+
/**
|
|
323
|
+
* The identity of the user who last updated the application.
|
|
324
|
+
*/
|
|
325
|
+
updatedBy: string;
|
|
151
326
|
private get _proxy();
|
|
152
327
|
/**
|
|
153
328
|
* Fetch a ApplicationInstance
|
|
@@ -172,11 +347,26 @@ export declare class ApplicationInstance {
|
|
|
172
347
|
*/
|
|
173
348
|
toJSON(): {
|
|
174
349
|
sid: string;
|
|
175
|
-
bundleSid: string;
|
|
176
350
|
applicationRequirementsSid: string;
|
|
351
|
+
applicationRequirementsVersion: number;
|
|
352
|
+
accountSid: string;
|
|
353
|
+
bundleSid: string;
|
|
354
|
+
reviewer: string;
|
|
355
|
+
zendeskTicketId: string;
|
|
177
356
|
friendlyName: string;
|
|
357
|
+
notificationEmails: string[];
|
|
178
358
|
isoCountry: string;
|
|
179
359
|
state: string;
|
|
360
|
+
setup: CreateShortCodeApplicationResponseSetup;
|
|
361
|
+
businessInformation: CreateShortCodeApplicationResponseBusinessInformation;
|
|
362
|
+
userSignUp: CreateShortCodeApplicationResponseUserSignUp;
|
|
363
|
+
complianceKeywords: CreateShortCodeApplicationResponseComplianceKeywords;
|
|
364
|
+
contentExamples: CreateShortCodeApplicationResponseContentExamples;
|
|
365
|
+
smsCampaignDetails: CreateShortCodeApplicationResponseSmsCampaignDetails;
|
|
366
|
+
dateCreated: Date;
|
|
367
|
+
dateUpdated: Date;
|
|
368
|
+
createdBy: string;
|
|
369
|
+
updatedBy: string;
|
|
180
370
|
};
|
|
181
371
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
182
372
|
}
|