Skip to content

Commit

Permalink
[Librarian] Regenerated @ 1b6718f23da76f150eac392860c66a26de9af713 ce…
Browse files Browse the repository at this point in the history
…b130295f80bc623f22496076e3dd57e27da2fb
  • Loading branch information
twilio-dx committed Sep 18, 2024
1 parent 8c2377f commit 5b49fe9
Show file tree
Hide file tree
Showing 19 changed files with 4,377 additions and 49 deletions.
10 changes: 10 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
twilio-node changelog
=====================

[2024-09-18] Version 5.3.1
--------------------------
**Intelligence**
- Remove public from operator_type
- Update operator_type to include general-availablity and deprecated

**Numbers**
- Remove beta flag for bundle clone API


[2024-09-05] Version 5.3.0
--------------------------
**Library - Chore**
Expand Down
5 changes: 5 additions & 0 deletions src/rest/Assistants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import AssistantsBase from "./AssistantsBase";

class Assistants extends AssistantsBase {}

export = Assistants;
33 changes: 33 additions & 0 deletions src/rest/AssistantsBase.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 V1 from "./assistants/V1";

class AssistantsBase extends Domain {
_v1?: V1;

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

get v1(): V1 {
this._v1 = this._v1 || new V1(this);
return this._v1;
}
}

export = AssistantsBase;
11 changes: 11 additions & 0 deletions src/rest/Twilio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import { Client, ClientOpts, RequestOpts } from "../base/BaseTwilio";
import Accounts from "./Accounts";
import Api from "./Api";
import Assistants from "./Assistants";
import Bulkexports from "./Bulkexports";
import Chat from "./Chat";
import Content from "./Content";
Expand Down Expand Up @@ -82,6 +83,8 @@ class Twilio extends Client {
_accounts?: Accounts;
/** (Twilio.Api) - api domain */
_api?: Api;
/** (Twilio.Assistants) - assistants domain */
_assistants?: Assistants;
/** (Twilio.Bulkexports) - bulkexports domain */
_bulkexports?: Bulkexports;
/** (Twilio.Chat) - chat domain */
Expand Down Expand Up @@ -170,6 +173,7 @@ class Twilio extends Client {
if (this.opts?.lazyLoading === false) {
this.accounts;
this.api;
this.assistants;
this.bulkexports;
this.chat;
this.content;
Expand Down Expand Up @@ -218,6 +222,13 @@ class Twilio extends Client {
get api(): Api {
return this._api ?? (this._api = new (require("./Api"))(this));
}
/** Getter for (Twilio.Assistants) domain */
get assistants(): Assistants {
return (
this._assistants ??
(this._assistants = new (require("./Assistants"))(this))
);
}
/** Getter for (Twilio.Bulkexports) domain */
get bulkexports(): Bulkexports {
return (
Expand Down
73 changes: 73 additions & 0 deletions src/rest/assistants/V1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
* This code was generated by
* ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
* | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
* | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
*
* Twilio - Assistants
* 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 AssistantsBase from "../AssistantsBase";
import Version from "../../base/Version";
import { AssistantListInstance } from "./v1/assistant";
import { KnowledgeListInstance } from "./v1/knowledge";
import { PolicyListInstance } from "./v1/policy";
import { SessionListInstance } from "./v1/session";
import { ToolListInstance } from "./v1/tool";

export default class V1 extends Version {
/**
* Initialize the V1 version of Assistants
*
* @param domain - The Twilio (Twilio.Assistants) domain
*/
constructor(domain: AssistantsBase) {
super(domain, "v1");
}

/** assistants - { Twilio.Assistants.V1.AssistantListInstance } resource */
protected _assistants?: AssistantListInstance;
/** knowledge - { Twilio.Assistants.V1.KnowledgeListInstance } resource */
protected _knowledge?: KnowledgeListInstance;
/** policies - { Twilio.Assistants.V1.PolicyListInstance } resource */
protected _policies?: PolicyListInstance;
/** sessions - { Twilio.Assistants.V1.SessionListInstance } resource */
protected _sessions?: SessionListInstance;
/** tools - { Twilio.Assistants.V1.ToolListInstance } resource */
protected _tools?: ToolListInstance;

/** Getter for assistants resource */
get assistants(): AssistantListInstance {
this._assistants = this._assistants || AssistantListInstance(this);
return this._assistants;
}

/** Getter for knowledge resource */
get knowledge(): KnowledgeListInstance {
this._knowledge = this._knowledge || KnowledgeListInstance(this);
return this._knowledge;
}

/** Getter for policies resource */
get policies(): PolicyListInstance {
this._policies = this._policies || PolicyListInstance(this);
return this._policies;
}

/** Getter for sessions resource */
get sessions(): SessionListInstance {
this._sessions = this._sessions || SessionListInstance(this);
return this._sessions;
}

/** Getter for tools resource */
get tools(): ToolListInstance {
this._tools = this._tools || ToolListInstance(this);
return this._tools;
}
}
Loading

0 comments on commit 5b49fe9

Please sign in to comment.