import { z } from "zod";
import { AppPropertySchema, ActionPropertySchema, ConnectionPropertySchema, InputsPropertySchema, InputFieldPropertySchema, } from "../../../types/properties";
export const ListTriggerInputFieldChoicesSchema = z
    .object({
    app: AppPropertySchema,
    action: ActionPropertySchema,
    inputField: InputFieldPropertySchema,
    connection: ConnectionPropertySchema.optional().describe("Connection alias or connection ID. Required if the trigger needs a connection to populate dynamic dropdown options."),
    inputs: InputsPropertySchema.optional().describe("Current input values that may affect available choices"),
    page: z
        .number()
        .int()
        .min(0)
        .optional()
        .describe("Page number for paginated results"),
    pageSize: z
        .number()
        .min(1)
        .optional()
        .describe("Number of choices per page"),
    maxItems: z
        .number()
        .min(1)
        .optional()
        .describe("Maximum total items to return across all pages"),
    cursor: z.string().optional().describe("Cursor to start from"),
})
    .describe("Get the available choices for a dynamic dropdown input field on a trigger");
