twilio 5.13.1 → 6.0.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/README.md +2 -4
- package/lib/rest/MessagingBase.d.ts +3 -0
- package/lib/rest/MessagingBase.js +5 -0
- package/lib/rest/api/v2010/account/call/transcription.d.ts +2 -0
- package/lib/rest/api/v2010/account/call/transcription.js +4 -0
- package/lib/rest/api/v2010/account/message.d.ts +2 -0
- package/lib/rest/api/v2010/account/message.js +4 -0
- package/lib/rest/flexApi/V1.d.ts +0 -5
- package/lib/rest/flexApi/V1.js +0 -7
- package/lib/rest/iam/V1.d.ts +3 -0
- package/lib/rest/iam/V1.js +5 -0
- package/lib/rest/iam/v1/rolePermission.d.ts +225 -0
- package/lib/rest/iam/v1/rolePermission.js +181 -0
- package/lib/rest/insights/v2/inbound.d.ts +8 -8
- package/lib/rest/insights/v2/inbound.js +4 -4
- package/lib/rest/insights/v2/outbound.d.ts +8 -8
- package/lib/rest/insights/v2/outbound.js +4 -4
- package/lib/rest/insights/v2/report.d.ts +8 -8
- package/lib/rest/insights/v2/report.js +4 -4
- package/lib/rest/messaging/V3.d.ts +15 -0
- package/lib/rest/messaging/V3.js +37 -0
- package/lib/rest/messaging/v2/channelsSender.d.ts +1 -1
- package/lib/rest/messaging/v3/typingIndicator.d.ts +90 -0
- package/lib/rest/messaging/v3/typingIndicator.js +114 -0
- package/lib/rest/numbers/v3/hostedNumberOrder.d.ts +1 -1
- package/lib/rest/numbers/v3/hostedNumberOrder.js +2 -1
- package/lib/rest/studio/v2/flow/execution.d.ts +12 -0
- package/lib/rest/studio/v2/flow/execution.js +6 -0
- package/lib/rest/verify/v2/service/approveChallenge.d.ts +6 -6
- package/lib/rest/verify/v2/service/approveChallenge.js +2 -2
- package/lib/rest/verify/v2/service/newChallenge.d.ts +6 -6
- package/lib/rest/verify/v2/service/newChallenge.js +2 -2
- package/lib/rest/verify/v2/service/verification.d.ts +1 -1
- package/lib/rest/video/v1/room.d.ts +4 -1
- package/lib/twiml/VoiceResponse.d.ts +10 -0
- package/package.json +2 -2
- package/lib/rest/flexApi/v1/createFlexInstance.d.ts +0 -165
- package/lib/rest/flexApi/v1/createFlexInstance.js +0 -165
|
@@ -38,13 +38,13 @@ export declare class InsightsV2CreatePhoneNumbersReportRequest {
|
|
|
38
38
|
}
|
|
39
39
|
export declare class InsightsV2CreatePhoneNumbersReportRequestTimeRange {
|
|
40
40
|
/**
|
|
41
|
-
* Start time of the report
|
|
41
|
+
* Start date time of the report
|
|
42
42
|
*/
|
|
43
|
-
"
|
|
43
|
+
"startDatetime"?: Date;
|
|
44
44
|
/**
|
|
45
|
-
* End time of the report
|
|
45
|
+
* End date time of the report
|
|
46
46
|
*/
|
|
47
|
-
"
|
|
47
|
+
"endDatetime"?: Date;
|
|
48
48
|
constructor(payload: any);
|
|
49
49
|
}
|
|
50
50
|
/**
|
|
@@ -115,13 +115,13 @@ export declare class ReportFilter {
|
|
|
115
115
|
}
|
|
116
116
|
export declare class ReportMetadata {
|
|
117
117
|
/**
|
|
118
|
-
* Start time of the report
|
|
118
|
+
* Start date time of the report
|
|
119
119
|
*/
|
|
120
|
-
"
|
|
120
|
+
"startDatetime"?: Date;
|
|
121
121
|
/**
|
|
122
|
-
* End time of the report
|
|
122
|
+
* End date time of the report
|
|
123
123
|
*/
|
|
124
|
-
"
|
|
124
|
+
"endDatetime"?: Date;
|
|
125
125
|
/**
|
|
126
126
|
* Filter values applied to the report
|
|
127
127
|
*/
|
|
@@ -49,8 +49,8 @@ class InsightsV2CreatePhoneNumbersReportRequest {
|
|
|
49
49
|
exports.InsightsV2CreatePhoneNumbersReportRequest = InsightsV2CreatePhoneNumbersReportRequest;
|
|
50
50
|
class InsightsV2CreatePhoneNumbersReportRequestTimeRange {
|
|
51
51
|
constructor(payload) {
|
|
52
|
-
this.
|
|
53
|
-
this.
|
|
52
|
+
this.startDatetime = payload["start_datetime"];
|
|
53
|
+
this.endDatetime = payload["end_datetime"];
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
exports.InsightsV2CreatePhoneNumbersReportRequestTimeRange = InsightsV2CreatePhoneNumbersReportRequestTimeRange;
|
|
@@ -95,8 +95,8 @@ class ReportFilter {
|
|
|
95
95
|
exports.ReportFilter = ReportFilter;
|
|
96
96
|
class ReportMetadata {
|
|
97
97
|
constructor(payload) {
|
|
98
|
-
this.
|
|
99
|
-
this.
|
|
98
|
+
this.startDatetime = payload["start_datetime"];
|
|
99
|
+
this.endDatetime = payload["end_datetime"];
|
|
100
100
|
this.filters = payload["filters"];
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -318,13 +318,13 @@ export declare class InsightsV2CreateAccountReportRequest {
|
|
|
318
318
|
*/
|
|
319
319
|
export declare class InsightsV2CreateAccountReportRequestTimeRange {
|
|
320
320
|
/**
|
|
321
|
-
* Start time of the report
|
|
321
|
+
* Start date time of the report
|
|
322
322
|
*/
|
|
323
|
-
"
|
|
323
|
+
"startDatetime"?: Date;
|
|
324
324
|
/**
|
|
325
|
-
* End time of the report
|
|
325
|
+
* End date time of the report
|
|
326
326
|
*/
|
|
327
|
-
"
|
|
327
|
+
"endDatetime"?: Date;
|
|
328
328
|
constructor(payload: any);
|
|
329
329
|
}
|
|
330
330
|
/**
|
|
@@ -384,13 +384,13 @@ export declare class ReportFilter {
|
|
|
384
384
|
}
|
|
385
385
|
export declare class ReportMetadata {
|
|
386
386
|
/**
|
|
387
|
-
* Start time of the report
|
|
387
|
+
* Start date time of the report
|
|
388
388
|
*/
|
|
389
|
-
"
|
|
389
|
+
"startDatetime"?: Date;
|
|
390
390
|
/**
|
|
391
|
-
* End time of the report
|
|
391
|
+
* End date time of the report
|
|
392
392
|
*/
|
|
393
|
-
"
|
|
393
|
+
"endDatetime"?: Date;
|
|
394
394
|
/**
|
|
395
395
|
* Filter values applied to the report
|
|
396
396
|
*/
|
|
@@ -205,8 +205,8 @@ exports.InsightsV2CreateAccountReportRequest = InsightsV2CreateAccountReportRequ
|
|
|
205
205
|
*/
|
|
206
206
|
class InsightsV2CreateAccountReportRequestTimeRange {
|
|
207
207
|
constructor(payload) {
|
|
208
|
-
this.
|
|
209
|
-
this.
|
|
208
|
+
this.startDatetime = payload["start_datetime"];
|
|
209
|
+
this.endDatetime = payload["end_datetime"];
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
exports.InsightsV2CreateAccountReportRequestTimeRange = InsightsV2CreateAccountReportRequestTimeRange;
|
|
@@ -244,8 +244,8 @@ class ReportFilter {
|
|
|
244
244
|
exports.ReportFilter = ReportFilter;
|
|
245
245
|
class ReportMetadata {
|
|
246
246
|
constructor(payload) {
|
|
247
|
-
this.
|
|
248
|
-
this.
|
|
247
|
+
this.startDatetime = payload["start_datetime"];
|
|
248
|
+
this.endDatetime = payload["end_datetime"];
|
|
249
249
|
this.filters = payload["filters"];
|
|
250
250
|
}
|
|
251
251
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import MessagingBase from "../MessagingBase";
|
|
2
|
+
import Version from "../../base/Version";
|
|
3
|
+
import { TypingIndicatorListInstance } from "./v3/typingIndicator";
|
|
4
|
+
export default class V3 extends Version {
|
|
5
|
+
/**
|
|
6
|
+
* Initialize the V3 version of Messaging
|
|
7
|
+
*
|
|
8
|
+
* @param domain - The Twilio (Twilio.Messaging) domain
|
|
9
|
+
*/
|
|
10
|
+
constructor(domain: MessagingBase);
|
|
11
|
+
/** typingIndicator - { Twilio.Messaging.V3.TypingIndicatorListInstance } resource */
|
|
12
|
+
protected _typingIndicator?: TypingIndicatorListInstance;
|
|
13
|
+
/** Getter for typingIndicator resource */
|
|
14
|
+
get typingIndicator(): TypingIndicatorListInstance;
|
|
15
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Messaging
|
|
9
|
+
* This is the public Twilio REST API.
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator.
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
const Version_1 = __importDefault(require("../../base/Version"));
|
|
20
|
+
const typingIndicator_1 = require("./v3/typingIndicator");
|
|
21
|
+
class V3 extends Version_1.default {
|
|
22
|
+
/**
|
|
23
|
+
* Initialize the V3 version of Messaging
|
|
24
|
+
*
|
|
25
|
+
* @param domain - The Twilio (Twilio.Messaging) domain
|
|
26
|
+
*/
|
|
27
|
+
constructor(domain) {
|
|
28
|
+
super(domain, "v3");
|
|
29
|
+
}
|
|
30
|
+
/** Getter for typingIndicator resource */
|
|
31
|
+
get typingIndicator() {
|
|
32
|
+
this._typingIndicator =
|
|
33
|
+
this._typingIndicator || (0, typingIndicator_1.TypingIndicatorListInstance)(this);
|
|
34
|
+
return this._typingIndicator;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.default = V3;
|
|
@@ -28,7 +28,7 @@ export declare class MessagingV2ChannelsSenderConfiguration {
|
|
|
28
28
|
*/
|
|
29
29
|
"voiceApplicationSid"?: string | null;
|
|
30
30
|
/**
|
|
31
|
-
* The account type for ISV Account Type Migration. Set to \'ISV\' or \'ISVSubAccount\' to configure,
|
|
31
|
+
* The account type for ISV Account Type Migration. Set to \'ISV\' or \'ISVSubAccount\' to configure, empty string to clear, or omit to preserve the existing value.
|
|
32
32
|
*/
|
|
33
33
|
"accountType"?: string | null;
|
|
34
34
|
constructor(payload: any);
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { inspect, InspectOptions } from "util";
|
|
2
|
+
import V3 from "../V3";
|
|
3
|
+
import { ApiResponse } from "../../../base/ApiResponse";
|
|
4
|
+
/**
|
|
5
|
+
* Request body for sending a typing indicator. The schema varies by channel. Use the `channel` field to determine which properties are required.
|
|
6
|
+
*/
|
|
7
|
+
export declare class TypingIndicatorRequest {
|
|
8
|
+
/**
|
|
9
|
+
* The messaging channel. Must be \"APPLE\".
|
|
10
|
+
*/
|
|
11
|
+
"channel": string;
|
|
12
|
+
/**
|
|
13
|
+
* The SID of a recent inbound message from the recipient. Must be an SM or MM SID format.
|
|
14
|
+
*/
|
|
15
|
+
"messageId": string;
|
|
16
|
+
/**
|
|
17
|
+
* The Apple Messages for Business identifier of the sender (business).
|
|
18
|
+
*/
|
|
19
|
+
"from": string;
|
|
20
|
+
/**
|
|
21
|
+
* The Apple Messages for Business identifier of the recipient (customer).
|
|
22
|
+
*/
|
|
23
|
+
"to": string;
|
|
24
|
+
/**
|
|
25
|
+
* The type of typing event. \"START\" indicates the agent began typing, \"END\" indicates the agent stopped typing. Defaults to \"START\".
|
|
26
|
+
*/
|
|
27
|
+
"event"?: string;
|
|
28
|
+
constructor(payload: any);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Options to pass to create a TypingIndicatorInstance
|
|
32
|
+
*/
|
|
33
|
+
export interface TypingIndicatorListInstanceCreateOptions {
|
|
34
|
+
/** */
|
|
35
|
+
typingIndicatorRequest: TypingIndicatorRequest;
|
|
36
|
+
}
|
|
37
|
+
export interface TypingIndicatorSolution {
|
|
38
|
+
}
|
|
39
|
+
export interface TypingIndicatorListInstance {
|
|
40
|
+
_version: V3;
|
|
41
|
+
_solution: TypingIndicatorSolution;
|
|
42
|
+
_uri: string;
|
|
43
|
+
/**
|
|
44
|
+
* Create a TypingIndicatorInstance
|
|
45
|
+
*
|
|
46
|
+
* @param params - Body for request
|
|
47
|
+
* @param headers - header params for request
|
|
48
|
+
* @param callback - Callback to handle processed record
|
|
49
|
+
*
|
|
50
|
+
* @returns Resolves to processed TypingIndicatorInstance
|
|
51
|
+
*/
|
|
52
|
+
create(params: TypingIndicatorRequest, headers?: any, callback?: (error: Error | null, item?: TypingIndicatorInstance) => any): Promise<TypingIndicatorInstance>;
|
|
53
|
+
/**
|
|
54
|
+
* Create a TypingIndicatorInstance and return HTTP info
|
|
55
|
+
*
|
|
56
|
+
* @param params - Body for request
|
|
57
|
+
* @param headers - header params for request
|
|
58
|
+
* @param callback - Callback to handle processed record
|
|
59
|
+
*
|
|
60
|
+
* @returns Resolves to processed TypingIndicatorInstance with HTTP metadata
|
|
61
|
+
*/
|
|
62
|
+
createWithHttpInfo(params: TypingIndicatorRequest, headers?: any, callback?: (error: Error | null, item?: ApiResponse<TypingIndicatorInstance>) => any): Promise<ApiResponse<TypingIndicatorInstance>>;
|
|
63
|
+
/**
|
|
64
|
+
* Provide a user-friendly representation
|
|
65
|
+
*/
|
|
66
|
+
toJSON(): any;
|
|
67
|
+
[inspect.custom](_depth: any, options: InspectOptions): any;
|
|
68
|
+
}
|
|
69
|
+
export declare function TypingIndicatorListInstance(version: V3): TypingIndicatorListInstance;
|
|
70
|
+
interface TypingIndicatorResource {
|
|
71
|
+
success: boolean;
|
|
72
|
+
}
|
|
73
|
+
export declare class TypingIndicatorInstance {
|
|
74
|
+
protected _version: V3;
|
|
75
|
+
constructor(_version: V3, payload: TypingIndicatorResource);
|
|
76
|
+
/**
|
|
77
|
+
* Indicates if the typing indicator was sent successfully.
|
|
78
|
+
*/
|
|
79
|
+
success: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Provide a user-friendly representation
|
|
82
|
+
*
|
|
83
|
+
* @returns Object
|
|
84
|
+
*/
|
|
85
|
+
toJSON(): {
|
|
86
|
+
success: boolean;
|
|
87
|
+
};
|
|
88
|
+
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
89
|
+
}
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* This code was generated by
|
|
4
|
+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
5
|
+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
6
|
+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
7
|
+
*
|
|
8
|
+
* Twilio - Messaging
|
|
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.TypingIndicatorInstance = exports.TypingIndicatorRequest = void 0;
|
|
17
|
+
exports.TypingIndicatorListInstance = TypingIndicatorListInstance;
|
|
18
|
+
const util_1 = require("util");
|
|
19
|
+
const deserialize = require("../../../base/deserialize");
|
|
20
|
+
const serialize = require("../../../base/serialize");
|
|
21
|
+
/**
|
|
22
|
+
* Request body for sending a typing indicator. The schema varies by channel. Use the `channel` field to determine which properties are required.
|
|
23
|
+
*/
|
|
24
|
+
class TypingIndicatorRequest {
|
|
25
|
+
constructor(payload) {
|
|
26
|
+
this.channel = payload["channel"];
|
|
27
|
+
this.messageId = payload["messageId"];
|
|
28
|
+
this.from = payload["from"];
|
|
29
|
+
this.to = payload["to"];
|
|
30
|
+
this.event = payload["event"];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.TypingIndicatorRequest = TypingIndicatorRequest;
|
|
34
|
+
function TypingIndicatorListInstance(version) {
|
|
35
|
+
const instance = {};
|
|
36
|
+
instance._version = version;
|
|
37
|
+
instance._solution = {};
|
|
38
|
+
instance._uri = `/Indicators/Typing.json`;
|
|
39
|
+
instance.create = function create(params, headers, callback) {
|
|
40
|
+
if (params === null || params === undefined) {
|
|
41
|
+
throw new Error('Required parameter "params" missing.');
|
|
42
|
+
}
|
|
43
|
+
let data = {};
|
|
44
|
+
data = params;
|
|
45
|
+
if (headers === null || headers === undefined) {
|
|
46
|
+
headers = {};
|
|
47
|
+
}
|
|
48
|
+
headers["Content-Type"] = "application/json";
|
|
49
|
+
headers["Accept"] = "application/json";
|
|
50
|
+
let operationVersion = version, operationPromise = operationVersion.create({
|
|
51
|
+
uri: instance._uri,
|
|
52
|
+
method: "post",
|
|
53
|
+
data,
|
|
54
|
+
headers,
|
|
55
|
+
});
|
|
56
|
+
operationPromise = operationPromise.then((payload) => new TypingIndicatorInstance(operationVersion, payload));
|
|
57
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
58
|
+
return operationPromise;
|
|
59
|
+
};
|
|
60
|
+
instance.createWithHttpInfo = function createWithHttpInfo(params, headers, callback) {
|
|
61
|
+
if (params === null || params === undefined) {
|
|
62
|
+
throw new Error('Required parameter "params" missing.');
|
|
63
|
+
}
|
|
64
|
+
let data = {};
|
|
65
|
+
data = params;
|
|
66
|
+
if (headers === null || headers === undefined) {
|
|
67
|
+
headers = {};
|
|
68
|
+
}
|
|
69
|
+
headers["Content-Type"] = "application/json";
|
|
70
|
+
headers["Accept"] = "application/json";
|
|
71
|
+
let operationVersion = version;
|
|
72
|
+
// CREATE, FETCH, UPDATE operations
|
|
73
|
+
let operationPromise = operationVersion
|
|
74
|
+
.createWithResponseInfo({
|
|
75
|
+
uri: instance._uri,
|
|
76
|
+
method: "post",
|
|
77
|
+
data,
|
|
78
|
+
headers,
|
|
79
|
+
})
|
|
80
|
+
.then((response) => ({
|
|
81
|
+
...response,
|
|
82
|
+
body: new TypingIndicatorInstance(operationVersion, response.body),
|
|
83
|
+
}));
|
|
84
|
+
operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
|
|
85
|
+
return operationPromise;
|
|
86
|
+
};
|
|
87
|
+
instance.toJSON = function toJSON() {
|
|
88
|
+
return instance._solution;
|
|
89
|
+
};
|
|
90
|
+
instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
|
|
91
|
+
return (0, util_1.inspect)(instance.toJSON(), options);
|
|
92
|
+
};
|
|
93
|
+
return instance;
|
|
94
|
+
}
|
|
95
|
+
class TypingIndicatorInstance {
|
|
96
|
+
constructor(_version, payload) {
|
|
97
|
+
this._version = _version;
|
|
98
|
+
this.success = payload.success;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Provide a user-friendly representation
|
|
102
|
+
*
|
|
103
|
+
* @returns Object
|
|
104
|
+
*/
|
|
105
|
+
toJSON() {
|
|
106
|
+
return {
|
|
107
|
+
success: this.success,
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
[util_1.inspect.custom](_depth, options) {
|
|
111
|
+
return (0, util_1.inspect)(this.toJSON(), options);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.TypingIndicatorInstance = TypingIndicatorInstance;
|
|
@@ -101,7 +101,7 @@ interface HostedNumberOrderResource {
|
|
|
101
101
|
}
|
|
102
102
|
export declare class HostedNumberOrderInstance {
|
|
103
103
|
protected _version: V3;
|
|
104
|
-
constructor(_version: V3,
|
|
104
|
+
constructor(_version: V3, _payload: HostedNumberOrderResource);
|
|
105
105
|
/**
|
|
106
106
|
* A 34 character string that uniquely identifies this HostedNumberOrder.
|
|
107
107
|
*/
|
|
@@ -152,8 +152,9 @@ function HostedNumberOrderListInstance(version) {
|
|
|
152
152
|
return instance;
|
|
153
153
|
}
|
|
154
154
|
class HostedNumberOrderInstance {
|
|
155
|
-
constructor(_version,
|
|
155
|
+
constructor(_version, _payload) {
|
|
156
156
|
this._version = _version;
|
|
157
|
+
const payload = _payload;
|
|
157
158
|
this.sid = payload.sid;
|
|
158
159
|
this.accountSid = payload.accountSid;
|
|
159
160
|
this.incomingPhoneNumberSid = payload.incomingPhoneNumberSid;
|
|
@@ -31,6 +31,8 @@ export interface ExecutionListInstanceCreateOptions {
|
|
|
31
31
|
* Options to pass to each
|
|
32
32
|
*/
|
|
33
33
|
export interface ExecutionListInstanceEachOptions {
|
|
34
|
+
/** Only show Execution resources with the given status. Can be: `active` or `ended`. */
|
|
35
|
+
status?: ExecutionStatus;
|
|
34
36
|
/** Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. */
|
|
35
37
|
dateCreatedFrom?: Date;
|
|
36
38
|
/** Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. */
|
|
@@ -48,6 +50,8 @@ export interface ExecutionListInstanceEachOptions {
|
|
|
48
50
|
* Options to pass to list
|
|
49
51
|
*/
|
|
50
52
|
export interface ExecutionListInstanceOptions {
|
|
53
|
+
/** Only show Execution resources with the given status. Can be: `active` or `ended`. */
|
|
54
|
+
status?: ExecutionStatus;
|
|
51
55
|
/** Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. */
|
|
52
56
|
dateCreatedFrom?: Date;
|
|
53
57
|
/** Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. */
|
|
@@ -61,6 +65,8 @@ export interface ExecutionListInstanceOptions {
|
|
|
61
65
|
* Options to pass to page
|
|
62
66
|
*/
|
|
63
67
|
export interface ExecutionListInstancePageOptions {
|
|
68
|
+
/** Only show Execution resources with the given status. Can be: `active` or `ended`. */
|
|
69
|
+
status?: ExecutionStatus;
|
|
64
70
|
/** Only show Execution resources starting on or after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. */
|
|
65
71
|
dateCreatedFrom?: Date;
|
|
66
72
|
/** Only show Execution resources starting before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time, given as `YYYY-MM-DDThh:mm:ss-hh:mm`. */
|
|
@@ -172,6 +178,7 @@ interface ExecutionResource {
|
|
|
172
178
|
status: ExecutionStatus;
|
|
173
179
|
date_created: Date;
|
|
174
180
|
date_updated: Date;
|
|
181
|
+
initiated_by: string;
|
|
175
182
|
url: string;
|
|
176
183
|
links: Record<string, string>;
|
|
177
184
|
}
|
|
@@ -217,6 +224,10 @@ export declare class ExecutionInstance {
|
|
|
217
224
|
* The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
218
225
|
*/
|
|
219
226
|
dateUpdated: Date;
|
|
227
|
+
/**
|
|
228
|
+
* The SID or identifier that triggered this Execution. For example, a Call SID if triggered by an incoming call, a Message SID if triggered by an incoming message, a Request SID if triggered by a REST API request, and so on.
|
|
229
|
+
*/
|
|
230
|
+
initiatedBy: string;
|
|
220
231
|
/**
|
|
221
232
|
* The absolute URL of the resource.
|
|
222
233
|
*/
|
|
@@ -300,6 +311,7 @@ export declare class ExecutionInstance {
|
|
|
300
311
|
status: ExecutionStatus;
|
|
301
312
|
dateCreated: Date;
|
|
302
313
|
dateUpdated: Date;
|
|
314
|
+
initiatedBy: string;
|
|
303
315
|
url: string;
|
|
304
316
|
links: Record<string, string>;
|
|
305
317
|
};
|
|
@@ -184,6 +184,7 @@ class ExecutionInstance {
|
|
|
184
184
|
this.status = payload.status;
|
|
185
185
|
this.dateCreated = deserialize.iso8601DateTime(payload.date_created);
|
|
186
186
|
this.dateUpdated = deserialize.iso8601DateTime(payload.date_updated);
|
|
187
|
+
this.initiatedBy = payload.initiated_by;
|
|
187
188
|
this.url = payload.url;
|
|
188
189
|
this.links = payload.links;
|
|
189
190
|
this._solution = { flowSid, sid: sid || this.sid };
|
|
@@ -269,6 +270,7 @@ class ExecutionInstance {
|
|
|
269
270
|
status: this.status,
|
|
270
271
|
dateCreated: this.dateCreated,
|
|
271
272
|
dateUpdated: this.dateUpdated,
|
|
273
|
+
initiatedBy: this.initiatedBy,
|
|
272
274
|
url: this.url,
|
|
273
275
|
links: this.links,
|
|
274
276
|
};
|
|
@@ -360,6 +362,8 @@ function ExecutionListInstance(version, flowSid) {
|
|
|
360
362
|
params = params || {};
|
|
361
363
|
}
|
|
362
364
|
let data = {};
|
|
365
|
+
if (params["status"] !== undefined)
|
|
366
|
+
data["status"] = params["status"];
|
|
363
367
|
if (params["dateCreatedFrom"] !== undefined)
|
|
364
368
|
data["DateCreatedFrom"] = serialize.iso8601DateTime(params["dateCreatedFrom"]);
|
|
365
369
|
if (params["dateCreatedTo"] !== undefined)
|
|
@@ -402,6 +406,8 @@ function ExecutionListInstance(version, flowSid) {
|
|
|
402
406
|
params = params || {};
|
|
403
407
|
}
|
|
404
408
|
let data = {};
|
|
409
|
+
if (params["status"] !== undefined)
|
|
410
|
+
data["status"] = params["status"];
|
|
405
411
|
if (params["dateCreatedFrom"] !== undefined)
|
|
406
412
|
data["DateCreatedFrom"] = serialize.iso8601DateTime(params["dateCreatedFrom"]);
|
|
407
413
|
if (params["dateCreatedTo"] !== undefined)
|
|
@@ -85,7 +85,6 @@ export interface ApproveChallengeListInstance {
|
|
|
85
85
|
}
|
|
86
86
|
export declare function ApproveChallengeListInstance(version: V2, serviceSid: string): ApproveChallengeListInstance;
|
|
87
87
|
interface ApproveChallengeResource {
|
|
88
|
-
options: Record<string, object>;
|
|
89
88
|
sid: string;
|
|
90
89
|
account_sid: string;
|
|
91
90
|
service_sid: string;
|
|
@@ -104,14 +103,11 @@ interface ApproveChallengeResource {
|
|
|
104
103
|
factor_type: string;
|
|
105
104
|
url: string;
|
|
106
105
|
links: Record<string, string>;
|
|
106
|
+
options: Record<string, object>;
|
|
107
107
|
}
|
|
108
108
|
export declare class ApproveChallengeInstance {
|
|
109
109
|
protected _version: V2;
|
|
110
110
|
constructor(_version: V2, payload: ApproveChallengeResource, serviceSid: string);
|
|
111
|
-
/**
|
|
112
|
-
* An object that contains challenge options. Currently only used for `passkeys`.
|
|
113
|
-
*/
|
|
114
|
-
options: Record<string, object>;
|
|
115
111
|
/**
|
|
116
112
|
* A 34 character string that uniquely identifies this Challenge.
|
|
117
113
|
*/
|
|
@@ -184,13 +180,16 @@ export declare class ApproveChallengeInstance {
|
|
|
184
180
|
* Contains a dictionary of URL links to nested resources of this Challenge.
|
|
185
181
|
*/
|
|
186
182
|
links: Record<string, string>;
|
|
183
|
+
/**
|
|
184
|
+
* An object that contains challenge options. Currently only used for `passkeys`.
|
|
185
|
+
*/
|
|
186
|
+
options: Record<string, object>;
|
|
187
187
|
/**
|
|
188
188
|
* Provide a user-friendly representation
|
|
189
189
|
*
|
|
190
190
|
* @returns Object
|
|
191
191
|
*/
|
|
192
192
|
toJSON(): {
|
|
193
|
-
options: Record<string, object>;
|
|
194
193
|
sid: string;
|
|
195
194
|
accountSid: string;
|
|
196
195
|
serviceSid: string;
|
|
@@ -209,6 +208,7 @@ export declare class ApproveChallengeInstance {
|
|
|
209
208
|
factorType: string;
|
|
210
209
|
url: string;
|
|
211
210
|
links: Record<string, string>;
|
|
211
|
+
options: Record<string, object>;
|
|
212
212
|
};
|
|
213
213
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
214
214
|
}
|
|
@@ -108,7 +108,6 @@ function ApproveChallengeListInstance(version, serviceSid) {
|
|
|
108
108
|
class ApproveChallengeInstance {
|
|
109
109
|
constructor(_version, payload, serviceSid) {
|
|
110
110
|
this._version = _version;
|
|
111
|
-
this.options = payload.options;
|
|
112
111
|
this.sid = payload.sid;
|
|
113
112
|
this.accountSid = payload.account_sid;
|
|
114
113
|
this.serviceSid = payload.service_sid;
|
|
@@ -127,6 +126,7 @@ class ApproveChallengeInstance {
|
|
|
127
126
|
this.factorType = payload.factor_type;
|
|
128
127
|
this.url = payload.url;
|
|
129
128
|
this.links = payload.links;
|
|
129
|
+
this.options = payload.options;
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
132
|
* Provide a user-friendly representation
|
|
@@ -135,7 +135,6 @@ class ApproveChallengeInstance {
|
|
|
135
135
|
*/
|
|
136
136
|
toJSON() {
|
|
137
137
|
return {
|
|
138
|
-
options: this.options,
|
|
139
138
|
sid: this.sid,
|
|
140
139
|
accountSid: this.accountSid,
|
|
141
140
|
serviceSid: this.serviceSid,
|
|
@@ -154,6 +153,7 @@ class ApproveChallengeInstance {
|
|
|
154
153
|
factorType: this.factorType,
|
|
155
154
|
url: this.url,
|
|
156
155
|
links: this.links,
|
|
156
|
+
options: this.options,
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -59,7 +59,6 @@ export declare class NewChallengeContextImpl implements NewChallengeContext {
|
|
|
59
59
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
60
60
|
}
|
|
61
61
|
interface NewChallengeResource {
|
|
62
|
-
options: Record<string, object>;
|
|
63
62
|
sid: string;
|
|
64
63
|
account_sid: string;
|
|
65
64
|
service_sid: string;
|
|
@@ -78,16 +77,13 @@ interface NewChallengeResource {
|
|
|
78
77
|
factor_type: string;
|
|
79
78
|
url: string;
|
|
80
79
|
links: Record<string, string>;
|
|
80
|
+
options: Record<string, object>;
|
|
81
81
|
}
|
|
82
82
|
export declare class NewChallengeInstance {
|
|
83
83
|
protected _version: V2;
|
|
84
84
|
protected _solution: NewChallengeContextSolution;
|
|
85
85
|
protected _context?: NewChallengeContext;
|
|
86
86
|
constructor(_version: V2, payload: NewChallengeResource, serviceSid: string);
|
|
87
|
-
/**
|
|
88
|
-
* An object that contains challenge options. Currently only used for `passkeys`.
|
|
89
|
-
*/
|
|
90
|
-
options: Record<string, object>;
|
|
91
87
|
/**
|
|
92
88
|
* A 34 character string that uniquely identifies this Challenge.
|
|
93
89
|
*/
|
|
@@ -160,6 +156,10 @@ export declare class NewChallengeInstance {
|
|
|
160
156
|
* Contains a dictionary of URL links to nested resources of this Challenge.
|
|
161
157
|
*/
|
|
162
158
|
links: Record<string, string>;
|
|
159
|
+
/**
|
|
160
|
+
* An object that contains challenge options. Currently only used for `passkeys`.
|
|
161
|
+
*/
|
|
162
|
+
options: Record<string, object>;
|
|
163
163
|
private get _proxy();
|
|
164
164
|
/**
|
|
165
165
|
* Create a NewChallengeInstance
|
|
@@ -187,7 +187,6 @@ export declare class NewChallengeInstance {
|
|
|
187
187
|
* @returns Object
|
|
188
188
|
*/
|
|
189
189
|
toJSON(): {
|
|
190
|
-
options: Record<string, object>;
|
|
191
190
|
sid: string;
|
|
192
191
|
accountSid: string;
|
|
193
192
|
serviceSid: string;
|
|
@@ -206,6 +205,7 @@ export declare class NewChallengeInstance {
|
|
|
206
205
|
factorType: string;
|
|
207
206
|
url: string;
|
|
208
207
|
links: Record<string, string>;
|
|
208
|
+
options: Record<string, object>;
|
|
209
209
|
};
|
|
210
210
|
[inspect.custom](_depth: any, options: InspectOptions): string;
|
|
211
211
|
}
|
|
@@ -101,7 +101,6 @@ exports.NewChallengeContextImpl = NewChallengeContextImpl;
|
|
|
101
101
|
class NewChallengeInstance {
|
|
102
102
|
constructor(_version, payload, serviceSid) {
|
|
103
103
|
this._version = _version;
|
|
104
|
-
this.options = payload.options;
|
|
105
104
|
this.sid = payload.sid;
|
|
106
105
|
this.accountSid = payload.account_sid;
|
|
107
106
|
this.serviceSid = payload.service_sid;
|
|
@@ -120,6 +119,7 @@ class NewChallengeInstance {
|
|
|
120
119
|
this.factorType = payload.factor_type;
|
|
121
120
|
this.url = payload.url;
|
|
122
121
|
this.links = payload.links;
|
|
122
|
+
this.options = payload.options;
|
|
123
123
|
this._solution = { serviceSid };
|
|
124
124
|
}
|
|
125
125
|
get _proxy() {
|
|
@@ -141,7 +141,6 @@ class NewChallengeInstance {
|
|
|
141
141
|
*/
|
|
142
142
|
toJSON() {
|
|
143
143
|
return {
|
|
144
|
-
options: this.options,
|
|
145
144
|
sid: this.sid,
|
|
146
145
|
accountSid: this.accountSid,
|
|
147
146
|
serviceSid: this.serviceSid,
|
|
@@ -160,6 +159,7 @@ class NewChallengeInstance {
|
|
|
160
159
|
factorType: this.factorType,
|
|
161
160
|
url: this.url,
|
|
162
161
|
links: this.links,
|
|
162
|
+
options: this.options,
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
[util_1.inspect.custom](_depth, options) {
|
|
@@ -58,7 +58,7 @@ export interface VerificationListInstanceCreateOptions {
|
|
|
58
58
|
enableSnaClientToken?: boolean;
|
|
59
59
|
/** */
|
|
60
60
|
riskCheck?: VerificationRiskCheck;
|
|
61
|
-
/** A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. */
|
|
61
|
+
/** A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The tags will also be included as part of the verification and message status event type payloads. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length. **This value should not contain PII.** */
|
|
62
62
|
tags?: string;
|
|
63
63
|
}
|
|
64
64
|
export interface VerificationContext {
|