@kubb/plugin-mcp 3.16.1 → 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.
Files changed (41) hide show
  1. package/dist/OperationGenerator-BMJ9Szu5.d.cts +1111 -0
  2. package/dist/OperationGenerator-D1X1O_-A.d.ts +1111 -0
  3. package/dist/Server-BX80OVzu.js +90 -0
  4. package/dist/Server-BX80OVzu.js.map +1 -0
  5. package/dist/Server-Bh-nULhJ.cjs +124 -0
  6. package/dist/Server-Bh-nULhJ.cjs.map +1 -0
  7. package/dist/components.cjs +2 -11
  8. package/dist/components.d.cts +31 -25
  9. package/dist/components.d.ts +31 -25
  10. package/dist/components.js +3 -3
  11. package/dist/generators-CFdUB1k-.js +225 -0
  12. package/dist/generators-CFdUB1k-.js.map +1 -0
  13. package/dist/generators-UZiEnnoX.cjs +236 -0
  14. package/dist/generators-UZiEnnoX.cjs.map +1 -0
  15. package/dist/generators.cjs +4 -16
  16. package/dist/generators.d.cts +9 -9
  17. package/dist/generators.d.ts +9 -9
  18. package/dist/generators.js +4 -4
  19. package/dist/index.cjs +82 -101
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +7 -8
  22. package/dist/index.d.ts +7 -8
  23. package/dist/index.js +82 -95
  24. package/dist/index.js.map +1 -1
  25. package/dist/types-DLgrsgaK.d.ts +168 -0
  26. package/dist/types-Dg5mHzgC.d.cts +168 -0
  27. package/package.json +21 -36
  28. package/dist/chunk-JTYWPGT3.js +0 -178
  29. package/dist/chunk-JTYWPGT3.js.map +0 -1
  30. package/dist/chunk-MTZE6GGJ.cjs +0 -181
  31. package/dist/chunk-MTZE6GGJ.cjs.map +0 -1
  32. package/dist/chunk-ODMTYF4L.cjs +0 -97
  33. package/dist/chunk-ODMTYF4L.cjs.map +0 -1
  34. package/dist/chunk-YP4TIQ5F.js +0 -95
  35. package/dist/chunk-YP4TIQ5F.js.map +0 -1
  36. package/dist/components.cjs.map +0 -1
  37. package/dist/components.js.map +0 -1
  38. package/dist/generators.cjs.map +0 -1
  39. package/dist/generators.js.map +0 -1
  40. package/dist/types-B4DlUSkU.d.cts +0 -54
  41. 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 };
@@ -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 };