@kubb/plugin-mcp 3.16.2 → 3.16.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.
- package/dist/OperationGenerator-BMJ9Szu5.d.cts +1111 -0
- package/dist/OperationGenerator-D1X1O_-A.d.ts +1111 -0
- package/dist/Server-BX80OVzu.js +90 -0
- package/dist/Server-BX80OVzu.js.map +1 -0
- package/dist/Server-Bh-nULhJ.cjs +124 -0
- package/dist/Server-Bh-nULhJ.cjs.map +1 -0
- package/dist/components.cjs +2 -11
- package/dist/components.d.cts +31 -25
- package/dist/components.d.ts +31 -25
- package/dist/components.js +3 -3
- package/dist/generators-CFdUB1k-.js +225 -0
- package/dist/generators-CFdUB1k-.js.map +1 -0
- package/dist/generators-UZiEnnoX.cjs +236 -0
- package/dist/generators-UZiEnnoX.cjs.map +1 -0
- package/dist/generators.cjs +4 -16
- package/dist/generators.d.cts +9 -9
- package/dist/generators.d.ts +9 -9
- package/dist/generators.js +4 -4
- package/dist/index.cjs +82 -101
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +82 -95
- package/dist/index.js.map +1 -1
- package/dist/types-DLgrsgaK.d.ts +168 -0
- package/dist/types-Dg5mHzgC.d.cts +168 -0
- package/package.json +20 -35
- package/dist/chunk-JTYWPGT3.js +0 -178
- package/dist/chunk-JTYWPGT3.js.map +0 -1
- package/dist/chunk-MTZE6GGJ.cjs +0 -181
- package/dist/chunk-MTZE6GGJ.cjs.map +0 -1
- package/dist/chunk-ODMTYF4L.cjs +0 -97
- package/dist/chunk-ODMTYF4L.cjs.map +0 -1
- package/dist/chunk-YP4TIQ5F.js +0 -95
- package/dist/chunk-YP4TIQ5F.js.map +0 -1
- package/dist/components.cjs.map +0 -1
- package/dist/components.js.map +0 -1
- package/dist/generators.cjs.map +0 -1
- package/dist/generators.js.map +0 -1
- package/dist/types-B4DlUSkU.d.cts +0 -54
- package/dist/types-B4DlUSkU.d.ts +0 -54
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Output, Group, PluginFactoryOptions, ResolveNameParams } from '@kubb/core';
|
|
2
|
-
import { Oas, contentType } from '@kubb/oas';
|
|
3
|
-
import { Exclude, Include, Override, ResolvePathOptions, Generator } from '@kubb/plugin-oas';
|
|
4
|
-
import { PluginClient } from '@kubb/plugin-client';
|
|
5
|
-
|
|
6
|
-
type Options = {
|
|
7
|
-
/**
|
|
8
|
-
* Specify the export location for the files and define the behavior of the output
|
|
9
|
-
* @default { path: 'mcp', barrelType: 'named' }
|
|
10
|
-
*/
|
|
11
|
-
output?: Output<Oas>;
|
|
12
|
-
/**
|
|
13
|
-
* Define which contentType should be used.
|
|
14
|
-
* By default, the first JSON valid mediaType will be used
|
|
15
|
-
*/
|
|
16
|
-
contentType?: contentType;
|
|
17
|
-
client?: Pick<PluginClient['options'], 'dataReturnType' | 'importPath' | 'baseURL'>;
|
|
18
|
-
/**
|
|
19
|
-
* Group the mcp requests based on the provided name.
|
|
20
|
-
*/
|
|
21
|
-
group?: Group;
|
|
22
|
-
/**
|
|
23
|
-
* Array containing exclude parameters to exclude/skip tags/operations/methods/paths.
|
|
24
|
-
*/
|
|
25
|
-
exclude?: Array<Exclude>;
|
|
26
|
-
/**
|
|
27
|
-
* Array containing include parameters to include tags/operations/methods/paths.
|
|
28
|
-
*/
|
|
29
|
-
include?: Array<Include>;
|
|
30
|
-
/**
|
|
31
|
-
* Array containing override parameters to override `options` based on tags/operations/methods/paths.
|
|
32
|
-
*/
|
|
33
|
-
override?: Array<Override<ResolvedOptions>>;
|
|
34
|
-
transformers?: {
|
|
35
|
-
/**
|
|
36
|
-
* Customize the names based on the type that is provided by the plugin.
|
|
37
|
-
*/
|
|
38
|
-
name?: (name: ResolveNameParams['name'], type?: ResolveNameParams['type']) => string;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Define some generators next to the Mcp generators.
|
|
42
|
-
*/
|
|
43
|
-
generators?: Array<Generator<PluginMcp>>;
|
|
44
|
-
};
|
|
45
|
-
type ResolvedOptions = {
|
|
46
|
-
output: Output<Oas>;
|
|
47
|
-
group: Options['group'];
|
|
48
|
-
client: Required<Omit<NonNullable<PluginMcp['options']['client']>, 'baseURL'>> & {
|
|
49
|
-
baseURL?: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
type PluginMcp = PluginFactoryOptions<'plugin-mcp', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
53
|
-
|
|
54
|
-
export type { Options as O, PluginMcp as P };
|
package/dist/types-B4DlUSkU.d.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Output, Group, PluginFactoryOptions, ResolveNameParams } from '@kubb/core';
|
|
2
|
-
import { Oas, contentType } from '@kubb/oas';
|
|
3
|
-
import { Exclude, Include, Override, ResolvePathOptions, Generator } from '@kubb/plugin-oas';
|
|
4
|
-
import { PluginClient } from '@kubb/plugin-client';
|
|
5
|
-
|
|
6
|
-
type Options = {
|
|
7
|
-
/**
|
|
8
|
-
* Specify the export location for the files and define the behavior of the output
|
|
9
|
-
* @default { path: 'mcp', barrelType: 'named' }
|
|
10
|
-
*/
|
|
11
|
-
output?: Output<Oas>;
|
|
12
|
-
/**
|
|
13
|
-
* Define which contentType should be used.
|
|
14
|
-
* By default, the first JSON valid mediaType will be used
|
|
15
|
-
*/
|
|
16
|
-
contentType?: contentType;
|
|
17
|
-
client?: Pick<PluginClient['options'], 'dataReturnType' | 'importPath' | 'baseURL'>;
|
|
18
|
-
/**
|
|
19
|
-
* Group the mcp requests based on the provided name.
|
|
20
|
-
*/
|
|
21
|
-
group?: Group;
|
|
22
|
-
/**
|
|
23
|
-
* Array containing exclude parameters to exclude/skip tags/operations/methods/paths.
|
|
24
|
-
*/
|
|
25
|
-
exclude?: Array<Exclude>;
|
|
26
|
-
/**
|
|
27
|
-
* Array containing include parameters to include tags/operations/methods/paths.
|
|
28
|
-
*/
|
|
29
|
-
include?: Array<Include>;
|
|
30
|
-
/**
|
|
31
|
-
* Array containing override parameters to override `options` based on tags/operations/methods/paths.
|
|
32
|
-
*/
|
|
33
|
-
override?: Array<Override<ResolvedOptions>>;
|
|
34
|
-
transformers?: {
|
|
35
|
-
/**
|
|
36
|
-
* Customize the names based on the type that is provided by the plugin.
|
|
37
|
-
*/
|
|
38
|
-
name?: (name: ResolveNameParams['name'], type?: ResolveNameParams['type']) => string;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Define some generators next to the Mcp generators.
|
|
42
|
-
*/
|
|
43
|
-
generators?: Array<Generator<PluginMcp>>;
|
|
44
|
-
};
|
|
45
|
-
type ResolvedOptions = {
|
|
46
|
-
output: Output<Oas>;
|
|
47
|
-
group: Options['group'];
|
|
48
|
-
client: Required<Omit<NonNullable<PluginMcp['options']['client']>, 'baseURL'>> & {
|
|
49
|
-
baseURL?: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
type PluginMcp = PluginFactoryOptions<'plugin-mcp', Options, ResolvedOptions, never, ResolvePathOptions>;
|
|
53
|
-
|
|
54
|
-
export type { Options as O, PluginMcp as P };
|