/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 72bfd98dad7d
 */
import { workflowsExecutionsBatchCancelWorkflowExecutions } from "../funcs/workflowsExecutionsBatchCancelWorkflowExecutions.js";
import { workflowsExecutionsBatchTerminateWorkflowExecutions } from "../funcs/workflowsExecutionsBatchTerminateWorkflowExecutions.js";
import { workflowsExecutionsCancelWorkflowExecution } from "../funcs/workflowsExecutionsCancelWorkflowExecution.js";
import { workflowsExecutionsGetWorkflowExecution } from "../funcs/workflowsExecutionsGetWorkflowExecution.js";
import { workflowsExecutionsGetWorkflowExecutionHistory } from "../funcs/workflowsExecutionsGetWorkflowExecutionHistory.js";
import { workflowsExecutionsGetWorkflowExecutionLogs } from "../funcs/workflowsExecutionsGetWorkflowExecutionLogs.js";
import { workflowsExecutionsGetWorkflowExecutionTraceEvents } from "../funcs/workflowsExecutionsGetWorkflowExecutionTraceEvents.js";
import { workflowsExecutionsGetWorkflowExecutionTraceOtel } from "../funcs/workflowsExecutionsGetWorkflowExecutionTraceOtel.js";
import { workflowsExecutionsGetWorkflowExecutionTraceSummary } from "../funcs/workflowsExecutionsGetWorkflowExecutionTraceSummary.js";
import { workflowsExecutionsQueryWorkflowExecution } from "../funcs/workflowsExecutionsQueryWorkflowExecution.js";
import { workflowsExecutionsResetWorkflow } from "../funcs/workflowsExecutionsResetWorkflow.js";
import { workflowsExecutionsSignalWorkflowExecution } from "../funcs/workflowsExecutionsSignalWorkflowExecution.js";
import { workflowsExecutionsStream } from "../funcs/workflowsExecutionsStream.js";
import { workflowsExecutionsStreamWorkflowExecutionLogs } from "../funcs/workflowsExecutionsStreamWorkflowExecutionLogs.js";
import { workflowsExecutionsTerminateWorkflowExecution } from "../funcs/workflowsExecutionsTerminateWorkflowExecution.js";
import { workflowsExecutionsUpdateWorkflowExecution } from "../funcs/workflowsExecutionsUpdateWorkflowExecution.js";
import { ClientSDK } from "../lib/sdks.js";
import { unwrapAsync } from "../types/fp.js";
export class Executions extends ClientSDK {
    /**
     * Get Workflow Execution
     */
    async getWorkflowExecution(request, options) {
        return unwrapAsync(workflowsExecutionsGetWorkflowExecution(this, request, options));
    }
    /**
     * Get Workflow Execution History
     */
    async getWorkflowExecutionHistory(request, options) {
        return unwrapAsync(workflowsExecutionsGetWorkflowExecutionHistory(this, request, options));
    }
    /**
     * Signal Workflow Execution
     */
    async signalWorkflowExecution(request, options) {
        return unwrapAsync(workflowsExecutionsSignalWorkflowExecution(this, request, options));
    }
    /**
     * Query Workflow Execution
     */
    async queryWorkflowExecution(request, options) {
        return unwrapAsync(workflowsExecutionsQueryWorkflowExecution(this, request, options));
    }
    /**
     * Terminate Workflow Execution
     */
    async terminateWorkflowExecution(request, options) {
        return unwrapAsync(workflowsExecutionsTerminateWorkflowExecution(this, request, options));
    }
    /**
     * Batch Terminate Workflow Executions
     */
    async batchTerminateWorkflowExecutions(request, options) {
        return unwrapAsync(workflowsExecutionsBatchTerminateWorkflowExecutions(this, request, options));
    }
    /**
     * Cancel Workflow Execution
     */
    async cancelWorkflowExecution(request, options) {
        return unwrapAsync(workflowsExecutionsCancelWorkflowExecution(this, request, options));
    }
    /**
     * Batch Cancel Workflow Executions
     */
    async batchCancelWorkflowExecutions(request, options) {
        return unwrapAsync(workflowsExecutionsBatchCancelWorkflowExecutions(this, request, options));
    }
    /**
     * Reset Workflow
     */
    async resetWorkflow(request, options) {
        return unwrapAsync(workflowsExecutionsResetWorkflow(this, request, options));
    }
    /**
     * Update Workflow Execution
     */
    async updateWorkflowExecution(request, options) {
        return unwrapAsync(workflowsExecutionsUpdateWorkflowExecution(this, request, options));
    }
    /**
     * Get Workflow Execution Trace Otel
     */
    async getWorkflowExecutionTraceOtel(request, options) {
        return unwrapAsync(workflowsExecutionsGetWorkflowExecutionTraceOtel(this, request, options));
    }
    /**
     * Get Workflow Execution Trace Summary
     */
    async getWorkflowExecutionTraceSummary(request, options) {
        return unwrapAsync(workflowsExecutionsGetWorkflowExecutionTraceSummary(this, request, options));
    }
    /**
     * Get Workflow Execution Trace Events
     */
    async getWorkflowExecutionTraceEvents(request, options) {
        return unwrapAsync(workflowsExecutionsGetWorkflowExecutionTraceEvents(this, request, options));
    }
    /**
     * Stream
     */
    async stream(request, options) {
        return unwrapAsync(workflowsExecutionsStream(this, request, options));
    }
    /**
     * Get Workflow Execution Logs
     *
     * @remarks
     * Retrieve logs for a workflow execution from Dora.
     *
     * First page sets the window via `after`/`before` (default: execution start through now, both
     * widened by a margin so the bounds still prune partitions); later pages pass `cursor`, which
     * carries both the window and the sort order (so `after`/`before`/`order` are then ignored —
     * the order is fixed at the first page so a client can't flip direction mid-pagination).
     */
    async getWorkflowExecutionLogs(request, options) {
        return unwrapAsync(workflowsExecutionsGetWorkflowExecutionLogs(this, request, options));
    }
    /**
     * Stream Workflow Execution Logs
     *
     * @remarks
     * Stream logs for a workflow execution via SSE.
     *
     * If `last_event_id` is set it resumes from that cursor and takes precedence over `after`;
     * otherwise `after` sets a fresh stream's start point (omit both to tail from the execution start).
     */
    async streamWorkflowExecutionLogs(request, options) {
        return unwrapAsync(workflowsExecutionsStreamWorkflowExecutionLogs(this, request, options));
    }
}
//# sourceMappingURL=executions.js.map