@kubb/agent 5.0.0-alpha.15 → 5.0.0-alpha.17
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
|
@@ -4654,79 +4654,8 @@ async function disconnect({ sessionId, token, studioUrl }) {
|
|
|
4654
4654
|
const visitorDepths = {
|
|
4655
4655
|
deep: "deep"
|
|
4656
4656
|
};
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
properties: [],
|
|
4660
|
-
...props,
|
|
4661
|
-
kind: "Schema"
|
|
4662
|
-
};
|
|
4663
|
-
return {
|
|
4664
|
-
...props,
|
|
4665
|
-
kind: "Schema"
|
|
4666
|
-
};
|
|
4667
|
-
}
|
|
4668
|
-
function syncPropertySchema(required, schema) {
|
|
4669
|
-
var _a;
|
|
4670
|
-
const nullable = (_a = schema.nullable) != null ? _a : false;
|
|
4671
|
-
return {
|
|
4672
|
-
...schema,
|
|
4673
|
-
optional: !required && !nullable ? true : void 0,
|
|
4674
|
-
nullish: !required && nullable ? true : void 0
|
|
4675
|
-
};
|
|
4676
|
-
}
|
|
4677
|
-
function createProperty(props) {
|
|
4678
|
-
var _a;
|
|
4679
|
-
const required = (_a = props.required) != null ? _a : false;
|
|
4680
|
-
return {
|
|
4681
|
-
...props,
|
|
4682
|
-
kind: "Property",
|
|
4683
|
-
required,
|
|
4684
|
-
schema: syncPropertySchema(required, props.schema)
|
|
4685
|
-
};
|
|
4686
|
-
}
|
|
4687
|
-
function createParameter(props) {
|
|
4688
|
-
var _a;
|
|
4689
|
-
const required = (_a = props.required) != null ? _a : false;
|
|
4690
|
-
return {
|
|
4691
|
-
...props,
|
|
4692
|
-
kind: "Parameter",
|
|
4693
|
-
required,
|
|
4694
|
-
schema: syncPropertySchema(required, props.schema)
|
|
4695
|
-
};
|
|
4696
|
-
}
|
|
4697
|
-
function definePrinter(build) {
|
|
4698
|
-
return createPrinterFactory((node) => node.type)(build);
|
|
4699
|
-
}
|
|
4700
|
-
function createPrinterFactory(getKey) {
|
|
4701
|
-
return function(build) {
|
|
4702
|
-
return (options) => {
|
|
4703
|
-
const { name, options: resolvedOptions, nodes, print: printOverride } = build(options != null ? options : {});
|
|
4704
|
-
const context = {
|
|
4705
|
-
options: resolvedOptions,
|
|
4706
|
-
print: (node) => {
|
|
4707
|
-
const key = getKey(node);
|
|
4708
|
-
if (key === void 0) return void 0;
|
|
4709
|
-
const handler = nodes[key];
|
|
4710
|
-
if (!handler) return void 0;
|
|
4711
|
-
return handler.call(context, node);
|
|
4712
|
-
}
|
|
4713
|
-
};
|
|
4714
|
-
return {
|
|
4715
|
-
name,
|
|
4716
|
-
options: resolvedOptions,
|
|
4717
|
-
print: printOverride ? printOverride.bind(context) : context.print
|
|
4718
|
-
};
|
|
4719
|
-
};
|
|
4720
|
-
};
|
|
4721
|
-
}
|
|
4722
|
-
function narrowSchema(node, type) {
|
|
4723
|
-
return (node == null ? void 0 : node.type) === type ? node : void 0;
|
|
4724
|
-
}
|
|
4725
|
-
function isKind(kind) {
|
|
4726
|
-
return (node) => node.kind === kind;
|
|
4727
|
-
}
|
|
4728
|
-
const isOperationNode = isKind("Operation");
|
|
4729
|
-
const isSchemaNode = isKind("Schema");
|
|
4657
|
+
const schemaTypes = {
|
|
4658
|
+
enum: "enum"};
|
|
4730
4659
|
function toCamelOrPascal$f(text, pascal) {
|
|
4731
4660
|
return text.trim().replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/(\d)([a-z])/g, "$1 $2").split(/[\s\-_./\\:]+/).filter(Boolean).map((word, i) => {
|
|
4732
4661
|
if (word.length > 1 && word === word.toUpperCase()) return word;
|
|
@@ -4770,6 +4699,14 @@ function isValidVarName$c(name) {
|
|
|
4770
4699
|
}
|
|
4771
4700
|
return true;
|
|
4772
4701
|
}
|
|
4702
|
+
function narrowSchema(node, type) {
|
|
4703
|
+
return (node == null ? void 0 : node.type) === type ? node : void 0;
|
|
4704
|
+
}
|
|
4705
|
+
function isKind(kind) {
|
|
4706
|
+
return (node) => node.kind === kind;
|
|
4707
|
+
}
|
|
4708
|
+
const isOperationNode = isKind("Operation");
|
|
4709
|
+
const isSchemaNode = isKind("Schema");
|
|
4773
4710
|
const plainStringTypes = /* @__PURE__ */ new Set([
|
|
4774
4711
|
"string",
|
|
4775
4712
|
"uuid",
|
|
@@ -4777,14 +4714,14 @@ const plainStringTypes = /* @__PURE__ */ new Set([
|
|
|
4777
4714
|
"url",
|
|
4778
4715
|
"datetime"
|
|
4779
4716
|
]);
|
|
4780
|
-
function
|
|
4717
|
+
function isStringType(node) {
|
|
4781
4718
|
var _a;
|
|
4782
4719
|
if (plainStringTypes.has(node.type)) return true;
|
|
4783
4720
|
const temporal = (_a = narrowSchema(node, "date")) != null ? _a : narrowSchema(node, "time");
|
|
4784
4721
|
if (temporal) return temporal.representation !== "date";
|
|
4785
4722
|
return false;
|
|
4786
4723
|
}
|
|
4787
|
-
function
|
|
4724
|
+
function caseParams(params, casing) {
|
|
4788
4725
|
if (!casing) return params;
|
|
4789
4726
|
return params.map((param) => {
|
|
4790
4727
|
const transformed = casing === "camelcase" || !isValidVarName$c(param.name) ? camelCase$f(param.name) : param.name;
|
|
@@ -4794,6 +4731,71 @@ function applyParamsCasing$1(params, casing) {
|
|
|
4794
4731
|
};
|
|
4795
4732
|
});
|
|
4796
4733
|
}
|
|
4734
|
+
function syncOptionality(required, schema) {
|
|
4735
|
+
var _a;
|
|
4736
|
+
const nullable = (_a = schema.nullable) != null ? _a : false;
|
|
4737
|
+
return {
|
|
4738
|
+
...schema,
|
|
4739
|
+
optional: !required && !nullable ? true : void 0,
|
|
4740
|
+
nullish: !required && nullable ? true : void 0
|
|
4741
|
+
};
|
|
4742
|
+
}
|
|
4743
|
+
function createSchema(props) {
|
|
4744
|
+
if (props["type"] === "object") return {
|
|
4745
|
+
properties: [],
|
|
4746
|
+
...props,
|
|
4747
|
+
kind: "Schema"
|
|
4748
|
+
};
|
|
4749
|
+
return {
|
|
4750
|
+
...props,
|
|
4751
|
+
kind: "Schema"
|
|
4752
|
+
};
|
|
4753
|
+
}
|
|
4754
|
+
function createProperty(props) {
|
|
4755
|
+
var _a;
|
|
4756
|
+
const required = (_a = props.required) != null ? _a : false;
|
|
4757
|
+
return {
|
|
4758
|
+
...props,
|
|
4759
|
+
kind: "Property",
|
|
4760
|
+
required,
|
|
4761
|
+
schema: syncOptionality(required, props.schema)
|
|
4762
|
+
};
|
|
4763
|
+
}
|
|
4764
|
+
function createParameter(props) {
|
|
4765
|
+
var _a;
|
|
4766
|
+
const required = (_a = props.required) != null ? _a : false;
|
|
4767
|
+
return {
|
|
4768
|
+
...props,
|
|
4769
|
+
kind: "Parameter",
|
|
4770
|
+
required,
|
|
4771
|
+
schema: syncOptionality(required, props.schema)
|
|
4772
|
+
};
|
|
4773
|
+
}
|
|
4774
|
+
function definePrinter(build) {
|
|
4775
|
+
return createPrinterFactory((node) => node.type)(build);
|
|
4776
|
+
}
|
|
4777
|
+
function createPrinterFactory(getKey) {
|
|
4778
|
+
return function(build) {
|
|
4779
|
+
return (options) => {
|
|
4780
|
+
const { name, options: resolvedOptions, nodes, print: printOverride } = build(options != null ? options : {});
|
|
4781
|
+
const context = {
|
|
4782
|
+
options: resolvedOptions,
|
|
4783
|
+
print: (node) => {
|
|
4784
|
+
const key = getKey(node);
|
|
4785
|
+
if (key === void 0) return void 0;
|
|
4786
|
+
const handler = nodes[key];
|
|
4787
|
+
if (!handler) return void 0;
|
|
4788
|
+
return handler.call(context, node);
|
|
4789
|
+
}
|
|
4790
|
+
};
|
|
4791
|
+
return {
|
|
4792
|
+
name,
|
|
4793
|
+
options: resolvedOptions,
|
|
4794
|
+
print: printOverride ? printOverride.bind(context) : context.print
|
|
4795
|
+
};
|
|
4796
|
+
};
|
|
4797
|
+
};
|
|
4798
|
+
}
|
|
4797
4799
|
function createLimit(concurrency) {
|
|
4798
4800
|
let active = 0;
|
|
4799
4801
|
const queue = [];
|
|
@@ -5069,11 +5071,11 @@ function collect(node, options) {
|
|
|
5069
5071
|
return results;
|
|
5070
5072
|
}
|
|
5071
5073
|
|
|
5072
|
-
var __defProp$
|
|
5074
|
+
var __defProp$i = Object.defineProperty;
|
|
5073
5075
|
var __typeError$c = (msg) => {
|
|
5074
5076
|
throw TypeError(msg);
|
|
5075
5077
|
};
|
|
5076
|
-
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$
|
|
5078
|
+
var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5077
5079
|
var __publicField$b = (obj, key, value) => __defNormalProp$b(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5078
5080
|
var __accessCheck$c = (obj, member, msg) => member.has(obj) || __typeError$c("Cannot " + msg);
|
|
5079
5081
|
var __privateGet$c = (obj, member, getter) => (__accessCheck$c(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
@@ -6124,7 +6126,7 @@ const fsStorage = createStorage(() => ({
|
|
|
6124
6126
|
await clean(resolve(base));
|
|
6125
6127
|
}
|
|
6126
6128
|
}));
|
|
6127
|
-
var version$1 = "5.0.0-alpha.
|
|
6129
|
+
var version$1 = "5.0.0-alpha.17";
|
|
6128
6130
|
function getDiagnosticInfo() {
|
|
6129
6131
|
return {
|
|
6130
6132
|
nodeVersion: version$2,
|
|
@@ -6447,6 +6449,16 @@ function defineGenerator(generator) {
|
|
|
6447
6449
|
...generator
|
|
6448
6450
|
};
|
|
6449
6451
|
}
|
|
6452
|
+
function definePreset(name, { resolvers, transformers }) {
|
|
6453
|
+
return {
|
|
6454
|
+
name,
|
|
6455
|
+
resolvers,
|
|
6456
|
+
transformers
|
|
6457
|
+
};
|
|
6458
|
+
}
|
|
6459
|
+
function definePresets(presets) {
|
|
6460
|
+
return presets;
|
|
6461
|
+
}
|
|
6450
6462
|
function matchesOperationPattern(node, type, pattern) {
|
|
6451
6463
|
switch (type) {
|
|
6452
6464
|
case "tag":
|
|
@@ -6868,6 +6880,25 @@ async function getConfigs(config, args) {
|
|
|
6868
6880
|
const resolved = await (typeof config === "function" ? config(args) : config);
|
|
6869
6881
|
return (Array.isArray(resolved) ? resolved : [resolved]).map((item) => ({ ...item }));
|
|
6870
6882
|
}
|
|
6883
|
+
function mergeResolvers(...resolvers) {
|
|
6884
|
+
return resolvers.reduce((acc, curr) => ({
|
|
6885
|
+
...acc,
|
|
6886
|
+
...curr
|
|
6887
|
+
}), resolvers[0]);
|
|
6888
|
+
}
|
|
6889
|
+
function getPreset(params) {
|
|
6890
|
+
var _a2, _b2;
|
|
6891
|
+
const { preset: presetName, presets, resolvers, transformers: userTransformers } = params;
|
|
6892
|
+
const [defaultResolver2, ...userResolvers] = resolvers;
|
|
6893
|
+
const preset = presets[presetName];
|
|
6894
|
+
const baseResolver = mergeResolvers(defaultResolver2, ...(_a2 = preset == null ? void 0 : preset.resolvers) != null ? _a2 : []);
|
|
6895
|
+
return {
|
|
6896
|
+
baseResolver,
|
|
6897
|
+
resolver: mergeResolvers(baseResolver, ...userResolvers != null ? userResolvers : []),
|
|
6898
|
+
transformers: [...(_b2 = preset == null ? void 0 : preset.transformers) != null ? _b2 : [], ...userTransformers != null ? userTransformers : []],
|
|
6899
|
+
preset
|
|
6900
|
+
};
|
|
6901
|
+
}
|
|
6871
6902
|
async function isLinterAvailable(linter) {
|
|
6872
6903
|
try {
|
|
6873
6904
|
await x(linter, ["--version"], { nodeOptions: { stdio: "ignore" } });
|
|
@@ -6884,12 +6915,6 @@ async function detectLinter() {
|
|
|
6884
6915
|
]);
|
|
6885
6916
|
for (const linter of linterNames) if (await isLinterAvailable(linter)) return linter;
|
|
6886
6917
|
}
|
|
6887
|
-
function mergeResolvers(...resolvers) {
|
|
6888
|
-
return resolvers.reduce((acc, curr) => ({
|
|
6889
|
-
...acc,
|
|
6890
|
-
...curr
|
|
6891
|
-
}), resolvers[0]);
|
|
6892
|
-
}
|
|
6893
6918
|
function getPackageJSONSync(cwd) {
|
|
6894
6919
|
const pkgPath = pkg.up({ cwd });
|
|
6895
6920
|
if (!pkgPath) return;
|
|
@@ -6917,7 +6942,7 @@ function satisfiesDependency(dependency, version2, cwd) {
|
|
|
6917
6942
|
return satisfies(semVer, version2);
|
|
6918
6943
|
}
|
|
6919
6944
|
|
|
6920
|
-
var version = "5.0.0-alpha.
|
|
6945
|
+
var version = "5.0.0-alpha.17";
|
|
6921
6946
|
|
|
6922
6947
|
function isCommandMessage(msg) {
|
|
6923
6948
|
return msg.type === "command";
|
|
@@ -7108,8 +7133,8 @@ async function loadConfig(resolvedConfigPath) {
|
|
|
7108
7133
|
return configs[0];
|
|
7109
7134
|
}
|
|
7110
7135
|
|
|
7111
|
-
var __defProp$
|
|
7112
|
-
var __name$
|
|
7136
|
+
var __defProp$h = Object.defineProperty;
|
|
7137
|
+
var __name$6 = (target, value) => __defProp$h(target, "name", {
|
|
7113
7138
|
value,
|
|
7114
7139
|
configurable: true
|
|
7115
7140
|
});
|
|
@@ -7243,11 +7268,11 @@ function isKeyword(meta, keyword) {
|
|
|
7243
7268
|
return meta.keyword === keyword;
|
|
7244
7269
|
}
|
|
7245
7270
|
|
|
7246
|
-
var __defProp$
|
|
7271
|
+
var __defProp$g = Object.defineProperty;
|
|
7247
7272
|
var __typeError$b = (msg) => {
|
|
7248
7273
|
throw TypeError(msg);
|
|
7249
7274
|
};
|
|
7250
|
-
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$
|
|
7275
|
+
var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7251
7276
|
var __publicField$a = (obj, key, value) => __defNormalProp$a(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7252
7277
|
var __accessCheck$b = (obj, member, msg) => member.has(obj) || __typeError$b("Cannot " + msg);
|
|
7253
7278
|
var __privateGet$b = (obj, member, getter) => (__accessCheck$b(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
@@ -7944,11 +7969,11 @@ function resolveServerUrl(server, overrides) {
|
|
|
7944
7969
|
return url;
|
|
7945
7970
|
}
|
|
7946
7971
|
|
|
7947
|
-
var __defProp$
|
|
7972
|
+
var __defProp$f = Object.defineProperty;
|
|
7948
7973
|
var __typeError$a = (msg) => {
|
|
7949
7974
|
throw TypeError(msg);
|
|
7950
7975
|
};
|
|
7951
|
-
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$
|
|
7976
|
+
var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7952
7977
|
var __publicField$9 = (obj, key, value) => __defNormalProp$9(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7953
7978
|
var __accessCheck$a = (obj, member, msg) => member.has(obj) || __typeError$a("Cannot " + msg);
|
|
7954
7979
|
var __privateGet$a = (obj, member, getter) => (__accessCheck$a(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
@@ -9182,11 +9207,11 @@ function withRequiredRequestBodySchema(operationSchema) {
|
|
|
9182
9207
|
};
|
|
9183
9208
|
}
|
|
9184
9209
|
|
|
9185
|
-
var __defProp$
|
|
9210
|
+
var __defProp$e = Object.defineProperty;
|
|
9186
9211
|
var __typeError$9 = (msg) => {
|
|
9187
9212
|
throw TypeError(msg);
|
|
9188
9213
|
};
|
|
9189
|
-
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$
|
|
9214
|
+
var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9190
9215
|
var __publicField$8 = (obj, key, value) => __defNormalProp$8(obj, key + "" , value);
|
|
9191
9216
|
var __accessCheck$9 = (obj, member, msg) => member.has(obj) || __typeError$9("Cannot " + msg);
|
|
9192
9217
|
var __privateGet$9 = (obj, member, getter) => (__accessCheck$9(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
@@ -9389,11 +9414,11 @@ function isParameterSchema(schemaName) {
|
|
|
9389
9414
|
return lowerName.includes("pathparams") || lowerName.includes("queryparams") || lowerName.includes("headerparams");
|
|
9390
9415
|
}
|
|
9391
9416
|
|
|
9392
|
-
var __defProp$
|
|
9417
|
+
var __defProp$d = Object.defineProperty;
|
|
9393
9418
|
var __typeError$8 = (msg) => {
|
|
9394
9419
|
throw TypeError(msg);
|
|
9395
9420
|
};
|
|
9396
|
-
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$
|
|
9421
|
+
var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
9397
9422
|
var __publicField$7 = (obj, key, value) => __defNormalProp$7(obj, key + "" , value);
|
|
9398
9423
|
var __accessCheck$8 = (obj, member, msg) => member.has(obj) || __typeError$8("Cannot " + msg);
|
|
9399
9424
|
var __privateGet$8 = (obj, member, getter) => (__accessCheck$8(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
@@ -9554,7 +9579,7 @@ function getParams$1$5({ paramsType, paramsCasing, pathParamsType, typeSchemas }
|
|
|
9554
9579
|
default: getDefaultValue((_b = typeSchemas.pathParams) == null ? void 0 : _b.schema)
|
|
9555
9580
|
} : void 0 });
|
|
9556
9581
|
}
|
|
9557
|
-
__name$
|
|
9582
|
+
__name$6(getParams$1$5, "getParams");
|
|
9558
9583
|
function Url({ name, isExportable = true, isIndexable = true, typeSchemas, baseURL, paramsType, paramsCasing, pathParamsType, operation }) {
|
|
9559
9584
|
const path = new URLPath$7(operation.path);
|
|
9560
9585
|
const params = getParams$1$5({
|
|
@@ -9735,7 +9760,7 @@ Client.getParams = getParams$d;
|
|
|
9735
9760
|
function buildHeaders$1(contentType, hasHeaderParams) {
|
|
9736
9761
|
return [contentType !== "application/json" && contentType !== "multipart/form-data" ? `'Content-Type': '${contentType}'` : void 0, hasHeaderParams ? "...headers" : void 0].filter(Boolean);
|
|
9737
9762
|
}
|
|
9738
|
-
__name$
|
|
9763
|
+
__name$6(buildHeaders$1, "buildHeaders");
|
|
9739
9764
|
function buildGenerics$1(typeSchemas) {
|
|
9740
9765
|
var _a2, _b;
|
|
9741
9766
|
const TError = `ResponseErrorConfig<${((_a2 = typeSchemas.errors) == null ? void 0 : _a2.map((item) => item.name).join(" | ")) || "Error"}>`;
|
|
@@ -9745,7 +9770,7 @@ function buildGenerics$1(typeSchemas) {
|
|
|
9745
9770
|
((_b = typeSchemas.request) == null ? void 0 : _b.name) || "unknown"
|
|
9746
9771
|
].filter(Boolean);
|
|
9747
9772
|
}
|
|
9748
|
-
__name$
|
|
9773
|
+
__name$6(buildGenerics$1, "buildGenerics");
|
|
9749
9774
|
function buildClientParams$1({ operation, path, baseURL, typeSchemas, isFormData, headers }) {
|
|
9750
9775
|
var _a2, _b;
|
|
9751
9776
|
return FunctionParams.factory({ config: {
|
|
@@ -9761,25 +9786,25 @@ function buildClientParams$1({ operation, path, baseURL, typeSchemas, isFormData
|
|
|
9761
9786
|
}
|
|
9762
9787
|
} });
|
|
9763
9788
|
}
|
|
9764
|
-
__name$
|
|
9789
|
+
__name$6(buildClientParams$1, "buildClientParams");
|
|
9765
9790
|
function buildRequestDataLine$1({ parser, zodSchemas, typeSchemas }) {
|
|
9766
9791
|
var _a2, _b;
|
|
9767
9792
|
if (parser === "zod" && ((_a2 = zodSchemas == null ? void 0 : zodSchemas.request) == null ? void 0 : _a2.name)) return `const requestData = ${zodSchemas.request.name}.parse(data)`;
|
|
9768
9793
|
if ((_b = typeSchemas == null ? void 0 : typeSchemas.request) == null ? void 0 : _b.name) return "const requestData = data";
|
|
9769
9794
|
return "";
|
|
9770
9795
|
}
|
|
9771
|
-
__name$
|
|
9796
|
+
__name$6(buildRequestDataLine$1, "buildRequestDataLine");
|
|
9772
9797
|
function buildFormDataLine$1(isFormData, hasRequest) {
|
|
9773
9798
|
return isFormData && hasRequest ? "const formData = buildFormData(requestData)" : "";
|
|
9774
9799
|
}
|
|
9775
|
-
__name$
|
|
9800
|
+
__name$6(buildFormDataLine$1, "buildFormDataLine");
|
|
9776
9801
|
function buildReturnStatement$1({ dataReturnType, parser, zodSchemas }) {
|
|
9777
9802
|
if (dataReturnType === "full" && parser === "zod" && zodSchemas) return `return {...res, data: ${zodSchemas.response.name}.parse(res.data)}`;
|
|
9778
9803
|
if (dataReturnType === "data" && parser === "zod" && zodSchemas) return `return ${zodSchemas.response.name}.parse(res.data)`;
|
|
9779
9804
|
if (dataReturnType === "full" && parser === "client") return "return res";
|
|
9780
9805
|
return "return res.data";
|
|
9781
9806
|
}
|
|
9782
|
-
__name$
|
|
9807
|
+
__name$6(buildReturnStatement$1, "buildReturnStatement");
|
|
9783
9808
|
function generateMethod$1({ operation, name, typeSchemas, zodSchemas, baseURL, dataReturnType, parser, paramsType, paramsCasing, pathParamsType }) {
|
|
9784
9809
|
var _a2, _b;
|
|
9785
9810
|
const path = new URLPath$7(operation.path, { casing: paramsCasing });
|
|
@@ -9826,7 +9851,7 @@ function generateMethod$1({ operation, name, typeSchemas, zodSchemas, baseURL, d
|
|
|
9826
9851
|
${methodBody}
|
|
9827
9852
|
}`;
|
|
9828
9853
|
}
|
|
9829
|
-
__name$
|
|
9854
|
+
__name$6(generateMethod$1, "generateMethod");
|
|
9830
9855
|
function ClassClient({ name, isExportable = true, isIndexable = true, operations, baseURL, dataReturnType, parser, paramsType, paramsCasing, pathParamsType, children }) {
|
|
9831
9856
|
const classCode = `export class ${name} {
|
|
9832
9857
|
#config: Partial<RequestConfig> & { client?: Client }
|
|
@@ -11203,6 +11228,12 @@ function Zod({ name, typeName, tree, schema, inferTypeName, mapper, coercion, ke
|
|
|
11203
11228
|
})] });
|
|
11204
11229
|
}
|
|
11205
11230
|
|
|
11231
|
+
var __defProp$c = Object.defineProperty;
|
|
11232
|
+
var __name$5 = (target, value) => __defProp$c(target, "name", {
|
|
11233
|
+
value,
|
|
11234
|
+
configurable: true
|
|
11235
|
+
});
|
|
11236
|
+
|
|
11206
11237
|
function toCamelOrPascal$a(text, pascal) {
|
|
11207
11238
|
return text.trim().replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").replace(/(\d)([a-z])/g, "$1 $2").split(/[\s\-_./\\:]+/).filter(Boolean).map((word, i) => {
|
|
11208
11239
|
if (word.length > 1 && word === word.toUpperCase()) return word;
|
|
@@ -209481,12 +209512,15 @@ const printerTs = definePrinter((options) => {
|
|
|
209481
209512
|
union(node) {
|
|
209482
209513
|
var _a, _b, _c;
|
|
209483
209514
|
const members = (_a = node.members) != null ? _a : [];
|
|
209484
|
-
const hasStringLiteral = members.some((m) =>
|
|
209485
|
-
|
|
209515
|
+
const hasStringLiteral = members.some((m) => {
|
|
209516
|
+
var _a2;
|
|
209517
|
+
return ((_a2 = narrowSchema(m, schemaTypes.enum)) == null ? void 0 : _a2.primitive) === "string";
|
|
209518
|
+
});
|
|
209519
|
+
const hasPlainString = members.some((m) => isStringType(m));
|
|
209486
209520
|
if (hasStringLiteral && hasPlainString) return (_b = createUnionDeclaration({
|
|
209487
209521
|
withParentheses: true,
|
|
209488
209522
|
nodes: members.map((m) => {
|
|
209489
|
-
if (
|
|
209523
|
+
if (isStringType(m)) return createIntersectionDeclaration({
|
|
209490
209524
|
nodes: [keywordTypeNodes.string, createTypeLiteralNode([])],
|
|
209491
209525
|
withParentheses: true
|
|
209492
209526
|
});
|
|
@@ -209618,7 +209652,8 @@ function Enum({ node, enumType, enumKeyCasing, resolver }) {
|
|
|
209618
209652
|
function Type({ name, typedName, node, keysToOmit, optionalType, arrayType, syntaxType, enumType, enumKeyCasing, description, resolver }) {
|
|
209619
209653
|
const resolvedDescription = description || (node == null ? void 0 : node.description);
|
|
209620
209654
|
const enumSchemaNodes = collect(node, { schema(n) {
|
|
209621
|
-
|
|
209655
|
+
const enumNode = narrowSchema(n, schemaTypes.enum);
|
|
209656
|
+
if (enumNode == null ? void 0 : enumNode.name) return enumNode;
|
|
209622
209657
|
} });
|
|
209623
209658
|
const typeNode = printerTs({
|
|
209624
209659
|
optionalType,
|
|
@@ -209958,8 +209993,9 @@ function buildLegacyResponseUnionSchemaNode({ node, resolver }) {
|
|
|
209958
209993
|
function nameUnnamedEnums(node, parentName) {
|
|
209959
209994
|
return transform(node, {
|
|
209960
209995
|
schema(n) {
|
|
209961
|
-
|
|
209962
|
-
|
|
209996
|
+
const enumNode = narrowSchema(n, "enum");
|
|
209997
|
+
if (enumNode && !enumNode.name) return {
|
|
209998
|
+
...enumNode,
|
|
209963
209999
|
name: pascalCase$6([parentName, "enum"].join(" "))
|
|
209964
210000
|
};
|
|
209965
210001
|
},
|
|
@@ -209984,7 +210020,8 @@ const typeGenerator = defineGenerator({
|
|
|
209984
210020
|
type: "react",
|
|
209985
210021
|
Operation({ node, adapter, options }) {
|
|
209986
210022
|
var _a, _b, _c;
|
|
209987
|
-
const { enumType, enumKeyCasing, optionalType, arrayType, syntaxType, paramsCasing, group, resolver, baseResolver,
|
|
210023
|
+
const { enumType, enumKeyCasing, optionalType, arrayType, syntaxType, paramsCasing, group, resolver, baseResolver, compatibilityPreset, transformers = [] } = options;
|
|
210024
|
+
const isKubbV4Compatibility = compatibilityPreset === "kubbV4";
|
|
209988
210025
|
const { mode, getFile, resolveBanner, resolveFooter } = useKubb();
|
|
209989
210026
|
const file = getFile({
|
|
209990
210027
|
name: node.operationId,
|
|
@@ -209992,7 +210029,7 @@ const typeGenerator = defineGenerator({
|
|
|
209992
210029
|
mode,
|
|
209993
210030
|
options: { group: group ? group.type === "tag" ? { tag: (_a = node.tags[0]) != null ? _a : "default" } : { path: node.path } : void 0 }
|
|
209994
210031
|
});
|
|
209995
|
-
const params =
|
|
210032
|
+
const params = caseParams(node.parameters, paramsCasing);
|
|
209996
210033
|
function renderSchemaType({ node: schemaNode, name, typedName, description, keysToOmit }) {
|
|
209997
210034
|
if (!schemaNode) return null;
|
|
209998
210035
|
const transformedNode = transform(schemaNode, composeTransformers(...transformers));
|
|
@@ -210025,10 +210062,10 @@ const typeGenerator = defineGenerator({
|
|
|
210025
210062
|
syntaxType,
|
|
210026
210063
|
resolver,
|
|
210027
210064
|
keysToOmit,
|
|
210028
|
-
legacy
|
|
210065
|
+
legacy: isKubbV4Compatibility
|
|
210029
210066
|
})] });
|
|
210030
210067
|
}
|
|
210031
|
-
const responseTypes =
|
|
210068
|
+
const responseTypes = isKubbV4Compatibility ? node.responses.map((res) => {
|
|
210032
210069
|
const responseName = resolver.resolveResponseStatusName(node, res.statusCode);
|
|
210033
210070
|
const baseResponseName = baseResolver.resolveResponseStatusName(node, res.statusCode);
|
|
210034
210071
|
return renderSchemaType({
|
|
@@ -210046,13 +210083,13 @@ const typeGenerator = defineGenerator({
|
|
|
210046
210083
|
keysToOmit: res.keysToOmit
|
|
210047
210084
|
}));
|
|
210048
210085
|
const requestType = ((_b = node.requestBody) == null ? void 0 : _b.schema) ? renderSchemaType({
|
|
210049
|
-
node:
|
|
210086
|
+
node: isKubbV4Compatibility ? nameUnnamedEnums(node.requestBody.schema, baseResolver.resolveDataName(node)) : node.requestBody.schema,
|
|
210050
210087
|
name: resolver.resolveDataName(node),
|
|
210051
210088
|
typedName: resolver.resolveDataTypedName(node),
|
|
210052
210089
|
description: (_c = node.requestBody.description) != null ? _c : node.requestBody.schema.description,
|
|
210053
210090
|
keysToOmit: node.requestBody.keysToOmit
|
|
210054
210091
|
}) : null;
|
|
210055
|
-
if (
|
|
210092
|
+
if (isKubbV4Compatibility) {
|
|
210056
210093
|
const pathParams = params.filter((p) => p.in === "path");
|
|
210057
210094
|
const queryParams = params.filter((p) => p.in === "query");
|
|
210058
210095
|
const headerParams = params.filter((p) => p.in === "header");
|
|
@@ -210174,7 +210211,8 @@ const typeGenerator = defineGenerator({
|
|
|
210174
210211
|
});
|
|
210175
210212
|
},
|
|
210176
210213
|
Schema({ node, adapter, options }) {
|
|
210177
|
-
const { enumType, enumKeyCasing, syntaxType, optionalType, arrayType, resolver,
|
|
210214
|
+
const { enumType, enumKeyCasing, syntaxType, optionalType, arrayType, resolver, compatibilityPreset, transformers = [] } = options;
|
|
210215
|
+
const isKubbV4Compatibility = compatibilityPreset === "kubbV4";
|
|
210178
210216
|
const { mode, getFile, resolveBanner, resolveFooter } = useKubb();
|
|
210179
210217
|
if (!node.name) return;
|
|
210180
210218
|
const transformedNode = transform(node, composeTransformers(...transformers));
|
|
@@ -210186,7 +210224,7 @@ const typeGenerator = defineGenerator({
|
|
|
210186
210224
|
mode
|
|
210187
210225
|
}).path
|
|
210188
210226
|
}));
|
|
210189
|
-
const isEnumSchema = node.
|
|
210227
|
+
const isEnumSchema = !!narrowSchema(node, schemaTypes.enum);
|
|
210190
210228
|
const typedName = ENUM_TYPES_WITH_KEY_SUFFIX.has(enumType) && isEnumSchema ? resolver.resolveEnumKeyTypedName(node) : resolver.resolveTypedName(node.name);
|
|
210191
210229
|
const type = {
|
|
210192
210230
|
name: resolver.resolveName(node.name),
|
|
@@ -210222,7 +210260,7 @@ const typeGenerator = defineGenerator({
|
|
|
210222
210260
|
arrayType,
|
|
210223
210261
|
syntaxType,
|
|
210224
210262
|
resolver,
|
|
210225
|
-
legacy
|
|
210263
|
+
legacy: isKubbV4Compatibility
|
|
210226
210264
|
})]
|
|
210227
210265
|
});
|
|
210228
210266
|
}
|
|
@@ -210287,10 +210325,10 @@ const resolverTs = defineResolver(() => {
|
|
|
210287
210325
|
return `${this.resolveTypedName((_a = node.name) != null ? _a : "")}Key`;
|
|
210288
210326
|
},
|
|
210289
210327
|
resolvePathParamsName(_node) {
|
|
210290
|
-
throw new Error("resolvePathParamsName is only available
|
|
210328
|
+
throw new Error("resolvePathParamsName is only available with compatibilityPreset: 'kubbV4'. Use resolveParamName per individual parameter instead.");
|
|
210291
210329
|
},
|
|
210292
210330
|
resolvePathParamsTypedName(_node) {
|
|
210293
|
-
throw new Error("resolvePathParamsTypedName is only available
|
|
210331
|
+
throw new Error("resolvePathParamsTypedName is only available with compatibilityPreset: 'kubbV4'. Use resolveParamTypedName per individual parameter instead.");
|
|
210294
210332
|
},
|
|
210295
210333
|
resolveQueryParamsName(node) {
|
|
210296
210334
|
return this.resolveName(`${node.operationId} QueryParams`);
|
|
@@ -210299,10 +210337,10 @@ const resolverTs = defineResolver(() => {
|
|
|
210299
210337
|
return this.resolveTypedName(`${node.operationId} QueryParams`);
|
|
210300
210338
|
},
|
|
210301
210339
|
resolveHeaderParamsName(_node) {
|
|
210302
|
-
throw new Error("resolveHeaderParamsName is only available
|
|
210340
|
+
throw new Error("resolveHeaderParamsName is only available with compatibilityPreset: 'kubbV4'. Use resolveParamName per individual parameter instead.");
|
|
210303
210341
|
},
|
|
210304
210342
|
resolveHeaderParamsTypedName(_node) {
|
|
210305
|
-
throw new Error("resolveHeaderParamsTypedName is only available
|
|
210343
|
+
throw new Error("resolveHeaderParamsTypedName is only available with compatibilityPreset: 'kubbV4'. Use resolveParamTypedName per individual parameter instead.");
|
|
210306
210344
|
}
|
|
210307
210345
|
};
|
|
210308
210346
|
});
|
|
@@ -210363,14 +210401,29 @@ const resolverTsLegacy = defineResolver(() => {
|
|
|
210363
210401
|
};
|
|
210364
210402
|
});
|
|
210365
210403
|
|
|
210404
|
+
const presets = definePresets({
|
|
210405
|
+
default: definePreset("default", { resolvers: [resolverTs] }),
|
|
210406
|
+
kubbV4: definePreset("kubbV4", { resolvers: [resolverTsLegacy] })
|
|
210407
|
+
});
|
|
210408
|
+
function getPreset$1(preset, { resolvers, transformers } = {}) {
|
|
210409
|
+
return getPreset({
|
|
210410
|
+
preset,
|
|
210411
|
+
presets,
|
|
210412
|
+
resolvers: [resolverTs, ...resolvers != null ? resolvers : []],
|
|
210413
|
+
transformers
|
|
210414
|
+
});
|
|
210415
|
+
}
|
|
210416
|
+
__name$5(getPreset$1, "getPreset");
|
|
210366
210417
|
const pluginTsName = "plugin-ts";
|
|
210367
210418
|
const pluginTs = createPlugin((options) => {
|
|
210368
210419
|
const { output = {
|
|
210369
210420
|
path: "types",
|
|
210370
210421
|
barrelType: "named"
|
|
210371
|
-
}, group, exclude = [], include, override = [], enumType = "asConst", enumKeyCasing = "none", optionalType = "questionToken", arrayType = "array", syntaxType = "type", paramsCasing, generators = [typeGenerator].filter(Boolean),
|
|
210372
|
-
const baseResolver
|
|
210373
|
-
|
|
210422
|
+
}, group, exclude = [], include, override = [], enumType = "asConst", enumKeyCasing = "none", optionalType = "questionToken", arrayType = "array", syntaxType = "type", paramsCasing, generators = [typeGenerator].filter(Boolean), compatibilityPreset = "default", resolvers: userResolvers, transformers: userTransformers = [] } = options;
|
|
210423
|
+
const { baseResolver, resolver, transformers } = getPreset$1(compatibilityPreset, {
|
|
210424
|
+
resolvers: userResolvers,
|
|
210425
|
+
transformers: userTransformers
|
|
210426
|
+
});
|
|
210374
210427
|
let resolveNameWarning = false;
|
|
210375
210428
|
return {
|
|
210376
210429
|
name: pluginTsName,
|
|
@@ -210384,9 +210437,9 @@ const pluginTs = createPlugin((options) => {
|
|
|
210384
210437
|
group,
|
|
210385
210438
|
override,
|
|
210386
210439
|
paramsCasing,
|
|
210387
|
-
|
|
210388
|
-
resolver,
|
|
210440
|
+
compatibilityPreset,
|
|
210389
210441
|
baseResolver,
|
|
210442
|
+
resolver,
|
|
210390
210443
|
transformers
|
|
210391
210444
|
},
|
|
210392
210445
|
resolvePath(baseName, pathMode, options2) {
|
|
@@ -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.9/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.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/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.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/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.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/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.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/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-Dz4u5Mg4.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-bs_SwfEj.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-BFqabdAx.js","../../../../../plugin-oas/dist/generators-hPE06pZB.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-Cp2XF1Sa.js","../../../../../plugin-ts/dist/casing-Cp-jbC_k.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/Type-C8EHVKjc.js","../../../../../core/dist/hooks.js","../../../../../plugin-ts/dist/generators-BTTcjgbY.js","../../../../../plugin-ts/dist/resolvers-C_vYX56l.js","../../../../../plugin-ts/dist/index.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-zod/dist/generators-Dc5k6ZRg.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-C7Uz42d2.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-C6qvavJ4.js","../../../../../plugin-cypress/dist/generators-CsddWitM.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-M5oCrPmy.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-zYi6bZ4D.js","../../../../../plugin-mcp/dist/generators-B8MpQcFC.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-skQTekfZ.js","../../../../../plugin-msw/dist/generators-Cx8YEtI4.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CFTdrzdu.js","../../../../../plugin-react-query/dist/generators-D5XRpAur.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-DhF2y62B.js","../../../../../plugin-solid-query/dist/generators-Bjt_pqc2.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-gSKB93uB.js","../../../../../plugin-svelte-query/dist/generators-BnlHq9qP.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-dWefgCqh.js","../../../../../plugin-swr/dist/generators-h6SrQ3Gr.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components--op2hxIJ.js","../../../../../plugin-vue-query/dist/generators-B6cv10kw.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.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/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","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","_emitter","_a","toError","AsyncEventEmitter","__privateAdd","__privateGet","formatMs","parseHex","hex","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","applyParamsCasing","pascalCase","path","readFile","writeFile","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","match","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","extname","x","performance","build","readdir","version","_c","_d","_e","_f","renderOperation","renderSchema","item","trimExtName","error","__defProp","__name","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","node","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,56,111,112,113,114]}
|
|
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.9/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.10.1/node_modules/unstorage/dist/shared/unstorage.zVDD2mZo.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/dist/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/index.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/utils/node-fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs.mjs","../../../../../../node_modules/.pnpm/unstorage@1.17.4_db0@0.3.4_ioredis@5.10.1/node_modules/unstorage/drivers/fs-lite.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/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.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/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.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/utils.env.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/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.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/route-rules.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/error/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/error/prod.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/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-Dz4u5Mg4.js","../../../../../plugin-oas/dist/SchemaMapper-CqMkO2T1.js","../../../../../oas/dist/index.js","../../../../../plugin-oas/dist/requestBody-bs_SwfEj.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-BFqabdAx.js","../../../../../plugin-oas/dist/generators-hPE06pZB.js","../../../../../plugin-oas/dist/index.js","../../../../../plugin-zod/dist/components-Cp2XF1Sa.js","../../../../../plugin-ts/dist/chunk--u3MIqq1.js","../../../../../plugin-ts/dist/casing-Cp-jbC_k.js","../../../../../../node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/typescript.js","../../../../../plugin-ts/dist/Type-CEYpKTNb.js","../../../../../core/dist/hooks.js","../../../../../plugin-ts/dist/generators-huxvj9y4.js","../../../../../plugin-ts/dist/resolvers-DsKabI0F.js","../../../../../plugin-ts/dist/index.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-zod/dist/generators-Dc5k6ZRg.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-C7Uz42d2.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-C6qvavJ4.js","../../../../../plugin-cypress/dist/generators-CsddWitM.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-M5oCrPmy.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-zYi6bZ4D.js","../../../../../plugin-mcp/dist/generators-B8MpQcFC.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-skQTekfZ.js","../../../../../plugin-msw/dist/generators-Cx8YEtI4.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-CFTdrzdu.js","../../../../../plugin-react-query/dist/generators-D5XRpAur.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-DhF2y62B.js","../../../../../plugin-solid-query/dist/generators-Bjt_pqc2.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-gSKB93uB.js","../../../../../plugin-svelte-query/dist/generators-BnlHq9qP.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-dWefgCqh.js","../../../../../plugin-swr/dist/generators-h6SrQ3Gr.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components--op2hxIJ.js","../../../../../plugin-vue-query/dist/generators-B6cv10kw.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.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/lib/http-graceful-shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.11/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","createStorage","fsPromises","PATH_TRAVERSE_RE","fsp","snakeCase","_inlineAppConfig","createRadixRouter","_emitter","_a","toError","AsyncEventEmitter","__privateAdd","__privateGet","formatMs","parseHex","hex","process","toCamelOrPascal","applyToFileParts","camelCase","isValidVarName","pascalCase","path","readFile","writeFile","URLPath","_b","_URLPath_instances","__publicField","_options","__privateSet","__privateMethod","transformParam_fn","eachParam_fn","match","Node","Queue","_head","_tail","_size","__privateWrapper","pLimit","validateConcurrency","resolve","extname","x","performance","build","readdir","version","_c","_d","_e","_f","renderOperation","renderSchema","item","trimExtName","defaultResolver","error","__defProp","__name","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","node","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,57,112,113,114,115]}
|
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.17",
|
|
4
4
|
"description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"tinyexec": "^1.0.4",
|
|
41
41
|
"unstorage": "^1.17.4",
|
|
42
42
|
"ws": "^8.20.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.17",
|
|
44
|
+
"@kubb/plugin-client": "5.0.0-alpha.17",
|
|
45
|
+
"@kubb/plugin-cypress": "5.0.0-alpha.17",
|
|
46
|
+
"@kubb/plugin-faker": "5.0.0-alpha.17",
|
|
47
|
+
"@kubb/plugin-mcp": "5.0.0-alpha.17",
|
|
48
|
+
"@kubb/plugin-msw": "5.0.0-alpha.17",
|
|
49
|
+
"@kubb/plugin-oas": "5.0.0-alpha.17",
|
|
50
|
+
"@kubb/plugin-react-query": "5.0.0-alpha.17",
|
|
51
|
+
"@kubb/plugin-redoc": "5.0.0-alpha.17",
|
|
52
|
+
"@kubb/plugin-solid-query": "5.0.0-alpha.17",
|
|
53
|
+
"@kubb/plugin-svelte-query": "5.0.0-alpha.17",
|
|
54
|
+
"@kubb/plugin-swr": "5.0.0-alpha.17",
|
|
55
|
+
"@kubb/plugin-ts": "5.0.0-alpha.17",
|
|
56
|
+
"@kubb/plugin-vue-query": "5.0.0-alpha.17",
|
|
57
|
+
"@kubb/plugin-zod": "5.0.0-alpha.17"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/ws": "^8.18.1",
|