twilio 5.7.0 → 5.7.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/lib/rest/api/v2010/account/address/dependentPhoneNumber.d.ts +15 -10
- package/lib/rest/api/v2010/account/address/dependentPhoneNumber.js +2 -2
- package/lib/rest/api/v2010/account/authorizedConnectApp.d.ts +3 -0
- package/lib/rest/api/v2010/account/connectApp.d.ts +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/local.d.ts +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/mobile.d.ts +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber/tollFree.d.ts +3 -0
- package/lib/rest/api/v2010/account/incomingPhoneNumber.d.ts +3 -0
- package/lib/rest/api/v2010/account/recording.d.ts +1 -1
- package/lib/rest/api/v2010/account/usage/trigger.d.ts +3 -0
- package/lib/rest/chat/v1/credential.d.ts +3 -0
- package/lib/rest/chat/v1/service/channel.d.ts +3 -0
- package/lib/rest/chat/v1/service/role.d.ts +3 -0
- package/lib/rest/chat/v1/service/user/userChannel.d.ts +3 -0
- package/lib/rest/chat/v2/credential.d.ts +3 -0
- package/lib/rest/chat/v2/service/channel.d.ts +3 -0
- package/lib/rest/chat/v2/service/role.d.ts +3 -0
- package/lib/rest/chat/v2/service/user/userChannel.d.ts +3 -0
- package/lib/rest/chat/v3/channel.d.ts +3 -0
- package/lib/rest/content/v2/content.d.ts +6 -6
- package/lib/rest/content/v2/contentAndApprovals.d.ts +9 -9
- package/lib/rest/conversations/v1/addressConfiguration.d.ts +3 -3
- package/lib/rest/conversations/v1/conversation/message/deliveryReceipt.d.ts +6 -3
- package/lib/rest/conversations/v1/conversation/message.d.ts +3 -3
- package/lib/rest/conversations/v1/conversation/participant.d.ts +3 -3
- package/lib/rest/conversations/v1/conversation/webhook.d.ts +3 -3
- package/lib/rest/conversations/v1/conversation.d.ts +3 -3
- package/lib/rest/conversations/v1/credential.d.ts +6 -3
- package/lib/rest/conversations/v1/participantConversation.d.ts +6 -3
- package/lib/rest/conversations/v1/role.d.ts +6 -3
- package/lib/rest/conversations/v1/service/binding.d.ts +3 -3
- package/lib/rest/conversations/v1/service/conversation/message/deliveryReceipt.d.ts +6 -3
- package/lib/rest/conversations/v1/service/conversation/message.d.ts +3 -3
- package/lib/rest/conversations/v1/service/conversation/participant.d.ts +3 -3
- package/lib/rest/conversations/v1/service/conversation/webhook.d.ts +3 -3
- package/lib/rest/conversations/v1/service/conversation.d.ts +3 -3
- package/lib/rest/conversations/v1/service/participantConversation.d.ts +6 -3
- package/lib/rest/conversations/v1/service/role.d.ts +6 -3
- package/lib/rest/conversations/v1/service/user/userConversation.d.ts +6 -3
- package/lib/rest/conversations/v1/service/user.d.ts +3 -3
- package/lib/rest/conversations/v1/service.d.ts +3 -3
- package/lib/rest/conversations/v1/user/userConversation.d.ts +6 -3
- package/lib/rest/conversations/v1/user.d.ts +3 -3
- package/lib/rest/flexApi/v1/interaction/interactionChannel/interactionTransfer.d.ts +6 -0
- package/lib/rest/flexApi/v1/interaction/interactionChannel.d.ts +3 -0
- package/lib/rest/frontlineApi/v1/user.d.ts +3 -0
- package/lib/rest/intelligence/v2/service.d.ts +3 -0
- package/lib/rest/knowledge/v1/knowledge.d.ts +6 -0
- package/lib/rest/knowledge/v1/knowledge.js +2 -0
- package/lib/rest/lookups/v2/phoneNumber.d.ts +3 -0
- package/lib/rest/messaging/v1/service/destinationAlphaSender.d.ts +6 -0
- package/lib/rest/messaging/v1/service/destinationAlphaSender.js +2 -0
- package/lib/rest/notify/v1/credential.d.ts +3 -0
- package/lib/rest/numbers/V1.d.ts +5 -5
- package/lib/rest/numbers/V1.js +8 -6
- package/lib/rest/numbers/v1/{webhook.d.ts → portingWebhookConfigurationFetch.d.ts} +10 -10
- package/lib/rest/numbers/v1/{webhook.js → portingWebhookConfigurationFetch.js} +6 -6
- package/lib/rest/proxy/v1/service/session/interaction.d.ts +3 -0
- package/lib/rest/proxy/v1/service/session/participant/messageInteraction.d.ts +3 -0
- package/lib/rest/supersim/v1/sim/billingPeriod.d.ts +3 -0
- package/lib/rest/sync/v1/service/document/documentPermission.d.ts +3 -3
- package/lib/rest/sync/v1/service/document.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncList/syncListItem.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncList/syncListPermission.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncList.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncMap/syncMapItem.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncMap/syncMapPermission.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncMap.d.ts +3 -3
- package/lib/rest/sync/v1/service/syncStream.d.ts +3 -3
- package/lib/rest/sync/v1/service.d.ts +3 -3
- package/lib/rest/taskrouter/v1/workspace/task/reservation.d.ts +3 -0
- package/lib/rest/taskrouter/v1/workspace/task.d.ts +3 -0
- package/lib/rest/taskrouter/v1/workspace/worker/reservation.d.ts +3 -0
- package/lib/rest/taskrouter/v1/workspace.d.ts +3 -0
- package/lib/rest/trunking/v1/trunk/phoneNumber.d.ts +3 -0
- package/lib/rest/trunking/v1/trunk/recording.d.ts +6 -0
- package/lib/rest/trunking/v1/trunk.d.ts +3 -0
- package/lib/rest/verify/v2/form.d.ts +3 -0
- package/lib/rest/verify/v2/service/accessToken.d.ts +3 -0
- package/lib/rest/verify/v2/service/entity/challenge.d.ts +9 -0
- package/lib/rest/verify/v2/service/entity/factor.d.ts +6 -0
- package/lib/rest/verify/v2/service/entity/newFactor.d.ts +6 -0
- package/lib/rest/verify/v2/service/webhook.d.ts +3 -0
- package/lib/rest/verify/v2/verificationAttempt.d.ts +4 -1
- package/lib/rest/video/v1/composition.d.ts +3 -3
- package/lib/rest/video/v1/recording.d.ts +3 -3
- package/lib/twiml/VoiceResponse.d.ts +1 -1
- package/package.json +1 -1
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");
|
|
27
28
|
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,6 +79,13 @@ 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
|
+
}
|
|
82
89
|
/** Getter for signingRequestConfigurations resource */
|
|
83
90
|
get signingRequestConfigurations() {
|
|
84
91
|
this._signingRequestConfigurations =
|
|
@@ -86,10 +93,5 @@ class V1 extends Version_1.default {
|
|
|
86
93
|
(0, signingRequestConfiguration_1.SigningRequestConfigurationListInstance)(this);
|
|
87
94
|
return this._signingRequestConfigurations;
|
|
88
95
|
}
|
|
89
|
-
/** Getter for webhook resource */
|
|
90
|
-
get webhook() {
|
|
91
|
-
this._webhook = this._webhook || (0, webhook_1.WebhookListInstance)(this);
|
|
92
|
-
return this._webhook;
|
|
93
|
-
}
|
|
94
96
|
}
|
|
95
97
|
exports.default = V1;
|
|
@@ -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 PortingWebhookConfigurationFetchSolution {
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface PortingWebhookConfigurationFetchListInstance {
|
|
7
7
|
_version: V1;
|
|
8
|
-
_solution:
|
|
8
|
+
_solution: PortingWebhookConfigurationFetchSolution;
|
|
9
9
|
_uri: string;
|
|
10
10
|
/**
|
|
11
|
-
* Fetch a
|
|
11
|
+
* Fetch a PortingWebhookConfigurationFetchInstance
|
|
12
12
|
*
|
|
13
13
|
* @param callback - Callback to handle processed record
|
|
14
14
|
*
|
|
15
|
-
* @returns Resolves to processed
|
|
15
|
+
* @returns Resolves to processed PortingWebhookConfigurationFetchInstance
|
|
16
16
|
*/
|
|
17
|
-
fetch(callback?: (error: Error | null, item?:
|
|
17
|
+
fetch(callback?: (error: Error | null, item?: PortingWebhookConfigurationFetchInstance) => any): Promise<PortingWebhookConfigurationFetchInstance>;
|
|
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 PortingWebhookConfigurationFetchListInstance(version: V1): PortingWebhookConfigurationFetchListInstance;
|
|
25
|
+
interface PortingWebhookConfigurationFetchResource {
|
|
26
26
|
url: string;
|
|
27
27
|
port_in_target_url: string;
|
|
28
28
|
port_out_target_url: string;
|
|
@@ -30,9 +30,9 @@ interface WebhookResource {
|
|
|
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 PortingWebhookConfigurationFetchInstance {
|
|
34
34
|
protected _version: V1;
|
|
35
|
-
constructor(_version: V1, payload:
|
|
35
|
+
constructor(_version: V1, payload: PortingWebhookConfigurationFetchResource);
|
|
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.PortingWebhookConfigurationFetchInstance = exports.PortingWebhookConfigurationFetchListInstance = 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 PortingWebhookConfigurationFetchListInstance(version) {
|
|
21
21
|
const instance = {};
|
|
22
22
|
instance._version = version;
|
|
23
23
|
instance._solution = {};
|
|
@@ -30,7 +30,7 @@ function WebhookListInstance(version) {
|
|
|
30
30
|
method: "get",
|
|
31
31
|
headers,
|
|
32
32
|
});
|
|
33
|
-
operationPromise = operationPromise.then((payload) => new
|
|
33
|
+
operationPromise = operationPromise.then((payload) => new PortingWebhookConfigurationFetchInstance(operationVersion, payload));
|
|
34
34
|
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
35
35
|
return operationPromise;
|
|
36
36
|
};
|
|
@@ -42,8 +42,8 @@ function WebhookListInstance(version) {
|
|
|
42
42
|
};
|
|
43
43
|
return instance;
|
|
44
44
|
}
|
|
45
|
-
exports.
|
|
46
|
-
class
|
|
45
|
+
exports.PortingWebhookConfigurationFetchListInstance = PortingWebhookConfigurationFetchListInstance;
|
|
46
|
+
class PortingWebhookConfigurationFetchInstance {
|
|
47
47
|
constructor(_version, payload) {
|
|
48
48
|
this._version = _version;
|
|
49
49
|
this.url = payload.url;
|
|
@@ -72,4 +72,4 @@ class WebhookInstance {
|
|
|
72
72
|
return (0, util_1.inspect)(this.toJSON(), options);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
-
exports.
|
|
75
|
+
exports.PortingWebhookConfigurationFetchInstance = PortingWebhookConfigurationFetchInstance;
|
|
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V1 from "../../../V1";
|
|
6
|
+
/**
|
|
7
|
+
* The inbound resource status of the Interaction. Will always be `delivered` for messages and `in-progress` for calls.
|
|
8
|
+
*/
|
|
6
9
|
export type InteractionResourceStatus = "accepted" | "answered" | "busy" | "canceled" | "completed" | "deleted" | "delivered" | "delivery-unknown" | "failed" | "in-progress" | "initiated" | "no-answer" | "queued" | "received" | "receiving" | "ringing" | "scheduled" | "sending" | "sent" | "undelivered" | "unknown";
|
|
7
10
|
/**
|
|
8
11
|
* The Type of the Interaction. Can be: `message`, `voice` or `unknown`.
|
|
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../../http/response";
|
|
5
5
|
import V1 from "../../../../V1";
|
|
6
|
+
/**
|
|
7
|
+
* Always empty for created Message Interactions.
|
|
8
|
+
*/
|
|
6
9
|
export type MessageInteractionResourceStatus = "accepted" | "answered" | "busy" | "canceled" | "completed" | "deleted" | "delivered" | "delivery-unknown" | "failed" | "in-progress" | "initiated" | "no-answer" | "queued" | "received" | "receiving" | "ringing" | "scheduled" | "sending" | "sent" | "undelivered" | "unknown";
|
|
7
10
|
/**
|
|
8
11
|
* The Type of Message Interaction. This value is always `message`.
|
|
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../base/Page";
|
|
4
4
|
import Response from "../../../../http/response";
|
|
5
5
|
import V1 from "../../V1";
|
|
6
|
+
/**
|
|
7
|
+
* The type of Billing Period. Can be `ready` or `active`.
|
|
8
|
+
*/
|
|
6
9
|
export type BillingPeriodBpType = "ready" | "active";
|
|
7
10
|
/**
|
|
8
11
|
* Options to pass to each
|
|
@@ -18,7 +18,7 @@ export interface DocumentPermissionContextUpdateOptions {
|
|
|
18
18
|
* Options to pass to each
|
|
19
19
|
*/
|
|
20
20
|
export interface DocumentPermissionListInstanceEachOptions {
|
|
21
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
21
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
22
22
|
pageSize?: number;
|
|
23
23
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
24
24
|
callback?: (item: DocumentPermissionInstance, done: (err?: Error) => void) => void;
|
|
@@ -31,7 +31,7 @@ export interface DocumentPermissionListInstanceEachOptions {
|
|
|
31
31
|
* Options to pass to list
|
|
32
32
|
*/
|
|
33
33
|
export interface DocumentPermissionListInstanceOptions {
|
|
34
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
34
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
35
35
|
pageSize?: number;
|
|
36
36
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
37
37
|
limit?: number;
|
|
@@ -40,7 +40,7 @@ export interface DocumentPermissionListInstanceOptions {
|
|
|
40
40
|
* Options to pass to page
|
|
41
41
|
*/
|
|
42
42
|
export interface DocumentPermissionListInstancePageOptions {
|
|
43
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
43
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
44
44
|
pageSize?: number;
|
|
45
45
|
/** Page Number, this value is simply for client state */
|
|
46
46
|
pageNumber?: number;
|
|
@@ -30,7 +30,7 @@ export interface DocumentListInstanceCreateOptions {
|
|
|
30
30
|
* Options to pass to each
|
|
31
31
|
*/
|
|
32
32
|
export interface DocumentListInstanceEachOptions {
|
|
33
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
33
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
34
34
|
pageSize?: number;
|
|
35
35
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
36
36
|
callback?: (item: DocumentInstance, done: (err?: Error) => void) => void;
|
|
@@ -43,7 +43,7 @@ export interface DocumentListInstanceEachOptions {
|
|
|
43
43
|
* Options to pass to list
|
|
44
44
|
*/
|
|
45
45
|
export interface DocumentListInstanceOptions {
|
|
46
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
46
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
47
47
|
pageSize?: number;
|
|
48
48
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
49
49
|
limit?: number;
|
|
@@ -52,7 +52,7 @@ export interface DocumentListInstanceOptions {
|
|
|
52
52
|
* Options to pass to page
|
|
53
53
|
*/
|
|
54
54
|
export interface DocumentListInstancePageOptions {
|
|
55
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
55
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
56
56
|
pageSize?: number;
|
|
57
57
|
/** Page Number, this value is simply for client state */
|
|
58
58
|
pageNumber?: number;
|
|
@@ -50,7 +50,7 @@ export interface SyncListItemListInstanceEachOptions {
|
|
|
50
50
|
from?: string;
|
|
51
51
|
/** Whether to include the List Item referenced by the `from` parameter. Can be: `inclusive` to include the List Item referenced by the `from` parameter or `exclusive` to start with the next List Item. The default value is `inclusive`. */
|
|
52
52
|
bounds?: SyncListItemQueryFromBoundType;
|
|
53
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
53
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
54
54
|
pageSize?: number;
|
|
55
55
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
56
56
|
callback?: (item: SyncListItemInstance, done: (err?: Error) => void) => void;
|
|
@@ -69,7 +69,7 @@ export interface SyncListItemListInstanceOptions {
|
|
|
69
69
|
from?: string;
|
|
70
70
|
/** Whether to include the List Item referenced by the `from` parameter. Can be: `inclusive` to include the List Item referenced by the `from` parameter or `exclusive` to start with the next List Item. The default value is `inclusive`. */
|
|
71
71
|
bounds?: SyncListItemQueryFromBoundType;
|
|
72
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
72
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
73
73
|
pageSize?: number;
|
|
74
74
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
75
75
|
limit?: number;
|
|
@@ -84,7 +84,7 @@ export interface SyncListItemListInstancePageOptions {
|
|
|
84
84
|
from?: string;
|
|
85
85
|
/** Whether to include the List Item referenced by the `from` parameter. Can be: `inclusive` to include the List Item referenced by the `from` parameter or `exclusive` to start with the next List Item. The default value is `inclusive`. */
|
|
86
86
|
bounds?: SyncListItemQueryFromBoundType;
|
|
87
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
87
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
88
88
|
pageSize?: number;
|
|
89
89
|
/** Page Number, this value is simply for client state */
|
|
90
90
|
pageNumber?: number;
|
|
@@ -18,7 +18,7 @@ export interface SyncListPermissionContextUpdateOptions {
|
|
|
18
18
|
* Options to pass to each
|
|
19
19
|
*/
|
|
20
20
|
export interface SyncListPermissionListInstanceEachOptions {
|
|
21
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
21
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
22
22
|
pageSize?: number;
|
|
23
23
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
24
24
|
callback?: (item: SyncListPermissionInstance, done: (err?: Error) => void) => void;
|
|
@@ -31,7 +31,7 @@ export interface SyncListPermissionListInstanceEachOptions {
|
|
|
31
31
|
* Options to pass to list
|
|
32
32
|
*/
|
|
33
33
|
export interface SyncListPermissionListInstanceOptions {
|
|
34
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
34
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
35
35
|
pageSize?: number;
|
|
36
36
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
37
37
|
limit?: number;
|
|
@@ -40,7 +40,7 @@ export interface SyncListPermissionListInstanceOptions {
|
|
|
40
40
|
* Options to pass to page
|
|
41
41
|
*/
|
|
42
42
|
export interface SyncListPermissionListInstancePageOptions {
|
|
43
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
43
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
44
44
|
pageSize?: number;
|
|
45
45
|
/** Page Number, this value is simply for client state */
|
|
46
46
|
pageNumber?: number;
|
|
@@ -29,7 +29,7 @@ export interface SyncListListInstanceCreateOptions {
|
|
|
29
29
|
* Options to pass to each
|
|
30
30
|
*/
|
|
31
31
|
export interface SyncListListInstanceEachOptions {
|
|
32
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
32
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
33
33
|
pageSize?: number;
|
|
34
34
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
35
35
|
callback?: (item: SyncListInstance, done: (err?: Error) => void) => void;
|
|
@@ -42,7 +42,7 @@ export interface SyncListListInstanceEachOptions {
|
|
|
42
42
|
* Options to pass to list
|
|
43
43
|
*/
|
|
44
44
|
export interface SyncListListInstanceOptions {
|
|
45
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
45
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
46
46
|
pageSize?: number;
|
|
47
47
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
48
48
|
limit?: number;
|
|
@@ -51,7 +51,7 @@ export interface SyncListListInstanceOptions {
|
|
|
51
51
|
* Options to pass to page
|
|
52
52
|
*/
|
|
53
53
|
export interface SyncListListInstancePageOptions {
|
|
54
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
54
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
55
55
|
pageSize?: number;
|
|
56
56
|
/** Page Number, this value is simply for client state */
|
|
57
57
|
pageNumber?: number;
|
|
@@ -52,7 +52,7 @@ export interface SyncMapItemListInstanceEachOptions {
|
|
|
52
52
|
from?: string;
|
|
53
53
|
/** Whether to include the Map Item referenced by the `from` parameter. Can be: `inclusive` to include the Map Item referenced by the `from` parameter or `exclusive` to start with the next Map Item. The default value is `inclusive`. */
|
|
54
54
|
bounds?: SyncMapItemQueryFromBoundType;
|
|
55
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
55
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
56
56
|
pageSize?: number;
|
|
57
57
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
58
58
|
callback?: (item: SyncMapItemInstance, done: (err?: Error) => void) => void;
|
|
@@ -71,7 +71,7 @@ export interface SyncMapItemListInstanceOptions {
|
|
|
71
71
|
from?: string;
|
|
72
72
|
/** Whether to include the Map Item referenced by the `from` parameter. Can be: `inclusive` to include the Map Item referenced by the `from` parameter or `exclusive` to start with the next Map Item. The default value is `inclusive`. */
|
|
73
73
|
bounds?: SyncMapItemQueryFromBoundType;
|
|
74
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
74
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
75
75
|
pageSize?: number;
|
|
76
76
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
77
77
|
limit?: number;
|
|
@@ -86,7 +86,7 @@ export interface SyncMapItemListInstancePageOptions {
|
|
|
86
86
|
from?: string;
|
|
87
87
|
/** Whether to include the Map Item referenced by the `from` parameter. Can be: `inclusive` to include the Map Item referenced by the `from` parameter or `exclusive` to start with the next Map Item. The default value is `inclusive`. */
|
|
88
88
|
bounds?: SyncMapItemQueryFromBoundType;
|
|
89
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
89
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
90
90
|
pageSize?: number;
|
|
91
91
|
/** Page Number, this value is simply for client state */
|
|
92
92
|
pageNumber?: number;
|
|
@@ -18,7 +18,7 @@ export interface SyncMapPermissionContextUpdateOptions {
|
|
|
18
18
|
* Options to pass to each
|
|
19
19
|
*/
|
|
20
20
|
export interface SyncMapPermissionListInstanceEachOptions {
|
|
21
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
21
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
22
22
|
pageSize?: number;
|
|
23
23
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
24
24
|
callback?: (item: SyncMapPermissionInstance, done: (err?: Error) => void) => void;
|
|
@@ -31,7 +31,7 @@ export interface SyncMapPermissionListInstanceEachOptions {
|
|
|
31
31
|
* Options to pass to list
|
|
32
32
|
*/
|
|
33
33
|
export interface SyncMapPermissionListInstanceOptions {
|
|
34
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
34
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
35
35
|
pageSize?: number;
|
|
36
36
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
37
37
|
limit?: number;
|
|
@@ -40,7 +40,7 @@ export interface SyncMapPermissionListInstanceOptions {
|
|
|
40
40
|
* Options to pass to page
|
|
41
41
|
*/
|
|
42
42
|
export interface SyncMapPermissionListInstancePageOptions {
|
|
43
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
43
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
44
44
|
pageSize?: number;
|
|
45
45
|
/** Page Number, this value is simply for client state */
|
|
46
46
|
pageNumber?: number;
|
|
@@ -29,7 +29,7 @@ export interface SyncMapListInstanceCreateOptions {
|
|
|
29
29
|
* Options to pass to each
|
|
30
30
|
*/
|
|
31
31
|
export interface SyncMapListInstanceEachOptions {
|
|
32
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
32
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
33
33
|
pageSize?: number;
|
|
34
34
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
35
35
|
callback?: (item: SyncMapInstance, done: (err?: Error) => void) => void;
|
|
@@ -42,7 +42,7 @@ export interface SyncMapListInstanceEachOptions {
|
|
|
42
42
|
* Options to pass to list
|
|
43
43
|
*/
|
|
44
44
|
export interface SyncMapListInstanceOptions {
|
|
45
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
45
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
46
46
|
pageSize?: number;
|
|
47
47
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
48
48
|
limit?: number;
|
|
@@ -51,7 +51,7 @@ export interface SyncMapListInstanceOptions {
|
|
|
51
51
|
* Options to pass to page
|
|
52
52
|
*/
|
|
53
53
|
export interface SyncMapListInstancePageOptions {
|
|
54
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
54
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
55
55
|
pageSize?: number;
|
|
56
56
|
/** Page Number, this value is simply for client state */
|
|
57
57
|
pageNumber?: number;
|
|
@@ -24,7 +24,7 @@ export interface SyncStreamListInstanceCreateOptions {
|
|
|
24
24
|
* Options to pass to each
|
|
25
25
|
*/
|
|
26
26
|
export interface SyncStreamListInstanceEachOptions {
|
|
27
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
27
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
28
28
|
pageSize?: number;
|
|
29
29
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
30
30
|
callback?: (item: SyncStreamInstance, done: (err?: Error) => void) => void;
|
|
@@ -37,7 +37,7 @@ export interface SyncStreamListInstanceEachOptions {
|
|
|
37
37
|
* Options to pass to list
|
|
38
38
|
*/
|
|
39
39
|
export interface SyncStreamListInstanceOptions {
|
|
40
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
40
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
41
41
|
pageSize?: number;
|
|
42
42
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
43
43
|
limit?: number;
|
|
@@ -46,7 +46,7 @@ export interface SyncStreamListInstanceOptions {
|
|
|
46
46
|
* Options to pass to page
|
|
47
47
|
*/
|
|
48
48
|
export interface SyncStreamListInstancePageOptions {
|
|
49
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
49
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
50
50
|
pageSize?: number;
|
|
51
51
|
/** Page Number, this value is simply for client state */
|
|
52
52
|
pageNumber?: number;
|
|
@@ -49,7 +49,7 @@ export interface ServiceListInstanceCreateOptions {
|
|
|
49
49
|
* Options to pass to each
|
|
50
50
|
*/
|
|
51
51
|
export interface ServiceListInstanceEachOptions {
|
|
52
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
52
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
53
53
|
pageSize?: number;
|
|
54
54
|
/** Function to process each record. If this and a positional callback are passed, this one will be used */
|
|
55
55
|
callback?: (item: ServiceInstance, done: (err?: Error) => void) => void;
|
|
@@ -62,7 +62,7 @@ export interface ServiceListInstanceEachOptions {
|
|
|
62
62
|
* Options to pass to list
|
|
63
63
|
*/
|
|
64
64
|
export interface ServiceListInstanceOptions {
|
|
65
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
65
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
66
66
|
pageSize?: number;
|
|
67
67
|
/** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
|
|
68
68
|
limit?: number;
|
|
@@ -71,7 +71,7 @@ export interface ServiceListInstanceOptions {
|
|
|
71
71
|
* Options to pass to page
|
|
72
72
|
*/
|
|
73
73
|
export interface ServiceListInstancePageOptions {
|
|
74
|
-
/** How many resources to return in each list page. The default is 50, and the maximum is
|
|
74
|
+
/** How many resources to return in each list page. The default is 50, and the maximum is 100. */
|
|
75
75
|
pageSize?: number;
|
|
76
76
|
/** Page Number, this value is simply for client state */
|
|
77
77
|
pageNumber?: number;
|
|
@@ -5,6 +5,9 @@ import Response from "../../../../../http/response";
|
|
|
5
5
|
import V1 from "../../../V1";
|
|
6
6
|
export type ReservationCallStatus = "initiated" | "ringing" | "answered" | "completed";
|
|
7
7
|
export type ReservationConferenceEvent = "start" | "end" | "join" | "leave" | "mute" | "hold" | "speaker";
|
|
8
|
+
/**
|
|
9
|
+
* The current status of the reservation. Can be: `pending`, `accepted`, `rejected`, or `timeout`.
|
|
10
|
+
*/
|
|
8
11
|
export type ReservationStatus = "pending" | "accepted" | "rejected" | "timeout" | "canceled" | "rescinded" | "wrapping" | "completed";
|
|
9
12
|
export type ReservationSupervisorMode = "monitor" | "whisper" | "barge";
|
|
10
13
|
/**
|
|
@@ -4,6 +4,9 @@ import Page, { TwilioResponsePayload } from "../../../../base/Page";
|
|
|
4
4
|
import Response from "../../../../http/response";
|
|
5
5
|
import V1 from "../../V1";
|
|
6
6
|
import { ReservationListInstance } from "./task/reservation";
|
|
7
|
+
/**
|
|
8
|
+
* The current status of the Task\'s assignment. Can be: `pending`, `reserved`, `assigned`, `canceled`, `wrapping`, or `completed`.
|
|
9
|
+
*/
|
|
7
10
|
export type TaskStatus = "pending" | "reserved" | "assigned" | "canceled" | "completed" | "wrapping";
|
|
8
11
|
/**
|
|
9
12
|
* Options to pass to remove a TaskInstance
|
|
@@ -5,6 +5,9 @@ import Response from "../../../../../http/response";
|
|
|
5
5
|
import V1 from "../../../V1";
|
|
6
6
|
export type ReservationCallStatus = "initiated" | "ringing" | "answered" | "completed";
|
|
7
7
|
export type ReservationConferenceEvent = "start" | "end" | "join" | "leave" | "mute" | "hold" | "speaker";
|
|
8
|
+
/**
|
|
9
|
+
* The current status of the reservation. Can be: `pending`, `accepted`, `rejected`, `timeout`, `canceled`, or `rescinded`.
|
|
10
|
+
*/
|
|
8
11
|
export type ReservationStatus = "pending" | "accepted" | "rejected" | "timeout" | "canceled" | "rescinded" | "wrapping" | "completed";
|
|
9
12
|
/**
|
|
10
13
|
* Options to pass to update a ReservationInstance
|
|
@@ -13,6 +13,9 @@ import { WorkflowListInstance } from "./workspace/workflow";
|
|
|
13
13
|
import { WorkspaceCumulativeStatisticsListInstance } from "./workspace/workspaceCumulativeStatistics";
|
|
14
14
|
import { WorkspaceRealTimeStatisticsListInstance } from "./workspace/workspaceRealTimeStatistics";
|
|
15
15
|
import { WorkspaceStatisticsListInstance } from "./workspace/workspaceStatistics";
|
|
16
|
+
/**
|
|
17
|
+
* The type of TaskQueue to prioritize when Workers are receiving Tasks from both types of TaskQueues. Can be: `LIFO` or `FIFO` and the default is `FIFO`. For more information, see [Queue Ordering](https://www.twilio.com/docs/taskrouter/queue-ordering-last-first-out-lifo).
|
|
18
|
+
*/
|
|
16
19
|
export type WorkspaceQueueOrder = "FIFO" | "LIFO";
|
|
17
20
|
/**
|
|
18
21
|
* Options to pass to update a WorkspaceInstance
|
|
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../base/Page";
|
|
4
4
|
import Response from "../../../../http/response";
|
|
5
5
|
import V1 from "../../V1";
|
|
6
|
+
/**
|
|
7
|
+
* Whether the phone number requires an [Address](https://www.twilio.com/docs/usage/api/address) registered with Twilio and, if so, what type. Can be: `none`, `any`, `local`, or `foreign`.
|
|
8
|
+
*/
|
|
6
9
|
export type PhoneNumberAddressRequirement = "none" | "any" | "local" | "foreign";
|
|
7
10
|
/**
|
|
8
11
|
* Options to pass to create a PhoneNumberInstance
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V1 from "../../V1";
|
|
4
|
+
/**
|
|
5
|
+
* The recording mode for the trunk. Can be do-not-record (default), record-from-ringing, record-from-answer, record-from-ringing-dual, or record-from-answer-dual.
|
|
6
|
+
*/
|
|
4
7
|
export type RecordingRecordingMode = "do-not-record" | "record-from-ringing" | "record-from-answer" | "record-from-ringing-dual" | "record-from-answer-dual";
|
|
8
|
+
/**
|
|
9
|
+
* The recording trim setting for the trunk. Can be do-not-trim (default) or trim-silence.
|
|
10
|
+
*/
|
|
5
11
|
export type RecordingRecordingTrim = "trim-silence" | "do-not-trim";
|
|
6
12
|
/**
|
|
7
13
|
* Options to pass to update a RecordingInstance
|
|
@@ -12,6 +12,9 @@ import { RecordingListInstance } from "./trunk/recording";
|
|
|
12
12
|
* Caller Id for transfer target. Can be: `from-transferee` (default) or `from-transferor`.
|
|
13
13
|
*/
|
|
14
14
|
export type TrunkTransferCallerId = "from-transferee" | "from-transferor";
|
|
15
|
+
/**
|
|
16
|
+
* The call transfer settings for the trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more information.
|
|
17
|
+
*/
|
|
15
18
|
export type TrunkTransferSetting = "disable-all" | "enable-all" | "sip-only";
|
|
16
19
|
/**
|
|
17
20
|
* Options to pass to update a TrunkInstance
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2 from "../V2";
|
|
4
|
+
/**
|
|
5
|
+
* The Type of this Form. Currently only `form-push` is supported.
|
|
6
|
+
*/
|
|
4
7
|
export type FormFormTypes = "form-push";
|
|
5
8
|
export interface FormContext {
|
|
6
9
|
/**
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2 from "../../V2";
|
|
4
|
+
/**
|
|
5
|
+
* The Type of the Factor. Currently only `push` is supported.
|
|
6
|
+
*/
|
|
4
7
|
export type AccessTokenFactorTypes = "push";
|
|
5
8
|
/**
|
|
6
9
|
* Options to pass to create a AccessTokenInstance
|
|
@@ -4,8 +4,17 @@ import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2 from "../../../V2";
|
|
6
6
|
import { NotificationListInstance } from "./challenge/notification";
|
|
7
|
+
/**
|
|
8
|
+
* Reason for the Challenge to be in certain `status`. One of `none`, `not_needed` or `not_requested`.
|
|
9
|
+
*/
|
|
7
10
|
export type ChallengeChallengeReasons = "none" | "not_needed" | "not_requested";
|
|
11
|
+
/**
|
|
12
|
+
* The Status of this Challenge. One of `pending`, `expired`, `approved` or `denied`.
|
|
13
|
+
*/
|
|
8
14
|
export type ChallengeChallengeStatuses = "pending" | "expired" | "approved" | "denied";
|
|
15
|
+
/**
|
|
16
|
+
* The Factor Type of this Challenge. Currently `push` and `totp` are supported.
|
|
17
|
+
*/
|
|
9
18
|
export type ChallengeFactorTypes = "push" | "totp";
|
|
10
19
|
export type ChallengeListOrders = "asc" | "desc";
|
|
11
20
|
/**
|
|
@@ -3,7 +3,13 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../../base/Page";
|
|
4
4
|
import Response from "../../../../../http/response";
|
|
5
5
|
import V2 from "../../../V2";
|
|
6
|
+
/**
|
|
7
|
+
* The Status of this Factor. One of `unverified` or `verified`.
|
|
8
|
+
*/
|
|
6
9
|
export type FactorFactorStatuses = "unverified" | "verified";
|
|
10
|
+
/**
|
|
11
|
+
* The Type of this Factor. Currently `push` and `totp` are supported.
|
|
12
|
+
*/
|
|
7
13
|
export type FactorFactorTypes = "push" | "totp";
|
|
8
14
|
export type FactorTotpAlgorithms = "sha1" | "sha256" | "sha512";
|
|
9
15
|
/**
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { inspect, InspectOptions } from "util";
|
|
3
3
|
import V2 from "../../../V2";
|
|
4
|
+
/**
|
|
5
|
+
* The Status of this Factor. One of `unverified` or `verified`.
|
|
6
|
+
*/
|
|
4
7
|
export type NewFactorFactorStatuses = "unverified" | "verified";
|
|
8
|
+
/**
|
|
9
|
+
* The Type of this Factor. Currently `push` and `totp` are supported.
|
|
10
|
+
*/
|
|
5
11
|
export type NewFactorFactorTypes = "push" | "totp";
|
|
6
12
|
export type NewFactorNotificationPlatforms = "apn" | "fcm" | "none";
|
|
7
13
|
export type NewFactorTotpAlgorithms = "sha1" | "sha256" | "sha512";
|
|
@@ -3,6 +3,9 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../../base/Page";
|
|
4
4
|
import Response from "../../../../http/response";
|
|
5
5
|
import V2 from "../../V2";
|
|
6
|
+
/**
|
|
7
|
+
* The method to be used when calling the webhook\'s URL.
|
|
8
|
+
*/
|
|
6
9
|
export type WebhookMethods = "GET" | "POST";
|
|
7
10
|
/**
|
|
8
11
|
* The webhook status. Default value is `enabled`. One of: `enabled` or `disabled`
|
|
@@ -3,7 +3,10 @@ import { inspect, InspectOptions } from "util";
|
|
|
3
3
|
import Page, { TwilioResponsePayload } from "../../../base/Page";
|
|
4
4
|
import Response from "../../../http/response";
|
|
5
5
|
import V2 from "../V2";
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* A string specifying the communication channel used for the verification attempt. i.e SMS, CALL, etc.
|
|
8
|
+
*/
|
|
9
|
+
export type VerificationAttemptChannels = "sms" | "call" | "email" | "whatsapp" | "rbm" | "sna";
|
|
7
10
|
/**
|
|
8
11
|
* A string specifying the conversion status of the verification. A conversion happens when the user is able to provide the correct code. Possible values are `CONVERTED` and `UNCONVERTED`.
|
|
9
12
|
*/
|