Skip to content

Commit

Permalink
[Librarian] Regenerated @ a72b955e51d75514f3c944c81b9db17278cfad69
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Jan 25, 2023
1 parent 3e712b0 commit 32a9a06
Show file tree
Hide file tree
Showing 13 changed files with 1,736 additions and 114 deletions.
32 changes: 32 additions & 0 deletions CHANGES.md
@@ -1,6 +1,38 @@
twilio-node changelog
=====================

[2023-01-25] Version 4.0.0
--------------------------
**Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md###-2023-01-25-3xx-to-4xx) for detailed migration notes.

**Library - Fix**
- [PR #902](https://github.com/twilio/twilio-node/pull/902): remove Flex shortcuts for removed APIs. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
- [PR #897](https://github.com/twilio/twilio-node/pull/897): use break() for method names rather than break_(). Thanks to [@mattcole19](https://github.com/mattcole19)!

**Library - Docs**
- [PR #901](https://github.com/twilio/twilio-node/pull/901): update README link to exceptions example for 4.x release. Thanks to [@stern-shawn](https://github.com/stern-shawn)!
- [PR #899](https://github.com/twilio/twilio-node/pull/899): use long property descriptions if available. Thanks to [@childish-sambino](https://github.com/childish-sambino)!
- [PR #895](https://github.com/twilio/twilio-node/pull/895): add relevant Refer/Say/ssml links to upgrade guide; formatting. Thanks to [@stern-shawn](https://github.com/stern-shawn)!

**Library - Chore**
- [PR #888](https://github.com/twilio/twilio-node/pull/888): re-add test:typescript to test rule. Thanks to [@beebzz](https://github.com/beebzz)!

**Library - Feature**
- [PR #883](https://github.com/twilio/twilio-node/pull/883): Merge branch '4.0.0-rc' to main. Thanks to [@childish-sambino](https://github.com/childish-sambino)! **(breaking change)**

**Api**
- Add `public_application_connect_enabled` param to Application resource

**Messaging**
- Add new tollfree verification API property (ExternalReferenceId)]

**Verify**
- Add `device_ip` parameter and channel `auto` for sna/sms orchestration

**Twiml**
- Add support for `<Application>` noun and `<ApplicationSid>` noun, nested `<Parameter>` to `<Hangup>` and `<Leave>` verb


[2023-01-11] Version 3.84.1
---------------------------
**Library - Test**
Expand Down
20 changes: 20 additions & 0 deletions lib/rest/api/v2010/account/application.ts
Expand Up @@ -54,6 +54,8 @@ export interface ApplicationContextUpdateOptions {
smsStatusCallback?: string;
/** The URL we should call using a POST method to send message status information to your application. */
messageStatusCallback?: string;
/** Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`. */
publicApplicationConnectEnabled?: boolean;
}

/**
Expand Down Expand Up @@ -90,6 +92,8 @@ export interface ApplicationListInstanceCreateOptions {
messageStatusCallback?: string;
/** A descriptive string that you create to describe the new application. It can be up to 64 characters long. */
friendlyName?: string;
/** Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`. */
publicApplicationConnectEnabled?: boolean;
}
/**
* Options to pass to each
Expand Down Expand Up @@ -297,6 +301,10 @@ export class ApplicationContextImpl implements ApplicationContext {
data["SmsStatusCallback"] = params["smsStatusCallback"];
if (params["messageStatusCallback"] !== undefined)
data["MessageStatusCallback"] = params["messageStatusCallback"];
if (params["publicApplicationConnectEnabled"] !== undefined)
data["PublicApplicationConnectEnabled"] = serialize.bool(
params["publicApplicationConnectEnabled"]
);

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
Expand Down Expand Up @@ -402,6 +410,7 @@ interface ApplicationResource {
voice_fallback_url: string;
voice_method: ApplicationVoiceMethod;
voice_url: string;
public_application_connect_enabled: boolean;
}

export class ApplicationInstance {
Expand Down Expand Up @@ -434,6 +443,8 @@ export class ApplicationInstance {
this.voiceFallbackUrl = payload.voice_fallback_url;
this.voiceMethod = payload.voice_method;
this.voiceUrl = payload.voice_url;
this.publicApplicationConnectEnabled =
payload.public_application_connect_enabled;

this._solution = { accountSid, sid: sid || this.sid };
}
Expand Down Expand Up @@ -518,6 +529,10 @@ export class ApplicationInstance {
* The URL we call when the phone number assigned to this application receives a call.
*/
voiceUrl: string;
/**
* Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`.
*/
publicApplicationConnectEnabled: boolean;

private get _proxy(): ApplicationContext {
this._context =
Expand Down Expand Up @@ -613,6 +628,7 @@ export class ApplicationInstance {
voiceFallbackUrl: this.voiceFallbackUrl,
voiceMethod: this.voiceMethod,
voiceUrl: this.voiceUrl,
publicApplicationConnectEnabled: this.publicApplicationConnectEnabled,
};
}

Expand Down Expand Up @@ -795,6 +811,10 @@ export function ApplicationListInstance(
data["MessageStatusCallback"] = params["messageStatusCallback"];
if (params["friendlyName"] !== undefined)
data["FriendlyName"] = params["friendlyName"];
if (params["publicApplicationConnectEnabled"] !== undefined)
data["PublicApplicationConnectEnabled"] = serialize.bool(
params["publicApplicationConnectEnabled"]
);

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
Expand Down
Expand Up @@ -26,7 +26,7 @@ export interface UserDefinedMessageSubscriptionListInstanceCreateOptions {
callback: string;
/** A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated. */
idempotencyKey?: string;
/** The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`. */
/** The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`. Default is `POST`. */
method?: string;
}

Expand Down
78 changes: 62 additions & 16 deletions lib/rest/flexApi/V1.ts
Expand Up @@ -18,9 +18,13 @@ import { AssessmentsListInstance } from "./v1/assessments";
import { ChannelListInstance } from "./v1/channel";
import { ConfigurationListInstance } from "./v1/configuration";
import { FlexFlowListInstance } from "./v1/flexFlow";
import { GoodDataListInstance } from "./v1/goodData";
import { InsightsQuestionnairesCategoryListInstance } from "./v1/insightsQuestionnairesCategory";
import { InsightsQuestionnairesQuestionListInstance } from "./v1/insightsQuestionnairesQuestion";
import { InsightsSessionListInstance } from "./v1/insightsSession";
import { InsightsSettingsAnswerSetsListInstance } from "./v1/insightsSettingsAnswerSets";
import { InsightsSettingsCommentListInstance } from "./v1/insightsSettingsComment";
import { InsightsUserRolesListInstance } from "./v1/insightsUserRoles";
import { InteractionListInstance } from "./v1/interaction";
import { UserRolesListInstance } from "./v1/userRoles";
import { WebChannelListInstance } from "./v1/webChannel";

export default class V1 extends Version {
Expand All @@ -41,12 +45,20 @@ export default class V1 extends Version {
protected _configuration?: ConfigurationListInstance;
/** flexFlow - { Twilio.FlexApi.V1.FlexFlowListInstance } resource */
protected _flexFlow?: FlexFlowListInstance;
/** goodData - { Twilio.FlexApi.V1.GoodDataListInstance } resource */
protected _goodData?: GoodDataListInstance;
/** insightsQuestionnairesCategory - { Twilio.FlexApi.V1.InsightsQuestionnairesCategoryListInstance } resource */
protected _insightsQuestionnairesCategory?: InsightsQuestionnairesCategoryListInstance;
/** insightsQuestionnairesQuestion - { Twilio.FlexApi.V1.InsightsQuestionnairesQuestionListInstance } resource */
protected _insightsQuestionnairesQuestion?: InsightsQuestionnairesQuestionListInstance;
/** insightsSession - { Twilio.FlexApi.V1.InsightsSessionListInstance } resource */
protected _insightsSession?: InsightsSessionListInstance;
/** insightsSettingsAnswerSets - { Twilio.FlexApi.V1.InsightsSettingsAnswerSetsListInstance } resource */
protected _insightsSettingsAnswerSets?: InsightsSettingsAnswerSetsListInstance;
/** insightsSettingsComment - { Twilio.FlexApi.V1.InsightsSettingsCommentListInstance } resource */
protected _insightsSettingsComment?: InsightsSettingsCommentListInstance;
/** insightsUserRoles - { Twilio.FlexApi.V1.InsightsUserRolesListInstance } resource */
protected _insightsUserRoles?: InsightsUserRolesListInstance;
/** interaction - { Twilio.FlexApi.V1.InteractionListInstance } resource */
protected _interaction?: InteractionListInstance;
/** userRoles - { Twilio.FlexApi.V1.UserRolesListInstance } resource */
protected _userRoles?: UserRolesListInstance;
/** webChannel - { Twilio.FlexApi.V1.WebChannelListInstance } resource */
protected _webChannel?: WebChannelListInstance;

Expand Down Expand Up @@ -75,10 +87,50 @@ export default class V1 extends Version {
return this._flexFlow;
}

/** Getter for goodData resource */
get goodData(): GoodDataListInstance {
this._goodData = this._goodData || GoodDataListInstance(this);
return this._goodData;
/** Getter for insightsQuestionnairesCategory resource */
get insightsQuestionnairesCategory(): InsightsQuestionnairesCategoryListInstance {
this._insightsQuestionnairesCategory =
this._insightsQuestionnairesCategory ||
InsightsQuestionnairesCategoryListInstance(this);
return this._insightsQuestionnairesCategory;
}

/** Getter for insightsQuestionnairesQuestion resource */
get insightsQuestionnairesQuestion(): InsightsQuestionnairesQuestionListInstance {
this._insightsQuestionnairesQuestion =
this._insightsQuestionnairesQuestion ||
InsightsQuestionnairesQuestionListInstance(this);
return this._insightsQuestionnairesQuestion;
}

/** Getter for insightsSession resource */
get insightsSession(): InsightsSessionListInstance {
this._insightsSession =
this._insightsSession || InsightsSessionListInstance(this);
return this._insightsSession;
}

/** Getter for insightsSettingsAnswerSets resource */
get insightsSettingsAnswerSets(): InsightsSettingsAnswerSetsListInstance {
this._insightsSettingsAnswerSets =
this._insightsSettingsAnswerSets ||
InsightsSettingsAnswerSetsListInstance(this);
return this._insightsSettingsAnswerSets;
}

/** Getter for insightsSettingsComment resource */
get insightsSettingsComment(): InsightsSettingsCommentListInstance {
this._insightsSettingsComment =
this._insightsSettingsComment ||
InsightsSettingsCommentListInstance(this);
return this._insightsSettingsComment;
}

/** Getter for insightsUserRoles resource */
get insightsUserRoles(): InsightsUserRolesListInstance {
this._insightsUserRoles =
this._insightsUserRoles || InsightsUserRolesListInstance(this);
return this._insightsUserRoles;
}

/** Getter for interaction resource */
Expand All @@ -87,12 +139,6 @@ export default class V1 extends Version {
return this._interaction;
}

/** Getter for userRoles resource */
get userRoles(): UserRolesListInstance {
this._userRoles = this._userRoles || UserRolesListInstance(this);
return this._userRoles;
}

/** Getter for webChannel resource */
get webChannel(): WebChannelListInstance {
this._webChannel = this._webChannel || WebChannelListInstance(this);
Expand Down

0 comments on commit 32a9a06

Please sign in to comment.