import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as Extend from "../../../index"; export declare namespace ProcessorVersionClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class ProcessorVersionClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options: ProcessorVersionClient.Options); /** * This endpoint allows you to fetch all versions of a given processor, including the current `draft` version. * * Versions are typically returned in descending order of creation (newest first), but this should be confirmed in the actual implementation. * The `draft` version is the latest unpublished version of the processor, which can be published to create a new version. It might not have any changes from the last published version. * * @param {string} id - The ID of the processor to retrieve versions for. * * Example: `"ex_Xj8mK2pL9nR4vT7qY5wZ"` * @param {Extend.ProcessorVersionListRequest} request * @param {ProcessorVersionClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.NotFoundError} * * @example * await client.processorVersion.list("processor_id_here") */ list(id: string, request?: Extend.ProcessorVersionListRequest, requestOptions?: ProcessorVersionClient.RequestOptions): core.HttpResponsePromise; private __list; /** * This endpoint allows you to publish a new version of an existing processor. Publishing a new version creates a snapshot of the processor's current configuration and makes it available for use in workflows. * * Publishing a new version does not automatically update existing workflows using this processor. You may need to manually update workflows to use the new version if desired. * * @param {string} id - The ID of the processor to publish a new version for. * * Example: `"ex_Xj8mK2pL9nR4vT7qY5wZ"` * @param {Extend.ProcessorVersionCreateRequest} request * @param {ProcessorVersionClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * * @example * await client.processorVersion.create("processor_id_here", { * releaseType: "major" * }) */ create(id: string, request: Extend.ProcessorVersionCreateRequest, requestOptions?: ProcessorVersionClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieve a specific version of a processor in Extend * * @param {string} processorId - The ID of the processor. * * Example: `"ex_Xj8mK2pL9nR4vT7qY5wZ"` * @param {string} processorVersionId - The ID of the specific processor version to retrieve. * * Example: `"exv_QYk6jgHA_8CsO8rVWhyNC"` * @param {Extend.ProcessorVersionGetRequest} request * @param {ProcessorVersionClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Extend.BadRequestError} * @throws {@link Extend.UnauthorizedError} * @throws {@link Extend.NotFoundError} * * @example * await client.processorVersion.get("processor_id_here", "processor_version_id_here") */ get(processorId: string, processorVersionId: string, request?: Extend.ProcessorVersionGetRequest, requestOptions?: ProcessorVersionClient.RequestOptions): core.HttpResponsePromise; private __get; }