import * as z from "zod/v3";
import { ClosedEnum } from "../../types/enums.js";
import { Result as SafeParseResult } from "../../types/fp.js";
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
export type RetrieveActionRequest = {
    /**
     * The unique key of the agent
     */
    agentKey: string;
    /**
     * The unique id of the task
     */
    taskId: string;
    /**
     * The unique id of the action
     */
    actionId: string;
};
export type Tool = {
    /**
     * The tool' id in orq
     */
    id: string;
    displayName: string;
    requiresApproval?: boolean | undefined;
};
/**
 * Review status of the tool call
 */
export declare const Review: {
    readonly Approved: "approved";
    readonly Rejected: "rejected";
};
/**
 * Review status of the tool call
 */
export type Review = ClosedEnum<typeof Review>;
/**
 * An action is a tool that an agent chooses to use. If executed is false, together with the output being there, it can indicate that a tool was mocked
 */
export type State = {
    /**
     * Review status of the tool call
     */
    review?: Review | null | undefined;
    /**
     * The source of the review, where it was approved or rejected
     */
    reviewSource?: string | undefined;
    /**
     * Only refers to an internal user of the platform, who approved or rejected the tool execution
     */
    reviewedById?: string | undefined;
    executed?: boolean | undefined;
    error?: string | undefined;
    input: {
        [k: string]: any;
    };
    output: {
        [k: string]: any;
    };
};
/**
 * The action object
 */
export type RetrieveActionResponseBody = {
    /**
     * Internal id for the action
     */
    id: string;
    /**
     * The tool call id what the agent chooses to use and generates
     */
    agentToolCallId: string;
    tool: Tool;
    created: string;
    updated: string;
    started?: string | undefined;
    finished?: string | undefined;
    agentId: string;
    actionType: string;
    agentExecutionId: string;
    workspaceId: string;
    /**
     * An action is a tool that an agent chooses to use. If executed is false, together with the output being there, it can indicate that a tool was mocked
     */
    state: State;
};
/** @internal */
export declare const RetrieveActionRequest$inboundSchema: z.ZodType<RetrieveActionRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type RetrieveActionRequest$Outbound = {
    agent_key: string;
    task_id: string;
    action_id: string;
};
/** @internal */
export declare const RetrieveActionRequest$outboundSchema: z.ZodType<RetrieveActionRequest$Outbound, z.ZodTypeDef, RetrieveActionRequest>;
export declare function retrieveActionRequestToJSON(retrieveActionRequest: RetrieveActionRequest): string;
export declare function retrieveActionRequestFromJSON(jsonString: string): SafeParseResult<RetrieveActionRequest, SDKValidationError>;
/** @internal */
export declare const Tool$inboundSchema: z.ZodType<Tool, z.ZodTypeDef, unknown>;
/** @internal */
export type Tool$Outbound = {
    id: string;
    display_name: string;
    requires_approval: boolean;
};
/** @internal */
export declare const Tool$outboundSchema: z.ZodType<Tool$Outbound, z.ZodTypeDef, Tool>;
export declare function toolToJSON(tool: Tool): string;
export declare function toolFromJSON(jsonString: string): SafeParseResult<Tool, SDKValidationError>;
/** @internal */
export declare const Review$inboundSchema: z.ZodNativeEnum<typeof Review>;
/** @internal */
export declare const Review$outboundSchema: z.ZodNativeEnum<typeof Review>;
/** @internal */
export declare const State$inboundSchema: z.ZodType<State, z.ZodTypeDef, unknown>;
/** @internal */
export type State$Outbound = {
    review: string | null;
    review_source?: string | undefined;
    reviewed_by_id?: string | undefined;
    executed: boolean;
    error?: string | undefined;
    input: {
        [k: string]: any;
    };
    output: {
        [k: string]: any;
    };
};
/** @internal */
export declare const State$outboundSchema: z.ZodType<State$Outbound, z.ZodTypeDef, State>;
export declare function stateToJSON(state: State): string;
export declare function stateFromJSON(jsonString: string): SafeParseResult<State, SDKValidationError>;
/** @internal */
export declare const RetrieveActionResponseBody$inboundSchema: z.ZodType<RetrieveActionResponseBody, z.ZodTypeDef, unknown>;
/** @internal */
export type RetrieveActionResponseBody$Outbound = {
    _id: string;
    agent_tool_call_id: string;
    tool: Tool$Outbound;
    created: string;
    updated: string;
    started?: string | undefined;
    finished?: string | undefined;
    agent_id: string;
    action_type: string;
    agent_execution_id: string;
    workspace_id: string;
    state: State$Outbound;
};
/** @internal */
export declare const RetrieveActionResponseBody$outboundSchema: z.ZodType<RetrieveActionResponseBody$Outbound, z.ZodTypeDef, RetrieveActionResponseBody>;
export declare function retrieveActionResponseBodyToJSON(retrieveActionResponseBody: RetrieveActionResponseBody): string;
export declare function retrieveActionResponseBodyFromJSON(jsonString: string): SafeParseResult<RetrieveActionResponseBody, SDKValidationError>;
//# sourceMappingURL=retrieveaction.d.ts.map