phonic
Version:
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FPhonic-Co%2Fphonic-node) [ • 2.51 kB
TypeScript
/**
* This file was auto-generated by Fern from our API Definition.
*/
import * as environments from "./environments.js";
import * as core from "./core/index.js";
import { Agents } from "./api/resources/agents/client/Client.js";
import { Tools } from "./api/resources/tools/client/Client.js";
import { ExtractionSchemas } from "./api/resources/extractionSchemas/client/Client.js";
import { Voices } from "./api/resources/voices/client/Client.js";
import { Conversations } from "./api/resources/conversations/client/Client.js";
import { Auth } from "./api/resources/auth/client/Client.js";
import { Projects } from "./api/resources/projects/client/Client.js";
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;
}