@kubb/agent 4.37.1 → 4.37.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  {
2
- "date": "2026-03-31T20:38:36.447Z",
2
+ "date": "2026-04-23T12:56:51.820Z",
3
3
  "preset": "node-server",
4
4
  "framework": {
5
5
  "name": "nitro",
@@ -5824,7 +5824,7 @@ const fsStorage = defineStorage(() => ({
5824
5824
  await clean(resolve(base));
5825
5825
  }
5826
5826
  }));
5827
- var version$1 = "4.37.1";
5827
+ var version$1 = "4.37.3";
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.1";
6561
+ var version = "4.37.3";
6562
6562
 
6563
6563
  function isCommandMessage(msg) {
6564
6564
  return msg.type === "command";
@@ -212315,6 +212315,11 @@ function zodExprFromOasSchema(schema) {
212315
212315
  const baseType = types.find((t) => t && t !== "null");
212316
212316
  const isNullableType = types.includes("null");
212317
212317
  let expr;
212318
+ if (Array.isArray(schema.enum) && schema.enum.length > 0) {
212319
+ expr = `z.enum([${schema.enum.map((v) => JSON.stringify(v)).join(", ")}])`;
212320
+ if (isNullableType) expr = `${expr}.nullable()`;
212321
+ return expr;
212322
+ }
212318
212323
  switch (baseType) {
212319
212324
  case "integer":
212320
212325
  expr = "z.coerce.number()";
@@ -213443,7 +213448,11 @@ function getParams$9$1({ pathParamsType, paramsCasing, typeSchemas }) {
213443
213448
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
213444
213449
  children: getPathParams(typeSchemas.pathParams, {
213445
213450
  typed: true,
213446
- casing: paramsCasing
213451
+ casing: paramsCasing,
213452
+ override: (item) => ({
213453
+ ...item,
213454
+ type: `${item.type} | undefined`
213455
+ })
213447
213456
  })
213448
213457
  } : void 0,
213449
213458
  data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
@@ -213510,7 +213519,11 @@ function getParams$8$1({ paramsType, paramsCasing, pathParamsType, typeSchemas }
213510
213519
  const children = {
213511
213520
  ...getPathParams(typeSchemas.pathParams, {
213512
213521
  typed: true,
213513
- casing: paramsCasing
213522
+ casing: paramsCasing,
213523
+ override: (item) => ({
213524
+ ...item,
213525
+ type: `${item.type} | undefined`
213526
+ })
213514
213527
  }),
213515
213528
  data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
213516
213529
  type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
@@ -213543,7 +213556,11 @@ function getParams$8$1({ paramsType, paramsCasing, pathParamsType, typeSchemas }
213543
213556
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
213544
213557
  children: getPathParams(typeSchemas.pathParams, {
213545
213558
  typed: true,
213546
- casing: paramsCasing
213559
+ casing: paramsCasing,
213560
+ override: (item) => ({
213561
+ ...item,
213562
+ type: `${item.type} | undefined`
213563
+ })
213547
213564
  }),
213548
213565
  default: isAllOptional((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema) ? "{}" : void 0
213549
213566
  } : void 0,
@@ -213588,9 +213605,9 @@ function QueryOptions$4({ name, clientName, dataReturnType, typeSchemas, paramsC
213588
213605
  typeSchemas,
213589
213606
  paramsCasing
213590
213607
  });
213591
- const enabled = Object.entries(queryKeyParams.flatParams).map(([key, item]) => {
213592
- return item && !item.optional && !item.default ? key : void 0;
213593
- }).filter(Boolean).join("&& ");
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(" && ");
213594
213611
  const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
213595
213612
  return /* @__PURE__ */ jsx(File.Source, {
213596
213613
  name,
@@ -213608,7 +213625,7 @@ function QueryOptions$4({ name, clientName, dataReturnType, typeSchemas, paramsC
213608
213625
  queryFn: async ({ signal }) => {
213609
213626
  return ${clientName}(${clientParams.toCall({ transformName(name2) {
213610
213627
  if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
213611
- return name2;
213628
+ return enabledParamNames.has(name2) ? `${name2}!` : name2;
213612
213629
  } })})
213613
213630
  },
213614
213631
  })
@@ -213623,7 +213640,11 @@ function getParams$7$1({ paramsType, paramsCasing, pathParamsType, typeSchemas,
213623
213640
  const children = {
213624
213641
  ...getPathParams(typeSchemas.pathParams, {
213625
213642
  typed: true,
213626
- casing: paramsCasing
213643
+ casing: paramsCasing,
213644
+ override: (item) => ({
213645
+ ...item,
213646
+ type: `${item.type} | undefined`
213647
+ })
213627
213648
  }),
213628
213649
  data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
213629
213650
  type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
@@ -213661,7 +213682,11 @@ function getParams$7$1({ paramsType, paramsCasing, pathParamsType, typeSchemas,
213661
213682
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
213662
213683
  children: getPathParams(typeSchemas.pathParams, {
213663
213684
  typed: true,
213664
- casing: paramsCasing
213685
+ casing: paramsCasing,
213686
+ override: (item) => ({
213687
+ ...item,
213688
+ type: `${item.type} | undefined`
213689
+ })
213665
213690
  }),
213666
213691
  default: isAllOptional((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema) ? "{}" : void 0
213667
213692
  } : void 0,
@@ -213764,7 +213789,11 @@ function getParams$6$1({ paramsType, paramsCasing, pathParamsType, typeSchemas }
213764
213789
  const children = {
213765
213790
  ...getPathParams(typeSchemas.pathParams, {
213766
213791
  typed: true,
213767
- casing: paramsCasing
213792
+ casing: paramsCasing,
213793
+ override: (item) => ({
213794
+ ...item,
213795
+ type: `${item.type} | undefined`
213796
+ })
213768
213797
  }),
213769
213798
  data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
213770
213799
  type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
@@ -213797,7 +213826,11 @@ function getParams$6$1({ paramsType, paramsCasing, pathParamsType, typeSchemas }
213797
213826
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
213798
213827
  children: getPathParams(typeSchemas.pathParams, {
213799
213828
  typed: true,
213800
- casing: paramsCasing
213829
+ casing: paramsCasing,
213830
+ override: (item) => ({
213831
+ ...item,
213832
+ type: `${item.type} | undefined`
213833
+ })
213801
213834
  }),
213802
213835
  default: isAllOptional((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema) ? "{}" : void 0
213803
213836
  } : void 0,
@@ -213880,9 +213913,9 @@ function InfiniteQueryOptions$1({ name, clientName, initialPageParam, cursorPara
213880
213913
  ...(params ?? {}),
213881
213914
  ['${queryParam}']: pageParam as unknown as ${(_e = typeSchemas.queryParams) == null ? void 0 : _e.name}['${queryParam}'],
213882
213915
  } as ${(_f = typeSchemas.queryParams) == null ? void 0 : _f.name}` : "";
213883
- const enabled = Object.entries(queryKeyParams.flatParams).map(([key, item]) => {
213884
- return item && !item.optional && !item.default ? key : void 0;
213885
- }).filter(Boolean).join("&& ");
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(" && ");
213886
213919
  const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
213887
213920
  if (infiniteOverrideParams) return /* @__PURE__ */ jsx(File.Source, {
213888
213921
  name,
@@ -213901,7 +213934,7 @@ function InfiniteQueryOptions$1({ name, clientName, initialPageParam, cursorPara
213901
213934
  ${infiniteOverrideParams}
213902
213935
  return ${clientName}(${clientParams.toCall({ transformName(name2) {
213903
213936
  if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
213904
- return name2;
213937
+ return enabledParamNames.has(name2) ? `${name2}!` : name2;
213905
213938
  } })})
213906
213939
  },
213907
213940
  ${queryOptions.join(",\n")}
@@ -213925,7 +213958,7 @@ function InfiniteQueryOptions$1({ name, clientName, initialPageParam, cursorPara
213925
213958
  queryFn: async ({ signal }) => {
213926
213959
  return ${clientName}(${clientParams.toCall({ transformName(name2) {
213927
213960
  if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
213928
- return name2;
213961
+ return enabledParamNames.has(name2) ? `${name2}!` : name2;
213929
213962
  } })})
213930
213963
  },
213931
213964
  ${queryOptions.join(",\n")}
@@ -214123,7 +214156,11 @@ function getParams$3$4({ paramsType, paramsCasing, pathParamsType, dataReturnTyp
214123
214156
  const children = {
214124
214157
  ...getPathParams(typeSchemas.pathParams, {
214125
214158
  typed: true,
214126
- casing: paramsCasing
214159
+ casing: paramsCasing,
214160
+ override: (item) => ({
214161
+ ...item,
214162
+ type: `${item.type} | undefined`
214163
+ })
214127
214164
  }),
214128
214165
  data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
214129
214166
  type: (_c = typeSchemas.request) == null ? void 0 : _c.name,
@@ -214167,7 +214204,11 @@ function getParams$3$4({ paramsType, paramsCasing, pathParamsType, dataReturnTyp
214167
214204
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
214168
214205
  children: getPathParams(typeSchemas.pathParams, {
214169
214206
  typed: true,
214170
- casing: paramsCasing
214207
+ casing: paramsCasing,
214208
+ override: (item) => ({
214209
+ ...item,
214210
+ type: `${item.type} | undefined`
214211
+ })
214171
214212
  }),
214172
214213
  default: isAllOptional((_n = typeSchemas.pathParams) == null ? void 0 : _n.schema) ? "{}" : void 0
214173
214214
  } : void 0,
@@ -214265,7 +214306,11 @@ function getParams$2$4({ paramsType, paramsCasing, pathParamsType, typeSchemas,
214265
214306
  const children = {
214266
214307
  ...getPathParams(typeSchemas.pathParams, {
214267
214308
  typed: true,
214268
- casing: paramsCasing
214309
+ casing: paramsCasing,
214310
+ override: (item) => ({
214311
+ ...item,
214312
+ type: `${item.type} | undefined`
214313
+ })
214269
214314
  }),
214270
214315
  data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
214271
214316
  type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
@@ -214303,7 +214348,11 @@ function getParams$2$4({ paramsType, paramsCasing, pathParamsType, typeSchemas,
214303
214348
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
214304
214349
  children: getPathParams(typeSchemas.pathParams, {
214305
214350
  typed: true,
214306
- casing: paramsCasing
214351
+ casing: paramsCasing,
214352
+ override: (item) => ({
214353
+ ...item,
214354
+ type: `${item.type} | undefined`
214355
+ })
214307
214356
  }),
214308
214357
  default: isAllOptional((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema) ? "{}" : void 0
214309
214358
  } : void 0,
@@ -214406,7 +214455,11 @@ function getParams$1$4({ paramsType, paramsCasing, pathParamsType, typeSchemas }
214406
214455
  const children = {
214407
214456
  ...getPathParams(typeSchemas.pathParams, {
214408
214457
  typed: true,
214409
- casing: paramsCasing
214458
+ casing: paramsCasing,
214459
+ override: (item) => ({
214460
+ ...item,
214461
+ type: `${item.type} | undefined`
214462
+ })
214410
214463
  }),
214411
214464
  data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
214412
214465
  type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
@@ -214439,7 +214492,11 @@ function getParams$1$4({ paramsType, paramsCasing, pathParamsType, typeSchemas }
214439
214492
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
214440
214493
  children: getPathParams(typeSchemas.pathParams, {
214441
214494
  typed: true,
214442
- casing: paramsCasing
214495
+ casing: paramsCasing,
214496
+ override: (item) => ({
214497
+ ...item,
214498
+ type: `${item.type} | undefined`
214499
+ })
214443
214500
  }),
214444
214501
  default: isAllOptional((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema) ? "{}" : void 0
214445
214502
  } : void 0,
@@ -214522,9 +214579,9 @@ function SuspenseInfiniteQueryOptions({ name, clientName, initialPageParam, curs
214522
214579
  ...(params ?? {}),
214523
214580
  ['${queryParam}']: pageParam as unknown as ${(_e = typeSchemas.queryParams) == null ? void 0 : _e.name}['${queryParam}'],
214524
214581
  } as ${(_f = typeSchemas.queryParams) == null ? void 0 : _f.name}` : "";
214525
- const enabled = Object.entries(queryKeyParams.flatParams).map(([key, item]) => {
214526
- return item && !item.optional && !item.default ? key : void 0;
214527
- }).filter(Boolean).join("&& ");
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(" && ");
214528
214585
  const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
214529
214586
  if (infiniteOverrideParams) return /* @__PURE__ */ jsx(File.Source, {
214530
214587
  name,
@@ -214543,7 +214600,7 @@ function SuspenseInfiniteQueryOptions({ name, clientName, initialPageParam, curs
214543
214600
  ${infiniteOverrideParams}
214544
214601
  return ${clientName}(${clientParams.toCall({ transformName(name2) {
214545
214602
  if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
214546
- return name2;
214603
+ return enabledParamNames.has(name2) ? `${name2}!` : name2;
214547
214604
  } })})
214548
214605
  },
214549
214606
  ${queryOptions.join(",\n")}
@@ -214567,7 +214624,7 @@ function SuspenseInfiniteQueryOptions({ name, clientName, initialPageParam, curs
214567
214624
  queryFn: async ({ signal }) => {
214568
214625
  return ${clientName}(${clientParams.toCall({ transformName(name2) {
214569
214626
  if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
214570
- return name2;
214627
+ return enabledParamNames.has(name2) ? `${name2}!` : name2;
214571
214628
  } })})
214572
214629
  },
214573
214630
  ${queryOptions.join(",\n")}
@@ -214585,7 +214642,11 @@ function getParams$a({ paramsType, paramsCasing, pathParamsType, dataReturnType,
214585
214642
  const children = {
214586
214643
  ...getPathParams(typeSchemas.pathParams, {
214587
214644
  typed: true,
214588
- casing: paramsCasing
214645
+ casing: paramsCasing,
214646
+ override: (item) => ({
214647
+ ...item,
214648
+ type: `${item.type} | undefined`
214649
+ })
214589
214650
  }),
214590
214651
  data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
214591
214652
  type: (_c = typeSchemas.request) == null ? void 0 : _c.name,
@@ -214628,7 +214689,11 @@ function getParams$a({ paramsType, paramsCasing, pathParamsType, dataReturnType,
214628
214689
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
214629
214690
  children: getPathParams(typeSchemas.pathParams, {
214630
214691
  typed: true,
214631
- casing: paramsCasing
214692
+ casing: paramsCasing,
214693
+ override: (item) => ({
214694
+ ...item,
214695
+ type: `${item.type} | undefined`
214696
+ })
214632
214697
  }),
214633
214698
  default: isAllOptional((_n = typeSchemas.pathParams) == null ? void 0 : _n.schema) ? "{}" : void 0
214634
214699
  } : void 0,
@@ -216513,7 +216578,11 @@ function getParams$3$3({ pathParamsType, paramsCasing, typeSchemas }) {
216513
216578
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
216514
216579
  children: getPathParams(typeSchemas.pathParams, {
216515
216580
  typed: true,
216516
- casing: paramsCasing
216581
+ casing: paramsCasing,
216582
+ override: (item) => ({
216583
+ ...item,
216584
+ type: `${item.type} | undefined`
216585
+ })
216517
216586
  })
216518
216587
  } : void 0,
216519
216588
  data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
@@ -216698,7 +216767,11 @@ function getParams$1$3({ paramsType, paramsCasing, pathParamsType, typeSchemas }
216698
216767
  const children = {
216699
216768
  ...getPathParams(typeSchemas.pathParams, {
216700
216769
  typed: true,
216701
- casing: paramsCasing
216770
+ casing: paramsCasing,
216771
+ override: (item) => ({
216772
+ ...item,
216773
+ type: `${item.type} | undefined`
216774
+ })
216702
216775
  }),
216703
216776
  data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
216704
216777
  type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
@@ -216731,7 +216804,11 @@ function getParams$1$3({ paramsType, paramsCasing, pathParamsType, typeSchemas }
216731
216804
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
216732
216805
  children: getPathParams(typeSchemas.pathParams, {
216733
216806
  typed: true,
216734
- casing: paramsCasing
216807
+ casing: paramsCasing,
216808
+ override: (item) => ({
216809
+ ...item,
216810
+ type: `${item.type} | undefined`
216811
+ })
216735
216812
  }),
216736
216813
  default: isAllOptional((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema) ? "{}" : void 0
216737
216814
  } : void 0,
@@ -216776,9 +216853,9 @@ function QueryOptions$3({ name, clientName, typeSchemas, paramsCasing, paramsTyp
216776
216853
  paramsCasing,
216777
216854
  typeSchemas
216778
216855
  });
216779
- const enabled = Object.entries(queryKeyParams.flatParams).map(([key, item]) => {
216780
- return item && !item.optional && !item.default ? key : void 0;
216781
- }).filter(Boolean).join("&& ");
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(" && ");
216782
216859
  const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
216783
216860
  return /* @__PURE__ */ jsx(File.Source, {
216784
216861
  name,
@@ -216796,7 +216873,7 @@ function QueryOptions$3({ name, clientName, typeSchemas, paramsCasing, paramsTyp
216796
216873
  queryFn: async ({ signal }) => {
216797
216874
  return ${clientName}(${clientParams.toCall({ transformName(name2) {
216798
216875
  if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
216799
- return name2;
216876
+ return enabledParamNames.has(name2) ? `${name2}!` : name2;
216800
216877
  } })})
216801
216878
  },
216802
216879
  })
@@ -216813,7 +216890,11 @@ function getParams$9({ paramsType, paramsCasing, pathParamsType, dataReturnType,
216813
216890
  const children = {
216814
216891
  ...getPathParams(typeSchemas.pathParams, {
216815
216892
  typed: true,
216816
- casing: paramsCasing
216893
+ casing: paramsCasing,
216894
+ override: (item) => ({
216895
+ ...item,
216896
+ type: `${item.type} | undefined`
216897
+ })
216817
216898
  }),
216818
216899
  data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
216819
216900
  type: (_c = typeSchemas.request) == null ? void 0 : _c.name,
@@ -216857,7 +216938,11 @@ function getParams$9({ paramsType, paramsCasing, pathParamsType, dataReturnType,
216857
216938
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
216858
216939
  children: getPathParams(typeSchemas.pathParams, {
216859
216940
  typed: true,
216860
- casing: paramsCasing
216941
+ casing: paramsCasing,
216942
+ override: (item) => ({
216943
+ ...item,
216944
+ type: `${item.type} | undefined`
216945
+ })
216861
216946
  }),
216862
216947
  default: isAllOptional((_n = typeSchemas.pathParams) == null ? void 0 : _n.schema) ? "{}" : void 0
216863
216948
  } : void 0,
@@ -217663,7 +217748,11 @@ function getParams$3$2({ pathParamsType, paramsCasing, typeSchemas }) {
217663
217748
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
217664
217749
  children: getPathParams(typeSchemas.pathParams, {
217665
217750
  typed: true,
217666
- casing: paramsCasing
217751
+ casing: paramsCasing,
217752
+ override: (item) => ({
217753
+ ...item,
217754
+ type: `${item.type} | undefined`
217755
+ })
217667
217756
  })
217668
217757
  } : void 0,
217669
217758
  data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
@@ -217848,7 +217937,11 @@ function getParams$1$2({ paramsType, paramsCasing, pathParamsType, typeSchemas }
217848
217937
  const children = {
217849
217938
  ...getPathParams(typeSchemas.pathParams, {
217850
217939
  typed: true,
217851
- casing: paramsCasing
217940
+ casing: paramsCasing,
217941
+ override: (item) => ({
217942
+ ...item,
217943
+ type: `${item.type} | undefined`
217944
+ })
217852
217945
  }),
217853
217946
  data: ((_a2 = typeSchemas.request) == null ? void 0 : _a2.name) ? {
217854
217947
  type: (_b = typeSchemas.request) == null ? void 0 : _b.name,
@@ -217881,7 +217974,11 @@ function getParams$1$2({ paramsType, paramsCasing, pathParamsType, typeSchemas }
217881
217974
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
217882
217975
  children: getPathParams(typeSchemas.pathParams, {
217883
217976
  typed: true,
217884
- casing: paramsCasing
217977
+ casing: paramsCasing,
217978
+ override: (item) => ({
217979
+ ...item,
217980
+ type: `${item.type} | undefined`
217981
+ })
217885
217982
  }),
217886
217983
  default: getDefaultValue((_m = typeSchemas.pathParams) == null ? void 0 : _m.schema)
217887
217984
  } : void 0,
@@ -217926,9 +218023,9 @@ function QueryOptions$2({ name, clientName, typeSchemas, paramsCasing, paramsTyp
217926
218023
  paramsCasing,
217927
218024
  typeSchemas
217928
218025
  });
217929
- const enabled = Object.entries(queryKeyParams.flatParams).map(([key, item]) => {
217930
- return item && !item.optional && !item.default ? key : void 0;
217931
- }).filter(Boolean).join("&& ");
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(" && ");
217932
218029
  const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
217933
218030
  return /* @__PURE__ */ jsx(File.Source, {
217934
218031
  name,
@@ -217946,7 +218043,7 @@ function QueryOptions$2({ name, clientName, typeSchemas, paramsCasing, paramsTyp
217946
218043
  queryFn: async ({ signal }) => {
217947
218044
  return ${clientName}(${clientParams.toCall({ transformName(name2) {
217948
218045
  if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
217949
- return name2;
218046
+ return enabledParamNames.has(name2) ? `${name2}!` : name2;
217950
218047
  } })})
217951
218048
  },
217952
218049
  })
@@ -217963,7 +218060,11 @@ function getParams$8({ paramsType, paramsCasing, pathParamsType, dataReturnType,
217963
218060
  const children = {
217964
218061
  ...getPathParams(typeSchemas.pathParams, {
217965
218062
  typed: true,
217966
- casing: paramsCasing
218063
+ casing: paramsCasing,
218064
+ override: (item) => ({
218065
+ ...item,
218066
+ type: `${item.type} | undefined`
218067
+ })
217967
218068
  }),
217968
218069
  data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
217969
218070
  type: (_c = typeSchemas.request) == null ? void 0 : _c.name,
@@ -218007,7 +218108,11 @@ function getParams$8({ paramsType, paramsCasing, pathParamsType, dataReturnType,
218007
218108
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
218008
218109
  children: getPathParams(typeSchemas.pathParams, {
218009
218110
  typed: true,
218010
- casing: paramsCasing
218111
+ casing: paramsCasing,
218112
+ override: (item) => ({
218113
+ ...item,
218114
+ type: `${item.type} | undefined`
218115
+ })
218011
218116
  }),
218012
218117
  default: getDefaultValue((_n = typeSchemas.pathParams) == null ? void 0 : _n.schema)
218013
218118
  } : void 0,
@@ -218813,7 +218918,11 @@ function getParams$3$1({ pathParamsType, paramsCasing, typeSchemas }) {
218813
218918
  mode: pathParamsType === "object" ? "object" : "inlineSpread",
218814
218919
  children: getPathParams(typeSchemas.pathParams, {
218815
218920
  typed: true,
218816
- casing: paramsCasing
218921
+ casing: paramsCasing,
218922
+ override: (item) => ({
218923
+ ...item,
218924
+ type: `${item.type} | undefined`
218925
+ })
218817
218926
  })
218818
218927
  } : void 0,
218819
218928
  data: ((_b = typeSchemas.request) == null ? void 0 : _b.name) ? {
@@ -219954,7 +220063,7 @@ function getParams$6({ pathParamsType, paramsCasing, typeSchemas }) {
219954
220063
  override(item) {
219955
220064
  return {
219956
220065
  ...item,
219957
- type: `MaybeRefOrGetter<${item.type}>`
220066
+ type: `MaybeRefOrGetter<${item.type} | undefined>`
219958
220067
  };
219959
220068
  }
219960
220069
  })
@@ -220027,7 +220136,7 @@ function getParams$5({ paramsType, paramsCasing, pathParamsType, typeSchemas })
220027
220136
  override(item) {
220028
220137
  return {
220029
220138
  ...item,
220030
- type: `MaybeRefOrGetter<${item.type}>`
220139
+ type: `MaybeRefOrGetter<${item.type} | undefined>`
220031
220140
  };
220032
220141
  }
220033
220142
  }),
@@ -220066,7 +220175,7 @@ function getParams$5({ paramsType, paramsCasing, pathParamsType, typeSchemas })
220066
220175
  override(item) {
220067
220176
  return {
220068
220177
  ...item,
220069
- type: `MaybeRefOrGetter<${item.type}>`
220178
+ type: `MaybeRefOrGetter<${item.type} | undefined>`
220070
220179
  };
220071
220180
  }
220072
220181
  }),
@@ -220113,9 +220222,9 @@ function QueryOptions({ name, clientName, dataReturnType, typeSchemas, paramsCas
220113
220222
  typeSchemas,
220114
220223
  paramsCasing
220115
220224
  });
220116
- const enabled = Object.entries(queryKeyParams.flatParams).map(([key, item]) => {
220117
- return item && !item.optional && !item.default ? key : void 0;
220118
- }).filter(Boolean).join("&& ");
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(" && ");
220119
220228
  const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
220120
220229
  return /* @__PURE__ */ jsx(File.Source, {
220121
220230
  name,
@@ -220133,7 +220242,7 @@ function QueryOptions({ name, clientName, dataReturnType, typeSchemas, paramsCas
220133
220242
  queryFn: async ({ signal }) => {
220134
220243
  return ${clientName}(${clientParams.toCall({ transformName(name2) {
220135
220244
  if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
220136
- return `toValue(${name2})`;
220245
+ return `toValue(${name2})${enabledParamNames.has(name2) ? "!" : ""}`;
220137
220246
  } })})
220138
220247
  },
220139
220248
  })
@@ -220154,7 +220263,7 @@ function getParams$4({ paramsType, paramsCasing, pathParamsType, dataReturnType,
220154
220263
  override(item) {
220155
220264
  return {
220156
220265
  ...item,
220157
- type: `MaybeRefOrGetter<${item.type}>`
220266
+ type: `MaybeRefOrGetter<${item.type} | undefined>`
220158
220267
  };
220159
220268
  }
220160
220269
  }),
@@ -220204,7 +220313,7 @@ function getParams$4({ paramsType, paramsCasing, pathParamsType, dataReturnType,
220204
220313
  override(item) {
220205
220314
  return {
220206
220315
  ...item,
220207
- type: `MaybeRefOrGetter<${item.type}>`
220316
+ type: `MaybeRefOrGetter<${item.type} | undefined>`
220208
220317
  };
220209
220318
  }
220210
220319
  }),
@@ -220308,7 +220417,7 @@ function getParams$3({ paramsType, paramsCasing, pathParamsType, typeSchemas })
220308
220417
  override(item) {
220309
220418
  return {
220310
220419
  ...item,
220311
- type: `MaybeRefOrGetter<${item.type}>`
220420
+ type: `MaybeRefOrGetter<${item.type} | undefined>`
220312
220421
  };
220313
220422
  }
220314
220423
  }),
@@ -220347,7 +220456,7 @@ function getParams$3({ paramsType, paramsCasing, pathParamsType, typeSchemas })
220347
220456
  override(item) {
220348
220457
  return {
220349
220458
  ...item,
220350
- type: `MaybeRefOrGetter<${item.type}>`
220459
+ type: `MaybeRefOrGetter<${item.type} | undefined>`
220351
220460
  };
220352
220461
  }
220353
220462
  }),
@@ -220424,9 +220533,9 @@ function InfiniteQueryOptions({ name, clientName, initialPageParam, cursorParam,
220424
220533
  params = { }
220425
220534
  }
220426
220535
  params['${queryParam}'] = pageParam as unknown as ${(_c = typeSchemas.queryParams) == null ? void 0 : _c.name}['${queryParam}']` : "";
220427
- const enabled = Object.entries(queryKeyParams.flatParams).map(([key, item]) => {
220428
- return item && !item.optional && !item.default ? key : void 0;
220429
- }).filter(Boolean).join("&& ");
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(" && ");
220430
220539
  const enabledText = enabled ? `enabled: !!(${enabled}),` : "";
220431
220540
  return /* @__PURE__ */ jsx(File.Source, {
220432
220541
  name,
@@ -220445,7 +220554,7 @@ function InfiniteQueryOptions({ name, clientName, initialPageParam, cursorParam,
220445
220554
  ${infiniteOverrideParams}
220446
220555
  return ${clientName}(${clientParams.toCall({ transformName(name2) {
220447
220556
  if (name2 === "config") return "{ ...config, signal: config.signal ?? signal }";
220448
- return `toValue(${name2})`;
220557
+ return `toValue(${name2})${enabledParamNames.has(name2) ? "!" : ""}`;
220449
220558
  } })})
220450
220559
  },
220451
220560
  ${queryOptions.join(",\n")}
@@ -220630,7 +220739,7 @@ function getParams({ paramsCasing, paramsType, pathParamsType, dataReturnType, t
220630
220739
  override(item) {
220631
220740
  return {
220632
220741
  ...item,
220633
- type: `MaybeRefOrGetter<${item.type}>`
220742
+ type: `MaybeRefOrGetter<${item.type} | undefined>`
220634
220743
  };
220635
220744
  }
220636
220745
  }),
@@ -220680,7 +220789,7 @@ function getParams({ paramsCasing, paramsType, pathParamsType, dataReturnType, t
220680
220789
  override(item) {
220681
220790
  return {
220682
220791
  ...item,
220683
- type: `MaybeRefOrGetter<${item.type}>`
220792
+ type: `MaybeRefOrGetter<${item.type} | undefined>`
220684
220793
  };
220685
220794
  }
220686
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-KWLMg0Lm.js","../../../../../plugin-mcp/dist/generators-80MDR6tQ.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]}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent-prod",
3
- "version": "4.37.1",
3
+ "version": "4.37.3",
4
4
  "type": "module",
5
5
  "private": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/agent",
3
- "version": "4.37.1",
3
+ "version": "4.37.3",
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.1",
44
- "@kubb/plugin-client": "4.37.1",
45
- "@kubb/plugin-cypress": "4.37.1",
46
- "@kubb/plugin-faker": "4.37.1",
47
- "@kubb/plugin-mcp": "4.37.1",
48
- "@kubb/plugin-msw": "4.37.1",
49
- "@kubb/plugin-oas": "4.37.1",
50
- "@kubb/plugin-react-query": "4.37.1",
51
- "@kubb/plugin-redoc": "4.37.1",
52
- "@kubb/plugin-solid-query": "4.37.1",
53
- "@kubb/plugin-svelte-query": "4.37.1",
54
- "@kubb/plugin-swr": "4.37.1",
55
- "@kubb/plugin-ts": "4.37.1",
56
- "@kubb/plugin-vue-query": "4.37.1",
57
- "@kubb/plugin-zod": "4.37.1"
43
+ "@kubb/core": "4.37.3",
44
+ "@kubb/plugin-client": "4.37.3",
45
+ "@kubb/plugin-cypress": "4.37.3",
46
+ "@kubb/plugin-faker": "4.37.3",
47
+ "@kubb/plugin-mcp": "4.37.3",
48
+ "@kubb/plugin-msw": "4.37.3",
49
+ "@kubb/plugin-oas": "4.37.3",
50
+ "@kubb/plugin-react-query": "4.37.3",
51
+ "@kubb/plugin-redoc": "4.37.3",
52
+ "@kubb/plugin-solid-query": "4.37.3",
53
+ "@kubb/plugin-svelte-query": "4.37.3",
54
+ "@kubb/plugin-swr": "4.37.3",
55
+ "@kubb/plugin-ts": "4.37.3",
56
+ "@kubb/plugin-vue-query": "4.37.3",
57
+ "@kubb/plugin-zod": "4.37.3"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/ws": "^8.18.1",