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 ListActionsRequest = {
    agentKey: string;
    taskId: string;
};
export declare const ListActionsObject: {
    readonly List: "list";
};
export type ListActionsObject = ClosedEnum<typeof ListActionsObject>;
export type ListActionsTool = {
    /**
     * The tool' id in orq
     */
    id: string;
    displayName: string;
    requiresApproval?: boolean | undefined;
};
/**
 * Review status of the tool call
 */
export declare const ListActionsReview: {
    readonly Approved: "approved";
    readonly Rejected: "rejected";
};
/**
 * Review status of the tool call
 */
export type ListActionsReview = ClosedEnum<typeof ListActionsReview>;
/**
 * 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 ListActionsState = {
    /**
     * Review status of the tool call
     */
    review?: ListActionsReview | 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;
    };
};
export type ListActionsData = {
    /**
     * Internal id for the action
     */
    id: string;
    /**
     * The tool call id what the agent chooses to use and generates
     */
    agentToolCallId: string;
    tool: ListActionsTool;
    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: ListActionsState;
};
/**
 * List of actions
 */
export type ListActionsResponseBody = {
    object: ListActionsObject;
    data: Array<ListActionsData>;
    hasMore: boolean;
};
/** @internal */
export declare const ListActionsRequest$inboundSchema: z.ZodType<ListActionsRequest, z.ZodTypeDef, unknown>;
/** @internal */
export type ListActionsRequest$Outbound = {
    agent_key: string;
    task_id: string;
};
/** @internal */
export declare const ListActionsRequest$outboundSchema: z.ZodType<ListActionsRequest$Outbound, z.ZodTypeDef, ListActionsRequest>;
export declare function listActionsRequestToJSON(listActionsRequest: ListActionsRequest): string;
export declare function listActionsRequestFromJSON(jsonString: string): SafeParseResult<ListActionsRequest, SDKValidationError>;
/** @internal */
export declare const ListActionsObject$inboundSchema: z.ZodNativeEnum<typeof ListActionsObject>;
/** @internal */
export declare const ListActionsObject$outboundSchema: z.ZodNativeEnum<typeof ListActionsObject>;
/** @internal */
export declare const ListActionsTool$inboundSchema: z.ZodType<ListActionsTool, z.ZodTypeDef, unknown>;
/** @internal */
export type ListActionsTool$Outbound = {
    id: string;
    display_name: string;
    requires_approval: boolean;
};
/** @internal */
export declare const ListActionsTool$outboundSchema: z.ZodType<ListActionsTool$Outbound, z.ZodTypeDef, ListActionsTool>;
export declare function listActionsToolToJSON(listActionsTool: ListActionsTool): string;
export declare function listActionsToolFromJSON(jsonString: string): SafeParseResult<ListActionsTool, SDKValidationError>;
/** @internal */
export declare const ListActionsReview$inboundSchema: z.ZodNativeEnum<typeof ListActionsReview>;
/** @internal */
export declare const ListActionsReview$outboundSchema: z.ZodNativeEnum<typeof ListActionsReview>;
/** @internal */
export declare const ListActionsState$inboundSchema: z.ZodType<ListActionsState, z.ZodTypeDef, unknown>;
/** @internal */
export type ListActionsState$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 ListActionsState$outboundSchema: z.ZodType<ListActionsState$Outbound, z.ZodTypeDef, ListActionsState>;
export declare function listActionsStateToJSON(listActionsState: ListActionsState): string;
export declare function listActionsStateFromJSON(jsonString: string): SafeParseResult<ListActionsState, SDKValidationError>;
/** @internal */
export declare const ListActionsData$inboundSchema: z.ZodType<ListActionsData, z.ZodTypeDef, unknown>;
/** @internal */
export type ListActionsData$Outbound = {
    _id: string;
    agent_tool_call_id: string;
    tool: ListActionsTool$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: ListActionsState$Outbound;
};
/** @internal */
export declare const ListActionsData$outboundSchema: z.ZodType<ListActionsData$Outbound, z.ZodTypeDef, ListActionsData>;
export declare function listActionsDataToJSON(listActionsData: ListActionsData): string;
export declare function listActionsDataFromJSON(jsonString: string): SafeParseResult<ListActionsData, SDKValidationError>;
/** @internal */
export declare const ListActionsResponseBody$inboundSchema: z.ZodType<ListActionsResponseBody, z.ZodTypeDef, unknown>;
/** @internal */
export type ListActionsResponseBody$Outbound = {
    object: string;
    data: Array<ListActionsData$Outbound>;
    has_more: boolean;
};
/** @internal */
export declare const ListActionsResponseBody$outboundSchema: z.ZodType<ListActionsResponseBody$Outbound, z.ZodTypeDef, ListActionsResponseBody>;
export declare function listActionsResponseBodyToJSON(listActionsResponseBody: ListActionsResponseBody): string;
export declare function listActionsResponseBodyFromJSON(jsonString: string): SafeParseResult<ListActionsResponseBody, SDKValidationError>;
//# sourceMappingURL=listactions.d.ts.map