UNPKG

phonic

Version:

[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [![npm shield](htt

53 lines (52 loc) 2.38 kB
/** * This file was auto-generated by Fern from our API Definition. */ import * as core from "./core/index.mjs"; import { mergeHeaders } from "./core/headers.mjs"; import { Agents } from "./api/resources/agents/client/Client.mjs"; import { Tools } from "./api/resources/tools/client/Client.mjs"; import { ExtractionSchemas } from "./api/resources/extractionSchemas/client/Client.mjs"; import { Voices } from "./api/resources/voices/client/Client.mjs"; import { Conversations } from "./api/resources/conversations/client/Client.mjs"; import { Auth } from "./api/resources/auth/client/Client.mjs"; import { Projects } from "./api/resources/projects/client/Client.mjs"; export class PhonicClient { constructor(_options = {}) { this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "phonic", "X-Fern-SDK-Version": "0.30.27", "User-Agent": "phonic/0.30.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, _options === null || _options === void 0 ? void 0 : _options.headers) }); } get agents() { var _a; return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Agents(this._options))); } get tools() { var _a; return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Tools(this._options))); } get extractionSchemas() { var _a; return ((_a = this._extractionSchemas) !== null && _a !== void 0 ? _a : (this._extractionSchemas = new ExtractionSchemas(this._options))); } get voices() { var _a; return ((_a = this._voices) !== null && _a !== void 0 ? _a : (this._voices = new Voices(this._options))); } get conversations() { var _a; return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Conversations(this._options))); } get auth() { var _a; return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Auth(this._options))); } get projects() { var _a; return ((_a = this._projects) !== null && _a !== void 0 ? _a : (this._projects = new Projects(this._options))); } }