@kubb/plugin-mcp 4.5.2 → 4.5.3

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.
@@ -1,4 +1,4 @@
1
- import { a as OperationSchemas } from "./index-C_nVtJQu.cjs";
1
+ import { a as OperationSchemas } from "./index-DGu4JXGO.cjs";
2
2
  import { KubbFile } from "@kubb/fabric-core/types";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,4 +1,4 @@
1
- import { a as OperationSchemas } from "./index-gt-MUKWq.js";
1
+ import { a as OperationSchemas } from "./index-N84Gd3PO.js";
2
2
  import { KubbFile } from "@kubb/fabric-core/types";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,5 +1,5 @@
1
- import { n as ReactGenerator } from "./index-C_nVtJQu.cjs";
2
- import { n as PluginMcp } from "./types-SQo1omqs.cjs";
1
+ import { n as ReactGenerator } from "./index-DGu4JXGO.cjs";
2
+ import { n as PluginMcp } from "./types-CIzi60s5.cjs";
3
3
 
4
4
  //#region src/generators/mcpGenerator.d.ts
5
5
  declare const mcpGenerator: ReactGenerator<PluginMcp>;
@@ -1,5 +1,5 @@
1
- import { n as ReactGenerator } from "./index-gt-MUKWq.js";
2
- import { n as PluginMcp } from "./types-DJTMVuHu.js";
1
+ import { n as ReactGenerator } from "./index-N84Gd3PO.js";
2
+ import { n as PluginMcp } from "./types-BPf1BfNR.js";
3
3
 
4
4
  //#region src/generators/mcpGenerator.d.ts
5
5
  declare const mcpGenerator: ReactGenerator<PluginMcp>;
@@ -554,6 +554,133 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
554
554
  valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
555
555
  }
556
556
  //#endregion
557
+ //#region ../plugin-oas/src/types.d.ts
558
+ type Context$2 = {
559
+ getOas(): Promise<Oas>;
560
+ getBaseURL(): Promise<string | undefined>;
561
+ };
562
+ declare global {
563
+ namespace Kubb {
564
+ interface PluginContext extends Context$2 {}
565
+ }
566
+ }
567
+ type ResolvePathOptions = {
568
+ pluginKey?: Plugin['key'];
569
+ group?: {
570
+ tag?: string;
571
+ path?: string;
572
+ };
573
+ type?: ResolveNameParams['type'];
574
+ };
575
+ /**
576
+ * `propertyName` is the ref name + resolved with the nameResolver
577
+ * @example import { Pet } from './Pet'
578
+ *
579
+ * `originalName` is the original name used(in PascalCase), only used to remove duplicates
580
+ *
581
+ * `pluginKey` can be used to override the current plugin being used, handy when you want to import a type/schema out of another plugin
582
+ * @example import a type(plugin-ts) for a mock file(swagger-faker)
583
+ */
584
+ type Ref = {
585
+ propertyName: string;
586
+ originalName: string;
587
+ path: KubbFile.Path;
588
+ pluginKey?: Plugin['key'];
589
+ };
590
+ type Refs = Record<string, Ref>;
591
+ type OperationSchema = {
592
+ /**
593
+ * Converted name, contains already `PathParams`, `QueryParams`, ...
594
+ */
595
+ name: string;
596
+ schema: SchemaObject$1;
597
+ operation?: Operation$1;
598
+ /**
599
+ * OperationName in PascalCase, only being used in OperationGenerator
600
+ */
601
+ operationName: string;
602
+ description?: string;
603
+ statusCode?: number;
604
+ keys?: string[];
605
+ keysToOmit?: string[];
606
+ withData?: boolean;
607
+ };
608
+ type OperationSchemas = {
609
+ pathParams?: OperationSchema & {
610
+ keysToOmit?: never;
611
+ };
612
+ queryParams?: OperationSchema & {
613
+ keysToOmit?: never;
614
+ };
615
+ headerParams?: OperationSchema & {
616
+ keysToOmit?: never;
617
+ };
618
+ request?: OperationSchema;
619
+ response: OperationSchema;
620
+ responses: Array<OperationSchema>;
621
+ statusCodes?: Array<OperationSchema>;
622
+ errors?: Array<OperationSchema>;
623
+ };
624
+ type ByTag = {
625
+ type: 'tag';
626
+ pattern: string | RegExp;
627
+ };
628
+ type ByOperationId = {
629
+ type: 'operationId';
630
+ pattern: string | RegExp;
631
+ };
632
+ type ByPath = {
633
+ type: 'path';
634
+ pattern: string | RegExp;
635
+ };
636
+ type ByMethod = {
637
+ type: 'method';
638
+ pattern: HttpMethod | RegExp;
639
+ };
640
+ type BySchemaName = {
641
+ type: 'schemaName';
642
+ pattern: string | RegExp;
643
+ };
644
+ type ByContentType = {
645
+ type: 'contentType';
646
+ pattern: string | RegExp;
647
+ };
648
+ type Exclude$1 = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
649
+ type Include = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
650
+ type Override<TOptions> = (ByTag | ByOperationId | ByPath | ByMethod | BySchemaName | ByContentType) & {
651
+ options: Partial<TOptions>;
652
+ };
653
+ //#endregion
654
+ //#region ../plugin-oas/src/OperationGenerator.d.ts
655
+ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
656
+ fabric: Fabric;
657
+ oas: Oas;
658
+ exclude: Array<Exclude$1> | undefined;
659
+ include: Array<Include> | undefined;
660
+ override: Array<Override<TOptions>> | undefined;
661
+ contentType: contentType | undefined;
662
+ pluginManager: PluginManager;
663
+ /**
664
+ * Current plugin
665
+ */
666
+ plugin: Plugin<TPluginOptions>;
667
+ mode: KubbFile.Mode;
668
+ };
669
+ declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context$1<TPluginOptions['resolvedOptions'], TPluginOptions>> {
670
+ #private;
671
+ getSchemas(operation: Operation$1, {
672
+ resolveName
673
+ }?: {
674
+ resolveName?: (name: string) => string;
675
+ }): OperationSchemas;
676
+ getOperations(): Promise<Array<{
677
+ path: string;
678
+ method: HttpMethod;
679
+ operation: Operation$1;
680
+ }>>;
681
+ build(...generators: Array<Generator<TPluginOptions>>): Promise<Array<KubbFile.File<TFileMeta>>>;
682
+ }
683
+ //#endregion
557
684
  //#region ../plugin-oas/src/SchemaMapper.d.ts
558
685
  type SchemaKeywordMapper = {
559
686
  object: {
@@ -771,105 +898,8 @@ type Schema = {
771
898
  keyword: string;
772
899
  } | SchemaKeywordMapper[keyof SchemaKeywordMapper];
773
900
  //#endregion
774
- //#region ../plugin-oas/src/types.d.ts
775
- type Context$2 = {
776
- getOas(): Promise<Oas>;
777
- getBaseURL(): Promise<string | undefined>;
778
- };
779
- declare global {
780
- namespace Kubb {
781
- interface PluginContext extends Context$2 {}
782
- }
783
- }
784
- type ResolvePathOptions = {
785
- pluginKey?: Plugin['key'];
786
- group?: {
787
- tag?: string;
788
- path?: string;
789
- };
790
- type?: ResolveNameParams['type'];
791
- };
792
- /**
793
- * `propertyName` is the ref name + resolved with the nameResolver
794
- * @example import { Pet } from './Pet'
795
- *
796
- * `originalName` is the original name used(in PascalCase), only used to remove duplicates
797
- *
798
- * `pluginKey` can be used to override the current plugin being used, handy when you want to import a type/schema out of another plugin
799
- * @example import a type(plugin-ts) for a mock file(swagger-faker)
800
- */
801
- type Ref = {
802
- propertyName: string;
803
- originalName: string;
804
- path: KubbFile.Path;
805
- pluginKey?: Plugin['key'];
806
- };
807
- type Refs = Record<string, Ref>;
808
- type OperationSchema = {
809
- /**
810
- * Converted name, contains already `PathParams`, `QueryParams`, ...
811
- */
812
- name: string;
813
- schema: SchemaObject$1;
814
- operation?: Operation$1;
815
- /**
816
- * OperationName in PascalCase, only being used in OperationGenerator
817
- */
818
- operationName: string;
819
- description?: string;
820
- statusCode?: number;
821
- keys?: string[];
822
- keysToOmit?: string[];
823
- withData?: boolean;
824
- };
825
- type OperationSchemas = {
826
- pathParams?: OperationSchema & {
827
- keysToOmit?: never;
828
- };
829
- queryParams?: OperationSchema & {
830
- keysToOmit?: never;
831
- };
832
- headerParams?: OperationSchema & {
833
- keysToOmit?: never;
834
- };
835
- request?: OperationSchema;
836
- response: OperationSchema;
837
- responses: Array<OperationSchema>;
838
- statusCodes?: Array<OperationSchema>;
839
- errors?: Array<OperationSchema>;
840
- };
841
- type ByTag = {
842
- type: 'tag';
843
- pattern: string | RegExp;
844
- };
845
- type ByOperationId = {
846
- type: 'operationId';
847
- pattern: string | RegExp;
848
- };
849
- type ByPath = {
850
- type: 'path';
851
- pattern: string | RegExp;
852
- };
853
- type ByMethod = {
854
- type: 'method';
855
- pattern: HttpMethod | RegExp;
856
- };
857
- type BySchemaName = {
858
- type: 'schemaName';
859
- pattern: string | RegExp;
860
- };
861
- type ByContentType = {
862
- type: 'contentType';
863
- pattern: string | RegExp;
864
- };
865
- type Exclude$1 = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
866
- type Include = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
867
- type Override<TOptions> = (ByTag | ByOperationId | ByPath | ByMethod | BySchemaName | ByContentType) & {
868
- options: Partial<TOptions>;
869
- };
870
- //#endregion
871
901
  //#region ../plugin-oas/src/SchemaGenerator.d.ts
872
- type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
902
+ type Context<TOptions, TPluginOptions extends PluginFactoryOptions> = {
873
903
  fabric: Fabric;
874
904
  oas: Oas;
875
905
  pluginManager: PluginManager;
@@ -910,7 +940,7 @@ type SchemaProps$1 = {
910
940
  name?: string;
911
941
  parentName?: string;
912
942
  };
913
- declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context$1<TOptions, TPluginOptions>> {
943
+ declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
914
944
  #private;
915
945
  refs: Refs;
916
946
  /**
@@ -925,15 +955,6 @@ declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGe
925
955
  build(...generators: Array<Generator<TPluginOptions>>): Promise<Array<KubbFile.File<TFileMeta>>>;
926
956
  }
927
957
  //#endregion
928
- //#region ../plugin-oas/src/generators/createGenerator.d.ts
929
- type CoreGenerator<TOptions extends PluginFactoryOptions> = {
930
- name: string;
931
- type: 'core';
932
- operations: (props: OperationsProps<TOptions>) => Promise<KubbFile.File[]>;
933
- operation: (props: OperationProps<TOptions>) => Promise<KubbFile.File[]>;
934
- schema: (props: SchemaProps<TOptions>) => Promise<KubbFile.File[]>;
935
- };
936
- //#endregion
937
958
  //#region ../plugin-oas/src/generators/createReactGenerator.d.ts
938
959
  type ReactGenerator<TOptions extends PluginFactoryOptions> = {
939
960
  name: string;
@@ -968,35 +989,14 @@ type SchemaProps<TOptions extends PluginFactoryOptions> = {
968
989
  };
969
990
  type Generator<TOptions extends PluginFactoryOptions> = CoreGenerator<TOptions> | ReactGenerator<TOptions>;
970
991
  //#endregion
971
- //#region ../plugin-oas/src/OperationGenerator.d.ts
972
- type Context<TOptions, TPluginOptions extends PluginFactoryOptions> = {
973
- fabric: Fabric;
974
- oas: Oas;
975
- exclude: Array<Exclude$1> | undefined;
976
- include: Array<Include> | undefined;
977
- override: Array<Override<TOptions>> | undefined;
978
- contentType: contentType | undefined;
979
- pluginManager: PluginManager;
980
- /**
981
- * Current plugin
982
- */
983
- plugin: Plugin<TPluginOptions>;
984
- mode: KubbFile.Mode;
992
+ //#region ../plugin-oas/src/generators/createGenerator.d.ts
993
+ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
994
+ name: string;
995
+ type: 'core';
996
+ operations: (props: OperationsProps<TOptions>) => Promise<KubbFile.File[]>;
997
+ operation: (props: OperationProps<TOptions>) => Promise<KubbFile.File[]>;
998
+ schema: (props: SchemaProps<TOptions>) => Promise<KubbFile.File[]>;
985
999
  };
986
- declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context<TPluginOptions['resolvedOptions'], TPluginOptions>> {
987
- #private;
988
- getSchemas(operation: Operation$1, {
989
- resolveName
990
- }?: {
991
- resolveName?: (name: string) => string;
992
- }): OperationSchemas;
993
- getOperations(): Promise<Array<{
994
- path: string;
995
- method: HttpMethod;
996
- operation: Operation$1;
997
- }>>;
998
- build(...generators: Array<Generator<TPluginOptions>>): Promise<Array<KubbFile.File<TFileMeta>>>;
999
- }
1000
1000
  //#endregion
1001
1001
  export { OperationSchemas as a, Oas as c, Output as d, PluginFactoryOptions as f, Include as i, contentType as l, UserPluginWithLifeCycle as m, ReactGenerator as n, Override as o, ResolveNameParams as p, Exclude$1 as r, ResolvePathOptions as s, Generator as t, Group as u };
1002
- //# sourceMappingURL=index-C_nVtJQu.d.cts.map
1002
+ //# sourceMappingURL=index-DGu4JXGO.d.cts.map
@@ -554,6 +554,133 @@ declare class Oas<const TOAS = unknown> extends BaseOas {
554
554
  valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
555
555
  }
556
556
  //#endregion
557
+ //#region ../plugin-oas/src/types.d.ts
558
+ type Context$2 = {
559
+ getOas(): Promise<Oas>;
560
+ getBaseURL(): Promise<string | undefined>;
561
+ };
562
+ declare global {
563
+ namespace Kubb {
564
+ interface PluginContext extends Context$2 {}
565
+ }
566
+ }
567
+ type ResolvePathOptions = {
568
+ pluginKey?: Plugin['key'];
569
+ group?: {
570
+ tag?: string;
571
+ path?: string;
572
+ };
573
+ type?: ResolveNameParams['type'];
574
+ };
575
+ /**
576
+ * `propertyName` is the ref name + resolved with the nameResolver
577
+ * @example import { Pet } from './Pet'
578
+ *
579
+ * `originalName` is the original name used(in PascalCase), only used to remove duplicates
580
+ *
581
+ * `pluginKey` can be used to override the current plugin being used, handy when you want to import a type/schema out of another plugin
582
+ * @example import a type(plugin-ts) for a mock file(swagger-faker)
583
+ */
584
+ type Ref = {
585
+ propertyName: string;
586
+ originalName: string;
587
+ path: KubbFile.Path;
588
+ pluginKey?: Plugin['key'];
589
+ };
590
+ type Refs = Record<string, Ref>;
591
+ type OperationSchema = {
592
+ /**
593
+ * Converted name, contains already `PathParams`, `QueryParams`, ...
594
+ */
595
+ name: string;
596
+ schema: SchemaObject$1;
597
+ operation?: Operation$1;
598
+ /**
599
+ * OperationName in PascalCase, only being used in OperationGenerator
600
+ */
601
+ operationName: string;
602
+ description?: string;
603
+ statusCode?: number;
604
+ keys?: string[];
605
+ keysToOmit?: string[];
606
+ withData?: boolean;
607
+ };
608
+ type OperationSchemas = {
609
+ pathParams?: OperationSchema & {
610
+ keysToOmit?: never;
611
+ };
612
+ queryParams?: OperationSchema & {
613
+ keysToOmit?: never;
614
+ };
615
+ headerParams?: OperationSchema & {
616
+ keysToOmit?: never;
617
+ };
618
+ request?: OperationSchema;
619
+ response: OperationSchema;
620
+ responses: Array<OperationSchema>;
621
+ statusCodes?: Array<OperationSchema>;
622
+ errors?: Array<OperationSchema>;
623
+ };
624
+ type ByTag = {
625
+ type: 'tag';
626
+ pattern: string | RegExp;
627
+ };
628
+ type ByOperationId = {
629
+ type: 'operationId';
630
+ pattern: string | RegExp;
631
+ };
632
+ type ByPath = {
633
+ type: 'path';
634
+ pattern: string | RegExp;
635
+ };
636
+ type ByMethod = {
637
+ type: 'method';
638
+ pattern: HttpMethod | RegExp;
639
+ };
640
+ type BySchemaName = {
641
+ type: 'schemaName';
642
+ pattern: string | RegExp;
643
+ };
644
+ type ByContentType = {
645
+ type: 'contentType';
646
+ pattern: string | RegExp;
647
+ };
648
+ type Exclude$1 = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
649
+ type Include = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
650
+ type Override<TOptions> = (ByTag | ByOperationId | ByPath | ByMethod | BySchemaName | ByContentType) & {
651
+ options: Partial<TOptions>;
652
+ };
653
+ //#endregion
654
+ //#region ../plugin-oas/src/OperationGenerator.d.ts
655
+ type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
656
+ fabric: Fabric;
657
+ oas: Oas;
658
+ exclude: Array<Exclude$1> | undefined;
659
+ include: Array<Include> | undefined;
660
+ override: Array<Override<TOptions>> | undefined;
661
+ contentType: contentType | undefined;
662
+ pluginManager: PluginManager;
663
+ /**
664
+ * Current plugin
665
+ */
666
+ plugin: Plugin<TPluginOptions>;
667
+ mode: KubbFile.Mode;
668
+ };
669
+ declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context$1<TPluginOptions['resolvedOptions'], TPluginOptions>> {
670
+ #private;
671
+ getSchemas(operation: Operation$1, {
672
+ resolveName
673
+ }?: {
674
+ resolveName?: (name: string) => string;
675
+ }): OperationSchemas;
676
+ getOperations(): Promise<Array<{
677
+ path: string;
678
+ method: HttpMethod;
679
+ operation: Operation$1;
680
+ }>>;
681
+ build(...generators: Array<Generator<TPluginOptions>>): Promise<Array<KubbFile.File<TFileMeta>>>;
682
+ }
683
+ //#endregion
557
684
  //#region ../plugin-oas/src/SchemaMapper.d.ts
558
685
  type SchemaKeywordMapper = {
559
686
  object: {
@@ -771,105 +898,8 @@ type Schema = {
771
898
  keyword: string;
772
899
  } | SchemaKeywordMapper[keyof SchemaKeywordMapper];
773
900
  //#endregion
774
- //#region ../plugin-oas/src/types.d.ts
775
- type Context$2 = {
776
- getOas(): Promise<Oas>;
777
- getBaseURL(): Promise<string | undefined>;
778
- };
779
- declare global {
780
- namespace Kubb {
781
- interface PluginContext extends Context$2 {}
782
- }
783
- }
784
- type ResolvePathOptions = {
785
- pluginKey?: Plugin['key'];
786
- group?: {
787
- tag?: string;
788
- path?: string;
789
- };
790
- type?: ResolveNameParams['type'];
791
- };
792
- /**
793
- * `propertyName` is the ref name + resolved with the nameResolver
794
- * @example import { Pet } from './Pet'
795
- *
796
- * `originalName` is the original name used(in PascalCase), only used to remove duplicates
797
- *
798
- * `pluginKey` can be used to override the current plugin being used, handy when you want to import a type/schema out of another plugin
799
- * @example import a type(plugin-ts) for a mock file(swagger-faker)
800
- */
801
- type Ref = {
802
- propertyName: string;
803
- originalName: string;
804
- path: KubbFile.Path;
805
- pluginKey?: Plugin['key'];
806
- };
807
- type Refs = Record<string, Ref>;
808
- type OperationSchema = {
809
- /**
810
- * Converted name, contains already `PathParams`, `QueryParams`, ...
811
- */
812
- name: string;
813
- schema: SchemaObject$1;
814
- operation?: Operation$1;
815
- /**
816
- * OperationName in PascalCase, only being used in OperationGenerator
817
- */
818
- operationName: string;
819
- description?: string;
820
- statusCode?: number;
821
- keys?: string[];
822
- keysToOmit?: string[];
823
- withData?: boolean;
824
- };
825
- type OperationSchemas = {
826
- pathParams?: OperationSchema & {
827
- keysToOmit?: never;
828
- };
829
- queryParams?: OperationSchema & {
830
- keysToOmit?: never;
831
- };
832
- headerParams?: OperationSchema & {
833
- keysToOmit?: never;
834
- };
835
- request?: OperationSchema;
836
- response: OperationSchema;
837
- responses: Array<OperationSchema>;
838
- statusCodes?: Array<OperationSchema>;
839
- errors?: Array<OperationSchema>;
840
- };
841
- type ByTag = {
842
- type: 'tag';
843
- pattern: string | RegExp;
844
- };
845
- type ByOperationId = {
846
- type: 'operationId';
847
- pattern: string | RegExp;
848
- };
849
- type ByPath = {
850
- type: 'path';
851
- pattern: string | RegExp;
852
- };
853
- type ByMethod = {
854
- type: 'method';
855
- pattern: HttpMethod | RegExp;
856
- };
857
- type BySchemaName = {
858
- type: 'schemaName';
859
- pattern: string | RegExp;
860
- };
861
- type ByContentType = {
862
- type: 'contentType';
863
- pattern: string | RegExp;
864
- };
865
- type Exclude$1 = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
866
- type Include = ByTag | ByOperationId | ByPath | ByMethod | ByContentType;
867
- type Override<TOptions> = (ByTag | ByOperationId | ByPath | ByMethod | BySchemaName | ByContentType) & {
868
- options: Partial<TOptions>;
869
- };
870
- //#endregion
871
901
  //#region ../plugin-oas/src/SchemaGenerator.d.ts
872
- type Context$1<TOptions, TPluginOptions extends PluginFactoryOptions> = {
902
+ type Context<TOptions, TPluginOptions extends PluginFactoryOptions> = {
873
903
  fabric: Fabric;
874
904
  oas: Oas;
875
905
  pluginManager: PluginManager;
@@ -910,7 +940,7 @@ type SchemaProps$1 = {
910
940
  name?: string;
911
941
  parentName?: string;
912
942
  };
913
- declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context$1<TOptions, TPluginOptions>> {
943
+ declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
914
944
  #private;
915
945
  refs: Refs;
916
946
  /**
@@ -925,15 +955,6 @@ declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGe
925
955
  build(...generators: Array<Generator<TPluginOptions>>): Promise<Array<KubbFile.File<TFileMeta>>>;
926
956
  }
927
957
  //#endregion
928
- //#region ../plugin-oas/src/generators/createGenerator.d.ts
929
- type CoreGenerator<TOptions extends PluginFactoryOptions> = {
930
- name: string;
931
- type: 'core';
932
- operations: (props: OperationsProps<TOptions>) => Promise<KubbFile.File[]>;
933
- operation: (props: OperationProps<TOptions>) => Promise<KubbFile.File[]>;
934
- schema: (props: SchemaProps<TOptions>) => Promise<KubbFile.File[]>;
935
- };
936
- //#endregion
937
958
  //#region ../plugin-oas/src/generators/createReactGenerator.d.ts
938
959
  type ReactGenerator<TOptions extends PluginFactoryOptions> = {
939
960
  name: string;
@@ -968,35 +989,14 @@ type SchemaProps<TOptions extends PluginFactoryOptions> = {
968
989
  };
969
990
  type Generator<TOptions extends PluginFactoryOptions> = CoreGenerator<TOptions> | ReactGenerator<TOptions>;
970
991
  //#endregion
971
- //#region ../plugin-oas/src/OperationGenerator.d.ts
972
- type Context<TOptions, TPluginOptions extends PluginFactoryOptions> = {
973
- fabric: Fabric;
974
- oas: Oas;
975
- exclude: Array<Exclude$1> | undefined;
976
- include: Array<Include> | undefined;
977
- override: Array<Override<TOptions>> | undefined;
978
- contentType: contentType | undefined;
979
- pluginManager: PluginManager;
980
- /**
981
- * Current plugin
982
- */
983
- plugin: Plugin<TPluginOptions>;
984
- mode: KubbFile.Mode;
992
+ //#region ../plugin-oas/src/generators/createGenerator.d.ts
993
+ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
994
+ name: string;
995
+ type: 'core';
996
+ operations: (props: OperationsProps<TOptions>) => Promise<KubbFile.File[]>;
997
+ operation: (props: OperationProps<TOptions>) => Promise<KubbFile.File[]>;
998
+ schema: (props: SchemaProps<TOptions>) => Promise<KubbFile.File[]>;
985
999
  };
986
- declare class OperationGenerator<TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TPluginOptions['resolvedOptions'], Context<TPluginOptions['resolvedOptions'], TPluginOptions>> {
987
- #private;
988
- getSchemas(operation: Operation$1, {
989
- resolveName
990
- }?: {
991
- resolveName?: (name: string) => string;
992
- }): OperationSchemas;
993
- getOperations(): Promise<Array<{
994
- path: string;
995
- method: HttpMethod;
996
- operation: Operation$1;
997
- }>>;
998
- build(...generators: Array<Generator<TPluginOptions>>): Promise<Array<KubbFile.File<TFileMeta>>>;
999
- }
1000
1000
  //#endregion
1001
1001
  export { OperationSchemas as a, Oas as c, Output as d, PluginFactoryOptions as f, Include as i, contentType as l, UserPluginWithLifeCycle as m, ReactGenerator as n, Override as o, ResolveNameParams as p, Exclude$1 as r, ResolvePathOptions as s, Generator as t, Group as u };
1002
- //# sourceMappingURL=index-gt-MUKWq.d.ts.map
1002
+ //# sourceMappingURL=index-N84Gd3PO.d.ts.map
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { m as UserPluginWithLifeCycle } from "./index-C_nVtJQu.cjs";
2
- import { n as PluginMcp, t as Options } from "./types-SQo1omqs.cjs";
1
+ import { m as UserPluginWithLifeCycle } from "./index-DGu4JXGO.cjs";
2
+ import { n as PluginMcp, t as Options } from "./types-CIzi60s5.cjs";
3
3
 
4
4
  //#region src/plugin.d.ts
5
5
  declare const pluginMcpName = "plugin-mcp";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { m as UserPluginWithLifeCycle } from "./index-gt-MUKWq.js";
2
- import { n as PluginMcp, t as Options } from "./types-DJTMVuHu.js";
1
+ import { m as UserPluginWithLifeCycle } from "./index-N84Gd3PO.js";
2
+ import { n as PluginMcp, t as Options } from "./types-BPf1BfNR.js";
3
3
 
4
4
  //#region src/plugin.d.ts
5
5
  declare const pluginMcpName = "plugin-mcp";
@@ -1,4 +1,4 @@
1
- import { c as Oas, d as Output, f as PluginFactoryOptions, i as Include, l as contentType, o as Override, p as ResolveNameParams, r as Exclude, s as ResolvePathOptions, t as Generator, u as Group } from "./index-gt-MUKWq.js";
1
+ import { c as Oas, d as Output, f as PluginFactoryOptions, i as Include, l as contentType, o as Override, p as ResolveNameParams, r as Exclude, s as ResolvePathOptions, t as Generator, u as Group } from "./index-N84Gd3PO.js";
2
2
 
3
3
  //#region ../plugin-client/src/types.d.ts
4
4
 
@@ -164,4 +164,4 @@ type ResolvedOptions = {
164
164
  type PluginMcp = PluginFactoryOptions<'plugin-mcp', Options, ResolvedOptions, never, ResolvePathOptions>;
165
165
  //#endregion
166
166
  export { PluginMcp as n, Options as t };
167
- //# sourceMappingURL=types-DJTMVuHu.d.ts.map
167
+ //# sourceMappingURL=types-BPf1BfNR.d.ts.map
@@ -1,4 +1,4 @@
1
- import { c as Oas, d as Output, f as PluginFactoryOptions, i as Include, l as contentType, o as Override, p as ResolveNameParams, r as Exclude, s as ResolvePathOptions, t as Generator, u as Group } from "./index-C_nVtJQu.cjs";
1
+ import { c as Oas, d as Output, f as PluginFactoryOptions, i as Include, l as contentType, o as Override, p as ResolveNameParams, r as Exclude, s as ResolvePathOptions, t as Generator, u as Group } from "./index-DGu4JXGO.cjs";
2
2
 
3
3
  //#region ../plugin-client/src/types.d.ts
4
4
 
@@ -164,4 +164,4 @@ type ResolvedOptions = {
164
164
  type PluginMcp = PluginFactoryOptions<'plugin-mcp', Options, ResolvedOptions, never, ResolvePathOptions>;
165
165
  //#endregion
166
166
  export { PluginMcp as n, Options as t };
167
- //# sourceMappingURL=types-SQo1omqs.d.cts.map
167
+ //# sourceMappingURL=types-CIzi60s5.d.cts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-mcp",
3
- "version": "4.5.2",
3
+ "version": "4.5.3",
4
4
  "description": "Generator mcp",
5
5
  "keywords": [
6
6
  "typescript",
@@ -70,12 +70,12 @@
70
70
  ],
71
71
  "dependencies": {
72
72
  "@kubb/react-fabric": "0.2.19",
73
- "@kubb/core": "4.5.2",
74
- "@kubb/plugin-client": "4.5.2",
75
- "@kubb/plugin-oas": "4.5.2",
76
- "@kubb/plugin-ts": "4.5.2",
77
- "@kubb/plugin-zod": "4.5.2",
78
- "@kubb/oas": "4.5.2"
73
+ "@kubb/core": "4.5.3",
74
+ "@kubb/oas": "4.5.3",
75
+ "@kubb/plugin-client": "4.5.3",
76
+ "@kubb/plugin-oas": "4.5.3",
77
+ "@kubb/plugin-ts": "4.5.3",
78
+ "@kubb/plugin-zod": "4.5.3"
79
79
  },
80
80
  "devDependencies": {},
81
81
  "peerDependencies": {