Skip to content

Commit 8c2edfc

Browse files
committed
[Librarian] Regenerated @ b32d3e1eba2177c81eeca51181f67e618fe86dbe
1 parent 7203ad0 commit 8c2edfc

File tree

6 files changed

+66
-34
lines changed

6 files changed

+66
-34
lines changed

CHANGES.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
twilio-node changelog
22
=====================
33

4+
[2023-09-07] Version 4.17.0
5+
---------------------------
6+
**Api**
7+
- Make message tagging parameters public **(breaking change)**
8+
9+
**Flex**
10+
- Adding `agent_conv_end_methods` to Flex Configuration
11+
12+
**Messaging**
13+
- Mark Mesasging Services fallback_to_long_code feature obsolete
14+
15+
**Numbers**
16+
- Add Create Port In request api
17+
- Renaming sid for bulk_hosting_sid and remove account_sid response field in numbers/v2/BulkHostedNumberOrders **(breaking change)**
18+
19+
**Pricing**
20+
- gate resources behind a beta_feature
21+
22+
423
[2023-08-24] Version 4.16.0
524
---------------------------
625
**Api**

src/rest/api/v2010/account/message.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ export interface MessageListInstanceCreateOptions {
101101
sendAsMms?: boolean;
102102
/** For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template\\\'s default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used. */
103103
contentVariables?: string;
104+
/** 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. */
105+
tags?: string;
104106
/** */
105107
riskCheck?: MessageRiskCheck;
106108
/** The sender\\\'s Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belong to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service\\\'s Sender Pool) or you can provide a specific sender from your Sender Pool. */
@@ -413,6 +415,7 @@ interface MessageResource {
413415
price_unit: string;
414416
api_version: string;
415417
subresource_uris: Record<string, string>;
418+
tags: any;
416419
}
417420

418421
export class MessageInstance {
@@ -445,6 +448,7 @@ export class MessageInstance {
445448
this.priceUnit = payload.price_unit;
446449
this.apiVersion = payload.api_version;
447450
this.subresourceUris = payload.subresource_uris;
451+
this.tags = payload.tags;
448452

449453
this._solution = { accountSid, sid: sid || this.sid };
450454
}
@@ -523,6 +527,10 @@ export class MessageInstance {
523527
* A list of related resources identified by their URIs relative to `https://api.twilio.com`
524528
*/
525529
subresourceUris: Record<string, string>;
530+
/**
531+
* A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message.
532+
*/
533+
tags: any;
526534

527535
private get _proxy(): MessageContext {
528536
this._context =
@@ -632,6 +640,7 @@ export class MessageInstance {
632640
priceUnit: this.priceUnit,
633641
apiVersion: this.apiVersion,
634642
subresourceUris: this.subresourceUris,
643+
tags: this.tags,
635644
};
636645
}
637646

@@ -807,6 +816,7 @@ export function MessageListInstance(
807816
data["SendAsMms"] = serialize.bool(params["sendAsMms"]);
808817
if (params["contentVariables"] !== undefined)
809818
data["ContentVariables"] = params["contentVariables"];
819+
if (params["tags"] !== undefined) data["Tags"] = params["tags"];
810820
if (params["riskCheck"] !== undefined)
811821
data["RiskCheck"] = params["riskCheck"];
812822
if (params["from"] !== undefined) data["From"] = params["from"];

src/rest/api/v2010/account/message/feedback.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,20 +173,20 @@ export class FeedbackInstance {
173173
}
174174

175175
/**
176-
* The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the MessageFeedback resource.
176+
* The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this MessageFeedback resource.
177177
*/
178178
accountSid: string;
179179
/**
180-
* The SID of the Message resource for which the feedback was provided.
180+
* The SID of the Message resource associated with this MessageFeedback resource.
181181
*/
182182
messageSid: string;
183183
outcome: FeedbackOutcome;
184184
/**
185-
* The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
185+
* The date and time in GMT when this MessageFeedback resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
186186
*/
187187
dateCreated: Date;
188188
/**
189-
* The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
189+
* The date and time in GMT when this MessageFeedback resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
190190
*/
191191
dateUpdated: Date;
192192
/**

src/rest/flexApi/v1/configuration.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ interface ConfigurationResource {
172172
channel_configs: Array<any>;
173173
debugger_integration: any;
174174
flex_ui_status_report: any;
175+
agent_conv_end_methods: any;
175176
}
176177

177178
export class ConfigurationInstance {
@@ -224,6 +225,7 @@ export class ConfigurationInstance {
224225
this.channelConfigs = payload.channel_configs;
225226
this.debuggerIntegration = payload.debugger_integration;
226227
this.flexUiStatusReport = payload.flex_ui_status_report;
228+
this.agentConvEndMethods = payload.agent_conv_end_methods;
227229

228230
this._solution = {};
229231
}
@@ -405,6 +407,10 @@ export class ConfigurationInstance {
405407
* Configurable parameters for Flex UI Status report.
406408
*/
407409
flexUiStatusReport: any;
410+
/**
411+
* Agent conversation end methods.
412+
*/
413+
agentConvEndMethods: any;
408414

409415
private get _proxy(): ConfigurationContext {
410416
this._context =
@@ -494,6 +500,7 @@ export class ConfigurationInstance {
494500
channelConfigs: this.channelConfigs,
495501
debuggerIntegration: this.debuggerIntegration,
496502
flexUiStatusReport: this.flexUiStatusReport,
503+
agentConvEndMethods: this.agentConvEndMethods,
497504
};
498505
}
499506

src/rest/messaging/v1/service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface ServiceContextUpdateOptions {
5252
smartEncoding?: boolean;
5353
/** */
5454
scanMessageContent?: ServiceScanMessageContent;
55-
/** Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. */
55+
/** [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. */
5656
fallbackToLongCode?: boolean;
5757
/** Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. */
5858
areaCodeGeomatch?: boolean;
@@ -90,7 +90,7 @@ export interface ServiceListInstanceCreateOptions {
9090
smartEncoding?: boolean;
9191
/** */
9292
scanMessageContent?: ServiceScanMessageContent;
93-
/** Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance. */
93+
/** [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures. */
9494
fallbackToLongCode?: boolean;
9595
/** Whether to enable [Area Code Geomatch](https://www.twilio.com/docs/messaging/services#area-code-geomatch) on the Service Instance. */
9696
areaCodeGeomatch?: boolean;
@@ -509,7 +509,7 @@ export class ServiceInstance {
509509
smartEncoding: boolean;
510510
scanMessageContent: ServiceScanMessageContent;
511511
/**
512-
* Whether to enable [Fallback to Long Code](https://www.twilio.com/docs/messaging/services#fallback-to-long-code) for messages sent through the Service instance.
512+
* [OBSOLETE] Former feature used to fallback to long code sender after certain short code message failures.
513513
*/
514514
fallbackToLongCode: boolean;
515515
/**

src/rest/numbers/v2/bulkHostedNumberOrder.ts

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export interface BulkHostedNumberOrderContext {
6969
}
7070

7171
export interface BulkHostedNumberOrderContextSolution {
72-
sid: string;
72+
bulkHostingSid: string;
7373
}
7474

7575
export class BulkHostedNumberOrderContextImpl
@@ -78,13 +78,13 @@ export class BulkHostedNumberOrderContextImpl
7878
protected _solution: BulkHostedNumberOrderContextSolution;
7979
protected _uri: string;
8080

81-
constructor(protected _version: V2, sid: string) {
82-
if (!isValidPathParam(sid)) {
83-
throw new Error("Parameter 'sid' is not valid.");
81+
constructor(protected _version: V2, bulkHostingSid: string) {
82+
if (!isValidPathParam(bulkHostingSid)) {
83+
throw new Error("Parameter 'bulkHostingSid' is not valid.");
8484
}
8585

86-
this._solution = { sid };
87-
this._uri = `/HostedNumber/Orders/Bulk/${sid}`;
86+
this._solution = { bulkHostingSid };
87+
this._uri = `/HostedNumber/Orders/Bulk/${bulkHostingSid}`;
8888
}
8989

9090
fetch(
@@ -124,7 +124,7 @@ export class BulkHostedNumberOrderContextImpl
124124
new BulkHostedNumberOrderInstance(
125125
operationVersion,
126126
payload,
127-
instance._solution.sid
127+
instance._solution.bulkHostingSid
128128
)
129129
);
130130

@@ -152,8 +152,7 @@ export class BulkHostedNumberOrderContextImpl
152152
interface BulkHostedNumberOrderPayload extends BulkHostedNumberOrderResource {}
153153

154154
interface BulkHostedNumberOrderResource {
155-
sid: string;
156-
account_sid: string;
155+
bulk_hosting_sid: string;
157156
request_status: BulkHostedNumberOrderRequestStatus;
158157
friendly_name: string;
159158
notification_email: string;
@@ -171,10 +170,9 @@ export class BulkHostedNumberOrderInstance {
171170
constructor(
172171
protected _version: V2,
173172
payload: BulkHostedNumberOrderResource,
174-
sid?: string
173+
bulkHostingSid?: string
175174
) {
176-
this.sid = payload.sid;
177-
this.accountSid = payload.account_sid;
175+
this.bulkHostingSid = payload.bulk_hosting_sid;
178176
this.requestStatus = payload.request_status;
179177
this.friendlyName = payload.friendly_name;
180178
this.notificationEmail = payload.notification_email;
@@ -184,17 +182,13 @@ export class BulkHostedNumberOrderInstance {
184182
this.totalCount = deserialize.integer(payload.total_count);
185183
this.results = payload.results;
186184

187-
this._solution = { sid: sid || this.sid };
185+
this._solution = { bulkHostingSid: bulkHostingSid || this.bulkHostingSid };
188186
}
189187

190188
/**
191189
* A 34 character string that uniquely identifies this BulkHostedNumberOrder.
192190
*/
193-
sid: string;
194-
/**
195-
* A 34 character string that uniquely identifies the account.
196-
*/
197-
accountSid: string;
191+
bulkHostingSid: string;
198192
requestStatus: BulkHostedNumberOrderRequestStatus;
199193
/**
200194
* A 128 character string that is a human-readable text that describes this resource.
@@ -228,7 +222,10 @@ export class BulkHostedNumberOrderInstance {
228222
private get _proxy(): BulkHostedNumberOrderContext {
229223
this._context =
230224
this._context ||
231-
new BulkHostedNumberOrderContextImpl(this._version, this._solution.sid);
225+
new BulkHostedNumberOrderContextImpl(
226+
this._version,
227+
this._solution.bulkHostingSid
228+
);
232229
return this._context;
233230
}
234231

@@ -278,8 +275,7 @@ export class BulkHostedNumberOrderInstance {
278275
*/
279276
toJSON() {
280277
return {
281-
sid: this.sid,
282-
accountSid: this.accountSid,
278+
bulkHostingSid: this.bulkHostingSid,
283279
requestStatus: this.requestStatus,
284280
friendlyName: this.friendlyName,
285281
notificationEmail: this.notificationEmail,
@@ -303,8 +299,8 @@ export interface BulkHostedNumberOrderListInstance {
303299
_solution: BulkHostedNumberOrderSolution;
304300
_uri: string;
305301

306-
(sid: string): BulkHostedNumberOrderContext;
307-
get(sid: string): BulkHostedNumberOrderContext;
302+
(bulkHostingSid: string): BulkHostedNumberOrderContext;
303+
get(bulkHostingSid: string): BulkHostedNumberOrderContext;
308304

309305
/**
310306
* Provide a user-friendly representation
@@ -316,11 +312,11 @@ export interface BulkHostedNumberOrderListInstance {
316312
export function BulkHostedNumberOrderListInstance(
317313
version: V2
318314
): BulkHostedNumberOrderListInstance {
319-
const instance = ((sid) =>
320-
instance.get(sid)) as BulkHostedNumberOrderListInstance;
315+
const instance = ((bulkHostingSid) =>
316+
instance.get(bulkHostingSid)) as BulkHostedNumberOrderListInstance;
321317

322-
instance.get = function get(sid): BulkHostedNumberOrderContext {
323-
return new BulkHostedNumberOrderContextImpl(version, sid);
318+
instance.get = function get(bulkHostingSid): BulkHostedNumberOrderContext {
319+
return new BulkHostedNumberOrderContextImpl(version, bulkHostingSid);
324320
};
325321

326322
instance._version = version;

0 commit comments

Comments
 (0)