Skip to main content
Version: Next

ActionsRegistryActionOptions

Home > @backstage/backend-plugin-api > ActionsRegistryActionOptions

Signature:

export type ActionsRegistryActionOptions<TInputSchema extends ZodType, TOutputSchema extends ZodType> = {
name: string;
title: string;
description: string;
schema: {
input: (zod: typeof z) => TInputSchema;
output: (zod: typeof z) => TOutputSchema;
};
action: (context: ActionsRegistryActionContext<TInputSchema>) => Promise<z.infer<TOutputSchema> extends void ? void : {
output: z.infer<TOutputSchema>;
}>;
};

References: ActionsRegistryActionContext