import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdk-validation-error.js"; /** * Input parameters */ export type ExecuteActionRequestBody = { /** * ID or key of the action to execute */ actionKey: string; /** * IDs of the content items to apply the action to. Provide this or authorIds. */ contentIds?: Array | undefined; /** * IDs of the authors to apply the action to. Provide this or contentIds. */ authorIds?: Array | undefined; /** * Optional value to provide with the action */ value?: string | undefined; /** * Optional queue ID if the action is queue-specific */ queueId?: string | undefined; /** * Optional duration in milliseconds for actions with timeouts */ duration?: number | undefined; }; export type ExecuteActionRequest = { /** * The project to act on, when you call with an organization key. Optional when the organization has one project. A project key acts on its own project: naming another one is an error. */ projectId?: string | undefined; body: ExecuteActionRequestBody; }; /** * Execution result */ export type ExecuteActionResponse = { /** * Whether the action was executed successfully */ success: boolean; }; /** @internal */ export type ExecuteActionRequestBody$Outbound = { actionKey: string; contentIds?: Array | undefined; authorIds?: Array | undefined; value?: string | undefined; queueId?: string | undefined; duration?: number | undefined; }; /** @internal */ export declare const ExecuteActionRequestBody$outboundSchema: z.ZodMiniType; export declare function executeActionRequestBodyToJSON(executeActionRequestBody: ExecuteActionRequestBody): string; /** @internal */ export type ExecuteActionRequest$Outbound = { projectId?: string | undefined; body: ExecuteActionRequestBody$Outbound; }; /** @internal */ export declare const ExecuteActionRequest$outboundSchema: z.ZodMiniType; export declare function executeActionRequestToJSON(executeActionRequest: ExecuteActionRequest): string; /** @internal */ export declare const ExecuteActionResponse$inboundSchema: z.ZodMiniType; export declare function executeActionResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=execute-action.d.ts.map