Skip to content

Commit

Permalink
[Librarian] Regenerated @ ca4a5892d2b6a6161860845fe1152af07920bc07 40…
Browse files Browse the repository at this point in the history
…3073118470eabf87311669c7fea876d35ced04
  • Loading branch information
twilio-dx committed Dec 12, 2024
1 parent 16b22d4 commit 60d68cf
Show file tree
Hide file tree
Showing 498 changed files with 3,174 additions and 210 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
=====================

[2024-12-12] Version 5.4.0
--------------------------
**Library - Chore**
- [PR #1058](https://github.com/twilio/twilio-node/pull/1058): add v22 support. Thanks to [@manisha1997](https://github.com/manisha1997)!

**Library - Feature**
- [PR #1057](https://github.com/twilio/twilio-node/pull/1057): add support for OAuth and Orgs API. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!


[2024-12-05] Version 5.3.7
--------------------------
**Api**
Expand Down
22 changes: 11 additions & 11 deletions src/rest/Twilio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import Conversations from "./Conversations";
import Events from "./Events";
import FlexApi from "./FlexApi";
import FrontlineApi from "./FrontlineApi";
import PreviewIam from "./PreviewIam";
import Iam from "./Iam";
import Insights from "./Insights";
import Intelligence from "./Intelligence";
Expand All @@ -33,7 +34,6 @@ import Notify from "./Notify";
import Numbers from "./Numbers";
import Oauth from "./Oauth";
import Preview from "./Preview";
import PreviewIam from "./PreviewIam";
import Pricing from "./Pricing";
import Proxy from "./Proxy";
import Routes from "./Routes";
Expand Down Expand Up @@ -100,6 +100,8 @@ class Twilio extends Client {
_flexApi?: FlexApi;
/** (Twilio.FrontlineApi) - frontlineApi domain */
_frontlineApi?: FrontlineApi;
/** (Twilio.PreviewIam) - previewIam domain */
_previewIam?: PreviewIam;
/** (Twilio.Iam) - iam domain */
_iam?: Iam;
/** (Twilio.Insights) - insights domain */
Expand All @@ -126,8 +128,6 @@ class Twilio extends Client {
_oauth?: Oauth;
/** (Twilio.Preview) - preview domain */
_preview?: Preview;
/** (Twilio.PreviewIam) - previewIam domain */
_previewIam?: PreviewIam;
/** (Twilio.Pricing) - pricing domain */
_pricing?: Pricing;
/** (Twilio.Proxy) - proxy domain */
Expand Down Expand Up @@ -184,6 +184,7 @@ class Twilio extends Client {
this.events;
this.flexApi;
this.frontlineApi;
this.previewIam;
this.iam;
this.insights;
this.intelligence;
Expand All @@ -197,7 +198,6 @@ class Twilio extends Client {
this.numbers;
this.oauth;
this.preview;
this.previewIam;
this.pricing;
this.proxy;
this.routes;
Expand Down Expand Up @@ -270,6 +270,13 @@ class Twilio extends Client {
(this._frontlineApi = new (require("./FrontlineApi"))(this))
);
}
/** Getter for (Twilio.PreviewIam) domain */
get previewIam(): PreviewIam {
return (
this._previewIam ??
(this._previewIam = new (require("./PreviewIam"))(this))
);
}
/** Getter for (Twilio.Iam) domain */
get iam(): Iam {
return this._iam ?? (this._iam = new (require("./Iam"))(this));
Expand Down Expand Up @@ -338,13 +345,6 @@ class Twilio extends Client {
get preview(): Preview {
return this._preview ?? (this._preview = new (require("./Preview"))(this));
}
/** Getter for (Twilio.PreviewIam) domain */
get previewIam(): PreviewIam {
return (
this._previewIam ??
(this._previewIam = new (require("./PreviewIam"))(this))
);
}
/** Getter for (Twilio.Pricing) domain */
get pricing(): Pricing {
return this._pricing ?? (this._pricing = new (require("./Pricing"))(this));
Expand Down
4 changes: 4 additions & 0 deletions src/rest/accounts/v1/authTokenPromotion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,15 @@ export class AuthTokenPromotionContextImpl
update(
callback?: (error: Error | null, item?: AuthTokenPromotionInstance) => any
): Promise<AuthTokenPromotionInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.update({
uri: instance._uri,
method: "post",
headers,
});

operationPromise = operationPromise.then(
Expand Down
1 change: 1 addition & 0 deletions src/rest/accounts/v1/bulkConsents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function BulkConsentsListInstance(

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down
1 change: 1 addition & 0 deletions src/rest/accounts/v1/bulkContacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function BulkContactsListInstance(

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down
10 changes: 10 additions & 0 deletions src/rest/accounts/v1/credential/aws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,14 @@ export class AwsContextImpl implements AwsContext {
remove(
callback?: (error: Error | null, item?: boolean) => any
): Promise<boolean> {
const headers: any = {};

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.remove({
uri: instance._uri,
method: "delete",
headers,
});

operationPromise = instance._version.setPromiseCallback(
Expand All @@ -165,11 +168,15 @@ export class AwsContextImpl implements AwsContext {
fetch(
callback?: (error: Error | null, item?: AwsInstance) => any
): Promise<AwsInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
headers,
});

operationPromise = operationPromise.then(
Expand Down Expand Up @@ -204,6 +211,7 @@ export class AwsContextImpl implements AwsContext {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
Expand Down Expand Up @@ -508,6 +516,7 @@ export function AwsListInstance(version: V1): AwsListInstance {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down Expand Up @@ -549,6 +558,7 @@ export function AwsListInstance(version: V1): AwsListInstance {
if (params.pageToken !== undefined) data["PageToken"] = params.pageToken;

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.page({
Expand Down
10 changes: 10 additions & 0 deletions src/rest/accounts/v1/credential/publicKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,14 @@ export class PublicKeyContextImpl implements PublicKeyContext {
remove(
callback?: (error: Error | null, item?: boolean) => any
): Promise<boolean> {
const headers: any = {};

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.remove({
uri: instance._uri,
method: "delete",
headers,
});

operationPromise = instance._version.setPromiseCallback(
Expand All @@ -165,11 +168,15 @@ export class PublicKeyContextImpl implements PublicKeyContext {
fetch(
callback?: (error: Error | null, item?: PublicKeyInstance) => any
): Promise<PublicKeyInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
headers,
});

operationPromise = operationPromise.then(
Expand Down Expand Up @@ -204,6 +211,7 @@ export class PublicKeyContextImpl implements PublicKeyContext {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
Expand Down Expand Up @@ -513,6 +521,7 @@ export function PublicKeyListInstance(version: V1): PublicKeyListInstance {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down Expand Up @@ -554,6 +563,7 @@ export function PublicKeyListInstance(version: V1): PublicKeyListInstance {
if (params.pageToken !== undefined) data["PageToken"] = params.pageToken;

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.page({
Expand Down
2 changes: 2 additions & 0 deletions src/rest/accounts/v1/safelist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ export function SafelistListInstance(version: V1): SafelistListInstance {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down Expand Up @@ -214,6 +215,7 @@ export function SafelistListInstance(version: V1): SafelistListInstance {
data["PhoneNumber"] = params["phoneNumber"];

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.fetch({
Expand Down
7 changes: 7 additions & 0 deletions src/rest/accounts/v1/secondaryAuthToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,15 @@ export class SecondaryAuthTokenContextImpl
create(
callback?: (error: Error | null, item?: SecondaryAuthTokenInstance) => any
): Promise<SecondaryAuthTokenInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.create({
uri: instance._uri,
method: "post",
headers,
});

operationPromise = operationPromise.then(
Expand All @@ -85,11 +89,14 @@ export class SecondaryAuthTokenContextImpl
remove(
callback?: (error: Error | null, item?: boolean) => any
): Promise<boolean> {
const headers: any = {};

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.remove({
uri: instance._uri,
method: "delete",
headers,
});

operationPromise = instance._version.setPromiseCallback(
Expand Down
7 changes: 7 additions & 0 deletions src/rest/api/v2010/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,11 +385,15 @@ export class AccountContextImpl implements AccountContext {
fetch(
callback?: (error: Error | null, item?: AccountInstance) => any
): Promise<AccountInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
headers,
});

operationPromise = operationPromise.then(
Expand Down Expand Up @@ -425,6 +429,7 @@ export class AccountContextImpl implements AccountContext {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
Expand Down Expand Up @@ -919,6 +924,7 @@ export function AccountListInstance(version: V2010): AccountListInstance {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down Expand Up @@ -963,6 +969,7 @@ export function AccountListInstance(version: V2010): AccountListInstance {
if (params.pageToken !== undefined) data["PageToken"] = params.pageToken;

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.page({
Expand Down
10 changes: 10 additions & 0 deletions src/rest/api/v2010/account/address.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,14 @@ export class AddressContextImpl implements AddressContext {
remove(
callback?: (error: Error | null, item?: boolean) => any
): Promise<boolean> {
const headers: any = {};

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.remove({
uri: instance._uri,
method: "delete",
headers,
});

operationPromise = instance._version.setPromiseCallback(
Expand All @@ -234,11 +237,15 @@ export class AddressContextImpl implements AddressContext {
fetch(
callback?: (error: Error | null, item?: AddressInstance) => any
): Promise<AddressInstance> {
const headers: any = {};
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
operationPromise = operationVersion.fetch({
uri: instance._uri,
method: "get",
headers,
});

operationPromise = operationPromise.then(
Expand Down Expand Up @@ -291,6 +298,7 @@ export class AddressContextImpl implements AddressContext {

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

const instance = this;
let operationVersion = instance._version,
Expand Down Expand Up @@ -733,6 +741,7 @@ export function AddressListInstance(

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.create({
Expand Down Expand Up @@ -785,6 +794,7 @@ export function AddressListInstance(
if (params.pageToken !== undefined) data["PageToken"] = params.pageToken;

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.page({
Expand Down
1 change: 1 addition & 0 deletions src/rest/api/v2010/account/address/dependentPhoneNumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ export function DependentPhoneNumberListInstance(
if (params.pageToken !== undefined) data["PageToken"] = params.pageToken;

const headers: any = {};
headers["Accept"] = "application/json";

let operationVersion = version,
operationPromise = operationVersion.page({
Expand Down
Loading

0 comments on commit 60d68cf

Please sign in to comment.