Skip to content

Commit bcf2109

Browse files
committed
[Librarian] Regenerated @ 66882adf0db70d1f2bc084fe6acef7d99445b17b
1 parent eda1789 commit bcf2109

File tree

13 files changed

+2905
-3
lines changed

13 files changed

+2905
-3
lines changed

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
twilio-node changelog
22
=====================
33

4+
[2023-06-01] Version 4.11.2
5+
---------------------------
6+
**Api**
7+
- Add `Trim` to create Conference Participant API
8+
9+
**Intelligence**
10+
- First public beta release for Voice Intelligence APIs with client libraries
11+
12+
**Messaging**
13+
- Add new `errors` attribute to us_app_to_person resource. This attribute will provide additional information about campaign registration errors.
14+
15+
416
[2023-05-18] Version 4.11.1
517
---------------------------
618
**Conversations**

src/rest/Intelligence.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import IntelligenceBase from "./IntelligenceBase";
2+
3+
class Intelligence extends IntelligenceBase {}
4+
5+
export = Intelligence;

src/rest/IntelligenceBase.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* NOTE: This class is auto generated by OpenAPI Generator.
8+
* https://openapi-generator.tech
9+
* Do not edit the class manually.
10+
*/
11+
12+
import Domain from "../base/Domain";
13+
import V2 from "./intelligence/V2";
14+
15+
class IntelligenceBase extends Domain {
16+
_v2?: V2;
17+
18+
/**
19+
* Initialize intelligence domain
20+
*
21+
* @param twilio - The twilio client
22+
*/
23+
constructor(twilio: any) {
24+
super(twilio, "https://intelligence.twilio.com");
25+
}
26+
27+
get v2(): V2 {
28+
this._v2 = this._v2 || new V2(this);
29+
return this._v2;
30+
}
31+
}
32+
33+
export = IntelligenceBase;

src/rest/Twilio.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import Events from "./Events";
2121
import FlexApi from "./FlexApi";
2222
import FrontlineApi from "./FrontlineApi";
2323
import Insights from "./Insights";
24+
import Intelligence from "./Intelligence";
2425
import IpMessaging from "./IpMessaging";
2526
import Lookups from "./Lookups";
2627
import Media from "./Media";
@@ -99,6 +100,8 @@ class Twilio extends Client {
99100
_frontlineApi?: FrontlineApi;
100101
/** (Twilio.Insights) - insights domain */
101102
_insights?: Insights;
103+
/** (Twilio.Intelligence) - intelligence domain */
104+
_intelligence?: Intelligence;
102105
/** (Twilio.IpMessaging) - ipMessaging domain */
103106
_ipMessaging?: IpMessaging;
104107
/** (Twilio.Lookups) - lookups domain */
@@ -176,6 +179,7 @@ class Twilio extends Client {
176179
this.flexApi;
177180
this.frontlineApi;
178181
this.insights;
182+
this.intelligence;
179183
this.ipMessaging;
180184
this.lookups;
181185
this.media;
@@ -263,6 +267,13 @@ class Twilio extends Client {
263267
this._insights ?? (this._insights = new (require("./Insights"))(this))
264268
);
265269
}
270+
/** Getter for (Twilio.Intelligence) domain */
271+
get intelligence(): Intelligence {
272+
return (
273+
this._intelligence ??
274+
(this._intelligence = new (require("./Intelligence"))(this))
275+
);
276+
}
266277
/** Getter for (Twilio.IpMessaging) domain */
267278
get ipMessaging(): IpMessaging {
268279
return (

src/rest/api/v2010/account/conference/participant.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export interface ParticipantListInstanceCreateOptions {
9696
maxParticipants?: number;
9797
/** Whether to record the conference the participant is joining. Can be: `true`, `false`, `record-from-start`, and `do-not-record`. The default value is `false`. */
9898
conferenceRecord?: string;
99-
/** Whether to trim leading and trailing silence from your recorded conference audio files. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. */
99+
/** Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. */
100100
conferenceTrim?: string;
101101
/** The URL we should call using the `conference_status_callback_method` when the conference events in `conference_status_callback_event` occur. Only the value set by the first participant to join the conference is used. Subsequent `conference_status_callback` values are ignored. */
102102
conferenceStatusCallback?: string;
@@ -154,6 +154,8 @@ export interface ParticipantListInstanceCreateOptions {
154154
amdStatusCallback?: string;
155155
/** The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. */
156156
amdStatusCallbackMethod?: string;
157+
/** 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`. */
158+
trim?: string;
157159
}
158160
/**
159161
* Options to pass to each
@@ -884,6 +886,7 @@ export function ParticipantListInstance(
884886
data["AmdStatusCallback"] = params["amdStatusCallback"];
885887
if (params["amdStatusCallbackMethod"] !== undefined)
886888
data["AmdStatusCallbackMethod"] = params["amdStatusCallbackMethod"];
889+
if (params["trim"] !== undefined) data["Trim"] = params["trim"];
887890

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

src/rest/intelligence/V2.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* This code was generated by
3+
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4+
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5+
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6+
*
7+
* Twilio - Intelligence
8+
* This is the public Twilio REST API.
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator.
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
import IntelligenceBase from "../IntelligenceBase";
16+
import Version from "../../base/Version";
17+
import { ServiceListInstance } from "./v2/service";
18+
import { TranscriptListInstance } from "./v2/transcript";
19+
20+
export default class V2 extends Version {
21+
/**
22+
* Initialize the V2 version of Intelligence
23+
*
24+
* @param domain - The Twilio (Twilio.Intelligence) domain
25+
*/
26+
constructor(domain: IntelligenceBase) {
27+
super(domain, "v2");
28+
}
29+
30+
/** services - { Twilio.Intelligence.V2.ServiceListInstance } resource */
31+
protected _services?: ServiceListInstance;
32+
/** transcripts - { Twilio.Intelligence.V2.TranscriptListInstance } resource */
33+
protected _transcripts?: TranscriptListInstance;
34+
35+
/** Getter for services resource */
36+
get services(): ServiceListInstance {
37+
this._services = this._services || ServiceListInstance(this);
38+
return this._services;
39+
}
40+
41+
/** Getter for transcripts resource */
42+
get transcripts(): TranscriptListInstance {
43+
this._transcripts = this._transcripts || TranscriptListInstance(this);
44+
return this._transcripts;
45+
}
46+
}

0 commit comments

Comments
 (0)