@kubb/agent 4.36.1 → 5.0.0-alpha.2

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.
@@ -5383,8 +5383,8 @@ var PluginManager = (_e = class {
5383
5383
  var _a2, _b2;
5384
5384
  const root = path$2.resolve(this.config.root, this.config.output.path);
5385
5385
  const defaultPath = path$2.resolve(root, params.baseName);
5386
- if (params.pluginKey) return ((_a2 = this.hookForPluginSync({
5387
- pluginKey: params.pluginKey,
5386
+ if (params.pluginName) return ((_a2 = this.hookForPluginSync({
5387
+ pluginName: params.pluginName,
5388
5388
  hookName: "resolvePath",
5389
5389
  parameters: [
5390
5390
  params.baseName,
@@ -5403,9 +5403,9 @@ var PluginManager = (_e = class {
5403
5403
  });
5404
5404
  __publicField$b(this, "resolveName", (params) => {
5405
5405
  var _a2;
5406
- if (params.pluginKey) {
5406
+ if (params.pluginName) {
5407
5407
  const names = this.hookForPluginSync({
5408
- pluginKey: params.pluginKey,
5408
+ pluginName: params.pluginName,
5409
5409
  hookName: "resolveName",
5410
5410
  parameters: [params.name.trim(), params.type]
5411
5411
  });
@@ -5470,19 +5470,19 @@ var PluginManager = (_e = class {
5470
5470
  get plugins() {
5471
5471
  return __privateMethod$c(this, _PluginManager_instances, getSortedPlugins_fn).call(this);
5472
5472
  }
5473
- getFile({ name, mode, extname, pluginKey, options }) {
5473
+ getFile({ name, mode, extname, pluginName, options }) {
5474
5474
  const baseName = `${name}${extname}`;
5475
5475
  const path2 = this.resolvePath({
5476
5476
  baseName,
5477
5477
  mode,
5478
- pluginKey,
5478
+ pluginName,
5479
5479
  options
5480
5480
  });
5481
- if (!path2) throw new Error(`Filepath should be defined for resolvedName "${name}" and pluginKey [${JSON.stringify(pluginKey)}]`);
5481
+ if (!path2) throw new Error(`Filepath should be defined for resolvedName "${name}" and pluginName "${pluginName}"`);
5482
5482
  return {
5483
5483
  path: path2,
5484
5484
  baseName,
5485
- meta: { pluginKey },
5485
+ meta: { pluginName },
5486
5486
  sources: [],
5487
5487
  imports: [],
5488
5488
  exports: []
@@ -5491,8 +5491,8 @@ var PluginManager = (_e = class {
5491
5491
  /**
5492
5492
  * Run a specific hookName for plugin x.
5493
5493
  */
5494
- async hookForPlugin({ pluginKey, hookName, parameters }) {
5495
- const plugins = this.getPluginsByKey(hookName, pluginKey);
5494
+ async hookForPlugin({ pluginName, hookName, parameters }) {
5495
+ const plugins = this.getPluginsByName(hookName, pluginName);
5496
5496
  this.events.emit("plugins:hook:progress:start", {
5497
5497
  hookName,
5498
5498
  plugins
@@ -5513,8 +5513,8 @@ var PluginManager = (_e = class {
5513
5513
  /**
5514
5514
  * Run a specific hookName for plugin x.
5515
5515
  */
5516
- hookForPluginSync({ pluginKey, hookName, parameters }) {
5517
- return this.getPluginsByKey(hookName, pluginKey).map((plugin) => {
5516
+ hookForPluginSync({ pluginName, hookName, parameters }) {
5517
+ return this.getPluginsByName(hookName, pluginName).map((plugin) => {
5518
5518
  return __privateMethod$c(this, _PluginManager_instances, executeSync_fn).call(this, {
5519
5519
  strategy: "hookFirst",
5520
5520
  hookName,
@@ -5638,24 +5638,12 @@ var PluginManager = (_e = class {
5638
5638
  await __privateGet$c(this, _promiseManager).run("seq", promises);
5639
5639
  this.events.emit("plugins:hook:progress:end", { hookName });
5640
5640
  }
5641
- getPluginByKey(pluginKey) {
5642
- const plugins = [...__privateGet$c(this, _plugins)];
5643
- const [searchPluginName] = pluginKey;
5644
- return plugins.find((item) => {
5645
- const [name] = item.key;
5646
- return name === searchPluginName;
5647
- });
5641
+ getPluginByName(pluginName) {
5642
+ return [...__privateGet$c(this, _plugins)].find((item) => item.name === pluginName);
5648
5643
  }
5649
- getPluginsByKey(hookName, pluginKey) {
5644
+ getPluginsByName(hookName, pluginName) {
5650
5645
  const plugins = [...this.plugins];
5651
- const [searchPluginName, searchIdentifier] = pluginKey;
5652
- const pluginByPluginName = plugins.filter((plugin) => hookName in plugin).filter((item) => {
5653
- const [name, identifier] = item.key;
5654
- const identifierCheck = (identifier == null ? void 0 : identifier.toString()) === (searchIdentifier == null ? void 0 : searchIdentifier.toString());
5655
- const nameCheck = name === searchPluginName;
5656
- if (searchIdentifier) return identifierCheck && nameCheck;
5657
- return nameCheck;
5658
- });
5646
+ const pluginByPluginName = plugins.filter((plugin) => hookName in plugin).filter((item) => item.name === pluginName);
5659
5647
  if (!(pluginByPluginName == null ? void 0 : pluginByPluginName.length)) {
5660
5648
  const corePlugin = plugins.find((plugin) => plugin.name === "core" && hookName in plugin);
5661
5649
  return corePlugin ? [corePlugin] : [];
@@ -5764,12 +5752,11 @@ executeSync_fn = function({ strategy, hookName, parameters, plugin }) {
5764
5752
  const usedPluginNames = __privateGet$c(this, _usedPluginNames);
5765
5753
  setUniqueName(plugin.name, usedPluginNames);
5766
5754
  const usageCount = usedPluginNames[plugin.name];
5767
- if (usageCount && usageCount > 1) this.events.emit("warn", `Multiple instances of plugin "${plugin.name}" detected. This behavior is deprecated and will be removed in v5.`, `Plugin key: [${plugin.name}, ${usageCount}]`);
5755
+ if (usageCount && usageCount > 1) throw new ValidationPluginError(`Duplicate plugin "${plugin.name}" detected. Each plugin can only be used once. Use a different configuration instead of adding multiple instances of the same plugin.`);
5768
5756
  return {
5769
5757
  install() {
5770
5758
  },
5771
- ...plugin,
5772
- key: [plugin.name, usedPluginNames[plugin.name]].filter(Boolean)
5759
+ ...plugin
5773
5760
  };
5774
5761
  }, _e);
5775
5762
  function defineStorage(build2) {
@@ -5821,7 +5808,7 @@ const fsStorage = defineStorage(() => ({
5821
5808
  await clean(resolve(base));
5822
5809
  }
5823
5810
  }));
5824
- var version$1 = "4.36.1";
5811
+ var version$1 = "5.0.0-alpha.2";
5825
5812
  function getDiagnosticInfo() {
5826
5813
  return {
5827
5814
  nodeVersion: version$2,
@@ -5973,7 +5960,7 @@ async function safeBuild(options, overrides) {
5973
5960
  await events.emit("plugin:start", plugin);
5974
5961
  await events.emit("debug", {
5975
5962
  date: timestamp,
5976
- logs: ["Installing plugin...", ` \u2022 Plugin Key: [${plugin.key.join(", ")}]`]
5963
+ logs: ["Installing plugin...", ` \u2022 Plugin Name: ${plugin.name}`]
5977
5964
  });
5978
5965
  await installer(context);
5979
5966
  const duration = getElapsedMs(hrStart);
@@ -5999,7 +5986,7 @@ async function safeBuild(options, overrides) {
5999
5986
  date: errorTimestamp,
6000
5987
  logs: [
6001
5988
  "\u2717 Plugin installation failed",
6002
- ` \u2022 Plugin Key: ${JSON.stringify(plugin.key)}`,
5989
+ ` \u2022 Plugin Name: ${plugin.name}`,
6003
5990
  ` \u2022 Error: ${error.constructor.name} - ${error.message}`,
6004
5991
  " \u2022 Stack Trace:",
6005
5992
  error.stack || "No stack trace available"
@@ -6073,8 +6060,8 @@ async function safeBuild(options, overrides) {
6073
6060
  }
6074
6061
  }
6075
6062
  function buildBarrelExports({ barrelFiles, rootDir, existingExports, config, pluginManager }) {
6076
- const pluginKeyMap = /* @__PURE__ */ new Map();
6077
- for (const plugin of pluginManager.plugins) pluginKeyMap.set(JSON.stringify(plugin.key), plugin);
6063
+ const pluginNameMap = /* @__PURE__ */ new Map();
6064
+ for (const plugin of pluginManager.plugins) pluginNameMap.set(plugin.name, plugin);
6078
6065
  return barrelFiles.flatMap((file) => {
6079
6066
  var _a2, _b2;
6080
6067
  const containsOnlyTypes = (_a2 = file.sources) == null ? void 0 : _a2.every((source) => source.isTypeOnly);
@@ -6082,7 +6069,7 @@ function buildBarrelExports({ barrelFiles, rootDir, existingExports, config, plu
6082
6069
  var _a3, _b3;
6083
6070
  if (!file.path || !source.isIndexable) return [];
6084
6071
  const meta = file.meta;
6085
- const pluginOptions = (_a3 = (meta == null ? void 0 : meta.pluginKey) ? pluginKeyMap.get(JSON.stringify(meta.pluginKey)) : void 0) == null ? void 0 : _a3.options;
6072
+ const pluginOptions = (_a3 = (meta == null ? void 0 : meta.pluginName) ? pluginNameMap.get(meta.pluginName) : void 0) == null ? void 0 : _a3.options;
6086
6073
  if (!pluginOptions || ((_b3 = pluginOptions.output) == null ? void 0 : _b3.barrelType) === false) return [];
6087
6074
  const exportName = config.output.barrelType === "all" ? void 0 : source.name ? [source.name] : void 0;
6088
6075
  if (exportName == null ? void 0 : exportName.some((n) => existingExports.has(n))) return [];
@@ -6555,7 +6542,7 @@ async function detectLinter() {
6555
6542
  ]) if (await isLinterAvailable(linter)) return linter;
6556
6543
  }
6557
6544
 
6558
- var version = "4.36.1";
6545
+ var version = "5.0.0-alpha.2";
6559
6546
 
6560
6547
  function isCommandMessage(msg) {
6561
6548
  return msg.type === "command";
@@ -8181,17 +8168,17 @@ getRefAlias_fn = function(schemaObject, name) {
8181
8168
  const resolvedName = __privateGet$a(this, _schemaNameMapping).get($ref) || originalName;
8182
8169
  const propertyName = this.context.pluginManager.resolveName({
8183
8170
  name: resolvedName,
8184
- pluginKey: this.context.plugin.key,
8171
+ pluginName: this.context.plugin.name,
8185
8172
  type: "function"
8186
8173
  });
8187
8174
  const fileName = this.context.pluginManager.resolveName({
8188
8175
  name: resolvedName,
8189
- pluginKey: this.context.plugin.key,
8176
+ pluginName: this.context.plugin.name,
8190
8177
  type: "file"
8191
8178
  });
8192
8179
  const file = this.context.pluginManager.getFile({
8193
8180
  name: fileName,
8194
- pluginKey: this.context.plugin.key,
8181
+ pluginName: this.context.plugin.name,
8195
8182
  extname: ".ts"
8196
8183
  });
8197
8184
  this.refs[$ref] = {
@@ -8501,7 +8488,7 @@ parseSchemaObject_fn = function({ schema: _schemaObject, name, parentName, rootN
8501
8488
  const enumName = useCollisionDetection ? pascalCase$9(enumNameParts.join(" ")) : getUniqueName(pascalCase$9(enumNameParts.join(" ")), this.options.usedEnumNames || {});
8502
8489
  const typeName = this.context.pluginManager.resolveName({
8503
8490
  name: enumName,
8504
- pluginKey: this.context.plugin.key,
8491
+ pluginName: this.context.plugin.name,
8505
8492
  type: "type"
8506
8493
  });
8507
8494
  if (schemaObject.enum.includes(null)) baseItems.push({ keyword: schemaKeywords.nullable });
@@ -9721,7 +9708,7 @@ const jsonGenerator = createGenerator({
9721
9708
  name: camelCase$d(schema.name),
9722
9709
  extname: ".json",
9723
9710
  mode: "split",
9724
- pluginKey: plugin.key
9711
+ pluginName: plugin.name
9725
9712
  }),
9726
9713
  sources: [{
9727
9714
  name: camelCase$d(schema.name),
@@ -10056,7 +10043,7 @@ const pluginOas = definePlugin((options) => {
10056
10043
  },
10057
10044
  async install() {
10058
10045
  const oas = await this.getOas({ validate });
10059
- if (!output) return;
10046
+ if (!output || generators.length === 0) return;
10060
10047
  await oas.dereference();
10061
10048
  const schemaFiles = await new SchemaGenerator({
10062
10049
  unknownType: "unknown",
@@ -209404,10 +209391,10 @@ function useOas() {
209404
209391
  function useOperationManager(generator) {
209405
209392
  const plugin = usePlugin();
209406
209393
  const pluginManager = usePluginManager();
209407
- const getName = (operation, { prefix = "", suffix = "", pluginKey = plugin.key, type }) => {
209394
+ const getName = (operation, { prefix = "", suffix = "", pluginName = plugin.name, type }) => {
209408
209395
  return pluginManager.resolveName({
209409
209396
  name: `${prefix} ${operation.getOperationId()} ${suffix}`,
209410
- pluginKey,
209397
+ pluginName,
209411
209398
  type
209412
209399
  });
209413
209400
  };
@@ -209422,14 +209409,14 @@ function useOperationManager(generator) {
209422
209409
  if (!generator) throw new Error(`useOperationManager: 'generator' parameter is required but was not provided`);
209423
209410
  return generator.getSchemas(operation, { resolveName: (name) => pluginManager.resolveName({
209424
209411
  name,
209425
- pluginKey: params == null ? void 0 : params.pluginKey,
209412
+ pluginName: params == null ? void 0 : params.pluginName,
209426
209413
  type: params == null ? void 0 : params.type
209427
209414
  }) });
209428
209415
  };
209429
- const getFile = (operation, { prefix, suffix, pluginKey = plugin.key, extname = ".ts" } = {}) => {
209416
+ const getFile = (operation, { prefix, suffix, pluginName = plugin.name, extname = ".ts" } = {}) => {
209430
209417
  const name = getName(operation, {
209431
209418
  type: "file",
209432
- pluginKey,
209419
+ pluginName,
209433
209420
  prefix,
209434
209421
  suffix
209435
209422
  });
@@ -209437,10 +209424,10 @@ function useOperationManager(generator) {
209437
209424
  const file = pluginManager.getFile({
209438
209425
  name,
209439
209426
  extname,
209440
- pluginKey,
209427
+ pluginName,
209441
209428
  options: {
209442
209429
  type: "file",
209443
- pluginKey,
209430
+ pluginName,
209444
209431
  group
209445
209432
  }
209446
209433
  });
@@ -209449,12 +209436,12 @@ function useOperationManager(generator) {
209449
209436
  meta: {
209450
209437
  ...file.meta,
209451
209438
  name,
209452
- pluginKey,
209439
+ pluginName,
209453
209440
  group
209454
209441
  }
209455
209442
  };
209456
209443
  };
209457
- const groupSchemasByName = (operation, { pluginKey = plugin.key, type }) => {
209444
+ const groupSchemasByName = (operation, { pluginName = plugin.name, type }) => {
209458
209445
  var _a, _b, _c, _d;
209459
209446
  if (!generator) throw new Error(`useOperationManager: 'generator' parameter is required but was not provided`);
209460
209447
  const schemas = generator.getSchemas(operation);
@@ -209462,7 +209449,7 @@ function useOperationManager(generator) {
209462
209449
  if (!acc.statusCode) return prev;
209463
209450
  prev[acc.statusCode] = pluginManager.resolveName({
209464
209451
  name: acc.name,
209465
- pluginKey,
209452
+ pluginName,
209466
209453
  type
209467
209454
  });
209468
209455
  return prev;
@@ -209471,7 +209458,7 @@ function useOperationManager(generator) {
209471
209458
  if (!acc.statusCode) return prev;
209472
209459
  prev[acc.statusCode] = pluginManager.resolveName({
209473
209460
  name: acc.name,
209474
- pluginKey,
209461
+ pluginName,
209475
209462
  type
209476
209463
  });
209477
209464
  return prev;
@@ -209479,23 +209466,23 @@ function useOperationManager(generator) {
209479
209466
  return {
209480
209467
  request: ((_a = schemas.request) == null ? void 0 : _a.name) ? pluginManager.resolveName({
209481
209468
  name: schemas.request.name,
209482
- pluginKey,
209469
+ pluginName,
209483
209470
  type
209484
209471
  }) : void 0,
209485
209472
  parameters: {
209486
209473
  path: ((_b = schemas.pathParams) == null ? void 0 : _b.name) ? pluginManager.resolveName({
209487
209474
  name: schemas.pathParams.name,
209488
- pluginKey,
209475
+ pluginName,
209489
209476
  type
209490
209477
  }) : void 0,
209491
209478
  query: ((_c = schemas.queryParams) == null ? void 0 : _c.name) ? pluginManager.resolveName({
209492
209479
  name: schemas.queryParams.name,
209493
- pluginKey,
209480
+ pluginName,
209494
209481
  type
209495
209482
  }) : void 0,
209496
209483
  header: ((_d = schemas.headerParams) == null ? void 0 : _d.name) ? pluginManager.resolveName({
209497
209484
  name: schemas.headerParams.name,
209498
- pluginKey,
209485
+ pluginName,
209499
209486
  type
209500
209487
  }) : void 0
209501
209488
  },
@@ -209503,7 +209490,7 @@ function useOperationManager(generator) {
209503
209490
  ...responses,
209504
209491
  ["default"]: pluginManager.resolveName({
209505
209492
  name: schemas.response.name,
209506
- pluginKey,
209493
+ pluginName,
209507
209494
  type
209508
209495
  }),
209509
209496
  ...errors
@@ -209522,25 +209509,25 @@ function useOperationManager(generator) {
209522
209509
  function useSchemaManager() {
209523
209510
  const plugin = usePlugin();
209524
209511
  const pluginManager = usePluginManager();
209525
- const getName = (name, { pluginKey = plugin.key, type }) => {
209512
+ const getName = (name, { pluginName = plugin.name, type }) => {
209526
209513
  return pluginManager.resolveName({
209527
209514
  name,
209528
- pluginKey,
209515
+ pluginName,
209529
209516
  type
209530
209517
  });
209531
209518
  };
209532
- const getFile = (name, { mode = "split", pluginKey = plugin.key, extname = ".ts", group } = {}) => {
209519
+ const getFile = (name, { mode = "split", pluginName = plugin.name, extname = ".ts", group } = {}) => {
209533
209520
  const resolvedName = mode === "single" ? "" : getName(name, {
209534
209521
  type: "file",
209535
- pluginKey
209522
+ pluginName
209536
209523
  });
209537
209524
  const file = pluginManager.getFile({
209538
209525
  name: resolvedName,
209539
209526
  extname,
209540
- pluginKey,
209527
+ pluginName,
209541
209528
  options: {
209542
209529
  type: "file",
209543
- pluginKey,
209530
+ pluginName,
209544
209531
  group
209545
209532
  }
209546
209533
  });
@@ -209549,7 +209536,7 @@ function useSchemaManager() {
209549
209536
  meta: {
209550
209537
  ...file.meta,
209551
209538
  name: resolvedName,
209552
- pluginKey
209539
+ pluginName
209553
209540
  }
209554
209541
  };
209555
209542
  };
@@ -209564,34 +209551,34 @@ function printCombinedSchema({ name, schemas, pluginManager }) {
209564
209551
  if (schemas.response) properties["response"] = createUnionDeclaration({ nodes: schemas.responses.map((res) => {
209565
209552
  return createTypeReferenceNode(createIdentifier(pluginManager.resolveName({
209566
209553
  name: res.name,
209567
- pluginKey: [pluginTsName],
209554
+ pluginName: pluginTsName,
209568
209555
  type: "function"
209569
209556
  })), void 0);
209570
209557
  }) });
209571
209558
  if (schemas.request) properties["request"] = createTypeReferenceNode(createIdentifier(pluginManager.resolveName({
209572
209559
  name: schemas.request.name,
209573
- pluginKey: [pluginTsName],
209560
+ pluginName: pluginTsName,
209574
209561
  type: "function"
209575
209562
  })), void 0);
209576
209563
  if (schemas.pathParams) properties["pathParams"] = createTypeReferenceNode(createIdentifier(pluginManager.resolveName({
209577
209564
  name: schemas.pathParams.name,
209578
- pluginKey: [pluginTsName],
209565
+ pluginName: pluginTsName,
209579
209566
  type: "function"
209580
209567
  })), void 0);
209581
209568
  if (schemas.queryParams) properties["queryParams"] = createTypeReferenceNode(createIdentifier(pluginManager.resolveName({
209582
209569
  name: schemas.queryParams.name,
209583
- pluginKey: [pluginTsName],
209570
+ pluginName: pluginTsName,
209584
209571
  type: "function"
209585
209572
  })), void 0);
209586
209573
  if (schemas.headerParams) properties["headerParams"] = createTypeReferenceNode(createIdentifier(pluginManager.resolveName({
209587
209574
  name: schemas.headerParams.name,
209588
- pluginKey: [pluginTsName],
209575
+ pluginName: pluginTsName,
209589
209576
  type: "function"
209590
209577
  })), void 0);
209591
209578
  if (schemas.errors) properties["errors"] = createUnionDeclaration({ nodes: schemas.errors.map((error) => {
209592
209579
  return createTypeReferenceNode(createIdentifier(pluginManager.resolveName({
209593
209580
  name: error.name,
209594
- pluginKey: [pluginTsName],
209581
+ pluginName: pluginTsName,
209595
209582
  type: "function"
209596
209583
  })), void 0);
209597
209584
  }) });
@@ -209611,7 +209598,7 @@ function printCombinedSchema({ name, schemas, pluginManager }) {
209611
209598
  function printRequestSchema({ baseName, operation, schemas, pluginManager }) {
209612
209599
  const name = pluginManager.resolveName({
209613
209600
  name: `${baseName} Request`,
209614
- pluginKey: [pluginTsName],
209601
+ pluginName: pluginTsName,
209615
209602
  type: "type"
209616
209603
  });
209617
209604
  const results = [];
@@ -209619,7 +209606,7 @@ function printRequestSchema({ baseName, operation, schemas, pluginManager }) {
209619
209606
  if (schemas.request) {
209620
209607
  const identifier = pluginManager.resolveName({
209621
209608
  name: schemas.request.name,
209622
- pluginKey: [pluginTsName],
209609
+ pluginName: pluginTsName,
209623
209610
  type: "type"
209624
209611
  });
209625
209612
  dataRequestProperties.push(createPropertySignature({
@@ -209635,7 +209622,7 @@ function printRequestSchema({ baseName, operation, schemas, pluginManager }) {
209635
209622
  if (schemas.pathParams) {
209636
209623
  const identifier = pluginManager.resolveName({
209637
209624
  name: schemas.pathParams.name,
209638
- pluginKey: [pluginTsName],
209625
+ pluginName: pluginTsName,
209639
209626
  type: "type"
209640
209627
  });
209641
209628
  dataRequestProperties.push(createPropertySignature({
@@ -209650,7 +209637,7 @@ function printRequestSchema({ baseName, operation, schemas, pluginManager }) {
209650
209637
  if (schemas.queryParams) {
209651
209638
  const identifier = pluginManager.resolveName({
209652
209639
  name: schemas.queryParams.name,
209653
- pluginKey: [pluginTsName],
209640
+ pluginName: pluginTsName,
209654
209641
  type: "type"
209655
209642
  });
209656
209643
  dataRequestProperties.push(createPropertySignature({
@@ -209666,7 +209653,7 @@ function printRequestSchema({ baseName, operation, schemas, pluginManager }) {
209666
209653
  if (schemas.headerParams) {
209667
209654
  const identifier = pluginManager.resolveName({
209668
209655
  name: schemas.headerParams.name,
209669
- pluginKey: [pluginTsName],
209656
+ pluginName: pluginTsName,
209670
209657
  type: "type"
209671
209658
  });
209672
209659
  dataRequestProperties.push(createPropertySignature({
@@ -209695,7 +209682,7 @@ function printResponseSchema({ baseName, schemas, pluginManager, unknownType })
209695
209682
  const results = [];
209696
209683
  const name = pluginManager.resolveName({
209697
209684
  name: `${baseName} ResponseData`,
209698
- pluginKey: [pluginTsName],
209685
+ pluginName: pluginTsName,
209699
209686
  type: "type"
209700
209687
  });
209701
209688
  if (schemas.responses && schemas.responses.length > 0) {
@@ -209703,7 +209690,7 @@ function printResponseSchema({ baseName, schemas, pluginManager, unknownType })
209703
209690
  var _a, _b;
209704
209691
  const identifier = pluginManager.resolveName({
209705
209692
  name: res.name,
209706
- pluginKey: [pluginTsName],
209693
+ pluginName: pluginTsName,
209707
209694
  type: "type"
209708
209695
  });
209709
209696
  return createPropertySignature({
@@ -209745,7 +209732,7 @@ const typeGenerator = createReactGenerator({
209745
209732
  const schemaManager = useSchemaManager();
209746
209733
  const name = getName(operation, {
209747
209734
  type: "type",
209748
- pluginKey: [pluginTsName]
209735
+ pluginName: pluginTsName
209749
209736
  });
209750
209737
  const file = getFile(operation);
209751
209738
  const schemas = getSchemas(operation);
@@ -210008,7 +209995,7 @@ const pluginTs = definePlugin((options) => {
210008
209995
  type: (_a = output.barrelType) != null ? _a : "named",
210009
209996
  root,
210010
209997
  output,
210011
- meta: { pluginKey: this.plugin.key }
209998
+ meta: { pluginName: this.plugin.name }
210012
209999
  });
210013
210000
  await this.upsertFile(...barrelFiles);
210014
210001
  }
@@ -210018,7 +210005,7 @@ const pluginTs = definePlugin((options) => {
210018
210005
  const operationsGenerator$1 = createReactGenerator({
210019
210006
  name: "operations",
210020
210007
  Operations({ operations, generator, plugin }) {
210021
- const { key: pluginKey, options: { output, importPath } } = plugin;
210008
+ const { name: pluginName, options: { output, importPath } } = plugin;
210022
210009
  const pluginManager = usePluginManager();
210023
210010
  const oas = useOas();
210024
210011
  const { getFile, groupSchemasByName } = useOperationManager(generator);
@@ -210026,7 +210013,7 @@ const operationsGenerator$1 = createReactGenerator({
210026
210013
  const file = pluginManager.getFile({
210027
210014
  name,
210028
210015
  extname: ".ts",
210029
- pluginKey
210016
+ pluginName
210030
210017
  });
210031
210018
  const transformedOperations = operations.map((operation) => ({
210032
210019
  operation,
@@ -210138,10 +210125,10 @@ const zodGenerator = createReactGenerator({
210138
210125
  const type = {
210139
210126
  name: schemaManager.getName(name, {
210140
210127
  type: "type",
210141
- pluginKey: [pluginTsName]
210128
+ pluginName: pluginTsName
210142
210129
  }),
210143
210130
  file: schemaManager.getFile(options2.operationName || name, {
210144
- pluginKey: [pluginTsName],
210131
+ pluginName: pluginTsName,
210145
210132
  group
210146
210133
  })
210147
210134
  };
@@ -210223,9 +210210,9 @@ const zodGenerator = createReactGenerator({
210223
210210
  const type = {
210224
210211
  name: getName(schema.name, {
210225
210212
  type: "type",
210226
- pluginKey: [pluginTsName]
210213
+ pluginName: pluginTsName
210227
210214
  }),
210228
- file: getFile(schema.name, { pluginKey: [pluginTsName] })
210215
+ file: getFile(schema.name, { pluginName: pluginTsName })
210229
210216
  };
210230
210217
  const isZodImport = importPath === "zod" || importPath === "zod/mini";
210231
210218
  const toZodPath = path$2.resolve(config.root, config.output.path, ".kubb/ToZod.ts");
@@ -210417,7 +210404,7 @@ const pluginZod = definePlugin((options) => {
210417
210404
  type: (_a = output.barrelType) != null ? _a : "named",
210418
210405
  root,
210419
210406
  output,
210420
- meta: { pluginKey: this.plugin.key }
210407
+ meta: { pluginName: this.plugin.name }
210421
210408
  });
210422
210409
  await this.upsertFile(...barrelFiles);
210423
210410
  }
@@ -210442,22 +210429,22 @@ ${classNames.map((className) => ` this.${camelCase$b(className)} = new ${clas
210442
210429
  const classClientGenerator = createReactGenerator({
210443
210430
  name: "classClient",
210444
210431
  Operations({ operations, generator, plugin, config }) {
210445
- const { options, key: pluginKey } = plugin;
210432
+ const { options, name: pluginName } = plugin;
210446
210433
  const pluginManager = usePluginManager();
210447
210434
  const oas = useOas();
210448
210435
  const { getName, getFile, getGroup, getSchemas } = useOperationManager(generator);
210449
210436
  function buildOperationData(operation) {
210450
210437
  const type = {
210451
- file: getFile(operation, { pluginKey: [pluginTsName] }),
210438
+ file: getFile(operation, { pluginName: pluginTsName }),
210452
210439
  schemas: getSchemas(operation, {
210453
- pluginKey: [pluginTsName],
210440
+ pluginName: pluginTsName,
210454
210441
  type: "type"
210455
210442
  })
210456
210443
  };
210457
210444
  const zod = {
210458
- file: getFile(operation, { pluginKey: [pluginZodName] }),
210445
+ file: getFile(operation, { pluginName: pluginZodName }),
210459
210446
  schemas: getSchemas(operation, {
210460
- pluginKey: [pluginZodName],
210447
+ pluginName: pluginZodName,
210461
210448
  type: "function"
210462
210449
  })
210463
210450
  };
@@ -210479,7 +210466,7 @@ const classClientGenerator = createReactGenerator({
210479
210466
  const file = pluginManager.getFile({
210480
210467
  name,
210481
210468
  extname: ".ts",
210482
- pluginKey
210469
+ pluginName
210483
210470
  });
210484
210471
  const operationData = buildOperationData(operation);
210485
210472
  const previousFile = acc.find((item) => item.file.path === file.path);
@@ -210494,7 +210481,7 @@ const classClientGenerator = createReactGenerator({
210494
210481
  const file = pluginManager.getFile({
210495
210482
  name,
210496
210483
  extname: ".ts",
210497
- pluginKey,
210484
+ pluginName,
210498
210485
  options: { group }
210499
210486
  });
210500
210487
  const operationData = buildOperationData(operation);
@@ -210654,7 +210641,7 @@ const classClientGenerator = createReactGenerator({
210654
210641
  const wrapperFile = pluginManager.getFile({
210655
210642
  name: options.wrapper.className,
210656
210643
  extname: ".ts",
210657
- pluginKey
210644
+ pluginName
210658
210645
  });
210659
210646
  files.push(/* @__PURE__ */ jsxs(File, {
210660
210647
  baseName: wrapperFile.baseName,
@@ -210716,16 +210703,16 @@ const clientGenerator = createReactGenerator({
210716
210703
  file: getFile(operation)
210717
210704
  };
210718
210705
  const type = {
210719
- file: getFile(operation, { pluginKey: [pluginTsName] }),
210706
+ file: getFile(operation, { pluginName: pluginTsName }),
210720
210707
  schemas: getSchemas(operation, {
210721
- pluginKey: [pluginTsName],
210708
+ pluginName: pluginTsName,
210722
210709
  type: "type"
210723
210710
  })
210724
210711
  };
210725
210712
  const zod = {
210726
- file: getFile(operation, { pluginKey: [pluginZodName] }),
210713
+ file: getFile(operation, { pluginName: pluginZodName }),
210727
210714
  schemas: getSchemas(operation, {
210728
- pluginKey: [pluginZodName],
210715
+ pluginName: pluginZodName,
210729
210716
  type: "function"
210730
210717
  })
210731
210718
  };
@@ -210823,7 +210810,7 @@ const clientGenerator = createReactGenerator({
210823
210810
  const groupedClientGenerator = createReactGenerator({
210824
210811
  name: "groupedClient",
210825
210812
  Operations({ operations, generator, plugin }) {
210826
- const { options, key: pluginKey } = plugin;
210813
+ const { options, name: pluginName } = plugin;
210827
210814
  const pluginManager = usePluginManager();
210828
210815
  const oas = useOas();
210829
210816
  const { getName, getFile, getGroup } = useOperationManager(generator);
@@ -210836,7 +210823,7 @@ const groupedClientGenerator = createReactGenerator({
210836
210823
  const file = pluginManager.getFile({
210837
210824
  name,
210838
210825
  extname: ".ts",
210839
- pluginKey,
210826
+ pluginName,
210840
210827
  options: { group }
210841
210828
  });
210842
210829
  const client = {
@@ -210887,14 +210874,14 @@ const groupedClientGenerator = createReactGenerator({
210887
210874
  const operationsGenerator = createReactGenerator({
210888
210875
  name: "client",
210889
210876
  Operations({ operations, plugin }) {
210890
- const { key: pluginKey, options: { output } } = plugin;
210877
+ const { name: pluginName, options: { output } } = plugin;
210891
210878
  const pluginManager = usePluginManager();
210892
210879
  const oas = useOas();
210893
210880
  const name = "operations";
210894
210881
  const file = pluginManager.getFile({
210895
210882
  name,
210896
210883
  extname: ".ts",
210897
- pluginKey
210884
+ pluginName
210898
210885
  });
210899
210886
  return /* @__PURE__ */ jsx(File, {
210900
210887
  baseName: file.baseName,
@@ -210919,22 +210906,22 @@ const operationsGenerator = createReactGenerator({
210919
210906
  const staticClassClientGenerator = createReactGenerator({
210920
210907
  name: "staticClassClient",
210921
210908
  Operations({ operations, generator, plugin, config }) {
210922
- const { options, key: pluginKey } = plugin;
210909
+ const { options, name: pluginName } = plugin;
210923
210910
  const pluginManager = usePluginManager();
210924
210911
  const oas = useOas();
210925
210912
  const { getName, getFile, getGroup, getSchemas } = useOperationManager(generator);
210926
210913
  function buildOperationData(operation) {
210927
210914
  const type = {
210928
- file: getFile(operation, { pluginKey: [pluginTsName] }),
210915
+ file: getFile(operation, { pluginName: pluginTsName }),
210929
210916
  schemas: getSchemas(operation, {
210930
- pluginKey: [pluginTsName],
210917
+ pluginName: pluginTsName,
210931
210918
  type: "type"
210932
210919
  })
210933
210920
  };
210934
210921
  const zod = {
210935
- file: getFile(operation, { pluginKey: [pluginZodName] }),
210922
+ file: getFile(operation, { pluginName: pluginZodName }),
210936
210923
  schemas: getSchemas(operation, {
210937
- pluginKey: [pluginZodName],
210924
+ pluginName: pluginZodName,
210938
210925
  type: "function"
210939
210926
  })
210940
210927
  };
@@ -210956,7 +210943,7 @@ const staticClassClientGenerator = createReactGenerator({
210956
210943
  const file = pluginManager.getFile({
210957
210944
  name,
210958
210945
  extname: ".ts",
210959
- pluginKey
210946
+ pluginName
210960
210947
  });
210961
210948
  const operationData = buildOperationData(operation);
210962
210949
  const previousFile = acc.find((item) => item.file.path === file.path);
@@ -210971,7 +210958,7 @@ const staticClassClientGenerator = createReactGenerator({
210971
210958
  const file = pluginManager.getFile({
210972
210959
  name,
210973
210960
  extname: ".ts",
210974
- pluginKey,
210961
+ pluginName,
210975
210962
  options: { group }
210976
210963
  });
210977
210964
  const operationData = buildOperationData(operation);
@@ -211239,7 +211226,7 @@ const pluginClient = definePlugin((options) => {
211239
211226
  type: (_a2 = output.barrelType) != null ? _a2 : "named",
211240
211227
  root,
211241
211228
  output,
211242
- meta: { pluginKey: this.plugin.key }
211229
+ meta: { pluginName: this.plugin.name }
211243
211230
  });
211244
211231
  await this.upsertFile(...barrelFiles);
211245
211232
  }
@@ -211483,9 +211470,9 @@ const cypressGenerator = createReactGenerator({
211483
211470
  file: getFile(operation)
211484
211471
  };
211485
211472
  const type = {
211486
- file: getFile(operation, { pluginKey: [pluginTsName] }),
211473
+ file: getFile(operation, { pluginName: pluginTsName }),
211487
211474
  schemas: getSchemas(operation, {
211488
- pluginKey: [pluginTsName],
211475
+ pluginName: pluginTsName,
211489
211476
  type: "type"
211490
211477
  })
211491
211478
  };
@@ -211589,7 +211576,7 @@ const pluginCypress = definePlugin((options) => {
211589
211576
  type: (_a = output.barrelType) != null ? _a : "named",
211590
211577
  root,
211591
211578
  output,
211592
- meta: { pluginKey: this.plugin.key }
211579
+ meta: { pluginName: this.plugin.name }
211593
211580
  });
211594
211581
  await this.upsertFile(...barrelFiles);
211595
211582
  }
@@ -212025,10 +212012,10 @@ const fakerGenerator = createReactGenerator({
212025
212012
  const type = {
212026
212013
  name: schemaManager.getName(name, {
212027
212014
  type: "type",
212028
- pluginKey: [pluginTsName]
212015
+ pluginName: pluginTsName
212029
212016
  }),
212030
212017
  file: schemaManager.getFile(options2.operationName || name, {
212031
- pluginKey: [pluginTsName],
212018
+ pluginName: pluginTsName,
212032
212019
  group
212033
212020
  })
212034
212021
  };
@@ -212105,9 +212092,9 @@ const fakerGenerator = createReactGenerator({
212105
212092
  const type = {
212106
212093
  name: getName(schema.name, {
212107
212094
  type: "type",
212108
- pluginKey: [pluginTsName]
212095
+ pluginName: pluginTsName
212109
212096
  }),
212110
- file: getFile(schema.name, { pluginKey: [pluginTsName] })
212097
+ file: getFile(schema.name, { pluginName: pluginTsName })
212111
212098
  };
212112
212099
  const canOverride = schema.tree.some(({ keyword }) => keyword === schemaKeywords.array || keyword === schemaKeywords.and || keyword === schemaKeywords.object || keyword === schemaKeywords.union || keyword === schemaKeywords.tuple || keyword === schemaKeywords.ref || keyword === schemaKeywords.enum || keyword === schemaKeywords.string || keyword === schemaKeywords.integer || keyword === schemaKeywords.number);
212113
212100
  return /* @__PURE__ */ jsxs(File, {
@@ -212268,7 +212255,7 @@ const pluginFaker = definePlugin((options) => {
212268
212255
  type: (_a = output.barrelType) != null ? _a : "named",
212269
212256
  root,
212270
212257
  output,
212271
- meta: { pluginKey: this.plugin.key }
212258
+ meta: { pluginName: this.plugin.name }
212272
212259
  });
212273
212260
  await this.upsertFile(...barrelFiles);
212274
212261
  }
@@ -212431,9 +212418,9 @@ const mcpGenerator = createReactGenerator({
212431
212418
  file: getFile(operation)
212432
212419
  };
212433
212420
  const type = {
212434
- file: getFile(operation, { pluginKey: [pluginTsName] }),
212421
+ file: getFile(operation, { pluginName: pluginTsName }),
212435
212422
  schemas: getSchemas(operation, {
212436
- pluginKey: [pluginTsName],
212423
+ pluginName: pluginTsName,
212437
212424
  type: "type"
212438
212425
  })
212439
212426
  };
@@ -212562,12 +212549,12 @@ const serverGenerator = createReactGenerator({
212562
212549
  const file = pluginManager.getFile({
212563
212550
  name,
212564
212551
  extname: ".ts",
212565
- pluginKey: plugin.key
212552
+ pluginName: plugin.name
212566
212553
  });
212567
212554
  const jsonFile = pluginManager.getFile({
212568
212555
  name: ".mcp",
212569
212556
  extname: ".json",
212570
- pluginKey: plugin.key
212557
+ pluginName: plugin.name
212571
212558
  });
212572
212559
  const operationsMapped = operations.map((operation) => {
212573
212560
  return {
@@ -212586,16 +212573,16 @@ const serverGenerator = createReactGenerator({
212586
212573
  zod: {
212587
212574
  name: getName(operation, {
212588
212575
  type: "function",
212589
- pluginKey: [pluginZodName]
212576
+ pluginName: pluginZodName
212590
212577
  }),
212591
212578
  schemas: getSchemas(operation, {
212592
- pluginKey: [pluginZodName],
212579
+ pluginName: pluginZodName,
212593
212580
  type: "function"
212594
212581
  }),
212595
- file: getFile(operation, { pluginKey: [pluginZodName] })
212582
+ file: getFile(operation, { pluginName: pluginZodName })
212596
212583
  },
212597
212584
  type: { schemas: getSchemas(operation, {
212598
- pluginKey: [pluginTsName],
212585
+ pluginName: pluginTsName,
212599
212586
  type: "type"
212600
212587
  }) }
212601
212588
  };
@@ -212732,7 +212719,7 @@ const pluginMcp = definePlugin((options) => {
212732
212719
  const oas = await this.getOas();
212733
212720
  const baseURL = await this.getBaseURL();
212734
212721
  if (baseURL) this.plugin.options.client.baseURL = baseURL;
212735
- const hasClientPlugin = !!this.pluginManager.getPluginByKey([pluginClientName]);
212722
+ const hasClientPlugin = !!this.pluginManager.getPluginByName(pluginClientName);
212736
212723
  if (this.plugin.options.client.bundle && !hasClientPlugin && !this.plugin.options.client.importPath) await this.addFile({
212737
212724
  baseName: "fetch.ts",
212738
212725
  path: path$2.resolve(root, ".kubb/fetch.ts"),
@@ -212774,7 +212761,7 @@ const pluginMcp = definePlugin((options) => {
212774
212761
  type: (_a2 = output.barrelType) != null ? _a2 : "named",
212775
212762
  root,
212776
212763
  output,
212777
- meta: { pluginKey: this.plugin.key }
212764
+ meta: { pluginName: this.plugin.name }
212778
212765
  });
212779
212766
  await this.upsertFile(...barrelFiles);
212780
212767
  }
@@ -213031,12 +213018,12 @@ const handlersGenerator = createReactGenerator({
213031
213018
  const file = pluginManager.getFile({
213032
213019
  name: "handlers",
213033
213020
  extname: ".ts",
213034
- pluginKey: plugin.key
213021
+ pluginName: plugin.name
213035
213022
  });
213036
213023
  const imports = operations.map((operation) => {
213037
- const operationFile = getFile(operation, { pluginKey: plugin.key });
213024
+ const operationFile = getFile(operation, { pluginName: plugin.name });
213038
213025
  const operationName = getName(operation, {
213039
- pluginKey: plugin.key,
213026
+ pluginName: plugin.name,
213040
213027
  type: "function"
213041
213028
  });
213042
213029
  return /* @__PURE__ */ jsx(File.Import, {
@@ -213047,7 +213034,7 @@ const handlersGenerator = createReactGenerator({
213047
213034
  });
213048
213035
  const handlers = operations.map((operation) => `${getName(operation, {
213049
213036
  type: "function",
213050
- pluginKey: plugin.key
213037
+ pluginName: plugin.name
213051
213038
  })}()`);
213052
213039
  return /* @__PURE__ */ jsxs(File, {
213053
213040
  baseName: file.baseName,
@@ -213082,16 +213069,16 @@ const mswGenerator = createReactGenerator({
213082
213069
  file: getFile(operation)
213083
213070
  };
213084
213071
  const faker = {
213085
- file: getFile(operation, { pluginKey: [pluginFakerName] }),
213072
+ file: getFile(operation, { pluginName: pluginFakerName }),
213086
213073
  schemas: getSchemas(operation, {
213087
- pluginKey: [pluginFakerName],
213074
+ pluginName: pluginFakerName,
213088
213075
  type: "function"
213089
213076
  })
213090
213077
  };
213091
213078
  const type = {
213092
- file: getFile(operation, { pluginKey: [pluginTsName] }),
213079
+ file: getFile(operation, { pluginName: pluginTsName }),
213093
213080
  schemas: getSchemas(operation, {
213094
- pluginKey: [pluginTsName],
213081
+ pluginName: pluginTsName,
213095
213082
  type: "type"
213096
213083
  })
213097
213084
  };
@@ -213232,7 +213219,7 @@ const pluginMsw = definePlugin((options) => {
213232
213219
  type: (_a = output.barrelType) != null ? _a : "named",
213233
213220
  root,
213234
213221
  output,
213235
- meta: { pluginKey: this.plugin.key }
213222
+ meta: { pluginName: this.plugin.name }
213236
213223
  });
213237
213224
  await this.upsertFile(...barrelFiles);
213238
213225
  }
@@ -214710,7 +214697,7 @@ const customHookOptionsFileGenerator = createReactGenerator({
214710
214697
  name: "react-query-custom-hook-options-file",
214711
214698
  Operations({ operations, generator, plugin, config }) {
214712
214699
  var _a, _b;
214713
- const { options, options: { output }, key: pluginKey } = plugin;
214700
+ const { options, options: { output }, name: pluginName } = plugin;
214714
214701
  const pluginManager = usePluginManager();
214715
214702
  const { getFile } = useOperationManager(generator);
214716
214703
  if (!options.customOptions) return null;
@@ -214724,7 +214711,7 @@ const customHookOptionsFileGenerator = createReactGenerator({
214724
214711
  return pluginManager.getFile({
214725
214712
  name: "index",
214726
214713
  extname: ".ts",
214727
- pluginKey
214714
+ pluginName
214728
214715
  }).path;
214729
214716
  };
214730
214717
  const ensureExtension = (filePath, extname) => {
@@ -214794,7 +214781,7 @@ const customHookOptionsFileGenerator = createReactGenerator({
214794
214781
  const hookOptionsGenerator = createReactGenerator({
214795
214782
  name: "react-query-hook-options",
214796
214783
  Operations({ operations, plugin, generator }) {
214797
- const { options, options: { output }, key: pluginKey } = plugin;
214784
+ const { options, options: { output }, name: pluginName } = plugin;
214798
214785
  const pluginManager = usePluginManager();
214799
214786
  const oas = useOas();
214800
214787
  const { getName, getFile } = useOperationManager(generator);
@@ -214803,7 +214790,7 @@ const hookOptionsGenerator = createReactGenerator({
214803
214790
  const file = pluginManager.getFile({
214804
214791
  name,
214805
214792
  extname: ".ts",
214806
- pluginKey
214793
+ pluginName
214807
214794
  });
214808
214795
  const getOperationOptions = (operation) => {
214809
214796
  const operationOptions = generator.getOptions(operation, operation.method);
@@ -215012,16 +214999,16 @@ const infiniteQueryGenerator$1 = createReactGenerator({
215012
214999
  suffix: "infinite"
215013
215000
  })
215014
215001
  };
215015
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
215002
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
215016
215003
  const client = {
215017
215004
  name: shouldUseClientPlugin ? getName(operation, {
215018
215005
  type: "function",
215019
- pluginKey: [pluginClientName]
215006
+ pluginName: pluginClientName
215020
215007
  }) : getName(operation, {
215021
215008
  type: "function",
215022
215009
  suffix: "infinite"
215023
215010
  }),
215024
- file: getFile(operation, { pluginKey: [pluginClientName] })
215011
+ file: getFile(operation, { pluginName: pluginClientName })
215025
215012
  };
215026
215013
  const queryOptions = { name: getName(operation, {
215027
215014
  type: "function",
@@ -215038,16 +215025,16 @@ const infiniteQueryGenerator$1 = createReactGenerator({
215038
215025
  })
215039
215026
  };
215040
215027
  const type = {
215041
- file: getFile(operation, { pluginKey: [pluginTsName] }),
215028
+ file: getFile(operation, { pluginName: pluginTsName }),
215042
215029
  schemas: getSchemas(operation, {
215043
- pluginKey: [pluginTsName],
215030
+ pluginName: pluginTsName,
215044
215031
  type: "type"
215045
215032
  })
215046
215033
  };
215047
215034
  const zod = {
215048
- file: getFile(operation, { pluginKey: [pluginZodName] }),
215035
+ file: getFile(operation, { pluginName: pluginZodName }),
215049
215036
  schemas: getSchemas(operation, {
215050
- pluginKey: [pluginZodName],
215037
+ pluginName: pluginZodName,
215051
215038
  type: "function"
215052
215039
  })
215053
215040
  };
@@ -215253,26 +215240,26 @@ const mutationGenerator$4 = createReactGenerator({
215253
215240
  file: getFile(operation, { prefix: "use" })
215254
215241
  };
215255
215242
  const type = {
215256
- file: getFile(operation, { pluginKey: [pluginTsName] }),
215243
+ file: getFile(operation, { pluginName: pluginTsName }),
215257
215244
  schemas: getSchemas(operation, {
215258
- pluginKey: [pluginTsName],
215245
+ pluginName: pluginTsName,
215259
215246
  type: "type"
215260
215247
  })
215261
215248
  };
215262
215249
  const zod = {
215263
- file: getFile(operation, { pluginKey: [pluginZodName] }),
215250
+ file: getFile(operation, { pluginName: pluginZodName }),
215264
215251
  schemas: getSchemas(operation, {
215265
- pluginKey: [pluginZodName],
215252
+ pluginName: pluginZodName,
215266
215253
  type: "function"
215267
215254
  })
215268
215255
  };
215269
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
215256
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
215270
215257
  const client = {
215271
215258
  name: shouldUseClientPlugin ? getName(operation, {
215272
215259
  type: "function",
215273
- pluginKey: [pluginClientName]
215260
+ pluginName: pluginClientName
215274
215261
  }) : getName(operation, { type: "function" }),
215275
- file: getFile(operation, { pluginKey: [pluginClientName] })
215262
+ file: getFile(operation, { pluginName: pluginClientName })
215276
215263
  };
215277
215264
  const mutationOptions = { name: getName(operation, {
215278
215265
  type: "function",
@@ -215462,13 +215449,13 @@ const queryGenerator$4 = createReactGenerator({
215462
215449
  typeName: getName(operation, { type: "type" }),
215463
215450
  file: getFile(operation, { prefix: "use" })
215464
215451
  };
215465
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
215452
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
215466
215453
  const client = {
215467
215454
  name: shouldUseClientPlugin ? getName(operation, {
215468
215455
  type: "function",
215469
- pluginKey: [pluginClientName]
215456
+ pluginName: pluginClientName
215470
215457
  }) : getName(operation, { type: "function" }),
215471
- file: getFile(operation, { pluginKey: [pluginClientName] })
215458
+ file: getFile(operation, { pluginName: pluginClientName })
215472
215459
  };
215473
215460
  const queryOptions = { name: getName(operation, {
215474
215461
  type: "function",
@@ -215485,16 +215472,16 @@ const queryGenerator$4 = createReactGenerator({
215485
215472
  })
215486
215473
  };
215487
215474
  const type = {
215488
- file: getFile(operation, { pluginKey: [pluginTsName] }),
215475
+ file: getFile(operation, { pluginName: pluginTsName }),
215489
215476
  schemas: getSchemas(operation, {
215490
- pluginKey: [pluginTsName],
215477
+ pluginName: pluginTsName,
215491
215478
  type: "type"
215492
215479
  })
215493
215480
  };
215494
215481
  const zod = {
215495
- file: getFile(operation, { pluginKey: [pluginZodName] }),
215482
+ file: getFile(operation, { pluginName: pluginZodName }),
215496
215483
  schemas: getSchemas(operation, {
215497
- pluginKey: [pluginZodName],
215484
+ pluginName: pluginZodName,
215498
215485
  type: "function"
215499
215486
  })
215500
215487
  };
@@ -215681,16 +215668,16 @@ const suspenseInfiniteQueryGenerator = createReactGenerator({
215681
215668
  suffix: "suspenseInfinite"
215682
215669
  })
215683
215670
  };
215684
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
215671
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
215685
215672
  const client = {
215686
215673
  name: shouldUseClientPlugin ? getName(operation, {
215687
215674
  type: "function",
215688
- pluginKey: [pluginClientName]
215675
+ pluginName: pluginClientName
215689
215676
  }) : getName(operation, {
215690
215677
  type: "function",
215691
215678
  suffix: "suspenseInfinite"
215692
215679
  }),
215693
- file: getFile(operation, { pluginKey: [pluginClientName] })
215680
+ file: getFile(operation, { pluginName: pluginClientName })
215694
215681
  };
215695
215682
  const queryOptions = { name: getName(operation, {
215696
215683
  type: "function",
@@ -215707,16 +215694,16 @@ const suspenseInfiniteQueryGenerator = createReactGenerator({
215707
215694
  })
215708
215695
  };
215709
215696
  const type = {
215710
- file: getFile(operation, { pluginKey: [pluginTsName] }),
215697
+ file: getFile(operation, { pluginName: pluginTsName }),
215711
215698
  schemas: getSchemas(operation, {
215712
- pluginKey: [pluginTsName],
215699
+ pluginName: pluginTsName,
215713
215700
  type: "type"
215714
215701
  })
215715
215702
  };
215716
215703
  const zod = {
215717
- file: getFile(operation, { pluginKey: [pluginZodName] }),
215704
+ file: getFile(operation, { pluginName: pluginZodName }),
215718
215705
  schemas: getSchemas(operation, {
215719
- pluginKey: [pluginZodName],
215706
+ pluginName: pluginZodName,
215720
215707
  type: "function"
215721
215708
  })
215722
215709
  };
@@ -215915,16 +215902,16 @@ const suspenseQueryGenerator = createReactGenerator({
215915
215902
  suffix: "suspense"
215916
215903
  })
215917
215904
  };
215918
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
215905
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
215919
215906
  const client = {
215920
215907
  name: shouldUseClientPlugin ? getName(operation, {
215921
215908
  type: "function",
215922
- pluginKey: [pluginClientName]
215909
+ pluginName: pluginClientName
215923
215910
  }) : getName(operation, {
215924
215911
  type: "function",
215925
215912
  suffix: "suspense"
215926
215913
  }),
215927
- file: getFile(operation, { pluginKey: [pluginClientName] })
215914
+ file: getFile(operation, { pluginName: pluginClientName })
215928
215915
  };
215929
215916
  const queryOptions = { name: getName(operation, {
215930
215917
  type: "function",
@@ -215941,16 +215928,16 @@ const suspenseQueryGenerator = createReactGenerator({
215941
215928
  })
215942
215929
  };
215943
215930
  const type = {
215944
- file: getFile(operation, { pluginKey: [pluginTsName] }),
215931
+ file: getFile(operation, { pluginName: pluginTsName }),
215945
215932
  schemas: getSchemas(operation, {
215946
- pluginKey: [pluginTsName],
215933
+ pluginName: pluginTsName,
215947
215934
  type: "type"
215948
215935
  })
215949
215936
  };
215950
215937
  const zod = {
215951
- file: getFile(operation, { pluginKey: [pluginZodName] }),
215938
+ file: getFile(operation, { pluginName: pluginZodName }),
215952
215939
  schemas: getSchemas(operation, {
215953
- pluginKey: [pluginZodName],
215940
+ pluginName: pluginZodName,
215954
215941
  type: "function"
215955
215942
  })
215956
215943
  };
@@ -216213,7 +216200,7 @@ const pluginReactQuery = definePlugin((options) => {
216213
216200
  const oas = await this.getOas();
216214
216201
  const baseURL = await this.getBaseURL();
216215
216202
  if (baseURL) this.plugin.options.client.baseURL = baseURL;
216216
- const hasClientPlugin = !!this.pluginManager.getPluginByKey([pluginClientName]);
216203
+ const hasClientPlugin = !!this.pluginManager.getPluginByName(pluginClientName);
216217
216204
  if (this.plugin.options.client.bundle && !hasClientPlugin && !this.plugin.options.client.importPath) await this.upsertFile({
216218
216205
  baseName: "fetch.ts",
216219
216206
  path: path$2.resolve(root, ".kubb/fetch.ts"),
@@ -216255,7 +216242,7 @@ const pluginReactQuery = definePlugin((options) => {
216255
216242
  type: (_a2 = output.barrelType) != null ? _a2 : "named",
216256
216243
  root,
216257
216244
  output,
216258
- meta: { pluginKey: this.plugin.key }
216245
+ meta: { pluginName: this.plugin.name }
216259
216246
  });
216260
216247
  await this.upsertFile(...barrelFiles);
216261
216248
  }
@@ -216958,26 +216945,26 @@ const mutationGenerator$3 = createReactGenerator({
216958
216945
  file: getFile(operation, { prefix: "use" })
216959
216946
  };
216960
216947
  const type = {
216961
- file: getFile(operation, { pluginKey: [pluginTsName] }),
216948
+ file: getFile(operation, { pluginName: pluginTsName }),
216962
216949
  schemas: getSchemas(operation, {
216963
- pluginKey: [pluginTsName],
216950
+ pluginName: pluginTsName,
216964
216951
  type: "type"
216965
216952
  })
216966
216953
  };
216967
216954
  const zod = {
216968
- file: getFile(operation, { pluginKey: [pluginZodName] }),
216955
+ file: getFile(operation, { pluginName: pluginZodName }),
216969
216956
  schemas: getSchemas(operation, {
216970
- pluginKey: [pluginZodName],
216957
+ pluginName: pluginZodName,
216971
216958
  type: "function"
216972
216959
  })
216973
216960
  };
216974
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
216961
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
216975
216962
  const client = {
216976
216963
  name: shouldUseClientPlugin ? getName(operation, {
216977
216964
  type: "function",
216978
- pluginKey: [pluginClientName]
216965
+ pluginName: pluginClientName
216979
216966
  }) : getName(operation, { type: "function" }),
216980
- file: getFile(operation, { pluginKey: [pluginClientName] })
216967
+ file: getFile(operation, { pluginName: pluginClientName })
216981
216968
  };
216982
216969
  const mutationKey = {
216983
216970
  name: getName(operation, {
@@ -217146,13 +217133,13 @@ const queryGenerator$3 = createReactGenerator({
217146
217133
  typeName: getName(operation, { type: "type" }),
217147
217134
  file: getFile(operation, { prefix: "create" })
217148
217135
  };
217149
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
217136
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
217150
217137
  const client = {
217151
217138
  name: shouldUseClientPlugin ? getName(operation, {
217152
217139
  type: "function",
217153
- pluginKey: [pluginClientName]
217140
+ pluginName: pluginClientName
217154
217141
  }) : getName(operation, { type: "function" }),
217155
- file: getFile(operation, { pluginKey: [pluginClientName] })
217142
+ file: getFile(operation, { pluginName: pluginClientName })
217156
217143
  };
217157
217144
  const queryOptions = { name: getName(operation, {
217158
217145
  type: "function",
@@ -217169,16 +217156,16 @@ const queryGenerator$3 = createReactGenerator({
217169
217156
  })
217170
217157
  };
217171
217158
  const type = {
217172
- file: getFile(operation, { pluginKey: [pluginTsName] }),
217159
+ file: getFile(operation, { pluginName: pluginTsName }),
217173
217160
  schemas: getSchemas(operation, {
217174
- pluginKey: [pluginTsName],
217161
+ pluginName: pluginTsName,
217175
217162
  type: "type"
217176
217163
  })
217177
217164
  };
217178
217165
  const zod = {
217179
- file: getFile(operation, { pluginKey: [pluginZodName] }),
217166
+ file: getFile(operation, { pluginName: pluginZodName }),
217180
217167
  schemas: getSchemas(operation, {
217181
- pluginKey: [pluginZodName],
217168
+ pluginName: pluginZodName,
217182
217169
  type: "function"
217183
217170
  })
217184
217171
  };
@@ -217415,7 +217402,7 @@ const pluginSolidQuery = definePlugin((options) => {
217415
217402
  const oas = await this.getOas();
217416
217403
  const baseURL = await this.getBaseURL();
217417
217404
  if (baseURL) this.plugin.options.client.baseURL = baseURL;
217418
- const hasClientPlugin = !!this.pluginManager.getPluginByKey([pluginClientName]);
217405
+ const hasClientPlugin = !!this.pluginManager.getPluginByName(pluginClientName);
217419
217406
  if (this.plugin.options.client.bundle && !hasClientPlugin && !this.plugin.options.client.importPath) await this.upsertFile({
217420
217407
  baseName: "fetch.ts",
217421
217408
  path: path$2.resolve(root, ".kubb/fetch.ts"),
@@ -217457,7 +217444,7 @@ const pluginSolidQuery = definePlugin((options) => {
217457
217444
  type: (_a2 = output.barrelType) != null ? _a2 : "named",
217458
217445
  root,
217459
217446
  output,
217460
- meta: { pluginKey: this.plugin.key }
217447
+ meta: { pluginName: this.plugin.name }
217461
217448
  });
217462
217449
  await this.upsertFile(...barrelFiles);
217463
217450
  }
@@ -218109,26 +218096,26 @@ const mutationGenerator$2 = createReactGenerator({
218109
218096
  file: getFile(operation, { prefix: "create" })
218110
218097
  };
218111
218098
  const type = {
218112
- file: getFile(operation, { pluginKey: [pluginTsName] }),
218099
+ file: getFile(operation, { pluginName: pluginTsName }),
218113
218100
  schemas: getSchemas(operation, {
218114
- pluginKey: [pluginTsName],
218101
+ pluginName: pluginTsName,
218115
218102
  type: "type"
218116
218103
  })
218117
218104
  };
218118
218105
  const zod = {
218119
- file: getFile(operation, { pluginKey: [pluginZodName] }),
218106
+ file: getFile(operation, { pluginName: pluginZodName }),
218120
218107
  schemas: getSchemas(operation, {
218121
- pluginKey: [pluginZodName],
218108
+ pluginName: pluginZodName,
218122
218109
  type: "function"
218123
218110
  })
218124
218111
  };
218125
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
218112
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
218126
218113
  const client = {
218127
218114
  name: shouldUseClientPlugin ? getName(operation, {
218128
218115
  type: "function",
218129
- pluginKey: [pluginClientName]
218116
+ pluginName: pluginClientName
218130
218117
  }) : getName(operation, { type: "function" }),
218131
- file: getFile(operation, { pluginKey: [pluginClientName] })
218118
+ file: getFile(operation, { pluginName: pluginClientName })
218132
218119
  };
218133
218120
  const mutationKey = {
218134
218121
  name: getName(operation, {
@@ -218296,13 +218283,13 @@ const queryGenerator$2 = createReactGenerator({
218296
218283
  typeName: getName(operation, { type: "type" }),
218297
218284
  file: getFile(operation, { prefix: "create" })
218298
218285
  };
218299
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
218286
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
218300
218287
  const client = {
218301
218288
  name: shouldUseClientPlugin ? getName(operation, {
218302
218289
  type: "function",
218303
- pluginKey: [pluginClientName]
218290
+ pluginName: pluginClientName
218304
218291
  }) : getName(operation, { type: "function" }),
218305
- file: getFile(operation, { pluginKey: [pluginClientName] })
218292
+ file: getFile(operation, { pluginName: pluginClientName })
218306
218293
  };
218307
218294
  const queryOptions = { name: getName(operation, {
218308
218295
  type: "function",
@@ -218319,16 +218306,16 @@ const queryGenerator$2 = createReactGenerator({
218319
218306
  })
218320
218307
  };
218321
218308
  const type = {
218322
- file: getFile(operation, { pluginKey: [pluginTsName] }),
218309
+ file: getFile(operation, { pluginName: pluginTsName }),
218323
218310
  schemas: getSchemas(operation, {
218324
- pluginKey: [pluginTsName],
218311
+ pluginName: pluginTsName,
218325
218312
  type: "type"
218326
218313
  })
218327
218314
  };
218328
218315
  const zod = {
218329
- file: getFile(operation, { pluginKey: [pluginZodName] }),
218316
+ file: getFile(operation, { pluginName: pluginZodName }),
218330
218317
  schemas: getSchemas(operation, {
218331
- pluginKey: [pluginZodName],
218318
+ pluginName: pluginZodName,
218332
218319
  type: "function"
218333
218320
  })
218334
218321
  };
@@ -218565,7 +218552,7 @@ const pluginSvelteQuery = definePlugin((options) => {
218565
218552
  const oas = await this.getOas();
218566
218553
  const baseURL = await this.getBaseURL();
218567
218554
  if (baseURL) this.plugin.options.client.baseURL = baseURL;
218568
- const hasClientPlugin = !!this.pluginManager.getPluginByKey([pluginClientName]);
218555
+ const hasClientPlugin = !!this.pluginManager.getPluginByName(pluginClientName);
218569
218556
  if (this.plugin.options.client.bundle && !hasClientPlugin && !this.plugin.options.client.importPath) await this.upsertFile({
218570
218557
  baseName: "fetch.ts",
218571
218558
  path: path$2.resolve(root, ".kubb/fetch.ts"),
@@ -218607,7 +218594,7 @@ const pluginSvelteQuery = definePlugin((options) => {
218607
218594
  type: (_a2 = output.barrelType) != null ? _a2 : "named",
218608
218595
  root,
218609
218596
  output,
218610
- meta: { pluginKey: this.plugin.key }
218597
+ meta: { pluginName: this.plugin.name }
218611
218598
  });
218612
218599
  await this.upsertFile(...barrelFiles);
218613
218600
  }
@@ -219297,26 +219284,26 @@ const mutationGenerator$1 = createReactGenerator({
219297
219284
  file: getFile(operation, { prefix: "use" })
219298
219285
  };
219299
219286
  const type = {
219300
- file: getFile(operation, { pluginKey: [pluginTsName] }),
219287
+ file: getFile(operation, { pluginName: pluginTsName }),
219301
219288
  schemas: getSchemas(operation, {
219302
- pluginKey: [pluginTsName],
219289
+ pluginName: pluginTsName,
219303
219290
  type: "type"
219304
219291
  })
219305
219292
  };
219306
219293
  const zod = {
219307
- file: getFile(operation, { pluginKey: [pluginZodName] }),
219294
+ file: getFile(operation, { pluginName: pluginZodName }),
219308
219295
  schemas: getSchemas(operation, {
219309
- pluginKey: [pluginZodName],
219296
+ pluginName: pluginZodName,
219310
219297
  type: "function"
219311
219298
  })
219312
219299
  };
219313
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
219300
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
219314
219301
  const client = {
219315
219302
  name: shouldUseClientPlugin ? getName(operation, {
219316
219303
  type: "function",
219317
- pluginKey: [pluginClientName]
219304
+ pluginName: pluginClientName
219318
219305
  }) : getName(operation, { type: "function" }),
219319
- file: getFile(operation, { pluginKey: [pluginClientName] })
219306
+ file: getFile(operation, { pluginName: pluginClientName })
219320
219307
  };
219321
219308
  const mutationKey = {
219322
219309
  name: getName(operation, {
@@ -219480,13 +219467,13 @@ const queryGenerator$1 = createReactGenerator({
219480
219467
  typeName: getName(operation, { type: "type" }),
219481
219468
  file: getFile(operation, { prefix: "use" })
219482
219469
  };
219483
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
219470
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
219484
219471
  const client = {
219485
219472
  name: shouldUseClientPlugin ? getName(operation, {
219486
219473
  type: "function",
219487
- pluginKey: [pluginClientName]
219474
+ pluginName: pluginClientName
219488
219475
  }) : getName(operation, { type: "function" }),
219489
- file: getFile(operation, { pluginKey: [pluginClientName] })
219476
+ file: getFile(operation, { pluginName: pluginClientName })
219490
219477
  };
219491
219478
  const queryOptions = { name: getName(operation, {
219492
219479
  type: "function",
@@ -219503,16 +219490,16 @@ const queryGenerator$1 = createReactGenerator({
219503
219490
  })
219504
219491
  };
219505
219492
  const type = {
219506
- file: getFile(operation, { pluginKey: [pluginTsName] }),
219493
+ file: getFile(operation, { pluginName: pluginTsName }),
219507
219494
  schemas: getSchemas(operation, {
219508
- pluginKey: [pluginTsName],
219495
+ pluginName: pluginTsName,
219509
219496
  type: "type"
219510
219497
  })
219511
219498
  };
219512
219499
  const zod = {
219513
- file: getFile(operation, { pluginKey: [pluginZodName] }),
219500
+ file: getFile(operation, { pluginName: pluginZodName }),
219514
219501
  schemas: getSchemas(operation, {
219515
- pluginKey: [pluginZodName],
219502
+ pluginName: pluginZodName,
219516
219503
  type: "function"
219517
219504
  })
219518
219505
  };
@@ -219737,7 +219724,7 @@ const pluginSwr = definePlugin((options) => {
219737
219724
  const oas = await this.getOas();
219738
219725
  const baseURL = await this.getBaseURL();
219739
219726
  if (baseURL) this.plugin.options.client.baseURL = baseURL;
219740
- const hasClientPlugin = !!this.pluginManager.getPluginByKey([pluginClientName]);
219727
+ const hasClientPlugin = !!this.pluginManager.getPluginByName(pluginClientName);
219741
219728
  if (this.plugin.options.client.bundle && !hasClientPlugin && !this.plugin.options.client.importPath) await this.upsertFile({
219742
219729
  baseName: "fetch.ts",
219743
219730
  path: path$2.resolve(root, ".kubb/fetch.ts"),
@@ -219779,7 +219766,7 @@ const pluginSwr = definePlugin((options) => {
219779
219766
  type: (_a2 = output.barrelType) != null ? _a2 : "named",
219780
219767
  root,
219781
219768
  output,
219782
- meta: { pluginKey: this.plugin.key }
219769
+ meta: { pluginName: this.plugin.name }
219783
219770
  });
219784
219771
  await this.upsertFile(...barrelFiles);
219785
219772
  }
@@ -220789,16 +220776,16 @@ const infiniteQueryGenerator = createReactGenerator({
220789
220776
  suffix: "infinite"
220790
220777
  })
220791
220778
  };
220792
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
220779
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
220793
220780
  const client = {
220794
220781
  name: shouldUseClientPlugin ? getName(operation, {
220795
220782
  type: "function",
220796
- pluginKey: [pluginClientName]
220783
+ pluginName: pluginClientName
220797
220784
  }) : getName(operation, {
220798
220785
  type: "function",
220799
220786
  suffix: "infinite"
220800
220787
  }),
220801
- file: getFile(operation, { pluginKey: [pluginClientName] })
220788
+ file: getFile(operation, { pluginName: pluginClientName })
220802
220789
  };
220803
220790
  const queryOptions = { name: getName(operation, {
220804
220791
  type: "function",
@@ -220815,16 +220802,16 @@ const infiniteQueryGenerator = createReactGenerator({
220815
220802
  })
220816
220803
  };
220817
220804
  const type = {
220818
- file: getFile(operation, { pluginKey: [pluginTsName] }),
220805
+ file: getFile(operation, { pluginName: pluginTsName }),
220819
220806
  schemas: getSchemas(operation, {
220820
- pluginKey: [pluginTsName],
220807
+ pluginName: pluginTsName,
220821
220808
  type: "type"
220822
220809
  })
220823
220810
  };
220824
220811
  const zod = {
220825
- file: getFile(operation, { pluginKey: [pluginZodName] }),
220812
+ file: getFile(operation, { pluginName: pluginZodName }),
220826
220813
  schemas: getSchemas(operation, {
220827
- pluginKey: [pluginZodName],
220814
+ pluginName: pluginZodName,
220828
220815
  type: "function"
220829
220816
  })
220830
220817
  };
@@ -221021,26 +221008,26 @@ const mutationGenerator = createReactGenerator({
221021
221008
  file: getFile(operation, { prefix: "use" })
221022
221009
  };
221023
221010
  const type = {
221024
- file: getFile(operation, { pluginKey: [pluginTsName] }),
221011
+ file: getFile(operation, { pluginName: pluginTsName }),
221025
221012
  schemas: getSchemas(operation, {
221026
- pluginKey: [pluginTsName],
221013
+ pluginName: pluginTsName,
221027
221014
  type: "type"
221028
221015
  })
221029
221016
  };
221030
221017
  const zod = {
221031
- file: getFile(operation, { pluginKey: [pluginZodName] }),
221018
+ file: getFile(operation, { pluginName: pluginZodName }),
221032
221019
  schemas: getSchemas(operation, {
221033
- pluginKey: [pluginZodName],
221020
+ pluginName: pluginZodName,
221034
221021
  type: "function"
221035
221022
  })
221036
221023
  };
221037
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
221024
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
221038
221025
  const client = {
221039
221026
  name: shouldUseClientPlugin ? getName(operation, {
221040
221027
  type: "function",
221041
- pluginKey: [pluginClientName]
221028
+ pluginName: pluginClientName
221042
221029
  }) : getName(operation, { type: "function" }),
221043
- file: getFile(operation, { pluginKey: [pluginClientName] })
221030
+ file: getFile(operation, { pluginName: pluginClientName })
221044
221031
  };
221045
221032
  const mutationKey = {
221046
221033
  name: getName(operation, {
@@ -221209,13 +221196,13 @@ const queryGenerator = createReactGenerator({
221209
221196
  typeName: getName(operation, { type: "type" }),
221210
221197
  file: getFile(operation, { prefix: "use" })
221211
221198
  };
221212
- const shouldUseClientPlugin = !!pluginManager.getPluginByKey([pluginClientName]) && options.client.clientType !== "class";
221199
+ const shouldUseClientPlugin = !!pluginManager.getPluginByName(pluginClientName) && options.client.clientType !== "class";
221213
221200
  const client = {
221214
221201
  name: shouldUseClientPlugin ? getName(operation, {
221215
221202
  type: "function",
221216
- pluginKey: [pluginClientName]
221203
+ pluginName: pluginClientName
221217
221204
  }) : getName(operation, { type: "function" }),
221218
- file: getFile(operation, { pluginKey: [pluginClientName] })
221205
+ file: getFile(operation, { pluginName: pluginClientName })
221219
221206
  };
221220
221207
  const queryOptions = { name: getName(operation, {
221221
221208
  type: "function",
@@ -221232,16 +221219,16 @@ const queryGenerator = createReactGenerator({
221232
221219
  })
221233
221220
  };
221234
221221
  const type = {
221235
- file: getFile(operation, { pluginKey: [pluginTsName] }),
221222
+ file: getFile(operation, { pluginName: pluginTsName }),
221236
221223
  schemas: getSchemas(operation, {
221237
- pluginKey: [pluginTsName],
221224
+ pluginName: pluginTsName,
221238
221225
  type: "type"
221239
221226
  })
221240
221227
  };
221241
221228
  const zod = {
221242
- file: getFile(operation, { pluginKey: [pluginZodName] }),
221229
+ file: getFile(operation, { pluginName: pluginZodName }),
221243
221230
  schemas: getSchemas(operation, {
221244
- pluginKey: [pluginZodName],
221231
+ pluginName: pluginZodName,
221245
221232
  type: "function"
221246
221233
  })
221247
221234
  };
@@ -221499,7 +221486,7 @@ const pluginVueQuery = definePlugin((options) => {
221499
221486
  const oas = await this.getOas();
221500
221487
  const baseURL = await this.getBaseURL();
221501
221488
  if (baseURL) this.plugin.options.client.baseURL = baseURL;
221502
- const hasClientPlugin = !!this.pluginManager.getPluginByKey([pluginClientName]);
221489
+ const hasClientPlugin = !!this.pluginManager.getPluginByName(pluginClientName);
221503
221490
  if (this.plugin.options.client.bundle && !hasClientPlugin && !this.plugin.options.client.importPath) await this.upsertFile({
221504
221491
  baseName: "fetch.ts",
221505
221492
  path: path$2.resolve(root, ".kubb/fetch.ts"),
@@ -221541,7 +221528,7 @@ const pluginVueQuery = definePlugin((options) => {
221541
221528
  type: (_a2 = output.barrelType) != null ? _a2 : "named",
221542
221529
  root,
221543
221530
  output,
221544
- meta: { pluginKey: this.plugin.key }
221531
+ meta: { pluginName: this.plugin.name }
221545
221532
  });
221546
221533
  await this.upsertFile(...barrelFiles);
221547
221534
  }