import * as z from "zod/v4-mini"; import { ClosedEnum, OpenEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdk-validation-error.js"; export declare const CreateActionTypeRequest: { 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 CreateActionTypeRequest = ClosedEnum; /** * 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 CreateActionQueueBehaviourRequest: { 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 CreateActionQueueBehaviourRequest = ClosedEnum; /** * Show the action in all queues, selected queues or no queues (to use via API only). */ export declare const CreateActionPositionRequest: { 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 CreateActionPositionRequest = ClosedEnum; export type CreateActionPossibleValueRequest = { /** * The value of the action. */ value: string; }; export type CreateActionRequestBody = { /** * User defined key of the action. */ key?: string | null | undefined; /** * The name of the action. */ name: string; /** * The description of the action. */ description?: string | null | undefined; /** * The type of the action. */ type?: CreateActionTypeRequest | null | undefined; /** * Whether the action is a built-in action or a custom one. */ builtIn?: boolean | null | undefined; /** * Whether the action resolves and removes the item, unresolves and re-add it to the queue, or does not change the resolve status. */ queueBehaviour?: CreateActionQueueBehaviourRequest | undefined; /** * The IDs of the queues the action is available in. */ filterInQueueIds?: Array | undefined; /** * Show the action in all queues, selected queues or no queues (to use via API only). */ position?: CreateActionPositionRequest | undefined; /** * The possible values of the action. The user will be prompted to select one of these values when executing the action. */ possibleValues?: Array | undefined; /** * Whether the action requires a value to be executed. */ valueRequired?: boolean | undefined; /** * Whether the action allows any text to be entered as a value or if it must be one of the possible values. */ freeText?: boolean | undefined; }; export type CreateActionRequest = { /** * 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: CreateActionRequestBody; }; export declare const CreateActionTypeResponse: { 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 CreateActionTypeResponse = 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 CreateActionQueueBehaviourResponse: { 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 CreateActionQueueBehaviourResponse = OpenEnum; /** * Show the action in all queues, selected queues or no queues (to use via API only). */ export declare const CreateActionPositionResponse: { 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 CreateActionPositionResponse = OpenEnum; export type CreateActionPossibleValueResponse = { /** * The value of the action. */ value: string; }; /** * Action created successfully */ export type CreateActionResponse = { /** * 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?: CreateActionTypeResponse | 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: CreateActionQueueBehaviourResponse; /** * 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: CreateActionPositionResponse; /** * 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 declare const CreateActionTypeRequest$outboundSchema: z.ZodMiniEnum; /** @internal */ export declare const CreateActionQueueBehaviourRequest$outboundSchema: z.ZodMiniEnum; /** @internal */ export declare const CreateActionPositionRequest$outboundSchema: z.ZodMiniEnum; /** @internal */ export type CreateActionPossibleValueRequest$Outbound = { value: string; }; /** @internal */ export declare const CreateActionPossibleValueRequest$outboundSchema: z.ZodMiniType; export declare function createActionPossibleValueRequestToJSON(createActionPossibleValueRequest: CreateActionPossibleValueRequest): string; /** @internal */ export type CreateActionRequestBody$Outbound = { key?: string | null | undefined; name: string; description?: string | null | undefined; type?: string | null | undefined; builtIn: boolean | null; queueBehaviour: string; filterInQueueIds?: Array | undefined; position: string; possibleValues?: Array | undefined; valueRequired: boolean; freeText: boolean; }; /** @internal */ export declare const CreateActionRequestBody$outboundSchema: z.ZodMiniType; export declare function createActionRequestBodyToJSON(createActionRequestBody: CreateActionRequestBody): string; /** @internal */ export type CreateActionRequest$Outbound = { projectId?: string | undefined; body: CreateActionRequestBody$Outbound; }; /** @internal */ export declare const CreateActionRequest$outboundSchema: z.ZodMiniType; export declare function createActionRequestToJSON(createActionRequest: CreateActionRequest): string; /** @internal */ export declare const CreateActionTypeResponse$inboundSchema: z.ZodMiniType; /** @internal */ export declare const CreateActionQueueBehaviourResponse$inboundSchema: z.ZodMiniType; /** @internal */ export declare const CreateActionPositionResponse$inboundSchema: z.ZodMiniType; /** @internal */ export declare const CreateActionPossibleValueResponse$inboundSchema: z.ZodMiniType; export declare function createActionPossibleValueResponseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateActionResponse$inboundSchema: z.ZodMiniType; export declare function createActionResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=create-action.d.ts.map