@kubb/core 5.0.0-alpha.39 → 5.0.0-alpha.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -585,7 +585,7 @@ const fsStorage = createStorage(() => ({
585
585
  }));
586
586
  //#endregion
587
587
  //#region package.json
588
- var version = "5.0.0-alpha.39";
588
+ var version = "5.0.0-alpha.40";
589
589
  //#endregion
590
590
  //#region src/utils/diagnostics.ts
591
591
  /**
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk--u3MIqq1.js";
2
- import { $ as FileManager, A as PluginParameter, B as ResolverFileParams, C as Output, D as PluginFactoryOptions, E as PluginContext, F as ResolveOptionsContext, G as UserPlugin, H as SchemaHook, I as ResolvePathOptions, J as Kubb, K as UserPluginWithLifeCycle, L as ResolvePathParams, M as PossibleConfig, N as ResolveBannerContext, O as PluginLifecycle, P as ResolveNameParams, Q as PluginDriver, R as Resolver, S as OperationsHook, T as Plugin, U as UserGroup, V as ResolverPathParams, W as UserLogger, X as BuildOutput, Y as KubbHooks, Z as createKubb, _ as KubbPluginSetupContext, a as CLIOptions, at as Generator, b as LoggerOptions, c as DevtoolsOptions, ct as createStorage, d as Group, dt as createRenderer, et as HookStylePlugin, f as Include, ft as logLevel, g as KubbBuildStartContext, h as KubbBuildEndContext, i as BarrelType, it as defineParser, j as PluginWithLifeCycle, k as PluginLifecycleHooks, l as Exclude, lt as Renderer, m as InputPath, n as AdapterFactoryOptions, nt as definePlugin, o as CompatibilityPreset, ot as defineGenerator, p as InputData, pt as AsyncEventEmitter, q as FileMetaBase, r as AdapterSource, rt as Parser, s as Config, st as Storage, t as Adapter, tt as PluginHooks, u as GeneratorContext, ut as RendererFactory, v as Logger, w as Override, x as OperationHook, y as LoggerContext, z as ResolverContext } from "./types-DUc5lEUp.js";
2
+ import { $ as KubbHooks, A as PluginParameter, B as ResolverFileParams, C as Output, D as PluginFactoryOptions, E as PluginContext, F as ResolveOptionsContext, G as UserLogger, H as SchemaHook, I as ResolvePathOptions, J as FileMetaBase, K as UserPlugin, L as ResolvePathParams, M as PossibleConfig, N as ResolveBannerContext, O as PluginLifecycle, P as ResolveNameParams, Q as Kubb, R as Resolver, S as OperationsHook, T as Plugin, U as UserConfig, V as ResolverPathParams, W as UserGroup, X as PluginHooks, Y as HookStylePlugin, Z as definePlugin, _ as KubbPluginSetupContext, a as CLIOptions, at as defineParser, b as LoggerOptions, c as DevtoolsOptions, ct as Storage, d as Group, dt as RendererFactory, et as BuildOutput, f as Include, ft as createRenderer, g as KubbBuildStartContext, h as KubbBuildEndContext, i as BarrelType, it as Parser, j as PluginWithLifeCycle, k as PluginLifecycleHooks, l as Exclude, lt as createStorage, m as InputPath, mt as AsyncEventEmitter, n as AdapterFactoryOptions, nt as PluginDriver, o as CompatibilityPreset, ot as Generator, p as InputData, pt as logLevel, q as UserPluginWithLifeCycle, r as AdapterSource, rt as FileManager, s as Config, st as defineGenerator, t as Adapter, tt as createKubb, u as GeneratorContext, ut as Renderer, v as Logger, w as Override, x as OperationHook, y as LoggerContext, z as ResolverContext } from "./types-PLXOrxov.js";
3
3
  import * as ast from "@kubb/ast";
4
4
  import { FileNode, InputNode, Node } from "@kubb/ast";
5
5
 
@@ -350,5 +350,5 @@ declare const memoryStorage: (options?: Record<string, never> | undefined) => St
350
350
  */
351
351
  declare function isInputPath(config: Config | undefined): config is Config<InputPath>;
352
352
  //#endregion
353
- export { Adapter, AdapterFactoryOptions, AdapterSource, AsyncEventEmitter, BarrelType, BuildOutput, CLIOptions, CompatibilityPreset, Config, DevtoolsOptions, Exclude, FileManager, FileMetaBase, FileProcessor, Generator, GeneratorContext, Group, HookStylePlugin, Include, InputData, InputPath, Kubb, KubbBuildEndContext, KubbBuildStartContext, KubbHooks, KubbPluginSetupContext, Logger, LoggerContext, LoggerOptions, OperationHook, OperationsHook, Output, Override, Parser, Plugin, PluginContext, PluginDriver, PluginFactoryOptions, PluginHooks, PluginLifecycle, PluginLifecycleHooks, PluginParameter, PluginWithLifeCycle, PossibleConfig, Renderer, RendererFactory, ResolveBannerContext, ResolveNameParams, ResolveOptionsContext, ResolvePathOptions, ResolvePathParams, Resolver, ResolverContext, ResolverFileParams, ResolverPathParams, SchemaHook, Storage, URLPath, UserGroup, UserLogger, UserPlugin, UserPluginWithLifeCycle, ast, createAdapter, createKubb, createRenderer, createStorage, defineGenerator, defineLogger, defineParser, definePlugin, defineResolver, fsStorage, isInputPath, logLevel, memoryStorage };
353
+ export { Adapter, AdapterFactoryOptions, AdapterSource, AsyncEventEmitter, BarrelType, BuildOutput, CLIOptions, CompatibilityPreset, Config, DevtoolsOptions, Exclude, FileManager, FileMetaBase, FileProcessor, Generator, GeneratorContext, Group, HookStylePlugin, Include, InputData, InputPath, Kubb, KubbBuildEndContext, KubbBuildStartContext, KubbHooks, KubbPluginSetupContext, Logger, LoggerContext, LoggerOptions, OperationHook, OperationsHook, Output, Override, Parser, Plugin, PluginContext, PluginDriver, PluginFactoryOptions, PluginHooks, PluginLifecycle, PluginLifecycleHooks, PluginParameter, PluginWithLifeCycle, PossibleConfig, Renderer, RendererFactory, ResolveBannerContext, ResolveNameParams, ResolveOptionsContext, ResolvePathOptions, ResolvePathParams, Resolver, ResolverContext, ResolverFileParams, ResolverPathParams, SchemaHook, Storage, URLPath, UserConfig, UserGroup, UserLogger, UserPlugin, UserPluginWithLifeCycle, ast, createAdapter, createKubb, createRenderer, createStorage, defineGenerator, defineLogger, defineParser, definePlugin, defineResolver, fsStorage, isInputPath, logLevel, memoryStorage };
354
354
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -584,7 +584,7 @@ const fsStorage = createStorage(() => ({
584
584
  }));
585
585
  //#endregion
586
586
  //#region package.json
587
- var version$1 = "5.0.0-alpha.39";
587
+ var version$1 = "5.0.0-alpha.40";
588
588
  //#endregion
589
589
  //#region src/utils/diagnostics.ts
590
590
  /**
package/dist/mocks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk--u3MIqq1.js";
2
- import { D as PluginFactoryOptions, Q as PluginDriver, T as Plugin, at as Generator, n as AdapterFactoryOptions, s as Config, t as Adapter } from "./types-DUc5lEUp.js";
2
+ import { D as PluginFactoryOptions, T as Plugin, n as AdapterFactoryOptions, nt as PluginDriver, ot as Generator, s as Config, t as Adapter } from "./types-PLXOrxov.js";
3
3
  import { OperationNode, SchemaNode, Visitor } from "@kubb/ast";
4
4
 
5
5
  //#region src/mocks.d.ts
@@ -348,81 +348,6 @@ type Parser<TMeta extends object = any> = {
348
348
  */
349
349
  declare function defineParser<TMeta extends object = any>(parser: Parser<TMeta>): Parser<TMeta>;
350
350
  //#endregion
351
- //#region src/definePlugin.d.ts
352
- /**
353
- * Base hook handlers for all events except `kubb:plugin:setup`.
354
- * These handlers have identical signatures regardless of the plugin's
355
- * `PluginFactoryOptions` generic — they are split out so that the
356
- * interface below only needs to override the one event that depends on
357
- * the plugin type.
358
- */
359
- type PluginHooksBase = { [K in Exclude<keyof KubbHooks, 'kubb:plugin:setup'>]?: (...args: KubbHooks[K]) => void | Promise<void> };
360
- /**
361
- * Plugin hook handlers.
362
- *
363
- * `kubb:plugin:setup` is typed with the plugin's own `PluginFactoryOptions` so
364
- * `ctx.setResolver`, `ctx.setOptions`, `ctx.options` etc. use the correct types.
365
- *
366
- * Uses interface + method shorthand for `kubb:plugin:setup`
367
- * checking, allowing `PluginHooks<PluginTs>` to be assignable to `PluginHooks`.
368
- *
369
- * @template TFactory - The plugin's `PluginFactoryOptions` type.
370
- */
371
- interface PluginHooks<TFactory extends PluginFactoryOptions = PluginFactoryOptions> extends PluginHooksBase {
372
- 'kubb:plugin:setup'?(ctx: KubbPluginSetupContext<TFactory>): void | Promise<void>;
373
- }
374
- /**
375
- * A hook-style plugin object produced by `definePlugin`.
376
- * Instead of flat lifecycle methods, it groups all handlers under a `hooks:` property
377
- * (matching Astro's integration naming convention).
378
- *
379
- * @template TFactory - The plugin's `PluginFactoryOptions` type.
380
- */
381
- type HookStylePlugin<TFactory extends PluginFactoryOptions = PluginFactoryOptions> = {
382
- /**
383
- * Unique name for the plugin, following the same naming convention as `createPlugin`.
384
- */
385
- name: string;
386
- /**
387
- * Plugins that must be registered before this plugin executes.
388
- * An error is thrown at startup when any listed dependency is missing.
389
- */
390
- dependencies?: Array<string>;
391
- /**
392
- * The options passed by the user when calling the plugin factory.
393
- */
394
- options?: TFactory['options'];
395
- /**
396
- * Lifecycle event handlers for this plugin.
397
- * Any event from the global `KubbHooks` map can be subscribed to here.
398
- */
399
- hooks: PluginHooks<TFactory>;
400
- };
401
- /**
402
- * Creates a plugin factory using the new hook-style (`hooks:`) API.
403
- *
404
- * The returned factory is called with optional options and produces a `HookStylePlugin`
405
- * that coexists with plugins created via the legacy `createPlugin` API in the same
406
- * `kubb.config.ts`.
407
- *
408
- * Lifecycle handlers are registered on the `PluginDriver`'s `AsyncEventEmitter`, enabling
409
- * both the plugin's own handlers and external tooling (CLI, devtools) to observe every event.
410
- *
411
- * @example
412
- * ```ts
413
- * // With PluginFactoryOptions (recommended for real plugins)
414
- * export const pluginTs = definePlugin<PluginTs>((options) => ({
415
- * name: 'plugin-ts',
416
- * hooks: {
417
- * 'kubb:plugin:setup'(ctx) {
418
- * ctx.setResolver(resolverTs) // typed as Partial<ResolverTs>
419
- * },
420
- * },
421
- * }))
422
- * ```
423
- */
424
- declare function definePlugin<TFactory extends PluginFactoryOptions = PluginFactoryOptions>(factory: (options: TFactory['options']) => HookStylePlugin<TFactory>): (options?: TFactory['options']) => HookStylePlugin<TFactory>;
425
- //#endregion
426
351
  //#region src/FileManager.d.ts
427
352
  /**
428
353
  * In-memory file store for generated files.
@@ -1047,6 +972,81 @@ declare global {
1047
972
  }
1048
973
  }
1049
974
  //#endregion
975
+ //#region src/definePlugin.d.ts
976
+ /**
977
+ * Base hook handlers for all events except `kubb:plugin:setup`.
978
+ * These handlers have identical signatures regardless of the plugin's
979
+ * `PluginFactoryOptions` generic — they are split out so that the
980
+ * interface below only needs to override the one event that depends on
981
+ * the plugin type.
982
+ */
983
+ type PluginHooksBase = { [K in Exclude<keyof KubbHooks, 'kubb:plugin:setup'>]?: (...args: KubbHooks[K]) => void | Promise<void> };
984
+ /**
985
+ * Plugin hook handlers.
986
+ *
987
+ * `kubb:plugin:setup` is typed with the plugin's own `PluginFactoryOptions` so
988
+ * `ctx.setResolver`, `ctx.setOptions`, `ctx.options` etc. use the correct types.
989
+ *
990
+ * Uses interface + method shorthand for `kubb:plugin:setup`
991
+ * checking, allowing `PluginHooks<PluginTs>` to be assignable to `PluginHooks`.
992
+ *
993
+ * @template TFactory - The plugin's `PluginFactoryOptions` type.
994
+ */
995
+ interface PluginHooks<TFactory extends PluginFactoryOptions = PluginFactoryOptions> extends PluginHooksBase {
996
+ 'kubb:plugin:setup'?(ctx: KubbPluginSetupContext<TFactory>): void | Promise<void>;
997
+ }
998
+ /**
999
+ * A hook-style plugin object produced by `definePlugin`.
1000
+ * Instead of flat lifecycle methods, it groups all handlers under a `hooks:` property
1001
+ * (matching Astro's integration naming convention).
1002
+ *
1003
+ * @template TFactory - The plugin's `PluginFactoryOptions` type.
1004
+ */
1005
+ type HookStylePlugin<TFactory extends PluginFactoryOptions = PluginFactoryOptions> = {
1006
+ /**
1007
+ * Unique name for the plugin, following the same naming convention as `createPlugin`.
1008
+ */
1009
+ name: string;
1010
+ /**
1011
+ * Plugins that must be registered before this plugin executes.
1012
+ * An error is thrown at startup when any listed dependency is missing.
1013
+ */
1014
+ dependencies?: Array<string>;
1015
+ /**
1016
+ * The options passed by the user when calling the plugin factory.
1017
+ */
1018
+ options?: TFactory['options'];
1019
+ /**
1020
+ * Lifecycle event handlers for this plugin.
1021
+ * Any event from the global `KubbHooks` map can be subscribed to here.
1022
+ */
1023
+ hooks: PluginHooks<TFactory>;
1024
+ };
1025
+ /**
1026
+ * Creates a plugin factory using the new hook-style (`hooks:`) API.
1027
+ *
1028
+ * The returned factory is called with optional options and produces a `HookStylePlugin`
1029
+ * that coexists with plugins created via the legacy `createPlugin` API in the same
1030
+ * `kubb.config.ts`.
1031
+ *
1032
+ * Lifecycle handlers are registered on the `PluginDriver`'s `AsyncEventEmitter`, enabling
1033
+ * both the plugin's own handlers and external tooling (CLI, devtools) to observe every event.
1034
+ *
1035
+ * @example
1036
+ * ```ts
1037
+ * // With PluginFactoryOptions (recommended for real plugins)
1038
+ * export const pluginTs = definePlugin<PluginTs>((options) => ({
1039
+ * name: 'plugin-ts',
1040
+ * hooks: {
1041
+ * 'kubb:plugin:setup'(ctx) {
1042
+ * ctx.setResolver(resolverTs) // typed as Partial<ResolverTs>
1043
+ * },
1044
+ * },
1045
+ * }))
1046
+ * ```
1047
+ */
1048
+ declare function definePlugin<TFactory extends PluginFactoryOptions = PluginFactoryOptions>(factory: (options: TFactory['options']) => HookStylePlugin<TFactory>): (options?: TFactory['options']) => HookStylePlugin<TFactory>;
1049
+ //#endregion
1050
1050
  //#region src/utils/getBarrelFiles.d.ts
1051
1051
  type FileMetaBase = {
1052
1052
  pluginName?: string;
@@ -1502,6 +1502,33 @@ type UserPlugin<TOptions extends PluginFactoryOptions = PluginFactoryOptions> =
1502
1502
  * @deprecated
1503
1503
  */
1504
1504
  type UserPluginWithLifeCycle<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = UserPlugin<TOptions> & PluginLifecycle<TOptions>;
1505
+ /**
1506
+ * Partial version of {@link Config} intended for user-facing config entry points.
1507
+ *
1508
+ * Fields that have sensible defaults (`root`, `plugins`, `parsers`, `adapter`) are optional.
1509
+ */
1510
+ type UserConfig<TInput = Input> = Omit<Config<TInput>, 'root' | 'plugins' | 'parsers' | 'adapter'> & {
1511
+ /**
1512
+ * The project root directory, which can be either an absolute path or a path relative to the location of your `kubb.config.ts` file.
1513
+ * @default process.cwd()
1514
+ */
1515
+ root?: string;
1516
+ /**
1517
+ * An array of parsers used to convert generated files to strings.
1518
+ * Each parser handles specific file extensions (e.g. `.ts`, `.tsx`).
1519
+ *
1520
+ * A catch-all fallback parser is always appended last for any unhandled extension.
1521
+ */
1522
+ parsers?: Array<Parser>;
1523
+ /**
1524
+ * Adapter that converts the input file into a `@kubb/ast` `InputNode`.
1525
+ */
1526
+ adapter?: Adapter;
1527
+ /**
1528
+ * User-facing plugins can be either legacy createPlugin instances or hook-style plugins.
1529
+ */
1530
+ plugins?: Array<Omit<UserPlugin, 'inject'> | HookStylePlugin>;
1531
+ };
1505
1532
  /**
1506
1533
  * Handler for a single schema node. Used by the `schema` hook on a plugin.
1507
1534
  */
@@ -2120,5 +2147,5 @@ type CLIOptions = {
2120
2147
  */
2121
2148
  type PossibleConfig<TCliOptions = undefined> = PossiblePromise<Config | Config[]> | ((...args: [TCliOptions] extends [undefined] ? [] : [TCliOptions]) => PossiblePromise<Config | Config[]>);
2122
2149
  //#endregion
2123
- export { FileManager as $, PluginParameter as A, ResolverFileParams as B, Output as C, PluginFactoryOptions as D, PluginContext as E, ResolveOptionsContext as F, UserPlugin as G, SchemaHook as H, ResolvePathOptions as I, Kubb$1 as J, UserPluginWithLifeCycle as K, ResolvePathParams as L, PossibleConfig as M, ResolveBannerContext as N, PluginLifecycle as O, ResolveNameParams as P, PluginDriver as Q, Resolver as R, OperationsHook as S, Plugin as T, UserGroup as U, ResolverPathParams as V, UserLogger as W, BuildOutput as X, KubbHooks as Y, createKubb as Z, KubbPluginSetupContext as _, CLIOptions as a, Generator as at, LoggerOptions as b, DevtoolsOptions as c, createStorage as ct, Group as d, createRenderer as dt, HookStylePlugin as et, Include as f, logLevel as ft, KubbBuildStartContext as g, KubbBuildEndContext as h, BarrelType as i, defineParser as it, PluginWithLifeCycle as j, PluginLifecycleHooks as k, Exclude$1 as l, Renderer as lt, InputPath as m, AdapterFactoryOptions as n, definePlugin as nt, CompatibilityPreset as o, defineGenerator as ot, InputData as p, AsyncEventEmitter as pt, FileMetaBase as q, AdapterSource as r, Parser as rt, Config as s, Storage as st, Adapter as t, PluginHooks as tt, GeneratorContext as u, RendererFactory as ut, Logger as v, Override as w, OperationHook as x, LoggerContext as y, ResolverContext as z };
2124
- //# sourceMappingURL=types-DUc5lEUp.d.ts.map
2150
+ export { KubbHooks as $, PluginParameter as A, ResolverFileParams as B, Output as C, PluginFactoryOptions as D, PluginContext as E, ResolveOptionsContext as F, UserLogger as G, SchemaHook as H, ResolvePathOptions as I, FileMetaBase as J, UserPlugin as K, ResolvePathParams as L, PossibleConfig as M, ResolveBannerContext as N, PluginLifecycle as O, ResolveNameParams as P, Kubb$1 as Q, Resolver as R, OperationsHook as S, Plugin as T, UserConfig as U, ResolverPathParams as V, UserGroup as W, PluginHooks as X, HookStylePlugin as Y, definePlugin as Z, KubbPluginSetupContext as _, CLIOptions as a, defineParser as at, LoggerOptions as b, DevtoolsOptions as c, Storage as ct, Group as d, RendererFactory as dt, BuildOutput as et, Include as f, createRenderer as ft, KubbBuildStartContext as g, KubbBuildEndContext as h, BarrelType as i, Parser as it, PluginWithLifeCycle as j, PluginLifecycleHooks as k, Exclude$1 as l, createStorage as lt, InputPath as m, AsyncEventEmitter as mt, AdapterFactoryOptions as n, PluginDriver as nt, CompatibilityPreset as o, Generator as ot, InputData as p, logLevel as pt, UserPluginWithLifeCycle as q, AdapterSource as r, FileManager as rt, Config as s, defineGenerator as st, Adapter as t, createKubb as tt, GeneratorContext as u, Renderer as ut, Logger as v, Override as w, OperationHook as x, LoggerContext as y, ResolverContext as z };
2151
+ //# sourceMappingURL=types-PLXOrxov.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/core",
3
- "version": "5.0.0-alpha.39",
3
+ "version": "5.0.0-alpha.40",
4
4
  "description": "Core functionality for Kubb's plugin-based code generation system, providing the foundation for transforming OpenAPI specifications.",
5
5
  "keywords": [
6
6
  "typescript",
@@ -68,8 +68,8 @@
68
68
  "remeda": "^2.33.7",
69
69
  "semver": "^7.7.4",
70
70
  "tinyexec": "^1.1.1",
71
- "@kubb/ast": "5.0.0-alpha.39",
72
- "@kubb/renderer-jsx": "5.0.0-alpha.39"
71
+ "@kubb/ast": "5.0.0-alpha.40",
72
+ "@kubb/renderer-jsx": "5.0.0-alpha.40"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/semver": "^7.7.1",
@@ -77,7 +77,7 @@
77
77
  "@internals/utils": "0.0.0"
78
78
  },
79
79
  "peerDependencies": {
80
- "@kubb/renderer-jsx": "5.0.0-alpha.39"
80
+ "@kubb/renderer-jsx": "5.0.0-alpha.40"
81
81
  },
82
82
  "engines": {
83
83
  "node": ">=22"
package/src/types.ts CHANGED
@@ -5,6 +5,7 @@ import type { RendererFactory } from './createRenderer.ts'
5
5
  import type { Storage } from './createStorage.ts'
6
6
  import type { Generator } from './defineGenerator.ts'
7
7
  import type { Parser } from './defineParser.ts'
8
+ import type { HookStylePlugin } from './definePlugin.ts'
8
9
  import type { KubbHooks } from './Kubb.ts'
9
10
  import type { PluginDriver } from './PluginDriver.ts'
10
11
 
@@ -473,6 +474,34 @@ export type UserPlugin<TOptions extends PluginFactoryOptions = PluginFactoryOpti
473
474
  */
474
475
  export type UserPluginWithLifeCycle<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = UserPlugin<TOptions> & PluginLifecycle<TOptions>
475
476
 
477
+ /**
478
+ * Partial version of {@link Config} intended for user-facing config entry points.
479
+ *
480
+ * Fields that have sensible defaults (`root`, `plugins`, `parsers`, `adapter`) are optional.
481
+ */
482
+ export type UserConfig<TInput = Input> = Omit<Config<TInput>, 'root' | 'plugins' | 'parsers' | 'adapter'> & {
483
+ /**
484
+ * The project root directory, which can be either an absolute path or a path relative to the location of your `kubb.config.ts` file.
485
+ * @default process.cwd()
486
+ */
487
+ root?: string
488
+ /**
489
+ * An array of parsers used to convert generated files to strings.
490
+ * Each parser handles specific file extensions (e.g. `.ts`, `.tsx`).
491
+ *
492
+ * A catch-all fallback parser is always appended last for any unhandled extension.
493
+ */
494
+ parsers?: Array<Parser>
495
+ /**
496
+ * Adapter that converts the input file into a `@kubb/ast` `InputNode`.
497
+ */
498
+ adapter?: Adapter
499
+ /**
500
+ * User-facing plugins can be either legacy createPlugin instances or hook-style plugins.
501
+ */
502
+ plugins?: Array<Omit<UserPlugin, 'inject'> | HookStylePlugin>
503
+ }
504
+
476
505
  /**
477
506
  * Handler for a single schema node. Used by the `schema` hook on a plugin.
478
507
  */