twilio 5.2.1 → 5.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/lib/rest/Twilio.d.ts +0 -5
  2. package/lib/rest/Twilio.js +0 -6
  3. package/lib/rest/api/v2010/account/call/transcription.d.ts +4 -400
  4. package/lib/rest/api/v2010/account/call/transcription.js +0 -396
  5. package/lib/rest/api/v2010/account/message.d.ts +2 -2
  6. package/lib/rest/api/v2010/account/recording/addOnResult/payload/data.d.ts +89 -0
  7. package/lib/rest/api/v2010/account/recording/addOnResult/payload/data.js +127 -0
  8. package/lib/rest/api/v2010/account/recording/addOnResult/payload.d.ts +8 -0
  9. package/lib/rest/api/v2010/account/recording/addOnResult/payload.js +13 -0
  10. package/lib/rest/content/v1/content.d.ts +22 -0
  11. package/lib/rest/content/v1/content.js +13 -1
  12. package/lib/rest/flexApi/v2/flexUser.d.ts +64 -0
  13. package/lib/rest/flexApi/v2/flexUser.js +41 -0
  14. package/lib/rest/insights/v1/callSummaries.d.ts +57 -9
  15. package/lib/rest/insights/v1/callSummaries.js +18 -2
  16. package/lib/rest/intelligence/v2/transcript/sentence.d.ts +12 -0
  17. package/lib/rest/intelligence/v2/transcript/sentence.js +4 -0
  18. package/lib/rest/marketplace/V1.d.ts +5 -0
  19. package/lib/rest/marketplace/V1.js +7 -0
  20. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.d.ts +15 -15
  21. package/lib/rest/marketplace/v1/installedAddOn/installedAddOnUsage.js +7 -7
  22. package/lib/rest/marketplace/v1/moduleDataManagement.d.ts +29 -0
  23. package/lib/rest/marketplace/v1/moduleDataManagement.js +4 -0
  24. package/lib/rest/marketplace/v1/referralConversion.d.ts +90 -0
  25. package/lib/rest/marketplace/v1/referralConversion.js +106 -0
  26. package/lib/rest/messaging/v1/externalCampaign.d.ts +2 -0
  27. package/lib/rest/messaging/v1/externalCampaign.js +2 -0
  28. package/lib/rest/messaging/v1/service/channelSender.d.ts +33 -0
  29. package/lib/rest/messaging/v1/service/channelSender.js +40 -0
  30. package/lib/rest/numbers/V2.d.ts +5 -0
  31. package/lib/rest/numbers/V2.js +6 -0
  32. package/lib/rest/numbers/v1/portingPortIn.d.ts +7 -10
  33. package/lib/rest/numbers/v1/portingPortInPhoneNumber.d.ts +25 -16
  34. package/lib/rest/numbers/v1/portingPortInPhoneNumber.js +2 -0
  35. package/lib/rest/numbers/v1/portingPortability.d.ts +5 -5
  36. package/lib/rest/numbers/v1/portingWebhookConfiguration.d.ts +3 -3
  37. package/lib/rest/numbers/v1/portingWebhookConfigurationFetch.d.ts +3 -3
  38. package/lib/rest/numbers/v1/signingRequestConfiguration.d.ts +117 -0
  39. package/lib/rest/numbers/v1/signingRequestConfiguration.js +70 -1
  40. package/lib/rest/numbers/v2/bundleClone.d.ts +153 -0
  41. package/lib/rest/numbers/v2/bundleClone.js +136 -0
  42. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.d.ts +2 -0
  43. package/lib/rest/numbers/v2/regulatoryCompliance/bundle.js +2 -0
  44. package/lib/rest/taskrouter/v1/workspace/task.d.ts +2 -2
  45. package/lib/rest/trusthub/v1/complianceInquiries.d.ts +4 -0
  46. package/lib/rest/trusthub/v1/complianceInquiries.js +4 -0
  47. package/lib/rest/verify/v2/service.d.ts +3 -3
  48. package/package.json +1 -1
  49. package/lib/rest/PreviewIam.d.ts +0 -4
  50. package/lib/rest/PreviewIam.js +0 -8
  51. package/lib/rest/PreviewIamBase.d.ts +0 -10
  52. package/lib/rest/PreviewIamBase.js +0 -26
@@ -61,6 +61,7 @@ interface PortingPortInPhoneNumberResource {
61
61
  port_out_pin: number;
62
62
  rejection_reason: string;
63
63
  rejection_reason_code: number;
64
+ port_date: Date;
64
65
  }
65
66
  export declare class PortingPortInPhoneNumberInstance {
66
67
  protected _version: V1;
@@ -68,70 +69,77 @@ export declare class PortingPortInPhoneNumberInstance {
68
69
  protected _context?: PortingPortInPhoneNumberContext;
69
70
  constructor(_version: V1, payload: PortingPortInPhoneNumberResource, portInRequestSid?: string, phoneNumberSid?: string);
70
71
  /**
71
- * The SID of the Port In request. This is a unique identifier of the port in request.
72
+ * The unique identifier for the port in request that this phone number is associated with.
72
73
  */
73
74
  portInRequestSid: string;
74
75
  /**
75
- * The SID of the Port In request phone number. This is a unique identifier of the phone number.
76
+ * The unique identifier for this phone number associated with this port in request.
76
77
  */
77
78
  phoneNumberSid: string;
79
+ /**
80
+ * URL reference for this resource.
81
+ */
78
82
  url: string;
79
83
  /**
80
- * The SID of the account that the phone number belongs to.
84
+ * Account Sid or subaccount where the phone number(s) will be Ported.
81
85
  */
82
86
  accountSid: string;
83
87
  /**
84
- * The type of the phone number.
88
+ * The number type of the phone number. This can be: toll-free, local, mobile or unknown. This field may be null if the number is not portable or if the portability for a number has not yet been evaluated.
85
89
  */
86
90
  phoneNumberType: string;
87
91
  /**
88
- * The date when the phone number was created.
92
+ * The timestamp for when this port in phone number was created.
89
93
  */
90
94
  dateCreated: Date;
91
95
  /**
92
- * The country of the phone number.
96
+ * The ISO country code that this number is associated with. This field may be null if the number is not portable or if the portability for a number has not yet been evaluated.
93
97
  */
94
98
  country: string;
95
99
  /**
96
- * The phone number is missing required fields.
100
+ * Indicates if the phone number is missing required fields such as a PIN or account number. This field may be null if the number is not portable or if the portability for a number has not yet been evaluated.
97
101
  */
98
102
  missingRequiredFields: boolean;
99
103
  /**
100
- * The timestamp when the status was last updated.
104
+ * Timestamp indicating when the Port In Phone Number resource was last modified.
101
105
  */
102
106
  lastUpdated: Date;
103
107
  /**
104
- * The phone number.
108
+ * Phone number to be ported. This will be in the E164 Format.
105
109
  */
106
110
  phoneNumber: string;
107
111
  /**
108
- * The phone number is portable.
112
+ * If the number is portable by Twilio or not. This field may be null if the number portability has not yet been evaluated. If a number is not portable reference the `not_portability_reason_code` and `not_portability_reason` fields for more details
109
113
  */
110
114
  portable: boolean;
111
115
  /**
112
- * The reason why the phone number is not portable.
116
+ * The not portability reason code description. This field may be null if the number is portable or if the portability for a number has not yet been evaluated.
113
117
  */
114
118
  notPortabilityReason: string;
115
119
  /**
116
- * The code of the reason why the phone number is not portable.
120
+ * The not portability reason code. This field may be null if the number is portable or if the portability for a number has not yet been evaluated.
117
121
  */
118
122
  notPortabilityReasonCode: number;
119
123
  /**
120
- * The status of the phone number in the port in request.
124
+ * The status of the port in phone number.
121
125
  */
122
126
  portInPhoneNumberStatus: string;
123
127
  /**
124
- * The pin required for the losing carrier to port out the phone number.
128
+ * The pin required by the losing carrier to do the port out.
125
129
  */
126
130
  portOutPin: number;
127
131
  /**
128
- * The rejection reason returned by the vendor.
132
+ * The description of the rejection reason provided by the losing carrier. This field may be null if the number has not been rejected by the losing carrier.
129
133
  */
130
134
  rejectionReason: string;
131
135
  /**
132
- * The rejection reason code returned by the vendor.
136
+ * The code for the rejection reason provided by the losing carrier. This field may be null if the number has not been rejected by the losing carrier.
133
137
  */
134
138
  rejectionReasonCode: number;
139
+ /**
140
+ * The timestamp the phone number will be ported. This will only be set once a port date has been confirmed. Not all carriers can guarantee a specific time on the port date. Twilio will try its best to get the port completed by this time on the port date. Please subscribe to webhooks for confirmation on when a port has actually been completed.
141
+ */
142
+ portDate: Date;
135
143
  private get _proxy();
136
144
  /**
137
145
  * Remove a PortingPortInPhoneNumberInstance
@@ -172,6 +180,7 @@ export declare class PortingPortInPhoneNumberInstance {
172
180
  portOutPin: number;
173
181
  rejectionReason: string;
174
182
  rejectionReasonCode: number;
183
+ portDate: Date;
175
184
  };
176
185
  [inspect.custom](_depth: any, options: InspectOptions): string;
177
186
  }
@@ -82,6 +82,7 @@ class PortingPortInPhoneNumberInstance {
82
82
  this.portOutPin = deserialize.integer(payload.port_out_pin);
83
83
  this.rejectionReason = payload.rejection_reason;
84
84
  this.rejectionReasonCode = deserialize.integer(payload.rejection_reason_code);
85
+ this.portDate = deserialize.iso8601DateTime(payload.port_date);
85
86
  this._solution = {
86
87
  portInRequestSid: portInRequestSid || this.portInRequestSid,
87
88
  phoneNumberSid: phoneNumberSid || this.phoneNumberSid,
@@ -137,6 +138,7 @@ class PortingPortInPhoneNumberInstance {
137
138
  portOutPin: this.portOutPin,
138
139
  rejectionReason: this.rejectionReason,
139
140
  rejectionReasonCode: this.rejectionReasonCode,
141
+ portDate: this.portDate,
140
142
  };
141
143
  }
142
144
  [util_1.inspect.custom](_depth, options) {
@@ -6,7 +6,7 @@ export type PortingPortabilityNumberType = "LOCAL" | "UNKNOWN" | "MOBILE" | "TOL
6
6
  * Options to pass to fetch a PortingPortabilityInstance
7
7
  */
8
8
  export interface PortingPortabilityContextFetchOptions {
9
- /** The SID of the account where the phone number(s) will be ported. */
9
+ /** Account Sid to which the number will be ported. This can be used to determine if a sub account already has the number in its inventory or a different sub account. If this is not provided, the authenticated account will be assumed to be the target account. */
10
10
  targetAccountSid?: string;
11
11
  }
12
12
  export interface PortingPortabilityContext {
@@ -71,15 +71,15 @@ export declare class PortingPortabilityInstance {
71
71
  */
72
72
  phoneNumber: string;
73
73
  /**
74
- * The target account sid to which the number will be ported
74
+ * Account Sid that the phone number belongs to in Twilio. This is only returned for phone numbers that already exist in Twilio’s inventory and belong to your account or sub account.
75
75
  */
76
76
  accountSid: string;
77
77
  /**
78
- * Boolean flag specifying if phone number is portable or not.
78
+ * Boolean flag indicates if the phone number can be ported into Twilio through the Porting API or not.
79
79
  */
80
80
  portable: boolean;
81
81
  /**
82
- * Boolean flag specifying if PIN and account number is required for the phone number.
82
+ * Indicates if the port in process will require a personal identification number (PIN) and an account number for this phone number. If this is true you will be required to submit both a PIN and account number from the losing carrier for this number when opening a port in request. These fields will be required in order to complete the port in process to Twilio.
83
83
  */
84
84
  pinAndAccountNumberRequired: boolean;
85
85
  /**
@@ -87,7 +87,7 @@ export declare class PortingPortabilityInstance {
87
87
  */
88
88
  notPortableReason: string;
89
89
  /**
90
- * The Portability Reason Code for the phone number if it cannot be ported into Twilio, `null` otherwise. One of `22131`, `22132`, `22130`, `22133`, `22102` or `22135`.
90
+ * The Portability Reason Code for the phone number if it cannot be ported into Twilio, `null` otherwise.
91
91
  */
92
92
  notPortableReasonCode: number;
93
93
  numberType: PortingPortabilityNumberType;
@@ -52,15 +52,15 @@ export declare class PortingWebhookConfigurationInstance {
52
52
  */
53
53
  url: string;
54
54
  /**
55
- * Webhook URL to send a request when a port in request or port in phone number event happens
55
+ * The complete webhook url that will be called when a notification event for port in request or port in phone number happens
56
56
  */
57
57
  portInTargetUrl: string;
58
58
  /**
59
- * Webhook URL to send a request when a port out phone number event happens
59
+ * The complete webhook url that will be called when a notification event for a port out phone number happens.
60
60
  */
61
61
  portOutTargetUrl: string;
62
62
  /**
63
- * List of notification events to send a request to the webhook URL
63
+ * A list to filter what notification events to receive for this account and its sub accounts. If it is an empty list, then it means that there are no filters for the notifications events to send in each webhook and all events will get sent.
64
64
  */
65
65
  notificationsOf: Array<string>;
66
66
  /**
@@ -38,15 +38,15 @@ export declare class PortingWebhookConfigurationFetchInstance {
38
38
  */
39
39
  url: string;
40
40
  /**
41
- * Webhook URL to send a request when a port in request or port in phone number event happens
41
+ * The complete webhook url that will be called when a notification event for port in request or port in phone number happens
42
42
  */
43
43
  portInTargetUrl: string;
44
44
  /**
45
- * Webhook URL to send a request when a port out phone number event happens
45
+ * The complete webhook url that will be called when a notification event for a port out phone number happens.
46
46
  */
47
47
  portOutTargetUrl: string;
48
48
  /**
49
- * List of notification events to send a request to the webhook URL
49
+ * A list to filter what notification events to receive for this account and its sub accounts. If it is an empty list, then it means that there are no filters for the notifications events to send in each webhook and all events will get sent.
50
50
  */
51
51
  notificationsOf: Array<string>;
52
52
  /**
@@ -1,5 +1,7 @@
1
1
  /// <reference types="node" />
2
2
  import { inspect, InspectOptions } from "util";
3
+ import Page, { TwilioResponsePayload } from "../../../base/Page";
4
+ import Response from "../../../http/response";
3
5
  import V1 from "../V1";
4
6
  /**
5
7
  * Options to pass to create a SigningRequestConfigurationInstance
@@ -8,6 +10,51 @@ export interface SigningRequestConfigurationListInstanceCreateOptions {
8
10
  /** */
9
11
  body?: object;
10
12
  }
13
+ /**
14
+ * Options to pass to each
15
+ */
16
+ export interface SigningRequestConfigurationListInstanceEachOptions {
17
+ /** The country ISO code to apply this configuration, this is an optional field, Example: US, MX */
18
+ country?: string;
19
+ /** The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting */
20
+ product?: string;
21
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
22
+ pageSize?: number;
23
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
24
+ callback?: (item: SigningRequestConfigurationInstance, done: (err?: Error) => void) => void;
25
+ /** Function to be called upon completion of streaming */
26
+ done?: Function;
27
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
28
+ limit?: number;
29
+ }
30
+ /**
31
+ * Options to pass to list
32
+ */
33
+ export interface SigningRequestConfigurationListInstanceOptions {
34
+ /** The country ISO code to apply this configuration, this is an optional field, Example: US, MX */
35
+ country?: string;
36
+ /** The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting */
37
+ product?: string;
38
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
39
+ pageSize?: number;
40
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
41
+ limit?: number;
42
+ }
43
+ /**
44
+ * Options to pass to page
45
+ */
46
+ export interface SigningRequestConfigurationListInstancePageOptions {
47
+ /** The country ISO code to apply this configuration, this is an optional field, Example: US, MX */
48
+ country?: string;
49
+ /** The product or service for which is requesting the signature, this is an optional field, Example: Porting, Hosting */
50
+ product?: string;
51
+ /** How many resources to return in each list page. The default is 50, and the maximum is 1000. */
52
+ pageSize?: number;
53
+ /** Page Number, this value is simply for client state */
54
+ pageNumber?: number;
55
+ /** PageToken provided by the API */
56
+ pageToken?: string;
57
+ }
11
58
  export interface SigningRequestConfigurationSolution {
12
59
  }
13
60
  export interface SigningRequestConfigurationListInstance {
@@ -31,6 +78,56 @@ export interface SigningRequestConfigurationListInstance {
31
78
  * @returns Resolves to processed SigningRequestConfigurationInstance
32
79
  */
33
80
  create(params: object, callback?: (error: Error | null, item?: SigningRequestConfigurationInstance) => any): Promise<SigningRequestConfigurationInstance>;
81
+ /**
82
+ * Streams SigningRequestConfigurationInstance records from the API.
83
+ *
84
+ * This operation lazily loads records as efficiently as possible until the limit
85
+ * is reached.
86
+ *
87
+ * The results are passed into the callback function, so this operation is memory
88
+ * efficient.
89
+ *
90
+ * If a function is passed as the first argument, it will be used as the callback
91
+ * function.
92
+ *
93
+ * @param { SigningRequestConfigurationListInstanceEachOptions } [params] - Options for request
94
+ * @param { function } [callback] - Function to process each record
95
+ */
96
+ each(callback?: (item: SigningRequestConfigurationInstance, done: (err?: Error) => void) => void): void;
97
+ each(params: SigningRequestConfigurationListInstanceEachOptions, callback?: (item: SigningRequestConfigurationInstance, done: (err?: Error) => void) => void): void;
98
+ /**
99
+ * Retrieve a single target page of SigningRequestConfigurationInstance records from the API.
100
+ *
101
+ * The request is executed immediately.
102
+ *
103
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
104
+ * @param { function } [callback] - Callback to handle list of records
105
+ */
106
+ getPage(targetUrl: string, callback?: (error: Error | null, items: SigningRequestConfigurationPage) => any): Promise<SigningRequestConfigurationPage>;
107
+ /**
108
+ * Lists SigningRequestConfigurationInstance records from the API as a list.
109
+ *
110
+ * If a function is passed as the first argument, it will be used as the callback
111
+ * function.
112
+ *
113
+ * @param { SigningRequestConfigurationListInstanceOptions } [params] - Options for request
114
+ * @param { function } [callback] - Callback to handle list of records
115
+ */
116
+ list(callback?: (error: Error | null, items: SigningRequestConfigurationInstance[]) => any): Promise<SigningRequestConfigurationInstance[]>;
117
+ list(params: SigningRequestConfigurationListInstanceOptions, callback?: (error: Error | null, items: SigningRequestConfigurationInstance[]) => any): Promise<SigningRequestConfigurationInstance[]>;
118
+ /**
119
+ * Retrieve a single page of SigningRequestConfigurationInstance records from the API.
120
+ *
121
+ * The request is executed immediately.
122
+ *
123
+ * If a function is passed as the first argument, it will be used as the callback
124
+ * function.
125
+ *
126
+ * @param { SigningRequestConfigurationListInstancePageOptions } [params] - Options for request
127
+ * @param { function } [callback] - Callback to handle list of records
128
+ */
129
+ page(callback?: (error: Error | null, items: SigningRequestConfigurationPage) => any): Promise<SigningRequestConfigurationPage>;
130
+ page(params: SigningRequestConfigurationListInstancePageOptions, callback?: (error: Error | null, items: SigningRequestConfigurationPage) => any): Promise<SigningRequestConfigurationPage>;
34
131
  /**
35
132
  * Provide a user-friendly representation
36
133
  */
@@ -38,6 +135,9 @@ export interface SigningRequestConfigurationListInstance {
38
135
  [inspect.custom](_depth: any, options: InspectOptions): any;
39
136
  }
40
137
  export declare function SigningRequestConfigurationListInstance(version: V1): SigningRequestConfigurationListInstance;
138
+ interface SigningRequestConfigurationPayload extends TwilioResponsePayload {
139
+ configurations: SigningRequestConfigurationResource[];
140
+ }
41
141
  interface SigningRequestConfigurationResource {
42
142
  logo_sid: string;
43
143
  friendly_name: string;
@@ -97,4 +197,21 @@ export declare class SigningRequestConfigurationInstance {
97
197
  };
98
198
  [inspect.custom](_depth: any, options: InspectOptions): string;
99
199
  }
200
+ export declare class SigningRequestConfigurationPage extends Page<V1, SigningRequestConfigurationPayload, SigningRequestConfigurationResource, SigningRequestConfigurationInstance> {
201
+ /**
202
+ * Initialize the SigningRequestConfigurationPage
203
+ *
204
+ * @param version - Version of the resource
205
+ * @param response - Response from the API
206
+ * @param solution - Path solution
207
+ */
208
+ constructor(version: V1, response: Response<string>, solution: SigningRequestConfigurationSolution);
209
+ /**
210
+ * Build an instance of SigningRequestConfigurationInstance
211
+ *
212
+ * @param payload - Payload response from the API
213
+ */
214
+ getInstance(payload: SigningRequestConfigurationResource): SigningRequestConfigurationInstance;
215
+ [inspect.custom](depth: any, options: InspectOptions): string;
216
+ }
100
217
  export {};
@@ -12,9 +12,13 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __importDefault = (this && this.__importDefault) || function (mod) {
16
+ return (mod && mod.__esModule) ? mod : { "default": mod };
17
+ };
15
18
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SigningRequestConfigurationInstance = exports.SigningRequestConfigurationListInstance = void 0;
19
+ exports.SigningRequestConfigurationPage = exports.SigningRequestConfigurationInstance = exports.SigningRequestConfigurationListInstance = void 0;
17
20
  const util_1 = require("util");
21
+ const Page_1 = __importDefault(require("../../../base/Page"));
18
22
  const deserialize = require("../../../base/deserialize");
19
23
  const serialize = require("../../../base/serialize");
20
24
  function SigningRequestConfigurationListInstance(version) {
@@ -44,6 +48,47 @@ function SigningRequestConfigurationListInstance(version) {
44
48
  operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
45
49
  return operationPromise;
46
50
  };
51
+ instance.page = function page(params, callback) {
52
+ if (params instanceof Function) {
53
+ callback = params;
54
+ params = {};
55
+ }
56
+ else {
57
+ params = params || {};
58
+ }
59
+ let data = {};
60
+ if (params["country"] !== undefined)
61
+ data["Country"] = params["country"];
62
+ if (params["product"] !== undefined)
63
+ data["Product"] = params["product"];
64
+ if (params["pageSize"] !== undefined)
65
+ data["PageSize"] = params["pageSize"];
66
+ if (params.pageNumber !== undefined)
67
+ data["Page"] = params.pageNumber;
68
+ if (params.pageToken !== undefined)
69
+ data["PageToken"] = params.pageToken;
70
+ const headers = {};
71
+ let operationVersion = version, operationPromise = operationVersion.page({
72
+ uri: instance._uri,
73
+ method: "get",
74
+ params: data,
75
+ headers,
76
+ });
77
+ operationPromise = operationPromise.then((payload) => new SigningRequestConfigurationPage(operationVersion, payload, instance._solution));
78
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
79
+ return operationPromise;
80
+ };
81
+ instance.each = instance._version.each;
82
+ instance.list = instance._version.list;
83
+ instance.getPage = function getPage(targetUrl, callback) {
84
+ const operationPromise = instance._version._domain.twilio.request({
85
+ method: "get",
86
+ uri: targetUrl,
87
+ });
88
+ let pagePromise = operationPromise.then((payload) => new SigningRequestConfigurationPage(instance._version, payload, instance._solution));
89
+ pagePromise = instance._version.setPromiseCallback(pagePromise, callback);
90
+ return pagePromise;
91
+ };
47
92
  instance.toJSON = function toJSON() {
48
93
  return instance._solution;
49
94
  };
@@ -87,3 +132,27 @@ class SigningRequestConfigurationInstance {
87
132
  }
88
133
  }
89
134
  exports.SigningRequestConfigurationInstance = SigningRequestConfigurationInstance;
135
+ class SigningRequestConfigurationPage extends Page_1.default {
136
+ /**
137
+ * Initialize the SigningRequestConfigurationPage
138
+ *
139
+ * @param version - Version of the resource
140
+ * @param response - Response from the API
141
+ * @param solution - Path solution
142
+ */
143
+ constructor(version, response, solution) {
144
+ super(version, response, solution);
145
+ }
146
+ /**
147
+ * Build an instance of SigningRequestConfigurationInstance
148
+ *
149
+ * @param payload - Payload response from the API
150
+ */
151
+ getInstance(payload) {
152
+ return new SigningRequestConfigurationInstance(this._version, payload);
153
+ }
154
+ [util_1.inspect.custom](depth, options) {
155
+ return (0, util_1.inspect)(this.toJSON(), options);
156
+ }
157
+ }
158
+ exports.SigningRequestConfigurationPage = SigningRequestConfigurationPage;
@@ -0,0 +1,153 @@
1
+ /// <reference types="node" />
2
+ import { inspect, InspectOptions } from "util";
3
+ import V2 from "../V2";
4
+ export type BundleCloneStatus = "draft" | "pending-review" | "in-review" | "twilio-rejected" | "twilio-approved" | "provisionally-approved";
5
+ /**
6
+ * Options to pass to create a BundleCloneInstance
7
+ */
8
+ export interface BundleCloneContextCreateOptions {
9
+ /** The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned. */
10
+ targetAccountSid: string;
11
+ /** This is to determine whether the cloned bundle needs to be in draft state or not. */
12
+ moveToDraft?: boolean;
13
+ /** The string that you assigned to describe the cloned bundle. */
14
+ friendlyName?: string;
15
+ }
16
+ export interface BundleCloneContext {
17
+ /**
18
+ * Create a BundleCloneInstance
19
+ *
20
+ * @param params - Parameter for request
21
+ * @param callback - Callback to handle processed record
22
+ *
23
+ * @returns Resolves to processed BundleCloneInstance
24
+ */
25
+ create(params: BundleCloneContextCreateOptions, callback?: (error: Error | null, item?: BundleCloneInstance) => any): Promise<BundleCloneInstance>;
26
+ /**
27
+ * Provide a user-friendly representation
28
+ */
29
+ toJSON(): any;
30
+ [inspect.custom](_depth: any, options: InspectOptions): any;
31
+ }
32
+ export interface BundleCloneContextSolution {
33
+ bundleSid: string;
34
+ }
35
+ export declare class BundleCloneContextImpl implements BundleCloneContext {
36
+ protected _version: V2;
37
+ protected _solution: BundleCloneContextSolution;
38
+ protected _uri: string;
39
+ constructor(_version: V2, bundleSid: string);
40
+ create(params: BundleCloneContextCreateOptions, callback?: (error: Error | null, item?: BundleCloneInstance) => any): Promise<BundleCloneInstance>;
41
+ /**
42
+ * Provide a user-friendly representation
43
+ *
44
+ * @returns Object
45
+ */
46
+ toJSON(): BundleCloneContextSolution;
47
+ [inspect.custom](_depth: any, options: InspectOptions): string;
48
+ }
49
+ interface BundleCloneResource {
50
+ bundle_sid: string;
51
+ account_sid: string;
52
+ regulation_sid: string;
53
+ friendly_name: string;
54
+ status: BundleCloneStatus;
55
+ valid_until: Date;
56
+ email: string;
57
+ status_callback: string;
58
+ date_created: Date;
59
+ date_updated: Date;
60
+ url: string;
61
+ }
62
+ export declare class BundleCloneInstance {
63
+ protected _version: V2;
64
+ protected _solution: BundleCloneContextSolution;
65
+ protected _context?: BundleCloneContext;
66
+ constructor(_version: V2, payload: BundleCloneResource, bundleSid?: string);
67
+ /**
68
+ * The unique string that we created to identify the Bundle resource.
69
+ */
70
+ bundleSid: string;
71
+ /**
72
+ * The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Bundle resource.
73
+ */
74
+ accountSid: string;
75
+ /**
76
+ * The unique string of a regulation that is associated to the Bundle resource.
77
+ */
78
+ regulationSid: string;
79
+ /**
80
+ * The string that you assigned to describe the resource.
81
+ */
82
+ friendlyName: string;
83
+ status: BundleCloneStatus;
84
+ /**
85
+ * The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format when the resource will be valid until.
86
+ */
87
+ validUntil: Date;
88
+ /**
89
+ * The email address that will receive updates when the Bundle resource changes status.
90
+ */
91
+ email: string;
92
+ /**
93
+ * The URL we call to inform your application of status changes.
94
+ */
95
+ statusCallback: string;
96
+ /**
97
+ * The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
98
+ */
99
+ dateCreated: Date;
100
+ /**
101
+ * The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
102
+ */
103
+ dateUpdated: Date;
104
+ /**
105
+ * The URL of this resource.
106
+ */
107
+ url: string;
108
+ private get _proxy();
109
+ /**
110
+ * Create a BundleCloneInstance
111
+ *
112
+ * @param params - Parameter for request
113
+ * @param callback - Callback to handle processed record
114
+ *
115
+ * @returns Resolves to processed BundleCloneInstance
116
+ */
117
+ create(params: BundleCloneContextCreateOptions, callback?: (error: Error | null, item?: BundleCloneInstance) => any): Promise<BundleCloneInstance>;
118
+ /**
119
+ * Provide a user-friendly representation
120
+ *
121
+ * @returns Object
122
+ */
123
+ toJSON(): {
124
+ bundleSid: string;
125
+ accountSid: string;
126
+ regulationSid: string;
127
+ friendlyName: string;
128
+ status: BundleCloneStatus;
129
+ validUntil: Date;
130
+ email: string;
131
+ statusCallback: string;
132
+ dateCreated: Date;
133
+ dateUpdated: Date;
134
+ url: string;
135
+ };
136
+ [inspect.custom](_depth: any, options: InspectOptions): string;
137
+ }
138
+ export interface BundleCloneSolution {
139
+ }
140
+ export interface BundleCloneListInstance {
141
+ _version: V2;
142
+ _solution: BundleCloneSolution;
143
+ _uri: string;
144
+ (bundleSid: string): BundleCloneContext;
145
+ get(bundleSid: string): BundleCloneContext;
146
+ /**
147
+ * Provide a user-friendly representation
148
+ */
149
+ toJSON(): any;
150
+ [inspect.custom](_depth: any, options: InspectOptions): any;
151
+ }
152
+ export declare function BundleCloneListInstance(version: V2): BundleCloneListInstance;
153
+ export {};