import { ListrTaskWrapper } from "listr2"; import { AsyncParallelHook, AsyncSeriesBailHook, AsyncSeriesHook, AsyncSeriesWaterfallHook, SyncHook } from "tapable"; import * as _$_sinclair_typebox0 from "@sinclair/typebox"; import { Static, StaticDecode, StaticEncode } from "@sinclair/typebox"; import { OpenAPIV3_1 } from "@scalar/openapi-types"; import { Promisable } from "type-fest"; import { KeqQueryOptions } from "keq"; //#region src/constants/file-naming-style.d.ts /** * File naming style options */ declare enum FileNamingStyle { /** Raw style - keeps the original name without any transformation */ raw = "raw", /** Camel case style (e.g., myFileName) */ camelCase = "camelCase", /** Capital case style (e.g., My File Name) */ capitalCase = "capitalCase", /** Constant case style (e.g., MY_FILE_NAME) */ constantCase = "constantCase", /** Dot case style (e.g., my.file.name) */ dotCase = "dotCase", /** Header case style (e.g., My-File-Name) */ headerCase = "headerCase", /** No case style (e.g., my file name) */ noCase = "noCase", /** Param case style (e.g., my-file-name) */ paramCase = "paramCase", /** Pascal case style (e.g., MyFileName) */ pascalCase = "pascalCase", /** Path case style (e.g., my/file/name) */ pathCase = "pathCase", /** Sentence case style (e.g., My file name) */ sentenceCase = "sentenceCase", /** Snake case style (e.g., my_file_name) */ snakeCase = "snakeCase", /** Kebab case style (e.g., my-file-name) */ kebabCase = "kebabCase" } //#endregion //#region src/models/anchor.d.ts declare class AnchorBlock { private artifact; constructor(artifact: Artifact); /** * Append content to the end of the anchor block. */ append(anchorName: string, content: string): void; prepend(anchorName: string, content: string): void; replace(anchorName: string, content: string): void; } declare class Anchor { private artifact; block: AnchorBlock; constructor(artifact: Artifact); append(anchorName: string, content: string): void; prepend(anchorName: string, content: string): void; } //#endregion //#region src/models/artifact.d.ts declare class Artifact { id: string; filepath: string; content: string; extensionName: any; anchor: Anchor; constructor(options: { id: string; filepath: string; content: string; extensionName?: string; }); get dirname(): string; renderer(): string; } //#endregion //#region src/types/address.d.ts declare const Address: _$_sinclair_typebox0.TObject<{ url: _$_sinclair_typebox0.TString; headers: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TString>>; encoding: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"utf8">, _$_sinclair_typebox0.TLiteral<"ascii">]>>; }>; type Address = Static; //#endregion //#region src/models/module-definition.d.ts declare class ModuleDefinition { name: string; address: Address; constructor(name: string, address: string | Address); static unknown(): ModuleDefinition; } //#endregion //#region src/models/schema-definition.d.ts declare class SchemaDefinition { readonly name: string; readonly schema: OpenAPIV3_1.SchemaObject | OpenAPIV3_1.ReferenceObject; readonly module: ModuleDefinition; readonly document: ApiDocumentV3_1; get id(): string; constructor(args: { name: string; schema: OpenAPIV3_1.SchemaObject | OpenAPIV3_1.ReferenceObject; module: ModuleDefinition; document: ApiDocumentV3_1; }); getDependencies(): SchemaDefinition[]; static unknown(): SchemaDefinition; static isUnknown(definition: SchemaDefinition): boolean; } //#endregion //#region src/models/response-definition.d.ts declare class ResponseDefinition { readonly name: string; readonly response: OpenAPIV3_1.ResponseObject; readonly module: ModuleDefinition; readonly document: ApiDocumentV3_1; get id(): string; constructor(args: { name: string; response: OpenAPIV3_1.ResponseObject; module: ModuleDefinition; document: ApiDocumentV3_1; }); getDependencies(): SchemaDefinition[]; static unknown(): ResponseDefinition; static isUnknown(definition: ResponseDefinition): boolean; } //#endregion //#region src/models/operation-definition.d.ts declare class OperationDefinition { readonly module: ModuleDefinition; readonly operationId: string; readonly method: string; readonly pathname: string; readonly operation: OpenAPIV3_1.OperationObject; readonly document: ApiDocumentV3_1; get id(): string; constructor(args: { method: string; pathname: string; operation: OpenAPIV3_1.OperationObject; module: ModuleDefinition; document: ApiDocumentV3_1; }); private formatOperationId; getDependencies(): SchemaDefinition[]; getResponseDependencies(): ResponseDefinition[]; } //#endregion //#region src/models/api-document_v3_1.d.ts declare class ApiDocumentV3_1 { readonly module: ModuleDefinition; readonly specification: OpenAPIV3_1.Document; readonly fingerprint: string; constructor(specification: OpenAPIV3_1.Document, module: ModuleDefinition, fingerprint?: string); get schemas(): SchemaDefinition[]; get responses(): ResponseDefinition[]; get operations(): OperationDefinition[]; isEmpty(): boolean; dereference($ref: string): SchemaDefinition | ResponseDefinition | undefined; isRefDefined($ref: string): boolean; static unknown(): ApiDocumentV3_1; } //#endregion //#region src/models/asset.d.ts declare class Asset { path: string; constructor(path: string); } //#endregion //#region src/utils/matcher.d.ts interface FilterRule { persist: boolean; deny: boolean; moduleName: string; operationMethod: string; operationPathname: string; /** Lines (comment or blank) that appear before this rule in the file */ leadingComments?: string[]; /** Inline comment at end of the rule line, e.g. `# some note` */ inlineComment?: string; } interface FilterMeta { preambleComments?: string[]; trailingComments?: string[]; } /** * Matches API operations and modules against `.keqfilter` rules to determine * which should be denied (excluded) or allowed during code generation. * Supports glob patterns (via picomatch) for module names, HTTP methods, and pathnames. */ declare class Matcher { private compiled; private preambleComments; private trailingComments; constructor(rules: FilterRule[], meta?: FilterMeta); private get rules(); /** * Parse `.keqfilter` file content into a Matcher instance. * * File format: * ``` * [deny] * GET petStore:/pets * * userService:/** * * [allow] * GET petStore:/pets/details * ``` * * Line format: `METHOD module:/pathname` * - method: HTTP method or `*`, case-insensitive * - module:/pathname: module name + `:` + path pattern (glob supported) */ static parse(content: string): Matcher; static read(filepath: string): Promise; write(filepath: string): Promise; append(rule: FilterRule): void; isOperationDenied(operationDefinition: OperationDefinition): boolean; isModuleDenied(moduleDefinition: ModuleDefinition): boolean; } //#endregion //#region src/compiler/tasks/setup/index.d.ts interface SetupTaskOptions { config?: string; debug?: boolean; tolerant?: boolean; filter?: false | { rules: FilterRule[]; }; } //#endregion //#region src/compiler/tasks/types/task-wrapper.d.ts type TaskWrapper = ListrTaskWrapper; //#endregion //#region src/types/generator.d.ts interface Generator { compile(compiler: Compiler, task: TaskWrapper): Promisable; } //#endregion //#region src/types/download-result.d.ts interface DownloadResult { content: string; fingerprint?: string; } //#endregion //#region src/types/translator.d.ts interface Translator { apply(): Plugin[]; } //#endregion //#region src/compiler/types/compiler-hooks.d.ts interface CompilerHooks { setup: AsyncParallelHook<[TaskWrapper]>; afterSetup: AsyncSeriesHook<[TaskWrapper]>; beforeDownload: AsyncSeriesHook<[TaskWrapper]>; download: AsyncSeriesBailHook<[Address, ModuleDefinition, TaskWrapper], DownloadResult | undefined>; beforeValidate: AsyncSeriesHook<[object, ModuleDefinition]>; afterDownload: AsyncSeriesHook<[TaskWrapper]>; beforeCompile: AsyncSeriesHook<[TaskWrapper]>; compile: AsyncParallelHook<[TaskWrapper]>; afterCompile: AsyncSeriesHook<[TaskWrapper]>; beforePersist: AsyncSeriesHook<[TaskWrapper]>; persist: AsyncParallelHook<[TaskWrapper]>; afterPersist: AsyncSeriesHook<[TaskWrapper]>; done: SyncHook<[]>; } //#endregion //#region src/compiler/types/compiler-context.d.ts interface CompilerContext { workdir?: string; rc?: RuntimeConfig; matcher?: Matcher; documents?: ApiDocumentV3_1[]; artifacts?: Artifact[]; assets?: Asset[]; } //#endregion //#region src/plugins/eslint/constants/metadata-storage.d.ts interface EslintPluginMetadata { applied: boolean; hooks: object; } //#endregion //#region src/plugins/eslint/eslint.plugin.d.ts interface EslintPluginOptions { /** * List of ESLint rules to disable */ disable?: string[]; } declare class EslintPlugin implements Plugin { private options; constructor(options?: EslintPluginOptions); apply(compiler: Compiler): void; static register(compiler: Compiler): EslintPluginMetadata; static of(compiler: Compiler): EslintPluginMetadata | undefined; } //#endregion //#region src/plugins/prettier/constants/metadata-storage.d.ts interface PrettierPluginMetadata { applied: boolean; hooks: object; } //#endregion //#region src/plugins/prettier/prettier.plugin.d.ts declare class PrettierPlugin implements Plugin { apply(compiler: Compiler): void; static register(compiler: Compiler): PrettierPluginMetadata; static of(compiler: Compiler): PrettierPluginMetadata | undefined; } //#endregion //#region src/plugins/body-fallback/constants/metadata-storage.d.ts interface BodyFallbackPluginMetadata { applied: boolean; hooks: object; } //#endregion //#region src/plugins/body-fallback/index.d.ts declare class BodyFallbackPlugin implements Plugin { apply(compiler: Compiler): void; private applyBodyFallback; static register(compiler: Compiler): BodyFallbackPluginMetadata; static of(compiler: Compiler): BodyFallbackPluginMetadata | undefined; } //#endregion //#region src/plugins/generate-declaration/generators/operation-declaration/operation.generator.d.ts declare const OPERATION_GENERATOR = "operationDeclarationGenerator"; declare class OperationDeclarationGenerator implements Generator { compile(compiler: Compiler, task: TaskWrapper): Promise; private generateOperationDefinitionArtifact; private generateEntrypointArtifact; static getOperationDefinitionArtifactFilepath(operationDefinition: OperationDefinition, fileNamingStyle: FileNamingStyle): string; static getOperationDefinitionArtifactId(operationDefinition: OperationDefinition): string; static getEntrypointArtifactFilepath(moduleDefinition: ModuleDefinition, fileNamingStyle: FileNamingStyle): string; static getEntrypointArtifactId(moduleDefinition: ModuleDefinition): string; } //#endregion //#region src/plugins/generate-declaration/generators/schema-declaration/schema.generator.d.ts declare const SCHEMA_GENERATOR = "schemaGenerator"; declare class SchemaDeclarationGenerator implements Generator { compile(compiler: Compiler, task: TaskWrapper): Promise; private generateSchemaDefinitionsArtifact; private generateEntrypointArtifact; static getEntrypointArtifactFilepath(moduleDefinition: ModuleDefinition, fileNamingStyle: FileNamingStyle): string; static getEntrypointArtifactId(moduleDefinition: ModuleDefinition): string; static getSchemaDefinitionArtifactFilepath(schemaDefinition: SchemaDefinition, fileNamingStyle: FileNamingStyle): string; static getSchemaDefinitionArtifactId(schemaDefinition: SchemaDefinition): string; } //#endregion //#region src/plugins/generate-declaration/generators/response-declaration/response.generator.d.ts declare const RESPONSE_GENERATOR = "responseGenerator"; declare class ResponseDeclarationGenerator implements Generator { compile(compiler: Compiler, task: TaskWrapper): Promise; private generateResponseDefinitionArtifact; private generateEntrypointArtifact; static getEntrypointArtifactFilepath(moduleDefinition: ModuleDefinition, fileNamingStyle: FileNamingStyle): string; static getEntrypointArtifactId(moduleDefinition: ModuleDefinition): string; static getResponseDefinitionArtifactFilepath(responseDefinition: ResponseDefinition, fileNamingStyle: FileNamingStyle): string; static getResponseDefinitionArtifactId(responseDefinition: ResponseDefinition): string; } //#endregion //#region src/plugins/generate-declaration/constants/metadata-storage.d.ts interface GenerateDeclarationPluginMetadata { applied: boolean; hooks: { afterEntrypointArtifactGenerated: AsyncSeriesWaterfallHook<[Artifact, TaskWrapper]>; afterSchemaDeclarationArtifactGenerated: AsyncSeriesWaterfallHook<[Artifact, SchemaDefinition, TaskWrapper]>; afterResponseDeclarationArtifactGenerated: AsyncSeriesWaterfallHook<[Artifact, ResponseDefinition, TaskWrapper]>; afterOperationDeclarationArtifactGenerated: AsyncSeriesWaterfallHook<[Artifact, OperationDefinition, TaskWrapper]>; }; } //#endregion //#region src/plugins/generate-declaration/generate-declaration.plugin.d.ts declare const DECLARATION_GENERATOR = "declarationGenerator"; declare class GenerateDeclarationPlugin implements Plugin { name: string; operationGenerator: OperationDeclarationGenerator; schemaGenerator: SchemaDeclarationGenerator; responseGenerator: ResponseDeclarationGenerator; constructor(); apply(compiler: Compiler): void; static register(compiler: Compiler): GenerateDeclarationPluginMetadata; static of(compiler: Compiler): GenerateDeclarationPluginMetadata | undefined; } //#endregion //#region src/plugins/use-valibot/constants/metadata-storage.d.ts interface UseValibotPluginMetadata { applied: boolean; } //#endregion //#region src/plugins/use-valibot/use-valibot.plugin.d.ts declare const USE_VALIBOT = "useValibot"; declare class UseValibotPlugin implements Plugin { name: string; constructor(); apply(compiler: Compiler): void; static register(compiler: Compiler): UseValibotPluginMetadata; static of(compiler: Compiler): UseValibotPluginMetadata | undefined; } //#endregion //#region src/plugins/generate-micro-function/constants/metadata-storage.d.ts interface GenerateMicroFunctionPluginMetadata { applied: boolean; hooks: { afterEntrypointArtifactGenerated: AsyncSeriesWaterfallHook<[Artifact, TaskWrapper]>; afterMicroFunctionArtifactGenerated: AsyncSeriesWaterfallHook<[Artifact, OperationDefinition, TaskWrapper]>; }; } //#endregion //#region src/plugins/generate-micro-function/generate-micro-function.plugin.d.ts declare class GenerateMicroFunctionPlugin implements Plugin { private readonly microFunctionGenerator; private readonly requestGenerator; apply(compiler: Compiler): void; static register(compiler: Compiler): GenerateMicroFunctionPluginMetadata; static of(compiler: Compiler): GenerateMicroFunctionPluginMetadata | undefined; } //#endregion //#region src/plugins/generate-micro-function/generators/micro_function/micro-function.generator.d.ts declare const MICRO_FUNCTION_GENERATOR = "microFunctionGenerator"; declare class MicroFunctionGenerator implements Generator { compile(compiler: Compiler, task: TaskWrapper): Promise; private generateOperationDefinitionArtifact; private generateEntrypointArtifact; static getOperationDefinitionArtifactFilepath(operationDefinition: OperationDefinition, fileNamingStyle: FileNamingStyle): string; static getOperationDefinitionArtifactId(operationDefinition: OperationDefinition): string; static getEntrypointArtifactFilepath(moduleDefinition: ModuleDefinition, fileNamingStyle: FileNamingStyle): string; static getEntrypointArtifactId(moduleDefinition: ModuleDefinition): string; } //#endregion //#region src/plugins/generate-micro-function/generators/request/request.generator.d.ts declare const MICRO_FUNCTION_REQUEST_GENERATOR = "microFunctionRequestGenerator"; declare class RequestGenerator implements Generator { private generateRequestArtifact; compile(compiler: Compiler, task: TaskWrapper): Promise; static getRequestArtifactFilepath(moduleName: string, fileNamingStyle: FileNamingStyle): string; static getRequestArtifactId(moduleName: string): string; } //#endregion //#region src/plugins/generate-nestjs-module/constants/metadata-storage.d.ts interface GenerateNestjsModulePluginMetadata { applied: boolean; hooks: { afterNestjsModuleArtifactGenerated: AsyncSeriesWaterfallHook<[Artifact, ApiDocumentV3_1, TaskWrapper]>; }; } //#endregion //#region src/plugins/generate-nestjs-module/generate-nestjs-module.d.ts declare class GenerateNestjsModulePlugin implements Plugin { private readonly nestjsModuleGenerator; apply(compiler: Compiler): void; static register(compiler: Compiler): GenerateNestjsModulePluginMetadata; static of(compiler: Compiler): GenerateNestjsModulePluginMetadata | undefined; } //#endregion //#region src/plugins/generate-nestjs-module/generators/nestjs-module.generator.d.ts declare class NestjsModuleGenerator implements Generator { private generateNestjsModuleArtifact; private generateNestjsClientArtifact; compile(compiler: Compiler, task: TaskWrapper): Promise; static getNestjsModuleArtifactFilepath(document: ApiDocumentV3_1, fileNamingStyle: FileNamingStyle): string; static getNestjsModuleArtifactId(document: ApiDocumentV3_1): string; static getNestjsClientArtifactFilepath(document: ApiDocumentV3_1, fileNamingStyle: FileNamingStyle): string; static getNestjsClientArtifactId(document: ApiDocumentV3_1): string; } //#endregion //#region src/plugins/chinese-to-pinyin/constants/metadata-storage.d.ts interface ChineseToPinyinPluginMetadata { applied: boolean; hooks: object; } //#endregion //#region src/plugins/chinese-to-pinyin/chinese-to-pinyin.plugin.d.ts declare class ChineseToPinyinPlugin { apply(compiler: Compiler): void; static register(compiler: Compiler): ChineseToPinyinPluginMetadata; static of(compiler: Compiler): ChineseToPinyinPluginMetadata | undefined; } //#endregion //#region src/plugins/download-http-file/constants/metadata-storage.d.ts interface DownloadHttpFilePluginMetadata { applied: boolean; hooks: object; } //#endregion //#region src/plugins/download-http-file/download-http-file.plugin.d.ts declare class DownloadHttpFilePlugin implements Plugin { apply(compiler: Compiler): void; private fetch; deserialize(content: string): object; static register(compiler: Compiler): DownloadHttpFilePluginMetadata; static of(compiler: Compiler): DownloadHttpFilePluginMetadata | undefined; } //#endregion //#region src/plugins/download-local-file/constants/metadata-storage.d.ts interface DownloadLocalFilePluginMetadata { applied: boolean; hooks: object; } //#endregion //#region src/plugins/download-local-file/download-local-file.plugin.d.ts declare class DownloadLocalFilePlugin implements Plugin { apply(compiler: Compiler): void; static register(compiler: Compiler): DownloadLocalFilePluginMetadata; static of(compiler: Compiler): DownloadLocalFilePluginMetadata | undefined; } //#endregion //#region src/plugins/download-by-bash/constants/metadata-storage.d.ts interface DownloadByBashPluginMetadata { applied: boolean; hooks: object; } //#endregion //#region src/plugins/download-by-bash/download-by-bash.plugin.d.ts declare class DownloadByBashPlugin implements Plugin { apply(compiler: Compiler): void; private parseOutput; static register(compiler: Compiler): DownloadByBashPluginMetadata; static of(compiler: Compiler): DownloadByBashPluginMetadata | undefined; } //#endregion //#region src/plugins/download-by-sh/constants/metadata-storage.d.ts interface DownloadByShPluginMetadata { applied: boolean; hooks: object; } //#endregion //#region src/plugins/download-by-sh/download-by-sh.plugin.d.ts declare class DownloadByShPlugin implements Plugin { apply(compiler: Compiler): void; private parseOutput; static register(compiler: Compiler): DownloadByShPluginMetadata; static of(compiler: Compiler): DownloadByShPluginMetadata | undefined; } //#endregion //#region src/plugins/shaking/constants/metadata-storage.d.ts interface ShakingPluginMetadata { applied: boolean; hooks: object; } //#endregion //#region src/plugins/shaking/shaking.plugin.d.ts declare class ShakingPlugin implements Plugin { apply(compiler: Compiler): void; shaking(compiler: Compiler, document: ApiDocumentV3_1): ApiDocumentV3_1; static register(compiler: Compiler): ShakingPluginMetadata; static of(compiler: Compiler): ShakingPluginMetadata | undefined; } //#endregion //#region src/plugins/terminal-select/types/filter-mode.d.ts type FilterMode = 'deny' | 'allow'; //#endregion //#region src/plugins/terminal-select/constants/metadata-storage.d.ts interface TerminalSelectPluginMetadata { applied: boolean; hooks: object; } //#endregion //#region src/plugins/terminal-select/terminal-select.plugin.d.ts interface TerminalSelectPluginOptions { mode: FilterMode; persist?: boolean; } declare class TerminalSelectPlugin implements Plugin { private options; constructor(options: TerminalSelectPluginOptions); apply(compiler: Compiler): void; static register(compiler: Compiler): TerminalSelectPluginMetadata; static of(compiler: Compiler): TerminalSelectPluginMetadata | undefined; } //#endregion //#region src/plugins/initialize/initialize.plugin.d.ts interface InitializePluginOptions { build?: boolean; fresh?: boolean; interactive?: boolean | TerminalSelectPluginOptions; } declare class InitializePlugin implements Plugin { private options; constructor(options: InitializePluginOptions); apply(compiler: Compiler): void; } //#endregion //#region src/plugins/overwrite-operation-id/overwrite-operation-id.plugin.d.ts /** * A factory function that generates an operationId for a given operation. * If undefined is returned, the operationId will not be modified. */ type OperationIdFactory = (context: { module: ModuleDefinition; method: string; pathname: string; operation: OpenAPIV3_1.OperationObject; }) => string | undefined; declare class OverwriteOperationIdPlugin implements Plugin { private readonly factory; constructor(factory: OperationIdFactory); apply(compiler: Compiler): void; } //#endregion //#region src/plugins/overwrite-schema-name/overwrite-schema-name.plugin.d.ts type SchemaNameFactory = (context: { name: string; module: ModuleDefinition; }) => string | undefined; declare class OverwriteSchemaNamePlugin implements Plugin { private readonly factory; constructor(factory: SchemaNameFactory); apply(compiler: Compiler): void; } //#endregion //#region src/plugins/overwrite-query-options/overwrite-query-options.plugin.d.ts type OverwriteQueryOptionsFactory = ((options: { module: ModuleDefinition; method: string; pathname: string; operation: OpenAPIV3_1.OperationObject; parameter: OpenAPIV3_1.ParameterObject; }) => KeqQueryOptions | undefined) | KeqQueryOptions; declare class OverwriteQueryOptionsPlugin implements Plugin { private readonly factory; constructor(factory: OverwriteQueryOptionsFactory); apply(compiler: Compiler): void; } //#endregion //#region src/plugins/overwrite-additional-properties/constants/metadata-storage.d.ts interface OverwriteAdditionalPropertiesPluginMetadata { applied: boolean; } //#endregion //#region src/plugins/overwrite-additional-properties/overwrite-additional-properties.plugin.d.ts interface OverwriteAdditionalPropertiesPluginOptions { /** * When `true`, schemas without explicit `additionalProperties` * will be set to `additionalProperties: false`. * When `false` (default), respect OpenAPI 3.1 spec behavior * (undefined additionalProperties = true). * @default false */ disallowIfNotPresent?: boolean; } declare class OverwriteAdditionalPropertiesPlugin implements Plugin { private readonly options; constructor(options?: OverwriteAdditionalPropertiesPluginOptions); apply(compiler: Compiler): void; static register(compiler: Compiler): OverwriteAdditionalPropertiesPluginMetadata; static of(compiler: Compiler): OverwriteAdditionalPropertiesPluginMetadata | undefined; } //#endregion //#region src/plugins/clean/clean.plugin.d.ts declare class CleanPlugin implements Plugin { apply(compiler: Compiler): void; } //#endregion //#region src/plugins/lint-schema/lint-schema.plugin.d.ts interface LintSchemaPluginOptions { /** * When true, throw an error and stop the build if schema validation fails. * When false (default), log warnings and continue. * @default false */ strict?: boolean; } declare class LintSchemaPlugin implements Plugin { private readonly options; constructor(options?: LintSchemaPluginOptions); apply(compiler: Compiler): void; /** * Detect duplicate operationId across all operations within each API document. * * In tolerant mode, duplicates are auto-resolved by appending `__{method}_{pathname}` suffix * and the patched document replaces the original in the compiler context. * In strict mode (tolerant=false), an Exception is thrown immediately. */ private lintDuplicateOperationId; } //#endregion //#region src/plugins/springdoc-compat/springdoc-compat.plugin.d.ts interface SpringdocCompatPluginOptions { /** * Ensure application/json requests always carry a body. * When enabled, an empty object `{}` is sent even if no body properties are provided. * Compatible with Spring Boot Jackson and other backends that require a JSON body. * @default false * @deprecated Use `rendering.emptyJsonRequestBodyMode: 'empty-object'` instead. */ ensureJsonBody?: boolean; } /** * Compatibility plugin for OpenAPI documents generated by Springdoc (Java/Spring Boot). * * Springdoc outputs documents with structures that do not conform to the OpenAPI spec. * This plugin applies corrections before validation. * Current processing: * - Flatten nested `extensions` objects into sibling x-* properties * - Add `schema: {}` to parameters missing both `schema` and `content` * - Remove an empty-string `info.contact.email`, which otherwise fails `format: "email"` validation * - (Optional) Ensure application/json requests always carry a body */ declare class SpringdocCompatPlugin implements Plugin { private readonly options; constructor(options?: SpringdocCompatPluginOptions); apply(compiler: Compiler): void; private applyEnsureJsonBody; } //#endregion //#region src/plugins/mock/mock.plugin.d.ts interface MockRule { given: string; when?: { type?: string | string[]; format?: string; }; then: { example: unknown; } | { faker: string; args?: unknown; } | { default: unknown; }; } interface MockPluginOptions { rules: MockRule[]; } declare class MockPlugin implements Plugin { private rules; constructor(options: MockPluginOptions); apply(compiler: Compiler): void; private applyRule; } //#endregion //#region src/plugins/generate-isolated/constants/metadata-storage.d.ts interface GenerateIsolatedPluginMetadata { applied: boolean; hooks: { afterEntrypointArtifactGenerated: AsyncSeriesWaterfallHook<[Artifact, TaskWrapper], Artifact>; afterIsolatedOperationArtifactGenerated: AsyncSeriesWaterfallHook<[Artifact, OperationDefinition, TaskWrapper], Artifact>; }; } //#endregion //#region src/plugins/generate-isolated/generate-isolated.plugin.d.ts declare class GenerateIsolatedPlugin implements Plugin { private readonly isolatedOperationGenerator; private readonly requestGenerator; apply(compiler: Compiler): void; static register(compiler: Compiler): GenerateIsolatedPluginMetadata; static of(compiler: Compiler): GenerateIsolatedPluginMetadata | undefined; } //#endregion //#region src/cache-store/types/cache-store.d.ts interface CacheSetOptions { /** Cache expiration time in milliseconds. If not set, the entry never expires by TTL. */ ttl?: number; } interface CacheStore { get(key: string): Promise; set(key: string, value: T, options?: CacheSetOptions): Promise; has(key: string): Promise; delete(key: string): Promise; clear(): Promise; } //#endregion //#region src/compiler/compiler.d.ts interface Options extends SetupTaskOptions { build: boolean; persist?: boolean; silent?: boolean; fresh?: boolean; interactive?: boolean | TerminalSelectPluginOptions; cacheStore?: CacheStore; } declare class Compiler { options: Options; context: CompilerContext; private _cacheStore; hooks: CompilerHooks; constructor(options: Options); getCacheStore(namespace: string): CacheStore; run(): Promise; } //#endregion //#region src/types/plugin.d.ts interface Plugin { apply(compiler: Compiler): void; } //#endregion //#region src/types/runtime-config.d.ts declare const RawConfig: _$_sinclair_typebox0.TObject<{ /** * Output directory for generated files */ outdir: _$_sinclair_typebox0.TString; /** * Rendering options that directly control code generation output */ rendering: _$_sinclair_typebox0.TObject<{ /** * Whether to generate ES Module code * * If not specified, the module system will be inferred from the nearest package.json "type" field * or defaults to "cjs" if no package.json is found. */ esm: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>; /** * File naming style for generated files */ fileNamingStyle: _$_sinclair_typebox0.TEnum; /** * Controls how `additionalProperties: true` (or undefined) is rendered in generated TypeScript types. * * - `'unknown'` (default): renders as `unknown`, which is stricter and type-safe * - `'any'`: renders as `any`, which is more permissive */ additionalPropertiesType: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"unknown">, _$_sinclair_typebox0.TLiteral<"any">]>>; /** * Whether to generate entrypoint (index) files that re-export all generated modules. * * When enabled, entrypoint files are always generated. If a directory has no * exportable content, the entrypoint contains `export {}` so the file still * exists and remains a valid module. * * Disable this to avoid merge conflicts in multi-branch collaborative development, * as auto-generated index files change frequently. */ entrypoint: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>; /** * Controls how empty request body is handled for application/json requests * when all body properties are optional and none are provided. * * - `'strict'` (default): Always renders `req.type("application/json")`, no body fallback * - `'omit'`: Skips `req.type("application/json")`; `req.send()` auto-sets Content-Type when needed * - `'empty-object'`: Sends `req.send({})` when no body properties are provided * - `'null'`: Sends `req.send(null)` when no body properties are provided */ emptyJsonRequestBodyMode: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"strict">, _$_sinclair_typebox0.TLiteral<"omit">, _$_sinclair_typebox0.TLiteral<"empty-object">, _$_sinclair_typebox0.TLiteral<"null">]>>; /** * @deprecated This option exists solely for backward compatibility with v2 generated code. * It will be removed in a future major version. * * When enabled, emits `.option('module', { name, pathname, method })` in generated micro-functions. */ v2Compat: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>; }>; /** * OpenAPI/Swagger document sources * * A map of module names to their document URLs or Address objects. * The module name must be a valid JavaScript identifier. */ modules: _$_sinclair_typebox0.TTransform<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TObject<{ url: _$_sinclair_typebox0.TString; headers: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TRecord<_$_sinclair_typebox0.TString, _$_sinclair_typebox0.TString>>; encoding: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TLiteral<"utf8">, _$_sinclair_typebox0.TLiteral<"ascii">]>>; }>]>>, Record>; /** * Enable debug mode to output detailed logs during compilation */ debug: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>; /** * Whether to tolerate wrong openapi/swagger structure */ tolerant: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TBoolean>; /** * Translators to transform generated code * * Used to customize the code generation process for different frameworks or patterns. * Can be a single translator or an array of translators. */ translators: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TTransform<_$_sinclair_typebox0.TUnion<[_$_sinclair_typebox0.TUnsafe, _$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TUnsafe>]>, Translator[]>>; /** * Plugins to extend code generation functionality * * An array of plugin instances that can hook into various stages of the compilation process, * such as code transformation, formatting, linting, or custom file generation. */ plugins: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TArray<_$_sinclair_typebox0.TUnsafe>>; /** * Cache store for download and compilation caching. * * Set to a CacheStore instance to enable caching, or `false` to disable. * If not set, defaults to FileSystemCacheStore in the OS cache directory. */ cache: _$_sinclair_typebox0.TOptional<_$_sinclair_typebox0.TUnsafe>; }>; type RawConfig = StaticEncode; type RuntimeConfig = StaticDecode; //#endregion export { CompilerContext as $, DownloadHttpFilePlugin as A, UseValibotPlugin as B, InitializePlugin as C, DownloadByShPlugin as D, ShakingPlugin as E, RequestGenerator as F, ResponseDeclarationGenerator as G, DECLARATION_GENERATOR as H, MICRO_FUNCTION_GENERATOR as I, OPERATION_GENERATOR as J, SCHEMA_GENERATOR as K, MicroFunctionGenerator as L, NestjsModuleGenerator as M, GenerateNestjsModulePlugin as N, DownloadByBashPlugin as O, MICRO_FUNCTION_REQUEST_GENERATOR as P, EslintPlugin as Q, GenerateMicroFunctionPlugin as R, OverwriteOperationIdPlugin as S, TerminalSelectPluginOptions as T, GenerateDeclarationPlugin as U, UseValibotPluginMetadata as V, RESPONSE_GENERATOR as W, BodyFallbackPlugin as X, OperationDeclarationGenerator as Y, PrettierPlugin as Z, OverwriteQueryOptionsFactory as _, CacheStore as a, SchemaDefinition as at, SchemaNameFactory as b, MockPluginOptions as c, Artifact as ct, SpringdocCompatPluginOptions as d, Translator as et, LintSchemaPlugin as f, OverwriteAdditionalPropertiesPluginOptions as g, OverwriteAdditionalPropertiesPlugin as h, CacheSetOptions as i, OperationDefinition as it, ChineseToPinyinPlugin as j, DownloadLocalFilePlugin as k, MockRule as l, FileNamingStyle as lt, CleanPlugin as m, Plugin as n, Asset as nt, GenerateIsolatedPlugin as o, ModuleDefinition as ot, LintSchemaPluginOptions as p, SchemaDeclarationGenerator as q, Compiler as r, ApiDocumentV3_1 as rt, MockPlugin as s, Address as st, RawConfig as t, TaskWrapper as tt, SpringdocCompatPlugin as u, OverwriteQueryOptionsPlugin as v, TerminalSelectPlugin as w, OperationIdFactory as x, OverwriteSchemaNamePlugin as y, USE_VALIBOT as z }; //# sourceMappingURL=runtime-config-CTFFW8ZB.d.mts.map