import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient"; import * as core from "../../../../core"; import * as Extend from "../../../index"; export declare namespace WorkflowVersionsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class WorkflowVersionsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options: WorkflowVersionsClient.Options); /** * List all versions of a workflow, including the draft version. Returns a paginated list of version summaries. * * @param {string} id - The ID of the workflow. * @param {Extend.WorkflowVersionsListRequest} request * @param {WorkflowVersionsClient.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.workflowVersions.list("workflow_abc123", { * nextPageToken: "xK9mLPqRtN3vS8wF5hB2cQ==:zWvUxYjM4nKpL7aDgE9HbTcR2mAyX3/Q+CNkfBSw1dZ=" * }) */ list(id: string, request?: Extend.WorkflowVersionsListRequest, requestOptions?: WorkflowVersionsClient.RequestOptions): core.HttpResponsePromise; private __list; /** * Deploy a new version of a workflow. The deployed version becomes available for running workflow runs. * * When `steps` is omitted, the current draft is deployed as-is. When `steps` is provided, the given steps are deployed directly without modifying the draft. * * @param {string} id - The ID of the workflow to deploy. * @param {Extend.WorkflowVersionsCreateRequest} request * @param {WorkflowVersionsClient.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.workflowVersions.create("workflow_abc123") */ create(id: string, request?: Extend.WorkflowVersionsCreateRequest, requestOptions?: WorkflowVersionsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Get a specific version of a workflow, including its step definitions. * * @param {string} id - The ID of the workflow. * @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. `"1"`, `"2"`) — returns that specific published version * - A version ID (e.g. `"workflow_version_abc123"`) — returns that specific version by ID * @param {WorkflowVersionsClient.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.workflowVersions.retrieve("workflow_abc123", "draft") */ retrieve(id: string, versionId: string, requestOptions?: WorkflowVersionsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; }