···11-// import { createClient } from '~/index';
11+// import { createClient } from './index';
2233// type Config = Parameters<typeof createClient>[0];
44
+1-2
packages/openapi-python/src/cli/adapter.ts
···11import type { ToArray } from '@hey-api/types';
2233-import type { UserConfig } from '~/config/types';
44-33+import type { UserConfig } from '../config/types';
54import type { CliOptions } from './schema';
6576export const cliToConfig = (cli: CliOptions): Partial<UserConfig> => {
+1-2
packages/openapi-python/src/cli/index.ts
···11import { Command, CommanderError } from 'commander';
2233-import { createClient } from '~/index';
44-53import pkg from '../../package.json';
44+import { createClient } from '../index';
65import { cliToConfig } from './adapter';
7687const binName = Object.keys(pkg.bin)[0]!;
+1-1
packages/openapi-python/src/cli/schema.ts
···11import type { PluginNames } from '@hey-api/shared';
22import type { MaybeArray } from '@hey-api/types';
3344-import type { PluginClientNames } from '~/plugins/types';
44+import type { PluginClientNames } from '../plugins/types';
5566export interface CliOptions {
77 client?: PluginClientNames;
+2-3
packages/openapi-python/src/config/plugins.ts
···55} from '@hey-api/shared';
66import { dependencyFactory, valueToObject } from '@hey-api/shared';
7788-import { defaultPluginConfigs } from '~/plugins/config';
99-88+import { defaultPluginConfigs } from '../plugins/config';
109import type { Config, UserConfig } from './types';
11101211/**
1312 * Default plugins used to generate artifacts if plugins aren't specified.
1413 */
1514export const defaultPlugins = [
1616- '@hey-api/sdk',
1515+ '@hey-api/python-sdk',
1716] as const satisfies ReadonlyArray<PluginNames>;
18171918function getPluginsConfig({
+1-1
packages/openapi-python/src/config/types.ts
···1414 * functions and TypeScript interfaces. If you manually define `plugins`,
1515 * you need to include the default plugins if you wish to use them.
1616 *
1717- * @default ['@hey-api/sdk']
1717+ * @default ['@hey-api/python-sdk']
1818 */
1919 plugins?: ReadonlyArray<
2020 | PluginNames
+4-4
packages/openapi-python/src/createClient.ts
···1818} from '@hey-api/shared';
1919import colors from 'ansi-colors';
20202121-import { postProcessors } from '~/config/output/postprocess';
2222-import type { Config } from '~/config/types';
2323-// import { generateOutput } from '~/generate/output';
2424-// import { TypeScriptRenderer } from '~/ts-dsl';
2121+import { postProcessors } from './config/output/postprocess';
2222+import type { Config } from './config/types';
2323+// import { generateOutput } from './generate/output';
2424+// import { TypeScriptRenderer } from './ts-dsl';
25252626export async function createClient({
2727 config,
+4-4
packages/openapi-python/src/generate.ts
···1616} from '@hey-api/shared';
1717import type { LazyOrAsync, MaybeArray } from '@hey-api/types';
18181919-import type { Configs } from '~/config/init';
2020-import { resolveJobs } from '~/config/init';
2121-import type { UserConfig } from '~/config/types';
2222-import { createClient as pCreateClient } from '~/createClient';
1919+import type { Configs } from './config/init';
2020+import { resolveJobs } from './config/init';
2121+import type { UserConfig } from './config/types';
2222+import { createClient as pCreateClient } from './createClient';
23232424const __filename = fileURLToPath(import.meta.url);
2525const __dirname = path.dirname(__filename);
+6-6
packages/openapi-python/src/index.ts
···64646565declare module '@hey-api/shared' {
6666 interface PluginConfigMap {
6767- '@hey-api/sdk': HeyApiSdkPlugin['Types'];
6767+ '@hey-api/python-sdk': HeyApiSdkPlugin['Types'];
6868 }
6969}
7070// END OVERRIDES
···7474// @ts-expect-error
7575import colorSupport from 'color-support';
76767777-import type { UserConfig } from '~/config/types';
7878-import type { HeyApiSdkPlugin } from '~/plugins/@hey-api/sdk';
7777+import type { UserConfig } from './config/types';
7878+import type { HeyApiSdkPlugin } from './plugins/@hey-api/sdk';
79798080colors.enabled = colorSupport().hasBasic;
81818282-export { createClient } from '~/generate';
8282+export { createClient } from './generate';
83838484/**
8585 * Type helper for configuration object, returns {@link MaybeArray<UserConfig>} object(s)
···9090 return typeof config === 'function' ? await config() : config;
9191}
92929393+export { defaultPlugins } from './config/plugins';
9494+export type { UserConfig } from './config/types';
9395export { Logger } from '@hey-api/codegen-core';
9496export type {
9597 DefinePlugin,
···110112 OperationStrategy,
111113 utils,
112114} from '@hey-api/shared';
113113-export { defaultPlugins } from '~/config/plugins';
114114-export type { UserConfig } from '~/config/types';
···44 mergeConfigs,
55} from '@hey-api/codegen-core';
6677-import { resolveJobs } from '~/config/init';
77+import { resolveJobs } from '../config/init';
8899describe('interactive config', () => {
1010 it('should use detectInteractiveSession when not provided', async () => {
+1-2
packages/openapi-ts/src/cli/adapter.ts
···11import type { ToArray } from '@hey-api/types';
2233-import type { UserConfig } from '~/config/types';
44-33+import type { UserConfig } from '../config/types';
54import type { CliOptions } from './schema';
6576export function cliToConfig(cli: CliOptions): Partial<UserConfig> {
+1-2
packages/openapi-ts/src/cli/index.ts
···11import { Command, CommanderError } from 'commander';
2233-import { createClient } from '~/index';
44-53import pkg from '../../package.json';
44+import { createClient } from '../index';
65import { cliToConfig } from './adapter';
7687const binName = Object.keys(pkg.bin)[0]!;
+1-1
packages/openapi-ts/src/cli/schema.ts
···11import type { PluginNames } from '@hey-api/shared';
22import type { MaybeArray } from '@hey-api/types';
3344-import type { PluginClientNames } from '~/plugins/types';
44+import type { PluginClientNames } from '../plugins/types';
5566export interface CliOptions {
77 client?: PluginClientNames;
+1-2
packages/openapi-ts/src/config/plugins.ts
···55} from '@hey-api/shared';
66import { dependencyFactory, valueToObject } from '@hey-api/shared';
7788-import { defaultPluginConfigs } from '~/plugins/config';
99-88+import { defaultPluginConfigs } from '../plugins/config';
109import type { Config, UserConfig } from './types';
11101211/**
+4-4
packages/openapi-ts/src/createClient.ts
···1818} from '@hey-api/shared';
1919import colors from 'ansi-colors';
20202121-import { postProcessors } from '~/config/output/postprocess';
2222-import type { Config } from '~/config/types';
2323-import { generateOutput } from '~/generate/output';
2424-import { TypeScriptRenderer } from '~/ts-dsl';
2121+import { postProcessors } from './config/output/postprocess';
2222+import type { Config } from './config/types';
2323+import { generateOutput } from './generate/output';
2424+import { TypeScriptRenderer } from './ts-dsl';
25252626export async function createClient({
2727 config,
+4-4
packages/openapi-ts/src/generate.ts
···1616} from '@hey-api/shared';
1717import type { LazyOrAsync, MaybeArray } from '@hey-api/types';
18181919-import type { Configs } from '~/config/init';
2020-import { resolveJobs } from '~/config/init';
2121-import type { UserConfig } from '~/config/types';
2222-import { createClient as pCreateClient } from '~/createClient';
1919+import type { Configs } from './config/init';
2020+import { resolveJobs } from './config/init';
2121+import type { UserConfig } from './config/types';
2222+import { createClient as pCreateClient } from './createClient';
23232424const __filename = fileURLToPath(import.meta.url);
2525const __dirname = path.dirname(__filename);
···44import type { Context } from '@hey-api/shared';
55import { IntentContext } from '@hey-api/shared';
6677-import { getTypedConfig } from '~/config/utils';
88-import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
99-77+import { getTypedConfig } from '../config/utils';
88+import { getClientPlugin } from '../plugins/@hey-api/client-core/utils';
109import { generateClientBundle } from './client';
11101211export const generateOutput = async ({ context }: { context: Context }) => {
+44-44
packages/openapi-ts/src/index.ts
···101101// @ts-expect-error
102102import colorSupport from 'color-support';
103103104104-import type { UserConfig } from '~/config/types';
105105-import type { AngularCommonPlugin } from '~/plugins/@angular/common';
106106-import type { FakerJsFakerPlugin } from '~/plugins/@faker-js/faker';
107107-import type { HeyApiClientAngularPlugin } from '~/plugins/@hey-api/client-angular';
108108-import type { HeyApiClientAxiosPlugin } from '~/plugins/@hey-api/client-axios';
109109-import type { HeyApiClientFetchPlugin } from '~/plugins/@hey-api/client-fetch';
110110-import type { HeyApiClientKyPlugin } from '~/plugins/@hey-api/client-ky';
111111-import type { HeyApiClientNextPlugin } from '~/plugins/@hey-api/client-next';
112112-import type { HeyApiClientNuxtPlugin } from '~/plugins/@hey-api/client-nuxt';
113113-import type { HeyApiClientOfetchPlugin } from '~/plugins/@hey-api/client-ofetch';
114114-import type { HeyApiSchemasPlugin } from '~/plugins/@hey-api/schemas';
115115-import type { HeyApiSdkPlugin } from '~/plugins/@hey-api/sdk';
116116-import type { HeyApiTransformersPlugin } from '~/plugins/@hey-api/transformers';
117117-import type { HeyApiTypeScriptPlugin } from '~/plugins/@hey-api/typescript';
118118-import type { PiniaColadaPlugin } from '~/plugins/@pinia/colada';
119119-import type { TanStackAngularQueryPlugin } from '~/plugins/@tanstack/angular-query-experimental';
120120-import type { TanStackReactQueryPlugin } from '~/plugins/@tanstack/react-query';
121121-import type { TanStackSolidQueryPlugin } from '~/plugins/@tanstack/solid-query';
122122-import type { TanStackSvelteQueryPlugin } from '~/plugins/@tanstack/svelte-query';
123123-import type { TanStackVueQueryPlugin } from '~/plugins/@tanstack/vue-query';
124124-import type { ArktypePlugin } from '~/plugins/arktype';
125125-import type { FastifyPlugin } from '~/plugins/fastify';
126126-import type { SwrPlugin } from '~/plugins/swr';
127127-import type { ValibotPlugin } from '~/plugins/valibot';
128128-import type { ZodPlugin } from '~/plugins/zod';
129129-import type { TsDsl } from '~/ts-dsl';
104104+import type { UserConfig } from './config/types';
105105+import type { AngularCommonPlugin } from './plugins/@angular/common';
106106+import type { FakerJsFakerPlugin } from './plugins/@faker-js/faker';
107107+import type { HeyApiClientAngularPlugin } from './plugins/@hey-api/client-angular';
108108+import type { HeyApiClientAxiosPlugin } from './plugins/@hey-api/client-axios';
109109+import type { HeyApiClientFetchPlugin } from './plugins/@hey-api/client-fetch';
110110+import type { HeyApiClientKyPlugin } from './plugins/@hey-api/client-ky';
111111+import type { HeyApiClientNextPlugin } from './plugins/@hey-api/client-next';
112112+import type { HeyApiClientNuxtPlugin } from './plugins/@hey-api/client-nuxt';
113113+import type { HeyApiClientOfetchPlugin } from './plugins/@hey-api/client-ofetch';
114114+import type { HeyApiSchemasPlugin } from './plugins/@hey-api/schemas';
115115+import type { HeyApiSdkPlugin } from './plugins/@hey-api/sdk';
116116+import type { HeyApiTransformersPlugin } from './plugins/@hey-api/transformers';
117117+import type { HeyApiTypeScriptPlugin } from './plugins/@hey-api/typescript';
118118+import type { PiniaColadaPlugin } from './plugins/@pinia/colada';
119119+import type { TanStackAngularQueryPlugin } from './plugins/@tanstack/angular-query-experimental';
120120+import type { TanStackReactQueryPlugin } from './plugins/@tanstack/react-query';
121121+import type { TanStackSolidQueryPlugin } from './plugins/@tanstack/solid-query';
122122+import type { TanStackSvelteQueryPlugin } from './plugins/@tanstack/svelte-query';
123123+import type { TanStackVueQueryPlugin } from './plugins/@tanstack/vue-query';
124124+import type { ArktypePlugin } from './plugins/arktype';
125125+import type { FastifyPlugin } from './plugins/fastify';
126126+import type { SwrPlugin } from './plugins/swr';
127127+import type { ValibotPlugin } from './plugins/valibot';
128128+import type { ZodPlugin } from './plugins/zod';
129129+import type { TsDsl } from './ts-dsl';
130130131131colors.enabled = colorSupport().hasBasic;
132132133133-export { createClient } from '~/generate';
133133+export { createClient } from './generate';
134134135135/**
136136 * Type helper for configuration object, returns {@link MaybeArray<UserConfig>} object(s)
···141141 return typeof config === 'function' ? await config() : config;
142142}
143143144144+export { defaultPlugins } from './config/plugins';
145145+export type { UserConfig } from './config/types';
146146+export type { AngularClient } from './plugins/@hey-api/client-angular';
147147+export type { AxiosClient } from './plugins/@hey-api/client-axios';
148148+export {
149149+ clientDefaultConfig,
150150+ clientDefaultMeta,
151151+} from './plugins/@hey-api/client-core/config';
152152+export { clientPluginHandler } from './plugins/@hey-api/client-core/plugin';
153153+export type { Client } from './plugins/@hey-api/client-core/types';
154154+export type { FetchClient } from './plugins/@hey-api/client-fetch';
155155+export type { NextClient } from './plugins/@hey-api/client-next';
156156+export type { NuxtClient } from './plugins/@hey-api/client-nuxt';
157157+export type { OfetchClient } from './plugins/@hey-api/client-ofetch';
158158+export type { ExpressionTransformer } from './plugins/@hey-api/transformers/expressions';
159159+export type { TypeTransformer } from './plugins/@hey-api/transformers/types';
160160+export * from './ts-dsl';
144161export { Logger } from '@hey-api/codegen-core';
145162export type {
146163 DefinePlugin,
···161178 OperationStrategy,
162179 utils,
163180} from '@hey-api/shared';
164164-export { defaultPlugins } from '~/config/plugins';
165165-export type { UserConfig } from '~/config/types';
166166-export type { AngularClient } from '~/plugins/@hey-api/client-angular';
167167-export type { AxiosClient } from '~/plugins/@hey-api/client-axios';
168168-export {
169169- clientDefaultConfig,
170170- clientDefaultMeta,
171171-} from '~/plugins/@hey-api/client-core/config';
172172-export { clientPluginHandler } from '~/plugins/@hey-api/client-core/plugin';
173173-export type { Client } from '~/plugins/@hey-api/client-core/types';
174174-export type { FetchClient } from '~/plugins/@hey-api/client-fetch';
175175-export type { NextClient } from '~/plugins/@hey-api/client-next';
176176-export type { NuxtClient } from '~/plugins/@hey-api/client-nuxt';
177177-export type { OfetchClient } from '~/plugins/@hey-api/client-ofetch';
178178-export type { ExpressionTransformer } from '~/plugins/@hey-api/transformers/expressions';
179179-export type { TypeTransformer } from '~/plugins/@hey-api/transformers/types';
180180-export * from '~/ts-dsl';
···11import { StructureModel } from '@hey-api/codegen-core';
2233-import type { $ } from '~/ts-dsl';
44-33+import type { $ } from '../../../ts-dsl';
54import { resolveHttpRequestsStrategy } from './httpRequests';
65import { resolveHttpResourcesStrategy } from './httpResources';
76import type { OperationItem } from './shared/node';
···11import type { IR } from '@hey-api/shared';
2233-import type { $ } from '~/ts-dsl';
33+import type { $ } from '../../../ts-dsl';
4455type Expression = ReturnType<typeof $.expr>;
66
···11// TODO: later
22import type { Symbol } from '@hey-api/codegen-core';
3344-import type { Plugin, SchemaWithType } from '~/plugins';
55-import type { $, DollarTsDsl } from '~/ts-dsl';
66-44+import type { Plugin, SchemaWithType } from '../../../../plugins';
55+import type { $, DollarTsDsl } from '../../../../ts-dsl';
76import type { FakerJsFakerPlugin } from '../types';
8798type Expression = ReturnType<typeof $.expr>;
···11import type { DefinePlugin, Plugin } from '@hey-api/shared';
2233-import type { Client } from '~/plugins/@hey-api/client-core/types';
33+import type { Client } from '../../../plugins/@hey-api/client-core/types';
4455export type UserConfig = Plugin.Name<'@hey-api/client-angular'> &
66 Client.Config & {
···11import type { DefinePlugin, Plugin } from '@hey-api/shared';
2233-import type { Client } from '~/plugins/@hey-api/client-core/types';
33+import type { Client } from '../../../plugins/@hey-api/client-core/types';
4455export type UserConfig = Plugin.Name<'@hey-api/client-axios'> &
66 Client.Config & {
···11/* eslint-disable @typescript-eslint/no-namespace */
22-import type { Plugin } from '~/plugins';
33-import type { HeyApiClientAngularPlugin } from '~/plugins/@hey-api/client-angular';
44-import type { HeyApiClientAxiosPlugin } from '~/plugins/@hey-api/client-axios';
55-import type { HeyApiClientFetchPlugin } from '~/plugins/@hey-api/client-fetch';
66-import type { HeyApiClientNextPlugin } from '~/plugins/@hey-api/client-next';
77-import type { HeyApiClientNuxtPlugin } from '~/plugins/@hey-api/client-nuxt';
88-import type { HeyApiClientOfetchPlugin } from '~/plugins/@hey-api/client-ofetch';
22+import type { Plugin } from '../../../plugins';
33+import type { HeyApiClientAngularPlugin } from '../../../plugins/@hey-api/client-angular';
44+import type { HeyApiClientAxiosPlugin } from '../../../plugins/@hey-api/client-axios';
55+import type { HeyApiClientFetchPlugin } from '../../../plugins/@hey-api/client-fetch';
66+import type { HeyApiClientNextPlugin } from '../../../plugins/@hey-api/client-next';
77+import type { HeyApiClientNuxtPlugin } from '../../../plugins/@hey-api/client-nuxt';
88+import type { HeyApiClientOfetchPlugin } from '../../../plugins/@hey-api/client-ofetch';
991010export interface PluginHandler {
1111 (...args: Parameters<HeyApiClientAngularPlugin['Handler']>): void;
···11import type { DefinePlugin, Plugin } from '@hey-api/shared';
2233-import type { Client } from '~/plugins/@hey-api/client-core/types';
33+import type { Client } from '../../../plugins/@hey-api/client-core/types';
4455export type UserConfig = Plugin.Name<'@hey-api/client-fetch'> &
66 Client.Config & {
···11import type { DefinePlugin, Plugin } from '@hey-api/shared';
2233-import type { Client } from '~/plugins/@hey-api/client-core/types';
33+import type { Client } from '../../../plugins/@hey-api/client-core/types';
4455export type UserConfig = Plugin.Name<'@hey-api/client-ky'> &
66 Client.Config & {
···11import type { DefinePlugin, Plugin } from '@hey-api/shared';
2233-import type { Client } from '~/plugins/@hey-api/client-core/types';
33+import type { Client } from '../../../plugins/@hey-api/client-core/types';
4455export type UserConfig = Plugin.Name<'@hey-api/client-next'> &
66 Client.Config & {
···11import type { DefinePlugin, Plugin } from '@hey-api/shared';
2233-import type { Client } from '~/plugins/@hey-api/client-core/types';
33+import type { Client } from '../../../plugins/@hey-api/client-core/types';
4455export type UserConfig = Plugin.Name<'@hey-api/client-nuxt'> & Client.Config;
66
···11import type { DefinePlugin, Plugin } from '@hey-api/shared';
2233-import type { Client } from '~/plugins/@hey-api/client-core/types';
33+import type { Client } from '../../../plugins/@hey-api/client-core/types';
4455export type UserConfig = Plugin.Name<'@hey-api/client-ofetch'> &
66 Client.Config & {
···11import type { FeatureToggle, IR, LinguistLanguages } from '@hey-api/shared';
22import type { MaybeFunc } from '@hey-api/types';
3344-import type { CallArgs, DollarTsDsl, ExampleOptions } from '~/ts-dsl';
44+import type { CallArgs, DollarTsDsl, ExampleOptions } from '../../../../ts-dsl';
5566export type UserExamplesConfig = Omit<ExampleOptions, 'payload'> & {
77 /**
···11import type { Symbol } from '@hey-api/codegen-core';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import type { HeyApiSdkPlugin } from '../types';
6576export const createRegistryClass = ({
···33import type { IR } from '@hey-api/shared';
44import { statusCodeToGroup } from '@hey-api/shared';
5566-import { getTypedConfig } from '~/config/utils';
77-import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
88-import { $ } from '~/ts-dsl';
99-66+import { getTypedConfig } from '../../../../config/utils';
77+import { getClientPlugin } from '../../../../plugins/@hey-api/client-core/utils';
88+import { $ } from '../../../../ts-dsl';
109import type { Field, Fields } from '../../client-core/bundle/params';
1110import type { HeyApiSdkPlugin } from '../types';
1211import { isInstance } from '../v1/node';
···11import type { IR } from '@hey-api/shared';
2233-import type { $ } from '~/ts-dsl';
44-33+import type { $ } from '../../../../ts-dsl';
54import type { HeyApiSdkPlugin } from '../types';
6576interface ValidatorProps {
···22import type { DefinePlugin, Plugin } from '@hey-api/shared';
33import type { OperationsStrategy } from '@hey-api/shared';
4455-import type { PluginClientNames, PluginValidatorNames } from '~/plugins/types';
66-55+import type {
66+ PluginClientNames,
77+ PluginValidatorNames,
88+} from '../../../plugins/types';
79import type { ExamplesConfig, UserExamplesConfig } from './examples';
810import type { OperationsConfig, UserOperationsConfig } from './operations';
911
···11import { StructureModel } from '@hey-api/codegen-core';
2233-import { getTypedConfig } from '~/config/utils';
44-import { clientFolderAbsolutePath } from '~/generate/client';
55-import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
66-import type { $ } from '~/ts-dsl';
77-33+import { getTypedConfig } from '../../../../config/utils';
44+import { clientFolderAbsolutePath } from '../../../../generate/client';
55+import { getClientPlugin } from '../../../../plugins/@hey-api/client-core/utils';
66+import type { $ } from '../../../../ts-dsl';
87import { resolveStrategy } from '../operations';
98import { createTypeOptions } from '../shared/typeOptions';
109import type { HeyApiSdkPlugin } from '../types';
···11import type { IR } from '@hey-api/shared';
22import type ts from 'typescript';
3344-import { $ } from '~/ts-dsl';
55-44+import { $ } from '../../../ts-dsl';
65import type { UserConfig } from './types';
7687export type ExpressionTransformer = ({
···88} from '@hey-api/shared';
99import type ts from 'typescript';
10101111-import { $ } from '~/ts-dsl';
1212-1111+import { $ } from '../../../ts-dsl';
1312import type { HeyApiTransformersPlugin } from './types';
14131514const dataVariableName = 'data';
···11-import type { MaybeTsDsl, TypeTsDsl } from '~/ts-dsl';
22-11+import type { MaybeTsDsl, TypeTsDsl } from '../../../ts-dsl';
32import { irSchemaToAstV1 } from './v1/api';
4354export type IApi = {
···11import type { IR } from '@hey-api/shared';
22import { applyNaming, parseUrl } from '@hey-api/shared';
3344-import { getTypedConfig } from '~/config/utils';
44+import { getTypedConfig } from '../../../../config/utils';
55import {
66 getClientBaseUrlKey,
77 getClientPlugin,
88-} from '~/plugins/@hey-api/client-core/utils';
99-import type { TypeTsDsl } from '~/ts-dsl';
1010-import { $ } from '~/ts-dsl';
1111-88+} from '../../../../plugins/@hey-api/client-core/utils';
99+import type { TypeTsDsl } from '../../../../ts-dsl';
1010+import { $ } from '../../../../ts-dsl';
1211import type { HeyApiTypeScriptPlugin } from '../types';
13121413const serverToBaseUrlType = ({ server }: { server: IR.ServerObject }) => {
···33import type { IR } from '@hey-api/shared';
44import { applyNaming } from '@hey-api/shared';
5566-import { createSchemaComment } from '~/plugins/shared/utils/schema';
77-import { $ } from '~/ts-dsl';
88-66+import { createSchemaComment } from '../../../../plugins/shared/utils/schema';
77+import { $ } from '../../../../ts-dsl';
98import { irSchemaToAst } from '../v1/plugin';
109import type { IrSchemaToAstOptions } from './types';
1110
···22import type { SchemaWithType } from '@hey-api/shared';
33import { deduplicateSchema } from '@hey-api/shared';
4455-import type { MaybeTsDsl, TypeTsDsl } from '~/ts-dsl';
66-import { $ } from '~/ts-dsl';
77-55+import type { MaybeTsDsl, TypeTsDsl } from '../../../../../ts-dsl';
66+import { $ } from '../../../../../ts-dsl';
87import type { IrSchemaToAstOptions } from '../../shared/types';
98import { irSchemaToAst } from '../plugin';
109
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import type { TypeTsDsl } from '~/ts-dsl';
44-import { $ } from '~/ts-dsl';
55-33+import type { TypeTsDsl } from '../../../../../ts-dsl';
44+import { $ } from '../../../../../ts-dsl';
65import type { IrSchemaToAstOptions } from '../../shared/types';
7687export const booleanToAst = ({
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import type { MaybeTsDsl, TypeTsDsl } from '~/ts-dsl';
44-33+import type { MaybeTsDsl, TypeTsDsl } from '../../../../../ts-dsl';
54import type { IrSchemaToAstOptions } from '../../shared/types';
65import { irSchemaToAst } from '../plugin';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import type { MaybeTsDsl, TypeTsDsl } from '~/ts-dsl';
44-33+import type { MaybeTsDsl, TypeTsDsl } from '../../../../../ts-dsl';
54import type { IrSchemaToAstOptions } from '../../shared/types';
65import { arrayToAst } from './array';
76import { booleanToAst } from './boolean';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import type { TypeTsDsl } from '~/ts-dsl';
44-import { $ } from '~/ts-dsl';
55-33+import type { TypeTsDsl } from '../../../../../ts-dsl';
44+import { $ } from '../../../../../ts-dsl';
65import type { IrSchemaToAstOptions } from '../../shared/types';
7687export const neverToAst = (
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import type { TypeTsDsl } from '~/ts-dsl';
44-import { $ } from '~/ts-dsl';
55-33+import type { TypeTsDsl } from '../../../../../ts-dsl';
44+import { $ } from '../../../../../ts-dsl';
65import type { IrSchemaToAstOptions } from '../../shared/types';
7687export const nullToAst = (
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import type { TypeTsDsl } from '~/ts-dsl';
44-import { $ } from '~/ts-dsl';
55-33+import type { TypeTsDsl } from '../../../../../ts-dsl';
44+import { $ } from '../../../../../ts-dsl';
65import type { IrSchemaToAstOptions } from '../../shared/types';
7687export const numberToAst = ({
···22import type { IR } from '@hey-api/shared';
33import type { SchemaWithType } from '@hey-api/shared';
4455-import { createSchemaComment } from '~/plugins/shared/utils/schema';
66-import type { TypeTsDsl } from '~/ts-dsl';
77-import { $ } from '~/ts-dsl';
88-55+import { createSchemaComment } from '../../../../../plugins/shared/utils/schema';
66+import type { TypeTsDsl } from '../../../../../ts-dsl';
77+import { $ } from '../../../../../ts-dsl';
98import type { IrSchemaToAstOptions } from '../../shared/types';
109import { irSchemaToAst } from '../plugin';
1110
···22import type { SchemaWithType } from '@hey-api/shared';
33import { toCase } from '@hey-api/shared';
4455-import type { TypeTsDsl } from '~/ts-dsl';
66-import { $ } from '~/ts-dsl';
77-55+import type { TypeTsDsl } from '../../../../../ts-dsl';
66+import { $ } from '../../../../../ts-dsl';
87import type { IrSchemaToAstOptions } from '../../shared/types';
98109export const stringToAst = ({
···11import { fromRef, ref } from '@hey-api/codegen-core';
22import type { SchemaWithType } from '@hey-api/shared';
3344-import type { MaybeTsDsl, TypeTsDsl } from '~/ts-dsl';
55-import { $ } from '~/ts-dsl';
66-44+import type { MaybeTsDsl, TypeTsDsl } from '../../../../../ts-dsl';
55+import { $ } from '../../../../../ts-dsl';
76import type { IrSchemaToAstOptions } from '../../shared/types';
87import { irSchemaToAst } from '../plugin';
98
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import type { TypeTsDsl } from '~/ts-dsl';
44-import { $ } from '~/ts-dsl';
55-33+import type { TypeTsDsl } from '../../../../../ts-dsl';
44+import { $ } from '../../../../../ts-dsl';
65import type { IrSchemaToAstOptions } from '../../shared/types';
7687export const undefinedToAst = (
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import type { TypeTsDsl } from '~/ts-dsl';
44-import { $ } from '~/ts-dsl';
55-33+import type { TypeTsDsl } from '../../../../../ts-dsl';
44+import { $ } from '../../../../../ts-dsl';
65import type { IrSchemaToAstOptions } from '../../shared/types';
7687export const unknownToAst = ({
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import type { TypeTsDsl } from '~/ts-dsl';
44-import { $ } from '~/ts-dsl';
55-33+import type { TypeTsDsl } from '../../../../../ts-dsl';
44+import { $ } from '../../../../../ts-dsl';
65import type { IrSchemaToAstOptions } from '../../shared/types';
7687export const voidToAst = (
···11import type { IR } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../ts-dsl';
54import type { PiniaColadaPlugin } from './types';
6576export const handleMeta = (
···11import type { IR } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../ts-dsl';
54import type { PiniaColadaPlugin } from './types';
65import { useTypeData } from './useType';
76
···33import { applyNaming, hasOperationDataRequired } from '@hey-api/shared';
44import type ts from 'typescript';
5566-import { getTypedConfig } from '~/config/utils';
77-import { getClientBaseUrlKey } from '~/plugins/@hey-api/client-core/utils';
88-import type { TsDsl } from '~/ts-dsl';
99-import { $ } from '~/ts-dsl';
1010-66+import { getTypedConfig } from '../../../config/utils';
77+import { getClientBaseUrlKey } from '../../../plugins/@hey-api/client-core/utils';
88+import type { TsDsl } from '../../../ts-dsl';
99+import { $ } from '../../../ts-dsl';
1110import { useTypeData } from './shared/useType';
1211import type { PluginInstance } from './types';
1312
···11import type { IR } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import type { PluginInstance } from '../types';
6576export const handleMeta = (
···11-import type { TanStackAngularQueryPlugin } from '~/plugins/@tanstack/angular-query-experimental/types';
22-import type { TanStackReactQueryPlugin } from '~/plugins/@tanstack/react-query/types';
33-import type { TanStackSolidQueryPlugin } from '~/plugins/@tanstack/solid-query/types';
44-import type { TanStackSvelteQueryPlugin } from '~/plugins/@tanstack/svelte-query/types';
55-import type { TanStackVueQueryPlugin } from '~/plugins/@tanstack/vue-query/types';
11+import type { TanStackAngularQueryPlugin } from '../../../plugins/@tanstack/angular-query-experimental/types';
22+import type { TanStackReactQueryPlugin } from '../../../plugins/@tanstack/react-query/types';
33+import type { TanStackSolidQueryPlugin } from '../../../plugins/@tanstack/solid-query/types';
44+import type { TanStackSvelteQueryPlugin } from '../../../plugins/@tanstack/svelte-query/types';
55+import type { TanStackVueQueryPlugin } from '../../../plugins/@tanstack/vue-query/types';
6677export interface PluginHandler {
88 (...args: Parameters<TanStackAngularQueryPlugin['Handler']>): void;
···11import type { IR } from '@hey-api/shared';
22import { applyNaming } from '@hey-api/shared';
3344-import { createOperationComment } from '~/plugins/shared/utils/operation';
55-import type { TsDsl } from '~/ts-dsl';
66-import { $ } from '~/ts-dsl';
77-44+import { createOperationComment } from '../../../../plugins/shared/utils/operation';
55+import type { TsDsl } from '../../../../ts-dsl';
66+import { $ } from '../../../../ts-dsl';
87import { handleMeta } from '../shared/meta';
98import { useTypeData, useTypeError, useTypeResponse } from '../shared/useType';
109import type { PluginInstance } from '../types';
···11import { definePluginConfig } from '@hey-api/shared';
2233-import { handler } from '~/plugins/@tanstack/query-core/plugin';
44-33+import { handler } from '../../../plugins/@tanstack/query-core/plugin';
54import type { TanStackVueQueryPlugin } from './types';
6576export const defaultConfig: TanStackVueQueryPlugin['Config'] = {
+1-2
packages/openapi-ts/src/plugins/arktype/api.ts
···11-import type { $ } from '~/ts-dsl';
22-11+import type { $ } from '../../ts-dsl';
32import type { ValidatorArgs } from './shared/types';
43import { createRequestValidatorV2, createResponseValidatorV2 } from './v2/api';
54
···11import type { Symbol } from '@hey-api/codegen-core';
22import type { IR } from '@hey-api/shared';
3344-import { createSchemaComment } from '~/plugins/shared/utils/schema';
55-import { $ } from '~/ts-dsl';
66-44+import { createSchemaComment } from '../../../plugins/shared/utils/schema';
55+import { $ } from '../../../ts-dsl';
76import { identifiers } from '../constants';
87import type { ArktypePlugin } from '../types';
98import type { Ast } from './types';
···22import type { IR } from '@hey-api/shared';
33import type ts from 'typescript';
4455-import type { $ } from '~/ts-dsl';
66-55+import type { $ } from '../../../ts-dsl';
76import type { ArktypePlugin } from '../types';
8798export type Ast = {
+1-2
packages/openapi-ts/src/plugins/arktype/v2/api.ts
···11-import { $ } from '~/ts-dsl';
22-11+import { $ } from '../../../ts-dsl';
32import type { ValidatorArgs } from '../shared/types';
4354export const createRequestValidatorV2 = ({
···55import { deduplicateSchema } from '@hey-api/shared';
66import { pathToJsonPointer, refToName } from '@hey-api/shared';
7788-import type { SchemaWithType } from '~/plugins';
99-import { $ } from '~/ts-dsl';
1010-88+import type { SchemaWithType } from '../../../plugins';
99+import { $ } from '../../../ts-dsl';
1110import { exportAst } from '../shared/export';
1211import type { Ast, IrSchemaToAstOptions, PluginState } from '../shared/types';
1312import type { ArktypePlugin } from '../types';
···11-import type { SchemaWithType } from '~/plugins';
22-import { $ } from '~/ts-dsl';
33-11+import type { SchemaWithType } from '../../../../plugins';
22+import { $ } from '../../../../ts-dsl';
43import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
54import { nullToAst } from './null';
65import { objectToAst } from './object';
···11-import type { SchemaWithType } from '~/plugins';
22-11+import type { SchemaWithType } from '../../../../plugins';
32import { identifiers } from '../../constants';
43import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
54
···11import { fromRef, ref } from '@hey-api/codegen-core';
2233-import type { SchemaWithType } from '~/plugins';
44-import { $ } from '~/ts-dsl';
55-33+import type { SchemaWithType } from '../../../../plugins';
44+import { $ } from '../../../../ts-dsl';
65// import { identifiers } from '../../constants';
76import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
87import { irSchemaToAst } from '../plugin';
···11-import type { SchemaWithType } from '~/plugins';
22-11+import type { SchemaWithType } from '../../../../plugins';
32import { identifiers } from '../../constants';
43import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
54
+24-24
packages/openapi-ts/src/plugins/config.ts
···11import type { Plugin, PluginConfigMap, PluginNames } from '@hey-api/shared';
2233-import { defaultConfig as angularCommon } from '~/plugins/@angular/common';
44-import { defaultConfig as fakerJsFaker } from '~/plugins/@faker-js/faker';
55-import { defaultConfig as heyApiClientAngular } from '~/plugins/@hey-api/client-angular';
66-import { defaultConfig as heyApiClientAxios } from '~/plugins/@hey-api/client-axios';
77-import { defaultConfig as heyApiClientFetch } from '~/plugins/@hey-api/client-fetch';
88-import { defaultConfig as heyApiClientKy } from '~/plugins/@hey-api/client-ky';
99-import { defaultConfig as heyApiClientNext } from '~/plugins/@hey-api/client-next';
1010-import { defaultConfig as heyApiClientNuxt } from '~/plugins/@hey-api/client-nuxt';
1111-import { defaultConfig as heyApiClientOfetch } from '~/plugins/@hey-api/client-ofetch';
1212-import { defaultConfig as heyApiSchemas } from '~/plugins/@hey-api/schemas';
1313-import { defaultConfig as heyApiSdk } from '~/plugins/@hey-api/sdk';
1414-import { defaultConfig as heyApiTransformers } from '~/plugins/@hey-api/transformers';
1515-import { defaultConfig as heyApiTypeScript } from '~/plugins/@hey-api/typescript';
1616-import { defaultConfig as piniaColada } from '~/plugins/@pinia/colada';
1717-import { defaultConfig as tanStackAngularQuery } from '~/plugins/@tanstack/angular-query-experimental';
1818-import { defaultConfig as tanStackReactQuery } from '~/plugins/@tanstack/react-query';
1919-import { defaultConfig as tanStackSolidQuery } from '~/plugins/@tanstack/solid-query';
2020-import { defaultConfig as tanStackSvelteQuery } from '~/plugins/@tanstack/svelte-query';
2121-import { defaultConfig as tanStackVueQuery } from '~/plugins/@tanstack/vue-query';
2222-import { defaultConfig as arktype } from '~/plugins/arktype';
2323-import { defaultConfig as fastify } from '~/plugins/fastify';
2424-import { defaultConfig as swr } from '~/plugins/swr';
2525-import { defaultConfig as valibot } from '~/plugins/valibot';
2626-import { defaultConfig as zod } from '~/plugins/zod';
33+import { defaultConfig as angularCommon } from '../plugins/@angular/common';
44+import { defaultConfig as fakerJsFaker } from '../plugins/@faker-js/faker';
55+import { defaultConfig as heyApiClientAngular } from '../plugins/@hey-api/client-angular';
66+import { defaultConfig as heyApiClientAxios } from '../plugins/@hey-api/client-axios';
77+import { defaultConfig as heyApiClientFetch } from '../plugins/@hey-api/client-fetch';
88+import { defaultConfig as heyApiClientKy } from '../plugins/@hey-api/client-ky';
99+import { defaultConfig as heyApiClientNext } from '../plugins/@hey-api/client-next';
1010+import { defaultConfig as heyApiClientNuxt } from '../plugins/@hey-api/client-nuxt';
1111+import { defaultConfig as heyApiClientOfetch } from '../plugins/@hey-api/client-ofetch';
1212+import { defaultConfig as heyApiSchemas } from '../plugins/@hey-api/schemas';
1313+import { defaultConfig as heyApiSdk } from '../plugins/@hey-api/sdk';
1414+import { defaultConfig as heyApiTransformers } from '../plugins/@hey-api/transformers';
1515+import { defaultConfig as heyApiTypeScript } from '../plugins/@hey-api/typescript';
1616+import { defaultConfig as piniaColada } from '../plugins/@pinia/colada';
1717+import { defaultConfig as tanStackAngularQuery } from '../plugins/@tanstack/angular-query-experimental';
1818+import { defaultConfig as tanStackReactQuery } from '../plugins/@tanstack/react-query';
1919+import { defaultConfig as tanStackSolidQuery } from '../plugins/@tanstack/solid-query';
2020+import { defaultConfig as tanStackSvelteQuery } from '../plugins/@tanstack/svelte-query';
2121+import { defaultConfig as tanStackVueQuery } from '../plugins/@tanstack/vue-query';
2222+import { defaultConfig as arktype } from '../plugins/arktype';
2323+import { defaultConfig as fastify } from '../plugins/fastify';
2424+import { defaultConfig as swr } from '../plugins/swr';
2525+import { defaultConfig as valibot } from '../plugins/valibot';
2626+import { defaultConfig as zod } from '../plugins/zod';
27272828export const defaultPluginConfigs: {
2929 [K in PluginNames]: Plugin.Config<PluginConfigMap[K]>;
+1-2
packages/openapi-ts/src/plugins/fastify/plugin.ts
···44 operationResponsesMap,
55} from '@hey-api/shared';
6677-import { $ } from '~/ts-dsl';
88-77+import { $ } from '../../ts-dsl';
98import type { FastifyPlugin } from './types';
1091110const operationToRouteHandler = ({
···11import type { Context, IR } from '@hey-api/shared';
22import { escapeComment, hasOperationDataRequired } from '@hey-api/shared';
3344-import { getTypedConfig } from '~/config/utils';
55-import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
66-import type { HeyApiSdkPlugin } from '~/plugins/@hey-api/sdk';
77-import { isInstance } from '~/plugins/@hey-api/sdk/v1/node';
44+import { getTypedConfig } from '../../../config/utils';
55+import { getClientPlugin } from '../../../plugins/@hey-api/client-core/utils';
66+import type { HeyApiSdkPlugin } from '../../../plugins/@hey-api/sdk';
77+import { isInstance } from '../../../plugins/@hey-api/sdk/v1/node';
8899export function createOperationComment(
1010 operation: IR.OperationObject,
+3-4
packages/openapi-ts/src/plugins/swr/v2/useSwr.ts
···44import {
55 createOperationComment,
66 hasOperationSse,
77-} from '~/plugins/shared/utils/operation';
88-import type { TsDsl } from '~/ts-dsl';
99-import { $ } from '~/ts-dsl';
1010-77+} from '../../../plugins/shared/utils/operation';
88+import type { TsDsl } from '../../../ts-dsl';
99+import { $ } from '../../../ts-dsl';
1110import type { SwrPlugin } from '../types';
12111312export const createUseSwr = ({
+1-2
packages/openapi-ts/src/plugins/valibot/api.ts
···11-import type { $ } from '~/ts-dsl';
22-11+import type { $ } from '../../ts-dsl';
32import type { ValidatorArgs } from './shared/types';
43import { createRequestValidatorV1, createResponseValidatorV1 } from './v1/api';
54
···11import type { Refs, Symbol } from '@hey-api/codegen-core';
22import type { IR } from '@hey-api/shared';
3344-import type { Plugin, SchemaWithType } from '~/plugins';
44+import type { Plugin, SchemaWithType } from '../../../plugins';
55import type {
66 MaybeBigInt,
77 ShouldCoerceToBigInt,
88-} from '~/plugins/shared/utils/coerce';
99-import type { GetIntegerLimit } from '~/plugins/shared/utils/formats';
1010-import type { $, DollarTsDsl } from '~/ts-dsl';
1111-88+} from '../../../plugins/shared/utils/coerce';
99+import type { GetIntegerLimit } from '../../../plugins/shared/utils/formats';
1010+import type { $, DollarTsDsl } from '../../../ts-dsl';
1211import type { Pipe, PipeResult, Pipes, PipesUtils } from '../shared/pipes';
1312import type { Ast, PluginState } from '../shared/types';
1413import type { ValibotPlugin } from '../types';
···11import type { Symbol } from '@hey-api/codegen-core';
22import type { IR } from '@hey-api/shared';
3344-import { createSchemaComment } from '~/plugins/shared/utils/schema';
55-import { $ } from '~/ts-dsl';
66-44+import { createSchemaComment } from '../../../plugins/shared/utils/schema';
55+import { $ } from '../../../ts-dsl';
76import { identifiers } from '../v1/constants';
87import { pipesToNode } from './pipes';
98import type { Ast, IrSchemaToAstOptions } from './types';
···11-import { $ } from '~/ts-dsl';
22-11+import { $ } from '../../../ts-dsl';
32import type { ValibotPlugin } from '../types';
43import { identifiers } from '../v1/constants';
54
+1-2
packages/openapi-ts/src/plugins/valibot/v1/api.ts
···11-import { $ } from '~/ts-dsl';
22-11+import { $ } from '../../../ts-dsl';
32import type { ValidatorResolverContext } from '../resolvers';
43import { pipes } from '../shared/pipes';
54import type { ValidatorArgs } from '../shared/types';
···22import type { SchemaWithType } from '@hey-api/shared';
33import { deduplicateSchema } from '@hey-api/shared';
4455-import { $ } from '~/ts-dsl';
66-55+import { $ } from '../../../../ts-dsl';
76import { pipesToNode } from '../../shared/pipes';
87import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
98import { identifiers } from '../constants';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { pipesToNode } from '../../shared/pipes';
65import type { IrSchemaToAstOptions } from '../../shared/types';
76import { identifiers } from '../constants';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import type { EnumResolverContext } from '../../resolvers';
65import type { Pipe, PipeResult } from '../../shared/pipes';
76import { pipes } from '../../shared/pipes';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { shouldCoerceToBigInt } from '~/plugins/shared/utils/coerce';
44-import type { $ } from '~/ts-dsl';
55-33+import { shouldCoerceToBigInt } from '../../../../plugins/shared/utils/coerce';
44+import type { $ } from '../../../../ts-dsl';
65import { pipesToNode } from '../../shared/pipes';
76import type { IrSchemaToAstOptions } from '../../shared/types';
87import { arrayToAst } from './array';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import type { IrSchemaToAstOptions } from '../../shared/types';
65import { identifiers } from '../constants';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import type { IrSchemaToAstOptions } from '../../shared/types';
65import { identifiers } from '../constants';
76
···11import { fromRef, ref } from '@hey-api/codegen-core';
22import type { SchemaWithType } from '@hey-api/shared';
3344-import { $ } from '~/ts-dsl';
55-44+import { $ } from '../../../../ts-dsl';
65import type { ObjectResolverContext } from '../../resolvers';
76import type { Pipe, PipeResult } from '../../shared/pipes';
87import { pipes } from '../../shared/pipes';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import type { StringResolverContext } from '../../resolvers';
65import type { Pipe, PipeResult, Pipes } from '../../shared/pipes';
76import { pipes } from '../../shared/pipes';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import type { IrSchemaToAstOptions } from '../../shared/types';
65import { identifiers } from '../constants';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import type { IrSchemaToAstOptions } from '../../shared/types';
65import { identifiers } from '../constants';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import type { IrSchemaToAstOptions } from '../../shared/types';
65import { identifiers } from '../constants';
76
+1-2
packages/openapi-ts/src/plugins/zod/api.ts
···11-import type { $ } from '~/ts-dsl';
22-11+import type { $ } from '../../ts-dsl';
32import {
43 createRequestValidatorMini,
54 createResponseValidatorMini,
+1-2
packages/openapi-ts/src/plugins/zod/mini/api.ts
···11-import { $ } from '~/ts-dsl';
22-11+import { $ } from '../../../ts-dsl';
32import { identifiers } from '../constants';
43import type { ValidatorResolverContext } from '../resolvers';
54import type { ValidatorArgs } from '../shared/types';
···22import type { SchemaWithType } from '@hey-api/shared';
33import { deduplicateSchema } from '@hey-api/shared';
4455-import { $ } from '~/ts-dsl';
66-55+import { $ } from '../../../../ts-dsl';
76import { identifiers } from '../../constants';
87import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
98import { irSchemaToAst } from '../plugin';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { EnumResolverContext } from '../../resolvers';
76import type { Chain } from '../../shared/chain';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { shouldCoerceToBigInt } from '~/plugins/shared/utils/coerce';
44-33+import { shouldCoerceToBigInt } from '../../../../plugins/shared/utils/coerce';
54import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
65import { arrayToAst } from './array';
76import { booleanToAst } from './boolean';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
76
···11import { fromRef, ref } from '@hey-api/codegen-core';
22import type { SchemaWithType } from '@hey-api/shared';
3344-import { $ } from '~/ts-dsl';
55-44+import { $ } from '../../../../ts-dsl';
65import { identifiers } from '../../constants';
76import type { ObjectResolverContext } from '../../resolvers';
87import type { Chain } from '../../shared/chain';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { StringResolverContext } from '../../resolvers';
76import type { Chain } from '../../shared/chain';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
76
···33import type { MaybeArray } from '@hey-api/types';
44import type ts from 'typescript';
5566-import type { Plugin, SchemaWithType } from '~/plugins';
66+import type { Plugin, SchemaWithType } from '../../../plugins';
77import type {
88 MaybeBigInt,
99 ShouldCoerceToBigInt,
1010-} from '~/plugins/shared/utils/coerce';
1111-import type { GetIntegerLimit } from '~/plugins/shared/utils/formats';
1212-import type { $, DollarTsDsl, TsDsl } from '~/ts-dsl';
1313-1010+} from '../../../plugins/shared/utils/coerce';
1111+import type { GetIntegerLimit } from '../../../plugins/shared/utils/formats';
1212+import type { $, DollarTsDsl, TsDsl } from '../../../ts-dsl';
1413import type { Chain } from '../shared/chain';
1514import type { Ast, PluginState } from '../shared/types';
1615import type { ZodPlugin } from '../types';
···11-import type { $ } from '~/ts-dsl';
11+import type { $ } from '../../../ts-dsl';
2233export type Chain = ReturnType<typeof $.call | typeof $.expr>;
···11import type { Symbol } from '@hey-api/codegen-core';
22import type { IR } from '@hey-api/shared';
3344-import { createSchemaComment } from '~/plugins/shared/utils/schema';
55-import { $ } from '~/ts-dsl';
66-44+import { createSchemaComment } from '../../../plugins/shared/utils/schema';
55+import { $ } from '../../../ts-dsl';
76import { identifiers } from '../constants';
87import type { ZodPlugin } from '../types';
98import type { Ast } from './types';
···22import type { IR } from '@hey-api/shared';
33import type ts from 'typescript';
4455-import type { $ } from '~/ts-dsl';
66-55+import type { $ } from '../../../ts-dsl';
76import type { ZodPlugin } from '../types';
8798export type Ast = {
+1-2
packages/openapi-ts/src/plugins/zod/v3/api.ts
···11-import { $ } from '~/ts-dsl';
22-11+import { $ } from '../../../ts-dsl';
32import { identifiers } from '../constants';
43import type { ValidatorResolverContext } from '../resolvers';
54import type { ValidatorArgs } from '../shared/types';
+2-3
packages/openapi-ts/src/plugins/zod/v3/plugin.ts
···66import { deduplicateSchema } from '@hey-api/shared';
77import { pathToJsonPointer, refToName } from '@hey-api/shared';
8899-import { maybeBigInt } from '~/plugins/shared/utils/coerce';
1010-import { $ } from '~/ts-dsl';
1111-99+import { maybeBigInt } from '../../../plugins/shared/utils/coerce';
1010+import { $ } from '../../../ts-dsl';
1211import { identifiers } from '../constants';
1312import { exportAst } from '../shared/export';
1413import { getZodModule } from '../shared/module';
···22import type { SchemaWithType } from '@hey-api/shared';
33import { deduplicateSchema } from '@hey-api/shared';
4455-import { $ } from '~/ts-dsl';
66-55+import { $ } from '../../../../ts-dsl';
76import { identifiers } from '../../constants';
87import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
98import { irSchemaToAst } from '../plugin';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { IrSchemaToAstOptions } from '../../shared/types';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { EnumResolverContext } from '../../resolvers';
76import type { Chain } from '../../shared/chain';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { shouldCoerceToBigInt } from '~/plugins/shared/utils/coerce';
44-33+import { shouldCoerceToBigInt } from '../../../../plugins/shared/utils/coerce';
54import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
65import { arrayToAst } from './array';
76import { booleanToAst } from './boolean';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { IrSchemaToAstOptions } from '../../shared/types';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { IrSchemaToAstOptions } from '../../shared/types';
76
···11import { fromRef, ref } from '@hey-api/codegen-core';
22import type { SchemaWithType } from '@hey-api/shared';
3344-import { $ } from '~/ts-dsl';
55-44+import { $ } from '../../../../ts-dsl';
65import { identifiers } from '../../constants';
76import type { ObjectResolverContext } from '../../resolvers';
87import type { Chain } from '../../shared/chain';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { StringResolverContext } from '../../resolvers';
76import type { Chain } from '../../shared/chain';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { IrSchemaToAstOptions } from '../../shared/types';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { IrSchemaToAstOptions } from '../../shared/types';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { IrSchemaToAstOptions } from '../../shared/types';
76
+1-2
packages/openapi-ts/src/plugins/zod/v4/api.ts
···11-import { $ } from '~/ts-dsl';
22-11+import { $ } from '../../../ts-dsl';
32import { identifiers } from '../constants';
43import type { ValidatorResolverContext } from '../resolvers';
54import type { ValidatorArgs } from '../shared/types';
+2-3
packages/openapi-ts/src/plugins/zod/v4/plugin.ts
···66import { deduplicateSchema } from '@hey-api/shared';
77import { pathToJsonPointer, refToName } from '@hey-api/shared';
8899-import { maybeBigInt } from '~/plugins/shared/utils/coerce';
1010-import { $ } from '~/ts-dsl';
1111-99+import { maybeBigInt } from '../../../plugins/shared/utils/coerce';
1010+import { $ } from '../../../ts-dsl';
1211import { identifiers } from '../constants';
1312import { exportAst } from '../shared/export';
1413import { getZodModule } from '../shared/module';
···22import type { SchemaWithType } from '@hey-api/shared';
33import { deduplicateSchema } from '@hey-api/shared';
4455-import { $ } from '~/ts-dsl';
66-55+import { $ } from '../../../../ts-dsl';
76import { identifiers } from '../../constants';
87import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
98import { irSchemaToAst } from '../plugin';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { EnumResolverContext } from '../../resolvers';
76import type { Chain } from '../../shared/chain';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { shouldCoerceToBigInt } from '~/plugins/shared/utils/coerce';
44-33+import { shouldCoerceToBigInt } from '../../../../plugins/shared/utils/coerce';
54import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
65import { arrayToAst } from './array';
76import { booleanToAst } from './boolean';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
76
···11import { fromRef, ref } from '@hey-api/codegen-core';
22import type { SchemaWithType } from '@hey-api/shared';
3344-import { $ } from '~/ts-dsl';
55-44+import { $ } from '../../../../ts-dsl';
65import { identifiers } from '../../constants';
76import type { ObjectResolverContext } from '../../resolvers';
87import type { Chain } from '../../shared/chain';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { StringResolverContext } from '../../resolvers';
76import type { Chain } from '../../shared/chain';
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
76
···11import type { SchemaWithType } from '@hey-api/shared';
2233-import { $ } from '~/ts-dsl';
44-33+import { $ } from '../../../../ts-dsl';
54import { identifiers } from '../../constants';
65import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
76
+1-1
packages/openapi-ts/src/run.ts
···11#!/usr/bin/env node
2233-import { runCli } from '~/cli';
33+import { runCli } from './cli';
4455runCli();
···22import { Project } from '@hey-api/codegen-core';
33import ts from 'typescript';
4455-import type { TsDsl } from '~/ts-dsl';
66-55+import type { TsDsl } from '../../../ts-dsl';
76import { TypeScriptRenderer } from '../render';
87import type { ModuleExport, ModuleImport } from '../render-utils';
98
+2-3
packages/openapi-ts/src/ts-dsl/utils/context.ts
···33import type { MaybeFunc } from '@hey-api/types';
44import type ts from 'typescript';
5566-import type { DollarTsDsl } from '~/ts-dsl';
77-import { $, TypeScriptRenderer } from '~/ts-dsl';
88-66+import type { DollarTsDsl } from '../../ts-dsl';
77+import { $, TypeScriptRenderer } from '../../ts-dsl';
98import type { TsDsl } from '../base';
109import type { CallArgs } from '../expr/call';
1110
+2-3
packages/openapi-ts/src/ts-dsl/utils/render.ts
···22import type { MaybeArray, MaybeFunc } from '@hey-api/types';
33import ts from 'typescript';
4455-import type { TsDsl } from '~/ts-dsl';
66-import { $ } from '~/ts-dsl';
77-55+import type { TsDsl } from '../../ts-dsl';
66+import { $ } from '../../ts-dsl';
87import type {
98 ModuleExport,
109 ModuleImport,