@kubb/plugin-mcp 0.0.0-canary-20251222105814 → 0.0.0-canary-20251222160843
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.d.cts +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/generators.d.cts +2 -2
- package/dist/generators.d.ts +2 -2
- package/dist/{index-oLv38PAo.d.ts → index-BFRCiwk8.d.cts} +24 -27
- package/dist/{index-C6oNjvTC.d.cts → index-DsLXrYq9.d.ts} +24 -27
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{types-CN2KHTPO.d.ts → types-C8H1PC6C.d.ts} +2 -2
- package/dist/{types-BifCa9Oi.d.cts → types-D7K1Z4Lm.d.cts} +2 -2
- package/package.json +7 -7
package/dist/components.d.cts
CHANGED
package/dist/components.d.ts
CHANGED
package/dist/generators.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ReactGenerator } from "./index-
|
|
2
|
-
import { n as PluginMcp } from "./types-
|
|
1
|
+
import { n as ReactGenerator } from "./index-BFRCiwk8.cjs";
|
|
2
|
+
import { n as PluginMcp } from "./types-D7K1Z4Lm.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/generators/mcpGenerator.d.ts
|
|
5
5
|
declare const mcpGenerator: ReactGenerator<PluginMcp>;
|
package/dist/generators.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as ReactGenerator } from "./index-
|
|
2
|
-
import { n as PluginMcp } from "./types-
|
|
1
|
+
import { n as ReactGenerator } from "./index-DsLXrYq9.js";
|
|
2
|
+
import { n as PluginMcp } from "./types-C8H1PC6C.js";
|
|
3
3
|
|
|
4
4
|
//#region src/generators/mcpGenerator.d.ts
|
|
5
5
|
declare const mcpGenerator: ReactGenerator<PluginMcp>;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { Fabric } from "@kubb/react-fabric";
|
|
2
1
|
import { KubbFile } from "@kubb/fabric-core/types";
|
|
3
|
-
import
|
|
4
|
-
import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
|
|
5
|
-
import { Operation, Operation as Operation$1 } from "oas/operation";
|
|
6
|
-
import { OpenAPIV3 } from "openapi-types";
|
|
2
|
+
import { Fabric } from "@kubb/react-fabric";
|
|
7
3
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
8
4
|
import BaseOas from "oas";
|
|
5
|
+
import { Operation } from "oas/operation";
|
|
6
|
+
import { DiscriminatorObject, HttpMethods, OASDocument, SchemaObject } from "oas/types";
|
|
9
7
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
10
8
|
|
|
11
9
|
//#region ../core/src/BaseGenerator.d.ts
|
|
@@ -677,38 +675,36 @@ type FileMetaBase = {
|
|
|
677
675
|
//#endregion
|
|
678
676
|
//#region ../oas/src/types.d.ts
|
|
679
677
|
type contentType = 'application/json' | (string & {});
|
|
680
|
-
type SchemaObject$1 =
|
|
678
|
+
type SchemaObject$1 = SchemaObject & {
|
|
681
679
|
'x-nullable'?: boolean;
|
|
682
680
|
$ref?: string;
|
|
683
681
|
};
|
|
682
|
+
type HttpMethod = HttpMethods;
|
|
683
|
+
type Document = OASDocument;
|
|
684
|
+
type Operation$1 = Operation;
|
|
685
|
+
type DiscriminatorObject$1 = DiscriminatorObject;
|
|
684
686
|
//#endregion
|
|
685
687
|
//#region ../oas/src/Oas.d.ts
|
|
686
688
|
type Options = {
|
|
687
689
|
contentType?: contentType;
|
|
688
690
|
discriminator?: 'strict' | 'inherit';
|
|
689
691
|
};
|
|
690
|
-
declare class Oas
|
|
692
|
+
declare class Oas extends BaseOas {
|
|
691
693
|
#private;
|
|
692
|
-
document:
|
|
693
|
-
constructor(
|
|
694
|
-
oas,
|
|
695
|
-
user
|
|
696
|
-
}: {
|
|
697
|
-
oas: TOAS | OASDocument | string;
|
|
698
|
-
user?: User;
|
|
699
|
-
});
|
|
694
|
+
document: Document;
|
|
695
|
+
constructor(document: Document);
|
|
700
696
|
setOptions(options: Options): void;
|
|
701
697
|
get options(): Options;
|
|
702
|
-
get($ref: string):
|
|
698
|
+
get<T = unknown>($ref: string): T | null;
|
|
703
699
|
getKey($ref: string): string | undefined;
|
|
704
700
|
set($ref: string, value: unknown): false | undefined;
|
|
705
|
-
getDiscriminator(schema:
|
|
706
|
-
dereferenceWithRef(schema?:
|
|
707
|
-
getResponseSchema(operation: Operation, statusCode: string | number): SchemaObject;
|
|
708
|
-
getRequestSchema(operation: Operation): SchemaObject | undefined;
|
|
709
|
-
getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
|
|
701
|
+
getDiscriminator(schema: SchemaObject$1 | null): DiscriminatorObject$1 | null;
|
|
702
|
+
dereferenceWithRef<T = unknown>(schema?: T): T;
|
|
703
|
+
getResponseSchema(operation: Operation$1, statusCode: string | number): SchemaObject$1;
|
|
704
|
+
getRequestSchema(operation: Operation$1): SchemaObject$1 | undefined;
|
|
705
|
+
getParametersSchema(operation: Operation$1, inKey: 'path' | 'query' | 'header'): SchemaObject$1 | null;
|
|
710
706
|
valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
|
|
711
|
-
flattenSchema(schema
|
|
707
|
+
flattenSchema(schema: SchemaObject$1 | null): SchemaObject$1 | null;
|
|
712
708
|
}
|
|
713
709
|
//#endregion
|
|
714
710
|
//#region ../plugin-oas/src/types.d.ts
|
|
@@ -851,6 +847,7 @@ type SchemaKeywordMapper = {
|
|
|
851
847
|
[x: string]: Schema[];
|
|
852
848
|
};
|
|
853
849
|
additionalProperties: Schema[];
|
|
850
|
+
patternProperties?: Record<string, Schema[]>;
|
|
854
851
|
strict?: boolean;
|
|
855
852
|
};
|
|
856
853
|
};
|
|
@@ -1094,13 +1091,13 @@ type SchemaGeneratorOptions = {
|
|
|
1094
1091
|
* TODO TODO add docs
|
|
1095
1092
|
* @beta
|
|
1096
1093
|
*/
|
|
1097
|
-
schema?: (schemaProps: SchemaProps$1, defaultSchemas: Schema[]) => Schema
|
|
1094
|
+
schema?: (schemaProps: SchemaProps$1, defaultSchemas: Schema[]) => Array<Schema> | undefined;
|
|
1098
1095
|
};
|
|
1099
1096
|
};
|
|
1100
1097
|
type SchemaProps$1 = {
|
|
1101
|
-
|
|
1102
|
-
name
|
|
1103
|
-
parentName
|
|
1098
|
+
schema: SchemaObject$1 | null;
|
|
1099
|
+
name: string | null;
|
|
1100
|
+
parentName: string | null;
|
|
1104
1101
|
};
|
|
1105
1102
|
declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
|
|
1106
1103
|
#private;
|
|
@@ -1161,4 +1158,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
|
|
|
1161
1158
|
};
|
|
1162
1159
|
//#endregion
|
|
1163
1160
|
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 };
|
|
1164
|
-
//# sourceMappingURL=index-
|
|
1161
|
+
//# sourceMappingURL=index-BFRCiwk8.d.cts.map
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { KubbFile } from "@kubb/fabric-core/types";
|
|
2
1
|
import { Fabric } from "@kubb/react-fabric";
|
|
3
|
-
import
|
|
4
|
-
import { HttpMethods as HttpMethod, OASDocument, SchemaObject, User } from "oas/types";
|
|
5
|
-
import { Operation, Operation as Operation$1 } from "oas/operation";
|
|
6
|
-
import { OpenAPIV3 } from "openapi-types";
|
|
2
|
+
import { KubbFile } from "@kubb/fabric-core/types";
|
|
7
3
|
import * as oas_normalize_lib_types0 from "oas-normalize/lib/types";
|
|
8
4
|
import BaseOas from "oas";
|
|
5
|
+
import { Operation } from "oas/operation";
|
|
6
|
+
import { DiscriminatorObject, HttpMethods, OASDocument, SchemaObject } from "oas/types";
|
|
9
7
|
import { KubbNode } from "@kubb/react-fabric/types";
|
|
10
8
|
|
|
11
9
|
//#region ../core/src/BaseGenerator.d.ts
|
|
@@ -677,38 +675,36 @@ type FileMetaBase = {
|
|
|
677
675
|
//#endregion
|
|
678
676
|
//#region ../oas/src/types.d.ts
|
|
679
677
|
type contentType = 'application/json' | (string & {});
|
|
680
|
-
type SchemaObject$1 =
|
|
678
|
+
type SchemaObject$1 = SchemaObject & {
|
|
681
679
|
'x-nullable'?: boolean;
|
|
682
680
|
$ref?: string;
|
|
683
681
|
};
|
|
682
|
+
type HttpMethod = HttpMethods;
|
|
683
|
+
type Document = OASDocument;
|
|
684
|
+
type Operation$1 = Operation;
|
|
685
|
+
type DiscriminatorObject$1 = DiscriminatorObject;
|
|
684
686
|
//#endregion
|
|
685
687
|
//#region ../oas/src/Oas.d.ts
|
|
686
688
|
type Options = {
|
|
687
689
|
contentType?: contentType;
|
|
688
690
|
discriminator?: 'strict' | 'inherit';
|
|
689
691
|
};
|
|
690
|
-
declare class Oas
|
|
692
|
+
declare class Oas extends BaseOas {
|
|
691
693
|
#private;
|
|
692
|
-
document:
|
|
693
|
-
constructor(
|
|
694
|
-
oas,
|
|
695
|
-
user
|
|
696
|
-
}: {
|
|
697
|
-
oas: TOAS | OASDocument | string;
|
|
698
|
-
user?: User;
|
|
699
|
-
});
|
|
694
|
+
document: Document;
|
|
695
|
+
constructor(document: Document);
|
|
700
696
|
setOptions(options: Options): void;
|
|
701
697
|
get options(): Options;
|
|
702
|
-
get($ref: string):
|
|
698
|
+
get<T = unknown>($ref: string): T | null;
|
|
703
699
|
getKey($ref: string): string | undefined;
|
|
704
700
|
set($ref: string, value: unknown): false | undefined;
|
|
705
|
-
getDiscriminator(schema:
|
|
706
|
-
dereferenceWithRef(schema?:
|
|
707
|
-
getResponseSchema(operation: Operation, statusCode: string | number): SchemaObject;
|
|
708
|
-
getRequestSchema(operation: Operation): SchemaObject | undefined;
|
|
709
|
-
getParametersSchema(operation: Operation, inKey: 'path' | 'query' | 'header'): SchemaObject | null;
|
|
701
|
+
getDiscriminator(schema: SchemaObject$1 | null): DiscriminatorObject$1 | null;
|
|
702
|
+
dereferenceWithRef<T = unknown>(schema?: T): T;
|
|
703
|
+
getResponseSchema(operation: Operation$1, statusCode: string | number): SchemaObject$1;
|
|
704
|
+
getRequestSchema(operation: Operation$1): SchemaObject$1 | undefined;
|
|
705
|
+
getParametersSchema(operation: Operation$1, inKey: 'path' | 'query' | 'header'): SchemaObject$1 | null;
|
|
710
706
|
valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
|
|
711
|
-
flattenSchema(schema
|
|
707
|
+
flattenSchema(schema: SchemaObject$1 | null): SchemaObject$1 | null;
|
|
712
708
|
}
|
|
713
709
|
//#endregion
|
|
714
710
|
//#region ../plugin-oas/src/types.d.ts
|
|
@@ -851,6 +847,7 @@ type SchemaKeywordMapper = {
|
|
|
851
847
|
[x: string]: Schema[];
|
|
852
848
|
};
|
|
853
849
|
additionalProperties: Schema[];
|
|
850
|
+
patternProperties?: Record<string, Schema[]>;
|
|
854
851
|
strict?: boolean;
|
|
855
852
|
};
|
|
856
853
|
};
|
|
@@ -1094,13 +1091,13 @@ type SchemaGeneratorOptions = {
|
|
|
1094
1091
|
* TODO TODO add docs
|
|
1095
1092
|
* @beta
|
|
1096
1093
|
*/
|
|
1097
|
-
schema?: (schemaProps: SchemaProps$1, defaultSchemas: Schema[]) => Schema
|
|
1094
|
+
schema?: (schemaProps: SchemaProps$1, defaultSchemas: Schema[]) => Array<Schema> | undefined;
|
|
1098
1095
|
};
|
|
1099
1096
|
};
|
|
1100
1097
|
type SchemaProps$1 = {
|
|
1101
|
-
|
|
1102
|
-
name
|
|
1103
|
-
parentName
|
|
1098
|
+
schema: SchemaObject$1 | null;
|
|
1099
|
+
name: string | null;
|
|
1100
|
+
parentName: string | null;
|
|
1104
1101
|
};
|
|
1105
1102
|
declare class SchemaGenerator<TOptions extends SchemaGeneratorOptions = SchemaGeneratorOptions, TPluginOptions extends PluginFactoryOptions = PluginFactoryOptions, TFileMeta extends FileMetaBase = FileMetaBase> extends BaseGenerator<TOptions, Context<TOptions, TPluginOptions>> {
|
|
1106
1103
|
#private;
|
|
@@ -1161,4 +1158,4 @@ type CoreGenerator<TOptions extends PluginFactoryOptions> = {
|
|
|
1161
1158
|
};
|
|
1162
1159
|
//#endregion
|
|
1163
1160
|
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 };
|
|
1164
|
-
//# sourceMappingURL=index-
|
|
1161
|
+
//# sourceMappingURL=index-DsLXrYq9.d.ts.map
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as UserPluginWithLifeCycle } from "./index-
|
|
2
|
-
import { n as PluginMcp, t as Options } from "./types-
|
|
1
|
+
import { m as UserPluginWithLifeCycle } from "./index-BFRCiwk8.cjs";
|
|
2
|
+
import { n as PluginMcp, t as Options } from "./types-D7K1Z4Lm.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-
|
|
2
|
-
import { n as PluginMcp, t as Options } from "./types-
|
|
1
|
+
import { m as UserPluginWithLifeCycle } from "./index-DsLXrYq9.js";
|
|
2
|
+
import { n as PluginMcp, t as Options } from "./types-C8H1PC6C.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-
|
|
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-DsLXrYq9.js";
|
|
2
2
|
|
|
3
3
|
//#region ../plugin-client/src/types.d.ts
|
|
4
4
|
|
|
@@ -180,4 +180,4 @@ type ResolvedOptions = {
|
|
|
180
180
|
type PluginMcp = PluginFactoryOptions<'plugin-mcp', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
181
181
|
//#endregion
|
|
182
182
|
export { PluginMcp as n, Options as t };
|
|
183
|
-
//# sourceMappingURL=types-
|
|
183
|
+
//# sourceMappingURL=types-C8H1PC6C.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-
|
|
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-BFRCiwk8.cjs";
|
|
2
2
|
|
|
3
3
|
//#region ../plugin-client/src/types.d.ts
|
|
4
4
|
|
|
@@ -180,4 +180,4 @@ type ResolvedOptions = {
|
|
|
180
180
|
type PluginMcp = PluginFactoryOptions<'plugin-mcp', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
181
181
|
//#endregion
|
|
182
182
|
export { PluginMcp as n, Options as t };
|
|
183
|
-
//# sourceMappingURL=types-
|
|
183
|
+
//# sourceMappingURL=types-D7K1Z4Lm.d.cts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/plugin-mcp",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251222160843",
|
|
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.7.4",
|
|
73
|
-
"@kubb/core": "0.0.0-canary-
|
|
74
|
-
"@kubb/oas": "0.0.0-canary-
|
|
75
|
-
"@kubb/plugin-client": "0.0.0-canary-
|
|
76
|
-
"@kubb/plugin-oas": "0.0.0-canary-
|
|
77
|
-
"@kubb/plugin-ts": "0.0.0-canary-
|
|
78
|
-
"@kubb/plugin-zod": "0.0.0-canary-
|
|
73
|
+
"@kubb/core": "0.0.0-canary-20251222160843",
|
|
74
|
+
"@kubb/oas": "0.0.0-canary-20251222160843",
|
|
75
|
+
"@kubb/plugin-client": "0.0.0-canary-20251222160843",
|
|
76
|
+
"@kubb/plugin-oas": "0.0.0-canary-20251222160843",
|
|
77
|
+
"@kubb/plugin-ts": "0.0.0-canary-20251222160843",
|
|
78
|
+
"@kubb/plugin-zod": "0.0.0-canary-20251222160843"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {},
|
|
81
81
|
"engines": {
|