Skip to content

Commit

Permalink
[Librarian] Regenerated @ a25fe2e20ee404d8f8642d6e5acceff276916c9e
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Oct 5, 2023
1 parent 316114b commit 0ccd7ca
Show file tree
Hide file tree
Showing 4 changed files with 350 additions and 10 deletions.
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
twilio-node changelog
=====================

[2023-10-05] Version 4.18.1
---------------------------
**Library - Fix**
- [PR #961](https://github.com/twilio/twilio-node/pull/961): update security method validatessl. Thanks to [@AsabuHere](https://github.com/AsabuHere)!

**Lookups**
- Add test api support for Lookup v2


[2023-09-21] Version 4.18.0
---------------------------
**Conversations**
Expand Down
10 changes: 0 additions & 10 deletions src/rest/api/v2010/account/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ export interface MessageListInstanceCreateOptions {
sendAsMms?: boolean;
/** 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. */
contentVariables?: string;
/** 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. */
tags?: 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. */
Expand Down Expand Up @@ -415,7 +413,6 @@ interface MessageResource {
price_unit: string;
api_version: string;
subresource_uris: Record<string, string>;
tags: any;
}

export class MessageInstance {
Expand Down Expand Up @@ -448,7 +445,6 @@ export class MessageInstance {
this.priceUnit = payload.price_unit;
this.apiVersion = payload.api_version;
this.subresourceUris = payload.subresource_uris;
this.tags = payload.tags;

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

private get _proxy(): MessageContext {
this._context =
Expand Down Expand Up @@ -640,7 +632,6 @@ export class MessageInstance {
priceUnit: this.priceUnit,
apiVersion: this.apiVersion,
subresourceUris: this.subresourceUris,
tags: this.tags,
};
}

Expand Down Expand Up @@ -816,7 +807,6 @@ export function MessageListInstance(
data["SendAsMms"] = serialize.bool(params["sendAsMms"]);
if (params["contentVariables"] !== undefined)
data["ContentVariables"] = params["contentVariables"];
if (params["tags"] !== undefined) data["Tags"] = params["tags"];
if (params["riskCheck"] !== undefined)
data["RiskCheck"] = params["riskCheck"];
if (params["from"] !== undefined) data["From"] = params["from"];
Expand Down
10 changes: 10 additions & 0 deletions src/rest/trusthub/V1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import TrusthubBase from "../TrusthubBase";
import Version from "../../base/Version";
import { ComplianceInquiriesListInstance } from "./v1/complianceInquiries";
import { CustomerProfilesListInstance } from "./v1/customerProfiles";
import { EndUserListInstance } from "./v1/endUser";
import { EndUserTypeListInstance } from "./v1/endUserType";
Expand All @@ -32,6 +33,8 @@ export default class V1 extends Version {
super(domain, "v1");
}

/** complianceInquiries - { Twilio.Trusthub.V1.ComplianceInquiriesListInstance } resource */
protected _complianceInquiries?: ComplianceInquiriesListInstance;
/** customerProfiles - { Twilio.Trusthub.V1.CustomerProfilesListInstance } resource */
protected _customerProfiles?: CustomerProfilesListInstance;
/** endUsers - { Twilio.Trusthub.V1.EndUserListInstance } resource */
Expand All @@ -47,6 +50,13 @@ export default class V1 extends Version {
/** trustProducts - { Twilio.Trusthub.V1.TrustProductsListInstance } resource */
protected _trustProducts?: TrustProductsListInstance;

/** Getter for complianceInquiries resource */
get complianceInquiries(): ComplianceInquiriesListInstance {
this._complianceInquiries =
this._complianceInquiries || ComplianceInquiriesListInstance(this);
return this._complianceInquiries;
}

/** Getter for customerProfiles resource */
get customerProfiles(): CustomerProfilesListInstance {
this._customerProfiles =
Expand Down
Loading

0 comments on commit 0ccd7ca

Please sign in to comment.