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
@@ -13,20 +13,20 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.InstalledAddOnUsageInstance = exports.InstalledAddOnUsageListInstance = exports.MarketplaceV1InstalledAddOnBillingUsageResponseBillableItems = exports.CreateBillingUsageRequestBillableItems = exports.CreateBillingUsageRequest = void 0;
16
+ exports.InstalledAddOnUsageInstance = exports.InstalledAddOnUsageListInstance = exports.MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems = exports.MarketplaceV1InstalledAddOnInstalledAddOnUsage = exports.MarketplaceV1InstalledAddOnBillingUsageResponseBillableItems = void 0;
17
17
  const util_1 = require("util");
18
18
  const deserialize = require("../../../../base/deserialize");
19
19
  const serialize = require("../../../../base/serialize");
20
20
  const utility_1 = require("../../../../base/utility");
21
- class CreateBillingUsageRequest {
22
- }
23
- exports.CreateBillingUsageRequest = CreateBillingUsageRequest;
24
- class CreateBillingUsageRequestBillableItems {
25
- }
26
- exports.CreateBillingUsageRequestBillableItems = CreateBillingUsageRequestBillableItems;
27
21
  class MarketplaceV1InstalledAddOnBillingUsageResponseBillableItems {
28
22
  }
29
23
  exports.MarketplaceV1InstalledAddOnBillingUsageResponseBillableItems = MarketplaceV1InstalledAddOnBillingUsageResponseBillableItems;
24
+ class MarketplaceV1InstalledAddOnInstalledAddOnUsage {
25
+ }
26
+ exports.MarketplaceV1InstalledAddOnInstalledAddOnUsage = MarketplaceV1InstalledAddOnInstalledAddOnUsage;
27
+ class MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems {
28
+ }
29
+ exports.MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems = MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems;
30
30
  function InstalledAddOnUsageListInstance(version, installedAddOnSid) {
31
31
  if (!(0, utility_1.isValidPathParam)(installedAddOnSid)) {
32
32
  throw new Error("Parameter 'installedAddOnSid' is not valid.");
@@ -15,6 +15,8 @@ export interface ModuleDataManagementContextUpdateOptions {
15
15
  policies?: string;
16
16
  /** */
17
17
  support?: string;
18
+ /** */
19
+ configuration?: string;
18
20
  }
19
21
  export interface ModuleDataManagementContext {
20
22
  /**
@@ -74,19 +76,45 @@ interface ModuleDataManagementResource {
74
76
  policies: any;
75
77
  module_info: any;
76
78
  documentation: any;
79
+ configuration: any;
77
80
  }
78
81
  export declare class ModuleDataManagementInstance {
79
82
  protected _version: V1;
80
83
  protected _solution: ModuleDataManagementContextSolution;
81
84
  protected _context?: ModuleDataManagementContext;
82
85
  constructor(_version: V1, payload: ModuleDataManagementResource, sid?: string);
86
+ /**
87
+ * URL to query the subresource.
88
+ */
83
89
  url: string;
90
+ /**
91
+ * ModuleSid that identifies this Listing.
92
+ */
84
93
  sid: string;
94
+ /**
95
+ * A JSON object describing the module and is displayed under the Description tab of the Module detail page. You can define the main body of the description, highlight key features or aspects of the module and if applicable, provide code samples for developers
96
+ */
85
97
  description: any;
98
+ /**
99
+ * A JSON object containing information on how customers can obtain support for the module. Use this parameter to provide details such as contact information and support description.
100
+ */
86
101
  support: any;
102
+ /**
103
+ * A JSON object describing the module\'s privacy and legal policies and is displayed under the Policies tab of the Module detail page. The maximum file size for Policies is 5MB
104
+ */
87
105
  policies: any;
106
+ /**
107
+ * A JSON object containing essential attributes that define a module. This information is presented on the Module detail page in the Twilio Marketplace Catalog. You can pass the following attributes in the JSON object
108
+ */
88
109
  moduleInfo: any;
110
+ /**
111
+ * A JSON object for providing comprehensive information, instructions, and resources related to the module
112
+ */
89
113
  documentation: any;
114
+ /**
115
+ * A JSON object for providing listing specific configuration. Contains button setup, notification url, among others.
116
+ */
117
+ configuration: any;
90
118
  private get _proxy();
91
119
  /**
92
120
  * Fetch a ModuleDataManagementInstance
@@ -126,6 +154,7 @@ export declare class ModuleDataManagementInstance {
126
154
  policies: any;
127
155
  moduleInfo: any;
128
156
  documentation: any;
157
+ configuration: any;
129
158
  };
130
159
  [inspect.custom](_depth: any, options: InspectOptions): string;
131
160
  }
@@ -56,6 +56,8 @@ class ModuleDataManagementContextImpl {
56
56
  data["Policies"] = params["policies"];
57
57
  if (params["support"] !== undefined)
58
58
  data["Support"] = params["support"];
59
+ if (params["configuration"] !== undefined)
60
+ data["Configuration"] = params["configuration"];
59
61
  const headers = {};
60
62
  headers["Content-Type"] = "application/x-www-form-urlencoded";
61
63
  const instance = this;
@@ -92,6 +94,7 @@ class ModuleDataManagementInstance {
92
94
  this.policies = payload.policies;
93
95
  this.moduleInfo = payload.module_info;
94
96
  this.documentation = payload.documentation;
97
+ this.configuration = payload.configuration;
95
98
  this._solution = { sid: sid || this.sid };
96
99
  }
97
100
  get _proxy() {
@@ -127,6 +130,7 @@ class ModuleDataManagementInstance {
127
130
  policies: this.policies,
128
131
  moduleInfo: this.moduleInfo,
129
132
  documentation: this.documentation,
133
+ configuration: this.configuration,
130
134
  };
131
135
  }
132
136
  [util_1.inspect.custom](_depth, options) {
@@ -0,0 +1,90 @@
1
+ /// <reference types="node" />
2
+ import { inspect, InspectOptions } from "util";
3
+ import V1 from "../V1";
4
+ export declare class CreateReferralConversionRequest {
5
+ "referralAccountSid"?: string;
6
+ }
7
+ /**
8
+ * Options to pass to create a ReferralConversionInstance
9
+ */
10
+ export interface ReferralConversionContextCreateOptions {
11
+ /** */
12
+ createReferralConversionRequest: CreateReferralConversionRequest;
13
+ }
14
+ export interface ReferralConversionContext {
15
+ /**
16
+ * Create a ReferralConversionInstance
17
+ *
18
+ * @param params - Body for request
19
+ * @param callback - Callback to handle processed record
20
+ *
21
+ * @returns Resolves to processed ReferralConversionInstance
22
+ */
23
+ create(params: CreateReferralConversionRequest, callback?: (error: Error | null, item?: ReferralConversionInstance) => any): Promise<ReferralConversionInstance>;
24
+ /**
25
+ * Provide a user-friendly representation
26
+ */
27
+ toJSON(): any;
28
+ [inspect.custom](_depth: any, options: InspectOptions): any;
29
+ }
30
+ export interface ReferralConversionContextSolution {
31
+ }
32
+ export declare class ReferralConversionContextImpl implements ReferralConversionContext {
33
+ protected _version: V1;
34
+ protected _solution: ReferralConversionContextSolution;
35
+ protected _uri: string;
36
+ constructor(_version: V1);
37
+ create(params: CreateReferralConversionRequest, callback?: (error: Error | null, item?: ReferralConversionInstance) => any): Promise<ReferralConversionInstance>;
38
+ /**
39
+ * Provide a user-friendly representation
40
+ *
41
+ * @returns Object
42
+ */
43
+ toJSON(): ReferralConversionContextSolution;
44
+ [inspect.custom](_depth: any, options: InspectOptions): string;
45
+ }
46
+ interface ReferralConversionResource {
47
+ converted_account_sid: string;
48
+ }
49
+ export declare class ReferralConversionInstance {
50
+ protected _version: V1;
51
+ protected _solution: ReferralConversionContextSolution;
52
+ protected _context?: ReferralConversionContext;
53
+ constructor(_version: V1, payload: ReferralConversionResource);
54
+ convertedAccountSid: string;
55
+ private get _proxy();
56
+ /**
57
+ * Create a ReferralConversionInstance
58
+ *
59
+ * @param params - Body for request
60
+ * @param callback - Callback to handle processed record
61
+ *
62
+ * @returns Resolves to processed ReferralConversionInstance
63
+ */
64
+ create(params: CreateReferralConversionRequest, callback?: (error: Error | null, item?: ReferralConversionInstance) => any): Promise<ReferralConversionInstance>;
65
+ /**
66
+ * Provide a user-friendly representation
67
+ *
68
+ * @returns Object
69
+ */
70
+ toJSON(): {
71
+ convertedAccountSid: string;
72
+ };
73
+ [inspect.custom](_depth: any, options: InspectOptions): string;
74
+ }
75
+ export interface ReferralConversionSolution {
76
+ }
77
+ export interface ReferralConversionListInstance {
78
+ _version: V1;
79
+ _solution: ReferralConversionSolution;
80
+ _uri: string;
81
+ (): ReferralConversionContext;
82
+ get(): ReferralConversionContext;
83
+ /**
84
+ * Provide a user-friendly representation
85
+ */
86
+ toJSON(): any;
87
+ [inspect.custom](_depth: any, options: InspectOptions): any;
88
+ }
89
+ export declare function ReferralConversionListInstance(version: V1): ReferralConversionListInstance;
90
+ export {};
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ /*
3
+ * This code was generated by
4
+ * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
5
+ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
6
+ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
7
+ *
8
+ * Twilio - Marketplace
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.ReferralConversionListInstance = exports.ReferralConversionInstance = exports.ReferralConversionContextImpl = exports.CreateReferralConversionRequest = void 0;
17
+ const util_1 = require("util");
18
+ const deserialize = require("../../../base/deserialize");
19
+ const serialize = require("../../../base/serialize");
20
+ class CreateReferralConversionRequest {
21
+ }
22
+ exports.CreateReferralConversionRequest = CreateReferralConversionRequest;
23
+ class ReferralConversionContextImpl {
24
+ constructor(_version) {
25
+ this._version = _version;
26
+ this._solution = {};
27
+ this._uri = `/ReferralConversion`;
28
+ }
29
+ create(params, callback) {
30
+ if (params === null || params === undefined) {
31
+ throw new Error('Required parameter "params" missing.');
32
+ }
33
+ let data = {};
34
+ data = params;
35
+ const headers = {};
36
+ headers["Content-Type"] = "application/json";
37
+ const instance = this;
38
+ let operationVersion = instance._version, operationPromise = operationVersion.create({
39
+ uri: instance._uri,
40
+ method: "post",
41
+ data,
42
+ headers,
43
+ });
44
+ operationPromise = operationPromise.then((payload) => new ReferralConversionInstance(operationVersion, payload));
45
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
46
+ return operationPromise;
47
+ }
48
+ /**
49
+ * Provide a user-friendly representation
50
+ *
51
+ * @returns Object
52
+ */
53
+ toJSON() {
54
+ return this._solution;
55
+ }
56
+ [util_1.inspect.custom](_depth, options) {
57
+ return (0, util_1.inspect)(this.toJSON(), options);
58
+ }
59
+ }
60
+ exports.ReferralConversionContextImpl = ReferralConversionContextImpl;
61
+ class ReferralConversionInstance {
62
+ constructor(_version, payload) {
63
+ this._version = _version;
64
+ this.convertedAccountSid = payload.converted_account_sid;
65
+ this._solution = {};
66
+ }
67
+ get _proxy() {
68
+ this._context =
69
+ this._context || new ReferralConversionContextImpl(this._version);
70
+ return this._context;
71
+ }
72
+ create(params, callback) {
73
+ return this._proxy.create(params, callback);
74
+ }
75
+ /**
76
+ * Provide a user-friendly representation
77
+ *
78
+ * @returns Object
79
+ */
80
+ toJSON() {
81
+ return {
82
+ convertedAccountSid: this.convertedAccountSid,
83
+ };
84
+ }
85
+ [util_1.inspect.custom](_depth, options) {
86
+ return (0, util_1.inspect)(this.toJSON(), options);
87
+ }
88
+ }
89
+ exports.ReferralConversionInstance = ReferralConversionInstance;
90
+ function ReferralConversionListInstance(version) {
91
+ const instance = (() => instance.get());
92
+ instance.get = function get() {
93
+ return new ReferralConversionContextImpl(version);
94
+ };
95
+ instance._version = version;
96
+ instance._solution = {};
97
+ instance._uri = ``;
98
+ instance.toJSON = function toJSON() {
99
+ return instance._solution;
100
+ };
101
+ instance[util_1.inspect.custom] = function inspectImpl(_depth, options) {
102
+ return (0, util_1.inspect)(instance.toJSON(), options);
103
+ };
104
+ return instance;
105
+ }
106
+ exports.ReferralConversionListInstance = ReferralConversionListInstance;
@@ -9,6 +9,8 @@ export interface ExternalCampaignListInstanceCreateOptions {
9
9
  campaignId: string;
10
10
  /** The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource) that the resource is associated with. */
11
11
  messagingServiceSid: string;
12
+ /** Customers should use this flag during the ERC registration process to indicate to Twilio that the campaign being registered is undergoing CNP migration. It is important for the user to first trigger the CNP migration process for said campaign in their CSP portal and have Twilio accept the sharing request, before making this api call. */
13
+ cnpMigration?: boolean;
12
14
  }
13
15
  export interface ExternalCampaignSolution {
14
16
  }
@@ -36,6 +36,8 @@ function ExternalCampaignListInstance(version) {
36
36
  let data = {};
37
37
  data["CampaignId"] = params["campaignId"];
38
38
  data["MessagingServiceSid"] = params["messagingServiceSid"];
39
+ if (params["cnpMigration"] !== undefined)
40
+ data["CnpMigration"] = serialize.bool(params["cnpMigration"]);
39
41
  const headers = {};
40
42
  headers["Content-Type"] = "application/x-www-form-urlencoded";
41
43
  let operationVersion = version, operationPromise = operationVersion.create({
@@ -3,6 +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 V1 from "../../V1";
6
+ /**
7
+ * Options to pass to create a ChannelSenderInstance
8
+ */
9
+ export interface ChannelSenderListInstanceCreateOptions {
10
+ /** The SID of the Channel Sender being added to the Service. */
11
+ sid: string;
12
+ }
6
13
  /**
7
14
  * Options to pass to each
8
15
  */
@@ -37,6 +44,14 @@ export interface ChannelSenderListInstancePageOptions {
37
44
  pageToken?: string;
38
45
  }
39
46
  export interface ChannelSenderContext {
47
+ /**
48
+ * Remove a ChannelSenderInstance
49
+ *
50
+ * @param callback - Callback to handle processed record
51
+ *
52
+ * @returns Resolves to processed boolean
53
+ */
54
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
40
55
  /**
41
56
  * Fetch a ChannelSenderInstance
42
57
  *
@@ -60,6 +75,7 @@ export declare class ChannelSenderContextImpl implements ChannelSenderContext {
60
75
  protected _solution: ChannelSenderContextSolution;
61
76
  protected _uri: string;
62
77
  constructor(_version: V1, messagingServiceSid: string, sid: string);
78
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
63
79
  fetch(callback?: (error: Error | null, item?: ChannelSenderInstance) => any): Promise<ChannelSenderInstance>;
64
80
  /**
65
81
  * Provide a user-friendly representation
@@ -125,6 +141,14 @@ export declare class ChannelSenderInstance {
125
141
  */
126
142
  url: string;
127
143
  private get _proxy();
144
+ /**
145
+ * Remove a ChannelSenderInstance
146
+ *
147
+ * @param callback - Callback to handle processed record
148
+ *
149
+ * @returns Resolves to processed boolean
150
+ */
151
+ remove(callback?: (error: Error | null, item?: boolean) => any): Promise<boolean>;
128
152
  /**
129
153
  * Fetch a ChannelSenderInstance
130
154
  *
@@ -160,6 +184,15 @@ export interface ChannelSenderListInstance {
160
184
  _uri: string;
161
185
  (sid: string): ChannelSenderContext;
162
186
  get(sid: string): ChannelSenderContext;
187
+ /**
188
+ * Create a ChannelSenderInstance
189
+ *
190
+ * @param params - Parameter for request
191
+ * @param callback - Callback to handle processed record
192
+ *
193
+ * @returns Resolves to processed ChannelSenderInstance
194
+ */
195
+ create(params: ChannelSenderListInstanceCreateOptions, callback?: (error: Error | null, item?: ChannelSenderInstance) => any): Promise<ChannelSenderInstance>;
163
196
  /**
164
197
  * Streams ChannelSenderInstance records from the API.
165
198
  *
@@ -34,6 +34,15 @@ class ChannelSenderContextImpl {
34
34
  this._solution = { messagingServiceSid, sid };
35
35
  this._uri = `/Services/${messagingServiceSid}/ChannelSenders/${sid}`;
36
36
  }
37
+ remove(callback) {
38
+ const instance = this;
39
+ let operationVersion = instance._version, operationPromise = operationVersion.remove({
40
+ uri: instance._uri,
41
+ method: "delete",
42
+ });
43
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
44
+ return operationPromise;
45
+ }
37
46
  fetch(callback) {
38
47
  const instance = this;
39
48
  let operationVersion = instance._version, operationPromise = operationVersion.fetch({
@@ -77,6 +86,16 @@ class ChannelSenderInstance {
77
86
  new ChannelSenderContextImpl(this._version, this._solution.messagingServiceSid, this._solution.sid);
78
87
  return this._context;
79
88
  }
89
+ /**
90
+ * Remove a ChannelSenderInstance
91
+ *
92
+ * @param callback - Callback to handle processed record
93
+ *
94
+ * @returns Resolves to processed boolean
95
+ */
96
+ remove(callback) {
97
+ return this._proxy.remove(callback);
98
+ }
80
99
  /**
81
100
  * Fetch a ChannelSenderInstance
82
101
  *
@@ -121,6 +140,27 @@ function ChannelSenderListInstance(version, messagingServiceSid) {
121
140
  instance._version = version;
122
141
  instance._solution = { messagingServiceSid };
123
142
  instance._uri = `/Services/${messagingServiceSid}/ChannelSenders`;
143
+ instance.create = function create(params, callback) {
144
+ if (params === null || params === undefined) {
145
+ throw new Error('Required parameter "params" missing.');
146
+ }
147
+ if (params["sid"] === null || params["sid"] === undefined) {
148
+ throw new Error("Required parameter \"params['sid']\" missing.");
149
+ }
150
+ let data = {};
151
+ data["Sid"] = params["sid"];
152
+ const headers = {};
153
+ headers["Content-Type"] = "application/x-www-form-urlencoded";
154
+ let operationVersion = version, operationPromise = operationVersion.create({
155
+ uri: instance._uri,
156
+ method: "post",
157
+ data,
158
+ headers,
159
+ });
160
+ operationPromise = operationPromise.then((payload) => new ChannelSenderInstance(operationVersion, payload, instance._solution.messagingServiceSid));
161
+ operationPromise = instance._version.setPromiseCallback(operationPromise, callback);
162
+ return operationPromise;
163
+ };
124
164
  instance.page = function page(params, callback) {
125
165
  if (params instanceof Function) {
126
166
  callback = params;
@@ -2,6 +2,7 @@ import NumbersBase from "../NumbersBase";
2
2
  import Version from "../../base/Version";
3
3
  import { AuthorizationDocumentListInstance } from "./v2/authorizationDocument";
4
4
  import { BulkHostedNumberOrderListInstance } from "./v2/bulkHostedNumberOrder";
5
+ import { BundleCloneListInstance } from "./v2/bundleClone";
5
6
  import { HostedNumberOrderListInstance } from "./v2/hostedNumberOrder";
6
7
  import { RegulatoryComplianceListInstance } from "./v2/regulatoryCompliance";
7
8
  export default class V2 extends Version {
@@ -15,6 +16,8 @@ export default class V2 extends Version {
15
16
  protected _authorizationDocuments?: AuthorizationDocumentListInstance;
16
17
  /** bulkHostedNumberOrders - { Twilio.Numbers.V2.BulkHostedNumberOrderListInstance } resource */
17
18
  protected _bulkHostedNumberOrders?: BulkHostedNumberOrderListInstance;
19
+ /** bundleClone - { Twilio.Numbers.V2.BundleCloneListInstance } resource */
20
+ protected _bundleClone?: BundleCloneListInstance;
18
21
  /** hostedNumberOrders - { Twilio.Numbers.V2.HostedNumberOrderListInstance } resource */
19
22
  protected _hostedNumberOrders?: HostedNumberOrderListInstance;
20
23
  /** regulatoryCompliance - { Twilio.Numbers.V2.RegulatoryComplianceListInstance } resource */
@@ -23,6 +26,8 @@ export default class V2 extends Version {
23
26
  get authorizationDocuments(): AuthorizationDocumentListInstance;
24
27
  /** Getter for bulkHostedNumberOrders resource */
25
28
  get bulkHostedNumberOrders(): BulkHostedNumberOrderListInstance;
29
+ /** Getter for bundleClone resource */
30
+ get bundleClone(): BundleCloneListInstance;
26
31
  /** Getter for hostedNumberOrders resource */
27
32
  get hostedNumberOrders(): HostedNumberOrderListInstance;
28
33
  /** Getter for regulatoryCompliance resource */
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  const Version_1 = __importDefault(require("../../base/Version"));
20
20
  const authorizationDocument_1 = require("./v2/authorizationDocument");
21
21
  const bulkHostedNumberOrder_1 = require("./v2/bulkHostedNumberOrder");
22
+ const bundleClone_1 = require("./v2/bundleClone");
22
23
  const hostedNumberOrder_1 = require("./v2/hostedNumberOrder");
23
24
  const regulatoryCompliance_1 = require("./v2/regulatoryCompliance");
24
25
  class V2 extends Version_1.default {
@@ -42,6 +43,11 @@ class V2 extends Version_1.default {
42
43
  this._bulkHostedNumberOrders || (0, bulkHostedNumberOrder_1.BulkHostedNumberOrderListInstance)(this);
43
44
  return this._bulkHostedNumberOrders;
44
45
  }
46
+ /** Getter for bundleClone resource */
47
+ get bundleClone() {
48
+ this._bundleClone = this._bundleClone || (0, bundleClone_1.BundleCloneListInstance)(this);
49
+ return this._bundleClone;
50
+ }
45
51
  /** Getter for hostedNumberOrders resource */
46
52
  get hostedNumberOrders() {
47
53
  this._hostedNumberOrders =
@@ -77,23 +77,23 @@ export declare class PortingPortInInstance {
77
77
  */
78
78
  url: string;
79
79
  /**
80
- * The Account SID that the numbers will be added to after they are ported into Twilio.
80
+ * Account Sid or subaccount where the phone number(s) will be Ported
81
81
  */
82
82
  accountSid: string;
83
83
  /**
84
- * List of emails for getting notifications about the LOA signing process. Allowed Max 10 emails.
84
+ * Additional emails to send a copy of the signed LOA to.
85
85
  */
86
86
  notificationEmails: Array<string>;
87
87
  /**
88
- * Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation.
88
+ * Target date to port the number. We cannot guarantee that this date will be honored by the other carriers, please work with Ops to get a confirmation of the firm order commitment (FOC) date. Expected format is ISO Local Date, example: ‘2011-12-03`. This date must be at least 7 days in the future for US ports and 10 days in the future for Japanese ports. (This value is only available for custom porting customers.)
89
89
  */
90
90
  targetPortInDate: Date;
91
91
  /**
92
- * Minimum hour in the future needs to be established with the Ops team for validation.
92
+ * The earliest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00\'. (This value is only available for custom porting customers.)
93
93
  */
94
94
  targetPortInTimeRangeStart: string;
95
95
  /**
96
- * Maximum hour in the future needs to be established with the Ops team for validation.
96
+ * The latest time that the port should occur on the target port in date. Expected format is ISO Offset Time, example: ‘10:15:00-08:00\'. (This value is only available for custom porting customers.)
97
97
  */
98
98
  targetPortInTimeRangeEnd: string;
99
99
  /**
@@ -101,15 +101,12 @@ export declare class PortingPortInInstance {
101
101
  */
102
102
  portInRequestStatus: string;
103
103
  /**
104
- * The information for the losing carrier.
104
+ * Details regarding the customer’s information with the losing carrier. These values will be used to generate the letter of authorization and should match the losing carrier’s data as closely as possible to ensure the port is accepted.
105
105
  */
106
106
  losingCarrierInformation: any;
107
- /**
108
- * The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212).
109
- */
110
107
  phoneNumbers: Array<any>;
111
108
  /**
112
- * The list of documents SID referencing a utility bills
109
+ * List of document SIDs for all phone numbers included in the port in request. At least one document SID referring to a document of the type Utility Bill is required.
113
110
  */
114
111
  documents: Array<string>;
115
112
  dateCreated: Date;