Skip to content

Commit 32a9a06

Browse files
committedJan 25, 2023
[Librarian] Regenerated @ a72b955e51d75514f3c944c81b9db17278cfad69
1 parent 3e712b0 commit 32a9a06

13 files changed

+1736
-114
lines changed
 

‎CHANGES.md

+32
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,38 @@
11
twilio-node changelog
22
=====================
33

4+
[2023-01-25] Version 4.0.0
5+
--------------------------
6+
**Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md###-2023-01-25-3xx-to-4xx) for detailed migration notes.
7+
8+
**Library - Fix**
9+
- [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)!
10+
- [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)!
11+
12+
**Library - Docs**
13+
- [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)!
14+
- [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)!
15+
- [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)!
16+
17+
**Library - Chore**
18+
- [PR #888](https://github.com/twilio/twilio-node/pull/888): re-add test:typescript to test rule. Thanks to [@beebzz](https://github.com/beebzz)!
19+
20+
**Library - Feature**
21+
- [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)**
22+
23+
**Api**
24+
- Add `public_application_connect_enabled` param to Application resource
25+
26+
**Messaging**
27+
- Add new tollfree verification API property (ExternalReferenceId)]
28+
29+
**Verify**
30+
- Add `device_ip` parameter and channel `auto` for sna/sms orchestration
31+
32+
**Twiml**
33+
- Add support for `<Application>` noun and `<ApplicationSid>` noun, nested `<Parameter>` to `<Hangup>` and `<Leave>` verb
34+
35+
436
[2023-01-11] Version 3.84.1
537
---------------------------
638
**Library - Test**

‎lib/rest/api/v2010/account/application.ts

+20
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ export interface ApplicationContextUpdateOptions {
5454
smsStatusCallback?: string;
5555
/** The URL we should call using a POST method to send message status information to your application. */
5656
messageStatusCallback?: string;
57+
/** Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`. */
58+
publicApplicationConnectEnabled?: boolean;
5759
}
5860

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

301309
const headers: any = {};
302310
headers["Content-Type"] = "application/x-www-form-urlencoded";
@@ -402,6 +410,7 @@ interface ApplicationResource {
402410
voice_fallback_url: string;
403411
voice_method: ApplicationVoiceMethod;
404412
voice_url: string;
413+
public_application_connect_enabled: boolean;
405414
}
406415

407416
export class ApplicationInstance {
@@ -434,6 +443,8 @@ export class ApplicationInstance {
434443
this.voiceFallbackUrl = payload.voice_fallback_url;
435444
this.voiceMethod = payload.voice_method;
436445
this.voiceUrl = payload.voice_url;
446+
this.publicApplicationConnectEnabled =
447+
payload.public_application_connect_enabled;
437448

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

522537
private get _proxy(): ApplicationContext {
523538
this._context =
@@ -613,6 +628,7 @@ export class ApplicationInstance {
613628
voiceFallbackUrl: this.voiceFallbackUrl,
614629
voiceMethod: this.voiceMethod,
615630
voiceUrl: this.voiceUrl,
631+
publicApplicationConnectEnabled: this.publicApplicationConnectEnabled,
616632
};
617633
}
618634

@@ -795,6 +811,10 @@ export function ApplicationListInstance(
795811
data["MessageStatusCallback"] = params["messageStatusCallback"];
796812
if (params["friendlyName"] !== undefined)
797813
data["FriendlyName"] = params["friendlyName"];
814+
if (params["publicApplicationConnectEnabled"] !== undefined)
815+
data["PublicApplicationConnectEnabled"] = serialize.bool(
816+
params["publicApplicationConnectEnabled"]
817+
);
798818

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

‎lib/rest/api/v2010/account/call/userDefinedMessageSubscription.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export interface UserDefinedMessageSubscriptionListInstanceCreateOptions {
2626
callback: string;
2727
/** A unique string value to identify API call. This should be a unique string value per API call and can be a randomly generated. */
2828
idempotencyKey?: string;
29-
/** The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`. */
29+
/** The HTTP method Twilio will use when requesting the above `Url`. Either `GET` or `POST`. Default is `POST`. */
3030
method?: string;
3131
}
3232

‎lib/rest/flexApi/V1.ts

+62-16
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ import { AssessmentsListInstance } from "./v1/assessments";
1818
import { ChannelListInstance } from "./v1/channel";
1919
import { ConfigurationListInstance } from "./v1/configuration";
2020
import { FlexFlowListInstance } from "./v1/flexFlow";
21-
import { GoodDataListInstance } from "./v1/goodData";
21+
import { InsightsQuestionnairesCategoryListInstance } from "./v1/insightsQuestionnairesCategory";
22+
import { InsightsQuestionnairesQuestionListInstance } from "./v1/insightsQuestionnairesQuestion";
23+
import { InsightsSessionListInstance } from "./v1/insightsSession";
24+
import { InsightsSettingsAnswerSetsListInstance } from "./v1/insightsSettingsAnswerSets";
25+
import { InsightsSettingsCommentListInstance } from "./v1/insightsSettingsComment";
26+
import { InsightsUserRolesListInstance } from "./v1/insightsUserRoles";
2227
import { InteractionListInstance } from "./v1/interaction";
23-
import { UserRolesListInstance } from "./v1/userRoles";
2428
import { WebChannelListInstance } from "./v1/webChannel";
2529

2630
export default class V1 extends Version {
@@ -41,12 +45,20 @@ export default class V1 extends Version {
4145
protected _configuration?: ConfigurationListInstance;
4246
/** flexFlow - { Twilio.FlexApi.V1.FlexFlowListInstance } resource */
4347
protected _flexFlow?: FlexFlowListInstance;
44-
/** goodData - { Twilio.FlexApi.V1.GoodDataListInstance } resource */
45-
protected _goodData?: GoodDataListInstance;
48+
/** insightsQuestionnairesCategory - { Twilio.FlexApi.V1.InsightsQuestionnairesCategoryListInstance } resource */
49+
protected _insightsQuestionnairesCategory?: InsightsQuestionnairesCategoryListInstance;
50+
/** insightsQuestionnairesQuestion - { Twilio.FlexApi.V1.InsightsQuestionnairesQuestionListInstance } resource */
51+
protected _insightsQuestionnairesQuestion?: InsightsQuestionnairesQuestionListInstance;
52+
/** insightsSession - { Twilio.FlexApi.V1.InsightsSessionListInstance } resource */
53+
protected _insightsSession?: InsightsSessionListInstance;
54+
/** insightsSettingsAnswerSets - { Twilio.FlexApi.V1.InsightsSettingsAnswerSetsListInstance } resource */
55+
protected _insightsSettingsAnswerSets?: InsightsSettingsAnswerSetsListInstance;
56+
/** insightsSettingsComment - { Twilio.FlexApi.V1.InsightsSettingsCommentListInstance } resource */
57+
protected _insightsSettingsComment?: InsightsSettingsCommentListInstance;
58+
/** insightsUserRoles - { Twilio.FlexApi.V1.InsightsUserRolesListInstance } resource */
59+
protected _insightsUserRoles?: InsightsUserRolesListInstance;
4660
/** interaction - { Twilio.FlexApi.V1.InteractionListInstance } resource */
4761
protected _interaction?: InteractionListInstance;
48-
/** userRoles - { Twilio.FlexApi.V1.UserRolesListInstance } resource */
49-
protected _userRoles?: UserRolesListInstance;
5062
/** webChannel - { Twilio.FlexApi.V1.WebChannelListInstance } resource */
5163
protected _webChannel?: WebChannelListInstance;
5264

@@ -75,10 +87,50 @@ export default class V1 extends Version {
7587
return this._flexFlow;
7688
}
7789

78-
/** Getter for goodData resource */
79-
get goodData(): GoodDataListInstance {
80-
this._goodData = this._goodData || GoodDataListInstance(this);
81-
return this._goodData;
90+
/** Getter for insightsQuestionnairesCategory resource */
91+
get insightsQuestionnairesCategory(): InsightsQuestionnairesCategoryListInstance {
92+
this._insightsQuestionnairesCategory =
93+
this._insightsQuestionnairesCategory ||
94+
InsightsQuestionnairesCategoryListInstance(this);
95+
return this._insightsQuestionnairesCategory;
96+
}
97+
98+
/** Getter for insightsQuestionnairesQuestion resource */
99+
get insightsQuestionnairesQuestion(): InsightsQuestionnairesQuestionListInstance {
100+
this._insightsQuestionnairesQuestion =
101+
this._insightsQuestionnairesQuestion ||
102+
InsightsQuestionnairesQuestionListInstance(this);
103+
return this._insightsQuestionnairesQuestion;
104+
}
105+
106+
/** Getter for insightsSession resource */
107+
get insightsSession(): InsightsSessionListInstance {
108+
this._insightsSession =
109+
this._insightsSession || InsightsSessionListInstance(this);
110+
return this._insightsSession;
111+
}
112+
113+
/** Getter for insightsSettingsAnswerSets resource */
114+
get insightsSettingsAnswerSets(): InsightsSettingsAnswerSetsListInstance {
115+
this._insightsSettingsAnswerSets =
116+
this._insightsSettingsAnswerSets ||
117+
InsightsSettingsAnswerSetsListInstance(this);
118+
return this._insightsSettingsAnswerSets;
119+
}
120+
121+
/** Getter for insightsSettingsComment resource */
122+
get insightsSettingsComment(): InsightsSettingsCommentListInstance {
123+
this._insightsSettingsComment =
124+
this._insightsSettingsComment ||
125+
InsightsSettingsCommentListInstance(this);
126+
return this._insightsSettingsComment;
127+
}
128+
129+
/** Getter for insightsUserRoles resource */
130+
get insightsUserRoles(): InsightsUserRolesListInstance {
131+
this._insightsUserRoles =
132+
this._insightsUserRoles || InsightsUserRolesListInstance(this);
133+
return this._insightsUserRoles;
82134
}
83135

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

90-
/** Getter for userRoles resource */
91-
get userRoles(): UserRolesListInstance {
92-
this._userRoles = this._userRoles || UserRolesListInstance(this);
93-
return this._userRoles;
94-
}
95-
96142
/** Getter for webChannel resource */
97143
get webChannel(): WebChannelListInstance {
98144
this._webChannel = this._webChannel || WebChannelListInstance(this);

0 commit comments

Comments
 (0)
Please sign in to comment.