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 UpdateActionTypeRequest: { 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 UpdateActionTypeRequest = 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 UpdateActionQueueBehaviourRequest: { 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 UpdateActionQueueBehaviourRequest = ClosedEnum; /** * Show the action in all queues, selected queues or no queues (to use via API only). */ export declare const UpdateActionPositionRequest: { 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 UpdateActionPositionRequest = ClosedEnum; export type UpdateActionPossibleValueRequest = { /** * The value of the action. */ value: string; }; export type UpdateActionRequestBody = { /** * User defined key of the action. */ key?: string | null | undefined; /** * The name of the action. */ name?: string | undefined; /** * The description of the action. */ description?: string | null | undefined; /** * The type of the action. */ type?: UpdateActionTypeRequest | 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?: UpdateActionQueueBehaviourRequest | 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?: UpdateActionPositionRequest | 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 UpdateActionRequest = { /** * The ID of the action to update. */ 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; body: UpdateActionRequestBody; }; export declare const UpdateActionTypeResponse: { 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 UpdateActionTypeResponse = 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 UpdateActionQueueBehaviourResponse: { 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 UpdateActionQueueBehaviourResponse = OpenEnum; /** * Show the action in all queues, selected queues or no queues (to use via API only). */ export declare const UpdateActionPositionResponse: { 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 UpdateActionPositionResponse = OpenEnum; export type UpdateActionPossibleValueResponse = { /** * The value of the action. */ value: string; }; /** * Action updated successfully */ export type UpdateActionResponse = { /** * 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?: UpdateActionTypeResponse | 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: UpdateActionQueueBehaviourResponse; /** * 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: UpdateActionPositionResponse; /** * 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 UpdateActionTypeRequest$outboundSchema: z.ZodMiniEnum; /** @internal */ export declare const UpdateActionQueueBehaviourRequest$outboundSchema: z.ZodMiniEnum; /** @internal */ export declare const UpdateActionPositionRequest$outboundSchema: z.ZodMiniEnum; /** @internal */ export type UpdateActionPossibleValueRequest$Outbound = { value: string; }; /** @internal */ export declare const UpdateActionPossibleValueRequest$outboundSchema: z.ZodMiniType; export declare function updateActionPossibleValueRequestToJSON(updateActionPossibleValueRequest: UpdateActionPossibleValueRequest): string; /** @internal */ export type UpdateActionRequestBody$Outbound = { key?: string | null | undefined; name?: string | undefined; 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 UpdateActionRequestBody$outboundSchema: z.ZodMiniType; export declare function updateActionRequestBodyToJSON(updateActionRequestBody: UpdateActionRequestBody): string; /** @internal */ export type UpdateActionRequest$Outbound = { id: string; projectId?: string | undefined; body: UpdateActionRequestBody$Outbound; }; /** @internal */ export declare const UpdateActionRequest$outboundSchema: z.ZodMiniType; export declare function updateActionRequestToJSON(updateActionRequest: UpdateActionRequest): string; /** @internal */ export declare const UpdateActionTypeResponse$inboundSchema: z.ZodMiniType; /** @internal */ export declare const UpdateActionQueueBehaviourResponse$inboundSchema: z.ZodMiniType; /** @internal */ export declare const UpdateActionPositionResponse$inboundSchema: z.ZodMiniType; /** @internal */ export declare const UpdateActionPossibleValueResponse$inboundSchema: z.ZodMiniType; export declare function updateActionPossibleValueResponseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UpdateActionResponse$inboundSchema: z.ZodMiniType; export declare function updateActionResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=update-action.d.ts.map