/**
 * Deprecated input-field method aliases.
 *
 * The action input-field methods are renamed (`listActionInputFields`,
 * `listActionInputFieldChoices`, `getActionInputFieldsSchema`) to
 * disambiguate from the trigger-side variants. The unprefixed names
 * stay exported here as deprecated aliases that delegate to the
 * renamed implementations, so existing callers keep working. They're
 * marked `categories: ["deprecated"]` so generated docs and CLI help
 * hide them.
 *
 * @deprecated Use the action-prefixed equivalents:
 * - listInputFields -> listActionInputFields
 * - listInputFieldChoices -> listActionInputFieldChoices
 * - getInputFieldsSchema -> getActionInputFieldsSchema
 */
import { definePlugin } from "../../utils/plugin-utils";
import { ListActionInputFieldsInputSchema } from "../listActionInputFields/schemas";
import { ListActionInputFieldChoicesInputSchema, InputFieldChoiceItemSchema, } from "../listActionInputFieldChoices/schemas";
import { GetActionInputFieldsSchemaInputSchema } from "../getActionInputFieldsSchema/schemas";
import { RootFieldItemSchema } from "../../schemas/Field";
import { DEFAULT_PAGE_SIZE } from "../../constants";
/**
 * @deprecated Use listActionInputFields instead.
 */
export const listInputFieldsDeprecatedPlugin = definePlugin((sdk) => ({
    listInputFields: sdk.listActionInputFields,
    context: {
        meta: {
            listInputFields: {
                categories: ["action", "deprecated"],
                type: "list",
                itemType: "RootField",
                inputSchema: ListActionInputFieldsInputSchema,
                outputSchema: RootFieldItemSchema,
                defaultPageSize: DEFAULT_PAGE_SIZE,
            },
        },
    },
}));
/**
 * @deprecated Use listActionInputFieldChoices instead.
 */
export const listInputFieldChoicesDeprecatedPlugin = definePlugin((sdk) => ({
    listInputFieldChoices: sdk.listActionInputFieldChoices,
    context: {
        meta: {
            listInputFieldChoices: {
                categories: ["action", "deprecated"],
                type: "list",
                itemType: "InputFieldChoiceItem",
                inputSchema: ListActionInputFieldChoicesInputSchema,
                outputSchema: InputFieldChoiceItemSchema,
                defaultPageSize: DEFAULT_PAGE_SIZE,
            },
        },
    },
}));
/**
 * @deprecated Use getActionInputFieldsSchema instead.
 */
export const getInputFieldsSchemaDeprecatedPlugin = definePlugin((sdk) => ({
    getInputFieldsSchema: sdk.getActionInputFieldsSchema,
    context: {
        meta: {
            getInputFieldsSchema: {
                categories: ["action", "deprecated"],
                type: "function",
                inputSchema: GetActionInputFieldsSchemaInputSchema,
            },
        },
    },
}));
