import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as Extend from "../../../index"; export declare namespace ClassifierVersionsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class ClassifierVersionsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options: ClassifierVersionsClient.Options); /** * This endpoint allows you to fetch all versions of a given classifier, including the current `draft` version. * * Versions are returned in descending order of creation (newest first) with the `draft` version first. The `draft` version is the latest unpublished version of the classifier, which can be published to create a new version. It might not have any changes from the last published version. * * @param {string} classifierId - The ID of the classifier. * * Example: `"cl_Xj8mK2pL9nR4vT7qY5wZ"` * @param {Extend.ClassifierVersionsListRequest} request * @param {ClassifierVersionsClient.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.classifierVersions.list("classifier_id_here", { * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ=" * }) */ list(classifierId: string, request?: Extend.ClassifierVersionsListRequest, requestOptions?: ClassifierVersionsClient.RequestOptions): core.HttpResponsePromise; private __list; /** * This endpoint allows you to publish a new version of an existing classifier. Publishing a new version creates a snapshot of the classifier's current configuration and makes it available for use in workflows. * * Publishing a new version does not automatically update existing workflows using this classifier. You may need to manually update workflows to use the new version if desired. * * @param {string} classifierId - The ID of the classifier. * * Example: `"cl_Xj8mK2pL9nR4vT7qY5wZ"` * @param {Extend.ClassifierVersionsCreateRequest} request * @param {ClassifierVersionsClient.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.classifierVersions.create("classifier_id_here", { * releaseType: "minor", * description: "Added new document classification type" * }) */ create(classifierId: string, request: Extend.ClassifierVersionsCreateRequest, requestOptions?: ClassifierVersionsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieve a specific version of a classifier in Extend * * @param {string} classifierId - The ID of the classifier. * * Example: `"cl_Xj8mK2pL9nR4vT7qY5wZ"` * @param {string} versionId - The version to retrieve. Accepts any of the following: * * - `"draft"` — returns the current draft version * - `"latest"` — returns the latest published version (falls back to draft if none published) * - A version number (e.g. `"0.1"`, `"1.0"`) — returns that specific published version * - A version ID (e.g. `"clsv_QYk6jgHA_8CsO8rVWhyNC"`) — returns that specific version by ID * @param {Extend.ClassifierVersionsRetrieveRequest} request * @param {ClassifierVersionsClient.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.classifierVersions.retrieve("classifier_id_here", "draft") */ retrieve(classifierId: string, versionId: string, request?: Extend.ClassifierVersionsRetrieveRequest, requestOptions?: ClassifierVersionsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; }