@kubb/plugin-solid-query 0.0.0-canary-20260122231145 → 0.0.0-canary-20260127114515

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,4 +1,4 @@
1
- import { a as OperationSchemas, c as __name, n as PluginSolidQuery, r as Transformer, s as Operation } from "./types-DqZ7KJBR.cjs";
1
+ import { a as OperationSchemas, c as __name, n as PluginSolidQuery, r as Transformer, s as Operation } from "./types-CHAyktUZ.cjs";
2
2
  import { FunctionParams } from "@kubb/react-fabric";
3
3
  import { KubbNode } from "@kubb/react-fabric/types";
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { a as OperationSchemas, n as PluginSolidQuery, r as Transformer, s as Operation } from "./types-C3QP93nB.js";
2
+ import { a as OperationSchemas, n as PluginSolidQuery, r as Transformer, s as Operation } from "./types-D6QTNiqS.js";
3
3
  import { FunctionParams } from "@kubb/react-fabric";
4
4
  import { KubbNode } from "@kubb/react-fabric/types";
5
5
 
@@ -1,4 +1,4 @@
1
- import { c as __name, i as ReactGenerator, n as PluginSolidQuery } from "./types-DqZ7KJBR.cjs";
1
+ import { c as __name, i as ReactGenerator, n as PluginSolidQuery } from "./types-CHAyktUZ.cjs";
2
2
 
3
3
  //#region src/generators/mutationGenerator.d.ts
4
4
  declare const mutationGenerator: ReactGenerator<PluginSolidQuery>;
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { i as ReactGenerator, n as PluginSolidQuery } from "./types-C3QP93nB.js";
2
+ import { i as ReactGenerator, n as PluginSolidQuery } from "./types-D6QTNiqS.js";
3
3
 
4
4
  //#region src/generators/mutationGenerator.d.ts
5
5
  declare const mutationGenerator: ReactGenerator<PluginSolidQuery>;
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { c as __name, n as PluginSolidQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-DqZ7KJBR.cjs";
1
+ import { c as __name, n as PluginSolidQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-CHAyktUZ.cjs";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  declare const pluginSolidQueryName = "plugin-solid-query";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk-eQyhnF5A.js";
2
- import { n as PluginSolidQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-C3QP93nB.js";
2
+ import { n as PluginSolidQuery, o as UserPluginWithLifeCycle, t as Options } from "./types-D6QTNiqS.js";
3
3
 
4
4
  //#region src/plugin.d.ts
5
5
  declare const pluginSolidQueryName = "plugin-solid-query";
@@ -20,16 +20,21 @@ type Operation$1 = Operation;
20
20
  type DiscriminatorObject$1 = DiscriminatorObject;
21
21
  //#endregion
22
22
  //#region ../oas/src/Oas.d.ts
23
- type Options$3 = {
23
+ type OasOptions = {
24
24
  contentType?: contentType;
25
25
  discriminator?: 'strict' | 'inherit';
26
+ /**
27
+ * Resolve name collisions when schemas from different components share the same name (case-insensitive).
28
+ * @default false
29
+ */
30
+ collisionDetection?: boolean;
26
31
  };
27
32
  declare class Oas extends BaseOas {
28
33
  #private;
29
34
  document: Document;
30
35
  constructor(document: Document);
31
- setOptions(options: Options$3): void;
32
- get options(): Options$3;
36
+ setOptions(options: OasOptions): void;
37
+ get options(): OasOptions;
33
38
  get<T = unknown>($ref: string): T | null;
34
39
  getKey($ref: string): string | undefined;
35
40
  set($ref: string, value: unknown): false | undefined;
@@ -38,8 +43,20 @@ declare class Oas extends BaseOas {
38
43
  getResponseSchema(operation: Operation$1, statusCode: string | number): SchemaObject$1;
39
44
  getRequestSchema(operation: Operation$1): SchemaObject$1 | undefined;
40
45
  getParametersSchema(operation: Operation$1, inKey: 'path' | 'query' | 'header'): SchemaObject$1 | null;
41
- valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
46
+ validate(): Promise<oas_normalize_lib_types0.ValidationResult>;
42
47
  flattenSchema(schema: SchemaObject$1 | null): SchemaObject$1 | null;
48
+ /**
49
+ * Get schemas from OpenAPI components (schemas, responses, requestBodies).
50
+ * Returns schemas in dependency order along with name mapping for collision resolution.
51
+ */
52
+ getSchemas(options?: {
53
+ contentType?: contentType;
54
+ includes?: Array<'schemas' | 'responses' | 'requestBodies'>;
55
+ collisionDetection?: boolean;
56
+ }): {
57
+ schemas: Record<string, SchemaObject$1>;
58
+ nameMapping: Map<string, string>;
59
+ };
43
60
  }
44
61
  //#endregion
45
62
  //#region ../core/src/BaseGenerator.d.ts
@@ -340,7 +357,7 @@ type Config<TInput = Input> = {
340
357
  input: TInput;
341
358
  output: {
342
359
  /**
343
- * The path where all generated files will be exported.
360
+ * The path where all generated files receives exported.
344
361
  * This can be an absolute path or a path relative to the specified root option.
345
362
  */
346
363
  path: string;
@@ -355,41 +372,39 @@ type Config<TInput = Input> = {
355
372
  write?: boolean;
356
373
  /**
357
374
  * Specifies the formatting tool to be used.
358
- * @default prettier
359
- *
360
- * Possible values:
361
- * - 'auto': Automatically detects and uses biome or prettier (in that order of preference).
362
- * - 'prettier': Uses Prettier for code formatting.
363
- * - 'biome': Uses Biome for code formatting.
364
- *
375
+ * - 'auto' automatically detects and uses biome or prettier (in that order of preference).
376
+ * - 'prettier' uses Prettier for code formatting.
377
+ * - 'biome' uses Biome for code formatting.
378
+ * - 'oxfmt' uses Oxfmt for code formatting.
379
+ * - false disables code formatting.
380
+ * @default 'prettier'
365
381
  */
366
382
  format?: 'auto' | 'prettier' | 'biome' | 'oxfmt' | false;
367
383
  /**
368
384
  * Specifies the linter that should be used to analyze the code.
369
- * The accepted values indicate different linting tools.
370
- *
371
- * Possible values:
372
- * - 'auto': Automatically detects and uses biome, oxlint, or eslint (in that order of preference).
373
- * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
374
- * - 'biome': Represents the Biome linter, a modern tool for code scanning.
375
- * - 'oxlint': Represents the Oxlint tool for linting purposes.
376
- *
385
+ * - 'auto' automatically detects and uses biome, oxlint, or eslint (in that order of preference).
386
+ * - 'eslint' uses ESLint for linting.
387
+ * - 'biome' uses Biome for linting.
388
+ * - 'oxlint' uses Oxlint for linting.
389
+ * - false disables linting.
390
+ * @default 'auto'
377
391
  */
378
392
  lint?: 'auto' | 'eslint' | 'biome' | 'oxlint' | false;
379
393
  /**
380
- * Override the extension to the generated imports and exports, by default each plugin will add an extension
394
+ * Overrides the extension for generated imports and exports. By default, each plugin adds an extension.
381
395
  * @default { '.ts': '.ts'}
382
396
  */
383
397
  extension?: Record<KubbFile.Extname, KubbFile.Extname | ''>;
384
398
  /**
385
- * Specify how `index.ts` files should be created. You can also disable the generation of barrel files here. While each plugin has its own `barrelType` option, this setting controls the creation of the root barrel file, such as` src/gen/index.ts`.
399
+ * Configures how `index.ts` files are created, including disabling barrel file generation. Each plugin has its own `barrelType` option; this setting controls the root barrel file (e.g., `src/gen/index.ts`).
386
400
  * @default 'named'
387
401
  */
388
402
  barrelType?: Exclude<BarrelType, 'propagate'> | false;
389
403
  /**
390
- * Add a default banner to the beginning of every generated file. This makes it clear that the file was generated by Kubb.
391
- * - 'simple': will only add banner with link to Kubb
392
- * - 'full': will add source, title, description and the OpenAPI version used
404
+ * Adds a default banner to the start of every generated file indicating it was generated by Kubb.
405
+ * - 'simple' adds banner with link to Kubb.
406
+ * - 'full' adds source, title, description, and OpenAPI version.
407
+ * - false disables banner generation.
393
408
  * @default 'simple'
394
409
  */
395
410
  defaultBanner?: 'simple' | 'full' | false;
@@ -402,17 +417,17 @@ type Config<TInput = Input> = {
402
417
  override?: boolean;
403
418
  };
404
419
  /**
405
- * An array of Kubb plugins that will be used in the generation.
420
+ * An array of Kubb plugins that used in the generation.
406
421
  * Each plugin may include additional configurable options(defined in the plugin itself).
407
- * If a plugin depends on another plugin, an error will be returned if the required dependency is missing. See pre for more details.
422
+ * If a plugin depends on another plugin, an error is returned if the required dependency is missing. See pre for more details.
408
423
  */
409
424
  plugins?: Array<Plugin>;
410
425
  /**
411
- * Hooks that will be called when a specific action is triggered in Kubb.
426
+ * Hooks triggered when a specific action occurs in Kubb.
412
427
  */
413
428
  hooks?: {
414
429
  /**
415
- * Hook that will be triggered at the end of all executions.
430
+ * Hook that triggers at the end of all executions.
416
431
  * Useful for running Prettier or ESLint to format/lint your code.
417
432
  */
418
433
  done?: string | Array<string>;
@@ -441,7 +456,7 @@ TContext = any,
441
456
  TResolvePathOptions extends object = object> = {
442
457
  name: TName;
443
458
  /**
444
- * Same behaviour like what has been done with `QueryKey` in `@tanstack/react-query`
459
+ * Same behavior like what has been done with `QueryKey` in `@tanstack/react-query`
445
460
  */
446
461
  key: PluginKey<TName | string>;
447
462
  options: TOptions;
@@ -462,12 +477,12 @@ type UserPlugin<TOptions extends PluginFactoryOptions = PluginFactoryOptions> =
462
477
  */
463
478
  options: TOptions['resolvedOptions'];
464
479
  /**
465
- * Specifies the preceding plugins for the current plugin. You can pass an array of preceding plugin names, and the current plugin will be executed after these plugins.
480
+ * Specifies the preceding plugins for the current plugin. You can pass an array of preceding plugin names, and the current plugin is executed after these plugins.
466
481
  * Can be used to validate dependent plugins.
467
482
  */
468
483
  pre?: Array<string>;
469
484
  /**
470
- * Specifies the succeeding plugins for the current plugin. You can pass an array of succeeding plugin names, and the current plugin will be executed before these plugins.
485
+ * Specifies the succeeding plugins for the current plugin. You can pass an array of succeeding plugin names, and the current plugin is executed before these plugins.
471
486
  */
472
487
  post?: Array<string>;
473
488
  inject?: (this: PluginContext<TOptions>, context: PluginContext<TOptions>) => TOptions['context'];
@@ -485,12 +500,12 @@ type Plugin<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = {
485
500
  */
486
501
  key: TOptions['key'];
487
502
  /**
488
- * Specifies the preceding plugins for the current plugin. You can pass an array of preceding plugin names, and the current plugin will be executed after these plugins.
503
+ * Specifies the preceding plugins for the current plugin. You can pass an array of preceding plugin names, and the current plugin is executed after these plugins.
489
504
  * Can be used to validate dependent plugins.
490
505
  */
491
506
  pre?: Array<string>;
492
507
  /**
493
- * Specifies the succeeding plugins for the current plugin. You can pass an array of succeeding plugin names, and the current plugin will be executed before these plugins.
508
+ * Specifies the succeeding plugins for the current plugin. You can pass an array of succeeding plugin names, and the current plugin is executed before these plugins.
494
509
  */
495
510
  post?: Array<string>;
496
511
  /**
@@ -540,10 +555,12 @@ type ResolveNameParams = {
540
555
  name: string;
541
556
  pluginKey?: Plugin['key'];
542
557
  /**
543
- * `file` will be used to customize the name of the created file(use of camelCase)
544
- * `function` can be used to customize the exported functions(use of camelCase)
545
- * `type` is a special type for TypeScript(use of PascalCase)
546
- * `const` can be used for variables(use of camelCase)
558
+ * Specifies the type of entity being named.
559
+ * - 'file' customizes the name of the created file (uses camelCase).
560
+ * - 'function' customizes the exported function names (uses camelCase).
561
+ * - 'type' customizes TypeScript types (uses PascalCase).
562
+ * - 'const' customizes variable names (uses camelCase).
563
+ * @default undefined
547
564
  */
548
565
  type?: 'file' | 'function' | 'type' | 'const';
549
566
  };
@@ -598,11 +615,14 @@ type GroupContext = {
598
615
  };
599
616
  type Group = {
600
617
  /**
601
- * Define a type where to group the files on
618
+ * Defines the type where to group the files.
619
+ * - 'tag' groups files by OpenAPI tags.
620
+ * - 'path' groups files by OpenAPI paths.
621
+ * @default undefined
602
622
  */
603
623
  type: 'tag' | 'path';
604
624
  /**
605
- * Return the name of a group based on the group name, this will be used for the file and name generation
625
+ * Return the name of a group based on the group name, this used for the file and name generation
606
626
  */
607
627
  name?: (context: GroupContext) => string;
608
628
  };
@@ -674,7 +694,7 @@ declare class PluginManager {
674
694
  parameters: PluginParameter<H>;
675
695
  }): Array<ReturnType<ParseResult<H>>> | null;
676
696
  /**
677
- * First non-null result stops and will return it's value.
697
+ * Returns the first non-null result.
678
698
  */
679
699
  hookFirst<H extends PluginLifecycleHooks>({
680
700
  hookName,
@@ -686,7 +706,7 @@ declare class PluginManager {
686
706
  skipped?: ReadonlySet<Plugin> | null;
687
707
  }): Promise<SafeParseResult<H>>;
688
708
  /**
689
- * First non-null result stops and will return it's value.
709
+ * Returns the first non-null result.
690
710
  */
691
711
  hookFirstSync<H extends PluginLifecycleHooks>({
692
712
  hookName,
@@ -698,15 +718,15 @@ declare class PluginManager {
698
718
  skipped?: ReadonlySet<Plugin> | null;
699
719
  }): SafeParseResult<H>;
700
720
  /**
701
- * Run all plugins in parallel(order will be based on `this.plugin` and if `pre` or `post` is set).
721
+ * Runs all plugins in parallel based on `this.plugin` order and `pre`/`post` settings.
702
722
  */
703
- hookParallel<H extends PluginLifecycleHooks, TOuput = void>({
723
+ hookParallel<H extends PluginLifecycleHooks, TOutput = void>({
704
724
  hookName,
705
725
  parameters
706
726
  }: {
707
727
  hookName: H;
708
728
  parameters?: Parameters<RequiredPluginLifecycle[H]> | undefined;
709
- }): Promise<Awaited<TOuput>[]>;
729
+ }): Promise<Awaited<TOutput>[]>;
710
730
  /**
711
731
  * Chains plugins
712
732
  */
@@ -975,8 +995,8 @@ type SchemaKeywordMapper = {
975
995
  */
976
996
  path: KubbFile.Path;
977
997
  /**
978
- * When true `File.Import` will be used.
979
- * When false a reference will be used inside the current file.
998
+ * When true `File.Import` is used.
999
+ * When false a reference is used inside the current file.
980
1000
  */
981
1001
  isImportable: boolean;
982
1002
  };
@@ -1108,7 +1128,7 @@ type SchemaGeneratorOptions = {
1108
1128
  */
1109
1129
  name?: (name: ResolveNameParams['name'], type?: ResolveNameParams['type']) => string;
1110
1130
  /**
1111
- * Receive schema and name(propertName) and return FakerMeta array
1131
+ * Receive schema and name(propertyName) and return FakerMeta array
1112
1132
  * TODO TODO add docs
1113
1133
  * @beta
1114
1134
  */
@@ -1187,7 +1207,7 @@ type Options$1 = {
1187
1207
  output?: Output<Oas>;
1188
1208
  /**
1189
1209
  * Define which contentType should be used.
1190
- * By default, the first JSON valid mediaType will be used
1210
+ * By default, the first JSON valid mediaType is used
1191
1211
  */
1192
1212
  contentType?: contentType;
1193
1213
  /**
@@ -1212,16 +1232,17 @@ type Options$1 = {
1212
1232
  */
1213
1233
  operations?: boolean;
1214
1234
  /**
1215
- * Export urls that are used by operation x
1216
- * `export` will make them part of your barrel file
1217
- * false will not make them exportable
1235
+ * Export urls that are used by operation x.
1236
+ * - 'export' makes them part of your barrel file.
1237
+ * - false does not make them exportable.
1238
+ * @default false
1218
1239
  * @example getGetPetByIdUrl
1219
1240
  */
1220
1241
  urlType?: 'export' | false;
1221
1242
  /**
1222
- * Path to the client import path that will be used to do the API calls.
1223
- * It will be used as `import client from '${client.importPath}'`.
1224
- * It allows both relative and absolute path but be aware that we will not change the path.
1243
+ * Client import path for API calls.
1244
+ * Used as `import client from '${client.importPath}'`.
1245
+ * Accepts relative and absolute paths; path changes are not performed.
1225
1246
  */
1226
1247
  importPath?: string;
1227
1248
  /**
@@ -1229,49 +1250,50 @@ type Options$1 = {
1229
1250
  */
1230
1251
  baseURL?: string;
1231
1252
  /**
1232
- * ReturnType that will be used when calling the client.
1233
- * - 'data' will return ResponseConfig[data].
1234
- * - 'full' will return ResponseConfig.
1253
+ * ReturnType that is used when calling the client.
1254
+ * - 'data' returns ResponseConfig[data].
1255
+ * - 'full' returns ResponseConfig.
1235
1256
  * @default 'data'
1236
1257
  */
1237
1258
  dataReturnType?: 'data' | 'full';
1238
1259
  /**
1239
1260
  * How to style your params, by default no casing is applied
1240
- * - 'camelcase' will use camelcase for the params names
1261
+ * - 'camelcase' uses camelcase for the params names
1241
1262
  */
1242
1263
  paramsCasing?: 'camelcase';
1243
1264
  /**
1244
- * How to pass your params
1245
- * - 'object' will return the params and pathParams as an object.
1246
- * - 'inline' will return the params as comma separated params.
1265
+ * How to pass your params.
1266
+ * - 'object' returns the params and pathParams as an object.
1267
+ * - 'inline' returns the params as comma separated params.
1247
1268
  * @default 'inline'
1248
1269
  */
1249
1270
  paramsType?: 'object' | 'inline';
1250
1271
  /**
1251
1272
  * How to pass your pathParams.
1252
- * - 'object' will return the pathParams as an object.
1253
- * - 'inline' will return the pathParams as comma separated params.
1273
+ * - 'object' returns the pathParams as an object.
1274
+ * - 'inline' returns the pathParams as comma separated params.
1254
1275
  * @default 'inline'
1255
1276
  */
1256
1277
  pathParamsType?: 'object' | 'inline';
1257
1278
  /**
1258
- * Which parser can be used before returning the data
1259
- * - 'zod' will use `@kubb/plugin-zod` to parse the data.
1279
+ * Which parser can be used before returning the data.
1280
+ * - 'client' returns the data as-is from the client.
1281
+ * - 'zod' uses @kubb/plugin-zod to parse the data.
1260
1282
  * @default 'client'
1261
1283
  */
1262
1284
  parser?: 'client' | 'zod';
1263
1285
  /**
1264
- * Which client should be used to do the HTTP calls
1265
- * - 'axios' will use `@kubb/plugin-client/templates/axios` to fetch data.
1266
- * - 'fetch' will use `@kubb/plugin-client/templates/fetch` to fetch data.
1286
+ * Which client should be used to do the HTTP calls.
1287
+ * - 'axios' uses axios client for HTTP requests.
1288
+ * - 'fetch' uses native fetch API for HTTP requests.
1267
1289
  * @default 'axios'
1268
1290
  */
1269
1291
  client?: 'axios' | 'fetch';
1270
1292
  /**
1271
- * How to generate the client code
1272
- * - 'function' will generate standalone functions for each operation.
1273
- * - 'class' will generate a class with methods for each operation.
1274
- * - 'staticClass' will generate a class with static methods for each operation.
1293
+ * How to generate the client code.
1294
+ * - 'function' generates standalone functions for each operation.
1295
+ * - 'class' generates a class with methods for each operation.
1296
+ * - 'staticClass' generates a class with static methods for each operation.
1275
1297
  * @default 'function'
1276
1298
  */
1277
1299
  clientType?: 'function' | 'class' | 'staticClass';
@@ -1279,7 +1301,7 @@ type Options$1 = {
1279
1301
  * Bundle the selected client into the generated `.kubb` directory.
1280
1302
  * When disabled the generated clients will import the shared runtime from `@kubb/plugin-client/clients/*`.
1281
1303
  * @default false
1282
- * In version 5 of Kubb this will be by default true
1304
+ * In version 5 of Kubb this is by default true
1283
1305
  */
1284
1306
  bundle?: boolean;
1285
1307
  transformers?: {
@@ -1332,10 +1354,10 @@ type Query = {
1332
1354
  */
1333
1355
  methods: Array<HttpMethod>;
1334
1356
  /**
1335
- * Path to the useQuery that will be used to do the useQuery functionality.
1336
- * It will be used as `import { useQuery } from '${importPath}'`.
1337
- * It allows both relative and absolute path.
1338
- * the path will be applied as is, so relative path should be based on the file being generated.
1357
+ * Path to the useQuery hook for useQuery functionality.
1358
+ * Used as `import { useQuery } from '${importPath}'`.
1359
+ * Accepts relative and absolute paths.
1360
+ * Path is used as-is; relative paths are based on the generated file location.
1339
1361
  * @default '@tanstack/svelte-query'
1340
1362
  */
1341
1363
  importPath?: string;
@@ -1347,10 +1369,10 @@ type Mutation = {
1347
1369
  */
1348
1370
  methods: Array<HttpMethod>;
1349
1371
  /**
1350
- * Path to the useQuery that will be used to do the useQuery functionality.
1351
- * It will be used as `import { useQuery } from '${importPath}'`.
1352
- * It allows both relative and absolute path.
1353
- * the path will be applied as is, so relative path should be based on the file being generated.
1372
+ * Path to the useQuery hook for useQuery functionality.
1373
+ * Used as `import { useQuery } from '${importPath}'`.
1374
+ * Accepts relative and absolute paths.
1375
+ * Path is used as-is; relative paths are based on the generated file location.
1354
1376
  * @default '@tanstack/solid-query'
1355
1377
  */
1356
1378
  importPath?: string;
@@ -1363,7 +1385,7 @@ type Options = {
1363
1385
  output?: Output<Oas>;
1364
1386
  /**
1365
1387
  * Define which contentType should be used.
1366
- * By default, the first JSON valid mediaType will be used
1388
+ * By default, the first JSON valid mediaType is used
1367
1389
  */
1368
1390
  contentType?: contentType;
1369
1391
  /**
@@ -1385,35 +1407,35 @@ type Options = {
1385
1407
  override?: Array<Override<ResolvedOptions>>;
1386
1408
  /**
1387
1409
  * How to style your params, by default no casing is applied
1388
- * - 'camelcase' will use camelcase for the params names
1410
+ * - 'camelcase' uses camelcase for the params names
1389
1411
  */
1390
1412
  paramsCasing?: 'camelcase';
1391
1413
  /**
1392
1414
  * How to pass your params
1393
- * - 'object' will return the params and pathParams as an object.
1394
- * - 'inline' will return the params as comma separated params.
1415
+ * - 'object' returns the params and pathParams as an object.
1416
+ * - 'inline' returns the params as comma separated params.
1395
1417
  * @default 'inline'
1396
1418
  */
1397
1419
  paramsType?: 'object' | 'inline';
1398
1420
  /**
1399
1421
  * How to pass your pathParams.
1400
- * - 'object' will return the pathParams as an object.
1401
- * - 'inline' will return the pathParams as comma separated params.
1422
+ * - 'object' returns the pathParams as an object.
1423
+ * - 'inline': returns the pathParams as comma separated params.
1402
1424
  * @default 'inline'
1403
1425
  */
1404
1426
  pathParamsType?: PluginClient['options']['pathParamsType'];
1405
1427
  queryKey?: QueryKey;
1406
1428
  /**
1407
- * Override some useQuery behaviours.
1429
+ * Override some useQuery behaviors.
1408
1430
  */
1409
1431
  query?: Partial<Query> | false;
1410
1432
  /**
1411
1433
  * Which parser should be used before returning the data to `@tanstack/query`.
1412
- * `'zod'` will use `@kubb/plugin-zod` to parse the data.
1434
+ * `'zod'` uses `@kubb/plugin-zod` to parse the data.
1413
1435
  */
1414
1436
  mutationKey?: MutationKey;
1415
1437
  /**
1416
- * Override some useMutation behaviours.
1438
+ * Override some useMutation behaviors.
1417
1439
  */
1418
1440
  mutation?: Partial<Mutation> | false;
1419
1441
  parser?: PluginClient['options']['parser'];
@@ -1444,4 +1466,4 @@ type ResolvedOptions = {
1444
1466
  type PluginSolidQuery = PluginFactoryOptions<'plugin-solid-query', Options, ResolvedOptions, never, ResolvePathOptions>;
1445
1467
  //#endregion
1446
1468
  export { OperationSchemas as a, __name as c, ReactGenerator as i, PluginSolidQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1447
- //# sourceMappingURL=types-DqZ7KJBR.d.cts.map
1469
+ //# sourceMappingURL=types-CHAyktUZ.d.cts.map
@@ -19,16 +19,21 @@ type Operation$1 = Operation;
19
19
  type DiscriminatorObject$1 = DiscriminatorObject;
20
20
  //#endregion
21
21
  //#region ../oas/src/Oas.d.ts
22
- type Options$3 = {
22
+ type OasOptions = {
23
23
  contentType?: contentType;
24
24
  discriminator?: 'strict' | 'inherit';
25
+ /**
26
+ * Resolve name collisions when schemas from different components share the same name (case-insensitive).
27
+ * @default false
28
+ */
29
+ collisionDetection?: boolean;
25
30
  };
26
31
  declare class Oas extends BaseOas {
27
32
  #private;
28
33
  document: Document;
29
34
  constructor(document: Document);
30
- setOptions(options: Options$3): void;
31
- get options(): Options$3;
35
+ setOptions(options: OasOptions): void;
36
+ get options(): OasOptions;
32
37
  get<T = unknown>($ref: string): T | null;
33
38
  getKey($ref: string): string | undefined;
34
39
  set($ref: string, value: unknown): false | undefined;
@@ -37,8 +42,20 @@ declare class Oas extends BaseOas {
37
42
  getResponseSchema(operation: Operation$1, statusCode: string | number): SchemaObject$1;
38
43
  getRequestSchema(operation: Operation$1): SchemaObject$1 | undefined;
39
44
  getParametersSchema(operation: Operation$1, inKey: 'path' | 'query' | 'header'): SchemaObject$1 | null;
40
- valdiate(): Promise<oas_normalize_lib_types0.ValidationResult>;
45
+ validate(): Promise<oas_normalize_lib_types0.ValidationResult>;
41
46
  flattenSchema(schema: SchemaObject$1 | null): SchemaObject$1 | null;
47
+ /**
48
+ * Get schemas from OpenAPI components (schemas, responses, requestBodies).
49
+ * Returns schemas in dependency order along with name mapping for collision resolution.
50
+ */
51
+ getSchemas(options?: {
52
+ contentType?: contentType;
53
+ includes?: Array<'schemas' | 'responses' | 'requestBodies'>;
54
+ collisionDetection?: boolean;
55
+ }): {
56
+ schemas: Record<string, SchemaObject$1>;
57
+ nameMapping: Map<string, string>;
58
+ };
42
59
  }
43
60
  //#endregion
44
61
  //#region ../core/src/BaseGenerator.d.ts
@@ -339,7 +356,7 @@ type Config<TInput = Input> = {
339
356
  input: TInput;
340
357
  output: {
341
358
  /**
342
- * The path where all generated files will be exported.
359
+ * The path where all generated files receives exported.
343
360
  * This can be an absolute path or a path relative to the specified root option.
344
361
  */
345
362
  path: string;
@@ -354,41 +371,39 @@ type Config<TInput = Input> = {
354
371
  write?: boolean;
355
372
  /**
356
373
  * Specifies the formatting tool to be used.
357
- * @default prettier
358
- *
359
- * Possible values:
360
- * - 'auto': Automatically detects and uses biome or prettier (in that order of preference).
361
- * - 'prettier': Uses Prettier for code formatting.
362
- * - 'biome': Uses Biome for code formatting.
363
- *
374
+ * - 'auto' automatically detects and uses biome or prettier (in that order of preference).
375
+ * - 'prettier' uses Prettier for code formatting.
376
+ * - 'biome' uses Biome for code formatting.
377
+ * - 'oxfmt' uses Oxfmt for code formatting.
378
+ * - false disables code formatting.
379
+ * @default 'prettier'
364
380
  */
365
381
  format?: 'auto' | 'prettier' | 'biome' | 'oxfmt' | false;
366
382
  /**
367
383
  * Specifies the linter that should be used to analyze the code.
368
- * The accepted values indicate different linting tools.
369
- *
370
- * Possible values:
371
- * - 'auto': Automatically detects and uses biome, oxlint, or eslint (in that order of preference).
372
- * - 'eslint': Represents the use of ESLint, a widely used JavaScript linter.
373
- * - 'biome': Represents the Biome linter, a modern tool for code scanning.
374
- * - 'oxlint': Represents the Oxlint tool for linting purposes.
375
- *
384
+ * - 'auto' automatically detects and uses biome, oxlint, or eslint (in that order of preference).
385
+ * - 'eslint' uses ESLint for linting.
386
+ * - 'biome' uses Biome for linting.
387
+ * - 'oxlint' uses Oxlint for linting.
388
+ * - false disables linting.
389
+ * @default 'auto'
376
390
  */
377
391
  lint?: 'auto' | 'eslint' | 'biome' | 'oxlint' | false;
378
392
  /**
379
- * Override the extension to the generated imports and exports, by default each plugin will add an extension
393
+ * Overrides the extension for generated imports and exports. By default, each plugin adds an extension.
380
394
  * @default { '.ts': '.ts'}
381
395
  */
382
396
  extension?: Record<KubbFile.Extname, KubbFile.Extname | ''>;
383
397
  /**
384
- * Specify how `index.ts` files should be created. You can also disable the generation of barrel files here. While each plugin has its own `barrelType` option, this setting controls the creation of the root barrel file, such as` src/gen/index.ts`.
398
+ * Configures how `index.ts` files are created, including disabling barrel file generation. Each plugin has its own `barrelType` option; this setting controls the root barrel file (e.g., `src/gen/index.ts`).
385
399
  * @default 'named'
386
400
  */
387
401
  barrelType?: Exclude<BarrelType, 'propagate'> | false;
388
402
  /**
389
- * Add a default banner to the beginning of every generated file. This makes it clear that the file was generated by Kubb.
390
- * - 'simple': will only add banner with link to Kubb
391
- * - 'full': will add source, title, description and the OpenAPI version used
403
+ * Adds a default banner to the start of every generated file indicating it was generated by Kubb.
404
+ * - 'simple' adds banner with link to Kubb.
405
+ * - 'full' adds source, title, description, and OpenAPI version.
406
+ * - false disables banner generation.
392
407
  * @default 'simple'
393
408
  */
394
409
  defaultBanner?: 'simple' | 'full' | false;
@@ -401,17 +416,17 @@ type Config<TInput = Input> = {
401
416
  override?: boolean;
402
417
  };
403
418
  /**
404
- * An array of Kubb plugins that will be used in the generation.
419
+ * An array of Kubb plugins that used in the generation.
405
420
  * Each plugin may include additional configurable options(defined in the plugin itself).
406
- * If a plugin depends on another plugin, an error will be returned if the required dependency is missing. See pre for more details.
421
+ * If a plugin depends on another plugin, an error is returned if the required dependency is missing. See pre for more details.
407
422
  */
408
423
  plugins?: Array<Plugin>;
409
424
  /**
410
- * Hooks that will be called when a specific action is triggered in Kubb.
425
+ * Hooks triggered when a specific action occurs in Kubb.
411
426
  */
412
427
  hooks?: {
413
428
  /**
414
- * Hook that will be triggered at the end of all executions.
429
+ * Hook that triggers at the end of all executions.
415
430
  * Useful for running Prettier or ESLint to format/lint your code.
416
431
  */
417
432
  done?: string | Array<string>;
@@ -440,7 +455,7 @@ TContext = any,
440
455
  TResolvePathOptions extends object = object> = {
441
456
  name: TName;
442
457
  /**
443
- * Same behaviour like what has been done with `QueryKey` in `@tanstack/react-query`
458
+ * Same behavior like what has been done with `QueryKey` in `@tanstack/react-query`
444
459
  */
445
460
  key: PluginKey<TName | string>;
446
461
  options: TOptions;
@@ -461,12 +476,12 @@ type UserPlugin<TOptions extends PluginFactoryOptions = PluginFactoryOptions> =
461
476
  */
462
477
  options: TOptions['resolvedOptions'];
463
478
  /**
464
- * Specifies the preceding plugins for the current plugin. You can pass an array of preceding plugin names, and the current plugin will be executed after these plugins.
479
+ * Specifies the preceding plugins for the current plugin. You can pass an array of preceding plugin names, and the current plugin is executed after these plugins.
465
480
  * Can be used to validate dependent plugins.
466
481
  */
467
482
  pre?: Array<string>;
468
483
  /**
469
- * Specifies the succeeding plugins for the current plugin. You can pass an array of succeeding plugin names, and the current plugin will be executed before these plugins.
484
+ * Specifies the succeeding plugins for the current plugin. You can pass an array of succeeding plugin names, and the current plugin is executed before these plugins.
470
485
  */
471
486
  post?: Array<string>;
472
487
  inject?: (this: PluginContext<TOptions>, context: PluginContext<TOptions>) => TOptions['context'];
@@ -484,12 +499,12 @@ type Plugin<TOptions extends PluginFactoryOptions = PluginFactoryOptions> = {
484
499
  */
485
500
  key: TOptions['key'];
486
501
  /**
487
- * Specifies the preceding plugins for the current plugin. You can pass an array of preceding plugin names, and the current plugin will be executed after these plugins.
502
+ * Specifies the preceding plugins for the current plugin. You can pass an array of preceding plugin names, and the current plugin is executed after these plugins.
488
503
  * Can be used to validate dependent plugins.
489
504
  */
490
505
  pre?: Array<string>;
491
506
  /**
492
- * Specifies the succeeding plugins for the current plugin. You can pass an array of succeeding plugin names, and the current plugin will be executed before these plugins.
507
+ * Specifies the succeeding plugins for the current plugin. You can pass an array of succeeding plugin names, and the current plugin is executed before these plugins.
493
508
  */
494
509
  post?: Array<string>;
495
510
  /**
@@ -539,10 +554,12 @@ type ResolveNameParams = {
539
554
  name: string;
540
555
  pluginKey?: Plugin['key'];
541
556
  /**
542
- * `file` will be used to customize the name of the created file(use of camelCase)
543
- * `function` can be used to customize the exported functions(use of camelCase)
544
- * `type` is a special type for TypeScript(use of PascalCase)
545
- * `const` can be used for variables(use of camelCase)
557
+ * Specifies the type of entity being named.
558
+ * - 'file' customizes the name of the created file (uses camelCase).
559
+ * - 'function' customizes the exported function names (uses camelCase).
560
+ * - 'type' customizes TypeScript types (uses PascalCase).
561
+ * - 'const' customizes variable names (uses camelCase).
562
+ * @default undefined
546
563
  */
547
564
  type?: 'file' | 'function' | 'type' | 'const';
548
565
  };
@@ -597,11 +614,14 @@ type GroupContext = {
597
614
  };
598
615
  type Group = {
599
616
  /**
600
- * Define a type where to group the files on
617
+ * Defines the type where to group the files.
618
+ * - 'tag' groups files by OpenAPI tags.
619
+ * - 'path' groups files by OpenAPI paths.
620
+ * @default undefined
601
621
  */
602
622
  type: 'tag' | 'path';
603
623
  /**
604
- * Return the name of a group based on the group name, this will be used for the file and name generation
624
+ * Return the name of a group based on the group name, this used for the file and name generation
605
625
  */
606
626
  name?: (context: GroupContext) => string;
607
627
  };
@@ -673,7 +693,7 @@ declare class PluginManager {
673
693
  parameters: PluginParameter<H>;
674
694
  }): Array<ReturnType<ParseResult<H>>> | null;
675
695
  /**
676
- * First non-null result stops and will return it's value.
696
+ * Returns the first non-null result.
677
697
  */
678
698
  hookFirst<H extends PluginLifecycleHooks>({
679
699
  hookName,
@@ -685,7 +705,7 @@ declare class PluginManager {
685
705
  skipped?: ReadonlySet<Plugin> | null;
686
706
  }): Promise<SafeParseResult<H>>;
687
707
  /**
688
- * First non-null result stops and will return it's value.
708
+ * Returns the first non-null result.
689
709
  */
690
710
  hookFirstSync<H extends PluginLifecycleHooks>({
691
711
  hookName,
@@ -697,15 +717,15 @@ declare class PluginManager {
697
717
  skipped?: ReadonlySet<Plugin> | null;
698
718
  }): SafeParseResult<H>;
699
719
  /**
700
- * Run all plugins in parallel(order will be based on `this.plugin` and if `pre` or `post` is set).
720
+ * Runs all plugins in parallel based on `this.plugin` order and `pre`/`post` settings.
701
721
  */
702
- hookParallel<H extends PluginLifecycleHooks, TOuput = void>({
722
+ hookParallel<H extends PluginLifecycleHooks, TOutput = void>({
703
723
  hookName,
704
724
  parameters
705
725
  }: {
706
726
  hookName: H;
707
727
  parameters?: Parameters<RequiredPluginLifecycle[H]> | undefined;
708
- }): Promise<Awaited<TOuput>[]>;
728
+ }): Promise<Awaited<TOutput>[]>;
709
729
  /**
710
730
  * Chains plugins
711
731
  */
@@ -974,8 +994,8 @@ type SchemaKeywordMapper = {
974
994
  */
975
995
  path: KubbFile.Path;
976
996
  /**
977
- * When true `File.Import` will be used.
978
- * When false a reference will be used inside the current file.
997
+ * When true `File.Import` is used.
998
+ * When false a reference is used inside the current file.
979
999
  */
980
1000
  isImportable: boolean;
981
1001
  };
@@ -1107,7 +1127,7 @@ type SchemaGeneratorOptions = {
1107
1127
  */
1108
1128
  name?: (name: ResolveNameParams['name'], type?: ResolveNameParams['type']) => string;
1109
1129
  /**
1110
- * Receive schema and name(propertName) and return FakerMeta array
1130
+ * Receive schema and name(propertyName) and return FakerMeta array
1111
1131
  * TODO TODO add docs
1112
1132
  * @beta
1113
1133
  */
@@ -1186,7 +1206,7 @@ type Options$1 = {
1186
1206
  output?: Output<Oas>;
1187
1207
  /**
1188
1208
  * Define which contentType should be used.
1189
- * By default, the first JSON valid mediaType will be used
1209
+ * By default, the first JSON valid mediaType is used
1190
1210
  */
1191
1211
  contentType?: contentType;
1192
1212
  /**
@@ -1211,16 +1231,17 @@ type Options$1 = {
1211
1231
  */
1212
1232
  operations?: boolean;
1213
1233
  /**
1214
- * Export urls that are used by operation x
1215
- * `export` will make them part of your barrel file
1216
- * false will not make them exportable
1234
+ * Export urls that are used by operation x.
1235
+ * - 'export' makes them part of your barrel file.
1236
+ * - false does not make them exportable.
1237
+ * @default false
1217
1238
  * @example getGetPetByIdUrl
1218
1239
  */
1219
1240
  urlType?: 'export' | false;
1220
1241
  /**
1221
- * Path to the client import path that will be used to do the API calls.
1222
- * It will be used as `import client from '${client.importPath}'`.
1223
- * It allows both relative and absolute path but be aware that we will not change the path.
1242
+ * Client import path for API calls.
1243
+ * Used as `import client from '${client.importPath}'`.
1244
+ * Accepts relative and absolute paths; path changes are not performed.
1224
1245
  */
1225
1246
  importPath?: string;
1226
1247
  /**
@@ -1228,49 +1249,50 @@ type Options$1 = {
1228
1249
  */
1229
1250
  baseURL?: string;
1230
1251
  /**
1231
- * ReturnType that will be used when calling the client.
1232
- * - 'data' will return ResponseConfig[data].
1233
- * - 'full' will return ResponseConfig.
1252
+ * ReturnType that is used when calling the client.
1253
+ * - 'data' returns ResponseConfig[data].
1254
+ * - 'full' returns ResponseConfig.
1234
1255
  * @default 'data'
1235
1256
  */
1236
1257
  dataReturnType?: 'data' | 'full';
1237
1258
  /**
1238
1259
  * How to style your params, by default no casing is applied
1239
- * - 'camelcase' will use camelcase for the params names
1260
+ * - 'camelcase' uses camelcase for the params names
1240
1261
  */
1241
1262
  paramsCasing?: 'camelcase';
1242
1263
  /**
1243
- * How to pass your params
1244
- * - 'object' will return the params and pathParams as an object.
1245
- * - 'inline' will return the params as comma separated params.
1264
+ * How to pass your params.
1265
+ * - 'object' returns the params and pathParams as an object.
1266
+ * - 'inline' returns the params as comma separated params.
1246
1267
  * @default 'inline'
1247
1268
  */
1248
1269
  paramsType?: 'object' | 'inline';
1249
1270
  /**
1250
1271
  * How to pass your pathParams.
1251
- * - 'object' will return the pathParams as an object.
1252
- * - 'inline' will return the pathParams as comma separated params.
1272
+ * - 'object' returns the pathParams as an object.
1273
+ * - 'inline' returns the pathParams as comma separated params.
1253
1274
  * @default 'inline'
1254
1275
  */
1255
1276
  pathParamsType?: 'object' | 'inline';
1256
1277
  /**
1257
- * Which parser can be used before returning the data
1258
- * - 'zod' will use `@kubb/plugin-zod` to parse the data.
1278
+ * Which parser can be used before returning the data.
1279
+ * - 'client' returns the data as-is from the client.
1280
+ * - 'zod' uses @kubb/plugin-zod to parse the data.
1259
1281
  * @default 'client'
1260
1282
  */
1261
1283
  parser?: 'client' | 'zod';
1262
1284
  /**
1263
- * Which client should be used to do the HTTP calls
1264
- * - 'axios' will use `@kubb/plugin-client/templates/axios` to fetch data.
1265
- * - 'fetch' will use `@kubb/plugin-client/templates/fetch` to fetch data.
1285
+ * Which client should be used to do the HTTP calls.
1286
+ * - 'axios' uses axios client for HTTP requests.
1287
+ * - 'fetch' uses native fetch API for HTTP requests.
1266
1288
  * @default 'axios'
1267
1289
  */
1268
1290
  client?: 'axios' | 'fetch';
1269
1291
  /**
1270
- * How to generate the client code
1271
- * - 'function' will generate standalone functions for each operation.
1272
- * - 'class' will generate a class with methods for each operation.
1273
- * - 'staticClass' will generate a class with static methods for each operation.
1292
+ * How to generate the client code.
1293
+ * - 'function' generates standalone functions for each operation.
1294
+ * - 'class' generates a class with methods for each operation.
1295
+ * - 'staticClass' generates a class with static methods for each operation.
1274
1296
  * @default 'function'
1275
1297
  */
1276
1298
  clientType?: 'function' | 'class' | 'staticClass';
@@ -1278,7 +1300,7 @@ type Options$1 = {
1278
1300
  * Bundle the selected client into the generated `.kubb` directory.
1279
1301
  * When disabled the generated clients will import the shared runtime from `@kubb/plugin-client/clients/*`.
1280
1302
  * @default false
1281
- * In version 5 of Kubb this will be by default true
1303
+ * In version 5 of Kubb this is by default true
1282
1304
  */
1283
1305
  bundle?: boolean;
1284
1306
  transformers?: {
@@ -1331,10 +1353,10 @@ type Query = {
1331
1353
  */
1332
1354
  methods: Array<HttpMethod>;
1333
1355
  /**
1334
- * Path to the useQuery that will be used to do the useQuery functionality.
1335
- * It will be used as `import { useQuery } from '${importPath}'`.
1336
- * It allows both relative and absolute path.
1337
- * the path will be applied as is, so relative path should be based on the file being generated.
1356
+ * Path to the useQuery hook for useQuery functionality.
1357
+ * Used as `import { useQuery } from '${importPath}'`.
1358
+ * Accepts relative and absolute paths.
1359
+ * Path is used as-is; relative paths are based on the generated file location.
1338
1360
  * @default '@tanstack/svelte-query'
1339
1361
  */
1340
1362
  importPath?: string;
@@ -1346,10 +1368,10 @@ type Mutation = {
1346
1368
  */
1347
1369
  methods: Array<HttpMethod>;
1348
1370
  /**
1349
- * Path to the useQuery that will be used to do the useQuery functionality.
1350
- * It will be used as `import { useQuery } from '${importPath}'`.
1351
- * It allows both relative and absolute path.
1352
- * the path will be applied as is, so relative path should be based on the file being generated.
1371
+ * Path to the useQuery hook for useQuery functionality.
1372
+ * Used as `import { useQuery } from '${importPath}'`.
1373
+ * Accepts relative and absolute paths.
1374
+ * Path is used as-is; relative paths are based on the generated file location.
1353
1375
  * @default '@tanstack/solid-query'
1354
1376
  */
1355
1377
  importPath?: string;
@@ -1362,7 +1384,7 @@ type Options = {
1362
1384
  output?: Output<Oas>;
1363
1385
  /**
1364
1386
  * Define which contentType should be used.
1365
- * By default, the first JSON valid mediaType will be used
1387
+ * By default, the first JSON valid mediaType is used
1366
1388
  */
1367
1389
  contentType?: contentType;
1368
1390
  /**
@@ -1384,35 +1406,35 @@ type Options = {
1384
1406
  override?: Array<Override<ResolvedOptions>>;
1385
1407
  /**
1386
1408
  * How to style your params, by default no casing is applied
1387
- * - 'camelcase' will use camelcase for the params names
1409
+ * - 'camelcase' uses camelcase for the params names
1388
1410
  */
1389
1411
  paramsCasing?: 'camelcase';
1390
1412
  /**
1391
1413
  * How to pass your params
1392
- * - 'object' will return the params and pathParams as an object.
1393
- * - 'inline' will return the params as comma separated params.
1414
+ * - 'object' returns the params and pathParams as an object.
1415
+ * - 'inline' returns the params as comma separated params.
1394
1416
  * @default 'inline'
1395
1417
  */
1396
1418
  paramsType?: 'object' | 'inline';
1397
1419
  /**
1398
1420
  * How to pass your pathParams.
1399
- * - 'object' will return the pathParams as an object.
1400
- * - 'inline' will return the pathParams as comma separated params.
1421
+ * - 'object' returns the pathParams as an object.
1422
+ * - 'inline': returns the pathParams as comma separated params.
1401
1423
  * @default 'inline'
1402
1424
  */
1403
1425
  pathParamsType?: PluginClient['options']['pathParamsType'];
1404
1426
  queryKey?: QueryKey;
1405
1427
  /**
1406
- * Override some useQuery behaviours.
1428
+ * Override some useQuery behaviors.
1407
1429
  */
1408
1430
  query?: Partial<Query> | false;
1409
1431
  /**
1410
1432
  * Which parser should be used before returning the data to `@tanstack/query`.
1411
- * `'zod'` will use `@kubb/plugin-zod` to parse the data.
1433
+ * `'zod'` uses `@kubb/plugin-zod` to parse the data.
1412
1434
  */
1413
1435
  mutationKey?: MutationKey;
1414
1436
  /**
1415
- * Override some useMutation behaviours.
1437
+ * Override some useMutation behaviors.
1416
1438
  */
1417
1439
  mutation?: Partial<Mutation> | false;
1418
1440
  parser?: PluginClient['options']['parser'];
@@ -1443,4 +1465,4 @@ type ResolvedOptions = {
1443
1465
  type PluginSolidQuery = PluginFactoryOptions<'plugin-solid-query', Options, ResolvedOptions, never, ResolvePathOptions>;
1444
1466
  //#endregion
1445
1467
  export { OperationSchemas as a, ReactGenerator as i, PluginSolidQuery as n, UserPluginWithLifeCycle as o, Transformer as r, Operation$1 as s, Options as t };
1446
- //# sourceMappingURL=types-C3QP93nB.d.ts.map
1468
+ //# sourceMappingURL=types-D6QTNiqS.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubb/plugin-solid-query",
3
- "version": "0.0.0-canary-20260122231145",
3
+ "version": "0.0.0-canary-20260127114515",
4
4
  "description": "Solid Query hooks generator plugin for Kubb, creating type-safe API client hooks from OpenAPI specifications for Solid.js applications.",
5
5
  "keywords": [
6
6
  "solid-query",
@@ -70,12 +70,12 @@
70
70
  "dependencies": {
71
71
  "@kubb/react-fabric": "0.12.4",
72
72
  "remeda": "^2.33.4",
73
- "@kubb/core": "0.0.0-canary-20260122231145",
74
- "@kubb/oas": "0.0.0-canary-20260122231145",
75
- "@kubb/plugin-client": "0.0.0-canary-20260122231145",
76
- "@kubb/plugin-oas": "0.0.0-canary-20260122231145",
77
- "@kubb/plugin-ts": "0.0.0-canary-20260122231145",
78
- "@kubb/plugin-zod": "0.0.0-canary-20260122231145"
73
+ "@kubb/core": "0.0.0-canary-20260127114515",
74
+ "@kubb/plugin-client": "0.0.0-canary-20260127114515",
75
+ "@kubb/oas": "0.0.0-canary-20260127114515",
76
+ "@kubb/plugin-oas": "0.0.0-canary-20260127114515",
77
+ "@kubb/plugin-ts": "0.0.0-canary-20260127114515",
78
+ "@kubb/plugin-zod": "0.0.0-canary-20260127114515"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "@kubb/react-fabric": "0.12.4"
package/src/types.ts CHANGED
@@ -30,10 +30,10 @@ type Query = {
30
30
  */
31
31
  methods: Array<HttpMethod>
32
32
  /**
33
- * Path to the useQuery that will be used to do the useQuery functionality.
34
- * It will be used as `import { useQuery } from '${importPath}'`.
35
- * It allows both relative and absolute path.
36
- * the path will be applied as is, so relative path should be based on the file being generated.
33
+ * Path to the useQuery hook for useQuery functionality.
34
+ * Used as `import { useQuery } from '${importPath}'`.
35
+ * Accepts relative and absolute paths.
36
+ * Path is used as-is; relative paths are based on the generated file location.
37
37
  * @default '@tanstack/svelte-query'
38
38
  */
39
39
  importPath?: string
@@ -46,10 +46,10 @@ type Mutation = {
46
46
  */
47
47
  methods: Array<HttpMethod>
48
48
  /**
49
- * Path to the useQuery that will be used to do the useQuery functionality.
50
- * It will be used as `import { useQuery } from '${importPath}'`.
51
- * It allows both relative and absolute path.
52
- * the path will be applied as is, so relative path should be based on the file being generated.
49
+ * Path to the useQuery hook for useQuery functionality.
50
+ * Used as `import { useQuery } from '${importPath}'`.
51
+ * Accepts relative and absolute paths.
52
+ * Path is used as-is; relative paths are based on the generated file location.
53
53
  * @default '@tanstack/solid-query'
54
54
  */
55
55
  importPath?: string
@@ -63,7 +63,7 @@ export type Options = {
63
63
  output?: Output<Oas>
64
64
  /**
65
65
  * Define which contentType should be used.
66
- * By default, the first JSON valid mediaType will be used
66
+ * By default, the first JSON valid mediaType is used
67
67
  */
68
68
  contentType?: contentType
69
69
  /**
@@ -85,35 +85,35 @@ export type Options = {
85
85
  override?: Array<Override<ResolvedOptions>>
86
86
  /**
87
87
  * How to style your params, by default no casing is applied
88
- * - 'camelcase' will use camelcase for the params names
88
+ * - 'camelcase' uses camelcase for the params names
89
89
  */
90
90
  paramsCasing?: 'camelcase'
91
91
  /**
92
92
  * How to pass your params
93
- * - 'object' will return the params and pathParams as an object.
94
- * - 'inline' will return the params as comma separated params.
93
+ * - 'object' returns the params and pathParams as an object.
94
+ * - 'inline' returns the params as comma separated params.
95
95
  * @default 'inline'
96
96
  */
97
97
  paramsType?: 'object' | 'inline'
98
98
  /**
99
99
  * How to pass your pathParams.
100
- * - 'object' will return the pathParams as an object.
101
- * - 'inline' will return the pathParams as comma separated params.
100
+ * - 'object' returns the pathParams as an object.
101
+ * - 'inline': returns the pathParams as comma separated params.
102
102
  * @default 'inline'
103
103
  */
104
104
  pathParamsType?: PluginClient['options']['pathParamsType']
105
105
  queryKey?: QueryKey
106
106
  /**
107
- * Override some useQuery behaviours.
107
+ * Override some useQuery behaviors.
108
108
  */
109
109
  query?: Partial<Query> | false
110
110
  /**
111
111
  * Which parser should be used before returning the data to `@tanstack/query`.
112
- * `'zod'` will use `@kubb/plugin-zod` to parse the data.
112
+ * `'zod'` uses `@kubb/plugin-zod` to parse the data.
113
113
  */
114
114
  mutationKey?: MutationKey
115
115
  /**
116
- * Override some useMutation behaviours.
116
+ * Override some useMutation behaviors.
117
117
  */
118
118
  mutation?: Partial<Mutation> | false
119
119
  parser?: PluginClient['options']['parser']