Skip to content

Commit

Permalink
[Librarian] Regenerated @ 66882adf0db70d1f2bc084fe6acef7d99445b17b
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Jun 1, 2023
1 parent eda1789 commit bcf2109
Show file tree
Hide file tree
Showing 13 changed files with 2,905 additions and 3 deletions.
12 changes: 12 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
twilio-node changelog
=====================

[2023-06-01] Version 4.11.2
---------------------------
**Api**
- Add `Trim` to create Conference Participant API

**Intelligence**
- First public beta release for Voice Intelligence APIs with client libraries

**Messaging**
- Add new `errors` attribute to us_app_to_person resource. This attribute will provide additional information about campaign registration errors.


[2023-05-18] Version 4.11.1
---------------------------
**Conversations**
Expand Down
5 changes: 5 additions & 0 deletions src/rest/Intelligence.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import IntelligenceBase from "./IntelligenceBase";

class Intelligence extends IntelligenceBase {}

export = Intelligence;
33 changes: 33 additions & 0 deletions src/rest/IntelligenceBase.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import Domain from "../base/Domain";
import V2 from "./intelligence/V2";

class IntelligenceBase extends Domain {
_v2?: V2;

/**
* Initialize intelligence domain
*
* @param twilio - The twilio client
*/
constructor(twilio: any) {
super(twilio, "https://intelligence.twilio.com");
}

get v2(): V2 {
this._v2 = this._v2 || new V2(this);
return this._v2;
}
}

export = IntelligenceBase;
11 changes: 11 additions & 0 deletions src/rest/Twilio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Events from "./Events";
import FlexApi from "./FlexApi";
import FrontlineApi from "./FrontlineApi";
import Insights from "./Insights";
import Intelligence from "./Intelligence";
import IpMessaging from "./IpMessaging";
import Lookups from "./Lookups";
import Media from "./Media";
Expand Down Expand Up @@ -99,6 +100,8 @@ class Twilio extends Client {
_frontlineApi?: FrontlineApi;
/** (Twilio.Insights) - insights domain */
_insights?: Insights;
/** (Twilio.Intelligence) - intelligence domain */
_intelligence?: Intelligence;
/** (Twilio.IpMessaging) - ipMessaging domain */
_ipMessaging?: IpMessaging;
/** (Twilio.Lookups) - lookups domain */
Expand Down Expand Up @@ -176,6 +179,7 @@ class Twilio extends Client {
this.flexApi;
this.frontlineApi;
this.insights;
this.intelligence;
this.ipMessaging;
this.lookups;
this.media;
Expand Down Expand Up @@ -263,6 +267,13 @@ class Twilio extends Client {
this._insights ?? (this._insights = new (require("./Insights"))(this))
);
}
/** Getter for (Twilio.Intelligence) domain */
get intelligence(): Intelligence {
return (
this._intelligence ??
(this._intelligence = new (require("./Intelligence"))(this))
);
}
/** Getter for (Twilio.IpMessaging) domain */
get ipMessaging(): IpMessaging {
return (
Expand Down
5 changes: 4 additions & 1 deletion src/rest/api/v2010/account/conference/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export interface ParticipantListInstanceCreateOptions {
maxParticipants?: number;
/** 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`. */
conferenceRecord?: string;
/** 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`. */
/** Whether to trim leading and trailing silence from the conference recording. Can be: `trim-silence` or `do-not-trim` and defaults to `trim-silence`. */
conferenceTrim?: string;
/** 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. */
conferenceStatusCallback?: string;
Expand Down Expand Up @@ -154,6 +154,8 @@ export interface ParticipantListInstanceCreateOptions {
amdStatusCallback?: string;
/** The HTTP method we should use when calling the `amd_status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. */
amdStatusCallbackMethod?: string;
/** 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`. */
trim?: string;
}
/**
* Options to pass to each
Expand Down Expand Up @@ -884,6 +886,7 @@ export function ParticipantListInstance(
data["AmdStatusCallback"] = params["amdStatusCallback"];
if (params["amdStatusCallbackMethod"] !== undefined)
data["AmdStatusCallbackMethod"] = params["amdStatusCallbackMethod"];
if (params["trim"] !== undefined) data["Trim"] = params["trim"];

const headers: any = {};
headers["Content-Type"] = "application/x-www-form-urlencoded";
Expand Down
46 changes: 46 additions & 0 deletions src/rest/intelligence/V2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
/*
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Intelligence
* This is the public Twilio REST API.
*
* NOTE: This class is auto generated by OpenAPI Generator.
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import IntelligenceBase from "../IntelligenceBase";
import Version from "../../base/Version";
import { ServiceListInstance } from "./v2/service";
import { TranscriptListInstance } from "./v2/transcript";

export default class V2 extends Version {
/**
* Initialize the V2 version of Intelligence
*
* @param domain - The Twilio (Twilio.Intelligence) domain
*/
constructor(domain: IntelligenceBase) {
super(domain, "v2");
}

/** services - { Twilio.Intelligence.V2.ServiceListInstance } resource */
protected _services?: ServiceListInstance;
/** transcripts - { Twilio.Intelligence.V2.TranscriptListInstance } resource */
protected _transcripts?: TranscriptListInstance;

/** Getter for services resource */
get services(): ServiceListInstance {
this._services = this._services || ServiceListInstance(this);
return this._services;
}

/** Getter for transcripts resource */
get transcripts(): TranscriptListInstance {
this._transcripts = this._transcripts || TranscriptListInstance(this);
return this._transcripts;
}
}
Loading

0 comments on commit bcf2109

Please sign in to comment.