@kubb/agent 4.37.2 → 4.37.4
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
|
@@ -5824,7 +5824,7 @@ const fsStorage = defineStorage(() => ({
|
|
|
5824
5824
|
await clean(resolve(base));
|
|
5825
5825
|
}
|
|
5826
5826
|
}));
|
|
5827
|
-
var version$1 = "4.37.
|
|
5827
|
+
var version$1 = "4.37.4";
|
|
5828
5828
|
function getDiagnosticInfo() {
|
|
5829
5829
|
return {
|
|
5830
5830
|
nodeVersion: version$2,
|
|
@@ -6558,7 +6558,7 @@ async function detectLinter() {
|
|
|
6558
6558
|
]) if (await isLinterAvailable(linter)) return linter;
|
|
6559
6559
|
}
|
|
6560
6560
|
|
|
6561
|
-
var version = "4.37.
|
|
6561
|
+
var version = "4.37.4";
|
|
6562
6562
|
|
|
6563
6563
|
function isCommandMessage(msg) {
|
|
6564
6564
|
return msg.type === "command";
|
|
@@ -213448,7 +213448,11 @@ function getParams$9$1({ pathParamsType, paramsCasing, typeSchemas }) {
|
|
|
213448
213448
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
213449
213449
|
children: getPathParams(typeSchemas.pathParams, {
|
|
213450
213450
|
typed: true,
|
|
213451
|
-
casing: paramsCasing
|
|
213451
|
+
casing: paramsCasing,
|
|
213452
|
+
override: (item) => ({
|
|
213453
|
+
...item,
|
|
213454
|
+
type: `${item.type} | undefined`
|
|
213455
|
+
})
|
|
213452
213456
|
})
|
|
213453
213457
|
} : void 0,
|
|
213454
213458
|
data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
|
|
@@ -213515,7 +213519,11 @@ function getParams$8$1({ paramsType, paramsCasing, pathParamsType, typeSchemas }
|
|
|
213515
213519
|
const children = {
|
|
213516
213520
|
...getPathParams(typeSchemas.pathParams, {
|
|
213517
213521
|
typed: true,
|
|
213518
|
-
casing: paramsCasing
|
|
213522
|
+
casing: paramsCasing,
|
|
213523
|
+
override: (item) => ({
|
|
213524
|
+
...item,
|
|
213525
|
+
type: `${item.type} | undefined`
|
|
213526
|
+
})
|
|
213519
213527
|
}),
|
|
213520
213528
|
data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
|
|
213521
213529
|
type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
|
|
@@ -213548,7 +213556,11 @@ function getParams$8$1({ paramsType, paramsCasing, pathParamsType, typeSchemas }
|
|
|
213548
213556
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
213549
213557
|
children: getPathParams(typeSchemas.pathParams, {
|
|
213550
213558
|
typed: true,
|
|
213551
|
-
casing: paramsCasing
|
|
213559
|
+
casing: paramsCasing,
|
|
213560
|
+
override: (item) => ({
|
|
213561
|
+
...item,
|
|
213562
|
+
type: `${item.type} | undefined`
|
|
213563
|
+
})
|
|
213552
213564
|
}),
|
|
213553
213565
|
default: isAllOptional((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema) ? "{}" : void 0
|
|
213554
213566
|
} : void 0,
|
|
@@ -213593,9 +213605,9 @@ function QueryOptions$4({ name, clientName, dataReturnType, typeSchemas, paramsC
|
|
|
213593
213605
|
typeSchemas,
|
|
213594
213606
|
paramsCasing
|
|
213595
213607
|
});
|
|
213596
|
-
const
|
|
213597
|
-
|
|
213598
|
-
|
|
213608
|
+
const enabledPathParams = getPathParams(typeSchemas.pathParams, { casing: paramsCasing });
|
|
213609
|
+
const enabledParamNames = new Set(Object.entries(enabledPathParams).filter(([, item]) => item && !item.optional && !item.default).map(([key]) => key));
|
|
213610
|
+
const enabled = [...enabledParamNames].join(" && ");
|
|
213599
213611
|
const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
|
|
213600
213612
|
return /* @__PURE__ */ jsx(File.Source, {
|
|
213601
213613
|
name,
|
|
@@ -213613,7 +213625,7 @@ function QueryOptions$4({ name, clientName, dataReturnType, typeSchemas, paramsC
|
|
|
213613
213625
|
queryFn: async ({ signal }) => {
|
|
213614
213626
|
return ${clientName}(${clientParams.toCall({ transformName(name2) {
|
|
213615
213627
|
if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
|
|
213616
|
-
return name2;
|
|
213628
|
+
return enabledParamNames.has(name2) ? `${name2}!` : name2;
|
|
213617
213629
|
} })})
|
|
213618
213630
|
},
|
|
213619
213631
|
})
|
|
@@ -213628,7 +213640,11 @@ function getParams$7$1({ paramsType, paramsCasing, pathParamsType, typeSchemas,
|
|
|
213628
213640
|
const children = {
|
|
213629
213641
|
...getPathParams(typeSchemas.pathParams, {
|
|
213630
213642
|
typed: true,
|
|
213631
|
-
casing: paramsCasing
|
|
213643
|
+
casing: paramsCasing,
|
|
213644
|
+
override: (item) => ({
|
|
213645
|
+
...item,
|
|
213646
|
+
type: `${item.type} | undefined`
|
|
213647
|
+
})
|
|
213632
213648
|
}),
|
|
213633
213649
|
data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
|
|
213634
213650
|
type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
|
|
@@ -213666,7 +213682,11 @@ function getParams$7$1({ paramsType, paramsCasing, pathParamsType, typeSchemas,
|
|
|
213666
213682
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
213667
213683
|
children: getPathParams(typeSchemas.pathParams, {
|
|
213668
213684
|
typed: true,
|
|
213669
|
-
casing: paramsCasing
|
|
213685
|
+
casing: paramsCasing,
|
|
213686
|
+
override: (item) => ({
|
|
213687
|
+
...item,
|
|
213688
|
+
type: `${item.type} | undefined`
|
|
213689
|
+
})
|
|
213670
213690
|
}),
|
|
213671
213691
|
default: isAllOptional((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema) ? "{}" : void 0
|
|
213672
213692
|
} : void 0,
|
|
@@ -213769,7 +213789,11 @@ function getParams$6$1({ paramsType, paramsCasing, pathParamsType, typeSchemas }
|
|
|
213769
213789
|
const children = {
|
|
213770
213790
|
...getPathParams(typeSchemas.pathParams, {
|
|
213771
213791
|
typed: true,
|
|
213772
|
-
casing: paramsCasing
|
|
213792
|
+
casing: paramsCasing,
|
|
213793
|
+
override: (item) => ({
|
|
213794
|
+
...item,
|
|
213795
|
+
type: `${item.type} | undefined`
|
|
213796
|
+
})
|
|
213773
213797
|
}),
|
|
213774
213798
|
data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
|
|
213775
213799
|
type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
|
|
@@ -213802,7 +213826,11 @@ function getParams$6$1({ paramsType, paramsCasing, pathParamsType, typeSchemas }
|
|
|
213802
213826
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
213803
213827
|
children: getPathParams(typeSchemas.pathParams, {
|
|
213804
213828
|
typed: true,
|
|
213805
|
-
casing: paramsCasing
|
|
213829
|
+
casing: paramsCasing,
|
|
213830
|
+
override: (item) => ({
|
|
213831
|
+
...item,
|
|
213832
|
+
type: `${item.type} | undefined`
|
|
213833
|
+
})
|
|
213806
213834
|
}),
|
|
213807
213835
|
default: isAllOptional((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema) ? "{}" : void 0
|
|
213808
213836
|
} : void 0,
|
|
@@ -213885,9 +213913,9 @@ function InfiniteQueryOptions$1({ name, clientName, initialPageParam, cursorPara
|
|
|
213885
213913
|
...(params ?? {}),
|
|
213886
213914
|
['${queryParam}']: pageParam as unknown as ${(_e = typeSchemas.queryParams) == null ? void 0 : _e.name}['${queryParam}'],
|
|
213887
213915
|
} as ${(_f = typeSchemas.queryParams) == null ? void 0 : _f.name}` : "";
|
|
213888
|
-
const
|
|
213889
|
-
|
|
213890
|
-
|
|
213916
|
+
const enabledPathParams = getPathParams(typeSchemas.pathParams, { casing: paramsCasing });
|
|
213917
|
+
const enabledParamNames = new Set(Object.entries(enabledPathParams).filter(([, item]) => item && !item.optional && !item.default).map(([key]) => key));
|
|
213918
|
+
const enabled = [...enabledParamNames].join(" && ");
|
|
213891
213919
|
const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
|
|
213892
213920
|
if (infiniteOverrideParams) return /* @__PURE__ */ jsx(File.Source, {
|
|
213893
213921
|
name,
|
|
@@ -213906,7 +213934,7 @@ function InfiniteQueryOptions$1({ name, clientName, initialPageParam, cursorPara
|
|
|
213906
213934
|
${infiniteOverrideParams}
|
|
213907
213935
|
return ${clientName}(${clientParams.toCall({ transformName(name2) {
|
|
213908
213936
|
if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
|
|
213909
|
-
return name2;
|
|
213937
|
+
return enabledParamNames.has(name2) ? `${name2}!` : name2;
|
|
213910
213938
|
} })})
|
|
213911
213939
|
},
|
|
213912
213940
|
${queryOptions.join(",\n")}
|
|
@@ -213930,7 +213958,7 @@ function InfiniteQueryOptions$1({ name, clientName, initialPageParam, cursorPara
|
|
|
213930
213958
|
queryFn: async ({ signal }) => {
|
|
213931
213959
|
return ${clientName}(${clientParams.toCall({ transformName(name2) {
|
|
213932
213960
|
if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
|
|
213933
|
-
return name2;
|
|
213961
|
+
return enabledParamNames.has(name2) ? `${name2}!` : name2;
|
|
213934
213962
|
} })})
|
|
213935
213963
|
},
|
|
213936
213964
|
${queryOptions.join(",\n")}
|
|
@@ -214128,7 +214156,11 @@ function getParams$3$4({ paramsType, paramsCasing, pathParamsType, dataReturnTyp
|
|
|
214128
214156
|
const children = {
|
|
214129
214157
|
...getPathParams(typeSchemas.pathParams, {
|
|
214130
214158
|
typed: true,
|
|
214131
|
-
casing: paramsCasing
|
|
214159
|
+
casing: paramsCasing,
|
|
214160
|
+
override: (item) => ({
|
|
214161
|
+
...item,
|
|
214162
|
+
type: `${item.type} | undefined`
|
|
214163
|
+
})
|
|
214132
214164
|
}),
|
|
214133
214165
|
data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
|
|
214134
214166
|
type: (_c = typeSchemas.request) == null ? void 0 : _c.name,
|
|
@@ -214172,7 +214204,11 @@ function getParams$3$4({ paramsType, paramsCasing, pathParamsType, dataReturnTyp
|
|
|
214172
214204
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
214173
214205
|
children: getPathParams(typeSchemas.pathParams, {
|
|
214174
214206
|
typed: true,
|
|
214175
|
-
casing: paramsCasing
|
|
214207
|
+
casing: paramsCasing,
|
|
214208
|
+
override: (item) => ({
|
|
214209
|
+
...item,
|
|
214210
|
+
type: `${item.type} | undefined`
|
|
214211
|
+
})
|
|
214176
214212
|
}),
|
|
214177
214213
|
default: isAllOptional((_n = typeSchemas.pathParams) == null ? void 0 : _n.schema) ? "{}" : void 0
|
|
214178
214214
|
} : void 0,
|
|
@@ -214270,7 +214306,11 @@ function getParams$2$4({ paramsType, paramsCasing, pathParamsType, typeSchemas,
|
|
|
214270
214306
|
const children = {
|
|
214271
214307
|
...getPathParams(typeSchemas.pathParams, {
|
|
214272
214308
|
typed: true,
|
|
214273
|
-
casing: paramsCasing
|
|
214309
|
+
casing: paramsCasing,
|
|
214310
|
+
override: (item) => ({
|
|
214311
|
+
...item,
|
|
214312
|
+
type: `${item.type} | undefined`
|
|
214313
|
+
})
|
|
214274
214314
|
}),
|
|
214275
214315
|
data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
|
|
214276
214316
|
type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
|
|
@@ -214308,7 +214348,11 @@ function getParams$2$4({ paramsType, paramsCasing, pathParamsType, typeSchemas,
|
|
|
214308
214348
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
214309
214349
|
children: getPathParams(typeSchemas.pathParams, {
|
|
214310
214350
|
typed: true,
|
|
214311
|
-
casing: paramsCasing
|
|
214351
|
+
casing: paramsCasing,
|
|
214352
|
+
override: (item) => ({
|
|
214353
|
+
...item,
|
|
214354
|
+
type: `${item.type} | undefined`
|
|
214355
|
+
})
|
|
214312
214356
|
}),
|
|
214313
214357
|
default: isAllOptional((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema) ? "{}" : void 0
|
|
214314
214358
|
} : void 0,
|
|
@@ -214411,7 +214455,11 @@ function getParams$1$4({ paramsType, paramsCasing, pathParamsType, typeSchemas }
|
|
|
214411
214455
|
const children = {
|
|
214412
214456
|
...getPathParams(typeSchemas.pathParams, {
|
|
214413
214457
|
typed: true,
|
|
214414
|
-
casing: paramsCasing
|
|
214458
|
+
casing: paramsCasing,
|
|
214459
|
+
override: (item) => ({
|
|
214460
|
+
...item,
|
|
214461
|
+
type: `${item.type} | undefined`
|
|
214462
|
+
})
|
|
214415
214463
|
}),
|
|
214416
214464
|
data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
|
|
214417
214465
|
type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
|
|
@@ -214444,7 +214492,11 @@ function getParams$1$4({ paramsType, paramsCasing, pathParamsType, typeSchemas }
|
|
|
214444
214492
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
214445
214493
|
children: getPathParams(typeSchemas.pathParams, {
|
|
214446
214494
|
typed: true,
|
|
214447
|
-
casing: paramsCasing
|
|
214495
|
+
casing: paramsCasing,
|
|
214496
|
+
override: (item) => ({
|
|
214497
|
+
...item,
|
|
214498
|
+
type: `${item.type} | undefined`
|
|
214499
|
+
})
|
|
214448
214500
|
}),
|
|
214449
214501
|
default: isAllOptional((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema) ? "{}" : void 0
|
|
214450
214502
|
} : void 0,
|
|
@@ -214527,9 +214579,9 @@ function SuspenseInfiniteQueryOptions({ name, clientName, initialPageParam, curs
|
|
|
214527
214579
|
...(params ?? {}),
|
|
214528
214580
|
['${queryParam}']: pageParam as unknown as ${(_e = typeSchemas.queryParams) == null ? void 0 : _e.name}['${queryParam}'],
|
|
214529
214581
|
} as ${(_f = typeSchemas.queryParams) == null ? void 0 : _f.name}` : "";
|
|
214530
|
-
const
|
|
214531
|
-
|
|
214532
|
-
|
|
214582
|
+
const enabledPathParams = getPathParams(typeSchemas.pathParams, { casing: paramsCasing });
|
|
214583
|
+
const enabledParamNames = new Set(Object.entries(enabledPathParams).filter(([, item]) => item && !item.optional && !item.default).map(([key]) => key));
|
|
214584
|
+
const enabled = [...enabledParamNames].join(" && ");
|
|
214533
214585
|
const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
|
|
214534
214586
|
if (infiniteOverrideParams) return /* @__PURE__ */ jsx(File.Source, {
|
|
214535
214587
|
name,
|
|
@@ -214548,7 +214600,7 @@ function SuspenseInfiniteQueryOptions({ name, clientName, initialPageParam, curs
|
|
|
214548
214600
|
${infiniteOverrideParams}
|
|
214549
214601
|
return ${clientName}(${clientParams.toCall({ transformName(name2) {
|
|
214550
214602
|
if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
|
|
214551
|
-
return name2;
|
|
214603
|
+
return enabledParamNames.has(name2) ? `${name2}!` : name2;
|
|
214552
214604
|
} })})
|
|
214553
214605
|
},
|
|
214554
214606
|
${queryOptions.join(",\n")}
|
|
@@ -214572,7 +214624,7 @@ function SuspenseInfiniteQueryOptions({ name, clientName, initialPageParam, curs
|
|
|
214572
214624
|
queryFn: async ({ signal }) => {
|
|
214573
214625
|
return ${clientName}(${clientParams.toCall({ transformName(name2) {
|
|
214574
214626
|
if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
|
|
214575
|
-
return name2;
|
|
214627
|
+
return enabledParamNames.has(name2) ? `${name2}!` : name2;
|
|
214576
214628
|
} })})
|
|
214577
214629
|
},
|
|
214578
214630
|
${queryOptions.join(",\n")}
|
|
@@ -214590,7 +214642,11 @@ function getParams$a({ paramsType, paramsCasing, pathParamsType, dataReturnType,
|
|
|
214590
214642
|
const children = {
|
|
214591
214643
|
...getPathParams(typeSchemas.pathParams, {
|
|
214592
214644
|
typed: true,
|
|
214593
|
-
casing: paramsCasing
|
|
214645
|
+
casing: paramsCasing,
|
|
214646
|
+
override: (item) => ({
|
|
214647
|
+
...item,
|
|
214648
|
+
type: `${item.type} | undefined`
|
|
214649
|
+
})
|
|
214594
214650
|
}),
|
|
214595
214651
|
data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
|
|
214596
214652
|
type: (_c = typeSchemas.request) == null ? void 0 : _c.name,
|
|
@@ -214633,7 +214689,11 @@ function getParams$a({ paramsType, paramsCasing, pathParamsType, dataReturnType,
|
|
|
214633
214689
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
214634
214690
|
children: getPathParams(typeSchemas.pathParams, {
|
|
214635
214691
|
typed: true,
|
|
214636
|
-
casing: paramsCasing
|
|
214692
|
+
casing: paramsCasing,
|
|
214693
|
+
override: (item) => ({
|
|
214694
|
+
...item,
|
|
214695
|
+
type: `${item.type} | undefined`
|
|
214696
|
+
})
|
|
214637
214697
|
}),
|
|
214638
214698
|
default: isAllOptional((_n = typeSchemas.pathParams) == null ? void 0 : _n.schema) ? "{}" : void 0
|
|
214639
214699
|
} : void 0,
|
|
@@ -216518,7 +216578,11 @@ function getParams$3$3({ pathParamsType, paramsCasing, typeSchemas }) {
|
|
|
216518
216578
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
216519
216579
|
children: getPathParams(typeSchemas.pathParams, {
|
|
216520
216580
|
typed: true,
|
|
216521
|
-
casing: paramsCasing
|
|
216581
|
+
casing: paramsCasing,
|
|
216582
|
+
override: (item) => ({
|
|
216583
|
+
...item,
|
|
216584
|
+
type: `${item.type} | undefined`
|
|
216585
|
+
})
|
|
216522
216586
|
})
|
|
216523
216587
|
} : void 0,
|
|
216524
216588
|
data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
|
|
@@ -216703,7 +216767,11 @@ function getParams$1$3({ paramsType, paramsCasing, pathParamsType, typeSchemas }
|
|
|
216703
216767
|
const children = {
|
|
216704
216768
|
...getPathParams(typeSchemas.pathParams, {
|
|
216705
216769
|
typed: true,
|
|
216706
|
-
casing: paramsCasing
|
|
216770
|
+
casing: paramsCasing,
|
|
216771
|
+
override: (item) => ({
|
|
216772
|
+
...item,
|
|
216773
|
+
type: `${item.type} | undefined`
|
|
216774
|
+
})
|
|
216707
216775
|
}),
|
|
216708
216776
|
data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
|
|
216709
216777
|
type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
|
|
@@ -216736,7 +216804,11 @@ function getParams$1$3({ paramsType, paramsCasing, pathParamsType, typeSchemas }
|
|
|
216736
216804
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
216737
216805
|
children: getPathParams(typeSchemas.pathParams, {
|
|
216738
216806
|
typed: true,
|
|
216739
|
-
casing: paramsCasing
|
|
216807
|
+
casing: paramsCasing,
|
|
216808
|
+
override: (item) => ({
|
|
216809
|
+
...item,
|
|
216810
|
+
type: `${item.type} | undefined`
|
|
216811
|
+
})
|
|
216740
216812
|
}),
|
|
216741
216813
|
default: isAllOptional((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema) ? "{}" : void 0
|
|
216742
216814
|
} : void 0,
|
|
@@ -216781,9 +216853,9 @@ function QueryOptions$3({ name, clientName, typeSchemas, paramsCasing, paramsTyp
|
|
|
216781
216853
|
paramsCasing,
|
|
216782
216854
|
typeSchemas
|
|
216783
216855
|
});
|
|
216784
|
-
const
|
|
216785
|
-
|
|
216786
|
-
|
|
216856
|
+
const enabledPathParams = getPathParams(typeSchemas.pathParams, { casing: paramsCasing });
|
|
216857
|
+
const enabledParamNames = new Set(Object.entries(enabledPathParams).filter(([, item]) => item && !item.optional && !item.default).map(([key]) => key));
|
|
216858
|
+
const enabled = [...enabledParamNames].join(" && ");
|
|
216787
216859
|
const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
|
|
216788
216860
|
return /* @__PURE__ */ jsx(File.Source, {
|
|
216789
216861
|
name,
|
|
@@ -216801,7 +216873,7 @@ function QueryOptions$3({ name, clientName, typeSchemas, paramsCasing, paramsTyp
|
|
|
216801
216873
|
queryFn: async ({ signal }) => {
|
|
216802
216874
|
return ${clientName}(${clientParams.toCall({ transformName(name2) {
|
|
216803
216875
|
if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
|
|
216804
|
-
return name2;
|
|
216876
|
+
return enabledParamNames.has(name2) ? `${name2}!` : name2;
|
|
216805
216877
|
} })})
|
|
216806
216878
|
},
|
|
216807
216879
|
})
|
|
@@ -216818,7 +216890,11 @@ function getParams$9({ paramsType, paramsCasing, pathParamsType, dataReturnType,
|
|
|
216818
216890
|
const children = {
|
|
216819
216891
|
...getPathParams(typeSchemas.pathParams, {
|
|
216820
216892
|
typed: true,
|
|
216821
|
-
casing: paramsCasing
|
|
216893
|
+
casing: paramsCasing,
|
|
216894
|
+
override: (item) => ({
|
|
216895
|
+
...item,
|
|
216896
|
+
type: `${item.type} | undefined`
|
|
216897
|
+
})
|
|
216822
216898
|
}),
|
|
216823
216899
|
data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
|
|
216824
216900
|
type: (_c = typeSchemas.request) == null ? void 0 : _c.name,
|
|
@@ -216862,7 +216938,11 @@ function getParams$9({ paramsType, paramsCasing, pathParamsType, dataReturnType,
|
|
|
216862
216938
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
216863
216939
|
children: getPathParams(typeSchemas.pathParams, {
|
|
216864
216940
|
typed: true,
|
|
216865
|
-
casing: paramsCasing
|
|
216941
|
+
casing: paramsCasing,
|
|
216942
|
+
override: (item) => ({
|
|
216943
|
+
...item,
|
|
216944
|
+
type: `${item.type} | undefined`
|
|
216945
|
+
})
|
|
216866
216946
|
}),
|
|
216867
216947
|
default: isAllOptional((_n = typeSchemas.pathParams) == null ? void 0 : _n.schema) ? "{}" : void 0
|
|
216868
216948
|
} : void 0,
|
|
@@ -217668,7 +217748,11 @@ function getParams$3$2({ pathParamsType, paramsCasing, typeSchemas }) {
|
|
|
217668
217748
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
217669
217749
|
children: getPathParams(typeSchemas.pathParams, {
|
|
217670
217750
|
typed: true,
|
|
217671
|
-
casing: paramsCasing
|
|
217751
|
+
casing: paramsCasing,
|
|
217752
|
+
override: (item) => ({
|
|
217753
|
+
...item,
|
|
217754
|
+
type: `${item.type} | undefined`
|
|
217755
|
+
})
|
|
217672
217756
|
})
|
|
217673
217757
|
} : void 0,
|
|
217674
217758
|
data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
|
|
@@ -217853,7 +217937,11 @@ function getParams$1$2({ paramsType, paramsCasing, pathParamsType, typeSchemas }
|
|
|
217853
217937
|
const children = {
|
|
217854
217938
|
...getPathParams(typeSchemas.pathParams, {
|
|
217855
217939
|
typed: true,
|
|
217856
|
-
casing: paramsCasing
|
|
217940
|
+
casing: paramsCasing,
|
|
217941
|
+
override: (item) => ({
|
|
217942
|
+
...item,
|
|
217943
|
+
type: `${item.type} | undefined`
|
|
217944
|
+
})
|
|
217857
217945
|
}),
|
|
217858
217946
|
data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
|
|
217859
217947
|
type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
|
|
@@ -217886,7 +217974,11 @@ function getParams$1$2({ paramsType, paramsCasing, pathParamsType, typeSchemas }
|
|
|
217886
217974
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
217887
217975
|
children: getPathParams(typeSchemas.pathParams, {
|
|
217888
217976
|
typed: true,
|
|
217889
|
-
casing: paramsCasing
|
|
217977
|
+
casing: paramsCasing,
|
|
217978
|
+
override: (item) => ({
|
|
217979
|
+
...item,
|
|
217980
|
+
type: `${item.type} | undefined`
|
|
217981
|
+
})
|
|
217890
217982
|
}),
|
|
217891
217983
|
default: getDefaultValue((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema)
|
|
217892
217984
|
} : void 0,
|
|
@@ -217931,9 +218023,9 @@ function QueryOptions$2({ name, clientName, typeSchemas, paramsCasing, paramsTyp
|
|
|
217931
218023
|
paramsCasing,
|
|
217932
218024
|
typeSchemas
|
|
217933
218025
|
});
|
|
217934
|
-
const
|
|
217935
|
-
|
|
217936
|
-
|
|
218026
|
+
const enabledPathParams = getPathParams(typeSchemas.pathParams, { casing: paramsCasing });
|
|
218027
|
+
const enabledParamNames = new Set(Object.entries(enabledPathParams).filter(([, item]) => item && !item.optional && !item.default).map(([key]) => key));
|
|
218028
|
+
const enabled = [...enabledParamNames].join(" && ");
|
|
217937
218029
|
const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
|
|
217938
218030
|
return /* @__PURE__ */ jsx(File.Source, {
|
|
217939
218031
|
name,
|
|
@@ -217951,7 +218043,7 @@ function QueryOptions$2({ name, clientName, typeSchemas, paramsCasing, paramsTyp
|
|
|
217951
218043
|
queryFn: async ({ signal }) => {
|
|
217952
218044
|
return ${clientName}(${clientParams.toCall({ transformName(name2) {
|
|
217953
218045
|
if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
|
|
217954
|
-
return name2;
|
|
218046
|
+
return enabledParamNames.has(name2) ? `${name2}!` : name2;
|
|
217955
218047
|
} })})
|
|
217956
218048
|
},
|
|
217957
218049
|
})
|
|
@@ -217968,7 +218060,11 @@ function getParams$8({ paramsType, paramsCasing, pathParamsType, dataReturnType,
|
|
|
217968
218060
|
const children = {
|
|
217969
218061
|
...getPathParams(typeSchemas.pathParams, {
|
|
217970
218062
|
typed: true,
|
|
217971
|
-
casing: paramsCasing
|
|
218063
|
+
casing: paramsCasing,
|
|
218064
|
+
override: (item) => ({
|
|
218065
|
+
...item,
|
|
218066
|
+
type: `${item.type} | undefined`
|
|
218067
|
+
})
|
|
217972
218068
|
}),
|
|
217973
218069
|
data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
|
|
217974
218070
|
type: (_c = typeSchemas.request) == null ? void 0 : _c.name,
|
|
@@ -218012,7 +218108,11 @@ function getParams$8({ paramsType, paramsCasing, pathParamsType, dataReturnType,
|
|
|
218012
218108
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
218013
218109
|
children: getPathParams(typeSchemas.pathParams, {
|
|
218014
218110
|
typed: true,
|
|
218015
|
-
casing: paramsCasing
|
|
218111
|
+
casing: paramsCasing,
|
|
218112
|
+
override: (item) => ({
|
|
218113
|
+
...item,
|
|
218114
|
+
type: `${item.type} | undefined`
|
|
218115
|
+
})
|
|
218016
218116
|
}),
|
|
218017
218117
|
default: getDefaultValue((_n = typeSchemas.pathParams) == null ? void 0 : _n.schema)
|
|
218018
218118
|
} : void 0,
|
|
@@ -218818,7 +218918,11 @@ function getParams$3$1({ pathParamsType, paramsCasing, typeSchemas }) {
|
|
|
218818
218918
|
mode: pathParamsType === "object" ? "object" : "inlineSpread",
|
|
218819
218919
|
children: getPathParams(typeSchemas.pathParams, {
|
|
218820
218920
|
typed: true,
|
|
218821
|
-
casing: paramsCasing
|
|
218921
|
+
casing: paramsCasing,
|
|
218922
|
+
override: (item) => ({
|
|
218923
|
+
...item,
|
|
218924
|
+
type: `${item.type} | undefined`
|
|
218925
|
+
})
|
|
218822
218926
|
})
|
|
218823
218927
|
} : void 0,
|
|
218824
218928
|
data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
|
|
@@ -219959,7 +220063,7 @@ function getParams$6({ pathParamsType, paramsCasing, typeSchemas }) {
|
|
|
219959
220063
|
override(item) {
|
|
219960
220064
|
return {
|
|
219961
220065
|
...item,
|
|
219962
|
-
type: `MaybeRefOrGetter<${item.type}>`
|
|
220066
|
+
type: `MaybeRefOrGetter<${item.type} | undefined>`
|
|
219963
220067
|
};
|
|
219964
220068
|
}
|
|
219965
220069
|
})
|
|
@@ -220032,7 +220136,7 @@ function getParams$5({ paramsType, paramsCasing, pathParamsType, typeSchemas })
|
|
|
220032
220136
|
override(item) {
|
|
220033
220137
|
return {
|
|
220034
220138
|
...item,
|
|
220035
|
-
type: `MaybeRefOrGetter<${item.type}>`
|
|
220139
|
+
type: `MaybeRefOrGetter<${item.type} | undefined>`
|
|
220036
220140
|
};
|
|
220037
220141
|
}
|
|
220038
220142
|
}),
|
|
@@ -220071,7 +220175,7 @@ function getParams$5({ paramsType, paramsCasing, pathParamsType, typeSchemas })
|
|
|
220071
220175
|
override(item) {
|
|
220072
220176
|
return {
|
|
220073
220177
|
...item,
|
|
220074
|
-
type: `MaybeRefOrGetter<${item.type}>`
|
|
220178
|
+
type: `MaybeRefOrGetter<${item.type} | undefined>`
|
|
220075
220179
|
};
|
|
220076
220180
|
}
|
|
220077
220181
|
}),
|
|
@@ -220118,9 +220222,9 @@ function QueryOptions({ name, clientName, dataReturnType, typeSchemas, paramsCas
|
|
|
220118
220222
|
typeSchemas,
|
|
220119
220223
|
paramsCasing
|
|
220120
220224
|
});
|
|
220121
|
-
const
|
|
220122
|
-
|
|
220123
|
-
|
|
220225
|
+
const enabledPathParams = getPathParams(typeSchemas.pathParams, { casing: paramsCasing });
|
|
220226
|
+
const enabledParamNames = new Set(Object.entries(enabledPathParams).filter(([, item]) => item && !item.optional && !item.default).map(([key]) => key));
|
|
220227
|
+
const enabled = [...enabledParamNames].join(" && ");
|
|
220124
220228
|
const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
|
|
220125
220229
|
return /* @__PURE__ */ jsx(File.Source, {
|
|
220126
220230
|
name,
|
|
@@ -220138,7 +220242,7 @@ function QueryOptions({ name, clientName, dataReturnType, typeSchemas, paramsCas
|
|
|
220138
220242
|
queryFn: async ({ signal }) => {
|
|
220139
220243
|
return ${clientName}(${clientParams.toCall({ transformName(name2) {
|
|
220140
220244
|
if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
|
|
220141
|
-
return `toValue(${name2})`;
|
|
220245
|
+
return `toValue(${name2})${enabledParamNames.has(name2) ? "!" : ""}`;
|
|
220142
220246
|
} })})
|
|
220143
220247
|
},
|
|
220144
220248
|
})
|
|
@@ -220159,7 +220263,7 @@ function getParams$4({ paramsType, paramsCasing, pathParamsType, dataReturnType,
|
|
|
220159
220263
|
override(item) {
|
|
220160
220264
|
return {
|
|
220161
220265
|
...item,
|
|
220162
|
-
type: `MaybeRefOrGetter<${item.type}>`
|
|
220266
|
+
type: `MaybeRefOrGetter<${item.type} | undefined>`
|
|
220163
220267
|
};
|
|
220164
220268
|
}
|
|
220165
220269
|
}),
|
|
@@ -220209,7 +220313,7 @@ function getParams$4({ paramsType, paramsCasing, pathParamsType, dataReturnType,
|
|
|
220209
220313
|
override(item) {
|
|
220210
220314
|
return {
|
|
220211
220315
|
...item,
|
|
220212
|
-
type: `MaybeRefOrGetter<${item.type}>`
|
|
220316
|
+
type: `MaybeRefOrGetter<${item.type} | undefined>`
|
|
220213
220317
|
};
|
|
220214
220318
|
}
|
|
220215
220319
|
}),
|
|
@@ -220313,7 +220417,7 @@ function getParams$3({ paramsType, paramsCasing, pathParamsType, typeSchemas })
|
|
|
220313
220417
|
override(item) {
|
|
220314
220418
|
return {
|
|
220315
220419
|
...item,
|
|
220316
|
-
type: `MaybeRefOrGetter<${item.type}>`
|
|
220420
|
+
type: `MaybeRefOrGetter<${item.type} | undefined>`
|
|
220317
220421
|
};
|
|
220318
220422
|
}
|
|
220319
220423
|
}),
|
|
@@ -220352,7 +220456,7 @@ function getParams$3({ paramsType, paramsCasing, pathParamsType, typeSchemas })
|
|
|
220352
220456
|
override(item) {
|
|
220353
220457
|
return {
|
|
220354
220458
|
...item,
|
|
220355
|
-
type: `MaybeRefOrGetter<${item.type}>`
|
|
220459
|
+
type: `MaybeRefOrGetter<${item.type} | undefined>`
|
|
220356
220460
|
};
|
|
220357
220461
|
}
|
|
220358
220462
|
}),
|
|
@@ -220429,9 +220533,9 @@ function InfiniteQueryOptions({ name, clientName, initialPageParam, cursorParam,
|
|
|
220429
220533
|
params = { }
|
|
220430
220534
|
}
|
|
220431
220535
|
params['${queryParam}'] = pageParam as unknown as ${(_c = typeSchemas.queryParams) == null ? void 0 : _c.name}['${queryParam}']` : "";
|
|
220432
|
-
const
|
|
220433
|
-
|
|
220434
|
-
|
|
220536
|
+
const enabledPathParams = getPathParams(typeSchemas.pathParams, { casing: paramsCasing });
|
|
220537
|
+
const enabledParamNames = new Set(Object.entries(enabledPathParams).filter(([, item]) => item && !item.optional && !item.default).map(([key]) => key));
|
|
220538
|
+
const enabled = [...enabledParamNames].join(" && ");
|
|
220435
220539
|
const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
|
|
220436
220540
|
return /* @__PURE__ */ jsx(File.Source, {
|
|
220437
220541
|
name,
|
|
@@ -220450,7 +220554,7 @@ function InfiniteQueryOptions({ name, clientName, initialPageParam, cursorParam,
|
|
|
220450
220554
|
${infiniteOverrideParams}
|
|
220451
220555
|
return ${clientName}(${clientParams.toCall({ transformName(name2) {
|
|
220452
220556
|
if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
|
|
220453
|
-
return `toValue(${name2})`;
|
|
220557
|
+
return `toValue(${name2})${enabledParamNames.has(name2) ? "!" : ""}`;
|
|
220454
220558
|
} })})
|
|
220455
220559
|
},
|
|
220456
220560
|
${queryOptions.join(",\n")}
|
|
@@ -220635,7 +220739,7 @@ function getParams({ paramsCasing, paramsType, pathParamsType, dataReturnType, t
|
|
|
220635
220739
|
override(item) {
|
|
220636
220740
|
return {
|
|
220637
220741
|
...item,
|
|
220638
|
-
type: `MaybeRefOrGetter<${item.type}>`
|
|
220742
|
+
type: `MaybeRefOrGetter<${item.type} | undefined>`
|
|
220639
220743
|
};
|
|
220640
220744
|
}
|
|
220641
220745
|
}),
|
|
@@ -220685,7 +220789,7 @@ function getParams({ paramsCasing, paramsType, pathParamsType, dataReturnType, t
|
|
|
220685
220789
|
override(item) {
|
|
220686
220790
|
return {
|
|
220687
220791
|
...item,
|
|
220688
|
-
type: `MaybeRefOrGetter<${item.type}>`
|
|
220792
|
+
type: `MaybeRefOrGetter<${item.type} | undefined>`
|
|
220689
220793
|
};
|
|
220690
220794
|
}
|
|
220691
220795
|
}),
|
|
@@ -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.10/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.10/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/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.10/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.10/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.10/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/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.10/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/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.10/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.10/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-pRavthCw.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-bCe7RG_w.js","../../../../../plugin-oas/dist/generators-D7C3CXsN.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-C7fu-sK1.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-CYC-FGXe.js","../../../../../plugin-zod/dist/generators-D1R6NNf2.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-BffddRNu.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-D5YFtyyC.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-BztogaeO.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-H3SwqhwF.js","../../../../../plugin-mcp/dist/generators-BqkMrcs9.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-DgtTZkWX.js","../../../../../plugin-msw/dist/generators-C34kqa1L.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-CpiBv5eE.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-CQClzsST.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-BtTsGGrM.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-DRDGvgXG.js","../../../../../plugin-swr/dist/generators-ClWZJ-YG.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-Zb1s5Wmb.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.10/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/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.10/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/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.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.10/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.10/node_modules/nitropack/dist/runtime/internal/hash.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/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.10/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.10/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.10/node_modules/nitropack/dist/runtime/internal/context.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/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.10/node_modules/nitropack/dist/runtime/internal/utils.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/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.10/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.10/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-pRavthCw.js","../../../../../plugin-oas/dist/utils.js","../../../../../plugin-client/dist/StaticClassClient-bCe7RG_w.js","../../../../../plugin-oas/dist/generators-D7C3CXsN.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-C7fu-sK1.js","../../../../../core/dist/hooks.js","../../../../../plugin-oas/dist/hooks.js","../../../../../plugin-ts/dist/plugin-CYC-FGXe.js","../../../../../plugin-zod/dist/generators-D1R6NNf2.js","../../../../../plugin-zod/dist/templates/ToZod.source.js","../../../../../plugin-zod/dist/index.js","../../../../../plugin-client/dist/generators-BffddRNu.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-D5YFtyyC.js","../../../../../plugin-cypress/dist/index.js","../../../../../plugin-faker/dist/components-BkBIov4R.js","../../../../../plugin-faker/dist/fakerGenerator-BztogaeO.js","../../../../../plugin-faker/dist/index.js","../../../../../plugin-mcp/dist/Server-H3SwqhwF.js","../../../../../plugin-mcp/dist/generators-BqkMrcs9.js","../../../../../plugin-mcp/dist/index.js","../../../../../plugin-msw/dist/components-DgtTZkWX.js","../../../../../plugin-msw/dist/generators-C34kqa1L.js","../../../../../plugin-msw/dist/index.js","../../../../../plugin-react-query/dist/chunk--u3MIqq1.js","../../../../../plugin-react-query/dist/components-2ovQPo4I.js","../../../../../plugin-react-query/dist/generators-DSDTfWWN.js","../../../../../plugin-react-query/dist/index.js","../../../../../plugin-redoc/dist/index.js","../../../../../plugin-solid-query/dist/chunk--u3MIqq1.js","../../../../../plugin-solid-query/dist/components-BYDITbNd.js","../../../../../plugin-solid-query/dist/generators-CHmunyHQ.js","../../../../../plugin-solid-query/dist/index.js","../../../../../plugin-svelte-query/dist/chunk--u3MIqq1.js","../../../../../plugin-svelte-query/dist/components-DeG3i_JY.js","../../../../../plugin-svelte-query/dist/generators-800rj_vF.js","../../../../../plugin-svelte-query/dist/index.js","../../../../../plugin-swr/dist/chunk--u3MIqq1.js","../../../../../plugin-swr/dist/components-DmHqNyzW.js","../../../../../plugin-swr/dist/generators-dX6EAaSX.js","../../../../../plugin-swr/dist/index.js","../../../../../plugin-vue-query/dist/chunk--u3MIqq1.js","../../../../../plugin-vue-query/dist/components-j0sVPsMC.js","../../../../../plugin-vue-query/dist/generators-BrJ6csin.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.10/node_modules/nitropack/dist/runtime/internal/app.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/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.10/node_modules/nitropack/dist/runtime/internal/shutdown.mjs","../../../../../../node_modules/.pnpm/nitropack@2.13.2_encoding@0.1.13_rolldown@1.0.0-rc.10/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]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent",
|
|
3
|
-
"version": "4.37.
|
|
3
|
+
"version": "4.37.4",
|
|
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.19.0",
|
|
43
|
-
"@kubb/core": "4.37.
|
|
44
|
-
"@kubb/plugin-client": "4.37.
|
|
45
|
-
"@kubb/plugin-cypress": "4.37.
|
|
46
|
-
"@kubb/plugin-faker": "4.37.
|
|
47
|
-
"@kubb/plugin-mcp": "4.37.
|
|
48
|
-
"@kubb/plugin-msw": "4.37.
|
|
49
|
-
"@kubb/plugin-oas": "4.37.
|
|
50
|
-
"@kubb/plugin-react-query": "4.37.
|
|
51
|
-
"@kubb/plugin-redoc": "4.37.
|
|
52
|
-
"@kubb/plugin-solid-query": "4.37.
|
|
53
|
-
"@kubb/plugin-svelte-query": "4.37.
|
|
54
|
-
"@kubb/plugin-swr": "4.37.
|
|
55
|
-
"@kubb/plugin-ts": "4.37.
|
|
56
|
-
"@kubb/plugin-vue-query": "4.37.
|
|
57
|
-
"@kubb/plugin-zod": "4.37.
|
|
43
|
+
"@kubb/core": "4.37.4",
|
|
44
|
+
"@kubb/plugin-client": "4.37.4",
|
|
45
|
+
"@kubb/plugin-cypress": "4.37.4",
|
|
46
|
+
"@kubb/plugin-faker": "4.37.4",
|
|
47
|
+
"@kubb/plugin-mcp": "4.37.4",
|
|
48
|
+
"@kubb/plugin-msw": "4.37.4",
|
|
49
|
+
"@kubb/plugin-oas": "4.37.4",
|
|
50
|
+
"@kubb/plugin-react-query": "4.37.4",
|
|
51
|
+
"@kubb/plugin-redoc": "4.37.4",
|
|
52
|
+
"@kubb/plugin-solid-query": "4.37.4",
|
|
53
|
+
"@kubb/plugin-svelte-query": "4.37.4",
|
|
54
|
+
"@kubb/plugin-swr": "4.37.4",
|
|
55
|
+
"@kubb/plugin-ts": "4.37.4",
|
|
56
|
+
"@kubb/plugin-vue-query": "4.37.4",
|
|
57
|
+
"@kubb/plugin-zod": "4.37.4"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/ws": "^8.18.1",
|