// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

export {
    ResolvedSchemaType as ActionResolvedParamType,
    SchemaType as ActionParamType,
    SchemaType,
    SchemaTypeArray as ActionParamArray,
    SchemaTypeObject as ActionParamObject,
    SchemaTypeDefinition,
    SchemaTypeReference,
    ActionSchemaTypeDefinition,
    ActionSchemaEntryTypeDefinition,
    ActionSchemaGroup,
    ParsedActionSchema,
    ActionSchemaObject,
    ActionSchemaUnion,
    SchemaObjectFields,
    SchemaObjectField,
    ActionSchemaEntityTypeDefinition,
} from "./type.js";

export { parseActionSchemaSource, parseSchemaSource } from "./parser.js";
export {
    GenerateSchemaOptions,
    generateActionSchema,
    generateSchemaTypeDefinition,
} from "./generator.js";
export {
    parseToolsJsonSchema,
    toPascalCase,
    ToolsJsonSchemaOptions,
} from "./jsonSchemaParser.js";
export {
    generateActionJsonSchema,
    generateActionActionFunctionJsonSchemas,
    ActionObjectJsonSchema,
    ActionFunctionJsonSchema,
} from "./jsonSchemaGenerator.js";
export { validateAction } from "./validate.js";

// Utils for any schemas
export {
    getPropertyType,
    getParameterNames,
    resolveTypeReference,
    resolveUnionType,
} from "./utils.js";

export * as SchemaCreator from "./creator.js";

export {
    ParsedActionSchemaJSON,
    toJSONParsedActionSchema,
    fromJSONParsedActionSchema,
} from "./serialize.js";

// Generic (non-action) Schema
export { validateType } from "./validate.js";

// Schema Config
export {
    SchemaConfig,
    ParamSpec,
    ActionParamSpecs,
    CompletionEmojis,
} from "./schemaConfig.js";

// Legacy (to be deprecated)
export { NodeType, SchemaParser, ISymbol, SymbolNode } from "./schemaParser.js";
