import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as Extend from "../../../index"; export declare namespace ClassifiersClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class ClassifiersClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options: ClassifiersClient.Options); /** * List all classifiers. * * Returns a summary of each classifier. Use `GET /classifiers/{id}` to retrieve the full object including `draftVersion`. * * @param {Extend.ClassifiersListRequest} request * @param {ClassifiersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.classifiers.list({ * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ=" * }) */ list(request?: Extend.ClassifiersListRequest, requestOptions?: ClassifiersClient.RequestOptions): core.HttpResponsePromise; private __list; /** * Create a new classifier. * * @param {Extend.ClassifiersCreateRequest} request * @param {ClassifiersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.classifiers.create({ * name: "Document Classifier", * config: { * classifications: [{ * id: "invoice", * type: "invoice", * description: "An invoice or bill for goods or services" * }, { * id: "receipt", * type: "receipt", * description: "A receipt confirming payment" * }, { * id: "other", * type: "other", * description: "Any other document type" * }] * } * }) */ create(request: Extend.ClassifiersCreateRequest, requestOptions?: ClassifiersClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Get details of a classifier. * * @param {string} id - The ID of the classifier to get. * * Example: `"cl_Xj8mK2pL9nR4vT7qY5wZ"` * @param {Extend.ClassifiersRetrieveRequest} request * @param {ClassifiersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.classifiers.retrieve("classifier_id_here") */ retrieve(id: string, request?: Extend.ClassifiersRetrieveRequest, requestOptions?: ClassifiersClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Update an existing classifier. * * @param {string} id - The ID of the classifier to update. * * Example: `"cl_Xj8mK2pL9nR4vT7qY5wZ"` * @param {Extend.ClassifiersUpdateRequest} request * @param {ClassifiersClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.PaymentRequiredError} * @throws {@link Extend.ForbiddenError} * @throws {@link Extend.NotFoundError} * @throws {@link Extend.UnprocessableEntityError} * @throws {@link Extend.TooManyRequestsError} * @throws {@link Extend.InternalServerError} * * @example * await client.classifiers.update("classifier_id_here", { * name: "Document Classifier v2" * }) */ update(id: string, request?: Extend.ClassifiersUpdateRequest, requestOptions?: ClassifiersClient.RequestOptions): core.HttpResponsePromise; private __update; }