/** * Generated by orval 🍺 * Do not edit manually. * Output.ai API * API for managing and executing Output.ai workflows * OpenAPI spec version: 1.0.0 */ import { customFetchInstance } from '../http_client.js'; /** * API error body (WorkflowNotFoundError, UnsupportedWorkflowError, WorkflowExecutionTimedOutError, WorkflowNotCompletedError, CatalogNotAvailableError, or server error) */ export interface ErrorResponse { /** Error type name (e.g. WorkflowNotFoundError, UnsupportedWorkflowError, CatalogNotAvailableError) */ error?: string; /** Human-readable error message */ message?: string; /** * Workflow ID when the error is tied to a specific execution (e.g. timeout) * @nullable */ workflowId?: string | null; } export type ValidationErrorResponseError = typeof ValidationErrorResponseError[keyof typeof ValidationErrorResponseError]; export declare const ValidationErrorResponseError: { readonly ValidationError: "ValidationError"; }; export type ValidationErrorResponseIssuesItem = { [key: string]: unknown; }; /** * Request body validation failure (Zod) */ export interface ValidationErrorResponse { error?: ValidationErrorResponseError; message?: string; /** Zod validation issues */ issues?: ValidationErrorResponseIssuesItem[]; } export type JSONSchemaPropertyNames = { type?: string; }; export interface JSONSchema { $schema?: string; type?: string; properties?: JSONSchemaProperties; items?: JSONSchema; required?: string[]; description?: string; additionalProperties?: boolean; propertyNames?: JSONSchemaPropertyNames; anyOf?: JSONSchema[]; [key: string]: unknown; } export type JSONSchemaProperties = { [key: string]: JSONSchema; }; export interface Workflow { /** The name of the workflow */ name: string; /** The description of the workflow */ description?: string; /** Absolute path to the workflow file */ path?: string; inputSchema?: JSONSchema; outputSchema?: JSONSchema; /** Alternative names that resolve to this workflow */ aliases?: string[]; } /** * Available destinations for trace data */ export type TraceInfoV1Destinations = { /** Absolute path to local trace file, omitted if not saved locally */ local?: string; /** Remote trace location (e.g., S3 URI), omitted if not saved remotely */ remote?: string; }; /** * Legacy trace information containing nested destinations * @nullable */ export type TraceInfoV1 = { /** Available destinations for trace data */ destinations?: TraceInfoV1Destinations; } | null; /** * Available destinations for trace data * @nullable */ export type TraceInfoV2 = { /** Absolute path to local trace file, omitted if not saved locally */ local?: string; /** Remote trace location (e.g., S3 URI), omitted if not saved remotely */ remote?: string; } | null; /** * The workflow input */ export type TraceDataInput = { [key: string]: unknown; }; /** * The workflow output */ export type TraceDataOutput = { [key: string]: unknown; }; export type TraceDataStepsItem = { [key: string]: unknown; }; /** * Trace data containing workflow execution details */ export interface TraceData { /** The workflow execution ID */ workflowId?: string; /** The workflow input */ input?: TraceDataInput; /** The workflow output */ output?: TraceDataOutput; /** The workflow execution steps */ steps?: TraceDataStepsItem[]; [key: string]: unknown; } /** * Indicates trace was fetched from remote storage */ export type TraceLogRemoteResponseSource = typeof TraceLogRemoteResponseSource[keyof typeof TraceLogRemoteResponseSource]; export declare const TraceLogRemoteResponseSource: { readonly remote: "remote"; }; export interface TraceLogRemoteResponse { /** Indicates trace was fetched from remote storage */ source: TraceLogRemoteResponseSource; /** The specific run id this trace belongs to */ runId: string; data: TraceData; } /** * Indicates trace is available locally */ export type TraceLogLocalResponseSource = typeof TraceLogLocalResponseSource[keyof typeof TraceLogLocalResponseSource]; export declare const TraceLogLocalResponseSource: { readonly local: "local"; }; export interface TraceLogLocalResponse { /** Indicates trace is available locally */ source: TraceLogLocalResponseSource; /** The specific run id this trace belongs to */ runId: string; /** Absolute path to local trace file */ localPath: string; } /** * Current run status */ export type WorkflowRunInfoStatus = typeof WorkflowRunInfoStatus[keyof typeof WorkflowRunInfoStatus]; export declare const WorkflowRunInfoStatus: { readonly running: "running"; readonly completed: "completed"; readonly failed: "failed"; readonly cancelled: "cancelled"; readonly terminated: "terminated"; readonly timed_out: "timed_out"; readonly continued_as_new: "continued_as_new"; }; export interface WorkflowRunInfo { /** Unique identifier for this run */ workflowId?: string; /** The specific run id for this execution */ runId?: string; /** Name of the workflow definition */ workflowType?: string; /** Current run status */ status?: WorkflowRunInfoStatus; /** ISO 8601 timestamp of run start */ startedAt?: string; /** * ISO 8601 timestamp of completion, or null if still running * @nullable */ completedAt?: string | null; } export interface WorkflowRunsResponse { runs?: WorkflowRunInfo[]; /** Total number of runs returned */ count?: number; } /** * The workflow execution status */ export type WorkflowStatusResponseStatus = typeof WorkflowStatusResponseStatus[keyof typeof WorkflowStatusResponseStatus]; export declare const WorkflowStatusResponseStatus: { readonly cancelled: "cancelled"; readonly completed: "completed"; readonly continued_as_new: "continued_as_new"; readonly failed: "failed"; readonly running: "running"; readonly terminated: "terminated"; readonly timed_out: "timed_out"; readonly unspecified: "unspecified"; }; export interface WorkflowStatusResponse { /** The id of workflow */ workflowId?: string; /** The specific run id for this execution */ runId?: string; /** The workflow execution status */ status?: WorkflowStatusResponseStatus; /** An epoch timestamp representing when the workflow started */ startedAt?: number; /** An epoch timestamp representing when the workflow ended */ completedAt?: number; } /** * The workflow execution status */ export type WorkflowResultStatus = typeof WorkflowResultStatus[keyof typeof WorkflowResultStatus]; export declare const WorkflowResultStatus: { readonly completed: "completed"; readonly failed: "failed"; readonly cancelled: "cancelled"; readonly terminated: "terminated"; readonly timed_out: "timed_out"; readonly continued_as_new: "continued_as_new"; }; /** * Structured error details captured from the workflow or activity failure * @nullable */ export type SerializedWorkflowError = { /** Failing activity type, omitted when the failure did not originate in an activity */ activityType?: string; /** Original error class name */ name?: string; /** Original error message */ message?: string; [key: string]: unknown; } | null; /** * Sanitized error cause chain (name/message per level, no stack) * @nullable */ export type WorkflowResultV1ResponseErrorDetailsCause = { [key: string]: unknown; } | null; /** * Structured failure details if the workflow failed, null otherwise * @nullable */ export type WorkflowResultV1ResponseErrorDetails = { /** * Friendly failure message (from the underlying application error) * @nullable */ message?: string | null; /** * Error name/type (the original error's class) * @nullable */ name?: string | null; /** * Whether Temporal flagged the failure retryable; null if unknown * @nullable */ retryable?: boolean | null; /** * Failing activity key ("workflow#step"); null if no activity failed * @nullable */ activityId?: string | null; /** * Sanitized error cause chain (name/message per level, no stack) * @nullable */ cause?: WorkflowResultV1ResponseErrorDetailsCause; } | null; /** * Legacy wrapped workflow result * @deprecated */ export interface WorkflowResultV1Response { /** The workflow execution id */ workflowId: string; /** * The specific run id for this execution * @nullable */ runId: string | null; status: WorkflowResultStatus; /** The original input passed to the workflow, null if unavailable */ input: unknown | null; /** The result of workflow, null if workflow failed */ output: unknown | null; trace: TraceInfoV1 | null; /** * Error message if workflow failed, null otherwise * @nullable */ error: string | null; /** * Structured failure details if the workflow failed, null otherwise * @nullable */ errorDetails: WorkflowResultV1ResponseErrorDetails; } /** * Workflow result response version */ export type WorkflowResultV2ResponseV = typeof WorkflowResultV2ResponseV[keyof typeof WorkflowResultV2ResponseV]; export declare const WorkflowResultV2ResponseV: { readonly NUMBER_2: "2"; }; /** * Current workflow result with direct output and memo-based trace information */ export interface WorkflowResultV2Response { /** Workflow result response version */ v: WorkflowResultV2ResponseV; /** The workflow execution id */ workflowId: string; /** * The specific run id for this execution * @nullable */ runId: string | null; status: WorkflowResultStatus; /** The original input passed to the workflow, null if unavailable */ input: unknown | null; /** Direct workflow output, null if no output is available */ output: unknown | null; trace: TraceInfoV2 | null; error: SerializedWorkflowError | null; } export type WorkflowResultResponse = WorkflowResultV2Response | WorkflowResultV1Response; export interface WorkflowInputResponse { /** The workflow execution id */ workflowId: string; /** The specific run id the input was read from */ runId: string; /** The first input argument the workflow was started with, null if unavailable */ input: unknown; } export interface StopWorkflowResponse { workflowId?: string; runId?: string; } export interface TerminateWorkflowResponse { terminated?: boolean; workflowId?: string; runId?: string; } export interface ResetWorkflowRequest { /** The name of the step to reset after */ stepName: string; /** Optional reason for the reset */ reason?: string; } export interface ResetWorkflowResponse { /** The original workflow ID */ workflowId?: string; /** The run ID of the new execution created by the reset */ runId?: string; } /** * Invalid request body, query, or pagination token */ export type BadRequestResponse = ValidationErrorResponse | ErrorResponse; /** * Workflow execution, workflow type, or catalog not found */ export type NotFoundResponse = ErrorResponse; /** * Synchronous execution timed out before workflow completed */ export type RequestTimeoutResponse = ErrorResponse; /** * Workflow dependency failed (e.g. workflow not in a terminal state, or workflow type is unsupported by the selected catalog) */ export type FailedDependencyResponse = ErrorResponse; /** * Workflow run is in a state that conflicts with the requested operation (e.g. operating on an already-terminal run, or resetting to an incomplete step). */ export type ConflictResponse = ErrorResponse; /** * Catalog workflow unavailable (worker not running or still starting). Retry-After header may be set. */ export type ServiceUnavailableResponse = ErrorResponse; /** * Internal server error (e.g. Temporal connection failure) */ export type InternalServerErrorResponse = ErrorResponse; export type PostWorkflowRunBody = { /** The name of the workflow to execute */ workflowName: string; /** The payload to send to the workflow */ input: unknown; /** (Optional) The workflowId to use. Must be unique */ workflowId?: string; /** The catalog (Temporal task queue) to route the execution to. Falls back to the default catalog. */ catalog?: string; /** * Deprecated alias for `catalog`. If both are sent, `catalog` wins. * @deprecated */ taskQueue?: string; /** (Optional) The max time to wait for the execution, defaults to 30s */ timeout?: number; }; export type PostWorkflowStartBody = { /** The name of the workflow to execute */ workflowName: string; /** The payload to send to the workflow */ input: unknown; /** (Optional) The workflowId to use. Must be unique */ workflowId?: string; /** The catalog (Temporal task queue) to route the execution to. Falls back to the default catalog. */ catalog?: string; /** * Deprecated alias for `catalog`. If both are sent, `catalog` wins. * @deprecated */ taskQueue?: string; }; export type PostWorkflowStart200 = { /** The id of the started workflow */ workflowId?: string; /** * The first execution's run id for this workflow * @nullable */ runId?: string | null; }; export type PostWorkflowIdRunsRidTerminateBody = { /** Optional reason for termination */ reason?: string; }; export type PostWorkflowIdTerminateBody = { reason?: string; }; export type GetWorkflowIdHistoryParams = { /** * Specific run ID. Required when using pageToken. */ runId?: string; /** * Number of events per page * @minimum 1 * @maximum 50 */ pageSize?: number; /** * Base64 pagination token from previous response */ pageToken?: string; /** * Include decoded input/output payloads in events */ includePayloads?: boolean; /** * When set, long-poll for a new event once caught up to the end of history instead of returning immediately, bounding the block by this many milliseconds. Clamped to the server's configured maximum — a caller can shorten the wait but never exceed it. Omit for an immediate response; on timeout returns the same page's cursor unchanged with an empty events array so the caller can retry. Lets a poller keep the block roughly aligned with its own tick interval. * @minimum 1 */ longPollTimeoutMs?: number; }; /** * Workflow metadata (null on subsequent pages) * @nullable */ export type GetWorkflowIdHistory200Workflow = { [key: string]: unknown; } | null; export type GetWorkflowIdHistory200EventsItem = { [key: string]: unknown; }; export type GetWorkflowIdHistory200 = { /** * Workflow metadata (null on subsequent pages) * @nullable */ workflow?: GetWorkflowIdHistory200Workflow; events?: GetWorkflowIdHistory200EventsItem[]; /** Resolved run ID. Echo this value as the runId query parameter when fetching subsequent pages. */ runId?: string; /** @nullable */ nextPageToken?: string | null; }; export type GetWorkflowIdRunsRidHistoryParams = { /** * Number of events per page * @minimum 1 * @maximum 50 */ pageSize?: number; /** * Base64 pagination token from previous response */ pageToken?: string; /** * Include decoded input/output payloads in events */ includePayloads?: boolean; /** * When set, long-poll for a new event once caught up to the end of history instead of returning immediately, bounding the block by this many milliseconds. Clamped to the server's configured maximum — a caller can shorten the wait but never exceed it. Omit for an immediate response; on timeout returns the same page's cursor unchanged with an empty events array so the caller can retry. Lets a poller keep the block roughly aligned with its own tick interval. * @minimum 1 */ longPollTimeoutMs?: number; }; /** * Workflow metadata (null on subsequent pages) * @nullable */ export type GetWorkflowIdRunsRidHistory200Workflow = { [key: string]: unknown; } | null; export type GetWorkflowIdRunsRidHistory200EventsItem = { [key: string]: unknown; }; export type GetWorkflowIdRunsRidHistory200 = { /** * Workflow metadata (null on subsequent pages) * @nullable */ workflow?: GetWorkflowIdRunsRidHistory200Workflow; events?: GetWorkflowIdRunsRidHistory200EventsItem[]; /** The pinned run ID */ runId?: string; /** @nullable */ nextPageToken?: string | null; }; export type GetWorkflowIdHistoryStreamParams = { /** * Include decoded input/output payloads in events */ includePayloads?: boolean; /** * Resume from this event ID (alternative to Last-Event-ID header) */ lastEventId?: number; }; export type GetWorkflowIdRunsRidHistoryStreamParams = { /** * Include decoded input/output payloads in events */ includePayloads?: boolean; /** * Resume from this event ID (alternative to Last-Event-ID header) */ lastEventId?: number; }; export type GetWorkflowCatalogId200 = { /** Each workflow available in this catalog */ workflows?: Workflow[]; }; export type GetWorkflowCatalog200 = { /** Each workflow available in this catalog */ workflows?: Workflow[]; }; export type GetWorkflowRunsParams = { /** * Filter by workflow type/name */ workflowType?: string; /** * Filter by catalog ID (scopes runs to a single worker's catalog/session) */ catalog?: string; /** * Maximum number of runs to return * @minimum 1 * @maximum 1000 */ limit?: number; }; /** * The payload sent to the workflow */ export type PostWorkflowIdFeedbackBodyPayload = { [key: string]: unknown; }; export type PostWorkflowIdFeedbackBody = { /** The payload sent to the workflow */ payload?: PostWorkflowIdFeedbackBodyPayload; }; /** * The payload sent to the signal operation */ export type PostWorkflowIdSignalSignalBodyPayload = { [key: string]: unknown; }; export type PostWorkflowIdSignalSignalBody = { /** The payload sent to the signal operation */ payload?: PostWorkflowIdSignalSignalBodyPayload; }; /** * The payload sent to the query operation */ export type PostWorkflowIdQueryQueryBodyPayload = { [key: string]: unknown; }; export type PostWorkflowIdQueryQueryBody = { /** The payload sent to the query operation */ payload?: PostWorkflowIdQueryQueryBodyPayload; }; /** * The payload sent to the update operation */ export type PostWorkflowIdUpdateUpdateBodyPayload = { [key: string]: unknown; }; export type PostWorkflowIdUpdateUpdateBody = { /** The payload sent to the update operation */ payload?: PostWorkflowIdUpdateUpdateBodyPayload; }; export type getHealthResponse200 = { data: void; status: 200; }; export type getHealthResponseSuccess = (getHealthResponse200) & { headers: Headers; }; export type getHealthResponse = (getHealthResponseSuccess); export declare const getGetHealthUrl: () => string; /** * @summary Health check the API */ export declare const getHealth: (options?: Parameters[1]) => Promise; export type getReadyResponse200 = { data: void; status: 200; }; export type getReadyResponse503 = { data: void; status: 503; }; export type getReadyResponseSuccess = (getReadyResponse200) & { headers: Headers; }; export type getReadyResponseError = (getReadyResponse503) & { headers: Headers; }; export type getReadyResponse = (getReadyResponseSuccess | getReadyResponseError); export declare const getGetReadyUrl: () => string; /** * @summary Check if the API is ready to answer requests */ export declare const getReady: (options?: Parameters[1]) => Promise; export type postWorkflowRunResponse200 = { data: WorkflowResultResponse; status: 200; }; export type postWorkflowRunResponse400 = { data: BadRequestResponse; status: 400; }; export type postWorkflowRunResponse404 = { data: NotFoundResponse; status: 404; }; export type postWorkflowRunResponse408 = { data: RequestTimeoutResponse; status: 408; }; export type postWorkflowRunResponse424 = { data: FailedDependencyResponse; status: 424; }; export type postWorkflowRunResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type postWorkflowRunResponse503 = { data: ServiceUnavailableResponse; status: 503; }; export type postWorkflowRunResponseSuccess = (postWorkflowRunResponse200) & { headers: Headers; }; export type postWorkflowRunResponseError = (postWorkflowRunResponse400 | postWorkflowRunResponse404 | postWorkflowRunResponse408 | postWorkflowRunResponse424 | postWorkflowRunResponse500 | postWorkflowRunResponse503) & { headers: Headers; }; export type postWorkflowRunResponse = (postWorkflowRunResponseSuccess | postWorkflowRunResponseError); export declare const getPostWorkflowRunUrl: () => string; /** * Executes a workflow and waits for it to complete before returning the result * @summary Execute a workflow synchronously */ export declare const postWorkflowRun: (postWorkflowRunBody: PostWorkflowRunBody, options?: Parameters[1]) => Promise; export type postWorkflowStartResponse200 = { data: PostWorkflowStart200; status: 200; }; export type postWorkflowStartResponse400 = { data: BadRequestResponse; status: 400; }; export type postWorkflowStartResponse404 = { data: NotFoundResponse; status: 404; }; export type postWorkflowStartResponse424 = { data: FailedDependencyResponse; status: 424; }; export type postWorkflowStartResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type postWorkflowStartResponse503 = { data: ServiceUnavailableResponse; status: 503; }; export type postWorkflowStartResponseSuccess = (postWorkflowStartResponse200) & { headers: Headers; }; export type postWorkflowStartResponseError = (postWorkflowStartResponse400 | postWorkflowStartResponse404 | postWorkflowStartResponse424 | postWorkflowStartResponse500 | postWorkflowStartResponse503) & { headers: Headers; }; export type postWorkflowStartResponse = (postWorkflowStartResponseSuccess | postWorkflowStartResponseError); export declare const getPostWorkflowStartUrl: () => string; /** * @summary Start a workflow asynchronously */ export declare const postWorkflowStart: (postWorkflowStartBody: PostWorkflowStartBody, options?: Parameters[1]) => Promise; export type getWorkflowIdStatusResponse200 = { data: WorkflowStatusResponse; status: 200; }; export type getWorkflowIdStatusResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowIdStatusResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowIdStatusResponseSuccess = (getWorkflowIdStatusResponse200) & { headers: Headers; }; export type getWorkflowIdStatusResponseError = (getWorkflowIdStatusResponse404 | getWorkflowIdStatusResponse500) & { headers: Headers; }; export type getWorkflowIdStatusResponse = (getWorkflowIdStatusResponseSuccess | getWorkflowIdStatusResponseError); export declare const getGetWorkflowIdStatusUrl: (id: string) => string; /** * Returns the status of the latest run for the given workflow. To pin a specific run, use `/workflow/{id}/runs/{rid}/status`. * @summary Get workflow execution status (latest run) */ export declare const getWorkflowIdStatus: (id: string, options?: Parameters[1]) => Promise; export type getWorkflowIdRunsRidStatusResponse200 = { data: WorkflowStatusResponse; status: 200; }; export type getWorkflowIdRunsRidStatusResponse400 = { data: BadRequestResponse; status: 400; }; export type getWorkflowIdRunsRidStatusResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowIdRunsRidStatusResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowIdRunsRidStatusResponseSuccess = (getWorkflowIdRunsRidStatusResponse200) & { headers: Headers; }; export type getWorkflowIdRunsRidStatusResponseError = (getWorkflowIdRunsRidStatusResponse400 | getWorkflowIdRunsRidStatusResponse404 | getWorkflowIdRunsRidStatusResponse500) & { headers: Headers; }; export type getWorkflowIdRunsRidStatusResponse = (getWorkflowIdRunsRidStatusResponseSuccess | getWorkflowIdRunsRidStatusResponseError); export declare const getGetWorkflowIdRunsRidStatusUrl: (id: string, rid: string) => string; /** * @summary Get workflow execution status for a specific run */ export declare const getWorkflowIdRunsRidStatus: (id: string, rid: string, options?: Parameters[1]) => Promise; export type patchWorkflowIdRunsRidStopResponse200 = { data: StopWorkflowResponse; status: 200; }; export type patchWorkflowIdRunsRidStopResponse400 = { data: BadRequestResponse; status: 400; }; export type patchWorkflowIdRunsRidStopResponse404 = { data: NotFoundResponse; status: 404; }; export type patchWorkflowIdRunsRidStopResponse409 = { data: ConflictResponse; status: 409; }; export type patchWorkflowIdRunsRidStopResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type patchWorkflowIdRunsRidStopResponseSuccess = (patchWorkflowIdRunsRidStopResponse200) & { headers: Headers; }; export type patchWorkflowIdRunsRidStopResponseError = (patchWorkflowIdRunsRidStopResponse400 | patchWorkflowIdRunsRidStopResponse404 | patchWorkflowIdRunsRidStopResponse409 | patchWorkflowIdRunsRidStopResponse500) & { headers: Headers; }; export type patchWorkflowIdRunsRidStopResponse = (patchWorkflowIdRunsRidStopResponseSuccess | patchWorkflowIdRunsRidStopResponseError); export declare const getPatchWorkflowIdRunsRidStopUrl: (id: string, rid: string) => string; /** * @summary Stop a specific workflow run */ export declare const patchWorkflowIdRunsRidStop: (id: string, rid: string, options?: Parameters[1]) => Promise; export type patchWorkflowIdStopResponse200 = { data: StopWorkflowResponse; status: 200; }; export type patchWorkflowIdStopResponse404 = { data: NotFoundResponse; status: 404; }; export type patchWorkflowIdStopResponse409 = { data: ConflictResponse; status: 409; }; export type patchWorkflowIdStopResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type patchWorkflowIdStopResponseSuccess = (patchWorkflowIdStopResponse200) & { headers: Headers; }; export type patchWorkflowIdStopResponseError = (patchWorkflowIdStopResponse404 | patchWorkflowIdStopResponse409 | patchWorkflowIdStopResponse500) & { headers: Headers; }; export type patchWorkflowIdStopResponse = (patchWorkflowIdStopResponseSuccess | patchWorkflowIdStopResponseError); export declare const getPatchWorkflowIdStopUrl: (id: string) => string; /** * Stops the latest run of the given workflow. The returned `runId` reflects the run at describe-time and may differ from the cancelled run if a new execution started concurrently. Deprecated; use `PATCH /workflow/{id}/runs/{rid}/stop` to pin a specific run. Scheduled for removal after 2026-07-16. * @deprecated * @summary [Deprecated] Stop the latest workflow run */ export declare const patchWorkflowIdStop: (id: string, options?: Parameters[1]) => Promise; export type postWorkflowIdRunsRidTerminateResponse200 = { data: TerminateWorkflowResponse; status: 200; }; export type postWorkflowIdRunsRidTerminateResponse400 = { data: BadRequestResponse; status: 400; }; export type postWorkflowIdRunsRidTerminateResponse404 = { data: NotFoundResponse; status: 404; }; export type postWorkflowIdRunsRidTerminateResponse409 = { data: ConflictResponse; status: 409; }; export type postWorkflowIdRunsRidTerminateResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type postWorkflowIdRunsRidTerminateResponseSuccess = (postWorkflowIdRunsRidTerminateResponse200) & { headers: Headers; }; export type postWorkflowIdRunsRidTerminateResponseError = (postWorkflowIdRunsRidTerminateResponse400 | postWorkflowIdRunsRidTerminateResponse404 | postWorkflowIdRunsRidTerminateResponse409 | postWorkflowIdRunsRidTerminateResponse500) & { headers: Headers; }; export type postWorkflowIdRunsRidTerminateResponse = (postWorkflowIdRunsRidTerminateResponseSuccess | postWorkflowIdRunsRidTerminateResponseError); export declare const getPostWorkflowIdRunsRidTerminateUrl: (id: string, rid: string) => string; /** * Force terminates a workflow run. Unlike stop/cancel, terminate immediately stops the run without allowing cleanup. * @summary Terminate a specific workflow run (force stop) */ export declare const postWorkflowIdRunsRidTerminate: (id: string, rid: string, postWorkflowIdRunsRidTerminateBody?: PostWorkflowIdRunsRidTerminateBody, options?: Parameters[1]) => Promise; export type postWorkflowIdTerminateResponse200 = { data: TerminateWorkflowResponse; status: 200; }; export type postWorkflowIdTerminateResponse400 = { data: BadRequestResponse; status: 400; }; export type postWorkflowIdTerminateResponse404 = { data: NotFoundResponse; status: 404; }; export type postWorkflowIdTerminateResponse409 = { data: ConflictResponse; status: 409; }; export type postWorkflowIdTerminateResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type postWorkflowIdTerminateResponseSuccess = (postWorkflowIdTerminateResponse200) & { headers: Headers; }; export type postWorkflowIdTerminateResponseError = (postWorkflowIdTerminateResponse400 | postWorkflowIdTerminateResponse404 | postWorkflowIdTerminateResponse409 | postWorkflowIdTerminateResponse500) & { headers: Headers; }; export type postWorkflowIdTerminateResponse = (postWorkflowIdTerminateResponseSuccess | postWorkflowIdTerminateResponseError); export declare const getPostWorkflowIdTerminateUrl: (id: string) => string; /** * Force terminates the latest run. Deprecated; use `POST /workflow/{id}/runs/{rid}/terminate` to target a specific run. Scheduled for removal after 2026-07-16. * @deprecated * @summary [Deprecated] Terminate the latest workflow run */ export declare const postWorkflowIdTerminate: (id: string, postWorkflowIdTerminateBody?: PostWorkflowIdTerminateBody, options?: Parameters[1]) => Promise; export type postWorkflowIdRunsRidResetResponse200 = { data: ResetWorkflowResponse; status: 200; }; export type postWorkflowIdRunsRidResetResponse400 = { data: BadRequestResponse; status: 400; }; export type postWorkflowIdRunsRidResetResponse404 = { data: NotFoundResponse; status: 404; }; export type postWorkflowIdRunsRidResetResponse409 = { data: ConflictResponse; status: 409; }; export type postWorkflowIdRunsRidResetResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type postWorkflowIdRunsRidResetResponseSuccess = (postWorkflowIdRunsRidResetResponse200) & { headers: Headers; }; export type postWorkflowIdRunsRidResetResponseError = (postWorkflowIdRunsRidResetResponse400 | postWorkflowIdRunsRidResetResponse404 | postWorkflowIdRunsRidResetResponse409 | postWorkflowIdRunsRidResetResponse500) & { headers: Headers; }; export type postWorkflowIdRunsRidResetResponse = (postWorkflowIdRunsRidResetResponseSuccess | postWorkflowIdRunsRidResetResponseError); export declare const getPostWorkflowIdRunsRidResetUrl: (id: string, rid: string) => string; /** * Resets a pinned workflow run to the point after a completed step, creating a new run that replays from that point. The current execution is terminated. * @summary Reset a specific workflow run to re-run from after a completed step */ export declare const postWorkflowIdRunsRidReset: (id: string, rid: string, resetWorkflowRequest: ResetWorkflowRequest, options?: Parameters[1]) => Promise; export type postWorkflowIdResetResponse200 = { data: ResetWorkflowResponse; status: 200; }; export type postWorkflowIdResetResponse400 = { data: BadRequestResponse; status: 400; }; export type postWorkflowIdResetResponse404 = { data: NotFoundResponse; status: 404; }; export type postWorkflowIdResetResponse409 = { data: ConflictResponse; status: 409; }; export type postWorkflowIdResetResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type postWorkflowIdResetResponseSuccess = (postWorkflowIdResetResponse200) & { headers: Headers; }; export type postWorkflowIdResetResponseError = (postWorkflowIdResetResponse400 | postWorkflowIdResetResponse404 | postWorkflowIdResetResponse409 | postWorkflowIdResetResponse500) & { headers: Headers; }; export type postWorkflowIdResetResponse = (postWorkflowIdResetResponseSuccess | postWorkflowIdResetResponseError); export declare const getPostWorkflowIdResetUrl: (id: string) => string; /** * Resets the latest run. Deprecated; use `POST /workflow/{id}/runs/{rid}/reset` to target a specific run. Scheduled for removal after 2026-07-16. * @deprecated * @summary [Deprecated] Reset the latest workflow run */ export declare const postWorkflowIdReset: (id: string, resetWorkflowRequest: ResetWorkflowRequest, options?: Parameters[1]) => Promise; export type getWorkflowIdResultResponse200 = { data: WorkflowResultResponse; status: 200; }; export type getWorkflowIdResultResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowIdResultResponse424 = { data: FailedDependencyResponse; status: 424; }; export type getWorkflowIdResultResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowIdResultResponseSuccess = (getWorkflowIdResultResponse200) & { headers: Headers; }; export type getWorkflowIdResultResponseError = (getWorkflowIdResultResponse404 | getWorkflowIdResultResponse424 | getWorkflowIdResultResponse500) & { headers: Headers; }; export type getWorkflowIdResultResponse = (getWorkflowIdResultResponseSuccess | getWorkflowIdResultResponseError); export declare const getGetWorkflowIdResultUrl: (id: string) => string; /** * Returns the result of the latest run for the given workflow. To pin a specific run, use `/workflow/{id}/runs/{rid}/result`. * @summary Return the result of a workflow (latest run) */ export declare const getWorkflowIdResult: (id: string, options?: Parameters[1]) => Promise; export type getWorkflowIdRunsRidResultResponse200 = { data: WorkflowResultResponse; status: 200; }; export type getWorkflowIdRunsRidResultResponse400 = { data: BadRequestResponse; status: 400; }; export type getWorkflowIdRunsRidResultResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowIdRunsRidResultResponse424 = { data: FailedDependencyResponse; status: 424; }; export type getWorkflowIdRunsRidResultResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowIdRunsRidResultResponseSuccess = (getWorkflowIdRunsRidResultResponse200) & { headers: Headers; }; export type getWorkflowIdRunsRidResultResponseError = (getWorkflowIdRunsRidResultResponse400 | getWorkflowIdRunsRidResultResponse404 | getWorkflowIdRunsRidResultResponse424 | getWorkflowIdRunsRidResultResponse500) & { headers: Headers; }; export type getWorkflowIdRunsRidResultResponse = (getWorkflowIdRunsRidResultResponseSuccess | getWorkflowIdRunsRidResultResponseError); export declare const getGetWorkflowIdRunsRidResultUrl: (id: string, rid: string) => string; /** * @summary Return the result of a specific workflow run */ export declare const getWorkflowIdRunsRidResult: (id: string, rid: string, options?: Parameters[1]) => Promise; export type getWorkflowIdInputResponse200 = { data: WorkflowInputResponse; status: 200; }; export type getWorkflowIdInputResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowIdInputResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowIdInputResponseSuccess = (getWorkflowIdInputResponse200) & { headers: Headers; }; export type getWorkflowIdInputResponseError = (getWorkflowIdInputResponse404 | getWorkflowIdInputResponse500) & { headers: Headers; }; export type getWorkflowIdInputResponse = (getWorkflowIdInputResponseSuccess | getWorkflowIdInputResponseError); export declare const getGetWorkflowIdInputUrl: (id: string) => string; /** * Returns the original input passed to the latest run of the given workflow. Works for workflows in any state, including running. To pin a specific run, use `/workflow/{id}/runs/{rid}/input`. * @summary Return the original input of a workflow (latest run) */ export declare const getWorkflowIdInput: (id: string, options?: Parameters[1]) => Promise; export type getWorkflowIdRunsRidInputResponse200 = { data: WorkflowInputResponse; status: 200; }; export type getWorkflowIdRunsRidInputResponse400 = { data: BadRequestResponse; status: 400; }; export type getWorkflowIdRunsRidInputResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowIdRunsRidInputResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowIdRunsRidInputResponseSuccess = (getWorkflowIdRunsRidInputResponse200) & { headers: Headers; }; export type getWorkflowIdRunsRidInputResponseError = (getWorkflowIdRunsRidInputResponse400 | getWorkflowIdRunsRidInputResponse404 | getWorkflowIdRunsRidInputResponse500) & { headers: Headers; }; export type getWorkflowIdRunsRidInputResponse = (getWorkflowIdRunsRidInputResponseSuccess | getWorkflowIdRunsRidInputResponseError); export declare const getGetWorkflowIdRunsRidInputUrl: (id: string, rid: string) => string; /** * @summary Return the original input of a specific workflow run */ export declare const getWorkflowIdRunsRidInput: (id: string, rid: string, options?: Parameters[1]) => Promise; export type getWorkflowIdTraceLogResponse200 = { data: TraceLogRemoteResponse | TraceLogLocalResponse; status: 200; }; export type getWorkflowIdTraceLogResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowIdTraceLogResponse424 = { data: FailedDependencyResponse; status: 424; }; export type getWorkflowIdTraceLogResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowIdTraceLogResponseSuccess = (getWorkflowIdTraceLogResponse200) & { headers: Headers; }; export type getWorkflowIdTraceLogResponseError = (getWorkflowIdTraceLogResponse404 | getWorkflowIdTraceLogResponse424 | getWorkflowIdTraceLogResponse500) & { headers: Headers; }; export type getWorkflowIdTraceLogResponse = (getWorkflowIdTraceLogResponseSuccess | getWorkflowIdTraceLogResponseError); export declare const getGetWorkflowIdTraceLogUrl: (id: string) => string; /** * Returns trace data for the latest run of the given workflow. If trace is stored remotely (S3), fetches and returns the data inline. If trace is local only, returns the local path. To pin a specific run, use `/workflow/{id}/runs/{rid}/trace-log`. * @summary Get workflow trace log data (latest run) */ export declare const getWorkflowIdTraceLog: (id: string, options?: Parameters[1]) => Promise; export type getWorkflowIdRunsRidTraceLogResponse200 = { data: TraceLogRemoteResponse | TraceLogLocalResponse; status: 200; }; export type getWorkflowIdRunsRidTraceLogResponse400 = { data: BadRequestResponse; status: 400; }; export type getWorkflowIdRunsRidTraceLogResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowIdRunsRidTraceLogResponse424 = { data: FailedDependencyResponse; status: 424; }; export type getWorkflowIdRunsRidTraceLogResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowIdRunsRidTraceLogResponseSuccess = (getWorkflowIdRunsRidTraceLogResponse200) & { headers: Headers; }; export type getWorkflowIdRunsRidTraceLogResponseError = (getWorkflowIdRunsRidTraceLogResponse400 | getWorkflowIdRunsRidTraceLogResponse404 | getWorkflowIdRunsRidTraceLogResponse424 | getWorkflowIdRunsRidTraceLogResponse500) & { headers: Headers; }; export type getWorkflowIdRunsRidTraceLogResponse = (getWorkflowIdRunsRidTraceLogResponseSuccess | getWorkflowIdRunsRidTraceLogResponseError); export declare const getGetWorkflowIdRunsRidTraceLogUrl: (id: string, rid: string) => string; /** * Returns trace data for a pinned workflow run. If trace is stored remotely (S3), fetches and returns the data inline. If trace is local only, returns the local path. * @summary Get workflow trace log data for a specific run */ export declare const getWorkflowIdRunsRidTraceLog: (id: string, rid: string, options?: Parameters[1]) => Promise; export type getWorkflowIdHistoryResponse200 = { data: GetWorkflowIdHistory200; status: 200; }; export type getWorkflowIdHistoryResponse400 = { data: BadRequestResponse; status: 400; }; export type getWorkflowIdHistoryResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowIdHistoryResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowIdHistoryResponseSuccess = (getWorkflowIdHistoryResponse200) & { headers: Headers; }; export type getWorkflowIdHistoryResponseError = (getWorkflowIdHistoryResponse400 | getWorkflowIdHistoryResponse404 | getWorkflowIdHistoryResponse500) & { headers: Headers; }; export type getWorkflowIdHistoryResponse = (getWorkflowIdHistoryResponseSuccess | getWorkflowIdHistoryResponseError); export declare const getGetWorkflowIdHistoryUrl: (id: string, params?: GetWorkflowIdHistoryParams) => string; /** * Returns decoded Temporal history events with optional payload inclusion. First page includes workflow metadata; subsequent pages return events only. * @summary Get paginated workflow execution history */ export declare const getWorkflowIdHistory: (id: string, params?: GetWorkflowIdHistoryParams, options?: Parameters[1]) => Promise; export type getWorkflowIdRunsRidHistoryResponse200 = { data: GetWorkflowIdRunsRidHistory200; status: 200; }; export type getWorkflowIdRunsRidHistoryResponse400 = { data: BadRequestResponse; status: 400; }; export type getWorkflowIdRunsRidHistoryResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowIdRunsRidHistoryResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowIdRunsRidHistoryResponseSuccess = (getWorkflowIdRunsRidHistoryResponse200) & { headers: Headers; }; export type getWorkflowIdRunsRidHistoryResponseError = (getWorkflowIdRunsRidHistoryResponse400 | getWorkflowIdRunsRidHistoryResponse404 | getWorkflowIdRunsRidHistoryResponse500) & { headers: Headers; }; export type getWorkflowIdRunsRidHistoryResponse = (getWorkflowIdRunsRidHistoryResponseSuccess | getWorkflowIdRunsRidHistoryResponseError); export declare const getGetWorkflowIdRunsRidHistoryUrl: (id: string, rid: string, params?: GetWorkflowIdRunsRidHistoryParams) => string; /** * @summary Get paginated workflow execution history for a specific run */ export declare const getWorkflowIdRunsRidHistory: (id: string, rid: string, params?: GetWorkflowIdRunsRidHistoryParams, options?: Parameters[1]) => Promise; export type getWorkflowIdHistoryStreamResponse200 = { data: string; status: 200; }; export type getWorkflowIdHistoryStreamResponse400 = { data: BadRequestResponse; status: 400; }; export type getWorkflowIdHistoryStreamResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowIdHistoryStreamResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowIdHistoryStreamResponseSuccess = (getWorkflowIdHistoryStreamResponse200) & { headers: Headers; }; export type getWorkflowIdHistoryStreamResponseError = (getWorkflowIdHistoryStreamResponse400 | getWorkflowIdHistoryStreamResponse404 | getWorkflowIdHistoryStreamResponse500) & { headers: Headers; }; export type getWorkflowIdHistoryStreamResponse = (getWorkflowIdHistoryStreamResponseSuccess | getWorkflowIdHistoryStreamResponseError); export declare const getGetWorkflowIdHistoryStreamUrl: (id: string, params?: GetWorkflowIdHistoryStreamParams) => string; /** * Opens a persistent SSE connection that delivers Temporal workflow history events in real time. Emits named events: `workflow` (metadata, once), `history` (event batches), `done` (terminal state), `server_error` (post-flush errors). The `done` event carries `{ reason, newRunId? }` where `reason` is the terminal Temporal event type (`WORKFLOW_EXECUTION_COMPLETED`, `WORKFLOW_EXECUTION_FAILED`, `WORKFLOW_EXECUTION_TIMED_OUT`, `WORKFLOW_EXECUTION_CANCELED`, `WORKFLOW_EXECUTION_TERMINATED`, `WORKFLOW_EXECUTION_CONTINUED_AS_NEW`) and `newRunId` is present only when the terminal event chains a follow-on run. `server_error` carries `{ error, message, workflowId, runId }`. Errors before the stream opens are returned as JSON HTTP responses (400/404); once open, failures arrive as a `server_error` event. Supports reconnect via `Last-Event-ID` header or `lastEventId` query param. * @summary Stream workflow history events via Server-Sent Events */ export declare const getWorkflowIdHistoryStream: (id: string, params?: GetWorkflowIdHistoryStreamParams, options?: Parameters[1]) => Promise; export type getWorkflowIdRunsRidHistoryStreamResponse200 = { data: string; status: 200; }; export type getWorkflowIdRunsRidHistoryStreamResponse400 = { data: BadRequestResponse; status: 400; }; export type getWorkflowIdRunsRidHistoryStreamResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowIdRunsRidHistoryStreamResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowIdRunsRidHistoryStreamResponseSuccess = (getWorkflowIdRunsRidHistoryStreamResponse200) & { headers: Headers; }; export type getWorkflowIdRunsRidHistoryStreamResponseError = (getWorkflowIdRunsRidHistoryStreamResponse400 | getWorkflowIdRunsRidHistoryStreamResponse404 | getWorkflowIdRunsRidHistoryStreamResponse500) & { headers: Headers; }; export type getWorkflowIdRunsRidHistoryStreamResponse = (getWorkflowIdRunsRidHistoryStreamResponseSuccess | getWorkflowIdRunsRidHistoryStreamResponseError); export declare const getGetWorkflowIdRunsRidHistoryStreamUrl: (id: string, rid: string, params?: GetWorkflowIdRunsRidHistoryStreamParams) => string; /** * Same as /workflow/{id}/history/stream but targets a specific run ID. * @summary Stream pinned-run workflow history events via Server-Sent Events */ export declare const getWorkflowIdRunsRidHistoryStream: (id: string, rid: string, params?: GetWorkflowIdRunsRidHistoryStreamParams, options?: Parameters[1]) => Promise; export type getWorkflowCatalogIdResponse200 = { data: GetWorkflowCatalogId200; status: 200; }; export type getWorkflowCatalogIdResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowCatalogIdResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowCatalogIdResponseSuccess = (getWorkflowCatalogIdResponse200) & { headers: Headers; }; export type getWorkflowCatalogIdResponseError = (getWorkflowCatalogIdResponse404 | getWorkflowCatalogIdResponse500) & { headers: Headers; }; export type getWorkflowCatalogIdResponse = (getWorkflowCatalogIdResponseSuccess | getWorkflowCatalogIdResponseError); export declare const getGetWorkflowCatalogIdUrl: (id: string) => string; /** * @summary Get a specific workflow catalog by ID */ export declare const getWorkflowCatalogId: (id: string, options?: Parameters[1]) => Promise; export type getWorkflowCatalogResponse200 = { data: GetWorkflowCatalog200; status: 200; }; export type getWorkflowCatalogResponse404 = { data: NotFoundResponse; status: 404; }; export type getWorkflowCatalogResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowCatalogResponseSuccess = (getWorkflowCatalogResponse200) & { headers: Headers; }; export type getWorkflowCatalogResponseError = (getWorkflowCatalogResponse404 | getWorkflowCatalogResponse500) & { headers: Headers; }; export type getWorkflowCatalogResponse = (getWorkflowCatalogResponseSuccess | getWorkflowCatalogResponseError); export declare const getGetWorkflowCatalogUrl: () => string; /** * @summary Get the default workflow catalog */ export declare const getWorkflowCatalog: (options?: Parameters[1]) => Promise; export type getWorkflowRunsResponse200 = { data: WorkflowRunsResponse; status: 200; }; export type getWorkflowRunsResponse400 = { data: BadRequestResponse; status: 400; }; export type getWorkflowRunsResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type getWorkflowRunsResponseSuccess = (getWorkflowRunsResponse200) & { headers: Headers; }; export type getWorkflowRunsResponseError = (getWorkflowRunsResponse400 | getWorkflowRunsResponse500) & { headers: Headers; }; export type getWorkflowRunsResponse = (getWorkflowRunsResponseSuccess | getWorkflowRunsResponseError); export declare const getGetWorkflowRunsUrl: (params?: GetWorkflowRunsParams) => string; /** * Returns a list of workflow runs with optional filtering by workflow type * @summary List workflow runs */ export declare const getWorkflowRuns: (params?: GetWorkflowRunsParams, options?: Parameters[1]) => Promise; export type postWorkflowIdFeedbackResponse200 = { data: void; status: 200; }; export type postWorkflowIdFeedbackResponse400 = { data: BadRequestResponse; status: 400; }; export type postWorkflowIdFeedbackResponse404 = { data: NotFoundResponse; status: 404; }; export type postWorkflowIdFeedbackResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type postWorkflowIdFeedbackResponseSuccess = (postWorkflowIdFeedbackResponse200) & { headers: Headers; }; export type postWorkflowIdFeedbackResponseError = (postWorkflowIdFeedbackResponse400 | postWorkflowIdFeedbackResponse404 | postWorkflowIdFeedbackResponse500) & { headers: Headers; }; export type postWorkflowIdFeedbackResponse = (postWorkflowIdFeedbackResponseSuccess | postWorkflowIdFeedbackResponseError); export declare const getPostWorkflowIdFeedbackUrl: (id: string) => string; /** * Always targets the latest run; `runId` cannot be pinned for Temporal signal operations. * @summary Send feedback to a workflow */ export declare const postWorkflowIdFeedback: (id: string, postWorkflowIdFeedbackBody: PostWorkflowIdFeedbackBody, options?: Parameters[1]) => Promise; export type postWorkflowIdSignalSignalResponse200 = { data: void; status: 200; }; export type postWorkflowIdSignalSignalResponse400 = { data: BadRequestResponse; status: 400; }; export type postWorkflowIdSignalSignalResponse404 = { data: NotFoundResponse; status: 404; }; export type postWorkflowIdSignalSignalResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type postWorkflowIdSignalSignalResponseSuccess = (postWorkflowIdSignalSignalResponse200) & { headers: Headers; }; export type postWorkflowIdSignalSignalResponseError = (postWorkflowIdSignalSignalResponse400 | postWorkflowIdSignalSignalResponse404 | postWorkflowIdSignalSignalResponse500) & { headers: Headers; }; export type postWorkflowIdSignalSignalResponse = (postWorkflowIdSignalSignalResponseSuccess | postWorkflowIdSignalSignalResponseError); export declare const getPostWorkflowIdSignalSignalUrl: (id: string, signal: string) => string; /** * Always targets the latest run; `runId` cannot be pinned for Temporal signal operations. * @summary Send a signal to an workflow */ export declare const postWorkflowIdSignalSignal: (id: string, signal: string, postWorkflowIdSignalSignalBody: PostWorkflowIdSignalSignalBody, options?: Parameters[1]) => Promise; export type postWorkflowIdQueryQueryResponse200 = { data: void; status: 200; }; export type postWorkflowIdQueryQueryResponse400 = { data: BadRequestResponse; status: 400; }; export type postWorkflowIdQueryQueryResponse404 = { data: NotFoundResponse; status: 404; }; export type postWorkflowIdQueryQueryResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type postWorkflowIdQueryQueryResponseSuccess = (postWorkflowIdQueryQueryResponse200) & { headers: Headers; }; export type postWorkflowIdQueryQueryResponseError = (postWorkflowIdQueryQueryResponse400 | postWorkflowIdQueryQueryResponse404 | postWorkflowIdQueryQueryResponse500) & { headers: Headers; }; export type postWorkflowIdQueryQueryResponse = (postWorkflowIdQueryQueryResponseSuccess | postWorkflowIdQueryQueryResponseError); export declare const getPostWorkflowIdQueryQueryUrl: (id: string, query: string) => string; /** * Always targets the latest run; `runId` cannot be pinned for Temporal query operations. * @summary Send a query to an workflow */ export declare const postWorkflowIdQueryQuery: (id: string, query: string, postWorkflowIdQueryQueryBody: PostWorkflowIdQueryQueryBody, options?: Parameters[1]) => Promise; export type postWorkflowIdUpdateUpdateResponse200 = { data: void; status: 200; }; export type postWorkflowIdUpdateUpdateResponse400 = { data: BadRequestResponse; status: 400; }; export type postWorkflowIdUpdateUpdateResponse404 = { data: NotFoundResponse; status: 404; }; export type postWorkflowIdUpdateUpdateResponse500 = { data: InternalServerErrorResponse; status: 500; }; export type postWorkflowIdUpdateUpdateResponseSuccess = (postWorkflowIdUpdateUpdateResponse200) & { headers: Headers; }; export type postWorkflowIdUpdateUpdateResponseError = (postWorkflowIdUpdateUpdateResponse400 | postWorkflowIdUpdateUpdateResponse404 | postWorkflowIdUpdateUpdateResponse500) & { headers: Headers; }; export type postWorkflowIdUpdateUpdateResponse = (postWorkflowIdUpdateUpdateResponseSuccess | postWorkflowIdUpdateUpdateResponseError); export declare const getPostWorkflowIdUpdateUpdateUrl: (id: string, update: string) => string; /** * Always targets the latest run; `runId` cannot be pinned for Temporal update operations. * @summary Execute an update on an workflow */ export declare const postWorkflowIdUpdateUpdate: (id: string, update: string, postWorkflowIdUpdateUpdateBody: PostWorkflowIdUpdateUpdateBody, options?: Parameters[1]) => Promise; export type postHeartbeatResponse204 = { data: void; status: 204; }; export type postHeartbeatResponseSuccess = (postHeartbeatResponse204) & { headers: Headers; }; export type postHeartbeatResponse = (postHeartbeatResponseSuccess); export declare const getPostHeartbeatUrl: () => string; /** * @summary A dummy post endpoint for test only */ export declare const postHeartbeat: (options?: Parameters[1]) => Promise;