@kubb/agent 5.0.0-alpha.2 → 5.0.0-alpha.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/.output/nitro.json
CHANGED
|
@@ -7,7 +7,7 @@ import https, { Server as Server$1 } from 'node:https';
|
|
|
7
7
|
import { EventEmitter } from 'node:events';
|
|
8
8
|
import { Buffer as Buffer$1 } from 'node:buffer';
|
|
9
9
|
import fs$1, { promises, existsSync, readFileSync } from 'node:fs';
|
|
10
|
-
import path$2, { resolve, dirname, relative, join, posix } from 'node:path';
|
|
10
|
+
import path$2, { resolve, dirname, relative, join, basename, extname, posix } from 'node:path';
|
|
11
11
|
import anymatch from 'anymatch';
|
|
12
12
|
import { createHash, randomBytes } from 'node:crypto';
|
|
13
13
|
import process$1, { version as version$2 } from 'node:process';
|
|
@@ -15,7 +15,7 @@ import { Logtail } from '@logtail/node';
|
|
|
15
15
|
import { consola } from 'consola';
|
|
16
16
|
import mod from 'node:module';
|
|
17
17
|
import { access, rm, readFile as readFile$1, readdir as readdir$1, mkdir, writeFile as writeFile$1 } from 'node:fs/promises';
|
|
18
|
-
import { createFabric, createReactFabric, App, File, Function as Function$1, Const, FunctionParams, Type as Type$
|
|
18
|
+
import { createFabric, createReactFabric, App, File, Function as Function$1, Const, FunctionParams, Type as Type$2, useApp } from '@kubb/react-fabric';
|
|
19
19
|
import { typescriptParser } from '@kubb/react-fabric/parsers';
|
|
20
20
|
import { fsPlugin } from '@kubb/react-fabric/plugins';
|
|
21
21
|
import { performance as performance$1 } from 'node:perf_hooks';
|
|
@@ -2470,7 +2470,7 @@ function isPureObject(value) {
|
|
|
2470
2470
|
const proto = Object.getPrototypeOf(value);
|
|
2471
2471
|
return !proto || proto.isPrototypeOf(Object);
|
|
2472
2472
|
}
|
|
2473
|
-
function stringify$
|
|
2473
|
+
function stringify$4(value) {
|
|
2474
2474
|
if (isPrimitive(value)) {
|
|
2475
2475
|
return String(value);
|
|
2476
2476
|
}
|
|
@@ -2478,7 +2478,7 @@ function stringify$3(value) {
|
|
|
2478
2478
|
return JSON.stringify(value);
|
|
2479
2479
|
}
|
|
2480
2480
|
if (typeof value.toJSON === "function") {
|
|
2481
|
-
return stringify$
|
|
2481
|
+
return stringify$4(value.toJSON());
|
|
2482
2482
|
}
|
|
2483
2483
|
throw new Error("[unstorage] Cannot stringify value!");
|
|
2484
2484
|
}
|
|
@@ -2800,7 +2800,7 @@ function createStorage(options = {}) {
|
|
|
2800
2800
|
if (!driver.setItem) {
|
|
2801
2801
|
return;
|
|
2802
2802
|
}
|
|
2803
|
-
await asyncCall(driver.setItem, relativeKey, stringify$
|
|
2803
|
+
await asyncCall(driver.setItem, relativeKey, stringify$4(value), opts);
|
|
2804
2804
|
if (!driver.watch) {
|
|
2805
2805
|
onChange("update", key);
|
|
2806
2806
|
}
|
|
@@ -2812,7 +2812,7 @@ function createStorage(options = {}) {
|
|
|
2812
2812
|
batch.driver.setItems,
|
|
2813
2813
|
batch.items.map((item) => ({
|
|
2814
2814
|
key: item.relativeKey,
|
|
2815
|
-
value: stringify$
|
|
2815
|
+
value: stringify$4(item.value),
|
|
2816
2816
|
options: item.options
|
|
2817
2817
|
})),
|
|
2818
2818
|
commonOptions
|
|
@@ -2826,7 +2826,7 @@ function createStorage(options = {}) {
|
|
|
2826
2826
|
return asyncCall(
|
|
2827
2827
|
batch.driver.setItem,
|
|
2828
2828
|
item.relativeKey,
|
|
2829
|
-
stringify$
|
|
2829
|
+
stringify$4(item.value),
|
|
2830
2830
|
item.options
|
|
2831
2831
|
);
|
|
2832
2832
|
})
|
|
@@ -4653,6 +4653,41 @@ async function disconnect({ sessionId, token, studioUrl }) {
|
|
|
4653
4653
|
const visitorDepths = {
|
|
4654
4654
|
deep: "deep"
|
|
4655
4655
|
};
|
|
4656
|
+
function narrowSchema(node, type) {
|
|
4657
|
+
return (node == null ? void 0 : node.type) === type ? node : void 0;
|
|
4658
|
+
}
|
|
4659
|
+
function definePrinter(build) {
|
|
4660
|
+
return (options) => {
|
|
4661
|
+
const { name, options: resolvedOptions, nodes } = build(options != null ? options : {});
|
|
4662
|
+
const context = {
|
|
4663
|
+
options: resolvedOptions,
|
|
4664
|
+
print: (node) => {
|
|
4665
|
+
const handler = nodes[node.type];
|
|
4666
|
+
return handler ? handler.call(context, node) : void 0;
|
|
4667
|
+
}
|
|
4668
|
+
};
|
|
4669
|
+
return {
|
|
4670
|
+
name,
|
|
4671
|
+
options: resolvedOptions,
|
|
4672
|
+
print: context.print,
|
|
4673
|
+
for: (nodes2) => nodes2.map(context.print)
|
|
4674
|
+
};
|
|
4675
|
+
};
|
|
4676
|
+
}
|
|
4677
|
+
const plainStringTypes = /* @__PURE__ */ new Set([
|
|
4678
|
+
"string",
|
|
4679
|
+
"uuid",
|
|
4680
|
+
"email",
|
|
4681
|
+
"url",
|
|
4682
|
+
"datetime"
|
|
4683
|
+
]);
|
|
4684
|
+
function isPlainStringType(node) {
|
|
4685
|
+
var _a;
|
|
4686
|
+
if (plainStringTypes.has(node.type)) return true;
|
|
4687
|
+
const temporal = (_a = narrowSchema(node, "date")) != null ? _a : narrowSchema(node, "time");
|
|
4688
|
+
if (temporal) return temporal.representation !== "date";
|
|
4689
|
+
return false;
|
|
4690
|
+
}
|
|
4656
4691
|
function createLimit(concurrency) {
|
|
4657
4692
|
let active = 0;
|
|
4658
4693
|
const queue = [];
|
|
@@ -4746,6 +4781,35 @@ async function _walk(node, visitor, recurse, limit) {
|
|
|
4746
4781
|
const children = getChildren(node, recurse);
|
|
4747
4782
|
await Promise.all(children.map((child) => _walk(child, visitor, recurse, limit)));
|
|
4748
4783
|
}
|
|
4784
|
+
function collect(node, visitor, options = {}) {
|
|
4785
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
4786
|
+
const recurse = ((_a = options.depth) != null ? _a : visitorDepths.deep) === visitorDepths.deep;
|
|
4787
|
+
const results = [];
|
|
4788
|
+
let v;
|
|
4789
|
+
switch (node.kind) {
|
|
4790
|
+
case "Root":
|
|
4791
|
+
v = (_b = visitor.root) == null ? void 0 : _b.call(visitor, node);
|
|
4792
|
+
break;
|
|
4793
|
+
case "Operation":
|
|
4794
|
+
v = (_c = visitor.operation) == null ? void 0 : _c.call(visitor, node);
|
|
4795
|
+
break;
|
|
4796
|
+
case "Schema":
|
|
4797
|
+
v = (_d = visitor.schema) == null ? void 0 : _d.call(visitor, node);
|
|
4798
|
+
break;
|
|
4799
|
+
case "Property":
|
|
4800
|
+
v = (_e = visitor.property) == null ? void 0 : _e.call(visitor, node);
|
|
4801
|
+
break;
|
|
4802
|
+
case "Parameter":
|
|
4803
|
+
v = (_f = visitor.parameter) == null ? void 0 : _f.call(visitor, node);
|
|
4804
|
+
break;
|
|
4805
|
+
case "Response":
|
|
4806
|
+
v = (_g = visitor.response) == null ? void 0 : _g.call(visitor, node);
|
|
4807
|
+
break;
|
|
4808
|
+
}
|
|
4809
|
+
if (v !== void 0) results.push(v);
|
|
4810
|
+
for (const child of getChildren(node, recurse)) for (const item of collect(child, visitor, options)) results.push(item);
|
|
4811
|
+
return results;
|
|
4812
|
+
}
|
|
4749
4813
|
|
|
4750
4814
|
var __defProp$h = Object.defineProperty;
|
|
4751
4815
|
var __typeError$c = (msg) => {
|
|
@@ -5363,7 +5427,7 @@ function isPromiseRejectedResult(result) {
|
|
|
5363
5427
|
}
|
|
5364
5428
|
function getMode(fileOrFolder) {
|
|
5365
5429
|
if (!fileOrFolder) return "split";
|
|
5366
|
-
return
|
|
5430
|
+
return extname(fileOrFolder) ? "single" : "split";
|
|
5367
5431
|
}
|
|
5368
5432
|
var PluginManager = (_e = class {
|
|
5369
5433
|
constructor(config, options) {
|
|
@@ -5375,14 +5439,14 @@ var PluginManager = (_e = class {
|
|
|
5375
5439
|
* the build pipeline after the adapter's `parse()` resolves.
|
|
5376
5440
|
*/
|
|
5377
5441
|
__publicField$b(this, "rootNode");
|
|
5442
|
+
__publicField$b(this, "adapter");
|
|
5378
5443
|
__privateAdd$c(this, _studioIsOpen, false);
|
|
5379
5444
|
__privateAdd$c(this, _plugins, /* @__PURE__ */ new Set());
|
|
5380
5445
|
__privateAdd$c(this, _usedPluginNames, {});
|
|
5381
5446
|
__privateAdd$c(this, _promiseManager);
|
|
5382
5447
|
__publicField$b(this, "resolvePath", (params) => {
|
|
5383
5448
|
var _a2, _b2;
|
|
5384
|
-
const
|
|
5385
|
-
const defaultPath = path$2.resolve(root, params.baseName);
|
|
5449
|
+
const defaultPath = resolve(resolve(this.config.root, this.config.output.path), params.baseName);
|
|
5386
5450
|
if (params.pluginName) return ((_a2 = this.hookForPluginSync({
|
|
5387
5451
|
pluginName: params.pluginName,
|
|
5388
5452
|
hookName: "resolvePath",
|
|
@@ -5437,7 +5501,7 @@ var PluginManager = (_e = class {
|
|
|
5437
5501
|
plugin,
|
|
5438
5502
|
events: this.options.events,
|
|
5439
5503
|
pluginManager: this,
|
|
5440
|
-
mode: getMode(
|
|
5504
|
+
mode: getMode(resolve(this.config.root, this.config.output.path)),
|
|
5441
5505
|
addFile: async (...files) => {
|
|
5442
5506
|
await this.options.fabric.addFile(...files);
|
|
5443
5507
|
},
|
|
@@ -5447,11 +5511,14 @@ var PluginManager = (_e = class {
|
|
|
5447
5511
|
get rootNode() {
|
|
5448
5512
|
return pluginManager.rootNode;
|
|
5449
5513
|
},
|
|
5514
|
+
get adapter() {
|
|
5515
|
+
return pluginManager.adapter;
|
|
5516
|
+
},
|
|
5450
5517
|
openInStudio(options) {
|
|
5451
5518
|
var _a2, _b2;
|
|
5519
|
+
if (!pluginManager.config.devtools || __privateGet$c(pluginManager, _studioIsOpen)) return;
|
|
5452
5520
|
if (typeof pluginManager.config.devtools !== "object") throw new Error("Devtools must be an object");
|
|
5453
|
-
if (!pluginManager.rootNode) throw new Error("
|
|
5454
|
-
if (__privateGet$c(pluginManager, _studioIsOpen)) return;
|
|
5521
|
+
if (!pluginManager.rootNode || !pluginManager.adapter) throw new Error("adapter is not defined, make sure you have set the parser in kubb.config.ts");
|
|
5455
5522
|
__privateSet$c(pluginManager, _studioIsOpen, true);
|
|
5456
5523
|
const studioUrl = (_b2 = (_a2 = pluginManager.config.devtools) == null ? void 0 : _a2.studioUrl) != null ? _b2 : "https://studio.kubb.dev";
|
|
5457
5524
|
return openInStudio(pluginManager.rootNode, studioUrl, options);
|
|
@@ -5470,18 +5537,22 @@ var PluginManager = (_e = class {
|
|
|
5470
5537
|
get plugins() {
|
|
5471
5538
|
return __privateMethod$c(this, _PluginManager_instances, getSortedPlugins_fn).call(this);
|
|
5472
5539
|
}
|
|
5473
|
-
getFile({ name, mode, extname, pluginName, options }) {
|
|
5474
|
-
const
|
|
5540
|
+
getFile({ name, mode, extname: extname2, pluginName, options }) {
|
|
5541
|
+
const resolvedName = mode ? mode === "single" ? "" : this.resolveName({
|
|
5542
|
+
name,
|
|
5543
|
+
pluginName,
|
|
5544
|
+
type: "file"
|
|
5545
|
+
}) : name;
|
|
5475
5546
|
const path2 = this.resolvePath({
|
|
5476
|
-
baseName
|
|
5547
|
+
baseName: `${resolvedName}${extname2}`,
|
|
5477
5548
|
mode,
|
|
5478
5549
|
pluginName,
|
|
5479
5550
|
options
|
|
5480
5551
|
});
|
|
5481
|
-
if (!path2) throw new Error(`Filepath should be defined for resolvedName "${
|
|
5552
|
+
if (!path2) throw new Error(`Filepath should be defined for resolvedName "${resolvedName}" and pluginName "${pluginName}"`);
|
|
5482
5553
|
return {
|
|
5483
5554
|
path: path2,
|
|
5484
|
-
baseName,
|
|
5555
|
+
baseName: basename(path2),
|
|
5485
5556
|
meta: { pluginName },
|
|
5486
5557
|
sources: [],
|
|
5487
5558
|
imports: [],
|
|
@@ -5655,7 +5726,8 @@ var PluginManager = (_e = class {
|
|
|
5655
5726
|
if (hookName) return plugins.filter((plugin) => hookName in plugin);
|
|
5656
5727
|
return plugins.map((plugin) => {
|
|
5657
5728
|
if (plugin.pre) {
|
|
5658
|
-
|
|
5729
|
+
let missingPlugins = plugin.pre.filter((pluginName) => !plugins.find((pluginToFind) => pluginToFind.name === pluginName));
|
|
5730
|
+
if (missingPlugins.includes("plugin-oas") && this.adapter) missingPlugins = missingPlugins.filter((pluginName) => pluginName !== "plugin-oas");
|
|
5659
5731
|
if (missingPlugins.length > 0) throw new ValidationPluginError(`The plugin '${plugin.name}' has a pre set that references missing plugins for '${missingPlugins.join(", ")}'`);
|
|
5660
5732
|
}
|
|
5661
5733
|
return plugin;
|
|
@@ -5808,7 +5880,7 @@ const fsStorage = defineStorage(() => ({
|
|
|
5808
5880
|
await clean(resolve(base));
|
|
5809
5881
|
}
|
|
5810
5882
|
}));
|
|
5811
|
-
var version$1 = "5.0.0-alpha.
|
|
5883
|
+
var version$1 = "5.0.0-alpha.3";
|
|
5812
5884
|
function getDiagnosticInfo() {
|
|
5813
5885
|
return {
|
|
5814
5886
|
nodeVersion: version$2,
|
|
@@ -5927,6 +5999,7 @@ async function setup(options) {
|
|
|
5927
5999
|
date: /* @__PURE__ */ new Date(),
|
|
5928
6000
|
logs: [`Running adapter: ${definedConfig.adapter.name}`]
|
|
5929
6001
|
});
|
|
6002
|
+
pluginManager.adapter = definedConfig.adapter;
|
|
5930
6003
|
pluginManager.rootNode = await definedConfig.adapter.parse(source);
|
|
5931
6004
|
await events.emit("debug", {
|
|
5932
6005
|
date: /* @__PURE__ */ new Date(),
|
|
@@ -6542,7 +6615,7 @@ async function detectLinter() {
|
|
|
6542
6615
|
]) if (await isLinterAvailable(linter)) return linter;
|
|
6543
6616
|
}
|
|
6544
6617
|
|
|
6545
|
-
var version = "5.0.0-alpha.
|
|
6618
|
+
var version = "5.0.0-alpha.3";
|
|
6546
6619
|
|
|
6547
6620
|
function isCommandMessage(msg) {
|
|
6548
6621
|
return msg.type === "command";
|
|
@@ -7606,7 +7679,7 @@ function trimQuotes$3(text) {
|
|
|
7606
7679
|
}
|
|
7607
7680
|
return text;
|
|
7608
7681
|
}
|
|
7609
|
-
function stringify$
|
|
7682
|
+
function stringify$3(value) {
|
|
7610
7683
|
if (value === void 0 || value === null) return '""';
|
|
7611
7684
|
return JSON.stringify(trimQuotes$3(value.toString()));
|
|
7612
7685
|
}
|
|
@@ -7769,13 +7842,14 @@ async function buildOperations(operationsOrNodes, options) {
|
|
|
7769
7842
|
})
|
|
7770
7843
|
}));
|
|
7771
7844
|
} else {
|
|
7772
|
-
const { Component } = options;
|
|
7845
|
+
const { Component, adapter } = options;
|
|
7773
7846
|
await fabricChild.render(/* @__PURE__ */ jsx(App, {
|
|
7774
7847
|
meta: { plugin },
|
|
7775
7848
|
children: /* @__PURE__ */ jsx(Component, {
|
|
7776
7849
|
config,
|
|
7850
|
+
adapter,
|
|
7777
7851
|
nodes: operationsOrNodes,
|
|
7778
|
-
plugin
|
|
7852
|
+
options: plugin.options
|
|
7779
7853
|
})
|
|
7780
7854
|
}));
|
|
7781
7855
|
}
|
|
@@ -7808,13 +7882,18 @@ async function buildOperation(operationOrNode, options) {
|
|
|
7808
7882
|
})
|
|
7809
7883
|
}));
|
|
7810
7884
|
} else {
|
|
7811
|
-
const { Component } = options;
|
|
7885
|
+
const { Component, adapter, pluginManager, mode } = options;
|
|
7812
7886
|
await fabricChild.render(/* @__PURE__ */ jsx(App, {
|
|
7813
|
-
meta: {
|
|
7887
|
+
meta: {
|
|
7888
|
+
plugin,
|
|
7889
|
+
pluginManager,
|
|
7890
|
+
mode
|
|
7891
|
+
},
|
|
7814
7892
|
children: /* @__PURE__ */ jsx(Component, {
|
|
7815
7893
|
config,
|
|
7894
|
+
adapter,
|
|
7816
7895
|
node: operationOrNode,
|
|
7817
|
-
plugin
|
|
7896
|
+
options: plugin.options
|
|
7818
7897
|
})
|
|
7819
7898
|
}));
|
|
7820
7899
|
}
|
|
@@ -7847,13 +7926,18 @@ async function buildSchema(schema, options) {
|
|
|
7847
7926
|
})
|
|
7848
7927
|
}));
|
|
7849
7928
|
} else {
|
|
7850
|
-
const { Component } = options;
|
|
7929
|
+
const { Component, adapter, pluginManager, mode } = options;
|
|
7851
7930
|
await fabricChild.render(/* @__PURE__ */ jsx(App, {
|
|
7852
|
-
meta: {
|
|
7931
|
+
meta: {
|
|
7932
|
+
plugin,
|
|
7933
|
+
pluginManager,
|
|
7934
|
+
mode
|
|
7935
|
+
},
|
|
7853
7936
|
children: /* @__PURE__ */ jsx(Component, {
|
|
7854
7937
|
config,
|
|
7938
|
+
adapter,
|
|
7855
7939
|
node: schema,
|
|
7856
|
-
plugin
|
|
7940
|
+
options: plugin.options
|
|
7857
7941
|
})
|
|
7858
7942
|
}));
|
|
7859
7943
|
}
|
|
@@ -8275,7 +8359,7 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
|
|
|
8275
8359
|
const defaultNullAndNullable = schemaObject.default === null && nullable;
|
|
8276
8360
|
if (schemaObject.default !== void 0 && !defaultNullAndNullable && !Array.isArray(schemaObject.default)) if (typeof schemaObject.default === "string") baseItems.push({
|
|
8277
8361
|
keyword: schemaKeywords.default,
|
|
8278
|
-
args: stringify$
|
|
8362
|
+
args: stringify$3(schemaObject.default)
|
|
8279
8363
|
});
|
|
8280
8364
|
else if (typeof schemaObject.default === "boolean") baseItems.push({
|
|
8281
8365
|
keyword: schemaKeywords.default,
|
|
@@ -8503,7 +8587,7 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
|
|
|
8503
8587
|
items: [...new Set(schemaObject[extensionKey])].map((name2, index) => {
|
|
8504
8588
|
var _a3, _b3;
|
|
8505
8589
|
return {
|
|
8506
|
-
name: stringify$
|
|
8590
|
+
name: stringify$3(name2),
|
|
8507
8591
|
value: (_a3 = schemaObject.enum) == null ? void 0 : _a3[index],
|
|
8508
8592
|
format: isNumber((_b3 = schemaObject.enum) == null ? void 0 : _b3[index]) ? "number" : "string"
|
|
8509
8593
|
};
|
|
@@ -8563,7 +8647,7 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
|
|
|
8563
8647
|
typeName,
|
|
8564
8648
|
asConst: false,
|
|
8565
8649
|
items: [...new Set(filteredValues)].map((value) => ({
|
|
8566
|
-
name: stringify$
|
|
8650
|
+
name: stringify$3(value),
|
|
8567
8651
|
value,
|
|
8568
8652
|
format: isNumber(value) ? "number" : "string"
|
|
8569
8653
|
}))
|
|
@@ -10109,7 +10193,7 @@ function jsStringEscape$2(input) {
|
|
|
10109
10193
|
}
|
|
10110
10194
|
});
|
|
10111
10195
|
}
|
|
10112
|
-
function stringify$
|
|
10196
|
+
function stringify$2(value) {
|
|
10113
10197
|
if (value === void 0 || value === null) return '""';
|
|
10114
10198
|
return JSON.stringify(trimQuotes$2(value.toString()));
|
|
10115
10199
|
}
|
|
@@ -10149,7 +10233,7 @@ function Operations({ name, operations }) {
|
|
|
10149
10233
|
name: "OperationSchema",
|
|
10150
10234
|
isExportable: true,
|
|
10151
10235
|
isIndexable: true,
|
|
10152
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
10236
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
10153
10237
|
name: "OperationSchema",
|
|
10154
10238
|
export: true,
|
|
10155
10239
|
children: `{
|
|
@@ -10173,7 +10257,7 @@ function Operations({ name, operations }) {
|
|
|
10173
10257
|
name: "OperationsMap",
|
|
10174
10258
|
isExportable: true,
|
|
10175
10259
|
isIndexable: true,
|
|
10176
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
10260
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
10177
10261
|
name: "OperationsMap",
|
|
10178
10262
|
export: true,
|
|
10179
10263
|
children: "Record<string, OperationSchema>"
|
|
@@ -10586,9 +10670,9 @@ const parse$2 = createParser({
|
|
|
10586
10670
|
}).filter(Boolean));
|
|
10587
10671
|
}
|
|
10588
10672
|
return zodKeywordMapper.enum(current.args.items.map((schema2) => {
|
|
10589
|
-
if (schema2.format === "boolean") return stringify$
|
|
10590
|
-
if (schema2.format === "number") return stringify$
|
|
10591
|
-
return stringify$
|
|
10673
|
+
if (schema2.format === "boolean") return stringify$2(schema2.value);
|
|
10674
|
+
if (schema2.format === "number") return stringify$2(schema2.value);
|
|
10675
|
+
return stringify$2(schema2.value);
|
|
10592
10676
|
}));
|
|
10593
10677
|
},
|
|
10594
10678
|
ref(tree, options) {
|
|
@@ -10688,7 +10772,7 @@ const parse$2 = createParser({
|
|
|
10688
10772
|
const { current } = tree;
|
|
10689
10773
|
if (current.args.format === "number" && current.args.value !== void 0) return zodKeywordMapper.const(Number(current.args.value));
|
|
10690
10774
|
if (current.args.format === "boolean" && current.args.value !== void 0) return zodKeywordMapper.const(typeof current.args.value === "boolean" ? current.args.value : void 0);
|
|
10691
|
-
return zodKeywordMapper.const(stringify$
|
|
10775
|
+
return zodKeywordMapper.const(stringify$2(current.args.value));
|
|
10692
10776
|
},
|
|
10693
10777
|
matches(tree, options) {
|
|
10694
10778
|
const { current, siblings } = tree;
|
|
@@ -10706,7 +10790,7 @@ const parse$2 = createParser({
|
|
|
10706
10790
|
},
|
|
10707
10791
|
describe(tree, options) {
|
|
10708
10792
|
const { current } = tree;
|
|
10709
|
-
if (current.args) return zodKeywordMapper.describe(stringify$
|
|
10793
|
+
if (current.args) return zodKeywordMapper.describe(stringify$2(current.args.toString()), void 0, options.mini);
|
|
10710
10794
|
},
|
|
10711
10795
|
string(tree, options) {
|
|
10712
10796
|
const { siblings } = tree;
|
|
@@ -10840,11 +10924,11 @@ function Zod({ name, typeName, tree, schema, inferTypeName, mapper, coercion, ke
|
|
|
10840
10924
|
isExportable: true,
|
|
10841
10925
|
isIndexable: true,
|
|
10842
10926
|
isTypeOnly: true,
|
|
10843
|
-
children: [typeName && /* @__PURE__ */ jsx(Type$
|
|
10927
|
+
children: [typeName && /* @__PURE__ */ jsx(Type$2, {
|
|
10844
10928
|
export: true,
|
|
10845
10929
|
name: inferTypeName,
|
|
10846
10930
|
children: typeName
|
|
10847
|
-
}), !typeName && /* @__PURE__ */ jsx(Type$
|
|
10931
|
+
}), !typeName && /* @__PURE__ */ jsx(Type$2, {
|
|
10848
10932
|
export: true,
|
|
10849
10933
|
name: inferTypeName,
|
|
10850
10934
|
children: `z.infer<typeof ${name}>`
|
|
@@ -208805,7 +208889,11 @@ const modifiers = {
|
|
|
208805
208889
|
const: factory.createModifier(ts.SyntaxKind.ConstKeyword),
|
|
208806
208890
|
static: factory.createModifier(ts.SyntaxKind.StaticKeyword)
|
|
208807
208891
|
};
|
|
208808
|
-
const syntaxKind = {
|
|
208892
|
+
const syntaxKind = {
|
|
208893
|
+
union: SyntaxKind.UnionType,
|
|
208894
|
+
literalType: SyntaxKind.LiteralType,
|
|
208895
|
+
stringLiteral: SyntaxKind.StringLiteral
|
|
208896
|
+
};
|
|
208809
208897
|
function getUnknownType(unknownType) {
|
|
208810
208898
|
if (unknownType === "any") return keywordTypeNodes.any;
|
|
208811
208899
|
if (unknownType === "void") return keywordTypeNodes.void;
|
|
@@ -208998,7 +209086,7 @@ const createTrue = factory.createTrue;
|
|
|
208998
209086
|
const createFalse = factory.createFalse;
|
|
208999
209087
|
const createIndexedAccessTypeNode = factory.createIndexedAccessTypeNode;
|
|
209000
209088
|
const createTypeOperatorNode = factory.createTypeOperatorNode;
|
|
209001
|
-
factory.createPrefixUnaryExpression;
|
|
209089
|
+
const createPrefixUnaryExpression = factory.createPrefixUnaryExpression;
|
|
209002
209090
|
const typeKeywordMapper = {
|
|
209003
209091
|
any: () => keywordTypeNodes.any,
|
|
209004
209092
|
unknown: () => keywordTypeNodes.unknown,
|
|
@@ -209261,7 +209349,7 @@ const parse$1 = createParser({
|
|
|
209261
209349
|
}
|
|
209262
209350
|
}
|
|
209263
209351
|
});
|
|
209264
|
-
function Type({ name, typedName, tree, keysToOmit, schema, optionalType, arrayType, syntaxType, enumType, enumKeyCasing, mapper, description }) {
|
|
209352
|
+
function Type$1({ name, typedName, tree, keysToOmit, schema, optionalType, arrayType, syntaxType, enumType, enumKeyCasing, mapper, description }) {
|
|
209265
209353
|
const typeNodes = [];
|
|
209266
209354
|
if (!tree.length) return "";
|
|
209267
209355
|
const schemaFromTree = tree.find((item) => item.keyword === schemaKeywords.schema);
|
|
@@ -209371,6 +209459,18 @@ function Type({ name, typedName, tree, keysToOmit, schema, optionalType, arrayTy
|
|
|
209371
209459
|
})] });
|
|
209372
209460
|
}
|
|
209373
209461
|
|
|
209462
|
+
function useKubb() {
|
|
209463
|
+
const { meta } = useApp();
|
|
209464
|
+
return {
|
|
209465
|
+
plugin: meta.plugin,
|
|
209466
|
+
mode: meta.mode,
|
|
209467
|
+
config: meta.pluginManager.config,
|
|
209468
|
+
getPluginByName: meta.pluginManager.getPluginByName.bind(meta.pluginManager),
|
|
209469
|
+
getFile: meta.pluginManager.getFile.bind(meta.pluginManager),
|
|
209470
|
+
resolveName: meta.pluginManager.resolveName.bind(meta.pluginManager),
|
|
209471
|
+
resolvePath: meta.pluginManager.resolvePath.bind(meta.pluginManager)
|
|
209472
|
+
};
|
|
209473
|
+
}
|
|
209374
209474
|
function useMode() {
|
|
209375
209475
|
const { meta } = useApp();
|
|
209376
209476
|
return meta.mode;
|
|
@@ -209546,6 +209646,10 @@ function useSchemaManager() {
|
|
|
209546
209646
|
};
|
|
209547
209647
|
}
|
|
209548
209648
|
|
|
209649
|
+
function stringify$1(value) {
|
|
209650
|
+
if (value === void 0 || value === null) return '""';
|
|
209651
|
+
return JSON.stringify(trimQuotes$1(value.toString()));
|
|
209652
|
+
}
|
|
209549
209653
|
function printCombinedSchema({ name, schemas, pluginManager }) {
|
|
209550
209654
|
const properties = {};
|
|
209551
209655
|
if (schemas.response) properties["response"] = createUnionDeclaration({ nodes: schemas.responses.map((res) => {
|
|
@@ -209720,7 +209824,7 @@ function printResponseSchema({ baseName, schemas, pluginManager, unknownType })
|
|
|
209720
209824
|
}
|
|
209721
209825
|
return results.join("\n\n");
|
|
209722
209826
|
}
|
|
209723
|
-
const typeGenerator = createReactGenerator({
|
|
209827
|
+
const typeGenerator$1 = createReactGenerator({
|
|
209724
209828
|
name: "typescript",
|
|
209725
209829
|
version: "1",
|
|
209726
209830
|
Operation({ operation, generator, plugin }) {
|
|
@@ -209777,7 +209881,7 @@ const typeGenerator = createReactGenerator({
|
|
|
209777
209881
|
imp.name,
|
|
209778
209882
|
imp.path,
|
|
209779
209883
|
imp.isTypeOnly
|
|
209780
|
-
].join("-"))), /* @__PURE__ */ jsx(Type, {
|
|
209884
|
+
].join("-"))), /* @__PURE__ */ jsx(Type$1, {
|
|
209781
209885
|
name: type.name,
|
|
209782
209886
|
typedName: type.typedName,
|
|
209783
209887
|
description,
|
|
@@ -209879,7 +209983,7 @@ const typeGenerator = createReactGenerator({
|
|
|
209879
209983
|
schema.name,
|
|
209880
209984
|
imp.path,
|
|
209881
209985
|
imp.isTypeOnly
|
|
209882
|
-
].join("-"))), /* @__PURE__ */ jsx(Type, {
|
|
209986
|
+
].join("-"))), /* @__PURE__ */ jsx(Type$1, {
|
|
209883
209987
|
name: type.name,
|
|
209884
209988
|
typedName: type.typedName,
|
|
209885
209989
|
description: schema.value.description,
|
|
@@ -209895,12 +209999,443 @@ const typeGenerator = createReactGenerator({
|
|
|
209895
209999
|
});
|
|
209896
210000
|
}
|
|
209897
210001
|
});
|
|
210002
|
+
function constToTypeNode(value, format) {
|
|
210003
|
+
if (format === "boolean") return createLiteralTypeNode(value === true ? createTrue() : createFalse());
|
|
210004
|
+
if (format === "number" && typeof value === "number") {
|
|
210005
|
+
if (value < 0) return createLiteralTypeNode(createPrefixUnaryExpression(SyntaxKind.MinusToken, createNumericLiteral(Math.abs(value))));
|
|
210006
|
+
return createLiteralTypeNode(createNumericLiteral(value));
|
|
210007
|
+
}
|
|
210008
|
+
return createLiteralTypeNode(createStringLiteral(String(value)));
|
|
210009
|
+
}
|
|
210010
|
+
function dateOrStringNode(node) {
|
|
210011
|
+
return node.representation === "date" ? createTypeReferenceNode(createIdentifier("Date")) : keywordTypeNodes.string;
|
|
210012
|
+
}
|
|
210013
|
+
function buildMemberNodes(members, print) {
|
|
210014
|
+
return (members != null ? members : []).map(print).filter(Boolean);
|
|
210015
|
+
}
|
|
210016
|
+
function buildTupleNode(node, print) {
|
|
210017
|
+
var _a, _b;
|
|
210018
|
+
let items = ((_a = node.items) != null ? _a : []).map(print).filter(Boolean);
|
|
210019
|
+
const restNode = node.rest ? (_b = print(node.rest)) != null ? _b : void 0 : void 0;
|
|
210020
|
+
const { min, max } = node;
|
|
210021
|
+
if (max !== void 0) {
|
|
210022
|
+
items = items.slice(0, max);
|
|
210023
|
+
if (items.length < max && restNode) items = [...items, ...Array(max - items.length).fill(restNode)];
|
|
210024
|
+
}
|
|
210025
|
+
if (min !== void 0) items = items.map((item, i) => i >= min ? createOptionalTypeNode(item) : item);
|
|
210026
|
+
if (max === void 0 && restNode) items.push(createRestTypeNode(createArrayTypeNode(restNode)));
|
|
210027
|
+
return createTupleTypeNode(items);
|
|
210028
|
+
}
|
|
210029
|
+
function buildPropertyType(schema, baseType, optionalType) {
|
|
210030
|
+
const addsUndefined = ["undefined", "questionTokenAndUndefined"].includes(optionalType);
|
|
210031
|
+
let type = baseType;
|
|
210032
|
+
if (schema.nullable) type = createUnionDeclaration({ nodes: [type, keywordTypeNodes.null] });
|
|
210033
|
+
if ((schema.nullish || schema.optional) && addsUndefined) type = createUnionDeclaration({ nodes: [type, keywordTypeNodes.undefined] });
|
|
210034
|
+
return type;
|
|
210035
|
+
}
|
|
210036
|
+
function buildPropertyJSDocComments(schema) {
|
|
210037
|
+
return [
|
|
210038
|
+
"description" in schema && schema.description ? `@description ${jsStringEscape$1(schema.description)}` : void 0,
|
|
210039
|
+
"deprecated" in schema && schema.deprecated ? "@deprecated" : void 0,
|
|
210040
|
+
"min" in schema && schema.min !== void 0 ? `@minLength ${schema.min}` : void 0,
|
|
210041
|
+
"max" in schema && schema.max !== void 0 ? `@maxLength ${schema.max}` : void 0,
|
|
210042
|
+
"pattern" in schema && schema.pattern ? `@pattern ${schema.pattern}` : void 0,
|
|
210043
|
+
"default" in schema && schema.default !== void 0 ? `@default ${"primitive" in schema && schema.primitive === "string" ? stringify$1(schema.default) : schema.default}` : void 0,
|
|
210044
|
+
"example" in schema && schema.example !== void 0 ? `@example ${schema.example}` : void 0,
|
|
210045
|
+
"primitive" in schema && schema.primitive ? [`@type ${schema.primitive || "unknown"}`, "optional" in schema && schema.optional ? " | undefined" : void 0].filter(Boolean).join("") : void 0
|
|
210046
|
+
];
|
|
210047
|
+
}
|
|
210048
|
+
function buildIndexSignatures(node, propertyCount, print) {
|
|
210049
|
+
var _a, _b;
|
|
210050
|
+
const elements = [];
|
|
210051
|
+
if (node.additionalProperties && node.additionalProperties !== true) {
|
|
210052
|
+
const additionalType = (_a = print(node.additionalProperties)) != null ? _a : keywordTypeNodes.unknown;
|
|
210053
|
+
elements.push(createIndexSignature(propertyCount > 0 ? keywordTypeNodes.unknown : additionalType));
|
|
210054
|
+
} else if (node.additionalProperties === true) elements.push(createIndexSignature(keywordTypeNodes.unknown));
|
|
210055
|
+
if (node.patternProperties) {
|
|
210056
|
+
const first = Object.values(node.patternProperties)[0];
|
|
210057
|
+
if (first) {
|
|
210058
|
+
let patternType = (_b = print(first)) != null ? _b : keywordTypeNodes.unknown;
|
|
210059
|
+
if (first.nullable) patternType = createUnionDeclaration({ nodes: [patternType, keywordTypeNodes.null] });
|
|
210060
|
+
elements.push(createIndexSignature(patternType));
|
|
210061
|
+
}
|
|
210062
|
+
}
|
|
210063
|
+
return elements;
|
|
210064
|
+
}
|
|
210065
|
+
const printerTs = definePrinter((options) => ({
|
|
210066
|
+
name: "typescript",
|
|
210067
|
+
options,
|
|
210068
|
+
nodes: {
|
|
210069
|
+
any: () => keywordTypeNodes.any,
|
|
210070
|
+
unknown: () => keywordTypeNodes.unknown,
|
|
210071
|
+
void: () => keywordTypeNodes.void,
|
|
210072
|
+
boolean: () => keywordTypeNodes.boolean,
|
|
210073
|
+
null: () => keywordTypeNodes.null,
|
|
210074
|
+
blob: () => createTypeReferenceNode("Blob", []),
|
|
210075
|
+
string: () => keywordTypeNodes.string,
|
|
210076
|
+
uuid: () => keywordTypeNodes.string,
|
|
210077
|
+
email: () => keywordTypeNodes.string,
|
|
210078
|
+
url: () => keywordTypeNodes.string,
|
|
210079
|
+
datetime: () => keywordTypeNodes.string,
|
|
210080
|
+
number: () => keywordTypeNodes.number,
|
|
210081
|
+
integer: () => keywordTypeNodes.number,
|
|
210082
|
+
bigint: () => keywordTypeNodes.bigint,
|
|
210083
|
+
date: (node) => dateOrStringNode(node),
|
|
210084
|
+
time: (node) => dateOrStringNode(node),
|
|
210085
|
+
ref(node) {
|
|
210086
|
+
if (!node.name) return;
|
|
210087
|
+
return createTypeReferenceNode(node.name, void 0);
|
|
210088
|
+
},
|
|
210089
|
+
enum(node) {
|
|
210090
|
+
var _a, _b, _c, _d;
|
|
210091
|
+
const values = (_c = (_b = (_a = node.namedEnumValues) == null ? void 0 : _a.map((v) => v.value)) != null ? _b : node.enumValues) != null ? _c : [];
|
|
210092
|
+
if (this.options.enumType === "inlineLiteral" || !node.name) return (_d = createUnionDeclaration({
|
|
210093
|
+
withParentheses: true,
|
|
210094
|
+
nodes: values.filter((v) => v !== null).map((value) => constToTypeNode(value, typeof value === "number" ? "number" : typeof value === "boolean" ? "boolean" : "string")).filter(Boolean)
|
|
210095
|
+
})) != null ? _d : void 0;
|
|
210096
|
+
return createTypeReferenceNode(["asConst", "asPascalConst"].includes(this.options.enumType) ? `${node.name}Key` : node.name, void 0);
|
|
210097
|
+
},
|
|
210098
|
+
union(node) {
|
|
210099
|
+
var _a, _b, _c;
|
|
210100
|
+
const members = (_a = node.members) != null ? _a : [];
|
|
210101
|
+
const hasStringLiteral = members.some((m) => m.type === "enum" && m.enumType === "string");
|
|
210102
|
+
const hasPlainString = members.some((m) => isPlainStringType(m));
|
|
210103
|
+
if (hasStringLiteral && hasPlainString) return (_b = createUnionDeclaration({
|
|
210104
|
+
withParentheses: true,
|
|
210105
|
+
nodes: members.map((m) => {
|
|
210106
|
+
if (isPlainStringType(m)) return createIntersectionDeclaration({
|
|
210107
|
+
nodes: [keywordTypeNodes.string, createTypeLiteralNode([])],
|
|
210108
|
+
withParentheses: true
|
|
210109
|
+
});
|
|
210110
|
+
return this.print(m);
|
|
210111
|
+
}).filter(Boolean)
|
|
210112
|
+
})) != null ? _b : void 0;
|
|
210113
|
+
return (_c = createUnionDeclaration({
|
|
210114
|
+
withParentheses: true,
|
|
210115
|
+
nodes: buildMemberNodes(members, this.print)
|
|
210116
|
+
})) != null ? _c : void 0;
|
|
210117
|
+
},
|
|
210118
|
+
intersection(node) {
|
|
210119
|
+
var _a;
|
|
210120
|
+
return (_a = createIntersectionDeclaration({
|
|
210121
|
+
withParentheses: true,
|
|
210122
|
+
nodes: buildMemberNodes(node.members, this.print)
|
|
210123
|
+
})) != null ? _a : void 0;
|
|
210124
|
+
},
|
|
210125
|
+
array(node) {
|
|
210126
|
+
var _a, _b;
|
|
210127
|
+
return (_b = createArrayDeclaration({
|
|
210128
|
+
nodes: ((_a = node.items) != null ? _a : []).map((item) => this.print(item)).filter(Boolean),
|
|
210129
|
+
arrayType: this.options.arrayType
|
|
210130
|
+
})) != null ? _b : void 0;
|
|
210131
|
+
},
|
|
210132
|
+
tuple(node) {
|
|
210133
|
+
return buildTupleNode(node, this.print);
|
|
210134
|
+
},
|
|
210135
|
+
object(node) {
|
|
210136
|
+
const addsQuestionToken = ["questionToken", "questionTokenAndUndefined"].includes(this.options.optionalType);
|
|
210137
|
+
const { print } = this;
|
|
210138
|
+
const propertyNodes = node.properties.map((prop) => {
|
|
210139
|
+
var _a;
|
|
210140
|
+
const baseType = (_a = print(prop.schema)) != null ? _a : keywordTypeNodes.unknown;
|
|
210141
|
+
const type = buildPropertyType(prop.schema, baseType, this.options.optionalType);
|
|
210142
|
+
return appendJSDocToNode({
|
|
210143
|
+
node: createPropertySignature({
|
|
210144
|
+
questionToken: prop.schema.optional || prop.schema.nullish ? addsQuestionToken : false,
|
|
210145
|
+
name: prop.name,
|
|
210146
|
+
type,
|
|
210147
|
+
readOnly: prop.schema.readOnly
|
|
210148
|
+
}),
|
|
210149
|
+
comments: buildPropertyJSDocComments(prop.schema)
|
|
210150
|
+
});
|
|
210151
|
+
});
|
|
210152
|
+
const allElements = [...propertyNodes, ...buildIndexSignatures(node, propertyNodes.length, print)];
|
|
210153
|
+
if (!allElements.length) return keywordTypeNodes.object;
|
|
210154
|
+
return createTypeLiteralNode(allElements);
|
|
210155
|
+
}
|
|
210156
|
+
}
|
|
210157
|
+
}));
|
|
210158
|
+
function Type({ name, typedName, node, keysToOmit, optionalType, arrayType, syntaxType, enumType, enumKeyCasing, ...rest }) {
|
|
210159
|
+
const typeNodes = [];
|
|
210160
|
+
const description = rest.description || (node == null ? void 0 : node.description);
|
|
210161
|
+
const enumSchemaNodes = collect(node, { schema(n) {
|
|
210162
|
+
if (n.type === "enum" && n.name) return n;
|
|
210163
|
+
} });
|
|
210164
|
+
let type = printerTs({
|
|
210165
|
+
optionalType,
|
|
210166
|
+
arrayType,
|
|
210167
|
+
enumType
|
|
210168
|
+
}).print(node);
|
|
210169
|
+
if (!type) return;
|
|
210170
|
+
if (["asConst", "asPascalConst"].includes(enumType) && enumSchemaNodes.length > 0) {
|
|
210171
|
+
const isDirectEnum = node.type === "array" && node.items !== void 0;
|
|
210172
|
+
const isEnumOnly = "enum" in node && node.enum;
|
|
210173
|
+
if (isDirectEnum || isEnumOnly) {
|
|
210174
|
+
type = createTypeReferenceNode(`${enumSchemaNodes[0].name}Key`);
|
|
210175
|
+
if (isDirectEnum) if (arrayType === "generic") type = createTypeReferenceNode(createIdentifier("Array"), [type]);
|
|
210176
|
+
else type = createArrayTypeNode(type);
|
|
210177
|
+
}
|
|
210178
|
+
}
|
|
210179
|
+
if (node) {
|
|
210180
|
+
if (node.nullable) type = createUnionDeclaration({ nodes: [type, keywordTypeNodes.null] });
|
|
210181
|
+
if (node.nullish && ["undefined", "questionTokenAndUndefined"].includes(optionalType)) type = createUnionDeclaration({ nodes: [type, keywordTypeNodes.undefined] });
|
|
210182
|
+
if (node.optional && ["undefined", "questionTokenAndUndefined"].includes(optionalType)) type = createUnionDeclaration({ nodes: [type, keywordTypeNodes.undefined] });
|
|
210183
|
+
}
|
|
210184
|
+
const useTypeGeneration = syntaxType === "type" || [syntaxKind.union].includes(type.kind) || !!(keysToOmit == null ? void 0 : keysToOmit.length);
|
|
210185
|
+
typeNodes.push(createTypeDeclaration({
|
|
210186
|
+
name,
|
|
210187
|
+
isExportable: true,
|
|
210188
|
+
type: (keysToOmit == null ? void 0 : keysToOmit.length) ? createOmitDeclaration({
|
|
210189
|
+
keys: keysToOmit,
|
|
210190
|
+
type,
|
|
210191
|
+
nonNullable: true
|
|
210192
|
+
}) : type,
|
|
210193
|
+
syntax: useTypeGeneration ? "type" : "interface",
|
|
210194
|
+
comments: [
|
|
210195
|
+
(node == null ? void 0 : node.title) ? `${jsStringEscape$1(node.title)}` : void 0,
|
|
210196
|
+
description ? `@description ${jsStringEscape$1(description)}` : void 0,
|
|
210197
|
+
(node == null ? void 0 : node.deprecated) ? "@deprecated" : void 0,
|
|
210198
|
+
node && "min" in node && node.min !== void 0 ? `@minLength ${node.min}` : void 0,
|
|
210199
|
+
node && "max" in node && node.max !== void 0 ? `@maxLength ${node.max}` : void 0,
|
|
210200
|
+
node && "pattern" in node && node.pattern ? `@pattern ${node.pattern}` : void 0,
|
|
210201
|
+
(node == null ? void 0 : node.default) ? `@default ${node.default}` : void 0,
|
|
210202
|
+
(node == null ? void 0 : node.example) ? `@example ${node.example}` : void 0
|
|
210203
|
+
]
|
|
210204
|
+
}));
|
|
210205
|
+
const enums = [...new Map(enumSchemaNodes.map((n) => [n.name, n])).values()].map((enumSchemaNode) => {
|
|
210206
|
+
var _a, _b, _c, _d;
|
|
210207
|
+
const enumName = enumType === "asPascalConst" ? pascalCase$6(enumSchemaNode.name) : camelCase$a(enumSchemaNode.name);
|
|
210208
|
+
const typeName = ["asConst", "asPascalConst"].includes(enumType) ? `${enumSchemaNode.name}Key` : enumSchemaNode.name;
|
|
210209
|
+
const [nameNode, typeNode] = createEnumDeclaration({
|
|
210210
|
+
name: enumName,
|
|
210211
|
+
typeName,
|
|
210212
|
+
enums: (_d = (_c = (_a = enumSchemaNode.namedEnumValues) == null ? void 0 : _a.map((v) => [trimQuotes$1(v.name.toString()), v.value])) != null ? _c : (_b = enumSchemaNode.enumValues) == null ? void 0 : _b.filter((v) => v !== null && v !== void 0).map((v) => [trimQuotes$1(v.toString()), v])) != null ? _d : [],
|
|
210213
|
+
type: enumType,
|
|
210214
|
+
enumKeyCasing
|
|
210215
|
+
});
|
|
210216
|
+
return {
|
|
210217
|
+
nameNode,
|
|
210218
|
+
typeNode,
|
|
210219
|
+
name: enumName,
|
|
210220
|
+
typeName
|
|
210221
|
+
};
|
|
210222
|
+
});
|
|
210223
|
+
const shouldExportEnums = enumType !== "inlineLiteral";
|
|
210224
|
+
const shouldExportType = enumType === "inlineLiteral" || enums.every((item) => item.typeName !== name);
|
|
210225
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [shouldExportEnums && enums.map(({ name: enumName, nameNode, typeName, typeNode }) => /* @__PURE__ */ jsxs(Fragment, { children: [nameNode && /* @__PURE__ */ jsx(File.Source, {
|
|
210226
|
+
name: enumName,
|
|
210227
|
+
isExportable: true,
|
|
210228
|
+
isIndexable: true,
|
|
210229
|
+
isTypeOnly: false,
|
|
210230
|
+
children: safePrint(nameNode)
|
|
210231
|
+
}), /* @__PURE__ */ jsx(File.Source, {
|
|
210232
|
+
name: typeName,
|
|
210233
|
+
isIndexable: true,
|
|
210234
|
+
isExportable: [
|
|
210235
|
+
"enum",
|
|
210236
|
+
"asConst",
|
|
210237
|
+
"asPascalConst",
|
|
210238
|
+
"constEnum",
|
|
210239
|
+
"literal",
|
|
210240
|
+
void 0
|
|
210241
|
+
].includes(enumType),
|
|
210242
|
+
isTypeOnly: [
|
|
210243
|
+
"asConst",
|
|
210244
|
+
"asPascalConst",
|
|
210245
|
+
"literal",
|
|
210246
|
+
void 0
|
|
210247
|
+
].includes(enumType),
|
|
210248
|
+
children: safePrint(typeNode)
|
|
210249
|
+
})] })), shouldExportType && /* @__PURE__ */ jsx(File.Source, {
|
|
210250
|
+
name: typedName,
|
|
210251
|
+
isTypeOnly: true,
|
|
210252
|
+
isExportable: true,
|
|
210253
|
+
isIndexable: true,
|
|
210254
|
+
children: safePrint(...typeNodes)
|
|
210255
|
+
})] });
|
|
210256
|
+
}
|
|
210257
|
+
const typeGenerator = createReactGenerator({
|
|
210258
|
+
name: "typescript",
|
|
210259
|
+
version: "2",
|
|
210260
|
+
Operation({ node, adapter, options }) {
|
|
210261
|
+
const { enumType, enumKeyCasing, optionalType, arrayType, syntaxType } = options;
|
|
210262
|
+
const { plugin, mode, getFile, resolveName } = useKubb();
|
|
210263
|
+
const file = getFile({
|
|
210264
|
+
name: node.operationId,
|
|
210265
|
+
pluginName: plugin.name,
|
|
210266
|
+
extname: ".ts",
|
|
210267
|
+
mode
|
|
210268
|
+
});
|
|
210269
|
+
function renderSchemaType({ node: schemaNode, name, typedName, description }) {
|
|
210270
|
+
const imports = adapter.getImports(schemaNode, (schemaName) => ({
|
|
210271
|
+
name: resolveName({
|
|
210272
|
+
name: schemaName,
|
|
210273
|
+
pluginName: plugin.name,
|
|
210274
|
+
type: "type"
|
|
210275
|
+
}),
|
|
210276
|
+
path: getFile({
|
|
210277
|
+
name: schemaName,
|
|
210278
|
+
pluginName: plugin.name,
|
|
210279
|
+
extname: ".ts",
|
|
210280
|
+
mode
|
|
210281
|
+
}).path
|
|
210282
|
+
}));
|
|
210283
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [mode === "split" && imports.map((imp) => /* @__PURE__ */ jsx(File.Import, {
|
|
210284
|
+
root: file.path,
|
|
210285
|
+
path: imp.path,
|
|
210286
|
+
name: imp.name,
|
|
210287
|
+
isTypeOnly: true
|
|
210288
|
+
}, [
|
|
210289
|
+
name,
|
|
210290
|
+
imp.path,
|
|
210291
|
+
imp.isTypeOnly
|
|
210292
|
+
].join("-"))), /* @__PURE__ */ jsx(Type, {
|
|
210293
|
+
name,
|
|
210294
|
+
typedName,
|
|
210295
|
+
node: schemaNode,
|
|
210296
|
+
description,
|
|
210297
|
+
enumType,
|
|
210298
|
+
enumKeyCasing,
|
|
210299
|
+
optionalType,
|
|
210300
|
+
arrayType,
|
|
210301
|
+
syntaxType
|
|
210302
|
+
})] });
|
|
210303
|
+
}
|
|
210304
|
+
const paramTypes = node.parameters.map((param) => {
|
|
210305
|
+
const name = resolveName({
|
|
210306
|
+
name: `${node.operationId} ${param.name}`,
|
|
210307
|
+
pluginName: plugin.name,
|
|
210308
|
+
type: "function"
|
|
210309
|
+
});
|
|
210310
|
+
const typedName = resolveName({
|
|
210311
|
+
name: `${node.operationId} ${param.name}`,
|
|
210312
|
+
pluginName: plugin.name,
|
|
210313
|
+
type: "type"
|
|
210314
|
+
});
|
|
210315
|
+
return renderSchemaType({
|
|
210316
|
+
node: param.schema,
|
|
210317
|
+
name,
|
|
210318
|
+
typedName
|
|
210319
|
+
});
|
|
210320
|
+
});
|
|
210321
|
+
const responseTypes = node.responses.filter((res) => res.schema).map((res) => {
|
|
210322
|
+
const schemaNode = res.schema;
|
|
210323
|
+
const responseName = `${node.operationId} ${res.statusCode}`;
|
|
210324
|
+
return renderSchemaType({
|
|
210325
|
+
node: schemaNode,
|
|
210326
|
+
name: resolveName({
|
|
210327
|
+
name: responseName,
|
|
210328
|
+
pluginName: plugin.name,
|
|
210329
|
+
type: "function"
|
|
210330
|
+
}),
|
|
210331
|
+
typedName: resolveName({
|
|
210332
|
+
name: responseName,
|
|
210333
|
+
pluginName: plugin.name,
|
|
210334
|
+
type: "type"
|
|
210335
|
+
}),
|
|
210336
|
+
description: res.description
|
|
210337
|
+
});
|
|
210338
|
+
});
|
|
210339
|
+
const requestType = node.requestBody ? (() => {
|
|
210340
|
+
const requestName = `${node.operationId} MutationRequest`;
|
|
210341
|
+
const resolvedName = resolveName({
|
|
210342
|
+
name: requestName,
|
|
210343
|
+
pluginName: plugin.name,
|
|
210344
|
+
type: "function"
|
|
210345
|
+
});
|
|
210346
|
+
const typedName = resolveName({
|
|
210347
|
+
name: requestName,
|
|
210348
|
+
pluginName: plugin.name,
|
|
210349
|
+
type: "type"
|
|
210350
|
+
});
|
|
210351
|
+
return renderSchemaType({
|
|
210352
|
+
node: node.requestBody,
|
|
210353
|
+
name: resolvedName,
|
|
210354
|
+
typedName,
|
|
210355
|
+
description: node.requestBody.description
|
|
210356
|
+
});
|
|
210357
|
+
})() : null;
|
|
210358
|
+
return /* @__PURE__ */ jsxs(File, {
|
|
210359
|
+
baseName: file.baseName,
|
|
210360
|
+
path: file.path,
|
|
210361
|
+
meta: file.meta,
|
|
210362
|
+
children: [
|
|
210363
|
+
paramTypes,
|
|
210364
|
+
responseTypes,
|
|
210365
|
+
requestType
|
|
210366
|
+
]
|
|
210367
|
+
});
|
|
210368
|
+
},
|
|
210369
|
+
Schema({ node, adapter, options }) {
|
|
210370
|
+
const { enumType, enumKeyCasing, syntaxType, optionalType, arrayType } = options;
|
|
210371
|
+
const { plugin, mode, resolveName, getFile } = useKubb();
|
|
210372
|
+
if (!node.name) return;
|
|
210373
|
+
const imports = adapter.getImports(node, (schemaName) => ({
|
|
210374
|
+
name: resolveName({
|
|
210375
|
+
name: schemaName,
|
|
210376
|
+
pluginName: plugin.name,
|
|
210377
|
+
type: "type"
|
|
210378
|
+
}),
|
|
210379
|
+
path: getFile({
|
|
210380
|
+
name: schemaName,
|
|
210381
|
+
pluginName: plugin.name,
|
|
210382
|
+
extname: ".ts",
|
|
210383
|
+
mode
|
|
210384
|
+
}).path
|
|
210385
|
+
}));
|
|
210386
|
+
const isEnumSchema = node.type === "enum";
|
|
210387
|
+
let typedName = resolveName({
|
|
210388
|
+
name: node.name,
|
|
210389
|
+
pluginName: plugin.name,
|
|
210390
|
+
type: "type"
|
|
210391
|
+
});
|
|
210392
|
+
if (["asConst", "asPascalConst"].includes(enumType) && isEnumSchema) typedName = typedName += "Key";
|
|
210393
|
+
const type = {
|
|
210394
|
+
name: resolveName({
|
|
210395
|
+
name: node.name,
|
|
210396
|
+
pluginName: plugin.name,
|
|
210397
|
+
type: "function"
|
|
210398
|
+
}),
|
|
210399
|
+
typedName,
|
|
210400
|
+
file: getFile({
|
|
210401
|
+
name: node.name,
|
|
210402
|
+
pluginName: plugin.name,
|
|
210403
|
+
extname: ".ts",
|
|
210404
|
+
mode
|
|
210405
|
+
})
|
|
210406
|
+
};
|
|
210407
|
+
return /* @__PURE__ */ jsxs(File, {
|
|
210408
|
+
baseName: type.file.baseName,
|
|
210409
|
+
path: type.file.path,
|
|
210410
|
+
meta: type.file.meta,
|
|
210411
|
+
children: [mode === "split" && imports.map((imp) => /* @__PURE__ */ jsx(File.Import, {
|
|
210412
|
+
root: type.file.path,
|
|
210413
|
+
path: imp.path,
|
|
210414
|
+
name: imp.name,
|
|
210415
|
+
isTypeOnly: true
|
|
210416
|
+
}, [
|
|
210417
|
+
node.name,
|
|
210418
|
+
imp.path,
|
|
210419
|
+
imp.isTypeOnly
|
|
210420
|
+
].join("-"))), /* @__PURE__ */ jsx(Type, {
|
|
210421
|
+
name: type.name,
|
|
210422
|
+
typedName: type.typedName,
|
|
210423
|
+
node,
|
|
210424
|
+
enumType,
|
|
210425
|
+
enumKeyCasing,
|
|
210426
|
+
optionalType,
|
|
210427
|
+
arrayType,
|
|
210428
|
+
syntaxType
|
|
210429
|
+
})]
|
|
210430
|
+
});
|
|
210431
|
+
}
|
|
210432
|
+
});
|
|
209898
210433
|
const pluginTsName = "plugin-ts";
|
|
209899
210434
|
const pluginTs = definePlugin((options) => {
|
|
209900
210435
|
const { output = {
|
|
209901
210436
|
path: "types",
|
|
209902
210437
|
barrelType: "named"
|
|
209903
|
-
}, group, exclude = [], include, override = [], enumType = "asConst", enumKeyCasing = "none", enumSuffix = "enum", dateType = "string", integerType = "number", unknownType = "any", optionalType = "questionToken", arrayType = "array", emptySchemaType = unknownType, syntaxType = "type", transformers = {}, mapper = {}, paramsCasing, generators = [typeGenerator].filter(Boolean), contentType, UNSTABLE_NAMING } = options;
|
|
210438
|
+
}, group, exclude = [], include, override = [], enumType = "asConst", enumKeyCasing = "none", enumSuffix = "enum", dateType = "string", integerType = "number", unknownType = "any", optionalType = "questionToken", arrayType = "array", emptySchemaType = unknownType, syntaxType = "type", transformers = {}, mapper = {}, paramsCasing, generators = [typeGenerator$1, typeGenerator].filter(Boolean), contentType, UNSTABLE_NAMING } = options;
|
|
209904
210439
|
return {
|
|
209905
210440
|
name: pluginTsName,
|
|
209906
210441
|
options: {
|
|
@@ -209945,22 +210480,41 @@ const pluginTs = definePlugin((options) => {
|
|
|
209945
210480
|
},
|
|
209946
210481
|
async install() {
|
|
209947
210482
|
var _a;
|
|
209948
|
-
const { config, fabric, plugin } = this;
|
|
210483
|
+
const { config, fabric, plugin, adapter, rootNode, pluginManager, openInStudio } = this;
|
|
209949
210484
|
const root = path$2.resolve(config.root, config.output.path);
|
|
209950
210485
|
const mode = getMode(path$2.resolve(root, output.path));
|
|
209951
|
-
if (
|
|
209952
|
-
await
|
|
209953
|
-
await walk(
|
|
209954
|
-
|
|
209955
|
-
|
|
209956
|
-
|
|
209957
|
-
|
|
209958
|
-
|
|
209959
|
-
|
|
209960
|
-
|
|
210486
|
+
if (adapter) {
|
|
210487
|
+
await openInStudio({ ast: true });
|
|
210488
|
+
await walk(rootNode, {
|
|
210489
|
+
async schema(schemaNode) {
|
|
210490
|
+
await generators.map(async (generator) => {
|
|
210491
|
+
if (generator.type === "react" && generator.version === "2") await buildSchema(schemaNode, {
|
|
210492
|
+
adapter,
|
|
210493
|
+
config,
|
|
210494
|
+
fabric,
|
|
210495
|
+
Component: generator.Schema,
|
|
210496
|
+
plugin,
|
|
210497
|
+
pluginManager,
|
|
210498
|
+
mode,
|
|
210499
|
+
version: generator.version
|
|
210500
|
+
});
|
|
209961
210501
|
});
|
|
209962
|
-
}
|
|
209963
|
-
|
|
210502
|
+
},
|
|
210503
|
+
async operation(operationNode) {
|
|
210504
|
+
await generators.map(async (generator) => {
|
|
210505
|
+
if (generator.type === "react" && generator.version === "2") await buildOperation(operationNode, {
|
|
210506
|
+
adapter,
|
|
210507
|
+
config,
|
|
210508
|
+
fabric,
|
|
210509
|
+
Component: generator.Operation,
|
|
210510
|
+
plugin,
|
|
210511
|
+
pluginManager,
|
|
210512
|
+
mode,
|
|
210513
|
+
version: generator.version
|
|
210514
|
+
});
|
|
210515
|
+
});
|
|
210516
|
+
}
|
|
210517
|
+
}, { depth: "shallow" });
|
|
209964
210518
|
return;
|
|
209965
210519
|
}
|
|
209966
210520
|
const oas = await this.getOas();
|
|
@@ -213405,7 +213959,7 @@ function MutationKey$4({ name, typeSchemas, pathParamsType, paramsCasing, operat
|
|
|
213405
213959
|
isExportable: true,
|
|
213406
213960
|
isIndexable: true,
|
|
213407
213961
|
isTypeOnly: true,
|
|
213408
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
213962
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
213409
213963
|
name: typeName,
|
|
213410
213964
|
export: true,
|
|
213411
213965
|
children: `ReturnType<typeof ${name}>`
|
|
@@ -213473,7 +214027,7 @@ function QueryKey$4({ name, typeSchemas, paramsCasing, pathParamsType, operation
|
|
|
213473
214027
|
isExportable: true,
|
|
213474
214028
|
isIndexable: true,
|
|
213475
214029
|
isTypeOnly: true,
|
|
213476
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
214030
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
213477
214031
|
name: typeName,
|
|
213478
214032
|
export: true,
|
|
213479
214033
|
children: `ReturnType<typeof ${name}>`
|
|
@@ -214966,7 +215520,7 @@ const hookOptionsGenerator = createReactGenerator({
|
|
|
214966
215520
|
isExportable: true,
|
|
214967
215521
|
isIndexable: true,
|
|
214968
215522
|
isTypeOnly: true,
|
|
214969
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
215523
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
214970
215524
|
export: true,
|
|
214971
215525
|
name,
|
|
214972
215526
|
children: `{ ${Object.keys(hookOptions).map((key) => `${JSON.stringify(key)}: ${hookOptions[key]}`)} }`
|
|
@@ -216475,7 +217029,7 @@ function MutationKey$3({ name, typeSchemas, pathParamsType, paramsCasing, operat
|
|
|
216475
217029
|
isExportable: true,
|
|
216476
217030
|
isIndexable: true,
|
|
216477
217031
|
isTypeOnly: true,
|
|
216478
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
217032
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
216479
217033
|
name: typeName,
|
|
216480
217034
|
export: true,
|
|
216481
217035
|
children: `ReturnType<typeof ${name}>`
|
|
@@ -216543,7 +217097,7 @@ function QueryKey$3({ name, typeSchemas, paramsCasing, pathParamsType, operation
|
|
|
216543
217097
|
isExportable: true,
|
|
216544
217098
|
isIndexable: true,
|
|
216545
217099
|
isTypeOnly: true,
|
|
216546
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
217100
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
216547
217101
|
name: typeName,
|
|
216548
217102
|
export: true,
|
|
216549
217103
|
children: `ReturnType<typeof ${name}>`
|
|
@@ -217625,7 +218179,7 @@ function MutationKey$2({ name, typeSchemas, pathParamsType, paramsCasing, operat
|
|
|
217625
218179
|
isExportable: true,
|
|
217626
218180
|
isIndexable: true,
|
|
217627
218181
|
isTypeOnly: true,
|
|
217628
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
218182
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
217629
218183
|
name: typeName,
|
|
217630
218184
|
export: true,
|
|
217631
218185
|
children: `ReturnType<typeof ${name}>`
|
|
@@ -217693,7 +218247,7 @@ function QueryKey$2({ name, typeSchemas, paramsCasing, pathParamsType, operation
|
|
|
217693
218247
|
isExportable: true,
|
|
217694
218248
|
isIndexable: true,
|
|
217695
218249
|
isTypeOnly: true,
|
|
217696
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
218250
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
217697
218251
|
name: typeName,
|
|
217698
218252
|
export: true,
|
|
217699
218253
|
children: `ReturnType<typeof ${name}>`
|
|
@@ -218775,7 +219329,7 @@ function MutationKey$1({ name, typeSchemas, pathParamsType, paramsCasing, operat
|
|
|
218775
219329
|
isExportable: true,
|
|
218776
219330
|
isIndexable: true,
|
|
218777
219331
|
isTypeOnly: true,
|
|
218778
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
219332
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
218779
219333
|
name: typeName,
|
|
218780
219334
|
export: true,
|
|
218781
219335
|
children: `ReturnType<typeof ${name}>`
|
|
@@ -218843,7 +219397,7 @@ function QueryKey$1({ name, typeSchemas, paramsCasing, pathParamsType, operation
|
|
|
218843
219397
|
isExportable: true,
|
|
218844
219398
|
isIndexable: true,
|
|
218845
219399
|
isTypeOnly: true,
|
|
218846
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
219400
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
218847
219401
|
name: typeName,
|
|
218848
219402
|
export: true,
|
|
218849
219403
|
children: `ReturnType<typeof ${name}>`
|
|
@@ -218972,7 +219526,7 @@ function Mutation$1({ name, clientName, mutationKeyName, mutationKeyTypeName, pa
|
|
|
218972
219526
|
isExportable: true,
|
|
218973
219527
|
isIndexable: true,
|
|
218974
219528
|
isTypeOnly: true,
|
|
218975
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
219529
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
218976
219530
|
name: mutationArgTypeName,
|
|
218977
219531
|
export: true,
|
|
218978
219532
|
children: hasMutationParams ? `{${mutationArg}}` : "never"
|
|
@@ -219986,7 +220540,7 @@ function QueryKey({ name, typeSchemas, paramsCasing, pathParamsType, operation,
|
|
|
219986
220540
|
isExportable: true,
|
|
219987
220541
|
isIndexable: true,
|
|
219988
220542
|
isTypeOnly: true,
|
|
219989
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
220543
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
219990
220544
|
name: typeName,
|
|
219991
220545
|
export: true,
|
|
219992
220546
|
children: `ReturnType<typeof ${name}>`
|
|
@@ -220464,7 +221018,7 @@ function MutationKey({ name, typeSchemas, pathParamsType, paramsCasing, operatio
|
|
|
220464
221018
|
isExportable: true,
|
|
220465
221019
|
isIndexable: true,
|
|
220466
221020
|
isTypeOnly: true,
|
|
220467
|
-
children: /* @__PURE__ */ jsx(Type$
|
|
221021
|
+
children: /* @__PURE__ */ jsx(Type$2, {
|
|
220468
221022
|
name: typeName,
|
|
220469
221023
|
export: true,
|
|
220470
221024
|
children: `ReturnType<typeof ${name}>`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nitro.mjs","sources":["../../../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../../../../node_modules/.pnpm/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../../../node_modules/.pnpm/h3@1.15.5/node_modules/h3/dist/index.mjs","../../../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../../../internals/utils/dist/index.js","../../../../server/plugins/heartbeat.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../ast/dist/index.js","../../../../../core/dist/index.js","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk--u3MIqq1.js","../../../../../plugin-oas/dist/getFooter-Pw3tLCiV.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-DQMKhTin.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-CCn9g9eF.js","../../../../../plugin-oas/dist/generators-B8HiBWvT.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-eECfXVou.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/components-LmqJfxMv.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-DoLrDl9P.js","../../../../../plugin-zod/dist/generators-CRKtFRi1.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-C2jT7XCH.js","../../../../../plugin-client/dist/templates/clients/axios.source.js","../../../../../plugin-client/dist/templates/clients/fetch.source.js","../../../../../plugin-client/dist/templates/config.source.js","../../../../../plugin-client/dist/index.js","../../../../../plugin-cypress/dist/components-BK_6GU4v.js","../../../../../plugin-cypress/dist/generators-BImGfp9Q.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-BuATcfwD.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-KWLMg0Lm.js","../../../../../plugin-mcp/dist/generators-BFPqVSmg.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-DgtTZkWX.js","../../../../../plugin-msw/dist/generators-Cs46KGm7.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CpyHYGOw.js","../../../../../plugin-react-query/dist/generators-BZn1n6rK.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-BhStIi1M.js","../../../../../plugin-solid-query/dist/generators-5ZZQ5Oz3.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-DntKBsnB.js","../../../../../plugin-svelte-query/dist/generators-BjJF5K9h.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-DRDGvgXG.js","../../../../../plugin-swr/dist/generators-D0W2bxXt.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-_AMBl0g-.js","../../../../../plugin-vue-query/dist/generators-BzA136hL.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/publish.ts","../../../../server/utils/setupHookListener.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","stringify","normalizeKey","defineDriver","DRIVER_NAME","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","_emitter","_a","toError","AsyncEventEmitter","__privateAdd","__privateGet","formatMs","parseHex","hex","process","toCamelOrPascal","applyToFileParts","camelCase","path","readFile","writeFile","isValidVarName","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","x","performance","build","readdir","version","_c","_d","_e","_f","_g","os","item","trimExtName","error","__defProp","__name","pascalCase","isPlainObject","parse","loadConfig","schema","params","_context","trimQuotes","schemas","normalizedSchema","name","min","max","getParams$1","getParams","Operations","validate","oas","options","jsStringEscape","toRegExpString","Type","siblings","require","global","modifiers","questionToken","propertyName","operationsGenerator","source","Function","baseURL","source$2","Response","getNestedAccessor","getTransformer$1","MutationKey","getParams$9","getTransformer","QueryKey","getParams$8","QueryOptions","getParams$7","InfiniteQuery","getParams$6","InfiniteQueryOptions","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","fs","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","generics","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,55,108,109,110,111]}
|
|
1
|
+
{"version":3,"file":"nitro.mjs","sources":["../../../../../../node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs","../../../../../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs","../../../../../../node_modules/.pnpm/radix3@1.1.2/node_modules/radix3/dist/index.mjs","../../../../../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs","../../../../../../node_modules/.pnpm/node-mock-http@1.0.4/node_modules/node-mock-http/dist/index.mjs","../../../../../../node_modules/.pnpm/h3@1.15.5/node_modules/h3/dist/index.mjs","../../../../../../node_modules/.pnpm/hookable@5.5.3/node_modules/hookable/dist/index.mjs","../../../../../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/native.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/shared/ofetch.CWycOUEr.mjs","../../../../../../node_modules/.pnpm/ofetch@1.5.1/node_modules/ofetch/dist/node.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.9.3/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/storage.mjs","../../../../../../node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/cache.mjs","../../../../../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/dist/index.mjs","../../../../../../node_modules/.pnpm/scule@1.3.0/node_modules/scule/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/config.mjs","../../../../../../node_modules/.pnpm/unctx@2.5.0/node_modules/unctx/dist/index.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/plugin.mjs","../../../../server/utils/logger.ts","../../../../server/plugins/fetch-logger.ts","../../../../../../internals/utils/dist/index.js","../../../../server/plugins/heartbeat.ts","../../../../server/utils/token.ts","../../../../server/utils/api.ts","../../../../../ast/dist/index.js","../../../../../core/dist/index.js","../../../../server/types/agent.ts","../../../../server/utils/agentCache.ts","../../../../server/utils/executeHooks.ts","../../../../server/utils/generate.ts","../../../../server/utils/getCosmiConfig.ts","../../../../server/utils/loadConfig.ts","../../../../../plugin-client/dist/chunk--u3MIqq1.js","../../../../../plugin-oas/dist/getFooter-Pw3tLCiV.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-CSL-jLGQ.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-CCn9g9eF.js","../../../../../plugin-oas/dist/generators-B8HiBWvT.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-eECfXVou.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/components-CRjwjdyE.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-DmwgRHK8.js","../../../../../plugin-zod/dist/generators-CRKtFRi1.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-C2jT7XCH.js","../../../../../plugin-client/dist/templates/clients/axios.source.js","../../../../../plugin-client/dist/templates/clients/fetch.source.js","../../../../../plugin-client/dist/templates/config.source.js","../../../../../plugin-client/dist/index.js","../../../../../plugin-cypress/dist/components-BK_6GU4v.js","../../../../../plugin-cypress/dist/generators-BImGfp9Q.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-BuATcfwD.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-KWLMg0Lm.js","../../../../../plugin-mcp/dist/generators-BFPqVSmg.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-DgtTZkWX.js","../../../../../plugin-msw/dist/generators-Cs46KGm7.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CpyHYGOw.js","../../../../../plugin-react-query/dist/generators-BZn1n6rK.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-BhStIi1M.js","../../../../../plugin-solid-query/dist/generators-5ZZQ5Oz3.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-DntKBsnB.js","../../../../../plugin-svelte-query/dist/generators-BjJF5K9h.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-DRDGvgXG.js","../../../../../plugin-swr/dist/generators-D0W2bxXt.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-_AMBl0g-.js","../../../../../plugin-vue-query/dist/generators-BzA136hL.js","../../../../../plugin-vue-query/dist/index.js","../../../../server/utils/resolvePlugins.ts","../../../../server/utils/mergePlugins.ts","../../../../server/utils/publish.ts","../../../../server/utils/setupHookListener.ts","../../../../server/utils/ws.ts","../../../../server/utils/connectStudio.ts","../../../../server/plugins/studio.ts","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.1_encoding@0.1.13_rolldown@1.0.0-rc.9/node_modules/nitropack/dist/presets/node/runtime/node-server.mjs"],"names":["createRouter","f","h","i","l","createError","mergeHeaders","s","nodeFetch","Headers","Headers$1","AbortController$1","stringify","normalizeKey","defineDriver","DRIVER_NAME","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","_emitter","_a","toError","AsyncEventEmitter","__privateAdd","__privateGet","formatMs","parseHex","hex","process","nodes","toCamelOrPascal","applyToFileParts","camelCase","path","readFile","writeFile","isValidVarName","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","extname","x","performance","build","readdir","version","_c","_d","_e","_f","_g","os","item","trimExtName","error","__defProp","__name","pascalCase","isPlainObject","parse","loadConfig","schema","params","_context","trimQuotes","schemas","normalizedSchema","name","min","max","getParams$1","getParams","Operations","validate","oas","options","jsStringEscape","toRegExpString","Type","siblings","require","global","modifiers","questionToken","propertyName","operationsGenerator","source","Function","baseURL","source$2","Response","getNestedAccessor","getTransformer$1","MutationKey","getParams$9","getTransformer","QueryKey","getParams$8","QueryOptions","getParams$7","InfiniteQuery","getParams$6","InfiniteQueryOptions","getParams$5","getParams$4","Mutation","getParams$3","Query","getParams$2","operations","fs","infiniteQueryGenerator","mutationGenerator","queryGenerator","__filename","__dirname","pkg","generics","nitroApp","callNodeRequestHandler","fetchNodeRequestHandler","gracefulShutdown","HttpsServer","HttpServer"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,55,108,109,110,111]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.3",
|
|
4
4
|
"description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -40,25 +40,25 @@
|
|
|
40
40
|
"tinyexec": "^1.0.4",
|
|
41
41
|
"unstorage": "^1.17.4",
|
|
42
42
|
"ws": "^8.19.0",
|
|
43
|
-
"@kubb/core": "5.0.0-alpha.
|
|
44
|
-
"@kubb/plugin-client": "5.0.0-alpha.
|
|
45
|
-
"@kubb/plugin-cypress": "5.0.0-alpha.
|
|
46
|
-
"@kubb/plugin-faker": "5.0.0-alpha.
|
|
47
|
-
"@kubb/plugin-mcp": "5.0.0-alpha.
|
|
48
|
-
"@kubb/plugin-msw": "5.0.0-alpha.
|
|
49
|
-
"@kubb/plugin-oas": "5.0.0-alpha.
|
|
50
|
-
"@kubb/plugin-react-query": "5.0.0-alpha.
|
|
51
|
-
"@kubb/plugin-redoc": "5.0.0-alpha.
|
|
52
|
-
"@kubb/plugin-solid-query": "5.0.0-alpha.
|
|
53
|
-
"@kubb/plugin-svelte-query": "5.0.0-alpha.
|
|
54
|
-
"@kubb/plugin-swr": "5.0.0-alpha.
|
|
55
|
-
"@kubb/plugin-ts": "5.0.0-alpha.
|
|
56
|
-
"@kubb/plugin-vue-query": "5.0.0-alpha.
|
|
57
|
-
"@kubb/plugin-zod": "5.0.0-alpha.
|
|
43
|
+
"@kubb/core": "5.0.0-alpha.3",
|
|
44
|
+
"@kubb/plugin-client": "5.0.0-alpha.3",
|
|
45
|
+
"@kubb/plugin-cypress": "5.0.0-alpha.3",
|
|
46
|
+
"@kubb/plugin-faker": "5.0.0-alpha.3",
|
|
47
|
+
"@kubb/plugin-mcp": "5.0.0-alpha.3",
|
|
48
|
+
"@kubb/plugin-msw": "5.0.0-alpha.3",
|
|
49
|
+
"@kubb/plugin-oas": "5.0.0-alpha.3",
|
|
50
|
+
"@kubb/plugin-react-query": "5.0.0-alpha.3",
|
|
51
|
+
"@kubb/plugin-redoc": "5.0.0-alpha.3",
|
|
52
|
+
"@kubb/plugin-solid-query": "5.0.0-alpha.3",
|
|
53
|
+
"@kubb/plugin-svelte-query": "5.0.0-alpha.3",
|
|
54
|
+
"@kubb/plugin-swr": "5.0.0-alpha.3",
|
|
55
|
+
"@kubb/plugin-ts": "5.0.0-alpha.3",
|
|
56
|
+
"@kubb/plugin-vue-query": "5.0.0-alpha.3",
|
|
57
|
+
"@kubb/plugin-zod": "5.0.0-alpha.3"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/ws": "^8.18.1",
|
|
61
|
-
"msw": "^2.12.
|
|
61
|
+
"msw": "^2.12.13",
|
|
62
62
|
"nitropack": "^2.13.1",
|
|
63
63
|
"vite": "^7.3.1",
|
|
64
64
|
"@internals/utils": "0.0.0"
|