import { withFormatter } from "../utils/schema-utils";
import { AppItemSchema as AppItemSchemaBase } from "@zapier/zapier-sdk-core/v0/schemas/apps";
import { getAppKeyList } from "../utils/domain-utils";
// ============================================================================
// App Item Schema (wraps core schema with SDK-specific formatting)
// ============================================================================
export const AppItemSchema = withFormatter(AppItemSchemaBase, {
    format: (item) => {
        return {
            title: item.title,
            key: item.key,
            keys: getAppKeyList(item),
            description: item.description,
            details: [],
        };
    },
});
