@hey-api/openapi-ts 0.96.1 → 0.97.0

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 { n as UserConfig, t as Config } from "./types-DAEl4_a4.mjs";
1
+ import { n as UserConfig, t as Config } from "./types-KzipN7UT.mjs";
2
2
  import { Logger } from "@hey-api/codegen-core";
3
3
  import { ConfigError, getSpec, parseOpenApiSpec } from "@hey-api/shared";
4
4
 
package/dist/internal.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { t as resolveJobs } from "./init-D4xuNKgu.mjs";
1
+ import { t as resolveJobs } from "./init-EigcXVTH.mjs";
2
2
  import { getSpec, parseOpenApiSpec } from "@hey-api/shared";
3
3
  export { getSpec, resolveJobs as initConfigs, parseOpenApiSpec };
package/dist/run.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
- import { c as createClient } from "./src-DlsTSwMY.mjs";
2
+ import { c as createClient } from "./src-ErSC87Z1.mjs";
3
3
  import { isEnvironment } from "@hey-api/shared";
4
4
  import { Command, CommanderError } from "commander";
5
5
  //#region package.json
6
- var version = "0.96.1";
6
+ var version = "0.97.0";
7
7
  var bin = { "openapi-ts": "./bin/run.js" };
8
8
  //#endregion
9
9
  //#region src/cli/adapter.ts
@@ -1,4 +1,4 @@
1
- import { _ as postProcessors, c as TypeScriptRenderer, g as getTypedConfig, h as getClientPlugin, i as generateClientBundle, t as resolveJobs } from "./init-D4xuNKgu.mjs";
1
+ import { _ as postProcessors, c as TypeScriptRenderer, g as getTypedConfig, h as getClientPlugin, i as generateClientBundle, t as resolveJobs } from "./init-EigcXVTH.mjs";
2
2
  import { Logger, Logger as Logger$1, Project } from "@hey-api/codegen-core";
3
3
  import { ConfigValidationError, Context, InputError, IntentContext, JobError, OperationPath as OperationPath$1, OperationStrategy as OperationStrategy$1, applyNaming, buildGraph, checkNodeVersion, compileInputPath, defaultPaginationKeywords, definePluginConfig as definePluginConfig$1, getInputError, getLogs, getSpec, logCrashReport, logInputPaths, openGitHubIssueWithCrashReport, parseOpenApiSpec, patchOpenApiSpec, postprocessOutput, printCliIntro, printCrashReport, shouldReportCrash, utils } from "@hey-api/shared";
4
4
  import colors from "ansi-colors";
@@ -7,6 +7,8 @@ import path from "node:path";
7
7
  import { fileURLToPath } from "node:url";
8
8
  import fs from "node:fs";
9
9
  import { $RefParser, ResolverError } from "@hey-api/json-schema-ref-parser";
10
+ import { format } from "@lukeed/ms";
11
+ import fsPromises from "node:fs/promises";
10
12
  //#region src/generate/output.ts
11
13
  async function generateOutput(context) {
12
14
  const outputPath = path.resolve(context.config.output.path);
@@ -29,27 +31,33 @@ async function generateOutput(context) {
29
31
  context.gen.plan();
30
32
  const ctx = new IntentContext(context.spec);
31
33
  for (const intent of context.intents) await intent.run(ctx);
34
+ let fileCount = 0;
35
+ const writes = [];
32
36
  for (const file of context.gen.render()) {
33
37
  const filePath = path.resolve(outputPath, file.path);
34
38
  const dir = path.dirname(filePath);
35
- if (!context.config.dryRun) {
36
- fs.mkdirSync(dir, { recursive: true });
37
- fs.writeFileSync(filePath, file.content, { encoding: "utf8" });
38
- }
39
+ if (!context.config.dryRun) writes.push(fsPromises.mkdir(dir, { recursive: true }).then(() => fsPromises.writeFile(filePath, file.content, { encoding: "utf8" })));
40
+ fileCount++;
39
41
  }
42
+ await Promise.all(writes);
40
43
  const { source } = context.config.output;
41
44
  if (source.enabled) {
42
45
  const sourcePath = source.path === null ? void 0 : path.resolve(outputPath, source.path);
43
- if (!context.config.dryRun && sourcePath && sourcePath !== outputPath) fs.mkdirSync(sourcePath, { recursive: true });
46
+ if (!context.config.dryRun && sourcePath && sourcePath !== outputPath) await fsPromises.mkdir(sourcePath, { recursive: true });
44
47
  const serialized = await source.serialize(context.spec);
45
- if (!context.config.dryRun && sourcePath) fs.writeFileSync(path.resolve(sourcePath, `${source.fileName}.${source.extension}`), serialized, { encoding: "utf8" });
48
+ if (!context.config.dryRun && sourcePath) {
49
+ await fsPromises.writeFile(path.resolve(sourcePath, `${source.fileName}.${source.extension}`), serialized, { encoding: "utf8" });
50
+ fileCount++;
51
+ }
46
52
  if (source.callback) await source.callback(serialized);
47
53
  }
54
+ return { fileCount };
48
55
  }
49
56
  //#endregion
50
57
  //#region src/createClient.ts
51
58
  async function createClient$1({ config, dependencies, jobIndex, logger, watches: _watches }) {
52
59
  const watches = _watches || Array.from({ length: config.input.length }, () => ({ headers: new Headers() }));
60
+ const jobStart = Date.now();
53
61
  const inputPaths = config.input.map((input) => compileInputPath(input));
54
62
  if (config.logs.level !== "silent" && !_watches) logInputPaths(inputPaths, jobIndex);
55
63
  const getSpecData = async (input, index) => {
@@ -141,15 +149,16 @@ async function createClient$1({ config, dependencies, jobIndex, logger, watches:
141
149
  context.graph = buildGraph(context.ir, logger).graph;
142
150
  eventParser.timeEnd();
143
151
  const eventGenerator = logger.timeEvent("generator");
144
- await generateOutput(context);
152
+ const { fileCount } = await generateOutput(context);
145
153
  eventGenerator.timeEnd();
154
+ const totalMs = Date.now() - jobStart;
146
155
  const eventPostprocess = logger.timeEvent("postprocess");
147
156
  if (!config.dryRun) {
148
157
  const jobPrefix = colors.gray(`[Job ${jobIndex + 1}] `);
149
158
  postprocessOutput(config.output, postProcessors, jobPrefix);
150
159
  if (config.logs.level !== "silent") {
151
160
  const outputPath = process.env.INIT_CWD ? `./${path.relative(process.env.INIT_CWD, config.output.path)}` : config.output.path;
152
- console.log(`${jobPrefix}${colors.green("✅ Done!")} Your output is in ${colors.cyanBright(outputPath)}`);
161
+ console.log(`${jobPrefix}${colors.green("✅ Done!")} Your output is in ${colors.cyanBright(outputPath)} ${colors.gray(`(${fileCount} ${fileCount === 1 ? "file" : "files"} in ${format(totalMs)})`)}`);
153
162
  }
154
163
  }
155
164
  eventPostprocess.timeEnd();
@@ -245,4 +254,4 @@ async function defineConfig(config) {
245
254
  //#endregion
246
255
  export { defineConfig as a, createClient as c, defaultPaginationKeywords as i, OperationPath$1 as n, definePluginConfig$1 as o, OperationStrategy$1 as r, utils as s, Logger$1 as t };
247
256
 
248
- //# sourceMappingURL=src-DlsTSwMY.mjs.map
257
+ //# sourceMappingURL=src-ErSC87Z1.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"src-ErSC87Z1.mjs","names":["createClient","ms","pCreateClient"],"sources":["../src/generate/output.ts","../src/createClient.ts","../src/generate.ts","../src/index.ts"],"sourcesContent":["import fs from 'node:fs';\nimport fsPromises from 'node:fs/promises';\nimport path from 'node:path';\n\nimport type { Context } from '@hey-api/shared';\nimport { IntentContext } from '@hey-api/shared';\n\nimport { getTypedConfig } from '../config/utils';\nimport { getClientPlugin } from '../plugins/@hey-api/client-core/utils';\nimport { generateClientBundle } from './client';\n\nexport async function generateOutput(context: Context): Promise<{ fileCount: number }> {\n const outputPath = path.resolve(context.config.output.path);\n\n if (context.config.output.clean) {\n if (fs.existsSync(outputPath)) {\n fs.rmSync(outputPath, { force: true, recursive: true });\n }\n }\n\n const config = getTypedConfig(context);\n\n const client = getClientPlugin(config);\n if ('bundle' in client.config && client.config.bundle && !config.dryRun) {\n // not proud of this one\n // @ts-expect-error\n config._FRAGILE_CLIENT_BUNDLE_RENAMED = generateClientBundle({\n header: config.output.header,\n module: config.output.module,\n outputPath,\n // @ts-expect-error\n plugin: client,\n project: context.gen,\n });\n }\n\n for (const plugin of context.registerPlugins()) {\n await plugin.run();\n }\n\n context.gen.plan();\n\n const ctx = new IntentContext(context.spec);\n for (const intent of context.intents) {\n await intent.run(ctx);\n }\n\n let fileCount = 0;\n const writes: Promise<void>[] = [];\n for (const file of context.gen.render()) {\n const filePath = path.resolve(outputPath, file.path);\n const dir = path.dirname(filePath);\n if (!context.config.dryRun) {\n writes.push(\n fsPromises\n .mkdir(dir, { recursive: true })\n .then(() => fsPromises.writeFile(filePath, file.content, { encoding: 'utf8' })),\n );\n }\n fileCount++;\n }\n await Promise.all(writes);\n\n const { source } = context.config.output;\n if (source.enabled) {\n const sourcePath = source.path === null ? undefined : path.resolve(outputPath, source.path);\n if (!context.config.dryRun && sourcePath && sourcePath !== outputPath) {\n await fsPromises.mkdir(sourcePath, { recursive: true });\n }\n const serialized = await source.serialize(context.spec);\n // TODO: handle yaml (convert before writing)\n if (!context.config.dryRun && sourcePath) {\n await fsPromises.writeFile(\n path.resolve(sourcePath, `${source.fileName}.${source.extension}`),\n serialized,\n { encoding: 'utf8' },\n );\n fileCount++;\n }\n if (source.callback) {\n await source.callback(serialized);\n }\n }\n\n return { fileCount };\n}\n","import path from 'node:path';\n\nimport { type Logger, Project } from '@hey-api/codegen-core';\nimport { $RefParser, ResolverError } from '@hey-api/json-schema-ref-parser';\nimport type { Input, OpenApi, WatchValues } from '@hey-api/shared';\nimport {\n applyNaming,\n buildGraph,\n compileInputPath,\n Context,\n getSpec,\n InputError,\n logInputPaths,\n parseOpenApiSpec,\n patchOpenApiSpec,\n postprocessOutput,\n} from '@hey-api/shared';\nimport { format as ms } from '@lukeed/ms';\nimport colors from 'ansi-colors';\n\nimport { postProcessors } from './config/output/postprocess';\nimport type { Config } from './config/types';\nimport { generateOutput } from './generate/output';\nimport { TypeScriptRenderer } from './ts-dsl';\n\nexport async function createClient({\n config,\n dependencies,\n jobIndex,\n logger,\n watches: _watches,\n}: {\n config: Config;\n dependencies: Record<string, string>;\n jobIndex: number;\n logger: Logger;\n /**\n * Always undefined on the first run, defined on subsequent runs.\n */\n watches?: ReadonlyArray<WatchValues>;\n}): Promise<Context | undefined> {\n const watches: ReadonlyArray<WatchValues> =\n _watches ||\n Array.from({ length: config.input.length }, () => ({\n headers: new Headers(),\n }));\n\n const jobStart = Date.now();\n const inputPaths = config.input.map((input) => compileInputPath(input));\n\n // on first run, print the message as soon as possible\n if (config.logs.level !== 'silent' && !_watches) {\n logInputPaths(inputPaths, jobIndex);\n }\n\n const getSpecData = async (input: Input, index: number) => {\n const eventSpec = logger.timeEvent('spec');\n const { arrayBuffer, error, resolvedInput, response } = await getSpec({\n fetchOptions: input.fetch,\n inputPath: inputPaths[index]!.path,\n timeout: input.watch.timeout,\n watch: watches[index]!,\n });\n eventSpec.timeEnd();\n\n // throw on first run if there's an error to preserve user experience\n // if in watch mode, subsequent errors won't throw to gracefully handle\n // cases where server might be reloading\n if (error && !_watches) {\n const text = await response.text().catch(() => '');\n const message = `Request failed with status ${response.status}: ${text || response.statusText}`;\n // Handle 4xx client errors as input errors (bad URL, bad API key, etc.)\n if (response.status >= 400 && response.status < 500) {\n const statusText = response.statusText || 'Unknown';\n const originalError = new Error(message) as Error & { source?: string };\n originalError.source = String(inputPaths[index]!.path);\n throw new InputError(\n `Input request failed: ${response.status} ${statusText}`,\n originalError,\n );\n }\n // For 5xx server errors, keep the generic error (could be a bug)\n throw new Error(message);\n }\n\n return { arrayBuffer, resolvedInput };\n };\n const specData = (\n await Promise.all(config.input.map((input, index) => getSpecData(input, index)))\n ).filter((data) => data.arrayBuffer || data.resolvedInput);\n\n let context: Context | undefined;\n\n if (specData.length) {\n const refParser = new $RefParser();\n let data: unknown;\n try {\n data =\n specData.length > 1\n ? await refParser.bundleMany({\n arrayBuffer: specData.map((data) => data.arrayBuffer!),\n pathOrUrlOrSchemas: [],\n resolvedInputs: specData.map((data) => data.resolvedInput!),\n })\n : await refParser.bundle({\n arrayBuffer: specData[0]!.arrayBuffer,\n pathOrUrlOrSchema: undefined,\n resolvedInput: specData[0]!.resolvedInput!,\n });\n } catch (err) {\n if (err instanceof ResolverError && err.ioErrorCode === 'ENOENT') {\n throw new InputError('Input file not found', err);\n }\n throw err;\n }\n\n // on subsequent runs in watch mode, print the message only if we know we're\n // generating the output\n if (config.logs.level !== 'silent' && _watches) {\n console.clear();\n logInputPaths(inputPaths, jobIndex);\n }\n\n const eventInputPatch = logger.timeEvent('input.patch');\n await patchOpenApiSpec({ patchOptions: config.parser.patch, spec: data });\n eventInputPatch.timeEnd();\n\n const eventParser = logger.timeEvent('parser');\n const header = config.output.header;\n // TODO: allow overriding via config\n const project = new Project({\n defaultFileName: 'index',\n fileName: (base) => {\n const name = applyNaming(base, config.output.fileName);\n const { suffix } = config.output.fileName;\n if (!suffix) {\n return name;\n }\n return name === 'index' || name.endsWith(suffix) ? name : `${name}${suffix}`;\n },\n nameConflictResolvers: config.output.nameConflictResolver\n ? {\n typescript: config.output.nameConflictResolver,\n }\n : undefined,\n renderers: [\n new TypeScriptRenderer({\n header: (ctx) => {\n const defaultValue = ['// This file is auto-generated by @hey-api/openapi-ts'];\n const result = typeof header === 'function' ? header({ ...ctx, defaultValue }) : header;\n return result === undefined ? defaultValue : result;\n },\n module: config.output.module,\n preferExportAll: config.output.preferExportAll,\n }),\n ],\n root: config.output.path,\n });\n context = new Context<OpenApi.V2_0_X | OpenApi.V3_0_X | OpenApi.V3_1_X, Config>({\n config,\n dependencies,\n logger,\n project,\n spec: data as OpenApi.V2_0_X | OpenApi.V3_0_X | OpenApi.V3_1_X,\n });\n parseOpenApiSpec(context);\n context.graph = buildGraph(context.ir, logger).graph;\n eventParser.timeEnd();\n\n const eventGenerator = logger.timeEvent('generator');\n const { fileCount } = await generateOutput(context);\n eventGenerator.timeEnd();\n\n const totalMs = Date.now() - jobStart;\n\n const eventPostprocess = logger.timeEvent('postprocess');\n if (!config.dryRun) {\n const jobPrefix = colors.gray(`[Job ${jobIndex + 1}] `);\n postprocessOutput(config.output, postProcessors, jobPrefix);\n\n if (config.logs.level !== 'silent') {\n const outputPath = process.env.INIT_CWD\n ? `./${path.relative(process.env.INIT_CWD, config.output.path)}`\n : config.output.path;\n console.log(\n `${jobPrefix}${colors.green('✅ Done!')} Your output is in ${colors.cyanBright(outputPath)} ${colors.gray(`(${fileCount} ${fileCount === 1 ? 'file' : 'files'} in ${ms(totalMs)})`)}`,\n );\n }\n }\n eventPostprocess.timeEnd();\n }\n\n const watchedInput = config.input.find(\n (input, index) => input.watch.enabled && typeof inputPaths[index]!.path === 'string',\n );\n\n if (watchedInput) {\n setTimeout(() => {\n createClient({\n config,\n dependencies,\n jobIndex,\n logger,\n watches,\n });\n }, watchedInput.watch.interval);\n }\n\n return context;\n}\n","import path from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\nimport { Logger } from '@hey-api/codegen-core';\nimport type { Context } from '@hey-api/shared';\nimport {\n checkNodeVersion,\n ConfigValidationError,\n getInputError,\n getLogs,\n JobError,\n logCrashReport,\n openGitHubIssueWithCrashReport,\n printCliIntro,\n printCrashReport,\n shouldReportCrash,\n} from '@hey-api/shared';\nimport type { LazyOrAsync, MaybeArray } from '@hey-api/types';\n\nimport type { Configs } from './config/init';\nimport { resolveJobs } from './config/init';\nimport type { UserConfig } from './config/types';\nimport { createClient as pCreateClient } from './createClient';\n\nconst __filename = fileURLToPath(import.meta.url);\nconst __dirname = path.dirname(__filename);\n\n/**\n * Generate a client from the provided configuration.\n *\n * @param userConfig User provided {@link UserConfig} configuration(s).\n */\nexport async function createClient(\n userConfig?: LazyOrAsync<MaybeArray<UserConfig>>,\n logger = new Logger(),\n): Promise<ReadonlyArray<Context>> {\n const resolvedConfig = typeof userConfig === 'function' ? await userConfig() : userConfig;\n const userConfigs = resolvedConfig\n ? resolvedConfig instanceof Array\n ? resolvedConfig\n : [resolvedConfig]\n : [];\n\n let rawLogs = userConfigs.find((config) => getLogs(config.logs).level !== 'silent')?.logs;\n if (typeof rawLogs === 'string') {\n rawLogs = getLogs(rawLogs);\n }\n\n let jobs: Configs['jobs'] = [];\n\n try {\n checkNodeVersion();\n\n const eventCreateClient = logger.timeEvent('createClient');\n\n const eventConfig = logger.timeEvent('config');\n const resolved = await resolveJobs({ logger, userConfigs });\n const dependencies = resolved.dependencies;\n jobs = resolved.jobs;\n const printIntro = jobs.some((job) => job.config.logs.level !== 'silent');\n if (printIntro) printCliIntro(__dirname);\n eventConfig.timeEnd();\n\n const configErrors = jobs.flatMap((job) =>\n job.errors.map((error) => ({ error, jobIndex: job.index })),\n );\n if (configErrors.length) {\n throw new ConfigValidationError(configErrors);\n }\n\n const outputs = await Promise.all(\n jobs.map(async (job) => {\n try {\n return await pCreateClient({\n config: job.config,\n dependencies,\n jobIndex: job.index,\n logger,\n });\n } catch (error) {\n if (error instanceof Error) {\n throw new JobError('', {\n error,\n jobIndex: job.index,\n });\n }\n }\n }),\n );\n const contexts = outputs.filter((ctx): ctx is Context => ctx !== undefined);\n\n eventCreateClient.timeEnd();\n\n logger.report(jobs.some((job) => job.config.logs.level === 'debug'));\n\n return contexts;\n } catch (error) {\n const logs =\n jobs.find((job) => job.config.logs.level !== 'silent')?.config.logs ??\n jobs[0]?.config.logs ??\n rawLogs;\n const dryRun =\n jobs.some((job) => job.config.dryRun) ?? userConfigs.some((config) => config.dryRun) ?? false;\n\n const inputError = getInputError(error);\n const normalizedError = inputError ?? error;\n\n const logPath =\n logs?.file && !dryRun ? logCrashReport(normalizedError, logs.path ?? '') : undefined;\n if (!logs || logs.level !== 'silent') {\n printCrashReport({ error, logPath });\n const isInteractive =\n jobs.some((job) => job.config.interactive) ??\n userConfigs.some((config) => config.interactive) ??\n false;\n if (await shouldReportCrash({ error: normalizedError, isInteractive })) {\n await openGitHubIssueWithCrashReport(error, __dirname);\n }\n }\n\n if (inputError) return [];\n\n throw error;\n }\n}\n","/* eslint-disable @typescript-eslint/no-namespace */\n// OVERRIDES\n// hard-coded here because build process doesn't pick up overrides from separate files\nimport '@hey-api/codegen-core';\nimport '@hey-api/shared';\n\ndeclare module '@hey-api/codegen-core' {\n interface ProjectRenderMeta {\n /**\n * If specified, this will be the file extension used when importing\n * other modules. By default, we don't add a file extension and let the\n * runtime resolve it.\n *\n * @default null\n */\n importFileExtension?: AnyString | null;\n }\n\n interface SymbolMeta {\n category?:\n | 'client'\n | 'external'\n | 'hook'\n | 'schema'\n | 'sdk'\n | 'transform'\n | 'type'\n | 'utility'\n | AnyString;\n /**\n * Path to the resource this symbol represents.\n */\n path?: ReadonlyArray<string | number>;\n /**\n * Name of the plugin that registered this symbol.\n */\n pluginName?: string;\n resource?: 'client' | 'definition' | 'operation' | 'webhook' | AnyString;\n resourceId?: string;\n role?: 'data' | 'error' | 'errors' | 'options' | 'response' | 'responses' | AnyString;\n /**\n * Tags associated with this symbol.\n */\n tags?: ReadonlyArray<string>;\n tool?:\n | 'angular'\n | 'arktype'\n | 'fastify'\n | 'json-schema'\n | 'sdk'\n | 'typescript'\n | 'valibot'\n | 'zod'\n | AnyString;\n variant?: 'container' | AnyString;\n }\n}\n\ndeclare module '@hey-api/shared' {\n interface PluginConfigMap {\n '@angular/common': Plugins.AngularCommon.Types['Types'];\n '@faker-js/faker': Plugins.FakerJsFaker.Types['Types'];\n '@hey-api/client-angular': Plugins.HeyApiClientAngular.Types['Types'];\n '@hey-api/client-axios': Plugins.HeyApiClientAxios.Types['Types'];\n '@hey-api/client-fetch': Plugins.HeyApiClientFetch.Types['Types'];\n '@hey-api/client-ky': Plugins.HeyApiClientKy.Types['Types'];\n '@hey-api/client-next': Plugins.HeyApiClientNext.Types['Types'];\n '@hey-api/client-nuxt': Plugins.HeyApiClientNuxt.Types['Types'];\n '@hey-api/client-ofetch': Plugins.HeyApiClientOfetch.Types['Types'];\n '@hey-api/schemas': Plugins.HeyApiSchemas.Types['Types'];\n '@hey-api/sdk': Plugins.HeyApiSdk.Types['Types'];\n '@hey-api/transformers': Plugins.HeyApiTransformers.Types['Types'];\n '@hey-api/typescript': Plugins.HeyApiTypeScript.Types['Types'];\n '@pinia/colada': Plugins.PiniaColada.Types['Types'];\n '@tanstack/angular-query-experimental': Plugins.TanStackAngularQuery.Types['Types'];\n '@tanstack/preact-query': Plugins.TanStackPreactQuery.Types['Types'];\n '@tanstack/react-query': Plugins.TanStackReactQuery.Types['Types'];\n '@tanstack/solid-query': Plugins.TanStackSolidQuery.Types['Types'];\n '@tanstack/svelte-query': Plugins.TanStackSvelteQuery.Types['Types'];\n '@tanstack/vue-query': Plugins.TanStackVueQuery.Types['Types'];\n arktype: Plugins.Arktype.Types['Types'];\n fastify: Plugins.Fastify.Types['Types'];\n nestjs: Plugins.NestJs.Types['Types'];\n orpc: Plugins.Orpc.Types['Types'];\n swr: Plugins.Swr.Types['Types'];\n valibot: Plugins.Valibot.Types['Types'];\n zod: Plugins.Zod.Types['Types'];\n }\n\n interface PluginInstanceTypes {\n Node: TsDsl;\n }\n}\n// END OVERRIDES\n\nimport type { AnyString, LazyOrAsync, MaybeArray } from '@hey-api/types';\nimport colors from 'ansi-colors';\n// @ts-expect-error\nimport colorSupport from 'color-support';\n\nimport type { UserConfig } from './config/types';\nimport type { AngularCommonPlugin } from './plugins/@angular/common';\nimport type { FakerJsFakerPlugin, FakerJsFakerResolvers } from './plugins/@faker-js/faker';\nimport type {\n AngularClient as AngularClientImp,\n HeyApiClientAngularPlugin,\n} from './plugins/@hey-api/client-angular';\nimport type {\n AxiosClient as AxiosClientImp,\n HeyApiClientAxiosPlugin,\n} from './plugins/@hey-api/client-axios';\nimport type {\n FetchClient as FetchClientImp,\n HeyApiClientFetchPlugin,\n} from './plugins/@hey-api/client-fetch';\nimport type { HeyApiClientKyPlugin, KyClient as KyClientImp } from './plugins/@hey-api/client-ky';\nimport type {\n HeyApiClientNextPlugin,\n NextClient as NextClientImp,\n} from './plugins/@hey-api/client-next';\nimport type {\n HeyApiClientNuxtPlugin,\n NuxtClient as NuxtClientImp,\n} from './plugins/@hey-api/client-nuxt';\nimport type {\n HeyApiClientOfetchPlugin,\n OfetchClient as OfetchClientImp,\n} from './plugins/@hey-api/client-ofetch';\nimport type { HeyApiSchemasPlugin } from './plugins/@hey-api/schemas';\nimport type { HeyApiSdkPlugin } from './plugins/@hey-api/sdk';\nimport type { HeyApiTransformersPlugin } from './plugins/@hey-api/transformers';\nimport type {\n HeyApiTypeScriptPlugin,\n HeyApiTypeScriptResolvers,\n} from './plugins/@hey-api/typescript';\nimport type { PiniaColadaPlugin } from './plugins/@pinia/colada';\nimport type { TanStackAngularQueryPlugin } from './plugins/@tanstack/angular-query-experimental';\nimport type { TanStackPreactQueryPlugin } from './plugins/@tanstack/preact-query';\nimport type { TanStackReactQueryPlugin } from './plugins/@tanstack/react-query';\nimport type { TanStackSolidQueryPlugin } from './plugins/@tanstack/solid-query';\nimport type { TanStackSvelteQueryPlugin } from './plugins/@tanstack/svelte-query';\nimport type { TanStackVueQueryPlugin } from './plugins/@tanstack/vue-query';\nimport type { ArktypePlugin } from './plugins/arktype';\nimport type { FastifyPlugin } from './plugins/fastify';\nimport type { NestJsPlugin } from './plugins/nestjs';\nimport type { OrpcPlugin } from './plugins/orpc';\nimport type { SwrPlugin } from './plugins/swr';\nimport type { ValibotPlugin, ValibotResolvers } from './plugins/valibot';\nimport type { ZodPlugin, ZodResolvers } from './plugins/zod';\nimport type { TsDsl } from './ts-dsl';\n\ncolors.enabled = colorSupport().hasBasic;\n\nexport { createClient } from './generate';\n\n/**\n * Type helper for configuration object, returns {@link MaybeArray<UserConfig>} object(s)\n */\nexport function defineConfig(\n config: LazyOrAsync<ReadonlyArray<UserConfig>>,\n): Promise<ReadonlyArray<UserConfig>>;\nexport function defineConfig(config: LazyOrAsync<UserConfig>): Promise<UserConfig>;\nexport async function defineConfig<T extends MaybeArray<UserConfig>>(\n config: LazyOrAsync<T>,\n): Promise<T> {\n return typeof config === 'function' ? await config() : config;\n}\n\nexport { defaultPlugins } from './config/plugins';\nexport type { UserConfig } from './config/types';\nexport { clientDefaultConfig, clientDefaultMeta } from './plugins/@hey-api/client-core/config';\nexport { clientPluginHandler } from './plugins/@hey-api/client-core/plugin';\nexport type { Client } from './plugins/@hey-api/client-core/types';\nexport type { ExpressionTransformer, TypeTransformer } from './plugins/@hey-api/transformers/types';\nexport * from './ts-dsl';\nexport { Logger } from '@hey-api/codegen-core';\nexport type {\n DefinePlugin,\n IR,\n OpenApi,\n OpenApiMetaObject,\n OpenApiOperationObject,\n OpenApiParameterObject,\n OpenApiRequestBodyObject,\n OpenApiResponseObject,\n OpenApiSchemaObject,\n Plugin,\n} from '@hey-api/shared';\nexport {\n defaultPaginationKeywords,\n definePluginConfig,\n OperationPath,\n OperationStrategy,\n utils,\n} from '@hey-api/shared';\n\nexport namespace Plugins {\n export namespace AngularCommon {\n export type Types = AngularCommonPlugin;\n }\n\n export namespace Arktype {\n export type Types = ArktypePlugin;\n }\n\n export namespace FakerJsFaker {\n export type Types = FakerJsFakerPlugin;\n export type Resolvers = Required<FakerJsFakerResolvers>['~resolvers'];\n }\n\n export namespace Fastify {\n export type Types = FastifyPlugin;\n }\n\n export namespace HeyApiClientAngular {\n export type Client = AngularClientImp;\n export type Types = HeyApiClientAngularPlugin;\n }\n\n export namespace HeyApiClientAxios {\n export type Client = AxiosClientImp;\n export type Types = HeyApiClientAxiosPlugin;\n }\n\n export namespace HeyApiClientFetch {\n export type Client = FetchClientImp;\n export type Types = HeyApiClientFetchPlugin;\n }\n\n export namespace HeyApiClientKy {\n export type Client = KyClientImp;\n export type Types = HeyApiClientKyPlugin;\n }\n\n export namespace HeyApiClientNext {\n export type Client = NextClientImp;\n export type Types = HeyApiClientNextPlugin;\n }\n\n export namespace HeyApiClientNuxt {\n export type Client = NuxtClientImp;\n export type Types = HeyApiClientNuxtPlugin;\n }\n\n export namespace HeyApiClientOfetch {\n export type Client = OfetchClientImp;\n export type Types = HeyApiClientOfetchPlugin;\n }\n\n export namespace HeyApiSchemas {\n export type Types = HeyApiSchemasPlugin;\n }\n\n export namespace HeyApiSdk {\n export type Types = HeyApiSdkPlugin;\n }\n\n export namespace HeyApiTransformers {\n export type Types = HeyApiTransformersPlugin;\n }\n\n export namespace HeyApiTypeScript {\n export type Resolvers = Required<HeyApiTypeScriptResolvers>['~resolvers'];\n export type Types = HeyApiTypeScriptPlugin;\n }\n\n export namespace NestJs {\n export type Types = NestJsPlugin;\n }\n\n export namespace Orpc {\n export type Types = OrpcPlugin;\n }\n\n export namespace PiniaColada {\n export type Types = PiniaColadaPlugin;\n }\n\n export namespace Swr {\n export type Types = SwrPlugin;\n }\n\n export namespace TanStackAngularQuery {\n export type Types = TanStackAngularQueryPlugin;\n }\n\n export namespace TanStackPreactQuery {\n export type Types = TanStackPreactQueryPlugin;\n }\n\n export namespace TanStackReactQuery {\n export type Types = TanStackReactQueryPlugin;\n }\n\n export namespace TanStackSolidQuery {\n export type Types = TanStackSolidQueryPlugin;\n }\n\n export namespace TanStackSvelteQuery {\n export type Types = TanStackSvelteQueryPlugin;\n }\n\n export namespace TanStackVueQuery {\n export type Types = TanStackVueQueryPlugin;\n }\n\n export namespace Valibot {\n export type Resolvers = Required<ValibotResolvers>['~resolvers'];\n export type Types = ValibotPlugin;\n }\n\n export namespace Zod {\n export type Resolvers = Required<ZodResolvers>['~resolvers'];\n export type Types = ZodPlugin;\n }\n}\n\n// DEPRECATED\n/** @deprecated Use `Plugins.HeyApiClientAngular.Client` instead. */\nexport type AngularClient = AngularClientImp;\n/** @deprecated Use `Plugins.HeyApiClientAxios.Client` instead. */\nexport type AxiosClient = AxiosClientImp;\n/** @deprecated Use `Plugins.HeyApiClientFetch.Client` instead. */\nexport type FetchClient = FetchClientImp;\n/** @deprecated Use `Plugins.HeyApiClientKy.Client` instead. */\nexport type KyClient = KyClientImp;\n/** @deprecated Use `Plugins.HeyApiClientNext.Client` instead. */\nexport type NextClient = NextClientImp;\n/** @deprecated Use `Plugins.HeyApiClientNuxt.Client` instead. */\nexport type NuxtClient = NuxtClientImp;\n/** @deprecated Use `Plugins.HeyApiClientOfetch.Client` instead. */\nexport type OfetchClient = OfetchClientImp;\n"],"mappings":";;;;;;;;;;;;AAWA,eAAsB,eAAe,SAAkD;CACrF,MAAM,aAAa,KAAK,QAAQ,QAAQ,OAAO,OAAO,KAAK;AAE3D,KAAI,QAAQ,OAAO,OAAO;MACpB,GAAG,WAAW,WAAW,CAC3B,IAAG,OAAO,YAAY;GAAE,OAAO;GAAM,WAAW;GAAM,CAAC;;CAI3D,MAAM,SAAS,eAAe,QAAQ;CAEtC,MAAM,SAAS,gBAAgB,OAAO;AACtC,KAAI,YAAY,OAAO,UAAU,OAAO,OAAO,UAAU,CAAC,OAAO,OAG/D,QAAO,iCAAiC,qBAAqB;EAC3D,QAAQ,OAAO,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AC/D,KAAK,IAAI,OAAO,QAChB;EACF,MAAM,SACJ,KAAK,MAAM,QAAQ,IAAI,OAAO,OAAO,IAAI,YAAY,MAAM,WAAW,OAAO,OAAO,IAAI;EAE1F,MAAM,aAAa,cAAc,MAAM;EACvC,MAAM,kBAAkB,cAAc;EAEtC,MAAM,UACJ,MAAM,QAAQ,CAAC,SAAS,eAAe,iBAAiB,KAAK,QAAQ,GAAG,GAAG,KAAA;AAC7E,MAAI,CAAC,QAAQ,KAAK,UAAU,UAAU;AACpC,oBAAiB;IAAE;IAAO;IAAS,CAAC;AAKpC,OAAI,MAAM,kBAAkB;IAAE,OAAO;IAAiB,eAHpD,KAAK,MAAM,QAAQ,IAAI,OAAO,YAAY,IAC1C,YAAY,MAAM,WAAW,OAAO,YAAY,IAChD;IACmE,CAAC,CACpE,OAAM,+BAA+B,OAAO,UAAU;;AAI1D,MAAI,WAAY,QAAO,EAAE;AAEzB,QAAM;;;;;AC6BV,OAAO,UAAU,cAAc,CAAC;AAWhC,eAAsB,aACpB,QACY;AACZ,QAAO,OAAO,WAAW,aAAa,MAAM,QAAQ,GAAG"}
@@ -12,13 +12,18 @@ type Formatters = 'biome' | 'prettier';
12
12
  */
13
13
  type Linters = 'biome' | 'eslint' | 'oxlint';
14
14
  declare const postProcessors: {
15
+ readonly 'biome:check': {
16
+ readonly args: readonly ["check", "--write", "{{path}}"];
17
+ readonly command: "biome";
18
+ readonly name: "Biome (Check)";
19
+ };
15
20
  readonly 'biome:format': {
16
21
  readonly args: readonly ["format", "--write", "{{path}}"];
17
22
  readonly command: "biome";
18
23
  readonly name: "Biome (Format)";
19
24
  };
20
25
  readonly 'biome:lint': {
21
- readonly args: readonly ["lint", "--apply", "{{path}}"];
26
+ readonly args: readonly ["lint", "--write", "{{path}}"];
22
27
  readonly command: "biome";
23
28
  readonly name: "Biome (Lint)";
24
29
  };
@@ -147,4 +152,4 @@ type Config = BaseConfig<UserConfig, Output> & {
147
152
  };
148
153
  //#endregion
149
154
  export { UserConfig as n, Config as t };
150
- //# sourceMappingURL=types-DAEl4_a4.d.mts.map
155
+ //# sourceMappingURL=types-KzipN7UT.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-KzipN7UT.d.mts","names":[],"sources":["../src/config/output/postprocess.ts","../src/config/output/types.ts","../src/config/types.ts"],"mappings":";;;;;;;;KAKY,UAAA;;AAAZ;;KAKY,OAAA;AAAA,cAEC,cAAA;EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsCD,mBAAA,gBAAmC,cAAA;;;KC5CnC,UAAA,GAAa,cAAA;EDDb;;;;;AAKZ;ECGE,MAAA,GAAS,UAAA;;;;ADDX;;;;;;ECWE,mBAAA,mBAAsC,SAAA;;;;;;;EAOtC,IAAA,GAAO,OAAA;;;;;;;;;;;;EAYP,WAAA,GAAc,aAAA,CAAc,mBAAA,GAAsB,iBAAA;;;;;;;EAOlD,eAAA;;ADCF;;;;;;;ECQE,YAAA,GAAe,SAAA;AAAA;AAAA,KAGL,MAAA,GAAS,UAAA;;;;EAInB,MAAA,EAAQ,UAAA;EAnCD;;;EAuCP,IAAA,EAAM,OAAA;EAXS;;;;EAgBf,eAAA;EA7DS;;;;EAkET,QAAA,EAAU,oBAAA;EArCV;;;;;;EA4CA,YAAA,EAAc,SAAA;AAAA;;;KC5EJ,UAAA,GAAa,cAAA,CAAe,UAAA;;;AFLxC;;;;;EEaE,OAAA,GAAU,aAAA,CACN,WAAA,WAEQ,WAAA,GAAc,eAAA,CAAgB,CAAA;IAClC,IAAA,EAAM,CAAA;EAAA,IAER,WAAA;AAAA;AAAA,KAII,MAAA,GAAS,UAAA,CAAW,UAAA,EAAY,MAAA;EAC1C,WAAA,EAAa,aAAA,OAAoB,eAAA;EACjC,OAAA,UACQ,WAAA,IAAe,MAAA,CAAO,MAAA,CAAO,eAAA,CAAgB,CAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hey-api/openapi-ts",
3
- "version": "0.96.1",
3
+ "version": "0.97.0",
4
4
  "description": "🌀 OpenAPI to TypeScript codegen. Production-ready SDKs, Zod schemas, TanStack Query hooks, and 20+ plugins. Used by Vercel, OpenCode, and PayPal.",
5
5
  "keywords": [
6
6
  "angular",
@@ -62,15 +62,16 @@
62
62
  "./package.json": "./package.json"
63
63
  },
64
64
  "dependencies": {
65
+ "@lukeed/ms": "2.0.2",
65
66
  "ansi-colors": "4.1.3",
66
67
  "color-support": "1.1.3",
67
68
  "commander": "14.0.3",
68
69
  "get-tsconfig": "4.14.0",
69
- "@hey-api/codegen-core": "0.8.0",
70
- "@hey-api/shared": "0.4.1",
70
+ "@hey-api/codegen-core": "0.8.1",
71
+ "@hey-api/json-schema-ref-parser": "1.4.1",
71
72
  "@hey-api/spec-types": "0.2.0",
72
- "@hey-api/types": "0.1.4",
73
- "@hey-api/json-schema-ref-parser": "1.4.1"
73
+ "@hey-api/shared": "0.4.2",
74
+ "@hey-api/types": "0.1.4"
74
75
  },
75
76
  "devDependencies": {
76
77
  "@angular/common": "21.2.7",