diff --git a/api/src/chat/schemas/types/message.ts b/api/src/chat/schemas/types/message.ts index 71877bc4..bcdbe0eb 100644 --- a/api/src/chat/schemas/types/message.ts +++ b/api/src/chat/schemas/types/message.ts @@ -154,9 +154,9 @@ export type StdOutgoingAttachmentMessage = z.infer< typeof stdOutgoingAttachmentMessageSchema >; -export const pluginNameSchema = z.object({ - name: z.string().regex(/-plugin$/) as z.ZodType, -}); +export const pluginNameSchema = z + .string() + .regex(/-plugin$/) as z.ZodType; export const stdPluginMessageSchema = z.object({ plugin: pluginNameSchema,