Skip to content

Commit

Permalink
[Librarian] Regenerated @ c3db20dd5f24647ef2bd3fb8b955496c59bb22bd
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Feb 9, 2024
1 parent a86024d commit 84bcabe
Show file tree
Hide file tree
Showing 66 changed files with 4,680 additions and 7,895 deletions.
65 changes: 65 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,71 @@
twilio-node changelog
=====================

[2024-02-09] Version 4.22.0
---------------------------
**Library - Chore**
- [PR #1002](https://github.com/twilio/twilio-node/pull/1002): disable cluster test. Thanks to [@sbansla](https://github.com/sbansla)!
- [PR #1001](https://github.com/twilio/twilio-node/pull/1001): Remove Media V1. Thanks to [@califlower](https://github.com/califlower)!
- [PR #997](https://github.com/twilio/twilio-node/pull/997): removing oauth and autopilot references. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!

**Api**
- Updated service base url for connect apps and authorized connect apps APIs **(breaking change)**
- Update documentation to reflect RiskCheck GA
- Added optional parameter `CallToken` for create participant api

**Events**
- Marked as GA

**Flex**
- Adding `flex_instance_sid` to Flex Configuration
- Adding `provisioning_status` for Email Manager
- Adding `offline_config` to Flex Configuration

**Insights**
- add flag to restrict access to unapid customers
- decommission voice-qualitystats-endpoint role

**Intelligence**
- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection.

**Lookups**
- Remove `carrier` field from `sms_pumping_risk` and leave `carrier_risk_category` **(breaking change)**
- Remove carrier information from call forwarding package **(breaking change)**

**Messaging**
- Add update instance endpoints to us_app_to_person api
- Add tollfree edit_allowed and edit_reason fields
- Update Phone Number, Short Code, Alpha Sender, US A2P and Channel Sender documentation
- Add DELETE support to Tollfree Verification resource

**Numbers**
- Add Get Port In request api

**Push**
- Migrated to new Push API V4 with Resilient Notification Delivery.

**Serverless**
- Add node18 as a valid Build runtime

**Taskrouter**
- Add `jitter_buffer_size` param in update reservation
- Add container attribute to task_queue_bulk_real_time_statistics endpoint
- Remove beta_feature check on task_queue_bulk_real_time_statistics endpoint

**Trusthub**
- Add optional field NotificationEmail to the POST /v1/ComplianceInquiries/Customers/Initialize API
- Add additional optional fields in compliance_tollfree_inquiry.json
- Rename did to tollfree_phone_number in compliance_tollfree_inquiry.json
- Add new optional field notification_email to compliance_tollfree_inquiry.json

**Verify**
- `Tags` property added again to Public Docs **(breaking change)**
- Remove `Tags` from Public Docs **(breaking change)**
- Add `VerifyEventSubscriptionEnabled` parameter to service create and update endpoints.
- Add `Tags` optional parameter on Verification creation.
- Update Verify TOTP maturity to GA.


[2024-01-25] Version 4.21.0
---------------------------
**Library - Fix**
Expand Down
5 changes: 5 additions & 0 deletions src/rest/Media.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import MediaBase from "./MediaBase";

class Media extends MediaBase {}

export = Media;
33 changes: 33 additions & 0 deletions src/rest/MediaBase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import Domain from "../base/Domain";
import V1 from "./media/V1";

class MediaBase extends Domain {
_v1?: V1;

/**
* Initialize media domain
*
* @param twilio - The twilio client
*/
constructor(twilio: any) {
super(twilio, "https://media.twilio.com");
}

get v1(): V1 {
this._v1 = this._v1 || new V1(this);
return this._v1;
}
}

export = MediaBase;
6 changes: 0 additions & 6 deletions src/rest/PreviewBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ import DeployedDevices from "./preview/DeployedDevices";
import HostedNumbers from "./preview/HostedNumbers";
import Sync from "./preview/Sync";
import Marketplace from "./preview/Marketplace";
import Understand from "./preview/Understand";
import Wireless from "./preview/Wireless";

class PreviewBase extends Domain {
_deployed_devices?: DeployedDevices;
_hosted_numbers?: HostedNumbers;
_sync?: Sync;
_marketplace?: Marketplace;
_understand?: Understand;
_wireless?: Wireless;

/**
Expand Down Expand Up @@ -51,10 +49,6 @@ class PreviewBase extends Domain {
this._marketplace = this._marketplace || new Marketplace(this);
return this._marketplace;
}
get understand(): Understand {
this._understand = this._understand || new Understand(this);
return this._understand;
}
get wireless(): Wireless {
this._wireless = this._wireless || new Wireless(this);
return this._wireless;
Expand Down
8 changes: 8 additions & 0 deletions src/rest/Twilio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import Insights from "./Insights";
import Intelligence from "./Intelligence";
import IpMessaging from "./IpMessaging";
import Lookups from "./Lookups";
import Media from "./Media";
import Messaging from "./Messaging";
import Microvisor from "./Microvisor";
import Monitor from "./Monitor";
Expand Down Expand Up @@ -101,6 +102,8 @@ class Twilio extends Client {
_ipMessaging?: IpMessaging;
/** (Twilio.Lookups) - lookups domain */
_lookups?: Lookups;
/** (Twilio.Media) - media domain */
_media?: Media;
/** (Twilio.Messaging) - messaging domain */
_messaging?: Messaging;
/** (Twilio.Microvisor) - microvisor domain */
Expand Down Expand Up @@ -172,6 +175,7 @@ class Twilio extends Client {
this.intelligence;
this.ipMessaging;
this.lookups;
this.media;
this.messaging;
this.microvisor;
this.monitor;
Expand Down Expand Up @@ -267,6 +271,10 @@ class Twilio extends Client {
get lookups(): Lookups {
return this._lookups ?? (this._lookups = new (require("./Lookups"))(this));
}
/** Getter for (Twilio.Media) domain */
get media(): Media {
return this._media ?? (this._media = new (require("./Media"))(this));
}
/** Getter for (Twilio.Messaging) domain */
get messaging(): Messaging {
return (
Expand Down
14 changes: 0 additions & 14 deletions src/rest/api/v2010/account/authorizedConnectApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ interface AuthorizedConnectAppResource {
connect_app_friendly_name: string;
connect_app_homepage_url: string;
connect_app_sid: string;
date_created: Date;
date_updated: Date;
permissions: Array<AuthorizedConnectAppPermission>;
uri: string;
}
Expand All @@ -182,8 +180,6 @@ export class AuthorizedConnectAppInstance {
this.connectAppFriendlyName = payload.connect_app_friendly_name;
this.connectAppHomepageUrl = payload.connect_app_homepage_url;
this.connectAppSid = payload.connect_app_sid;
this.dateCreated = deserialize.rfc2822DateTime(payload.date_created);
this.dateUpdated = deserialize.rfc2822DateTime(payload.date_updated);
this.permissions = payload.permissions;
this.uri = payload.uri;

Expand Down Expand Up @@ -217,14 +213,6 @@ export class AuthorizedConnectAppInstance {
* The SID that we assigned to the Connect App.
*/
connectAppSid: string;
/**
* The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
*/
dateCreated: Date;
/**
* The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
*/
dateUpdated: Date;
/**
* The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`.
*/
Expand Down Expand Up @@ -271,8 +259,6 @@ export class AuthorizedConnectAppInstance {
connectAppFriendlyName: this.connectAppFriendlyName,
connectAppHomepageUrl: this.connectAppHomepageUrl,
connectAppSid: this.connectAppSid,
dateCreated: this.dateCreated,
dateUpdated: this.dateUpdated,
permissions: this.permissions,
uri: this.uri,
};
Expand Down
4 changes: 4 additions & 0 deletions src/rest/api/v2010/account/conference/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ export interface ParticipantListInstanceCreateOptions {
amdStatusCallbackMethod?: string;
/** Whether to trim any leading and trailing silence from the participant recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`. */
trim?: string;
/** A token string needed to invoke a forwarded call. A call_token is generated when an incoming call is received on a Twilio number. Pass an incoming call\\\'s call_token value to a forwarded call via the call_token parameter when creating a new call. A forwarded call should bear the same CallerID of the original incoming call. */
callToken?: string;
}
/**
* Options to pass to each
Expand Down Expand Up @@ -887,6 +889,8 @@ export function ParticipantListInstance(
if (params["amdStatusCallbackMethod"] !== undefined)
data["AmdStatusCallbackMethod"] = params["amdStatusCallbackMethod"];
if (params["trim"] !== undefined) data["Trim"] = params["trim"];
if (params["callToken"] !== undefined)
data["CallToken"] = params["callToken"];

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
Expand Down
8 changes: 4 additions & 4 deletions src/rest/api/v2010/account/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export interface MessageListInstanceCreateOptions {
smartEncoded?: boolean;
/** Rich actions for non-SMS/MMS channels. Used for [sending location in WhatsApp messages](https://www.twilio.com/docs/whatsapp/message-features#location-messages-with-whatsapp). */
persistentAction?: Array<string>;
/** For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/how-to-configure-link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided. */
/** For Messaging Services with [Link Shortening configured](https://www.twilio.com/docs/messaging/features/link-shortening) only: A Boolean indicating whether or not Twilio should shorten links in the `body` of the Message. Default value is `false`. If `true`, the `messaging_service_sid` parameter must also be provided. */
shortenUrls?: boolean;
/** */
scheduleType?: MessageScheduleType;
Expand All @@ -103,13 +103,13 @@ export interface MessageListInstanceCreateOptions {
contentVariables?: string;
/** */
riskCheck?: MessageRiskCheck;
/** 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 belongs 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. */
/** 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/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), 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 belongs 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. */
from?: string;
/** The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service\\\'s Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool. */
messagingServiceSid?: string;
/** The text content of the outgoing message. Can be up to 1,600 characters in length. SMS only: If the `body` contains more than 160 [GSM-7](https://www.twilio.com/docs/glossary/what-is-gsm-7-character-encoding) characters (or 70 [UCS-2](https://www.twilio.com/docs/glossary/what-is-ucs-2-character-encoding) characters), the message is segmented and charged accordingly. For long `body` text, consider using the [send_as_mms parameter](https://www.twilio.com/blog/mms-for-long-text-messages). */
body?: string;
/** The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/sms/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply. */
/** The URL of media to include in the Message content. `jpeg`, `jpg`, `gif`, and `png` file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (`jpeg`, `jpg`, `png`, `gif`) and 500 KB for [other types](https://www.twilio.com/docs/messaging/guides/accepted-mime-types) of accepted media. To send more than one image in the message, provide multiple `media_url` parameters in the POST request. You can include up to ten `media_url` parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages) and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-) limits apply. */
mediaUrl?: Array<string>;
/** For [Content Editor/API](https://www.twilio.com/docs/content) only: The SID of the Content Template to be used with the Message, e.g., `HXXXXXXXXXXXXXXXXXXXXXXXXXXXXX`. If this parameter is not provided, a Content Template is not used. Find the SID in the Console on the Content Editor page. For Content API users, the SID is found in Twilio\\\'s response when [creating the Template](https://www.twilio.com/docs/content/content-api-resources#create-templates) or by [fetching your Templates](https://www.twilio.com/docs/content/content-api-resources#fetch-all-content-resources). */
contentSid?: string;
Expand Down Expand Up @@ -459,7 +459,7 @@ export class MessageInstance {
numSegments: string;
direction: MessageDirection;
/**
* The sender\'s 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`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent.
* The sender\'s phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/quickstart), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/en-us/messaging/channels/sms/short-codes), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent.
*/
from: string;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/rest/content/v1/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export class ContentInstance {
*/
variables: any;
/**
* The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
* The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
*/
types: any;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/rest/content/v1/contentAndApprovals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ export class ContentAndApprovalsInstance {
*/
variables: any;
/**
* The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
* The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
*/
types: any;
/**
Expand Down
2 changes: 1 addition & 1 deletion src/rest/content/v1/legacyContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export class LegacyContentInstance {
*/
variables: any;
/**
* The [Content types](https://www.twilio.com/docs/content-api/content-types-overview) (e.g. twilio/text) for this Content resource.
* The [Content types](https://www.twilio.com/docs/content/content-types-overview) (e.g. twilio/text) for this Content resource.
*/
types: any;
/**
Expand Down
4 changes: 2 additions & 2 deletions src/rest/conversations/v1/conversation/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface MessageListInstanceCreateOptions {
attributes?: string;
/** The Media SID to be attached to the new Message. */
mediaSid?: string;
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
contentSid?: string;
/** A structurally valid JSON string that contains values to resolve Rich Content template variables. */
contentVariables?: string;
Expand Down Expand Up @@ -462,7 +462,7 @@ export class MessageInstance {
*/
links: Record<string, string>;
/**
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template.
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template.
*/
contentSid: string;

Expand Down
4 changes: 2 additions & 2 deletions src/rest/conversations/v1/service/conversation/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export interface MessageListInstanceCreateOptions {
attributes?: string;
/** The Media SID to be attached to the new Message. */
mediaSid?: string;
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
/** The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template, required for template-generated messages. **Note** that if this field is set, `Body` and `MediaSid` parameters are ignored. */
contentSid?: string;
/** A structurally valid JSON string that contains values to resolve Rich Content template variables. */
contentVariables?: string;
Expand Down Expand Up @@ -482,7 +482,7 @@ export class MessageInstance {
*/
links: Record<string, string>;
/**
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content-api) template.
* The unique ID of the multi-channel [Rich Content](https://www.twilio.com/docs/content) template.
*/
contentSid: string;

Expand Down
Loading

0 comments on commit 84bcabe

Please sign in to comment.