@kubb/plugin-zod 0.0.0-canary-20251209191624 → 0.0.0-canary-20251217084347
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/{components-BCKi8Hou.js → components-B9udp6Zi.js} +247 -200
- package/dist/components-B9udp6Zi.js.map +1 -0
- package/dist/{components-CwZBp5_M.cjs → components-DaK9uYjS.cjs} +246 -199
- package/dist/components-DaK9uYjS.cjs.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +1 -1
- package/dist/{generators-uL_Da-pi.js → generators-CsVZ9VoV.js} +3 -2
- package/dist/generators-CsVZ9VoV.js.map +1 -0
- package/dist/{generators-CCF0NvKr.cjs → generators-DphurGXq.cjs} +3 -2
- package/dist/generators-DphurGXq.cjs.map +1 -0
- package/dist/generators.cjs +1 -1
- package/dist/generators.d.cts +1 -1
- package/dist/generators.d.ts +1 -1
- package/dist/generators.js +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/{types-BJRQY0iM.d.ts → types-BIZhZG2K.d.ts} +61 -28
- package/dist/{types-DL8vhJwK.d.cts → types-BNjvGwN4.d.cts} +61 -28
- package/package.json +6 -6
- package/src/generators/zodGenerator.tsx +1 -0
- package/src/parser.ts +339 -300
- package/src/plugin.ts +2 -0
- package/dist/components-BCKi8Hou.js.map +0 -1
- package/dist/components-CwZBp5_M.cjs.map +0 -1
- package/dist/generators-CCF0NvKr.cjs.map +0 -1
- package/dist/generators-uL_Da-pi.js.map +0 -1
|
@@ -73,13 +73,35 @@ type DebugEvent = {
|
|
|
73
73
|
date: Date;
|
|
74
74
|
logs: string[];
|
|
75
75
|
fileName?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Category of the debug log, used for GitHub Actions grouping
|
|
78
|
+
* - 'setup': Initial configuration and environment setup
|
|
79
|
+
* - 'plugin': Plugin installation and execution
|
|
80
|
+
* - 'hook': Plugin hook execution details
|
|
81
|
+
* - 'schema': Schema parsing and generation
|
|
82
|
+
* - 'file': File operations (read/write/generate)
|
|
83
|
+
* - 'error': Error details and stack traces
|
|
84
|
+
* - undefined: Generic logs (always inline)
|
|
85
|
+
*/
|
|
86
|
+
category?: 'setup' | 'plugin' | 'hook' | 'schema' | 'file' | 'error';
|
|
87
|
+
/**
|
|
88
|
+
* Plugin name for grouping plugin-specific logs together
|
|
89
|
+
*/
|
|
90
|
+
pluginName?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Indicates if this is the start or end of a plugin's execution
|
|
93
|
+
* - 'start': Start of plugin execution group
|
|
94
|
+
* - 'end': End of plugin execution group
|
|
95
|
+
*/
|
|
96
|
+
pluginGroupMarker?: 'start' | 'end';
|
|
76
97
|
};
|
|
77
98
|
type Events$1 = {
|
|
78
99
|
start: [message: string];
|
|
79
100
|
success: [message: string];
|
|
80
|
-
error: [message: string,
|
|
101
|
+
error: [message: string, error: Error];
|
|
81
102
|
warning: [message: string];
|
|
82
103
|
debug: [DebugEvent];
|
|
104
|
+
verbose: [DebugEvent];
|
|
83
105
|
info: [message: string];
|
|
84
106
|
progress_start: [{
|
|
85
107
|
id: string;
|
|
@@ -103,7 +125,7 @@ type Logger = {
|
|
|
103
125
|
consola?: ConsolaInstance;
|
|
104
126
|
on: EventEmitter<Events$1>['on'];
|
|
105
127
|
emit: EventEmitter<Events$1>['emit'];
|
|
106
|
-
writeLogs: () => Promise<
|
|
128
|
+
writeLogs: () => Promise<void>;
|
|
107
129
|
};
|
|
108
130
|
//#endregion
|
|
109
131
|
//#region ../core/src/utils/types.d.ts
|
|
@@ -414,14 +436,35 @@ type Group = {
|
|
|
414
436
|
//#region ../core/src/PluginManager.d.ts
|
|
415
437
|
type RequiredPluginLifecycle = Required<PluginLifecycle>;
|
|
416
438
|
type Strategy = 'hookFirst' | 'hookForPlugin' | 'hookParallel' | 'hookSeq';
|
|
417
|
-
type
|
|
418
|
-
message: string;
|
|
439
|
+
type ExecutingMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
419
440
|
strategy: Strategy;
|
|
420
441
|
hookName: H;
|
|
421
442
|
plugin: Plugin;
|
|
422
443
|
parameters?: unknown[] | undefined;
|
|
423
444
|
output?: unknown;
|
|
424
445
|
};
|
|
446
|
+
type ExecutedMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
447
|
+
duration: number;
|
|
448
|
+
strategy: Strategy;
|
|
449
|
+
hookName: H;
|
|
450
|
+
plugin: Plugin;
|
|
451
|
+
parameters?: unknown[] | undefined;
|
|
452
|
+
output?: unknown;
|
|
453
|
+
};
|
|
454
|
+
type ErrorMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
455
|
+
hookName: H;
|
|
456
|
+
duration: number;
|
|
457
|
+
strategy: Strategy;
|
|
458
|
+
parameters?: unknown[] | undefined;
|
|
459
|
+
plugin: Plugin;
|
|
460
|
+
};
|
|
461
|
+
type ProgressStartMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
462
|
+
hookName: H;
|
|
463
|
+
plugins: Array<Plugin>;
|
|
464
|
+
};
|
|
465
|
+
type ProgressStopMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
466
|
+
hookName: H;
|
|
467
|
+
};
|
|
425
468
|
type ParseResult<H extends PluginLifecycleHooks> = RequiredPluginLifecycle[H];
|
|
426
469
|
type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseResult<H>>> = {
|
|
427
470
|
result: Result;
|
|
@@ -436,9 +479,11 @@ type Options$1 = {
|
|
|
436
479
|
concurrency?: number;
|
|
437
480
|
};
|
|
438
481
|
type Events = {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
482
|
+
progress_start: [meta: ProgressStartMeta];
|
|
483
|
+
progress_stop: [meta: ProgressStopMeta];
|
|
484
|
+
executing: [meta: ExecutingMeta];
|
|
485
|
+
executed: [meta: ExecutedMeta];
|
|
486
|
+
error: [error: Error, meta: ErrorMeta];
|
|
442
487
|
};
|
|
443
488
|
type GetFileProps<TOptions = object> = {
|
|
444
489
|
name: string;
|
|
@@ -451,8 +496,6 @@ declare class PluginManager {
|
|
|
451
496
|
#private;
|
|
452
497
|
readonly events: EventEmitter<Events>;
|
|
453
498
|
readonly config: Config;
|
|
454
|
-
readonly executed: Array<Executer>;
|
|
455
|
-
readonly logger: Logger;
|
|
456
499
|
readonly options: Options$1;
|
|
457
500
|
constructor(config: Config, options: Options$1);
|
|
458
501
|
getContext<TOptions extends PluginFactoryOptions>(plugin: Plugin<TOptions>): PluginContext<TOptions> & Record<string, any>;
|
|
@@ -478,13 +521,11 @@ declare class PluginManager {
|
|
|
478
521
|
hookForPlugin<H extends PluginLifecycleHooks>({
|
|
479
522
|
pluginKey,
|
|
480
523
|
hookName,
|
|
481
|
-
parameters
|
|
482
|
-
message
|
|
524
|
+
parameters
|
|
483
525
|
}: {
|
|
484
526
|
pluginKey: Plugin['key'];
|
|
485
527
|
hookName: H;
|
|
486
528
|
parameters: PluginParameter<H>;
|
|
487
|
-
message: string;
|
|
488
529
|
}): Promise<Array<ReturnType<ParseResult<H>> | null>>;
|
|
489
530
|
/**
|
|
490
531
|
* Run a specific hookName for plugin x.
|
|
@@ -492,13 +533,11 @@ declare class PluginManager {
|
|
|
492
533
|
hookForPluginSync<H extends PluginLifecycleHooks>({
|
|
493
534
|
pluginKey,
|
|
494
535
|
hookName,
|
|
495
|
-
parameters
|
|
496
|
-
message
|
|
536
|
+
parameters
|
|
497
537
|
}: {
|
|
498
538
|
pluginKey: Plugin['key'];
|
|
499
539
|
hookName: H;
|
|
500
540
|
parameters: PluginParameter<H>;
|
|
501
|
-
message: string;
|
|
502
541
|
}): Array<ReturnType<ParseResult<H>>> | null;
|
|
503
542
|
/**
|
|
504
543
|
* First non-null result stops and will return it's value.
|
|
@@ -506,13 +545,11 @@ declare class PluginManager {
|
|
|
506
545
|
hookFirst<H extends PluginLifecycleHooks>({
|
|
507
546
|
hookName,
|
|
508
547
|
parameters,
|
|
509
|
-
skipped
|
|
510
|
-
message
|
|
548
|
+
skipped
|
|
511
549
|
}: {
|
|
512
550
|
hookName: H;
|
|
513
551
|
parameters: PluginParameter<H>;
|
|
514
552
|
skipped?: ReadonlySet<Plugin> | null;
|
|
515
|
-
message: string;
|
|
516
553
|
}): Promise<SafeParseResult<H>>;
|
|
517
554
|
/**
|
|
518
555
|
* First non-null result stops and will return it's value.
|
|
@@ -520,37 +557,31 @@ declare class PluginManager {
|
|
|
520
557
|
hookFirstSync<H extends PluginLifecycleHooks>({
|
|
521
558
|
hookName,
|
|
522
559
|
parameters,
|
|
523
|
-
skipped
|
|
524
|
-
message
|
|
560
|
+
skipped
|
|
525
561
|
}: {
|
|
526
562
|
hookName: H;
|
|
527
563
|
parameters: PluginParameter<H>;
|
|
528
564
|
skipped?: ReadonlySet<Plugin> | null;
|
|
529
|
-
message: string;
|
|
530
565
|
}): SafeParseResult<H>;
|
|
531
566
|
/**
|
|
532
567
|
* Run all plugins in parallel(order will be based on `this.plugin` and if `pre` or `post` is set).
|
|
533
568
|
*/
|
|
534
569
|
hookParallel<H extends PluginLifecycleHooks, TOuput = void>({
|
|
535
570
|
hookName,
|
|
536
|
-
parameters
|
|
537
|
-
message
|
|
571
|
+
parameters
|
|
538
572
|
}: {
|
|
539
573
|
hookName: H;
|
|
540
574
|
parameters?: Parameters<RequiredPluginLifecycle[H]> | undefined;
|
|
541
|
-
message: string;
|
|
542
575
|
}): Promise<Awaited<TOuput>[]>;
|
|
543
576
|
/**
|
|
544
577
|
* Chains plugins
|
|
545
578
|
*/
|
|
546
579
|
hookSeq<H extends PluginLifecycleHooks>({
|
|
547
580
|
hookName,
|
|
548
|
-
parameters
|
|
549
|
-
message
|
|
581
|
+
parameters
|
|
550
582
|
}: {
|
|
551
583
|
hookName: H;
|
|
552
584
|
parameters?: PluginParameter<H>;
|
|
553
|
-
message: string;
|
|
554
585
|
}): Promise<void>;
|
|
555
586
|
getPluginByKey(pluginKey: Plugin['key']): Plugin | undefined;
|
|
556
587
|
getPluginsByKey(hookName: keyof PluginWithLifeCycle, pluginKey: Plugin['key']): Plugin[];
|
|
@@ -880,6 +911,7 @@ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
|
|
|
880
911
|
fabric: Fabric;
|
|
881
912
|
oas: Oas;
|
|
882
913
|
pluginManager: PluginManager;
|
|
914
|
+
logger?: Logger;
|
|
883
915
|
/**
|
|
884
916
|
* Current plugin
|
|
885
917
|
*/
|
|
@@ -984,6 +1016,7 @@ type Context<TOptions, TPluginOptions extends PluginFactoryOptions> = {
|
|
|
984
1016
|
override: Array<Override<TOptions>> | undefined;
|
|
985
1017
|
contentType: contentType | undefined;
|
|
986
1018
|
pluginManager: PluginManager;
|
|
1019
|
+
logger?: Logger;
|
|
987
1020
|
/**
|
|
988
1021
|
* Current plugin
|
|
989
1022
|
*/
|
|
@@ -1140,4 +1173,4 @@ type ResolvedOptions = {
|
|
|
1140
1173
|
type PluginZod = PluginFactoryOptions<'plugin-zod', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1141
1174
|
//#endregion
|
|
1142
1175
|
export { UserPluginWithLifeCycle as a, Schema as i, PluginZod as n, Operation$1 as o, ReactGenerator as r, SchemaObject$1 as s, Options as t };
|
|
1143
|
-
//# sourceMappingURL=types-
|
|
1176
|
+
//# sourceMappingURL=types-BIZhZG2K.d.ts.map
|
|
@@ -73,13 +73,35 @@ type DebugEvent = {
|
|
|
73
73
|
date: Date;
|
|
74
74
|
logs: string[];
|
|
75
75
|
fileName?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Category of the debug log, used for GitHub Actions grouping
|
|
78
|
+
* - 'setup': Initial configuration and environment setup
|
|
79
|
+
* - 'plugin': Plugin installation and execution
|
|
80
|
+
* - 'hook': Plugin hook execution details
|
|
81
|
+
* - 'schema': Schema parsing and generation
|
|
82
|
+
* - 'file': File operations (read/write/generate)
|
|
83
|
+
* - 'error': Error details and stack traces
|
|
84
|
+
* - undefined: Generic logs (always inline)
|
|
85
|
+
*/
|
|
86
|
+
category?: 'setup' | 'plugin' | 'hook' | 'schema' | 'file' | 'error';
|
|
87
|
+
/**
|
|
88
|
+
* Plugin name for grouping plugin-specific logs together
|
|
89
|
+
*/
|
|
90
|
+
pluginName?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Indicates if this is the start or end of a plugin's execution
|
|
93
|
+
* - 'start': Start of plugin execution group
|
|
94
|
+
* - 'end': End of plugin execution group
|
|
95
|
+
*/
|
|
96
|
+
pluginGroupMarker?: 'start' | 'end';
|
|
76
97
|
};
|
|
77
98
|
type Events$1 = {
|
|
78
99
|
start: [message: string];
|
|
79
100
|
success: [message: string];
|
|
80
|
-
error: [message: string,
|
|
101
|
+
error: [message: string, error: Error];
|
|
81
102
|
warning: [message: string];
|
|
82
103
|
debug: [DebugEvent];
|
|
104
|
+
verbose: [DebugEvent];
|
|
83
105
|
info: [message: string];
|
|
84
106
|
progress_start: [{
|
|
85
107
|
id: string;
|
|
@@ -103,7 +125,7 @@ type Logger = {
|
|
|
103
125
|
consola?: ConsolaInstance;
|
|
104
126
|
on: EventEmitter<Events$1>['on'];
|
|
105
127
|
emit: EventEmitter<Events$1>['emit'];
|
|
106
|
-
writeLogs: () => Promise<
|
|
128
|
+
writeLogs: () => Promise<void>;
|
|
107
129
|
};
|
|
108
130
|
//#endregion
|
|
109
131
|
//#region ../core/src/utils/types.d.ts
|
|
@@ -414,14 +436,35 @@ type Group = {
|
|
|
414
436
|
//#region ../core/src/PluginManager.d.ts
|
|
415
437
|
type RequiredPluginLifecycle = Required<PluginLifecycle>;
|
|
416
438
|
type Strategy = 'hookFirst' | 'hookForPlugin' | 'hookParallel' | 'hookSeq';
|
|
417
|
-
type
|
|
418
|
-
message: string;
|
|
439
|
+
type ExecutingMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
419
440
|
strategy: Strategy;
|
|
420
441
|
hookName: H;
|
|
421
442
|
plugin: Plugin;
|
|
422
443
|
parameters?: unknown[] | undefined;
|
|
423
444
|
output?: unknown;
|
|
424
445
|
};
|
|
446
|
+
type ExecutedMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
447
|
+
duration: number;
|
|
448
|
+
strategy: Strategy;
|
|
449
|
+
hookName: H;
|
|
450
|
+
plugin: Plugin;
|
|
451
|
+
parameters?: unknown[] | undefined;
|
|
452
|
+
output?: unknown;
|
|
453
|
+
};
|
|
454
|
+
type ErrorMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
455
|
+
hookName: H;
|
|
456
|
+
duration: number;
|
|
457
|
+
strategy: Strategy;
|
|
458
|
+
parameters?: unknown[] | undefined;
|
|
459
|
+
plugin: Plugin;
|
|
460
|
+
};
|
|
461
|
+
type ProgressStartMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
462
|
+
hookName: H;
|
|
463
|
+
plugins: Array<Plugin>;
|
|
464
|
+
};
|
|
465
|
+
type ProgressStopMeta<H extends PluginLifecycleHooks = PluginLifecycleHooks> = {
|
|
466
|
+
hookName: H;
|
|
467
|
+
};
|
|
425
468
|
type ParseResult<H extends PluginLifecycleHooks> = RequiredPluginLifecycle[H];
|
|
426
469
|
type SafeParseResult<H extends PluginLifecycleHooks, Result = ReturnType<ParseResult<H>>> = {
|
|
427
470
|
result: Result;
|
|
@@ -436,9 +479,11 @@ type Options$1 = {
|
|
|
436
479
|
concurrency?: number;
|
|
437
480
|
};
|
|
438
481
|
type Events = {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
482
|
+
progress_start: [meta: ProgressStartMeta];
|
|
483
|
+
progress_stop: [meta: ProgressStopMeta];
|
|
484
|
+
executing: [meta: ExecutingMeta];
|
|
485
|
+
executed: [meta: ExecutedMeta];
|
|
486
|
+
error: [error: Error, meta: ErrorMeta];
|
|
442
487
|
};
|
|
443
488
|
type GetFileProps<TOptions = object> = {
|
|
444
489
|
name: string;
|
|
@@ -451,8 +496,6 @@ declare class PluginManager {
|
|
|
451
496
|
#private;
|
|
452
497
|
readonly events: EventEmitter<Events>;
|
|
453
498
|
readonly config: Config;
|
|
454
|
-
readonly executed: Array<Executer>;
|
|
455
|
-
readonly logger: Logger;
|
|
456
499
|
readonly options: Options$1;
|
|
457
500
|
constructor(config: Config, options: Options$1);
|
|
458
501
|
getContext<TOptions extends PluginFactoryOptions>(plugin: Plugin<TOptions>): PluginContext<TOptions> & Record<string, any>;
|
|
@@ -478,13 +521,11 @@ declare class PluginManager {
|
|
|
478
521
|
hookForPlugin<H extends PluginLifecycleHooks>({
|
|
479
522
|
pluginKey,
|
|
480
523
|
hookName,
|
|
481
|
-
parameters
|
|
482
|
-
message
|
|
524
|
+
parameters
|
|
483
525
|
}: {
|
|
484
526
|
pluginKey: Plugin['key'];
|
|
485
527
|
hookName: H;
|
|
486
528
|
parameters: PluginParameter<H>;
|
|
487
|
-
message: string;
|
|
488
529
|
}): Promise<Array<ReturnType<ParseResult<H>> | null>>;
|
|
489
530
|
/**
|
|
490
531
|
* Run a specific hookName for plugin x.
|
|
@@ -492,13 +533,11 @@ declare class PluginManager {
|
|
|
492
533
|
hookForPluginSync<H extends PluginLifecycleHooks>({
|
|
493
534
|
pluginKey,
|
|
494
535
|
hookName,
|
|
495
|
-
parameters
|
|
496
|
-
message
|
|
536
|
+
parameters
|
|
497
537
|
}: {
|
|
498
538
|
pluginKey: Plugin['key'];
|
|
499
539
|
hookName: H;
|
|
500
540
|
parameters: PluginParameter<H>;
|
|
501
|
-
message: string;
|
|
502
541
|
}): Array<ReturnType<ParseResult<H>>> | null;
|
|
503
542
|
/**
|
|
504
543
|
* First non-null result stops and will return it's value.
|
|
@@ -506,13 +545,11 @@ declare class PluginManager {
|
|
|
506
545
|
hookFirst<H extends PluginLifecycleHooks>({
|
|
507
546
|
hookName,
|
|
508
547
|
parameters,
|
|
509
|
-
skipped
|
|
510
|
-
message
|
|
548
|
+
skipped
|
|
511
549
|
}: {
|
|
512
550
|
hookName: H;
|
|
513
551
|
parameters: PluginParameter<H>;
|
|
514
552
|
skipped?: ReadonlySet<Plugin> | null;
|
|
515
|
-
message: string;
|
|
516
553
|
}): Promise<SafeParseResult<H>>;
|
|
517
554
|
/**
|
|
518
555
|
* First non-null result stops and will return it's value.
|
|
@@ -520,37 +557,31 @@ declare class PluginManager {
|
|
|
520
557
|
hookFirstSync<H extends PluginLifecycleHooks>({
|
|
521
558
|
hookName,
|
|
522
559
|
parameters,
|
|
523
|
-
skipped
|
|
524
|
-
message
|
|
560
|
+
skipped
|
|
525
561
|
}: {
|
|
526
562
|
hookName: H;
|
|
527
563
|
parameters: PluginParameter<H>;
|
|
528
564
|
skipped?: ReadonlySet<Plugin> | null;
|
|
529
|
-
message: string;
|
|
530
565
|
}): SafeParseResult<H>;
|
|
531
566
|
/**
|
|
532
567
|
* Run all plugins in parallel(order will be based on `this.plugin` and if `pre` or `post` is set).
|
|
533
568
|
*/
|
|
534
569
|
hookParallel<H extends PluginLifecycleHooks, TOuput = void>({
|
|
535
570
|
hookName,
|
|
536
|
-
parameters
|
|
537
|
-
message
|
|
571
|
+
parameters
|
|
538
572
|
}: {
|
|
539
573
|
hookName: H;
|
|
540
574
|
parameters?: Parameters<RequiredPluginLifecycle[H]> | undefined;
|
|
541
|
-
message: string;
|
|
542
575
|
}): Promise<Awaited<TOuput>[]>;
|
|
543
576
|
/**
|
|
544
577
|
* Chains plugins
|
|
545
578
|
*/
|
|
546
579
|
hookSeq<H extends PluginLifecycleHooks>({
|
|
547
580
|
hookName,
|
|
548
|
-
parameters
|
|
549
|
-
message
|
|
581
|
+
parameters
|
|
550
582
|
}: {
|
|
551
583
|
hookName: H;
|
|
552
584
|
parameters?: PluginParameter<H>;
|
|
553
|
-
message: string;
|
|
554
585
|
}): Promise<void>;
|
|
555
586
|
getPluginByKey(pluginKey: Plugin['key']): Plugin | undefined;
|
|
556
587
|
getPluginsByKey(hookName: keyof PluginWithLifeCycle, pluginKey: Plugin['key']): Plugin[];
|
|
@@ -880,6 +911,7 @@ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
|
|
|
880
911
|
fabric: Fabric;
|
|
881
912
|
oas: Oas;
|
|
882
913
|
pluginManager: PluginManager;
|
|
914
|
+
logger?: Logger;
|
|
883
915
|
/**
|
|
884
916
|
* Current plugin
|
|
885
917
|
*/
|
|
@@ -984,6 +1016,7 @@ type Context<TOptions, TPluginOptions extends PluginFactoryOptions> = {
|
|
|
984
1016
|
override: Array<Override<TOptions>> | undefined;
|
|
985
1017
|
contentType: contentType | undefined;
|
|
986
1018
|
pluginManager: PluginManager;
|
|
1019
|
+
logger?: Logger;
|
|
987
1020
|
/**
|
|
988
1021
|
* Current plugin
|
|
989
1022
|
*/
|
|
@@ -1140,4 +1173,4 @@ type ResolvedOptions = {
|
|
|
1140
1173
|
type PluginZod = PluginFactoryOptions<'plugin-zod', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
1141
1174
|
//#endregion
|
|
1142
1175
|
export { UserPluginWithLifeCycle as a, Schema as i, PluginZod as n, Operation$1 as o, ReactGenerator as r, SchemaObject$1 as s, Options as t };
|
|
1143
|
-
//# sourceMappingURL=types-
|
|
1176
|
+
//# sourceMappingURL=types-BNjvGwN4.d.cts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-zod",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251217084347",
|
|
4
4
|
"description": "Zod schema generator plugin for Kubb, creating type-safe validation schemas from OpenAPI specifications for runtime data validation.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"zod",
|
|
@@ -69,16 +69,16 @@
|
|
|
69
69
|
],
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@kubb/react-fabric": "0.5.4",
|
|
72
|
-
"@kubb/core": "0.0.0-canary-
|
|
73
|
-
"@kubb/oas": "0.0.0-canary-
|
|
74
|
-
"@kubb/plugin-oas": "0.0.0-canary-
|
|
75
|
-
"@kubb/plugin-ts": "0.0.0-canary-
|
|
72
|
+
"@kubb/core": "0.0.0-canary-20251217084347",
|
|
73
|
+
"@kubb/oas": "0.0.0-canary-20251217084347",
|
|
74
|
+
"@kubb/plugin-oas": "0.0.0-canary-20251217084347",
|
|
75
|
+
"@kubb/plugin-ts": "0.0.0-canary-20251217084347"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
78
|
"@asteasolutions/zod-to-openapi": "^8.2.0",
|
|
79
79
|
"@hono/zod-openapi": "0.19.2",
|
|
80
80
|
"zod": "^3.25.76",
|
|
81
|
-
"@kubb/plugin-oas": "0.0.0-canary-
|
|
81
|
+
"@kubb/plugin-oas": "0.0.0-canary-20251217084347"
|
|
82
82
|
},
|
|
83
83
|
"engines": {
|
|
84
84
|
"node": ">=20"
|