// OVERRIDES // hard-coded here because build process doesn't pick up overrides from separate files import '@hey-api/codegen-core'; import '@hey-api/shared'; declare module '@hey-api/codegen-core' { interface ProjectRenderMeta { /** * If specified, this will be the file extension used when importing * other modules. By default, we don't add a file extension and let the * runtime resolve it. * * @default null */ importFileExtension?: AnyString | null; } interface SymbolMeta { category?: | 'client' | 'external' | 'hook' | 'schema' | 'sdk' | 'transform' | 'type' | 'utility' | AnyString; /** * Path to the resource this symbol represents. */ path?: ReadonlyArray; /** * Name of the plugin that registered this symbol. */ pluginName?: string; resource?: 'client' | 'definition' | 'operation' | 'webhook' | AnyString; resourceId?: string; role?: 'data' | 'error' | 'errors' | 'options' | 'response' | 'responses' | AnyString; /** * Tags associated with this symbol. */ tags?: ReadonlyArray; tool?: 'pydantic' | 'sdk' | AnyString; variant?: 'container' | AnyString; } } declare module '@hey-api/shared' { interface PluginConfigMap { '@hey-api/client-httpx': HeyApiClientHttpxPlugin['Types']; '@hey-api/python-sdk': HeyApiSdkPlugin['Types']; pydantic: PydanticPlugin['Types']; } } // END OVERRIDES import type { AnyString, LazyOrAsync, MaybeArray } from '@hey-api/types'; import colors from 'ansi-colors'; // @ts-expect-error import colorSupport from 'color-support'; import type { UserConfig } from './config/types'; import type { HeyApiClientHttpxPlugin } from './plugins/@hey-api/client-httpx'; import type { HeyApiSdkPlugin } from './plugins/@hey-api/sdk'; import type { PydanticPlugin } from './plugins/pydantic'; colors.enabled = colorSupport().hasBasic; export { createClient } from './generate'; /** * Type helper for configuration object, returns {@link MaybeArray} object(s) */ export function defineConfig( config: LazyOrAsync>, ): Promise>; export function defineConfig(config: LazyOrAsync): Promise; export async function defineConfig>( config: LazyOrAsync, ): Promise { return typeof config === 'function' ? await config() : config; } export { defaultPlugins } from './config/plugins'; export type { UserConfig } from './config/types'; export { Logger } from '@hey-api/codegen-core'; export type { DefinePlugin, IR, OpenApi, OpenApiMetaObject, OpenApiOperationObject, OpenApiParameterObject, OpenApiRequestBodyObject, OpenApiResponseObject, OpenApiSchemaObject, Plugin, } from '@hey-api/shared'; export { defaultPaginationKeywords, definePluginConfig, OperationPath, OperationStrategy, utils, } from '@hey-api/shared'; // Pydantic plugin export type { PydanticPlugin } from './plugins/pydantic'; export { defaultConfig as defaultPydanticConfig, defineConfig as definePydanticConfig, } from './plugins/pydantic';