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) [ • 1.9 kB
text/typescript
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
import * as core from "../../../../core/index.mjs";
import * as Phonic from "../../../index.mjs";
export declare namespace WorkspaceClient {
type Options = BaseClientOptions;
interface RequestOptions extends BaseRequestOptions {
}
}
export declare class WorkspaceClient {
protected readonly _options: NormalizedClientOptionsWithAuth<WorkspaceClient.Options>;
constructor(options?: WorkspaceClient.Options);
/**
* Returns information about the workspace.
*
* @param {WorkspaceClient.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Phonic.UnauthorizedError}
* @throws {@link Phonic.InternalServerError}
*
* @example
* await client.workspace.get()
*/
get(requestOptions?: WorkspaceClient.RequestOptions): core.HttpResponsePromise<Phonic.WorkspaceGetResponse>;
private __get;
/**
* Updates the workspace.
*
* @param {Phonic.UpdateWorkspaceRequest} request
* @param {WorkspaceClient.RequestOptions} requestOptions - Request-specific configuration.
*
* @throws {@link Phonic.BadRequestError}
* @throws {@link Phonic.UnauthorizedError}
* @throws {@link Phonic.ForbiddenError}
* @throws {@link Phonic.InternalServerError}
*
* @example
* await client.workspace.update({
* logo_url: "https://example.com/logo.png",
* invite_link_allowed_domains: ["example.com"],
* ip_allowlist: ["203.0.113.0/24"]
* })
*/
update(request?: Phonic.UpdateWorkspaceRequest, requestOptions?: WorkspaceClient.RequestOptions): core.HttpResponsePromise<Phonic.WorkspaceUpdateResponse>;
private __update;
}