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

54 lines (53 loc) 2.52 kB
/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "./environments.mjs"; import * as core from "./core/index.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 declare namespace PhonicClient { interface Options { environment?: core.Supplier<environments.PhonicEnvironment | environments.PhonicEnvironmentUrls>; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier<string>; apiKey?: core.Supplier<core.BearerToken | undefined>; /** Additional headers to include in requests. */ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>; fetcher?: core.FetchFunction; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Additional query string parameters to include in the request. */ queryParams?: Record<string, unknown>; /** Additional headers to include in the request. */ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>; } } export declare class PhonicClient { protected readonly _options: PhonicClient.Options; protected _agents: Agents | undefined; protected _tools: Tools | undefined; protected _extractionSchemas: ExtractionSchemas | undefined; protected _voices: Voices | undefined; protected _conversations: Conversations | undefined; protected _auth: Auth | undefined; protected _projects: Projects | undefined; constructor(_options?: PhonicClient.Options); get agents(): Agents; get tools(): Tools; get extractionSchemas(): ExtractionSchemas; get voices(): Voices; get conversations(): Conversations; get auth(): Auth; get projects(): Projects; }