import { z } from "zod";
import { AppPropertySchema, ActionPropertySchema, ConnectionPropertySchema, InputsPropertySchema, } from "../../../types/properties";
import { TriggerInboxItemSchema, } from "../../../schemas/TriggerInbox";
const CreateTriggerInboxDescription = "Create a new trigger inbox subscription with an auto-generated name. Always creates; use ensureTriggerInbox for get-or-create on a stable name.";
export const CreateTriggerInboxSchema = z
    .object({
    app: AppPropertySchema,
    action: ActionPropertySchema,
    connection: ConnectionPropertySchema.nullable()
        .optional()
        .describe("Connection alias or connection ID. Optional for triggers that don't require auth."),
    inputs: InputsPropertySchema.optional().describe("Input parameters for the trigger subscription"),
    notificationUrl: z
        .string()
        .url()
        .optional()
        .describe("Webhook URL to POST to when new messages arrive"),
})
    .describe(CreateTriggerInboxDescription);
export { TriggerInboxItemSchema };
