twilio 4.17.0 → 4.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/rest/api/V2010.d.ts +5 -0
- package/lib/rest/api/V2010.js +6 -0
- package/lib/rest/api/v2010/account/message.d.ts +1 -1
- package/lib/rest/api/v2010/safelist.d.ts +107 -0
- package/lib/rest/api/v2010/safelist.js +119 -0
- package/lib/rest/chat/v3/channel.d.ts +2 -2
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +1 -1
- package/lib/rest/conversations/v1/configuration.d.ts +2 -2
- package/lib/rest/conversations/v1/conversation/message.d.ts +4 -0
- package/lib/rest/conversations/v1/conversation/message.js +4 -0
- package/lib/rest/conversations/v1/conversation.d.ts +11 -3
- package/lib/rest/conversations/v1/conversation.js +8 -0
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +4 -0
- package/lib/rest/conversations/v1/service/conversation/message.js +4 -0
- package/lib/rest/conversations/v1/service/conversation.d.ts +11 -3
- package/lib/rest/conversations/v1/service/conversation.js +8 -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/interaction/interactionChannel.d.ts +4 -4
- package/lib/rest/messaging/v1/externalCampaign.d.ts +2 -2
- package/lib/rest/messaging/v1/service/usAppToPerson.d.ts +1 -1
- package/lib/rest/messaging/v1/service.d.ts +3 -3
- package/lib/rest/numbers/v2/authorizationDocument/dependentHostedNumberOrder.d.ts +3 -3
- package/lib/rest/numbers/v2/authorizationDocument.d.ts +3 -3
- package/lib/rest/numbers/v2/hostedNumberOrder.d.ts +2 -2
- package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts +3 -3
- package/lib/rest/preview/hosted_numbers/authorizationDocument.d.ts +3 -3
- package/lib/rest/preview/hosted_numbers/hostedNumberOrder.d.ts +2 -2
- package/lib/rest/proxy/v1/service.d.ts +3 -3
- package/lib/rest/verify/v2/service/messagingConfiguration.d.ts +3 -3
- package/package.json +1 -1
package/lib/rest/api/V2010.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
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";
|
|
4
5
|
import { AccountContext } from "./v2010/account";
|
|
5
6
|
export default class V2010 extends Version {
|
|
6
7
|
/**
|
|
@@ -11,10 +12,14 @@ export default class V2010 extends Version {
|
|
|
11
12
|
constructor(domain: ApiBase);
|
|
12
13
|
/** accounts - { Twilio.Api.V2010.AccountListInstance } resource */
|
|
13
14
|
protected _accounts?: AccountListInstance;
|
|
15
|
+
/** safelist - { Twilio.Api.V2010.SafelistListInstance } resource */
|
|
16
|
+
protected _safelist?: SafelistListInstance;
|
|
14
17
|
/** account - { Twilio.Api.V2010.AccountContext } resource */
|
|
15
18
|
protected _account?: AccountContext;
|
|
16
19
|
/** Getter for accounts resource */
|
|
17
20
|
get accounts(): AccountListInstance;
|
|
21
|
+
/** Getter for safelist resource */
|
|
22
|
+
get safelist(): SafelistListInstance;
|
|
18
23
|
/** Getter for account resource */
|
|
19
24
|
get account(): AccountContext;
|
|
20
25
|
}
|
package/lib/rest/api/V2010.js
CHANGED
|
@@ -18,6 +18,7 @@ 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");
|
|
21
22
|
class V2010 extends Version_1.default {
|
|
22
23
|
/**
|
|
23
24
|
* Initialize the V2010 version of Api
|
|
@@ -32,6 +33,11 @@ class V2010 extends Version_1.default {
|
|
|
32
33
|
this._accounts = this._accounts || (0, account_1.AccountListInstance)(this);
|
|
33
34
|
return this._accounts;
|
|
34
35
|
}
|
|
36
|
+
/** Getter for safelist resource */
|
|
37
|
+
get safelist() {
|
|
38
|
+
this._safelist = this._safelist || (0, safelist_1.SafelistListInstance)(this);
|
|
39
|
+
return this._safelist;
|
|
40
|
+
}
|
|
35
41
|
/** Getter for account resource */
|
|
36
42
|
get account() {
|
|
37
43
|
this._account =
|
|
@@ -63,7 +63,7 @@ export interface MessageListInstanceCreateOptions {
|
|
|
63
63
|
tags?: string;
|
|
64
64
|
/** */
|
|
65
65
|
riskCheck?: MessageRiskCheck;
|
|
66
|
-
/** 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/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), 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
|
|
66
|
+
/** 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/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), 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. */
|
|
67
67
|
from?: string;
|
|
68
68
|
/** 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. */
|
|
69
69
|
messagingServiceSid?: string;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { inspect, InspectOptions } from "util";
|
|
3
|
+
import V2010 from "../V2010";
|
|
4
|
+
/**
|
|
5
|
+
* Options to pass to create a SafelistInstance
|
|
6
|
+
*/
|
|
7
|
+
export interface SafelistListInstanceCreateOptions {
|
|
8
|
+
/** The phone number to be added in SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). */
|
|
9
|
+
phoneNumber: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Options to pass to remove a SafelistInstance
|
|
13
|
+
*/
|
|
14
|
+
export interface SafelistListInstanceRemoveOptions {
|
|
15
|
+
/** The phone number to be removed from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). */
|
|
16
|
+
phoneNumber?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Options to pass to fetch a SafelistInstance
|
|
20
|
+
*/
|
|
21
|
+
export interface SafelistListInstanceFetchOptions {
|
|
22
|
+
/** The phone number to be fetched from SafeList. Phone numbers must be in [E.164 format](https://www.twilio.com/docs/glossary/what-e164). */
|
|
23
|
+
phoneNumber?: string;
|
|
24
|
+
}
|
|
25
|
+
export interface SafelistSolution {
|
|
26
|
+
}
|
|
27
|
+
export interface SafelistListInstance {
|
|
28
|
+
_version: V2010;
|
|
29
|
+
_solution: SafelistSolution;
|
|
30
|
+
_uri: string;
|
|
31
|
+
/**
|
|
32
|
+
* Create a SafelistInstance
|
|
33
|
+
*
|
|
34
|
+
* @param params - Parameter for request
|
|
35
|
+
* @param callback - Callback to handle processed record
|
|
36
|
+
*
|
|
37
|
+
* @returns Resolves to processed SafelistInstance
|
|
38
|
+
*/
|
|
39
|
+
create(params: SafelistListInstanceCreateOptions, callback?: (error: Error | null, item?: SafelistInstance) => any): Promise<SafelistInstance>;
|
|
40
|
+
/**
|
|
41
|
+
* Remove a SafelistInstance
|
|
42
|
+
*
|
|
43
|
+
* @param callback - Callback to handle processed record
|
|
44
|
+
*
|
|
45
|
+
* @returns Resolves to processed boolean
|
|
46
|
+
*/
|
|
47
|
+
remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
|
|
48
|
+
/**
|
|
49
|
+
* Remove a SafelistInstance
|
|
50
|
+
*
|
|
51
|
+
* @param params - Parameter for request
|
|
52
|
+
* @param callback - Callback to handle processed record
|
|
53
|
+
*
|
|
54
|
+
* @returns Resolves to processed SafelistInstance
|
|
55
|
+
*/
|
|
56
|
+
remove(params: SafelistListInstanceRemoveOptions, callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
|
|
57
|
+
/**
|
|
58
|
+
* Fetch a SafelistInstance
|
|
59
|
+
*
|
|
60
|
+
* @param callback - Callback to handle processed record
|
|
61
|
+
*
|
|
62
|
+
* @returns Resolves to processed SafelistInstance
|
|
63
|
+
*/
|
|
64
|
+
fetch(callback?: (error: Error | null, item?: SafelistInstance) => any): Promise<SafelistInstance>;
|
|
65
|
+
/**
|
|
66
|
+
* Fetch a SafelistInstance
|
|
67
|
+
*
|
|
68
|
+
* @param params - Parameter for request
|
|
69
|
+
* @param callback - Callback to handle processed record
|
|
70
|
+
*
|
|
71
|
+
* @returns Resolves to processed SafelistInstance
|
|
72
|
+
*/
|
|
73
|
+
fetch(params: SafelistListInstanceFetchOptions, callback?: (error: Error | null, item?: SafelistInstance) => any): Promise<SafelistInstance>;
|
|
74
|
+
/**
|
|
75
|
+
* Provide a user-friendly representation
|
|
76
|
+
*/
|
|
77
|
+
toJSON(): any;
|
|
78
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
79
|
+
}
|
|
80
|
+
export declare function SafelistListInstance(version: V2010): SafelistListInstance;
|
|
81
|
+
interface SafelistResource {
|
|
82
|
+
sid: string;
|
|
83
|
+
phone_number: string;
|
|
84
|
+
}
|
|
85
|
+
export declare class SafelistInstance {
|
|
86
|
+
protected _version: V2010;
|
|
87
|
+
constructor(_version: V2010, payload: SafelistResource);
|
|
88
|
+
/**
|
|
89
|
+
* The unique string that we created to identify the SafeList resource.
|
|
90
|
+
*/
|
|
91
|
+
sid: string;
|
|
92
|
+
/**
|
|
93
|
+
* The phone number in SafeList.
|
|
94
|
+
*/
|
|
95
|
+
phoneNumber: string;
|
|
96
|
+
/**
|
|
97
|
+
* Provide a user-friendly representation
|
|
98
|
+
*
|
|
99
|
+
* @returns Object
|
|
100
|
+
*/
|
|
101
|
+
toJSON(): {
|
|
102
|
+
sid: string;
|
|
103
|
+
phoneNumber: string;
|
|
104
|
+
};
|
|
105
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
106
|
+
}
|
|
107
|
+
export {};
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Api
|
|
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.SafelistInstance = exports.SafelistListInstance = void 0;
|
|
17
|
+
const util_1 = require("util");
|
|
18
|
+
const deserialize = require("../../../base/deserialize");
|
|
19
|
+
const serialize = require("../../../base/serialize");
|
|
20
|
+
function SafelistListInstance(version) {
|
|
21
|
+
const instance = {};
|
|
22
|
+
instance._version = version;
|
|
23
|
+
instance._solution = {};
|
|
24
|
+
instance._uri = `/SafeList/Numbers.json`;
|
|
25
|
+
instance.create = function create(params, callback) {
|
|
26
|
+
if (params === null || params === undefined) {
|
|
27
|
+
throw new Error('Required parameter "params" missing.');
|
|
28
|
+
}
|
|
29
|
+
if (params["phoneNumber"] === null || params["phoneNumber"] === undefined) {
|
|
30
|
+
throw new Error("Required parameter \"params['phoneNumber']\" missing.");
|
|
31
|
+
}
|
|
32
|
+
let data = {};
|
|
33
|
+
data["PhoneNumber"] = params["phoneNumber"];
|
|
34
|
+
const headers = {};
|
|
35
|
+
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
36
|
+
let operationVersion = version, operationPromise = operationVersion.create({
|
|
37
|
+
uri: instance._uri,
|
|
38
|
+
method: "post",
|
|
39
|
+
data,
|
|
40
|
+
headers,
|
|
41
|
+
});
|
|
42
|
+
operationPromise = operationPromise.then((payload) => new SafelistInstance(operationVersion, payload));
|
|
43
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
44
|
+
return operationPromise;
|
|
45
|
+
};
|
|
46
|
+
instance.remove = function remove(params, callback) {
|
|
47
|
+
if (params instanceof Function) {
|
|
48
|
+
callback = params;
|
|
49
|
+
params = {};
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
params = params || {};
|
|
53
|
+
}
|
|
54
|
+
let data = {};
|
|
55
|
+
if (params["phoneNumber"] !== undefined)
|
|
56
|
+
data["PhoneNumber"] = params["phoneNumber"];
|
|
57
|
+
const headers = {};
|
|
58
|
+
let operationVersion = version, operationPromise = operationVersion.remove({
|
|
59
|
+
uri: instance._uri,
|
|
60
|
+
method: "delete",
|
|
61
|
+
params: data,
|
|
62
|
+
headers,
|
|
63
|
+
});
|
|
64
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
65
|
+
return operationPromise;
|
|
66
|
+
};
|
|
67
|
+
instance.fetch = function fetch(params, callback) {
|
|
68
|
+
if (params instanceof Function) {
|
|
69
|
+
callback = params;
|
|
70
|
+
params = {};
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
params = params || {};
|
|
74
|
+
}
|
|
75
|
+
let data = {};
|
|
76
|
+
if (params["phoneNumber"] !== undefined)
|
|
77
|
+
data["PhoneNumber"] = params["phoneNumber"];
|
|
78
|
+
const headers = {};
|
|
79
|
+
let operationVersion = version, operationPromise = operationVersion.fetch({
|
|
80
|
+
uri: instance._uri,
|
|
81
|
+
method: "get",
|
|
82
|
+
params: data,
|
|
83
|
+
headers,
|
|
84
|
+
});
|
|
85
|
+
operationPromise = operationPromise.then((payload) => new SafelistInstance(operationVersion, payload));
|
|
86
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
87
|
+
return operationPromise;
|
|
88
|
+
};
|
|
89
|
+
instance.toJSON = function toJSON() {
|
|
90
|
+
return instance._solution;
|
|
91
|
+
};
|
|
92
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
93
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
94
|
+
};
|
|
95
|
+
return instance;
|
|
96
|
+
}
|
|
97
|
+
exports.SafelistListInstance = SafelistListInstance;
|
|
98
|
+
class SafelistInstance {
|
|
99
|
+
constructor(_version, payload) {
|
|
100
|
+
this._version = _version;
|
|
101
|
+
this.sid = payload.sid;
|
|
102
|
+
this.phoneNumber = payload.phone_number;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Provide a user-friendly representation
|
|
106
|
+
*
|
|
107
|
+
* @returns Object
|
|
108
|
+
*/
|
|
109
|
+
toJSON() {
|
|
110
|
+
return {
|
|
111
|
+
sid: this.sid,
|
|
112
|
+
phoneNumber: this.phoneNumber,
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
[util_1.inspect.custom](_depth, options) {
|
|
116
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
exports.SafelistInstance = SafelistInstance;
|
|
@@ -11,7 +11,7 @@ export interface ChannelContextUpdateOptions {
|
|
|
11
11
|
xTwilioWebhookEnabled?: ChannelWebhookEnabledType;
|
|
12
12
|
/** */
|
|
13
13
|
type?: ChannelChannelType;
|
|
14
|
-
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
14
|
+
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this channel belongs to. */
|
|
15
15
|
messagingServiceSid?: string;
|
|
16
16
|
}
|
|
17
17
|
export interface ChannelContext {
|
|
@@ -123,7 +123,7 @@ export declare class ChannelInstance {
|
|
|
123
123
|
*/
|
|
124
124
|
messagesCount: number;
|
|
125
125
|
/**
|
|
126
|
-
* The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
126
|
+
* The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this channel belongs to.
|
|
127
127
|
*/
|
|
128
128
|
messagingServiceSid: string;
|
|
129
129
|
/**
|
|
@@ -5,7 +5,7 @@ import Response from "../../../http/response";
|
|
|
5
5
|
import V1 from "../V1";
|
|
6
6
|
export type AddressConfigurationAutoCreationType = "webhook" | "studio" | "default";
|
|
7
7
|
export type AddressConfigurationMethod = "GET" | "POST";
|
|
8
|
-
export type AddressConfigurationType = "sms" | "whatsapp" | "messenger" | "gbm";
|
|
8
|
+
export type AddressConfigurationType = "sms" | "whatsapp" | "messenger" | "gbm" | "email";
|
|
9
9
|
/**
|
|
10
10
|
* Options to pass to update a AddressConfigurationInstance
|
|
11
11
|
*/
|
|
@@ -8,7 +8,7 @@ import { WebhookListInstance } from "./configuration/webhook";
|
|
|
8
8
|
export interface ConfigurationContextUpdateOptions {
|
|
9
9
|
/** The SID of the default [Conversation Service](https://www.twilio.com/docs/conversations/api/service-resource) to use when creating a conversation. */
|
|
10
10
|
defaultChatServiceSid?: string;
|
|
11
|
-
/** The SID of the default [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
11
|
+
/** The SID of the default [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to use when creating a conversation. */
|
|
12
12
|
defaultMessagingServiceSid?: string;
|
|
13
13
|
/** Default ISO8601 duration when conversation will be switched to `inactive` state. Minimum value for this timer is 1 minute. */
|
|
14
14
|
defaultInactiveTimer?: string;
|
|
@@ -87,7 +87,7 @@ export declare class ConfigurationInstance {
|
|
|
87
87
|
*/
|
|
88
88
|
defaultChatServiceSid: string;
|
|
89
89
|
/**
|
|
90
|
-
* The SID of the default [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
90
|
+
* The SID of the default [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) used when creating a conversation.
|
|
91
91
|
*/
|
|
92
92
|
defaultMessagingServiceSid: string;
|
|
93
93
|
/**
|
|
@@ -29,6 +29,8 @@ export interface MessageContextUpdateOptions {
|
|
|
29
29
|
dateUpdated?: Date;
|
|
30
30
|
/** A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. */
|
|
31
31
|
attributes?: string;
|
|
32
|
+
/** The subject of the message, can be up to 256 characters long. */
|
|
33
|
+
subject?: string;
|
|
32
34
|
}
|
|
33
35
|
/**
|
|
34
36
|
* Options to pass to create a MessageInstance
|
|
@@ -52,6 +54,8 @@ export interface MessageListInstanceCreateOptions {
|
|
|
52
54
|
contentSid?: string;
|
|
53
55
|
/** A structurally valid JSON string that contains values to resolve Rich Content template variables. */
|
|
54
56
|
contentVariables?: string;
|
|
57
|
+
/** The subject of the message, can be up to 256 characters long. */
|
|
58
|
+
subject?: string;
|
|
55
59
|
}
|
|
56
60
|
/**
|
|
57
61
|
* Options to pass to each
|
|
@@ -92,6 +92,8 @@ class MessageContextImpl {
|
|
|
92
92
|
data["DateUpdated"] = serialize.iso8601DateTime(params["dateUpdated"]);
|
|
93
93
|
if (params["attributes"] !== undefined)
|
|
94
94
|
data["Attributes"] = params["attributes"];
|
|
95
|
+
if (params["subject"] !== undefined)
|
|
96
|
+
data["Subject"] = params["subject"];
|
|
95
97
|
const headers = {};
|
|
96
98
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
97
99
|
if (params["xTwilioWebhookEnabled"] !== undefined)
|
|
@@ -233,6 +235,8 @@ function MessageListInstance(version, conversationSid) {
|
|
|
233
235
|
data["ContentSid"] = params["contentSid"];
|
|
234
236
|
if (params["contentVariables"] !== undefined)
|
|
235
237
|
data["ContentVariables"] = params["contentVariables"];
|
|
238
|
+
if (params["subject"] !== undefined)
|
|
239
|
+
data["Subject"] = params["subject"];
|
|
236
240
|
const headers = {};
|
|
237
241
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
238
242
|
if (params["xTwilioWebhookEnabled"] !== undefined)
|
|
@@ -29,7 +29,7 @@ export interface ConversationContextUpdateOptions {
|
|
|
29
29
|
dateUpdated?: Date;
|
|
30
30
|
/** An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. */
|
|
31
31
|
attributes?: string;
|
|
32
|
-
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
32
|
+
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to. */
|
|
33
33
|
messagingServiceSid?: string;
|
|
34
34
|
/** */
|
|
35
35
|
state?: ConversationState;
|
|
@@ -39,6 +39,10 @@ export interface ConversationContextUpdateOptions {
|
|
|
39
39
|
"timers.closed"?: string;
|
|
40
40
|
/** An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource\\\'s `sid` in the URL. */
|
|
41
41
|
uniqueName?: string;
|
|
42
|
+
/** The default email address that will be used when sending outbound emails in this conversation. */
|
|
43
|
+
"bindings.email.address"?: string;
|
|
44
|
+
/** The default name that will be used when sending outbound emails in this conversation. */
|
|
45
|
+
"bindings.email.name"?: string;
|
|
42
46
|
}
|
|
43
47
|
/**
|
|
44
48
|
* Options to pass to create a ConversationInstance
|
|
@@ -54,7 +58,7 @@ export interface ConversationListInstanceCreateOptions {
|
|
|
54
58
|
dateCreated?: Date;
|
|
55
59
|
/** The date that this resource was last updated. */
|
|
56
60
|
dateUpdated?: Date;
|
|
57
|
-
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
61
|
+
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to. */
|
|
58
62
|
messagingServiceSid?: string;
|
|
59
63
|
/** An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. */
|
|
60
64
|
attributes?: string;
|
|
@@ -64,6 +68,10 @@ export interface ConversationListInstanceCreateOptions {
|
|
|
64
68
|
"timers.inactive"?: string;
|
|
65
69
|
/** ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. */
|
|
66
70
|
"timers.closed"?: string;
|
|
71
|
+
/** The default email address that will be used when sending outbound emails in this conversation. */
|
|
72
|
+
"bindings.email.address"?: string;
|
|
73
|
+
/** The default name that will be used when sending outbound emails in this conversation. */
|
|
74
|
+
"bindings.email.name"?: string;
|
|
67
75
|
}
|
|
68
76
|
/**
|
|
69
77
|
* Options to pass to each
|
|
@@ -226,7 +234,7 @@ export declare class ConversationInstance {
|
|
|
226
234
|
*/
|
|
227
235
|
chatServiceSid: string;
|
|
228
236
|
/**
|
|
229
|
-
* The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
237
|
+
* The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
|
|
230
238
|
*/
|
|
231
239
|
messagingServiceSid: string;
|
|
232
240
|
/**
|
|
@@ -109,6 +109,10 @@ class ConversationContextImpl {
|
|
|
109
109
|
data["Timers.Closed"] = params["timers.closed"];
|
|
110
110
|
if (params["uniqueName"] !== undefined)
|
|
111
111
|
data["UniqueName"] = params["uniqueName"];
|
|
112
|
+
if (params["bindings.email.address"] !== undefined)
|
|
113
|
+
data["Bindings.Email.Address"] = params["bindings.email.address"];
|
|
114
|
+
if (params["bindings.email.name"] !== undefined)
|
|
115
|
+
data["Bindings.Email.Name"] = params["bindings.email.name"];
|
|
112
116
|
const headers = {};
|
|
113
117
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
114
118
|
if (params["xTwilioWebhookEnabled"] !== undefined)
|
|
@@ -259,6 +263,10 @@ function ConversationListInstance(version) {
|
|
|
259
263
|
data["Timers.Inactive"] = params["timers.inactive"];
|
|
260
264
|
if (params["timers.closed"] !== undefined)
|
|
261
265
|
data["Timers.Closed"] = params["timers.closed"];
|
|
266
|
+
if (params["bindings.email.address"] !== undefined)
|
|
267
|
+
data["Bindings.Email.Address"] = params["bindings.email.address"];
|
|
268
|
+
if (params["bindings.email.name"] !== undefined)
|
|
269
|
+
data["Bindings.Email.Name"] = params["bindings.email.name"];
|
|
262
270
|
const headers = {};
|
|
263
271
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
264
272
|
if (params["xTwilioWebhookEnabled"] !== undefined)
|
|
@@ -29,6 +29,8 @@ export interface MessageContextUpdateOptions {
|
|
|
29
29
|
dateUpdated?: Date;
|
|
30
30
|
/** A string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. */
|
|
31
31
|
attributes?: string;
|
|
32
|
+
/** The subject of the message, can be up to 256 characters long. */
|
|
33
|
+
subject?: string;
|
|
32
34
|
}
|
|
33
35
|
/**
|
|
34
36
|
* Options to pass to create a MessageInstance
|
|
@@ -52,6 +54,8 @@ export interface MessageListInstanceCreateOptions {
|
|
|
52
54
|
contentSid?: string;
|
|
53
55
|
/** A structurally valid JSON string that contains values to resolve Rich Content template variables. */
|
|
54
56
|
contentVariables?: string;
|
|
57
|
+
/** The subject of the message, can be up to 256 characters long. */
|
|
58
|
+
subject?: string;
|
|
55
59
|
}
|
|
56
60
|
/**
|
|
57
61
|
* Options to pass to each
|
|
@@ -95,6 +95,8 @@ class MessageContextImpl {
|
|
|
95
95
|
data["DateUpdated"] = serialize.iso8601DateTime(params["dateUpdated"]);
|
|
96
96
|
if (params["attributes"] !== undefined)
|
|
97
97
|
data["Attributes"] = params["attributes"];
|
|
98
|
+
if (params["subject"] !== undefined)
|
|
99
|
+
data["Subject"] = params["subject"];
|
|
98
100
|
const headers = {};
|
|
99
101
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
100
102
|
if (params["xTwilioWebhookEnabled"] !== undefined)
|
|
@@ -241,6 +243,8 @@ function MessageListInstance(version, chatServiceSid, conversationSid) {
|
|
|
241
243
|
data["ContentSid"] = params["contentSid"];
|
|
242
244
|
if (params["contentVariables"] !== undefined)
|
|
243
245
|
data["ContentVariables"] = params["contentVariables"];
|
|
246
|
+
if (params["subject"] !== undefined)
|
|
247
|
+
data["Subject"] = params["subject"];
|
|
244
248
|
const headers = {};
|
|
245
249
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
246
250
|
if (params["xTwilioWebhookEnabled"] !== undefined)
|
|
@@ -29,7 +29,7 @@ export interface ConversationContextUpdateOptions {
|
|
|
29
29
|
dateUpdated?: Date;
|
|
30
30
|
/** An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. */
|
|
31
31
|
attributes?: string;
|
|
32
|
-
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
32
|
+
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to. */
|
|
33
33
|
messagingServiceSid?: string;
|
|
34
34
|
/** */
|
|
35
35
|
state?: ConversationState;
|
|
@@ -39,6 +39,10 @@ export interface ConversationContextUpdateOptions {
|
|
|
39
39
|
"timers.closed"?: string;
|
|
40
40
|
/** An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource\\\'s `sid` in the URL. */
|
|
41
41
|
uniqueName?: string;
|
|
42
|
+
/** The default email address that will be used when sending outbound emails in this conversation. */
|
|
43
|
+
"bindings.email.address"?: string;
|
|
44
|
+
/** The default name that will be used when sending outbound emails in this conversation. */
|
|
45
|
+
"bindings.email.name"?: string;
|
|
42
46
|
}
|
|
43
47
|
/**
|
|
44
48
|
* Options to pass to create a ConversationInstance
|
|
@@ -52,7 +56,7 @@ export interface ConversationListInstanceCreateOptions {
|
|
|
52
56
|
uniqueName?: string;
|
|
53
57
|
/** An optional string metadata field you can use to store any data you wish. The string value must contain structurally valid JSON if specified. **Note** that if the attributes are not set \\\"{}\\\" will be returned. */
|
|
54
58
|
attributes?: string;
|
|
55
|
-
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
59
|
+
/** The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to. */
|
|
56
60
|
messagingServiceSid?: string;
|
|
57
61
|
/** The date that this resource was created. */
|
|
58
62
|
dateCreated?: Date;
|
|
@@ -64,6 +68,10 @@ export interface ConversationListInstanceCreateOptions {
|
|
|
64
68
|
"timers.inactive"?: string;
|
|
65
69
|
/** ISO8601 duration when conversation will be switched to `closed` state. Minimum value for this timer is 10 minutes. */
|
|
66
70
|
"timers.closed"?: string;
|
|
71
|
+
/** The default email address that will be used when sending outbound emails in this conversation. */
|
|
72
|
+
"bindings.email.address"?: string;
|
|
73
|
+
/** The default name that will be used when sending outbound emails in this conversation. */
|
|
74
|
+
"bindings.email.name"?: string;
|
|
67
75
|
}
|
|
68
76
|
/**
|
|
69
77
|
* Options to pass to each
|
|
@@ -227,7 +235,7 @@ export declare class ConversationInstance {
|
|
|
227
235
|
*/
|
|
228
236
|
chatServiceSid: string;
|
|
229
237
|
/**
|
|
230
|
-
* The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
238
|
+
* The unique ID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) this conversation belongs to.
|
|
231
239
|
*/
|
|
232
240
|
messagingServiceSid: string;
|
|
233
241
|
/**
|
|
@@ -114,6 +114,10 @@ class ConversationContextImpl {
|
|
|
114
114
|
data["Timers.Closed"] = params["timers.closed"];
|
|
115
115
|
if (params["uniqueName"] !== undefined)
|
|
116
116
|
data["UniqueName"] = params["uniqueName"];
|
|
117
|
+
if (params["bindings.email.address"] !== undefined)
|
|
118
|
+
data["Bindings.Email.Address"] = params["bindings.email.address"];
|
|
119
|
+
if (params["bindings.email.name"] !== undefined)
|
|
120
|
+
data["Bindings.Email.Name"] = params["bindings.email.name"];
|
|
117
121
|
const headers = {};
|
|
118
122
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
119
123
|
if (params["xTwilioWebhookEnabled"] !== undefined)
|
|
@@ -267,6 +271,10 @@ function ConversationListInstance(version, chatServiceSid) {
|
|
|
267
271
|
data["Timers.Inactive"] = params["timers.inactive"];
|
|
268
272
|
if (params["timers.closed"] !== undefined)
|
|
269
273
|
data["Timers.Closed"] = params["timers.closed"];
|
|
274
|
+
if (params["bindings.email.address"] !== undefined)
|
|
275
|
+
data["Bindings.Email.Address"] = params["bindings.email.address"];
|
|
276
|
+
if (params["bindings.email.name"] !== undefined)
|
|
277
|
+
data["Bindings.Email.Name"] = params["bindings.email.name"];
|
|
270
278
|
const headers = {};
|
|
271
279
|
headers["Content-Type"] = "application/x-www-form-urlencoded";
|
|
272
280
|
if (params["xTwilioWebhookEnabled"] !== undefined)
|
|
@@ -96,6 +96,7 @@ interface ConfigurationResource {
|
|
|
96
96
|
debugger_integration: any;
|
|
97
97
|
flex_ui_status_report: any;
|
|
98
98
|
agent_conv_end_methods: any;
|
|
99
|
+
citrix_voice_vdi: any;
|
|
99
100
|
}
|
|
100
101
|
export declare class ConfigurationInstance {
|
|
101
102
|
protected _version: V1;
|
|
@@ -283,6 +284,10 @@ export declare class ConfigurationInstance {
|
|
|
283
284
|
* Agent conversation end methods.
|
|
284
285
|
*/
|
|
285
286
|
agentConvEndMethods: any;
|
|
287
|
+
/**
|
|
288
|
+
* Citrix voice vdi configuration and settings.
|
|
289
|
+
*/
|
|
290
|
+
citrixVoiceVdi: any;
|
|
286
291
|
private get _proxy();
|
|
287
292
|
/**
|
|
288
293
|
* Fetch a ConfigurationInstance
|
|
@@ -353,6 +358,7 @@ export declare class ConfigurationInstance {
|
|
|
353
358
|
debuggerIntegration: any;
|
|
354
359
|
flexUiStatusReport: any;
|
|
355
360
|
agentConvEndMethods: any;
|
|
361
|
+
citrixVoiceVdi: any;
|
|
356
362
|
};
|
|
357
363
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
358
364
|
}
|
|
@@ -108,6 +108,7 @@ class ConfigurationInstance {
|
|
|
108
108
|
this.debuggerIntegration = payload.debugger_integration;
|
|
109
109
|
this.flexUiStatusReport = payload.flex_ui_status_report;
|
|
110
110
|
this.agentConvEndMethods = payload.agent_conv_end_methods;
|
|
111
|
+
this.citrixVoiceVdi = payload.citrix_voice_vdi;
|
|
111
112
|
this._solution = {};
|
|
112
113
|
}
|
|
113
114
|
get _proxy() {
|
|
@@ -171,6 +172,7 @@ class ConfigurationInstance {
|
|
|
171
172
|
debuggerIntegration: this.debuggerIntegration,
|
|
172
173
|
flexUiStatusReport: this.flexUiStatusReport,
|
|
173
174
|
agentConvEndMethods: this.agentConvEndMethods,
|
|
175
|
+
citrixVoiceVdi: this.citrixVoiceVdi,
|
|
174
176
|
};
|
|
175
177
|
}
|
|
176
178
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -5,16 +5,16 @@ import Response from "../../../../http/response";
|
|
|
5
5
|
import V1 from "../../V1";
|
|
6
6
|
import { InteractionChannelInviteListInstance } from "./interactionChannel/interactionChannelInvite";
|
|
7
7
|
import { InteractionChannelParticipantListInstance } from "./interactionChannel/interactionChannelParticipant";
|
|
8
|
-
export type InteractionChannelChannelStatus = "setup" | "active" | "failed" | "closed";
|
|
9
|
-
export type InteractionChannelStatus = "closed" | "wrapup";
|
|
8
|
+
export type InteractionChannelChannelStatus = "setup" | "active" | "failed" | "closed" | "inactive";
|
|
10
9
|
export type InteractionChannelType = "voice" | "sms" | "email" | "web" | "whatsapp" | "chat" | "messenger" | "gbm";
|
|
10
|
+
export type InteractionChannelUpdateChannelStatus = "closed" | "inactive";
|
|
11
11
|
/**
|
|
12
12
|
* Options to pass to update a InteractionChannelInstance
|
|
13
13
|
*/
|
|
14
14
|
export interface InteractionChannelContextUpdateOptions {
|
|
15
15
|
/** */
|
|
16
|
-
status:
|
|
17
|
-
/**
|
|
16
|
+
status: InteractionChannelUpdateChannelStatus;
|
|
17
|
+
/** It changes the state of associated tasks. Routing status is required, When the channel status is set to `inactive`. Allowed Value for routing status is `closed`. Otherwise Optional, if not specified, all tasks will be set to `wrapping`. */
|
|
18
18
|
routing?: any;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
@@ -7,7 +7,7 @@ import V1 from "../V1";
|
|
|
7
7
|
export interface ExternalCampaignListInstanceCreateOptions {
|
|
8
8
|
/** ID of the preregistered campaign. */
|
|
9
9
|
campaignId: string;
|
|
10
|
-
/** The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
10
|
+
/** The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with. */
|
|
11
11
|
messagingServiceSid: string;
|
|
12
12
|
}
|
|
13
13
|
export interface ExternalCampaignSolution {
|
|
@@ -55,7 +55,7 @@ export declare class ExternalCampaignInstance {
|
|
|
55
55
|
*/
|
|
56
56
|
campaignId: string;
|
|
57
57
|
/**
|
|
58
|
-
* The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
58
|
+
* The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with.
|
|
59
59
|
*/
|
|
60
60
|
messagingServiceSid: string;
|
|
61
61
|
/**
|
|
@@ -157,7 +157,7 @@ export declare class UsAppToPersonInstance {
|
|
|
157
157
|
*/
|
|
158
158
|
brandRegistrationSid: string;
|
|
159
159
|
/**
|
|
160
|
-
* The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
160
|
+
* The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with.
|
|
161
161
|
*/
|
|
162
162
|
messagingServiceSid: string;
|
|
163
163
|
/**
|
|
@@ -42,7 +42,7 @@ export interface ServiceContextUpdateOptions {
|
|
|
42
42
|
validityPeriod?: number;
|
|
43
43
|
/** Reserved. */
|
|
44
44
|
synchronousValidation?: boolean;
|
|
45
|
-
/** A string that describes the scenario in which the Messaging Service will be used.
|
|
45
|
+
/** A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`. */
|
|
46
46
|
usecase?: string;
|
|
47
47
|
/** A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service. */
|
|
48
48
|
useInboundWebhookOnNumber?: boolean;
|
|
@@ -79,7 +79,7 @@ export interface ServiceListInstanceCreateOptions {
|
|
|
79
79
|
validityPeriod?: number;
|
|
80
80
|
/** Reserved. */
|
|
81
81
|
synchronousValidation?: boolean;
|
|
82
|
-
/** A string that describes the scenario in which the Messaging Service will be used.
|
|
82
|
+
/** A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`. */
|
|
83
83
|
usecase?: string;
|
|
84
84
|
/** A boolean value that indicates either the webhook url configured on the phone number will be used or `inbound_request_url`/`fallback_url` url will be called when a message is received from the phone number. If this field is enabled then the webhook url defined on the phone number will override the `inbound_request_url`/`fallback_url` defined for the Messaging Service. */
|
|
85
85
|
useInboundWebhookOnNumber?: boolean;
|
|
@@ -305,7 +305,7 @@ export declare class ServiceInstance {
|
|
|
305
305
|
*/
|
|
306
306
|
links: Record<string, string>;
|
|
307
307
|
/**
|
|
308
|
-
* A string that describes the scenario in which the Messaging Service will be used.
|
|
308
|
+
* A string that describes the scenario in which the Messaging Service will be used. Possible values are `notifications`, `marketing`, `verification`, `discussion`, `poll`, `undeclared`.
|
|
309
309
|
*/
|
|
310
310
|
usecase: string;
|
|
311
311
|
/**
|
|
@@ -9,7 +9,7 @@ export type DependentHostedNumberOrderStatus = "received" | "verified" | "pendin
|
|
|
9
9
|
* Options to pass to each
|
|
10
10
|
*/
|
|
11
11
|
export interface DependentHostedNumberOrderListInstanceEachOptions {
|
|
12
|
-
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/
|
|
12
|
+
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. */
|
|
13
13
|
status?: DependentHostedNumberOrderStatus;
|
|
14
14
|
/** An E164 formatted phone number hosted by this HostedNumberOrder. */
|
|
15
15
|
phoneNumber?: string;
|
|
@@ -30,7 +30,7 @@ export interface DependentHostedNumberOrderListInstanceEachOptions {
|
|
|
30
30
|
* Options to pass to list
|
|
31
31
|
*/
|
|
32
32
|
export interface DependentHostedNumberOrderListInstanceOptions {
|
|
33
|
-
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/
|
|
33
|
+
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. */
|
|
34
34
|
status?: DependentHostedNumberOrderStatus;
|
|
35
35
|
/** An E164 formatted phone number hosted by this HostedNumberOrder. */
|
|
36
36
|
phoneNumber?: string;
|
|
@@ -47,7 +47,7 @@ export interface DependentHostedNumberOrderListInstanceOptions {
|
|
|
47
47
|
* Options to pass to page
|
|
48
48
|
*/
|
|
49
49
|
export interface DependentHostedNumberOrderListInstancePageOptions {
|
|
50
|
-
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/
|
|
50
|
+
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. */
|
|
51
51
|
status?: DependentHostedNumberOrderStatus;
|
|
52
52
|
/** An E164 formatted phone number hosted by this HostedNumberOrder. */
|
|
53
53
|
phoneNumber?: string;
|
|
@@ -28,7 +28,7 @@ export interface AuthorizationDocumentListInstanceCreateOptions {
|
|
|
28
28
|
export interface AuthorizationDocumentListInstanceEachOptions {
|
|
29
29
|
/** Email that this AuthorizationDocument will be sent to for signing. */
|
|
30
30
|
email?: string;
|
|
31
|
-
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/
|
|
31
|
+
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. */
|
|
32
32
|
status?: AuthorizationDocumentStatus;
|
|
33
33
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
34
34
|
pageSize?: number;
|
|
@@ -45,7 +45,7 @@ export interface AuthorizationDocumentListInstanceEachOptions {
|
|
|
45
45
|
export interface AuthorizationDocumentListInstanceOptions {
|
|
46
46
|
/** Email that this AuthorizationDocument will be sent to for signing. */
|
|
47
47
|
email?: string;
|
|
48
|
-
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/
|
|
48
|
+
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. */
|
|
49
49
|
status?: AuthorizationDocumentStatus;
|
|
50
50
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
51
51
|
pageSize?: number;
|
|
@@ -58,7 +58,7 @@ export interface AuthorizationDocumentListInstanceOptions {
|
|
|
58
58
|
export interface AuthorizationDocumentListInstancePageOptions {
|
|
59
59
|
/** Email that this AuthorizationDocument will be sent to for signing. */
|
|
60
60
|
email?: string;
|
|
61
|
-
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/
|
|
61
|
+
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. */
|
|
62
62
|
status?: AuthorizationDocumentStatus;
|
|
63
63
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
64
64
|
pageSize?: number;
|
|
@@ -184,7 +184,7 @@ export declare class HostedNumberOrderInstance {
|
|
|
184
184
|
*/
|
|
185
185
|
accountSid: string;
|
|
186
186
|
/**
|
|
187
|
-
* A 34 character string that uniquely identifies the [IncomingPhoneNumber](https://www.twilio.com/docs/api/
|
|
187
|
+
* A 34 character string that uniquely identifies the [IncomingPhoneNumber](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) resource that represents the phone number being hosted.
|
|
188
188
|
*/
|
|
189
189
|
incomingPhoneNumberSid: string;
|
|
190
190
|
/**
|
|
@@ -192,7 +192,7 @@ export declare class HostedNumberOrderInstance {
|
|
|
192
192
|
*/
|
|
193
193
|
addressSid: string;
|
|
194
194
|
/**
|
|
195
|
-
* A 34 character string that uniquely identifies the [Authorization Document](https://www.twilio.com/docs/
|
|
195
|
+
* A 34 character string that uniquely identifies the [Authorization Document](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource) the user needs to sign.
|
|
196
196
|
*/
|
|
197
197
|
signingDocumentSid: string;
|
|
198
198
|
/**
|
package/lib/rest/preview/hosted_numbers/authorizationDocument/dependentHostedNumberOrder.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type DependentHostedNumberOrderVerificationType = "phone-call" | "phone-b
|
|
|
10
10
|
* Options to pass to each
|
|
11
11
|
*/
|
|
12
12
|
export interface DependentHostedNumberOrderListInstanceEachOptions {
|
|
13
|
-
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/
|
|
13
|
+
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. */
|
|
14
14
|
status?: DependentHostedNumberOrderStatus;
|
|
15
15
|
/** An E164 formatted phone number hosted by this HostedNumberOrder. */
|
|
16
16
|
phoneNumber?: string;
|
|
@@ -33,7 +33,7 @@ export interface DependentHostedNumberOrderListInstanceEachOptions {
|
|
|
33
33
|
* Options to pass to list
|
|
34
34
|
*/
|
|
35
35
|
export interface DependentHostedNumberOrderListInstanceOptions {
|
|
36
|
-
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/
|
|
36
|
+
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. */
|
|
37
37
|
status?: DependentHostedNumberOrderStatus;
|
|
38
38
|
/** An E164 formatted phone number hosted by this HostedNumberOrder. */
|
|
39
39
|
phoneNumber?: string;
|
|
@@ -52,7 +52,7 @@ export interface DependentHostedNumberOrderListInstanceOptions {
|
|
|
52
52
|
* Options to pass to page
|
|
53
53
|
*/
|
|
54
54
|
export interface DependentHostedNumberOrderListInstancePageOptions {
|
|
55
|
-
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/
|
|
55
|
+
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. */
|
|
56
56
|
status?: DependentHostedNumberOrderStatus;
|
|
57
57
|
/** An E164 formatted phone number hosted by this HostedNumberOrder. */
|
|
58
58
|
phoneNumber?: string;
|
|
@@ -47,7 +47,7 @@ export interface AuthorizationDocumentListInstanceCreateOptions {
|
|
|
47
47
|
export interface AuthorizationDocumentListInstanceEachOptions {
|
|
48
48
|
/** Email that this AuthorizationDocument will be sent to for signing. */
|
|
49
49
|
email?: string;
|
|
50
|
-
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/
|
|
50
|
+
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. */
|
|
51
51
|
status?: AuthorizationDocumentStatus;
|
|
52
52
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
53
53
|
pageSize?: number;
|
|
@@ -64,7 +64,7 @@ export interface AuthorizationDocumentListInstanceEachOptions {
|
|
|
64
64
|
export interface AuthorizationDocumentListInstanceOptions {
|
|
65
65
|
/** Email that this AuthorizationDocument will be sent to for signing. */
|
|
66
66
|
email?: string;
|
|
67
|
-
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/
|
|
67
|
+
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. */
|
|
68
68
|
status?: AuthorizationDocumentStatus;
|
|
69
69
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
70
70
|
pageSize?: number;
|
|
@@ -77,7 +77,7 @@ export interface AuthorizationDocumentListInstanceOptions {
|
|
|
77
77
|
export interface AuthorizationDocumentListInstancePageOptions {
|
|
78
78
|
/** Email that this AuthorizationDocument will be sent to for signing. */
|
|
79
79
|
email?: string;
|
|
80
|
-
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/
|
|
80
|
+
/** Status of an instance resource. It can hold one of the values: 1. opened 2. signing, 3. signed LOA, 4. canceled, 5. failed. See the section entitled [Status Values](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource#status-values) for more information on each of these statuses. */
|
|
81
81
|
status?: AuthorizationDocumentStatus;
|
|
82
82
|
/** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
|
|
83
83
|
pageSize?: number;
|
|
@@ -234,7 +234,7 @@ export declare class HostedNumberOrderInstance {
|
|
|
234
234
|
*/
|
|
235
235
|
accountSid: string;
|
|
236
236
|
/**
|
|
237
|
-
* A 34 character string that uniquely identifies the [IncomingPhoneNumber](https://www.twilio.com/docs/api/
|
|
237
|
+
* A 34 character string that uniquely identifies the [IncomingPhoneNumber](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) resource that represents the phone number being hosted.
|
|
238
238
|
*/
|
|
239
239
|
incomingPhoneNumberSid: string;
|
|
240
240
|
/**
|
|
@@ -242,7 +242,7 @@ export declare class HostedNumberOrderInstance {
|
|
|
242
242
|
*/
|
|
243
243
|
addressSid: string;
|
|
244
244
|
/**
|
|
245
|
-
* A 34 character string that uniquely identifies the [Authorization Document](https://www.twilio.com/docs/
|
|
245
|
+
* A 34 character string that uniquely identifies the [Authorization Document](https://www.twilio.com/docs/phone-numbers/hosted-numbers/hosted-numbers-api/authorization-document-resource) the user needs to sign.
|
|
246
246
|
*/
|
|
247
247
|
signingDocumentSid: string;
|
|
248
248
|
/**
|
|
@@ -24,7 +24,7 @@ export interface ServiceContextUpdateOptions {
|
|
|
24
24
|
numberSelectionBehavior?: ServiceNumberSelectionBehavior;
|
|
25
25
|
/** The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. */
|
|
26
26
|
interceptCallbackUrl?: string;
|
|
27
|
-
/** The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. */
|
|
27
|
+
/** The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/en-us/serverless/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. */
|
|
28
28
|
outOfSessionCallbackUrl?: string;
|
|
29
29
|
/** The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. */
|
|
30
30
|
chatInstanceSid?: string;
|
|
@@ -45,7 +45,7 @@ export interface ServiceListInstanceCreateOptions {
|
|
|
45
45
|
numberSelectionBehavior?: ServiceNumberSelectionBehavior;
|
|
46
46
|
/** The URL we call on each interaction. If we receive a 403 status, we block the interaction; otherwise the interaction continues. */
|
|
47
47
|
interceptCallbackUrl?: string;
|
|
48
|
-
/** The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. */
|
|
48
|
+
/** The URL we should call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/en-us/serverless/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information. */
|
|
49
49
|
outOfSessionCallbackUrl?: string;
|
|
50
50
|
/** The SID of the Chat Service Instance managed by Proxy Service. The Chat Service enables Proxy to forward SMS and channel messages to this chat instance. This is a one-to-one relationship. */
|
|
51
51
|
chatInstanceSid?: string;
|
|
@@ -206,7 +206,7 @@ export declare class ServiceInstance {
|
|
|
206
206
|
*/
|
|
207
207
|
interceptCallbackUrl: string;
|
|
208
208
|
/**
|
|
209
|
-
* The URL we call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information.
|
|
209
|
+
* The URL we call when an inbound call or SMS action occurs on a closed or non-existent Session. If your server (or a Twilio [function](https://www.twilio.com/en-us/serverless/functions)) responds with valid [TwiML](https://www.twilio.com/docs/voice/twiml), we will process it. This means it is possible, for example, to play a message for a call, send an automated text message response, or redirect a call to another Phone Number. See [Out-of-Session Callback Response Guide](https://www.twilio.com/docs/proxy/out-session-callback-response-guide) for more information.
|
|
210
210
|
*/
|
|
211
211
|
outOfSessionCallbackUrl: string;
|
|
212
212
|
/**
|
|
@@ -7,7 +7,7 @@ import V2 from "../../V2";
|
|
|
7
7
|
* Options to pass to update a MessagingConfigurationInstance
|
|
8
8
|
*/
|
|
9
9
|
export interface MessagingConfigurationContextUpdateOptions {
|
|
10
|
-
/** The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
10
|
+
/** The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to be used to send SMS to the country of this configuration. */
|
|
11
11
|
messagingServiceSid: string;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
@@ -16,7 +16,7 @@ export interface MessagingConfigurationContextUpdateOptions {
|
|
|
16
16
|
export interface MessagingConfigurationListInstanceCreateOptions {
|
|
17
17
|
/** The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value `all`. */
|
|
18
18
|
country: string;
|
|
19
|
-
/** The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
19
|
+
/** The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to be used to send SMS to the country of this configuration. */
|
|
20
20
|
messagingServiceSid: string;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -134,7 +134,7 @@ export declare class MessagingConfigurationInstance {
|
|
|
134
134
|
*/
|
|
135
135
|
country: string;
|
|
136
136
|
/**
|
|
137
|
-
* The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/
|
|
137
|
+
* The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) to be used to send SMS to the country of this configuration.
|
|
138
138
|
*/
|
|
139
139
|
messagingServiceSid: string;
|
|
140
140
|
/**
|