import * as z from "zod/v4-mini"; import { OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdk-validation-error.js"; export type GetActionRequest = { /** * The ID of the action to get. */ id: string; /** * 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; }; export declare const GetActionType: { readonly AuthorBlock: "AUTHOR_BLOCK"; readonly AuthorBlockTemp: "AUTHOR_BLOCK_TEMP"; readonly AuthorUnblock: "AUTHOR_UNBLOCK"; readonly AuthorDelete: "AUTHOR_DELETE"; readonly AuthorReport: "AUTHOR_REPORT"; readonly AuthorWarn: "AUTHOR_WARN"; readonly AuthorCustom: "AUTHOR_CUSTOM"; readonly ItemReject: "ITEM_REJECT"; readonly ItemAllow: "ITEM_ALLOW"; readonly ItemCustom: "ITEM_CUSTOM"; }; export type GetActionType = OpenEnum; /** * Whether the action resolves and removes the item, unresolves and re-add it to the queue, or does not change the resolve status. */ export declare const GetActionQueueBehaviour: { readonly Remove: "REMOVE"; readonly Add: "ADD"; readonly NoChange: "NO_CHANGE"; }; /** * Whether the action resolves and removes the item, unresolves and re-add it to the queue, or does not change the resolve status. */ export type GetActionQueueBehaviour = OpenEnum; /** * Show the action in all queues, selected queues or no queues (to use via API only). */ export declare const GetActionPosition: { readonly AllQueues: "ALL_QUEUES"; readonly SomeQueues: "SOME_QUEUES"; readonly Hidden: "HIDDEN"; }; /** * Show the action in all queues, selected queues or no queues (to use via API only). */ export type GetActionPosition = OpenEnum; export type GetActionPossibleValue = { /** * The value of the action. */ value: string; }; /** * Action retrieved successfully */ export type GetActionResponse = { /** * The ID of the action. */ id: string; /** * User defined key of the action. */ key?: string | null | undefined; /** * The date the action was created. */ createdAt: string; /** * The name of the action. */ name: string; /** * The description of the action. */ description?: string | null | undefined; /** * The type of the action. */ type?: GetActionType | null | undefined; /** * Whether the action is a built-in action or a custom one. */ builtIn: boolean | null; /** * Whether the action resolves and removes the item, unresolves and re-add it to the queue, or does not change the resolve status. */ queueBehaviour: GetActionQueueBehaviour; /** * The IDs of the queues the action is available in. */ filterInQueueIds: Array; /** * Show the action in all queues, selected queues or no queues (to use via API only). */ position: GetActionPosition; /** * The possible values of the action. The user will be prompted to select one of these values when executing the action. */ possibleValues: Array; /** * Whether the action requires a value to be executed. */ valueRequired: boolean; /** * Whether the action allows any text to be entered as a value or if it must be one of the possible values. */ freeText: boolean; }; /** @internal */ export type GetActionRequest$Outbound = { id: string; projectId?: string | undefined; }; /** @internal */ export declare const GetActionRequest$outboundSchema: z.ZodMiniType; export declare function getActionRequestToJSON(getActionRequest: GetActionRequest): string; /** @internal */ export declare const GetActionType$inboundSchema: z.ZodMiniType; /** @internal */ export declare const GetActionQueueBehaviour$inboundSchema: z.ZodMiniType; /** @internal */ export declare const GetActionPosition$inboundSchema: z.ZodMiniType; /** @internal */ export declare const GetActionPossibleValue$inboundSchema: z.ZodMiniType; export declare function getActionPossibleValueFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GetActionResponse$inboundSchema: z.ZodMiniType; export declare function getActionResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=get-action.d.ts.map