···11import { describe, expect, it } from 'vitest';
2233-import type { UserConfig } from '../../types/config';
33+import type { UserConfig } from '~/types/config';
44+45import { getInput } from '../input';
5667describe('input config', () => {
+1-1
packages/openapi-ts/src/config/engine.ts
···11-import { ConfigError } from '../error';
11+import { ConfigError } from '~/error';
2233export const checkNodeVersion = () => {
44 if (typeof Bun !== 'undefined') {
+6-5
packages/openapi-ts/src/config/init.ts
···2233import colors from 'ansi-colors';
4455-import { ConfigError } from '../error';
66-import type { Config, UserConfig } from '../types/config';
77-import type { ArrayOnly } from '../types/utils';
88-import { isLegacyClient, setConfig } from '../utils/config';
99-import type { Logger } from '../utils/logger';
55+import { ConfigError } from '~/error';
66+import type { Config, UserConfig } from '~/types/config';
77+import type { ArrayOnly } from '~/types/utils';
88+import { isLegacyClient, setConfig } from '~/utils/config';
99+import type { Logger } from '~/utils/logger';
1010+1011import { getInput } from './input';
1112import { getLogs } from './logs';
1213import { mergeConfigs } from './merge';
+4-4
packages/openapi-ts/src/config/input.ts
···11-import type { Config, UserConfig } from '../types/config';
22-import type { Input, Watch } from '../types/input';
33-import { inputToApiRegistry } from '../utils/input';
44-import { heyApiRegistryBaseUrl } from '../utils/input/heyApi';
11+import type { Config, UserConfig } from '~/types/config';
22+import type { Input, Watch } from '~/types/input';
33+import { inputToApiRegistry } from '~/utils/input';
44+import { heyApiRegistryBaseUrl } from '~/utils/input/heyApi';
5566const defaultWatch: Watch = {
77 enabled: false,
+1-1
packages/openapi-ts/src/config/logs.ts
···11-import type { Config, UserConfig } from '../types/config';
11+import type { Config, UserConfig } from '~/types/config';
2233export const getLogs = (
44 userConfig: Pick<UserConfig, 'logs'> | undefined,
+1-1
packages/openapi-ts/src/config/merge.ts
···11-import type { UserConfig } from '../types/config';
11+import type { UserConfig } from '~/types/config';
2233const mergeObjects = (
44 objA: Record<string, unknown> | undefined,
+3-2
packages/openapi-ts/src/config/output.ts
···11import ts from 'typescript';
2233-import { findTsConfigPath, loadTsConfig } from '../generate/tsConfig';
44-import type { Config, UserConfig } from '../types/config';
33+import { findTsConfigPath, loadTsConfig } from '~/generate/tsConfig';
44+import type { Config, UserConfig } from '~/types/config';
55+56import { valueToObject } from './utils/config';
6778export const getOutput = (userConfig: UserConfig): Config['output'] => {
+2-1
packages/openapi-ts/src/config/parser.ts
···11-import type { Config, UserConfig } from '../types/config';
11+import type { Config, UserConfig } from '~/types/config';
22+23import { valueToObject } from './utils/config';
3445export const defaultPaginationKeywords = [
+4-3
packages/openapi-ts/src/config/plugins.ts
···11-import { defaultPluginConfigs } from '../plugins/config';
11+import { defaultPluginConfigs } from '~/plugins/config';
22import type {
33 AnyPluginName,
44 PluginContext,
55 PluginNames,
66-} from '../plugins/types';
77-import type { Config, UserConfig } from '../types/config';
66+} from '~/plugins/types';
77+import type { Config, UserConfig } from '~/types/config';
88+89import { valueToObject } from './utils/config';
910import { packageFactory } from './utils/package';
1011
+16-16
packages/openapi-ts/src/createClient.ts
···33import { $RefParser } from '@hey-api/json-schema-ref-parser';
44import colors from 'ansi-colors';
5566-import { generateLegacyOutput } from './generate/legacy/output';
77-import { generateOutput } from './generate/output';
88-import { getSpec } from './getSpec';
99-import type { IR } from './ir/types';
1010-import { parseLegacy, parseOpenApiSpec } from './openApi';
1111-import { buildGraph } from './openApi/shared/utils/graph';
1212-import { patchOpenApiSpec } from './openApi/shared/utils/patch';
1313-import { processOutput } from './processOutput';
1414-import type { Client } from './types/client';
1515-import type { Config } from './types/config';
1616-import type { Input } from './types/input';
1717-import type { WatchValues } from './types/types';
1818-import { isLegacyClient, legacyNameFromConfig } from './utils/config';
1919-import type { Templates } from './utils/handlebars';
2020-import type { Logger } from './utils/logger';
2121-import { postProcessClient } from './utils/postprocess';
66+import { generateLegacyOutput } from '~/generate/legacy/output';
77+import { generateOutput } from '~/generate/output';
88+import { getSpec } from '~/getSpec';
99+import type { IR } from '~/ir/types';
1010+import { parseLegacy, parseOpenApiSpec } from '~/openApi';
1111+import { buildGraph } from '~/openApi/shared/utils/graph';
1212+import { patchOpenApiSpec } from '~/openApi/shared/utils/patch';
1313+import { processOutput } from '~/processOutput';
1414+import type { Client } from '~/types/client';
1515+import type { Config } from '~/types/config';
1616+import type { Input } from '~/types/input';
1717+import type { WatchValues } from '~/types/types';
1818+import { isLegacyClient, legacyNameFromConfig } from '~/utils/config';
1919+import type { Templates } from '~/utils/handlebars';
2020+import type { Logger } from '~/utils/logger';
2121+import { postProcessClient } from '~/utils/postprocess';
22222323export const compileInputPath = (input: Omit<Input, 'watch'>) => {
2424 const result: Pick<
+1-1
packages/openapi-ts/src/debug/graph.ts
···11-import type { Graph } from '../openApi/shared/utils/graph';
11+import type { Graph } from '~/openApi/shared/utils/graph';
2233const analyzeStructure = (graph: Graph) => {
44 let maxDepth = 0;
+2-2
packages/openapi-ts/src/debug/ir.ts
···11import colors from 'ansi-colors';
2233-import type { IR } from '../ir/types';
44-import { httpMethods } from '../openApi/shared/utils/operation';
33+import type { IR } from '~/ir/types';
44+import { httpMethods } from '~/openApi/shared/utils/operation';
5566export interface PrintOptions {
77 /**
+2-2
packages/openapi-ts/src/error.ts
···3344import colors from 'ansi-colors';
5566-import { loadPackageJson } from './generate/tsConfig';
77-import { ensureDirSync } from './generate/utils';
66+import { loadPackageJson } from '~/generate/tsConfig';
77+import { ensureDirSync } from '~/generate/utils';
8899type IJobError = {
1010 error: Error;
···33import type ts from 'typescript';
44import { describe, expect, it, vi } from 'vitest';
5566-import type { Config } from '../../types/config';
77-import { setConfig } from '../../utils/config';
66+import type { Config } from '~/types/config';
77+import { setConfig } from '~/utils/config';
88+89import { generateLegacyClientClass } from '../class';
910import { mockTemplates, openApi } from './mocks';
1011
···44import type ts from 'typescript';
55import { beforeEach, describe, expect, it, vi } from 'vitest';
6677-import type { Config } from '../../types/config';
88-import { setConfig } from '../../utils/config';
77+import type { Config } from '~/types/config';
88+import { setConfig } from '~/utils/config';
99+910import { generateLegacyCore } from '../core';
1011import { mockTemplates } from './mocks';
1112
···11import { vi } from 'vitest';
2233-import type { OpenApi } from '../../openApi';
44-import type { Client } from '../../types/client';
55-import type { Config } from '../../types/config';
66-import type { Templates } from '../../utils/handlebars';
33+import type { OpenApi } from '~/openApi';
44+import type { Client } from '~/types/client';
55+import type { Config } from '~/types/config';
66+import type { Templates } from '~/utils/handlebars';
7788export const client: Client = {
99 config: {} as Config,
+8-7
packages/openapi-ts/src/generate/class.ts
···11import fs from 'node:fs';
22import path from 'node:path';
3344-import type { OpenApi } from '../openApi';
55-import { getClientPlugin } from '../plugins/@hey-api/client-core/utils';
66-import type { Client } from '../types/client';
77-import { getConfig, legacyNameFromConfig } from '../utils/config';
88-import { getHttpRequestName } from '../utils/getHttpRequestName';
99-import type { Templates } from '../utils/handlebars';
1010-import { sortByName } from '../utils/sort';
44+import type { OpenApi } from '~/openApi';
55+import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
66+import type { Client } from '~/types/client';
77+import { getConfig, legacyNameFromConfig } from '~/utils/config';
88+import { getHttpRequestName } from '~/utils/getHttpRequestName';
99+import type { Templates } from '~/utils/handlebars';
1010+import { sortByName } from '~/utils/sort';
1111+1112import { ensureDirSync } from './utils';
12131314/**
+5-4
packages/openapi-ts/src/generate/client.ts
···4455import type { IProject, ProjectRenderMeta } from '@hey-api/codegen-core';
6677-import type { Client } from '../plugins/@hey-api/client-core/types';
88-import { getClientPlugin } from '../plugins/@hey-api/client-core/utils';
99-import type { DefinePlugin } from '../plugins/types';
1010-import type { Config } from '../types/config';
77+import type { Client } from '~/plugins/@hey-api/client-core/types';
88+import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
99+import type { DefinePlugin } from '~/plugins/types';
1010+import type { Config } from '~/types/config';
1111+1112import { ensureDirSync, relativeModulePath } from './utils';
12131314const __filename = fileURLToPath(import.meta.url);
+5-5
packages/openapi-ts/src/generate/core.ts
···11import fs from 'node:fs';
22import path from 'node:path';
3344-import { getClientPlugin } from '../plugins/@hey-api/client-core/utils';
55-import type { Client } from '../types/client';
66-import { getConfig, legacyNameFromConfig } from '../utils/config';
77-import { getHttpRequestName } from '../utils/getHttpRequestName';
88-import type { Templates } from '../utils/handlebars';
44+import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
55+import type { Client } from '~/types/client';
66+import { getConfig, legacyNameFromConfig } from '~/utils/config';
77+import { getHttpRequestName } from '~/utils/getHttpRequestName';
88+import type { Templates } from '~/utils/handlebars';
991010/**
1111 * Generate OpenAPI core files, this includes the basic boilerplate code to handle requests.
+3-2
packages/openapi-ts/src/generate/file.ts
···3344import ts from 'typescript';
5566-import { tsc } from '../tsc';
77-import { type ImportExportItemObject, tsNodeToString } from '../tsc/utils';
66+import { tsc } from '~/tsc';
77+import { type ImportExportItemObject, tsNodeToString } from '~/tsc/utils';
88+89import { ensureDirSync } from './utils';
9101011type FileImportResult<
···44import type ts from 'typescript';
55import { describe, expect, it, vi } from 'vitest';
6677-import { setConfig } from '../../../utils/config';
77+import { setConfig } from '~/utils/config';
88+89import { GeneratedFile } from '../../file';
910import { generateIndexFile } from '../indexFile';
1011
···33import type ts from 'typescript';
44import { describe, expect, it, vi } from 'vitest';
5566-import type { Client } from '../../../types/client';
77-import type { Config } from '../../../types/config';
88-import { setConfig } from '../../../utils/config';
66+import type { Client } from '~/types/client';
77+import type { Config } from '~/types/config';
88+import { setConfig } from '~/utils/config';
99+910import { mockTemplates, openApi } from '../../__tests__/mocks';
1011import { generateLegacyOutput } from '../output';
1112
···11-import { getClientPlugin } from '../../plugins/@hey-api/client-core/utils';
22-import { tsc } from '../../tsc';
33-import type { Files } from '../../types/utils';
44-import { getConfig, legacyNameFromConfig } from '../../utils/config';
11+import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
22+import { tsc } from '~/tsc';
33+import type { Files } from '~/types/utils';
44+import { getConfig, legacyNameFromConfig } from '~/utils/config';
55+56import { GeneratedFile } from '../file';
6778export const generateIndexFile = ({ files }: { files: Files }): void => {
+7-6
packages/openapi-ts/src/generate/legacy/output.ts
···2233import type { ProjectRenderMeta } from '@hey-api/codegen-core';
4455-import type { OpenApi } from '../../openApi';
66-import { getClientPlugin } from '../../plugins/@hey-api/client-core/utils';
77-import type { Client } from '../../types/client';
88-import type { Files } from '../../types/utils';
99-import { getConfig, isLegacyClient } from '../../utils/config';
1010-import type { Templates } from '../../utils/handlebars';
55+import type { OpenApi } from '~/openApi';
66+import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
77+import type { Client } from '~/types/client';
88+import type { Files } from '~/types/utils';
99+import { getConfig, isLegacyClient } from '~/utils/config';
1010+import type { Templates } from '~/utils/handlebars';
1111+1112import { generateLegacyClientClass } from '../class';
1213import { generateClientBundle } from '../client';
1314import { generateLegacyCore } from '../core';
+3-2
packages/openapi-ts/src/generate/output.ts
···3344import type { ProjectRenderMeta } from '@hey-api/codegen-core';
5566-import type { IR } from '../ir/types';
77-import { getClientPlugin } from '../plugins/@hey-api/client-core/utils';
66+import type { IR } from '~/ir/types';
77+import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
88+89import { generateClientBundle } from './client';
910import { removeDirSync } from './utils';
1011
+3-3
packages/openapi-ts/src/generate/renderer.ts
···1212import { createBinding, mergeBindings, renderIds } from '@hey-api/codegen-core';
1313import ts from 'typescript';
14141515-import { ensureValidIdentifier } from '../openApi/shared/utils/identifier';
1616-import { tsc } from '../tsc';
1717-import { tsNodeToString } from '../tsc/utils';
1515+import { ensureValidIdentifier } from '~/openApi/shared/utils/identifier';
1616+import { tsc } from '~/tsc';
1717+import { tsNodeToString } from '~/tsc/utils';
18181919const nodeBuiltins = new Set([
2020 'buffer',
+1-1
packages/openapi-ts/src/generate/tsConfig.ts
···4455import ts from 'typescript';
6677-import type { UserOutput } from '../types/output';
77+import type { UserOutput } from '~/types/output';
8899const __filename = fileURLToPath(import.meta.url);
1010const __dirname = path.dirname(__filename);
+3-3
packages/openapi-ts/src/getSpec.ts
···11import { getResolvedInput, sendRequest } from '@hey-api/json-schema-ref-parser';
2233-import { mergeHeaders } from './plugins/@hey-api/client-fetch/bundle';
44-import type { Input } from './types/input';
55-import type { WatchValues } from './types/types';
33+import { mergeHeaders } from '~/plugins/@hey-api/client-fetch/bundle';
44+import type { Input } from '~/types/input';
55+import type { WatchValues } from '~/types/types';
6677type SpecResponse = {
88 arrayBuffer: ArrayBuffer | undefined;
+13-13
packages/openapi-ts/src/index.ts
···55// @ts-expect-error
66import colorSupport from 'color-support';
7788-import { checkNodeVersion } from './config/engine';
99-import type { Configs } from './config/init';
1010-import { initConfigs } from './config/init';
1111-import { getLogs } from './config/logs';
1212-import { createClient as pCreateClient } from './createClient';
88+import { checkNodeVersion } from '~/config/engine';
99+import type { Configs } from '~/config/init';
1010+import { initConfigs } from '~/config/init';
1111+import { getLogs } from '~/config/logs';
1212+import { createClient as pCreateClient } from '~/createClient';
1313import {
1414 ConfigValidationError,
1515 JobError,
···1717 openGitHubIssueWithCrashReport,
1818 printCrashReport,
1919 shouldReportCrash,
2020-} from './error';
2121-import type { IR } from './ir/types';
2222-import type { Client } from './types/client';
2323-import type { UserConfig } from './types/config';
2424-import type { LazyOrAsync, MaybeArray } from './types/utils';
2525-import { printCliIntro } from './utils/cli';
2626-import { registerHandlebarTemplates } from './utils/handlebars';
2727-import { Logger } from './utils/logger';
2020+} from '~/error';
2121+import type { IR } from '~/ir/types';
2222+import type { Client } from '~/types/client';
2323+import type { UserConfig } from '~/types/config';
2424+import type { LazyOrAsync, MaybeArray } from '~/types/utils';
2525+import { printCliIntro } from '~/utils/cli';
2626+import { registerHandlebarTemplates } from '~/utils/handlebars';
2727+import { Logger } from '~/utils/logger';
28282929colors.enabled = colorSupport().hasBasic;
3030
···11import { describe, expect, it } from 'vitest';
2233-import type { Graph } from '../../openApi/shared/utils/graph';
44-import { buildGraph } from '../../openApi/shared/utils/graph';
33+import type { Graph } from '~/openApi/shared/utils/graph';
44+import { buildGraph } from '~/openApi/shared/utils/graph';
55+56import type { IrTopLevelKind } from '../graph';
67import { matchIrTopLevelPointer, walkTopological } from '../graph';
78
···11import { describe, expect, it, vi } from 'vitest';
2233-import { defaultPaginationKeywords } from '../../config/parser';
44-import type { Config } from '../../types/config';
33+import { defaultPaginationKeywords } from '~/config/parser';
44+import type { Config } from '~/types/config';
55+56import { operationPagination } from '../operation';
67import { getPaginationKeywordsRegExp } from '../pagination';
78import type { IR } from '../types';
+12-11
packages/openapi-ts/src/ir/context.ts
···11import { Project } from '@hey-api/codegen-core';
2233-import type { Package } from '../config/utils/package';
44-import { packageFactory } from '../config/utils/package';
55-import { TypeScriptRenderer } from '../generate/renderer';
66-import type { Graph } from '../openApi/shared/utils/graph';
77-import { buildName } from '../openApi/shared/utils/name';
88-import type { PluginConfigMap } from '../plugins/config';
99-import { PluginInstance } from '../plugins/shared/utils/instance';
1010-import type { PluginNames } from '../plugins/types';
1111-import type { Config } from '../types/config';
1212-import type { Logger } from '../utils/logger';
1313-import { resolveRef } from '../utils/ref';
33+import type { Package } from '~/config/utils/package';
44+import { packageFactory } from '~/config/utils/package';
55+import { TypeScriptRenderer } from '~/generate/renderer';
66+import type { Graph } from '~/openApi/shared/utils/graph';
77+import { buildName } from '~/openApi/shared/utils/name';
88+import type { PluginConfigMap } from '~/plugins/config';
99+import { PluginInstance } from '~/plugins/shared/utils/instance';
1010+import type { PluginNames } from '~/plugins/types';
1111+import type { Config } from '~/types/config';
1212+import type { Logger } from '~/utils/logger';
1313+import { resolveRef } from '~/utils/ref';
1414+1415import type { IR } from './types';
15161617export class IRContext<Spec extends Record<string, any> = any> {
+2-2
packages/openapi-ts/src/ir/graph.ts
···11-import type { Graph, NodeInfo } from '../openApi/shared/utils/graph';
22-import { MinHeap } from '../utils/minHeap';
11+import type { Graph, NodeInfo } from '~/openApi/shared/utils/graph';
22+import { MinHeap } from '~/utils/minHeap';
3344type KindPriority = Record<IrTopLevelKind, number>;
55type PreferGroups = ReadonlyArray<IrTopLevelKind>;
+2-1
packages/openapi-ts/src/ir/pagination.ts
···11-import type { Config } from '../types/config';
11+import type { Config } from '~/types/config';
22+23import type { IR } from './types';
3445export function getPaginationKeywordsRegExp(
+3-2
packages/openapi-ts/src/ir/types.d.ts
···11import type { Symbol } from '@hey-api/codegen-core';
2233-import type { JsonSchemaDraft2020_12 } from '../openApi/3.1.x/types/json-schema-draft-2020-12';
33+import type { JsonSchemaDraft2020_12 } from '~/openApi/3.1.x/types/json-schema-draft-2020-12';
44import type {
55 SecuritySchemeObject,
66 ServerObject,
77-} from '../openApi/3.1.x/types/spec';
77+} from '~/openApi/3.1.x/types/spec';
88+89import type { IRContext } from './context';
910import type { IRMediaType } from './mediaType';
1011
···11import { describe, expect, it } from 'vitest';
2233+import type { OpenApi } from '~/openApi/types';
44+35import type { IR } from '../../../../ir/types';
44-import type { OpenApi } from '../../../types';
56import { parseServers } from '../server';
6778describe('parseServers', () => {
···11-import type { IR } from '../../../ir/types';
22-import { buildResourceMetadata } from '../../shared/graph/meta';
33-import { transformOpenApiSpec } from '../../shared/transforms';
44-import type { State } from '../../shared/types/state';
11+import type { IR } from '~/ir/types';
22+import { buildResourceMetadata } from '~/openApi/shared/graph/meta';
33+import { transformOpenApiSpec } from '~/openApi/shared/transforms';
44+import type { State } from '~/openApi/shared/types/state';
55import {
66 createFilteredDependencies,
77 createFilters,
88 hasFilters,
99-} from '../../shared/utils/filter';
1010-import { buildGraph } from '../../shared/utils/graph';
1111-import { mergeParametersObjects } from '../../shared/utils/parameter';
1212-import { handleValidatorResult } from '../../shared/utils/validator';
99+} from '~/openApi/shared/utils/filter';
1010+import { buildGraph } from '~/openApi/shared/utils/graph';
1111+import { mergeParametersObjects } from '~/openApi/shared/utils/parameter';
1212+import { handleValidatorResult } from '~/openApi/shared/utils/validator';
1313+1314import type {
1415 OpenApiV2_0_X,
1516 OperationObject,
···11-import type { IR, IRBodyObject } from '../../../ir/types';
22-import type { State } from '../../shared/types/state';
33-import { operationToId } from '../../shared/utils/operation';
11+import type { IR, IRBodyObject } from '~/ir/types';
22+import type { State } from '~/openApi/shared/types/state';
33+import { operationToId } from '~/openApi/shared/utils/operation';
44+45import type {
56 OperationObject,
67 ParameterObject,
···11-import { getPaginationKeywordsRegExp } from '../../../ir/pagination';
22-import type { IR } from '../../../ir/types';
33-import type { SchemaType } from '../../shared/types/schema';
11+import { getPaginationKeywordsRegExp } from '~/ir/pagination';
22+import type { IR } from '~/ir/types';
33+import type { SchemaType } from '~/openApi/shared/types/schema';
44+45import type { ParameterObject, ReferenceObject } from '../types/spec';
56import type { SchemaObject } from '../types/spec';
67import { getSchemaType } from './schema';
···11-import type { IR } from '../../../ir/types';
22-import { addItemsToSchema } from '../../../ir/utils';
33-import { refToName } from '../../../utils/ref';
11+import type { IR } from '~/ir/types';
22+import { addItemsToSchema } from '~/ir/utils';
43import type {
54 SchemaState,
65 SchemaType,
76 SchemaWithRequired,
88-} from '../../shared/types/schema';
99-import { discriminatorValues } from '../../shared/utils/discriminator';
77+} from '~/openApi/shared/types/schema';
88+import { discriminatorValues } from '~/openApi/shared/utils/discriminator';
99+import { refToName } from '~/utils/ref';
1010+1011import type { SchemaObject } from '../types/spec';
11121213export const getSchemaType = ({
···11-import { createOperationKey } from '../../../ir/operation';
22-import type { Logger } from '../../../utils/logger';
33-import { httpMethods } from '../../shared/utils/operation';
11+import { createOperationKey } from '~/ir/operation';
22+import { httpMethods } from '~/openApi/shared/utils/operation';
43import type {
54 ValidatorIssue,
65 ValidatorResult,
77-} from '../../shared/utils/validator';
66+} from '~/openApi/shared/utils/validator';
77+import type { Logger } from '~/utils/logger';
88+89import type { OpenApiV2_0_X, PathItemObject, PathsObject } from '../types/spec';
9101011export const validateOpenApiSpec = (
···11-import type { EnumExtensions } from '../../shared/types/openapi-spec-extensions';
11+import type { EnumExtensions } from '~/openApi/shared/types/openapi-spec-extensions';
22+23import type { JsonSchemaDraft4 } from './json-schema-draft-4';
34import type { OpenApiV2_0_X_Nullable_Extensions } from './openapi-spec-extensions';
45
···11-import type { IR } from '../../../ir/types';
22-import { buildResourceMetadata } from '../../shared/graph/meta';
33-import { transformOpenApiSpec } from '../../shared/transforms';
44-import type { State } from '../../shared/types/state';
11+import type { IR } from '~/ir/types';
22+import { buildResourceMetadata } from '~/openApi/shared/graph/meta';
33+import { transformOpenApiSpec } from '~/openApi/shared/transforms';
44+import type { State } from '~/openApi/shared/types/state';
55import {
66 createFilteredDependencies,
77 createFilters,
88 hasFilters,
99-} from '../../shared/utils/filter';
1010-import { buildGraph } from '../../shared/utils/graph';
1111-import { mergeParametersObjects } from '../../shared/utils/parameter';
1212-import { handleValidatorResult } from '../../shared/utils/validator';
99+} from '~/openApi/shared/utils/filter';
1010+import { buildGraph } from '~/openApi/shared/utils/graph';
1111+import { mergeParametersObjects } from '~/openApi/shared/utils/parameter';
1212+import { handleValidatorResult } from '~/openApi/shared/utils/validator';
1313+1314import type {
1415 OpenApiV3_0_X,
1516 ParameterObject,
···11-import type { IR } from '../../../ir/types';
22-import type { State } from '../../shared/types/state';
33-import { operationToId } from '../../shared/utils/operation';
11+import type { IR } from '~/ir/types';
22+import type { State } from '~/openApi/shared/types/state';
33+import { operationToId } from '~/openApi/shared/utils/operation';
44+45import type {
56 OperationObject,
67 PathItemObject,
···11-import { getPaginationKeywordsRegExp } from '../../../ir/pagination';
22-import type { IR } from '../../../ir/types';
33-import type { SchemaType } from '../../shared/types/schema';
11+import { getPaginationKeywordsRegExp } from '~/ir/pagination';
22+import type { IR } from '~/ir/types';
33+import type { SchemaType } from '~/openApi/shared/types/schema';
44+45import type {
56 ParameterObject,
67 ReferenceObject,
···11-import type { IR } from '../../../ir/types';
22-import { refToName } from '../../../utils/ref';
11+import type { IR } from '~/ir/types';
22+import { refToName } from '~/utils/ref';
33+34import type {
45 ParameterObject,
56 ReferenceObject,
···11-import type { IR } from '../../../ir/types';
22-import { refToName } from '../../../utils/ref';
11+import type { IR } from '~/ir/types';
22+import { refToName } from '~/utils/ref';
33+34import type { RequestBodyObject, SchemaObject } from '../types/spec';
45import { mediaTypeObjects } from './mediaType';
56import { schemaToIrSchema } from './schema';
···11-import type { IR } from '../../../ir/types';
22-import { addItemsToSchema } from '../../../ir/utils';
33-import { refToName } from '../../../utils/ref';
11+import type { IR } from '~/ir/types';
22+import { addItemsToSchema } from '~/ir/utils';
43import type {
54 SchemaState,
65 SchemaType,
76 SchemaWithRequired,
88-} from '../../shared/types/schema';
99-import { discriminatorValues } from '../../shared/utils/discriminator';
77+} from '~/openApi/shared/types/schema';
88+import { discriminatorValues } from '~/openApi/shared/utils/discriminator';
99+import { refToName } from '~/utils/ref';
1010+1011import type { ReferenceObject, SchemaObject } from '../types/spec';
11121213export const getSchemaType = ({
···11-import type { IR } from '../../../ir/types';
22-import { parseUrl } from '../../../utils/url';
11+import type { IR } from '~/ir/types';
22+import { parseUrl } from '~/utils/url';
3344export const parseServers = ({ context }: { context: IR.Context }) => {
55 if (context.spec.servers) {
···11-import { createOperationKey } from '../../../ir/operation';
22-import type { Logger } from '../../../utils/logger';
33-import { httpMethods } from '../../shared/utils/operation';
11+import { createOperationKey } from '~/ir/operation';
22+import { httpMethods } from '~/openApi/shared/utils/operation';
43import type {
54 ValidatorIssue,
65 ValidatorResult,
77-} from '../../shared/utils/validator';
66+} from '~/openApi/shared/utils/validator';
77+import type { Logger } from '~/utils/logger';
88+89import type { OpenApiV3_0_X, PathItemObject, PathsObject } from '../types/spec';
9101011export const validateOpenApiSpec = (
···11-import type { EnumExtensions } from '../../shared/types/openapi-spec-extensions';
11+import type { EnumExtensions } from '~/openApi/shared/types/openapi-spec-extensions';
2233/**
44 * This is the root object of the {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.4.md#openapi-description OpenAPI Description}.
···11-import type { IR } from '../../../ir/types';
22-import { buildResourceMetadata } from '../../shared/graph/meta';
33-import { transformOpenApiSpec } from '../../shared/transforms';
44-import type { State } from '../../shared/types/state';
11+import type { IR } from '~/ir/types';
22+import { buildResourceMetadata } from '~/openApi/shared/graph/meta';
33+import { transformOpenApiSpec } from '~/openApi/shared/transforms';
44+import type { State } from '~/openApi/shared/types/state';
55import {
66 createFilteredDependencies,
77 createFilters,
88 hasFilters,
99-} from '../../shared/utils/filter';
1010-import { buildGraph } from '../../shared/utils/graph';
1111-import { mergeParametersObjects } from '../../shared/utils/parameter';
1212-import { handleValidatorResult } from '../../shared/utils/validator';
99+} from '~/openApi/shared/utils/filter';
1010+import { buildGraph } from '~/openApi/shared/utils/graph';
1111+import { mergeParametersObjects } from '~/openApi/shared/utils/parameter';
1212+import { handleValidatorResult } from '~/openApi/shared/utils/validator';
1313+1314import type {
1415 OpenApiV3_1_X,
1516 ParameterObject,
···11-import type { IR } from '../../../ir/types';
22-import type { State } from '../../shared/types/state';
33-import type { httpMethods } from '../../shared/utils/operation';
44-import { operationToId } from '../../shared/utils/operation';
11+import type { IR } from '~/ir/types';
22+import type { State } from '~/openApi/shared/types/state';
33+import type { httpMethods } from '~/openApi/shared/utils/operation';
44+import { operationToId } from '~/openApi/shared/utils/operation';
55+56import type {
67 OperationObject,
78 RequestBodyObject,
···11-import { getPaginationKeywordsRegExp } from '../../../ir/pagination';
22-import type { IR } from '../../../ir/types';
33-import type { SchemaType } from '../../shared/types/schema';
11+import { getPaginationKeywordsRegExp } from '~/ir/pagination';
22+import type { IR } from '~/ir/types';
33+import type { SchemaType } from '~/openApi/shared/types/schema';
44+45import type { ParameterObject, RequestBodyObject } from '../types/spec';
56import type { SchemaObject } from '../types/spec';
67import { mediaTypeObjects } from './mediaType';
···11-import type { IR } from '../../../ir/types';
22-import { refToName } from '../../../utils/ref';
11+import type { IR } from '~/ir/types';
22+import { refToName } from '~/utils/ref';
33+34import type {
45 ParameterObject,
56 ReferenceObject,
···11-import type { IR } from '../../../ir/types';
22-import { refToName } from '../../../utils/ref';
11+import type { IR } from '~/ir/types';
22+import { refToName } from '~/utils/ref';
33+34import type { RequestBodyObject, SchemaObject } from '../types/spec';
45import { mediaTypeObjects } from './mediaType';
56import { schemaToIrSchema } from './schema';
···11-import type { IR } from '../../../ir/types';
22-import { addItemsToSchema } from '../../../ir/utils';
33-import { refToName } from '../../../utils/ref';
11+import type { IR } from '~/ir/types';
22+import { addItemsToSchema } from '~/ir/utils';
43import type {
54 SchemaState,
65 SchemaType,
76 SchemaWithRequired,
88-} from '../../shared/types/schema';
99-import { discriminatorValues } from '../../shared/utils/discriminator';
77+} from '~/openApi/shared/types/schema';
88+import { discriminatorValues } from '~/openApi/shared/utils/discriminator';
99+import { refToName } from '~/utils/ref';
1010+1011import type { SchemaObject } from '../types/spec';
11121213export const getSchemaTypes = ({
···11-import type { IR } from '../../../ir/types';
22-import { parseUrl } from '../../../utils/url';
11+import type { IR } from '~/ir/types';
22+import { parseUrl } from '~/utils/url';
3344export const parseServers = ({ context }: { context: IR.Context }) => {
55 if (context.spec.servers) {
···11-import { createOperationKey } from '../../../ir/operation';
22-import type { Logger } from '../../../utils/logger';
33-import { httpMethods } from '../../shared/utils/operation';
11+import { createOperationKey } from '~/ir/operation';
22+import { httpMethods } from '~/openApi/shared/utils/operation';
43import type {
54 ValidatorIssue,
65 ValidatorResult,
77-} from '../../shared/utils/validator';
66+} from '~/openApi/shared/utils/validator';
77+import type { Logger } from '~/utils/logger';
88+89import type { OpenApiV3_1_X, PathItemObject, PathsObject } from '../types/spec';
9101011export const validateOpenApiSpec = (
···11-import type { IR } from '../../../ir/types';
22-import { mergeParametersObjects } from '../../shared/utils/parameter';
11+import type { IR } from '~/ir/types';
22+import { mergeParametersObjects } from '~/openApi/shared/utils/parameter';
33+34import type { OpenApiV3_1_X, PathItemObject } from '../types/spec';
45import { parseWebhookOperation } from './operation';
56import { parametersArrayToObject } from './parameter';
···11+import type { EnumExtensions } from '~/openApi/shared/types/openapi-spec-extensions';
22+13import type { MaybeArray } from '../../../types/utils';
22-import type { EnumExtensions } from '../../shared/types/openapi-spec-extensions';
34import type { OpenApiSchemaExtensions } from './spec-extensions';
4556// TODO: left out some keywords related to structuring a complex schema and declaring a dialect
···11import { afterEach, describe, expect, it, vi } from 'vitest';
2233+import type { OpenApiV3_0_X } from '~/openApi/3.0.x';
44+import { parseV3_0_X } from '~/openApi/3.0.x';
55+import type { OpenApiV3_1_X } from '~/openApi/3.1.x';
66+import { parseV3_1_X } from '~/openApi/3.1.x';
77+import * as parseV2 from '~/openApi/v2';
88+import * as parseV3 from '~/openApi/v3';
99+310import type { Config } from '../../types/config';
411import { type OpenApi, parseLegacy, parseOpenApiSpec } from '..';
55-import type { OpenApiV3_0_X } from '../3.0.x';
66-import { parseV3_0_X } from '../3.0.x';
77-import type { OpenApiV3_1_X } from '../3.1.x';
88-import { parseV3_1_X } from '../3.1.x';
99-import * as parseV2 from '../v2';
1010-import * as parseV3 from '../v3';
11121213vi.mock('../3.0.x', () => ({
1314 parseV3_0_X: vi.fn(),
···11-import type { OpenApi as OpenApiV2 } from '../../v2/interfaces/OpenApi';
22-import type { OpenApi as OpenApiV3 } from '../../v3/interfaces/OpenApi';
11+import type { OpenApi as OpenApiV2 } from '~/openApi/v2/interfaces/OpenApi';
22+import type { OpenApi as OpenApiV3 } from '~/openApi/v3/interfaces/OpenApi';
3344export type OpenApi = OpenApiV2 | OpenApiV3;
···11+import type { OpenApiParameter } from '~/openApi/v2/interfaces/OpenApiParameter';
22+import type { OpenApiSchema } from '~/openApi/v3/interfaces/OpenApiSchema';
33+import { getDefinitionTypes } from '~/openApi/v3/parser/inferType';
44+15import type { Model } from '../../common/interfaces/client';
22-import type { OpenApiParameter } from '../../v2/interfaces/OpenApiParameter';
33-import type { OpenApiSchema } from '../../v3/interfaces/OpenApiSchema';
44-import { getDefinitionTypes } from '../../v3/parser/inferType';
56import type { OperationParameter } from '../interfaces/client';
6778export const getDefault = (
···11-import { unique } from '../../../utils/unique';
11+import { unique } from '~/utils/unique';
22+23import type { Enum } from '../interfaces/client';
34import type { WithEnumExtension } from '../interfaces/WithEnumExtension';
45
···11-import type { OpenApiReference as OpenApiReferenceV2 } from '../../v2/interfaces/OpenApiReference';
22-import type { OpenApiReference as OpenApiReferenceV3 } from '../../v3/interfaces/OpenApiReference';
11+import type { OpenApiReference as OpenApiReferenceV2 } from '~/openApi/v2/interfaces/OpenApiReference';
22+import type { OpenApiReference as OpenApiReferenceV3 } from '~/openApi/v3/interfaces/OpenApiReference';
33+34import type { OpenApi } from '../interfaces/OpenApi';
4556const ESCAPED_REF_SLASH = /~1/g;
···11-import { refParametersPartial } from '../../../utils/const';
22-import { transformTypeName } from '../../../utils/transform';
33-import { isDefinitionTypeNullable } from '../../v3/parser/inferType';
11+import { isDefinitionTypeNullable } from '~/openApi/v3/parser/inferType';
22+import { refParametersPartial } from '~/utils/const';
33+import { transformTypeName } from '~/utils/transform';
44+45import type { Type } from '../interfaces/Type';
56import { ensureValidTypeScriptJavaScriptIdentifier } from './sanitize';
67import { stripNamespace } from './stripNamespace';
+13-13
packages/openapi-ts/src/openApi/index.ts
···11-import { satisfies } from '../config/utils/package';
22-import { IRContext } from '../ir/context';
33-import type { IR } from '../ir/types';
44-import type { Config } from '../types/config';
55-import type { Logger } from '../utils/logger';
66-import { parseV2_0_X } from './2.0.x';
77-import { parseV3_0_X } from './3.0.x';
88-import { parseV3_1_X } from './3.1.x';
99-import type { Client } from './common/interfaces/client';
1010-import type { OpenApi as LegacyOpenApi } from './common/interfaces/OpenApi';
1111-import type { OpenApi } from './types';
1212-import { parse as parseV2 } from './v2';
1313-import { parse as parseV3 } from './v3';
11+import { satisfies } from '~/config/utils/package';
22+import { IRContext } from '~/ir/context';
33+import type { IR } from '~/ir/types';
44+import { parseV2_0_X } from '~/openApi/2.0.x';
55+import { parseV3_0_X } from '~/openApi/3.0.x';
66+import { parseV3_1_X } from '~/openApi/3.1.x';
77+import type { Client } from '~/openApi/common/interfaces/client';
88+import type { OpenApi as LegacyOpenApi } from '~/openApi/common/interfaces/OpenApi';
99+import type { OpenApi } from '~/openApi/types';
1010+import { parse as parseV2 } from '~/openApi/v2';
1111+import { parse as parseV3 } from '~/openApi/v3';
1212+import type { Config } from '~/types/config';
1313+import type { Logger } from '~/utils/logger';
14141515export type {
1616 Client,
···11-import { createOperationKey } from '../../../ir/operation';
22-import type { Logger } from '../../../utils/logger';
33-import { jsonPointerToPath } from '../../../utils/ref';
11+import { createOperationKey } from '~/ir/operation';
22+import type { Logger } from '~/utils/logger';
33+import { jsonPointerToPath } from '~/utils/ref';
44+45import { addNamespace, stringToNamespace } from '../utils/filter';
56import type { Graph } from '../utils/graph';
67import { httpMethods } from '../utils/operation';
···11-import type { IR } from '../../../ir/types';
11+import type { IR } from '~/ir/types';
22+23import { enumsTransform } from './enums';
34import { propertiesRequiredByDefaultTransform } from './propertiesRequiredByDefault';
45import { readWriteTransform } from './readWrite';
···11+import type { Logger } from '~/utils/logger';
22+import { jsonPointerToPath } from '~/utils/ref';
33+14import type { Config } from '../../../types/config';
22-import type { Logger } from '../../../utils/logger';
33-import { jsonPointerToPath } from '../../../utils/ref';
45import deepEqual from '../utils/deepEqual';
56import { buildGraph, type Graph, type Scope } from '../utils/graph';
67import { buildName } from '../utils/name';
···11-import { createOperationKey } from '../../../ir/operation';
11+import { createOperationKey } from '~/ir/operation';
22+import type { PathItemObject, PathsObject } from '~/openApi/3.1.x/types/spec';
33+import type { OpenApi } from '~/openApi/types';
44+import type { Logger } from '~/utils/logger';
55+26import type { Config } from '../../../types/config';
33-import type { Logger } from '../../../utils/logger';
44-import type { PathItemObject, PathsObject } from '../../3.1.x/types/spec';
55-import type { OpenApi } from '../../types';
67import type { ResourceMetadata } from '../graph/meta';
78import { httpMethods } from './operation';
89
···11-import type { Logger } from '../../../utils/logger';
22-import { normalizeJsonPointer, pathToJsonPointer } from '../../../utils/ref';
11+import type { Logger } from '~/utils/logger';
22+import { normalizeJsonPointer, pathToJsonPointer } from '~/utils/ref';
33+34import { childSchemaRelationships } from './schemaChildRelationships';
4556/**
···11-import { createOperationKey } from '../../../ir/operation';
22-import type { IR } from '../../../ir/types';
33-import { stringCase } from '../../../utils/stringCase';
44-import { sanitizeNamespaceIdentifier } from '../../common/parser/sanitize';
11+import { createOperationKey } from '~/ir/operation';
22+import type { IR } from '~/ir/types';
33+import { sanitizeNamespaceIdentifier } from '~/openApi/common/parser/sanitize';
44+import { stringCase } from '~/utils/stringCase';
55+56import type { State } from '../types/state';
6778export const httpMethods = [
···11+import type { OpenApi } from '~/openApi/types';
22+13import type { Patch } from '../../../types/parser';
22-import type { OpenApi } from '../../types';
3445export const patchOpenApiSpec = ({
56 patchOptions,
···11import colors from 'ansi-colors';
2233-import type { IR } from '../../../ir/types';
33+import type { IR } from '~/ir/types';
4455export interface ValidatorIssue {
66 /**
+3-3
packages/openapi-ts/src/openApi/types.d.ts
···11-import type { OpenApiV2_0_X, OpenApiV2_0_XTypes } from './2.0.x';
22-import type { OpenApiV3_0_X, OpenApiV3_0_XTypes } from './3.0.x';
33-import type { OpenApiV3_1_X, OpenApiV3_1_XTypes } from './3.1.x';
11+import type { OpenApiV2_0_X, OpenApiV2_0_XTypes } from '~/openApi/2.0.x';
22+import type { OpenApiV3_0_X, OpenApiV3_0_XTypes } from '~/openApi/3.0.x';
33+import type { OpenApiV3_1_X, OpenApiV3_1_XTypes } from '~/openApi/3.1.x';
4455export namespace OpenApi {
66 export type V2_0_X = OpenApiV2_0_X;
+3-2
packages/openapi-ts/src/openApi/v2/index.ts
···11-import type { Client } from '../common/interfaces/client';
22-import { getServiceVersion } from '../common/parser/service';
11+import type { Client } from '~/openApi/common/interfaces/client';
22+import { getServiceVersion } from '~/openApi/common/parser/service';
33+34import type { OpenApi } from './interfaces/OpenApi';
45import { getModels } from './parser/getModels';
56import { getOperations } from './parser/getOperations';
···11+import type { Model, ModelMeta } from '~/openApi/common/interfaces/client';
22+13import type { Client } from '../../../types/client';
22-import type { Model, ModelMeta } from '../../common/interfaces/client';
34import type { OpenApi } from './OpenApi';
45import type { OpenApiSchema } from './OpenApiSchema';
56
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApiExternalDocs } from './OpenApiExternalDocs';
34import type { OpenApiInfo } from './OpenApiInfo';
45import type { OpenApiParameter } from './OpenApiParameter';
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApiItems } from './OpenApiItems';
3445/**
···11-import type { WithEnumExtension } from '../../common/interfaces/WithEnumExtension';
11+import type { WithEnumExtension } from '~/openApi/common/interfaces/WithEnumExtension';
2233/**
44 * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#items-object)
···11-import type { WithEnumExtension } from '../../common/interfaces/WithEnumExtension';
11+import type { WithEnumExtension } from '~/openApi/common/interfaces/WithEnumExtension';
22+23import type { WithNullableExtension } from './Extensions/WithNullableExtension';
34import type { OpenApiItems } from './OpenApiItems';
45import type { OpenApiReference } from './OpenApiReference';
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApiExample } from './OpenApiExample';
34import type { OpenApiHeader } from './OpenApiHeader';
45import type { OpenApiReference } from './OpenApiReference';
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
22-import type { WithEnumExtension } from '../../common/interfaces/WithEnumExtension';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+import type { WithEnumExtension } from '~/openApi/common/interfaces/WithEnumExtension';
33+34import type { WithNullableExtension } from './Extensions/WithNullableExtension';
45import type { OpenApiExternalDocs } from './OpenApiExternalDocs';
56import type { OpenApiReference } from './OpenApiReference';
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
2233/**
44 * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md#security-scheme-object
···11+import type { Model, ModelMeta } from '~/openApi/common/interfaces/client';
22+import { getEnums } from '~/openApi/common/parser/getEnums';
33+import { getPattern } from '~/openApi/common/parser/getPattern';
44+import { getType } from '~/openApi/common/parser/type';
55+16import type { Client } from '../../../types/client';
22-import type { Model, ModelMeta } from '../../common/interfaces/client';
33-import { getEnums } from '../../common/parser/getEnums';
44-import { getPattern } from '../../common/parser/getPattern';
55-import { getType } from '../../common/parser/type';
67import type { OpenApi } from '../interfaces/OpenApi';
78import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
89import { getModelComposition } from './getModelComposition';
···11+import type {
22+ Model,
33+ ModelComposition,
44+} from '~/openApi/common/interfaces/client';
55+16import type { Client } from '../../../types/client';
22-import type { Model, ModelComposition } from '../../common/interfaces/client';
37import type { GetModelFn } from '../interfaces/Model';
48import type { OpenApi } from '../interfaces/OpenApi';
59import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
···11+import type { Model } from '~/openApi/common/interfaces/client';
22+import { getPattern } from '~/openApi/common/parser/getPattern';
33+import { getType } from '~/openApi/common/parser/type';
44+import { escapeName } from '~/utils/escape';
55+16import type { Client } from '../../../types/client';
22-import { escapeName } from '../../../utils/escape';
33-import type { Model } from '../../common/interfaces/client';
44-import { getPattern } from '../../common/parser/getPattern';
55-import { getType } from '../../common/parser/type';
67import type { GetModelFn } from '../interfaces/Model';
78import type { OpenApi } from '../interfaces/OpenApi';
89import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
···11+import { getType } from '~/openApi/common/parser/type';
22+import { reservedJavaScriptKeywordsRegExp } from '~/utils/regexp';
33+14import type { Client } from '../../../types/client';
22-import { reservedJavaScriptKeywordsRegExp } from '../../../utils/regexp';
33-import { getType } from '../../common/parser/type';
45import type { OpenApi } from '../interfaces/OpenApi';
56import { getModel } from './getModel';
67
···11+import type { OperationParameter } from '~/openApi/common/interfaces/client';
22+import { getDefault } from '~/openApi/common/parser/getDefault';
33+import { getEnums } from '~/openApi/common/parser/getEnums';
44+import { getPattern } from '~/openApi/common/parser/getPattern';
55+import { getRef } from '~/openApi/common/parser/getRef';
66+import { operationParameterNameFn } from '~/openApi/common/parser/operation';
77+import { getType } from '~/openApi/common/parser/type';
88+19import type { Client } from '../../../types/client';
22-import type { OperationParameter } from '../../common/interfaces/client';
33-import { getDefault } from '../../common/parser/getDefault';
44-import { getEnums } from '../../common/parser/getEnums';
55-import { getPattern } from '../../common/parser/getPattern';
66-import { getRef } from '../../common/parser/getRef';
77-import { operationParameterNameFn } from '../../common/parser/operation';
88-import { getType } from '../../common/parser/type';
910import type { OpenApi } from '../interfaces/OpenApi';
1011import type { OpenApiParameter } from '../interfaces/OpenApiParameter';
1112import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
···11+import type { OperationParameters } from '~/openApi/common/interfaces/client';
22+import { getRef } from '~/openApi/common/parser/getRef';
33+import { operationParameterFilterFn } from '~/openApi/common/parser/operation';
44+15import type { Client } from '../../../types/client';
22-import type { OperationParameters } from '../../common/interfaces/client';
33-import { getRef } from '../../common/parser/getRef';
44-import { operationParameterFilterFn } from '../../common/parser/operation';
56import type { OpenApi } from '../interfaces/OpenApi';
67import type { OpenApiParameter } from '../interfaces/OpenApiParameter';
78import { getOperationParameter } from './getOperationParameter';
···11+import type { OperationResponse } from '~/openApi/common/interfaces/client';
22+import { getPattern } from '~/openApi/common/parser/getPattern';
33+import { getRef } from '~/openApi/common/parser/getRef';
44+import { getType } from '~/openApi/common/parser/type';
55+16import type { Client } from '../../../types/client';
22-import type { OperationResponse } from '../../common/interfaces/client';
33-import { getPattern } from '../../common/parser/getPattern';
44-import { getRef } from '../../common/parser/getRef';
55-import { getType } from '../../common/parser/type';
67import type { OpenApi } from '../interfaces/OpenApi';
78import type { OpenApiResponse } from '../interfaces/OpenApiResponse';
89import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
···11-import type { Client } from '../../../types/client';
22-import type { OperationResponse } from '../../common/interfaces/client';
33-import { getRef } from '../../common/parser/getRef';
11+import type { OperationResponse } from '~/openApi/common/interfaces/client';
22+import { getRef } from '~/openApi/common/parser/getRef';
43import {
54 parseResponseStatusCode,
65 sorterByResponseStatusCode,
76 tagResponseTypes,
88-} from '../../common/parser/operation';
77+} from '~/openApi/common/parser/operation';
88+99+import type { Client } from '../../../types/client';
910import type { OpenApi } from '../interfaces/OpenApi';
1011import type { OpenApiResponse } from '../interfaces/OpenApiResponse';
1112import type { OpenApiResponses } from '../interfaces/OpenApiResponses';
···11+import type { Model } from '~/openApi/common/interfaces/client';
22+import { getRef } from '~/openApi/common/parser/getRef';
33+14import type { Client } from '../../../types/client';
22-import type { Model } from '../../common/interfaces/client';
33-import { getRef } from '../../common/parser/getRef';
45import type { GetModelFn } from '../interfaces/Model';
56import type { OpenApi } from '../interfaces/OpenApi';
67import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
···11-import type { Client } from '../../../types/client';
22-import { getConfig } from '../../../utils/config';
31import type {
42 Operation,
53 OperationParameters,
66-} from '../../common/interfaces/client';
44+} from '~/openApi/common/interfaces/client';
75import {
86 getOperationResponseHeader,
97 operationNameFn,
1010-} from '../../common/parser/operation';
1111-import { toSortedByRequired } from '../../common/parser/sort';
88+} from '~/openApi/common/parser/operation';
99+import { toSortedByRequired } from '~/openApi/common/parser/sort';
1010+import { getConfig } from '~/utils/config';
1111+1212+import type { Client } from '../../../types/client';
1213import type { OpenApi } from '../interfaces/OpenApi';
1314import type { OpenApiOperation } from '../interfaces/OpenApiOperation';
1415import { getOperationParameters } from './getOperationParameters';
+3-2
packages/openapi-ts/src/openApi/v3/index.ts
···11-import type { Client } from '../common/interfaces/client';
22-import { getServiceVersion } from '../common/parser/service';
11+import type { Client } from '~/openApi/common/interfaces/client';
22+import { getServiceVersion } from '~/openApi/common/parser/service';
33+34import type { OpenApi } from './interfaces/OpenApi';
45import { getModels } from './parser/getModels';
56import { getOperations } from './parser/getOperations';
···11+import type { Model, ModelMeta } from '~/openApi/common/interfaces/client';
22+13import type { Client } from '../../../types/client';
22-import type { Model, ModelMeta } from '../../common/interfaces/client';
34import type { OpenApi } from './OpenApi';
45import type { OpenApiSchema } from './OpenApiSchema';
56
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApiCallback } from './OpenApiCallback';
34import type { OpenApiExample } from './OpenApiExample';
45import type { OpenApiHeader } from './OpenApiHeader';
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
2233/**
44 * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#discriminator-object
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApiHeader } from './OpenApiHeader';
3445/**
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApiExample } from './OpenApiExample';
34import type { OpenApiReference } from './OpenApiReference';
45import type { OpenApiSchema } from './OpenApiSchema';
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApiReference } from './OpenApiReference';
34import type { OpenApiServer } from './OpenApiServer';
45
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApiEncoding } from './OpenApiEncoding';
34import type { OpenApiExample } from './OpenApiExample';
45import type { OpenApiReference } from './OpenApiReference';
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
2233/**
44 * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#oauth-flow-object
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApiCallback } from './OpenApiCallback';
34import type { OpenApiExternalDocs } from './OpenApiExternalDocs';
45import type { OpenApiParameter } from './OpenApiParameter';
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApiExample } from './OpenApiExample';
34import type { OpenApiReference } from './OpenApiReference';
45import type { OpenApiSchema } from './OpenApiSchema';
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApiMediaType } from './OpenApiMediaType';
34import type { OpenApiReference } from './OpenApiReference';
45
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApiHeader } from './OpenApiHeader';
34import type { OpenApiLink } from './OpenApiLink';
45import type { OpenApiMediaType } from './OpenApiMediaType';
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
22-import type { WithEnumExtension } from '../../common/interfaces/WithEnumExtension';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+import type { WithEnumExtension } from '~/openApi/common/interfaces/WithEnumExtension';
33+34import type { OpenApiDiscriminator } from './OpenApiDiscriminator';
45import type { OpenApiExternalDocs } from './OpenApiExternalDocs';
56import type { OpenApiReference } from './OpenApiReference';
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApiServerVariable } from './OpenApiServerVariable';
3445/**
···11-import type { WithEnumExtension } from '../../common/interfaces/WithEnumExtension';
11+import type { WithEnumExtension } from '~/openApi/common/interfaces/WithEnumExtension';
2233/**
44 * {@link} https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#server-variable-object
···11import type ts from 'typescript';
22import { describe, expect, it, vi } from 'vitest';
3344+import { getType } from '~/openApi/common/parser/type';
55+46import type { Config } from '../../../../types/config';
57import { reservedJavaScriptKeywordsRegExp } from '../../../../utils/regexp';
66-import { getType } from '../../../common/parser/type';
78import { getModel } from '../getModel';
89910vi.mock('../../../../utils/config', () => {
···11-import type { Model } from '../../common/interfaces/client';
22-import type { Dictionary } from '../../common/interfaces/Dictionary';
33-import { stripNamespace } from '../../common/parser/stripNamespace';
11+import type { Model } from '~/openApi/common/interfaces/client';
22+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
33+import { stripNamespace } from '~/openApi/common/parser/stripNamespace';
44+45import type { OpenApi } from '../interfaces/OpenApi';
56import type { OpenApiDiscriminator } from '../interfaces/OpenApiDiscriminator';
67
···11-import type { Dictionary } from '../../common/interfaces/Dictionary';
11+import type { Dictionary } from '~/openApi/common/interfaces/Dictionary';
22+23import type { OpenApi } from '../interfaces/OpenApi';
34import type { OpenApiMediaType } from '../interfaces/OpenApiMediaType';
45import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
···11+import type { Model, ModelMeta } from '~/openApi/common/interfaces/client';
22+import { getDefault } from '~/openApi/common/parser/getDefault';
33+import { getEnums } from '~/openApi/common/parser/getEnums';
44+import { getPattern } from '~/openApi/common/parser/getPattern';
55+import { getType } from '~/openApi/common/parser/type';
66+import { enumMeta } from '~/utils/enum';
77+18import type { Client } from '../../../types/client';
22-import { enumMeta } from '../../../utils/enum';
33-import type { Model, ModelMeta } from '../../common/interfaces/client';
44-import { getDefault } from '../../common/parser/getDefault';
55-import { getEnums } from '../../common/parser/getEnums';
66-import { getPattern } from '../../common/parser/getPattern';
77-import { getType } from '../../common/parser/type';
89import type { OpenApi } from '../interfaces/OpenApi';
910import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
1011import {
···11+import type {
22+ Model,
33+ ModelComposition,
44+} from '~/openApi/common/interfaces/client';
55+16import type { Client } from '../../../types/client';
22-import type { Model, ModelComposition } from '../../common/interfaces/client';
37import type { GetModelFn } from '../interfaces/Model';
48import type { OpenApi } from '../interfaces/OpenApi';
59import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
···11+import type { Model } from '~/openApi/common/interfaces/client';
22+import { getDefault } from '~/openApi/common/parser/getDefault';
33+import { getPattern } from '~/openApi/common/parser/getPattern';
44+import { getType } from '~/openApi/common/parser/type';
55+import { escapeName } from '~/utils/escape';
66+import { unique } from '~/utils/unique';
77+18import type { Client } from '../../../types/client';
22-import { escapeName } from '../../../utils/escape';
33-import { unique } from '../../../utils/unique';
44-import type { Model } from '../../common/interfaces/client';
55-import { getDefault } from '../../common/parser/getDefault';
66-import { getPattern } from '../../common/parser/getPattern';
77-import { getType } from '../../common/parser/type';
89import type { GetModelFn } from '../interfaces/Model';
910import type { OpenApi } from '../interfaces/OpenApi';
1011import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
···11+import { getParametersMeta, getSchemasMeta } from '~/utils/meta';
22+13import type { Client } from '../../../types/client';
22-import { getParametersMeta, getSchemasMeta } from '../../../utils/meta';
34import type { OpenApi } from '../interfaces/OpenApi';
45import { getModel } from './getModel';
56import { getParameterSchema } from './parameter';
···11+import type { OperationParameter } from '~/openApi/common/interfaces/client';
22+import { getDefault } from '~/openApi/common/parser/getDefault';
33+import { getPattern } from '~/openApi/common/parser/getPattern';
44+import { getRef } from '~/openApi/common/parser/getRef';
55+import { operationParameterNameFn } from '~/openApi/common/parser/operation';
66+import { getType } from '~/openApi/common/parser/type';
77+import { refParametersPartial } from '~/utils/const';
88+import { enumMeta } from '~/utils/enum';
99+110import type { Client } from '../../../types/client';
22-import { refParametersPartial } from '../../../utils/const';
33-import { enumMeta } from '../../../utils/enum';
44-import type { OperationParameter } from '../../common/interfaces/client';
55-import { getDefault } from '../../common/parser/getDefault';
66-import { getPattern } from '../../common/parser/getPattern';
77-import { getRef } from '../../common/parser/getRef';
88-import { operationParameterNameFn } from '../../common/parser/operation';
99-import { getType } from '../../common/parser/type';
1011import type { OpenApi } from '../interfaces/OpenApi';
1112import type { OpenApiParameter } from '../interfaces/OpenApiParameter';
1213import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
···11+import type { OperationParameters } from '~/openApi/common/interfaces/client';
22+import { getRef } from '~/openApi/common/parser/getRef';
33+import { operationParameterFilterFn } from '~/openApi/common/parser/operation';
44+15import type { Client } from '../../../types/client';
22-import type { OperationParameters } from '../../common/interfaces/client';
33-import { getRef } from '../../common/parser/getRef';
44-import { operationParameterFilterFn } from '../../common/parser/operation';
56import type { OpenApi } from '../interfaces/OpenApi';
67import type { OpenApiParameter } from '../interfaces/OpenApiParameter';
78import { getOperationParameter } from './getOperationParameter';
···11+import type { OperationParameter } from '~/openApi/common/interfaces/client';
22+import { getPattern } from '~/openApi/common/parser/getPattern';
33+import { getType } from '~/openApi/common/parser/type';
44+15import type { Client } from '../../../types/client';
22-import type { OperationParameter } from '../../common/interfaces/client';
33-import { getPattern } from '../../common/parser/getPattern';
44-import { getType } from '../../common/parser/type';
56import type { OpenApi } from '../interfaces/OpenApi';
67import type { OpenApiRequestBody } from '../interfaces/OpenApiRequestBody';
78import { getContent } from './getContent';
···11+import type { OperationResponse } from '~/openApi/common/interfaces/client';
22+import { getPattern } from '~/openApi/common/parser/getPattern';
33+import { getRef } from '~/openApi/common/parser/getRef';
44+import { getType } from '~/openApi/common/parser/type';
55+16import type { Client } from '../../../types/client';
22-import type { OperationResponse } from '../../common/interfaces/client';
33-import { getPattern } from '../../common/parser/getPattern';
44-import { getRef } from '../../common/parser/getRef';
55-import { getType } from '../../common/parser/type';
67import type { OpenApi } from '../interfaces/OpenApi';
78import type { OpenApiResponse } from '../interfaces/OpenApiResponse';
89import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
···11-import type { Client } from '../../../types/client';
22-import type { OperationResponse } from '../../common/interfaces/client';
33-import { getRef } from '../../common/parser/getRef';
11+import type { OperationResponse } from '~/openApi/common/interfaces/client';
22+import { getRef } from '~/openApi/common/parser/getRef';
43import {
54 parseResponseStatusCode,
65 sorterByResponseStatusCode,
76 tagResponseTypes,
88-} from '../../common/parser/operation';
77+} from '~/openApi/common/parser/operation';
88+99+import type { Client } from '../../../types/client';
910import type { OpenApi } from '../interfaces/OpenApi';
1011import type { OpenApiResponse } from '../interfaces/OpenApiResponse';
1112import type { OpenApiResponses } from '../interfaces/OpenApiResponses';
···11+import type { Model } from '~/openApi/common/interfaces/client';
22+import { getRef } from '~/openApi/common/parser/getRef';
33+import { getType } from '~/openApi/common/parser/type';
44+15import type { Client } from '../../../types/client';
22-import type { Model } from '../../common/interfaces/client';
33-import { getRef } from '../../common/parser/getRef';
44-import { getType } from '../../common/parser/type';
56import type { GetModelFn } from '../interfaces/Model';
67import type { OpenApi } from '../interfaces/OpenApi';
78import type { OpenApiSchema } from '../interfaces/OpenApiSchema';
···11-import type { Client } from '../../../types/client';
22-import { getConfig } from '../../../utils/config';
31import type {
42 Operation,
53 OperationParameter,
64 OperationParameters,
77-} from '../../common/interfaces/client';
88-import { getRef } from '../../common/parser/getRef';
55+} from '~/openApi/common/interfaces/client';
66+import { getRef } from '~/openApi/common/parser/getRef';
97import {
108 getOperationResponseHeader,
119 operationNameFn,
1212-} from '../../common/parser/operation';
1313-import { toSortedByRequired } from '../../common/parser/sort';
1010+} from '~/openApi/common/parser/operation';
1111+import { toSortedByRequired } from '~/openApi/common/parser/sort';
1212+import { getConfig } from '~/utils/config';
1313+1414+import type { Client } from '../../../types/client';
1415import type { OpenApi } from '../interfaces/OpenApi';
1516import type { OpenApiOperation } from '../interfaces/OpenApiOperation';
1617import type { OpenApiRequestBody } from '../interfaces/OpenApiRequestBody';
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType =
66 | 'class'
···11-import { definePluginConfig } from '../../shared/utils/config';
11+import { definePluginConfig } from '~/plugins/shared/utils/config';
22+23import { Api } from './api';
34import { handler } from './plugin';
45import type { AngularCommonPlugin } from './types';
···11import type { Symbol } from '@hey-api/codegen-core';
22import type ts from 'typescript';
3344-import type { IR } from '../../../ir/types';
55-import { buildName } from '../../../openApi/shared/utils/name';
66-import { tsc } from '../../../tsc';
77-import { stringCase } from '../../../utils/stringCase';
88-import { getClientPlugin } from '../../@hey-api/client-core/utils';
99-import { operationClasses } from '../../@hey-api/sdk/operation';
1010-import { isOperationOptionsRequired } from '../../shared/utils/operation';
44+import type { IR } from '~/ir/types';
55+import { buildName } from '~/openApi/shared/utils/name';
66+import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
77+import { operationClasses } from '~/plugins/@hey-api/sdk/operation';
88+import { isOperationOptionsRequired } from '~/plugins/shared/utils/operation';
99+import { tsc } from '~/tsc';
1010+import { stringCase } from '~/utils/stringCase';
1111+1112import type { AngularCommonPlugin } from './types';
12131314interface AngularRequestClassEntry {
···11import type { Symbol } from '@hey-api/codegen-core';
22import type ts from 'typescript';
3344-import type { IR } from '../../../ir/types';
55-import { buildName } from '../../../openApi/shared/utils/name';
66-import { tsc } from '../../../tsc';
77-import { stringCase } from '../../../utils/stringCase';
88-import { operationClasses } from '../../@hey-api/sdk/operation';
99-import { isOperationOptionsRequired } from '../../shared/utils/operation';
44+import type { IR } from '~/ir/types';
55+import { buildName } from '~/openApi/shared/utils/name';
66+import { operationClasses } from '~/plugins/@hey-api/sdk/operation';
77+import { isOperationOptionsRequired } from '~/plugins/shared/utils/operation';
88+import { tsc } from '~/tsc';
99+import { stringCase } from '~/utils/stringCase';
1010+1011import type { AngularCommonPlugin } from './types';
11121213interface AngularServiceClassEntry {
···11-import type { StringName } from '../../../types/case';
22-import type { DefinePlugin, Plugin } from '../../types';
11+import type { DefinePlugin, Plugin } from '~/plugins/types';
22+import type { StringName } from '~/types/case';
33+34import type { IApi } from './api';
4556export type UserConfig = Plugin.Name<'@angular/common'> &
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType = 'client';
66
···11-import type { DefinePlugin, Plugin } from '../../types';
22-import type { Client } from '../client-core/types';
11+import type { Client } from '~/plugins/@hey-api/client-core/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
33+34import type { IApi } from './api';
4556export type UserConfig = Plugin.Name<'@hey-api/client-angular'> &
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType = 'client';
66
···11-import type { DefinePlugin, Plugin } from '../../types';
22-import type { Client } from '../client-core/types';
11+import type { Client } from '~/plugins/@hey-api/client-core/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
33+34import type { IApi } from './api';
4556export type UserConfig = Plugin.Name<'@hey-api/client-axios'> &
···11-import type { Plugin } from '../../types';
22-import type { HeyApiClientAngularPlugin } from '../client-angular';
33-import type { HeyApiClientAxiosPlugin } from '../client-axios';
44-import type { HeyApiClientFetchPlugin } from '../client-fetch';
55-import type { HeyApiClientNextPlugin } from '../client-next';
66-import type { HeyApiClientNuxtPlugin } from '../client-nuxt';
77-import type { HeyApiClientOfetchPlugin } from '../client-ofetch';
11+import type { HeyApiClientAngularPlugin } from '~/plugins/@hey-api/client-angular';
22+import type { HeyApiClientAxiosPlugin } from '~/plugins/@hey-api/client-axios';
33+import type { HeyApiClientFetchPlugin } from '~/plugins/@hey-api/client-fetch';
44+import type { HeyApiClientNextPlugin } from '~/plugins/@hey-api/client-next';
55+import type { HeyApiClientNuxtPlugin } from '~/plugins/@hey-api/client-nuxt';
66+import type { HeyApiClientOfetchPlugin } from '~/plugins/@hey-api/client-ofetch';
77+import type { Plugin } from '~/plugins/types';
8899export interface PluginHandler {
1010 (...args: Parameters<HeyApiClientAngularPlugin['Handler']>): void;
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType = 'client';
66
···11-import type { DefinePlugin, Plugin } from '../../types';
22-import type { Client } from '../client-core/types';
11+import type { Client } from '~/plugins/@hey-api/client-core/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
33+34import type { IApi } from './api';
4556export type UserConfig = Plugin.Name<'@hey-api/client-fetch'> &
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType = 'client';
66
···11-import type { DefinePlugin, Plugin } from '../../types';
22-import type { Client } from '../client-core/types';
11+import type { Client } from '~/plugins/@hey-api/client-core/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
33+34import type { IApi } from './api';
4556export type UserConfig = Plugin.Name<'@hey-api/client-next'> &
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType = 'client';
66
···11-import type { DefinePlugin, Plugin } from '../../types';
22-import type { Client } from '../client-core/types';
11+import type { Client } from '~/plugins/@hey-api/client-core/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
33+34import type { IApi } from './api';
4556export type UserConfig = Plugin.Name<'@hey-api/client-nuxt'> & Client.Config;
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType = 'client';
66
···11-import type { DefinePlugin, Plugin } from '../../types';
22-import type { Client } from '../client-core/types';
11+import type { Client } from '~/plugins/@hey-api/client-core/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
33+34import type { IApi } from './api';
4556export type UserConfig = Plugin.Name<'@hey-api/client-ofetch'> &
···11-import type { DefinePlugin, Plugin } from '../../types';
22-import type { Client } from '../client-core/types';
11+import type { Client } from '~/plugins/@hey-api/client-core/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
3344export type UserConfig = Plugin.Name<'legacy/angular'> &
55 Pick<Client.Config, 'output'>;
···11-import type { DefinePlugin, Plugin } from '../../types';
22-import type { Client } from '../client-core/types';
11+import type { Client } from '~/plugins/@hey-api/client-core/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
3344export type UserConfig = Plugin.Name<'legacy/axios'> &
55 Pick<Client.Config, 'output'>;
···11-import type { DefinePlugin, Plugin } from '../../types';
22-import type { Client } from '../client-core/types';
11+import type { Client } from '~/plugins/@hey-api/client-core/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
3344export type UserConfig = Plugin.Name<'legacy/fetch'> &
55 Pick<Client.Config, 'output'>;
···11-import type { DefinePlugin, Plugin } from '../../types';
22-import type { Client } from '../client-core/types';
11+import type { Client } from '~/plugins/@hey-api/client-core/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
3344export type UserConfig = Plugin.Name<'legacy/node'> &
55 Pick<Client.Config, 'output'>;
···11-import type { DefinePlugin, Plugin } from '../../types';
22-import type { Client } from '../client-core/types';
11+import type { Client } from '~/plugins/@hey-api/client-core/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
3344export type UserConfig = Plugin.Name<'legacy/xhr'> &
55 Pick<Client.Config, 'output'>;
···44import type ts from 'typescript';
55import { describe, expect, it, vi } from 'vitest';
6677-import { client, openApi } from '../../../../generate/__tests__/mocks';
88-import type { OpenApiV3Schema } from '../../../../openApi';
99-import type { Files } from '../../../../types/utils';
1010-import { setConfig } from '../../../../utils/config';
1111-import { PluginInstance } from '../../../shared/utils/instance';
77+import { client, openApi } from '~/generate/__tests__/mocks';
88+import type { OpenApiV3Schema } from '~/openApi';
99+import { PluginInstance } from '~/plugins/shared/utils/instance';
1010+import type { Files } from '~/types/utils';
1111+import { setConfig } from '~/utils/config';
1212+1213import { handlerLegacy } from '../plugin-legacy';
13141415vi.mock('node:fs');
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType = 'ref';
66
···11-import { definePluginConfig } from '../../shared/utils/config';
11+import { definePluginConfig } from '~/plugins/shared/utils/config';
22+23import { Api } from './api';
34import { handler } from './plugin';
45import { handlerLegacy } from './plugin-legacy';
···11-import { satisfies } from '../../../config/utils/package';
22-import type { IR } from '../../../ir/types';
33-import type { OpenApiV2_0_XTypes } from '../../../openApi/2.0.x';
44-import type { OpenApiV3_0_XTypes } from '../../../openApi/3.0.x';
55-import type { OpenApiV3_1_XTypes } from '../../../openApi/3.1.x';
66-import { ensureValidIdentifier } from '../../../openApi/shared/utils/identifier';
77-import type { OpenApi } from '../../../openApi/types';
88-import { tsc } from '../../../tsc';
11+import { satisfies } from '~/config/utils/package';
22+import type { IR } from '~/ir/types';
33+import type { OpenApiV2_0_XTypes } from '~/openApi/2.0.x';
44+import type { OpenApiV3_0_XTypes } from '~/openApi/3.0.x';
55+import type { OpenApiV3_1_XTypes } from '~/openApi/3.1.x';
66+import { ensureValidIdentifier } from '~/openApi/shared/utils/identifier';
77+import type { OpenApi } from '~/openApi/types';
88+import { tsc } from '~/tsc';
99+910import type { HeyApiSchemasPlugin } from './types';
10111112const stripSchema = ({
···11-import type { OpenApiV2Schema, OpenApiV3Schema } from '../../../openApi';
22-import type { OpenApiV2_0_XTypes } from '../../../openApi/2.0.x';
33-import type { OpenApiV3_0_XTypes } from '../../../openApi/3.0.x';
44-import type { OpenApiV3_1_XTypes } from '../../../openApi/3.1.x';
55-import type { DefinePlugin, Plugin } from '../../types';
11+import type { OpenApiV2Schema, OpenApiV3Schema } from '~/openApi';
22+import type { OpenApiV2_0_XTypes } from '~/openApi/2.0.x';
33+import type { OpenApiV3_0_XTypes } from '~/openApi/3.0.x';
44+import type { OpenApiV3_1_XTypes } from '~/openApi/3.1.x';
55+import type { DefinePlugin, Plugin } from '~/plugins/types';
66+67import type { IApi } from './api';
7889export type UserConfig = Plugin.Name<'@hey-api/schemas'> &
···55import type ts from 'typescript';
66import { describe, expect, it, vi } from 'vitest';
7788-import { openApi } from '../../../../generate/__tests__/mocks';
99-import { GeneratedFile } from '../../../../generate/file';
1010-import type { Operation } from '../../../../types/client';
1111-import type { Config } from '../../../../types/config';
1212-import type { Files } from '../../../../types/utils';
1313-import { setConfig } from '../../../../utils/config';
1414-import { PluginInstance } from '../../../shared/utils/instance';
88+import { openApi } from '~/generate/__tests__/mocks';
99+import { GeneratedFile } from '~/generate/file';
1010+import { PluginInstance } from '~/plugins/shared/utils/instance';
1111+import type { Operation } from '~/types/client';
1212+import type { Config } from '~/types/config';
1313+import type { Files } from '~/types/utils';
1414+import { setConfig } from '~/utils/config';
1515+1516import { handlerLegacy } from '../plugin-legacy';
16171718vi.mock('node:fs');
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
44+45import { createOperationComment } from './comment';
5667type SelectorType =
···11-import type { IR } from '../../../ir/types';
11+import type { IR } from '~/ir/types';
22+23import type { Auth } from '../client-core/bundle/auth';
34import type { HeyApiSdkPlugin } from './types';
45
···11-import type { IR } from '../../../ir/types';
22-import type { Comments } from '../../../tsc';
33-import { escapeComment } from '../../../utils/escape';
11+import type { IR } from '~/ir/types';
22+import type { Comments } from '~/tsc';
33+import { escapeComment } from '~/utils/escape';
4455export const createOperationComment = ({
66 operation,
···11-import { definePluginConfig } from '../../shared/utils/config';
11+import { definePluginConfig } from '~/plugins/shared/utils/config';
22+23import { Api } from './api';
34import { handler } from './plugin';
45import { handlerLegacy } from './plugin-legacy';
···11import type ts from 'typescript';
2233-import { statusCodeToGroup } from '../../../ir/operation';
44-import type { IR } from '../../../ir/types';
55-import { sanitizeNamespaceIdentifier } from '../../../openApi';
66-import { ensureValidIdentifier } from '../../../openApi/shared/utils/identifier';
77-import { tsc } from '../../../tsc';
88-import type { FunctionParameter, ObjectValue } from '../../../tsc/types';
99-import { reservedJavaScriptKeywordsRegExp } from '../../../utils/regexp';
1010-import { stringCase } from '../../../utils/stringCase';
1111-import { transformClassName } from '../../../utils/transform';
33+import { statusCodeToGroup } from '~/ir/operation';
44+import type { IR } from '~/ir/types';
55+import { sanitizeNamespaceIdentifier } from '~/openApi';
66+import { ensureValidIdentifier } from '~/openApi/shared/utils/identifier';
77+import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
88+import { tsc } from '~/tsc';
99+import type { FunctionParameter, ObjectValue } from '~/tsc/types';
1010+import { reservedJavaScriptKeywordsRegExp } from '~/utils/regexp';
1111+import { stringCase } from '~/utils/stringCase';
1212+import { transformClassName } from '~/utils/transform';
1313+1214import type { Field, Fields } from '../client-core/bundle/params';
1313-import { getClientPlugin } from '../client-core/utils';
1415import { operationAuth } from './auth';
1516import { nuxtTypeComposable, nuxtTypeDefault } from './constants';
1617// import { getSignatureParameters } from './signature';
···11import type ts from 'typescript';
2233-import { clientModulePath } from '../../../generate/client';
44-import { GeneratedFile } from '../../../generate/file';
55-import type { IR } from '../../../ir/types';
66-import { isOperationParameterRequired } from '../../../openApi';
77-import type { Comments, FunctionParameter } from '../../../tsc';
88-import { tsc } from '../../../tsc';
99-import type { FunctionTypeParameter, ObjectValue } from '../../../tsc/types';
33+import { clientModulePath } from '~/generate/client';
44+import { GeneratedFile } from '~/generate/file';
55+import type { IR } from '~/ir/types';
66+import { isOperationParameterRequired } from '~/openApi';
77+import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
88+import type { Comments, FunctionParameter } from '~/tsc';
99+import { tsc } from '~/tsc';
1010+import type { FunctionTypeParameter, ObjectValue } from '~/tsc/types';
1011import type {
1112 Client,
1213 Model,
1314 Operation,
1415 OperationParameter,
1516 Service,
1616-} from '../../../types/client';
1717-import type { Config as ClientConfig } from '../../../types/config';
1717+} from '~/types/client';
1818+import type { Config as ClientConfig } from '~/types/config';
1819import {
1920 getConfig,
2021 isLegacyClient,
2122 legacyNameFromConfig,
2222-} from '../../../utils/config';
2323-import { escapeComment, escapeName } from '../../../utils/escape';
2424-import { reservedJavaScriptKeywordsRegExp } from '../../../utils/regexp';
2525-import { stringCase } from '../../../utils/stringCase';
2626-import { transformClassName } from '../../../utils/transform';
2727-import { setUniqueTypeName } from '../../../utils/type';
2828-import { unique } from '../../../utils/unique';
2929-import { getClientPlugin } from '../client-core/utils';
2323+} from '~/utils/config';
2424+import { escapeComment, escapeName } from '~/utils/escape';
2525+import { reservedJavaScriptKeywordsRegExp } from '~/utils/regexp';
2626+import { stringCase } from '~/utils/stringCase';
2727+import { transformClassName } from '~/utils/transform';
2828+import { setUniqueTypeName } from '~/utils/type';
2929+import { unique } from '~/utils/unique';
3030+3031import type { HeyApiSdkPlugin } from './types';
31323233type OnNode = (node: ts.Node) => void;
···11-import type { IR } from '../../../ir/types';
22-import type { StringName } from '../../../types/case';
33-import type { Operation } from '../../../types/client';
11+import type { IR } from '~/ir/types';
42import type {
53 DefinePlugin,
64 Plugin,
75 PluginClientNames,
86 PluginValidatorNames,
99-} from '../../types';
77+} from '~/plugins/types';
88+import type { StringName } from '~/types/case';
99+import type { Operation } from '~/types/client';
1010+1011import type { IApi } from './api';
11121213export type UserConfig = Plugin.Name<'@hey-api/sdk'> &
···11import type ts from 'typescript';
2233-import type { IR } from '../../../ir/types';
33+import type { IR } from '~/ir/types';
44+45import type { HeyApiSdkPlugin } from './types';
5667interface ValidatorProps {
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType = 'response' | 'response-ref';
66
···11import type ts from 'typescript';
2233-import type { IR } from '../../../ir/types';
44-import { tsc } from '../../../tsc';
33+import type { IR } from '~/ir/types';
44+import { tsc } from '~/tsc';
55+56import type { UserConfig } from './types';
6778export type ExpressionTransformer = ({
···11import ts from 'typescript';
2233-import {
44- createOperationKey,
55- operationResponsesMap,
66-} from '../../../ir/operation';
77-import type { IR } from '../../../ir/types';
88-import { buildName } from '../../../openApi/shared/utils/name';
99-import { tsc } from '../../../tsc';
1010-import { refToName } from '../../../utils/ref';
33+import { createOperationKey, operationResponsesMap } from '~/ir/operation';
44+import type { IR } from '~/ir/types';
55+import { buildName } from '~/openApi/shared/utils/name';
66+import { tsc } from '~/tsc';
77+import { refToName } from '~/utils/ref';
88+119import type { HeyApiTransformersPlugin } from './types';
12101311const dataVariableName = 'data';
···11import type ts from 'typescript';
2233-import type { IR } from '../../../ir/types';
44-import type { DefinePlugin, Plugin } from '../../types';
33+import type { IR } from '~/ir/types';
44+import type { DefinePlugin, Plugin } from '~/plugins/types';
55+56import type { IApi } from './api';
67import type { ExpressionTransformer } from './expressions';
78
···44import type ts from 'typescript';
55import { describe, expect, it, vi } from 'vitest';
6677-import { openApi } from '../../../../generate/__tests__/mocks';
88-import { GeneratedFile } from '../../../../generate/file';
99-import type { Config } from '../../../../types/config';
1010-import { setConfig } from '../../../../utils/config';
1111-import { PluginInstance } from '../../../shared/utils/instance';
77+import { openApi } from '~/generate/__tests__/mocks';
88+import { GeneratedFile } from '~/generate/file';
99+import { PluginInstance } from '~/plugins/shared/utils/instance';
1010+import type { Config } from '~/types/config';
1111+import { setConfig } from '~/utils/config';
1212+1213import { handlerLegacy } from '../plugin-legacy';
13141415vi.mock('node:fs');
···11import type { Selector } from '@hey-api/codegen-core';
22import type ts from 'typescript';
3344-import type { Plugin } from '../../types';
44+import type { Plugin } from '~/plugins/types';
55+56import { schemaToType } from './plugin';
6778type SelectorType =
···11import type { Symbol } from '@hey-api/codegen-core';
22import ts from 'typescript';
3344-import type { IR } from '../../../ir/types';
55-import { tsc } from '../../../tsc';
66-import { parseUrl } from '../../../utils/url';
77-import { getClientBaseUrlKey, getClientPlugin } from '../client-core/utils';
44+import type { IR } from '~/ir/types';
55+import {
66+ getClientBaseUrlKey,
77+ getClientPlugin,
88+} from '~/plugins/@hey-api/client-core/utils';
99+import { tsc } from '~/tsc';
1010+import { parseUrl } from '~/utils/url';
1111+812import type { HeyApiTypeScriptPlugin } from './types';
9131014const stringType = tsc.keywordTypeNode({ keyword: 'string' });
···11-import { definePluginConfig } from '../../shared/utils/config';
11+import { definePluginConfig } from '~/plugins/shared/utils/config';
22+23import { Api } from './api';
34import { handler } from './plugin';
45import { handlerLegacy } from './plugin-legacy';
···11import type { Symbol } from '@hey-api/codegen-core';
22import type ts from 'typescript';
3344-import type { IR } from '../../../ir/types';
55-import { tsc } from '../../../tsc';
66-import { numberRegExp } from '../../../utils/regexp';
77-import { stringCase } from '../../../utils/stringCase';
88-import { createSchemaComment } from '../../shared/utils/schema';
44+import type { IR } from '~/ir/types';
55+import { createSchemaComment } from '~/plugins/shared/utils/schema';
66+import { tsc } from '~/tsc';
77+import { numberRegExp } from '~/utils/regexp';
88+import { stringCase } from '~/utils/stringCase';
99+910import type { HeyApiTypeScriptPlugin } from './types';
10111112const schemaToEnumObject = ({
···11-import { operationResponsesMap } from '../../../ir/operation';
22-import { deduplicateSchema } from '../../../ir/schema';
33-import type { IR } from '../../../ir/types';
44-import { buildName } from '../../../openApi/shared/utils/name';
55-import { tsc } from '../../../tsc';
11+import { operationResponsesMap } from '~/ir/operation';
22+import { deduplicateSchema } from '~/ir/schema';
33+import type { IR } from '~/ir/types';
44+import { buildName } from '~/openApi/shared/utils/name';
55+import { tsc } from '~/tsc';
66+67import { schemaToType } from './plugin';
78import type { HeyApiTypeScriptPlugin } from './types';
89
···11import type ts from 'typescript';
2233-import { deduplicateSchema } from '../../../ir/schema';
44-import type { IR } from '../../../ir/types';
55-import { buildName } from '../../../openApi/shared/utils/name';
66-import type { Property } from '../../../tsc';
77-import { tsc } from '../../../tsc';
88-import { refToName } from '../../../utils/ref';
99-import { stringCase } from '../../../utils/stringCase';
1010-import type { SchemaWithType } from '../../shared/types/schema';
1111-import { fieldName } from '../../shared/utils/case';
1212-import { createSchemaComment } from '../../shared/utils/schema';
33+import { deduplicateSchema } from '~/ir/schema';
44+import type { IR } from '~/ir/types';
55+import { buildName } from '~/openApi/shared/utils/name';
66+import type { SchemaWithType } from '~/plugins/shared/types/schema';
77+import { fieldName } from '~/plugins/shared/utils/case';
88+import { createSchemaComment } from '~/plugins/shared/utils/schema';
99+import type { Property } from '~/tsc';
1010+import { tsc } from '~/tsc';
1111+import { refToName } from '~/utils/ref';
1212+import { stringCase } from '~/utils/stringCase';
1313+1314import { createClientOptions } from './clientOptions';
1415import { exportType } from './export';
1516import { operationToType } from './operation';
···11-import type { StringCase, StringName } from '../../../types/case';
22-import type { DefinePlugin, Plugin } from '../../types';
11+import type { DefinePlugin, Plugin } from '~/plugins/types';
22+import type { StringCase, StringName } from '~/types/case';
33+34import type { IApi } from './api';
4556export type EnumsType = 'javascript' | 'typescript' | 'typescript-const';
···11-import type { IR } from '../../../ir/types';
22-import { buildName } from '../../../openApi/shared/utils/name';
33-import { tsc } from '../../../tsc';
44-import { createSchemaComment } from '../../shared/utils/schema';
11+import type { IR } from '~/ir/types';
22+import { buildName } from '~/openApi/shared/utils/name';
33+import { createSchemaComment } from '~/plugins/shared/utils/schema';
44+import { tsc } from '~/tsc';
55+56import { schemaToType } from './plugin';
67import type { HeyApiTypeScriptPlugin } from './types';
78
···11import type { Symbol } from '@hey-api/codegen-core';
2233-import { tsc } from '../../../tsc';
33+import { tsc } from '~/tsc';
44+45import type { HeyApiTypeScriptPlugin } from './types';
5667export const createWebhooks = ({
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType =
66 | '_JSONValue'
···11-import { definePluginConfig } from '../../shared/utils/config';
11+import { definePluginConfig } from '~/plugins/shared/utils/config';
22+23import { Api } from './api';
34import { handler } from './plugin';
45import type { PiniaColadaPlugin } from './types';
···11import type ts from 'typescript';
2233-import type { IR } from '../../../ir/types';
44-import { tsc } from '../../../tsc';
33+import type { IR } from '~/ir/types';
44+import { tsc } from '~/tsc';
55+56import type { PiniaColadaPlugin } from './types';
6778export const handleMeta = (
···11import type ts from 'typescript';
2233-import type { IR } from '../../../ir/types';
44-import { buildName } from '../../../openApi/shared/utils/name';
55-import { tsc } from '../../../tsc';
33+import type { IR } from '~/ir/types';
44+import { buildName } from '~/openApi/shared/utils/name';
55+import { tsc } from '~/tsc';
66+67import { handleMeta } from './meta';
78import type { PiniaColadaPlugin } from './types';
89import { useTypeData, useTypeError, useTypeResponse } from './useType';
···11import type { Symbol } from '@hey-api/codegen-core';
22import type { Expression } from 'typescript';
3344-import { clientFolderAbsolutePath } from '../../../generate/client';
55-import { hasOperationDataRequired } from '../../../ir/operation';
66-import type { IR } from '../../../ir/types';
77-import { buildName } from '../../../openApi/shared/utils/name';
88-import { type Property, tsc } from '../../../tsc';
44+import { clientFolderAbsolutePath } from '~/generate/client';
55+import { hasOperationDataRequired } from '~/ir/operation';
66+import type { IR } from '~/ir/types';
77+import { buildName } from '~/openApi/shared/utils/name';
98import {
109 getClientBaseUrlKey,
1110 getClientPlugin,
1212-} from '../../@hey-api/client-core/utils';
1111+} from '~/plugins/@hey-api/client-core/utils';
1212+import { type Property, tsc } from '~/tsc';
1313+1314import type { PiniaColadaPlugin } from './types';
1415import { useTypeData } from './useType';
1516import { getPublicTypeData } from './utils';
···11import type ts from 'typescript';
2233-import type { IR } from '../../../ir/types';
44-import { buildName } from '../../../openApi/shared/utils/name';
55-import { tsc } from '../../../tsc';
33+import type { IR } from '~/ir/types';
44+import { buildName } from '~/openApi/shared/utils/name';
65import {
76 hasOperationSse,
87 isOperationOptionsRequired,
99-} from '../../shared/utils/operation';
88+} from '~/plugins/shared/utils/operation';
99+import { tsc } from '~/tsc';
1010+1011import { handleMeta } from './meta';
1112import {
1213 createQueryKeyFunction,
···11-import type { IR } from '../../../ir/types';
22-import type { StringCase, StringName } from '../../../types/case';
33-import type { DefinePlugin, Plugin } from '../../types';
11+import type { IR } from '~/ir/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
33+import type { StringCase, StringName } from '~/types/case';
44+45import type { IApi } from './api';
5667export type UserConfig = Plugin.Name<'@pinia/colada'> &
···11-import type { IR } from '../../../ir/types';
22-import { getClientPlugin } from '../../@hey-api/client-core/utils';
33-import { operationOptionsType } from '../../@hey-api/sdk/operation';
11+import type { IR } from '~/ir/types';
22+import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
33+import { operationOptionsType } from '~/plugins/@hey-api/sdk/operation';
44+45import type { PiniaColadaPlugin } from './types';
5667export const useTypeData = ({
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType =
66 | 'AxiosError'
···11-import { definePluginConfig } from '../../shared/utils/config';
22-import { handler } from '../query-core/plugin';
33-import { handlerLegacy } from '../query-core/plugin-legacy';
11+import { handler } from '~/plugins/@tanstack/query-core/plugin';
22+import { handlerLegacy } from '~/plugins/@tanstack/query-core/plugin-legacy';
33+import { definePluginConfig } from '~/plugins/shared/utils/config';
44+45import { Api } from './api';
56import type { TanStackAngularQueryPlugin } from './types';
67
···11-import type { IR } from '../../../ir/types';
22-import type { StringCase, StringName } from '../../../types/case';
33-import type { DefinePlugin, Plugin } from '../../types';
11+import type { IR } from '~/ir/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
33+import type { StringCase, StringName } from '~/types/case';
44+45import type { IApi } from './api';
5667export type UserConfig = Plugin.Name<'@tanstack/angular-query-experimental'> &
···11import ts from 'typescript';
2233-import { operationPagination } from '../../../ir/operation';
44-import type { IR } from '../../../ir/types';
55-import { buildName } from '../../../openApi/shared/utils/name';
66-import { tsc } from '../../../tsc';
77-import { tsNodeToString } from '../../../tsc/utils';
88-import { isOperationOptionsRequired } from '../../shared/utils/operation';
33+import { operationPagination } from '~/ir/operation';
44+import type { IR } from '~/ir/types';
55+import { buildName } from '~/openApi/shared/utils/name';
66+import { isOperationOptionsRequired } from '~/plugins/shared/utils/operation';
77+import { tsc } from '~/tsc';
88+import { tsNodeToString } from '~/tsc/utils';
99+910import { handleMeta } from './meta';
1011import {
1112 createQueryKeyFunction,
···11import type ts from 'typescript';
2233-import type { IR } from '../../../ir/types';
44-import { tsc } from '../../../tsc';
33+import type { IR } from '~/ir/types';
44+import { tsc } from '~/tsc';
55+56import type { PluginInstance } from './types';
6778export const handleMeta = (
···11import type ts from 'typescript';
2233-import type { IR } from '../../../ir/types';
44-import { buildName } from '../../../openApi/shared/utils/name';
55-import { tsc } from '../../../tsc';
33+import type { IR } from '~/ir/types';
44+import { buildName } from '~/openApi/shared/utils/name';
55+import { tsc } from '~/tsc';
66+67import { handleMeta } from './meta';
78import type { PluginInstance } from './types';
89import { useTypeData, useTypeError, useTypeResponse } from './useType';
···11import ts from 'typescript';
2233-import { clientModulePath } from '../../../generate/client';
44-import { relativeModulePath } from '../../../generate/utils';
55-import { createOperationKey } from '../../../ir/operation';
66-import { getPaginationKeywordsRegExp } from '../../../ir/pagination';
77-import type { IR } from '../../../ir/types';
88-import { isOperationParameterRequired } from '../../../openApi';
99-import { type Property, tsc } from '../../../tsc';
1010-import type { ImportExportItem } from '../../../tsc/module';
1111-import type { ImportExportItemObject } from '../../../tsc/utils';
1212-import type {
1313- Client,
1414- Method,
1515- Model,
1616- Operation,
1717- OperationParameter,
1818-} from '../../../types/client';
1919-import type { Config } from '../../../types/config';
2020-import type { Files } from '../../../types/utils';
2121-import { getConfig, isLegacyClient } from '../../../utils/config';
2222-import { transformClassName } from '../../../utils/transform';
33+import { clientModulePath } from '~/generate/client';
44+import { relativeModulePath } from '~/generate/utils';
55+import { createOperationKey } from '~/ir/operation';
66+import { getPaginationKeywordsRegExp } from '~/ir/pagination';
77+import type { IR } from '~/ir/types';
88+import { isOperationParameterRequired } from '~/openApi';
239import {
2410 getClientBaseUrlKey,
2511 getClientPlugin,
2626-} from '../../@hey-api/client-core/utils';
1212+} from '~/plugins/@hey-api/client-core/utils';
2713import {
2814 generateImport,
2915 operationDataTypeName,
···3117 operationOptionsLegacyParserType,
3218 operationResponseTypeName,
3319 serviceFunctionIdentifier,
3434-} from '../../@hey-api/sdk/plugin-legacy';
3535-import type { TanStackAngularQueryPlugin } from '../angular-query-experimental';
3636-import type { TanStackReactQueryPlugin } from '../react-query';
3737-import type { TanStackSolidQueryPlugin } from '../solid-query';
3838-import type { TanStackSvelteQueryPlugin } from '../svelte-query';
3939-import type { TanStackVueQueryPlugin } from '../vue-query';
2020+} from '~/plugins/@hey-api/sdk/plugin-legacy';
2121+import type { TanStackAngularQueryPlugin } from '~/plugins/@tanstack/angular-query-experimental';
2222+import type { TanStackReactQueryPlugin } from '~/plugins/@tanstack/react-query';
2323+import type { TanStackSolidQueryPlugin } from '~/plugins/@tanstack/solid-query';
2424+import type { TanStackSvelteQueryPlugin } from '~/plugins/@tanstack/svelte-query';
2525+import type { TanStackVueQueryPlugin } from '~/plugins/@tanstack/vue-query';
2626+import { type Property, tsc } from '~/tsc';
2727+import type { ImportExportItem } from '~/tsc/module';
2828+import type { ImportExportItemObject } from '~/tsc/utils';
2929+import type {
3030+ Client,
3131+ Method,
3232+ Model,
3333+ Operation,
3434+ OperationParameter,
3535+} from '~/types/client';
3636+import type { Config } from '~/types/config';
3737+import type { Files } from '~/types/utils';
3838+import { getConfig, isLegacyClient } from '~/utils/config';
3939+import { transformClassName } from '~/utils/transform';
40404141const toInfiniteQueryOptionsName = (operation: Operation) =>
4242 `${serviceFunctionIdentifier({
···11import type { Symbol } from '@hey-api/codegen-core';
22import type { Expression } from 'typescript';
3344-import { hasOperationDataRequired } from '../../../ir/operation';
55-import type { IR } from '../../../ir/types';
66-import { buildName } from '../../../openApi/shared/utils/name';
77-import { type Property, tsc } from '../../../tsc';
44+import { hasOperationDataRequired } from '~/ir/operation';
55+import type { IR } from '~/ir/types';
66+import { buildName } from '~/openApi/shared/utils/name';
87import {
98 getClientBaseUrlKey,
109 getClientPlugin,
1111-} from '../../@hey-api/client-core/utils';
1010+} from '~/plugins/@hey-api/client-core/utils';
1111+import { type Property, tsc } from '~/tsc';
1212+1213import type { PluginInstance } from './types';
1314import { useTypeData } from './useType';
1415
···11import type ts from 'typescript';
2233-import type { IR } from '../../../ir/types';
44-import { buildName } from '../../../openApi/shared/utils/name';
55-import { tsc } from '../../../tsc';
33+import type { IR } from '~/ir/types';
44+import { buildName } from '~/openApi/shared/utils/name';
65import {
76 hasOperationSse,
87 isOperationOptionsRequired,
99-} from '../../shared/utils/operation';
88+} from '~/plugins/shared/utils/operation';
99+import { tsc } from '~/tsc';
1010+1011import { handleMeta } from './meta';
1112import {
1213 createQueryKeyFunction,
···11-import type { TanStackAngularQueryPlugin } from '../angular-query-experimental/types';
22-import type { TanStackReactQueryPlugin } from '../react-query/types';
33-import type { TanStackSolidQueryPlugin } from '../solid-query/types';
44-import type { TanStackSvelteQueryPlugin } from '../svelte-query/types';
55-import type { TanStackVueQueryPlugin } from '../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;
···11-import type { IR } from '../../../ir/types';
22-import { buildName } from '../../../openApi/shared/utils/name';
33-import { tsc } from '../../../tsc';
11+import type { IR } from '~/ir/types';
22+import { buildName } from '~/openApi/shared/utils/name';
43import {
54 hasOperationSse,
65 isOperationOptionsRequired,
77-} from '../../shared/utils/operation';
66+} from '~/plugins/shared/utils/operation';
77+import { tsc } from '~/tsc';
88+89import type { PluginInstance } from './types';
910import { useTypeData } from './useType';
1011
···11-import type { IR } from '../../../ir/types';
22-import { getClientPlugin } from '../../@hey-api/client-core/utils';
33-import { operationOptionsType } from '../../@hey-api/sdk/operation';
11+import type { IR } from '~/ir/types';
22+import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
33+import { operationOptionsType } from '~/plugins/@hey-api/sdk/operation';
44+45import type { PluginInstance } from './types';
5667export const useTypeData = ({
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType =
66 | 'AxiosError'
···11-import { definePluginConfig } from '../../shared/utils/config';
22-import { handler } from '../query-core/plugin';
33-import { handlerLegacy } from '../query-core/plugin-legacy';
11+import { handler } from '~/plugins/@tanstack/query-core/plugin';
22+import { handlerLegacy } from '~/plugins/@tanstack/query-core/plugin-legacy';
33+import { definePluginConfig } from '~/plugins/shared/utils/config';
44+45import { Api } from './api';
56import type { TanStackReactQueryPlugin } from './types';
67
···11-import type { IR } from '../../../ir/types';
22-import type { StringCase, StringName } from '../../../types/case';
33-import type { DefinePlugin, Plugin } from '../../types';
11+import type { IR } from '~/ir/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
33+import type { StringCase, StringName } from '~/types/case';
44+45import type { IApi } from './api';
5667export type UserConfig = Plugin.Name<'@tanstack/react-query'> &
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType =
66 | 'AxiosError'
···11-import { definePluginConfig } from '../../shared/utils/config';
22-import { handler } from '../query-core/plugin';
33-import { handlerLegacy } from '../query-core/plugin-legacy';
11+import { handler } from '~/plugins/@tanstack/query-core/plugin';
22+import { handlerLegacy } from '~/plugins/@tanstack/query-core/plugin-legacy';
33+import { definePluginConfig } from '~/plugins/shared/utils/config';
44+45import { Api } from './api';
56import type { TanStackSolidQueryPlugin } from './types';
67
···11-import type { IR } from '../../../ir/types';
22-import type { StringCase, StringName } from '../../../types/case';
33-import type { DefinePlugin, Plugin } from '../../types';
11+import type { IR } from '~/ir/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
33+import type { StringCase, StringName } from '~/types/case';
44+45import type { IApi } from './api';
5667export type UserConfig = Plugin.Name<'@tanstack/solid-query'> &
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType =
66 | 'AxiosError'
···11-import { definePluginConfig } from '../../shared/utils/config';
22-import { handler } from '../query-core/plugin';
33-import { handlerLegacy } from '../query-core/plugin-legacy';
11+import { handler } from '~/plugins/@tanstack/query-core/plugin';
22+import { handlerLegacy } from '~/plugins/@tanstack/query-core/plugin-legacy';
33+import { definePluginConfig } from '~/plugins/shared/utils/config';
44+45import { Api } from './api';
56import type { TanStackSvelteQueryPlugin } from './types';
67
···11-import type { IR } from '../../../ir/types';
22-import type { StringCase, StringName } from '../../../types/case';
33-import type { DefinePlugin, Plugin } from '../../types';
11+import type { IR } from '~/ir/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
33+import type { StringCase, StringName } from '~/types/case';
44+45import type { IApi } from './api';
5667export type UserConfig = Plugin.Name<'@tanstack/svelte-query'> &
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType =
66 | 'AxiosError'
···11-import { definePluginConfig } from '../../shared/utils/config';
22-import { handler } from '../query-core/plugin';
33-import { handlerLegacy } from '../query-core/plugin-legacy';
11+import { handler } from '~/plugins/@tanstack/query-core/plugin';
22+import { handlerLegacy } from '~/plugins/@tanstack/query-core/plugin-legacy';
33+import { definePluginConfig } from '~/plugins/shared/utils/config';
44+45import { Api } from './api';
56import type { TanStackVueQueryPlugin } from './types';
67
···11-import type { IR } from '../../../ir/types';
22-import type { StringCase, StringName } from '../../../types/case';
33-import type { DefinePlugin, Plugin } from '../../types';
11+import type { IR } from '~/ir/types';
22+import type { DefinePlugin, Plugin } from '~/plugins/types';
33+import type { StringCase, StringName } from '~/types/case';
44+45import type { IApi } from './api';
5667export type UserConfig = Plugin.Name<'@tanstack/vue-query'> &
+2-1
packages/openapi-ts/src/plugins/arktype/api.ts
···11import type { Selector } from '@hey-api/codegen-core';
22import type ts from 'typescript';
3344-import type { Plugin } from '../types';
44+import type { Plugin } from '~/plugins/types';
55+56import type { ValidatorArgs } from './shared/types';
67import { createRequestValidatorV2, createResponseValidatorV2 } from './v2/api';
78
+2-1
packages/openapi-ts/src/plugins/arktype/config.ts
···11-import { definePluginConfig, mappers } from '../shared/utils/config';
11+import { definePluginConfig, mappers } from '~/plugins/shared/utils/config';
22+23import { Api } from './api';
34import { handler } from './plugin';
45import type { ArktypePlugin } from './types';
···11import type { Symbol } from '@hey-api/codegen-core';
22import ts from 'typescript';
3344-import type { IR } from '../../../ir/types';
55-import { tsc } from '../../../tsc';
66-import { createSchemaComment } from '../../shared/utils/schema';
44+import type { IR } from '~/ir/types';
55+import { createSchemaComment } from '~/plugins/shared/utils/schema';
66+import { tsc } from '~/tsc';
77+78import { identifiers } from '../constants';
89import type { ArktypePlugin } from '../types';
910import type { Ast } from './types';
···11import type ts from 'typescript';
2233-import type { IR } from '../../../ir/types';
44-import type { ToRefs } from '../../shared/types/refs';
33+import type { IR } from '~/ir/types';
44+import type { ToRefs } from '~/plugins/shared/types/refs';
55+56import type { ArktypePlugin } from '../types';
6778export type Ast = {
···11-import type { StringCase, StringName } from '../../types/case';
22-import type { DefinePlugin, Plugin } from '../types';
11+import type { DefinePlugin, Plugin } from '~/plugins/types';
22+import type { StringCase, StringName } from '~/types/case';
33+34import type { IApi } from './api';
4556export type UserConfig = Plugin.Name<'arktype'> &
+2-1
packages/openapi-ts/src/plugins/arktype/v2/api.ts
···11import type ts from 'typescript';
2233-import { tsc } from '../../../tsc';
33+import { tsc } from '~/tsc';
44+45// import { identifiers } from '../constants';
56import type { ValidatorArgs } from '../shared/types';
67
···11-import { deduplicateSchema } from '../../../ir/schema';
22-import type { IR } from '../../../ir/types';
33-import { buildName } from '../../../openApi/shared/utils/name';
44-import { tsc } from '../../../tsc';
55-import { refToName } from '../../../utils/ref';
66-import type { SchemaWithType } from '../../shared/types/schema';
77-import { pathToSymbolResourceType } from '../../shared/utils/meta';
88-import { toRefs } from '../../shared/utils/refs';
11+import { deduplicateSchema } from '~/ir/schema';
22+import type { IR } from '~/ir/types';
33+import { buildName } from '~/openApi/shared/utils/name';
44+import type { SchemaWithType } from '~/plugins/shared/types/schema';
55+import { pathToSymbolResourceType } from '~/plugins/shared/utils/meta';
66+import { toRefs } from '~/plugins/shared/utils/refs';
77+import { tsc } from '~/tsc';
88+import { refToName } from '~/utils/ref';
99+910import { exportAst } from '../shared/export';
1011import type { Ast, IrSchemaToAstOptions } from '../shared/types';
1112import type { ArktypePlugin } from '../types';
···11import ts from 'typescript';
2233-import type { SchemaWithType } from '../../../shared/types/schema';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56import { nullToAst } from './null';
67import { objectToAst } from './object';
···11-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+23import { identifiers } from '../../constants';
34import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
45
···11import ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import { numberRegExp } from '../../../../utils/regexp';
55-import type { SchemaWithType } from '../../../shared/types/schema';
66-import { toRef } from '../../../shared/utils/refs';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { toRef } from '~/plugins/shared/utils/refs';
55+import { tsc } from '~/tsc';
66+import { numberRegExp } from '~/utils/regexp';
77+78// import { identifiers } from '../../constants';
89import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
910import { irSchemaToAst } from '../plugin';
···11-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+23import { identifiers } from '../../constants';
34import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
45
+53-53
packages/openapi-ts/src/plugins/config.ts
···11-import type { AngularCommonPlugin } from './@angular/common';
22-import { defaultConfig as angularCommon } from './@angular/common';
33-import type { HeyApiClientAngularPlugin } from './@hey-api/client-angular';
44-import { defaultConfig as heyApiClientAngular } from './@hey-api/client-angular';
55-import type { HeyApiClientAxiosPlugin } from './@hey-api/client-axios';
66-import { defaultConfig as heyApiClientAxios } from './@hey-api/client-axios';
77-import type { HeyApiClientFetchPlugin } from './@hey-api/client-fetch';
88-import { defaultConfig as heyApiClientFetch } from './@hey-api/client-fetch';
99-import type { HeyApiClientNextPlugin } from './@hey-api/client-next';
1010-import { defaultConfig as heyApiClientNext } from './@hey-api/client-next';
1111-import type { HeyApiClientNuxtPlugin } from './@hey-api/client-nuxt';
1212-import { defaultConfig as heyApiClientNuxt } from './@hey-api/client-nuxt';
1313-import type { HeyApiClientOfetchPlugin } from './@hey-api/client-ofetch';
1414-import { defaultConfig as heyApiClientOfetch } from './@hey-api/client-ofetch';
1515-import type { HeyApiClientLegacyAngularPlugin } from './@hey-api/legacy-angular';
1616-import { defaultConfig as heyApiLegacyAngular } from './@hey-api/legacy-angular';
1717-import type { HeyApiClientLegacyAxiosPlugin } from './@hey-api/legacy-axios';
1818-import { defaultConfig as heyApiLegacyAxios } from './@hey-api/legacy-axios';
1919-import type { HeyApiClientLegacyFetchPlugin } from './@hey-api/legacy-fetch';
2020-import { defaultConfig as heyApiLegacyFetch } from './@hey-api/legacy-fetch';
2121-import type { HeyApiClientLegacyNodePlugin } from './@hey-api/legacy-node';
2222-import { defaultConfig as heyApiLegacyNode } from './@hey-api/legacy-node';
2323-import type { HeyApiClientLegacyXhrPlugin } from './@hey-api/legacy-xhr';
2424-import { defaultConfig as heyApiLegacyXhr } from './@hey-api/legacy-xhr';
2525-import type { HeyApiSchemasPlugin } from './@hey-api/schemas';
2626-import { defaultConfig as heyApiSchemas } from './@hey-api/schemas';
2727-import type { HeyApiSdkPlugin } from './@hey-api/sdk';
2828-import { defaultConfig as heyApiSdk } from './@hey-api/sdk';
2929-import type { HeyApiTransformersPlugin } from './@hey-api/transformers';
3030-import { defaultConfig as heyApiTransformers } from './@hey-api/transformers';
3131-import type { HeyApiTypeScriptPlugin } from './@hey-api/typescript';
3232-import { defaultConfig as heyApiTypeScript } from './@hey-api/typescript';
3333-import type { PiniaColadaPlugin } from './@pinia/colada';
3434-import { defaultConfig as piniaColada } from './@pinia/colada';
3535-import type { TanStackAngularQueryPlugin } from './@tanstack/angular-query-experimental';
3636-import { defaultConfig as tanStackAngularQuery } from './@tanstack/angular-query-experimental';
3737-import type { TanStackReactQueryPlugin } from './@tanstack/react-query';
3838-import { defaultConfig as tanStackReactQuery } from './@tanstack/react-query';
3939-import type { TanStackSolidQueryPlugin } from './@tanstack/solid-query';
4040-import { defaultConfig as tanStackSolidQuery } from './@tanstack/solid-query';
4141-import type { TanStackSvelteQueryPlugin } from './@tanstack/svelte-query';
4242-import { defaultConfig as tanStackSvelteQuery } from './@tanstack/svelte-query';
4343-import type { TanStackVueQueryPlugin } from './@tanstack/vue-query';
4444-import { defaultConfig as tanStackVueQuery } from './@tanstack/vue-query';
4545-import type { ArktypePlugin } from './arktype';
4646-import { defaultConfig as arktype } from './arktype';
4747-import type { FastifyPlugin } from './fastify';
4848-import { defaultConfig as fastify } from './fastify';
4949-import type { Plugin, PluginNames } from './types';
5050-import type { ValibotPlugin } from './valibot';
5151-import { defaultConfig as valibot } from './valibot';
5252-import type { ZodPlugin } from './zod';
5353-import { defaultConfig as zod } from './zod';
11+import type { AngularCommonPlugin } from '~/plugins/@angular/common';
22+import { defaultConfig as angularCommon } from '~/plugins/@angular/common';
33+import type { HeyApiClientAngularPlugin } from '~/plugins/@hey-api/client-angular';
44+import { defaultConfig as heyApiClientAngular } from '~/plugins/@hey-api/client-angular';
55+import type { HeyApiClientAxiosPlugin } from '~/plugins/@hey-api/client-axios';
66+import { defaultConfig as heyApiClientAxios } from '~/plugins/@hey-api/client-axios';
77+import type { HeyApiClientFetchPlugin } from '~/plugins/@hey-api/client-fetch';
88+import { defaultConfig as heyApiClientFetch } from '~/plugins/@hey-api/client-fetch';
99+import type { HeyApiClientNextPlugin } from '~/plugins/@hey-api/client-next';
1010+import { defaultConfig as heyApiClientNext } from '~/plugins/@hey-api/client-next';
1111+import type { HeyApiClientNuxtPlugin } from '~/plugins/@hey-api/client-nuxt';
1212+import { defaultConfig as heyApiClientNuxt } from '~/plugins/@hey-api/client-nuxt';
1313+import type { HeyApiClientOfetchPlugin } from '~/plugins/@hey-api/client-ofetch';
1414+import { defaultConfig as heyApiClientOfetch } from '~/plugins/@hey-api/client-ofetch';
1515+import type { HeyApiClientLegacyAngularPlugin } from '~/plugins/@hey-api/legacy-angular';
1616+import { defaultConfig as heyApiLegacyAngular } from '~/plugins/@hey-api/legacy-angular';
1717+import type { HeyApiClientLegacyAxiosPlugin } from '~/plugins/@hey-api/legacy-axios';
1818+import { defaultConfig as heyApiLegacyAxios } from '~/plugins/@hey-api/legacy-axios';
1919+import type { HeyApiClientLegacyFetchPlugin } from '~/plugins/@hey-api/legacy-fetch';
2020+import { defaultConfig as heyApiLegacyFetch } from '~/plugins/@hey-api/legacy-fetch';
2121+import type { HeyApiClientLegacyNodePlugin } from '~/plugins/@hey-api/legacy-node';
2222+import { defaultConfig as heyApiLegacyNode } from '~/plugins/@hey-api/legacy-node';
2323+import type { HeyApiClientLegacyXhrPlugin } from '~/plugins/@hey-api/legacy-xhr';
2424+import { defaultConfig as heyApiLegacyXhr } from '~/plugins/@hey-api/legacy-xhr';
2525+import type { HeyApiSchemasPlugin } from '~/plugins/@hey-api/schemas';
2626+import { defaultConfig as heyApiSchemas } from '~/plugins/@hey-api/schemas';
2727+import type { HeyApiSdkPlugin } from '~/plugins/@hey-api/sdk';
2828+import { defaultConfig as heyApiSdk } from '~/plugins/@hey-api/sdk';
2929+import type { HeyApiTransformersPlugin } from '~/plugins/@hey-api/transformers';
3030+import { defaultConfig as heyApiTransformers } from '~/plugins/@hey-api/transformers';
3131+import type { HeyApiTypeScriptPlugin } from '~/plugins/@hey-api/typescript';
3232+import { defaultConfig as heyApiTypeScript } from '~/plugins/@hey-api/typescript';
3333+import type { PiniaColadaPlugin } from '~/plugins/@pinia/colada';
3434+import { defaultConfig as piniaColada } from '~/plugins/@pinia/colada';
3535+import type { TanStackAngularQueryPlugin } from '~/plugins/@tanstack/angular-query-experimental';
3636+import { defaultConfig as tanStackAngularQuery } from '~/plugins/@tanstack/angular-query-experimental';
3737+import type { TanStackReactQueryPlugin } from '~/plugins/@tanstack/react-query';
3838+import { defaultConfig as tanStackReactQuery } from '~/plugins/@tanstack/react-query';
3939+import type { TanStackSolidQueryPlugin } from '~/plugins/@tanstack/solid-query';
4040+import { defaultConfig as tanStackSolidQuery } from '~/plugins/@tanstack/solid-query';
4141+import type { TanStackSvelteQueryPlugin } from '~/plugins/@tanstack/svelte-query';
4242+import { defaultConfig as tanStackSvelteQuery } from '~/plugins/@tanstack/svelte-query';
4343+import type { TanStackVueQueryPlugin } from '~/plugins/@tanstack/vue-query';
4444+import { defaultConfig as tanStackVueQuery } from '~/plugins/@tanstack/vue-query';
4545+import type { ArktypePlugin } from '~/plugins/arktype';
4646+import { defaultConfig as arktype } from '~/plugins/arktype';
4747+import type { FastifyPlugin } from '~/plugins/fastify';
4848+import { defaultConfig as fastify } from '~/plugins/fastify';
4949+import type { Plugin, PluginNames } from '~/plugins/types';
5050+import type { ValibotPlugin } from '~/plugins/valibot';
5151+import { defaultConfig as valibot } from '~/plugins/valibot';
5252+import type { ZodPlugin } from '~/plugins/zod';
5353+import { defaultConfig as zod } from '~/plugins/zod';
54545555export interface PluginConfigMap {
5656 '@angular/common': AngularCommonPlugin['Types'];
+1-1
packages/openapi-ts/src/plugins/fastify/api.ts
···11import type { Selector } from '@hey-api/codegen-core';
2233-import type { Plugin } from '../types';
33+import type { Plugin } from '~/plugins/types';
4455type SelectorType = 'RouteHandler';
66
+2-1
packages/openapi-ts/src/plugins/fastify/config.ts
···11-import { definePluginConfig } from '../shared/utils/config';
11+import { definePluginConfig } from '~/plugins/shared/utils/config';
22+23import { Api } from './api';
34import { handler } from './plugin';
45import type { FastifyPlugin } from './types';
+5-4
packages/openapi-ts/src/plugins/fastify/plugin.ts
···11import type ts from 'typescript';
2233-import { operationResponsesMap } from '../../ir/operation';
44-import { hasParameterGroupObjectRequired } from '../../ir/parameter';
55-import type { IR } from '../../ir/types';
66-import { type Property, tsc } from '../../tsc';
33+import { operationResponsesMap } from '~/ir/operation';
44+import { hasParameterGroupObjectRequired } from '~/ir/parameter';
55+import type { IR } from '~/ir/types';
66+import { type Property, tsc } from '~/tsc';
77+78import type { FastifyPlugin } from './types';
89910const operationToRouteHandler = ({
···11-import type { DefinePlugin, Plugin } from '../types';
11+import type { DefinePlugin, Plugin } from '~/plugins/types';
22+23import type { IApi } from './api';
3445export type UserConfig = Plugin.Name<'fastify'> &
···11-import type { IrTopLevelKind } from '../../../ir/graph';
22-import type { IR } from '../../../ir/types';
11+import type { IrTopLevelKind } from '~/ir/graph';
22+import type { IR } from '~/ir/types';
3344type WalkEvents =
55 | {
···11import ts from 'typescript';
2233-import type { IR } from '../../../ir/types';
44-import { numberRegExp } from '../../../utils/regexp';
55-import { stringCase } from '../../../utils/stringCase';
33+import type { IR } from '~/ir/types';
44+import { numberRegExp } from '~/utils/regexp';
55+import { stringCase } from '~/utils/stringCase';
6677/**
88 * Returns final field name for object properties. This might differ from the
···77 SymbolIn,
88} from '@hey-api/codegen-core';
991010-import { HeyApiError } from '../../../error';
1111-import type { IrTopLevelKind } from '../../../ir/graph';
1010+import { HeyApiError } from '~/error';
1111+import type { IrTopLevelKind } from '~/ir/graph';
1212import {
1313 irTopLevelKinds,
1414 matchIrTopLevelPointer,
1515 walkTopological,
1616-} from '../../../ir/graph';
1717-import type { IR } from '../../../ir/types';
1818-import type { OpenApi } from '../../../openApi/types';
1919-import { jsonPointerToPath } from '../../../utils/ref';
2020-import type { PluginConfigMap } from '../../config';
2121-import type { Plugin } from '../../types';
1616+} from '~/ir/graph';
1717+import type { IR } from '~/ir/types';
1818+import type { OpenApi } from '~/openApi/types';
1919+import type { PluginConfigMap } from '~/plugins/config';
2020+import type { Plugin } from '~/plugins/types';
2121+import { jsonPointerToPath } from '~/utils/ref';
2222+2223import type { WalkEvent, WalkOptions } from '../types/instance';
23242425const defaultGetFilePath = (symbol: Symbol): string | undefined => {
···11-import { hasOperationDataRequired } from '../../../ir/operation';
22-import type { IR } from '../../../ir/types';
33-import { getClientPlugin } from '../../@hey-api/client-core/utils';
11+import { hasOperationDataRequired } from '~/ir/operation';
22+import type { IR } from '~/ir/types';
33+import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
4455export const isOperationOptionsRequired = ({
66 context,
···11-import type { IR } from '../../../ir/types';
22-import type { Comments } from '../../../tsc';
33-import { escapeComment } from '../../../utils/escape';
11+import type { IR } from '~/ir/types';
22+import type { Comments } from '~/tsc';
33+import { escapeComment } from '~/utils/escape';
4455export const createSchemaComment = ({
66 schema,
+7-7
packages/openapi-ts/src/plugins/types.d.ts
···11-import type { ValueToObject } from '../config/utils/config';
22-import type { Package } from '../config/utils/package';
33-import type { IR } from '../ir/types';
44-import type { OpenApi as LegacyOpenApi } from '../openApi';
55-import type { Client as LegacyClient } from '../types/client';
66-import type { Files } from '../types/utils';
77-import type { PluginInstance } from './shared/utils/instance';
11+import type { ValueToObject } from '~/config/utils/config';
22+import type { Package } from '~/config/utils/package';
33+import type { IR } from '~/ir/types';
44+import type { OpenApi as LegacyOpenApi } from '~/openApi';
55+import type { PluginInstance } from '~/plugins/shared/utils/instance';
66+import type { Client as LegacyClient } from '~/types/client';
77+import type { Files } from '~/types/utils';
8899export type PluginClientNames =
1010 | '@hey-api/client-angular'
+2-1
packages/openapi-ts/src/plugins/valibot/api.ts
···11import type { Selector } from '@hey-api/codegen-core';
22import type ts from 'typescript';
3344-import type { Plugin } from '../types';
44+import type { Plugin } from '~/plugins/types';
55+56import type { ValidatorArgs } from './shared/types';
67import { createRequestValidatorV1, createResponseValidatorV1 } from './v1/api';
78
+2-1
packages/openapi-ts/src/plugins/valibot/config.ts
···11-import { definePluginConfig } from '../shared/utils/config';
11+import { definePluginConfig } from '~/plugins/shared/utils/config';
22+23import { Api } from './api';
34import { handler } from './plugin';
45import type { ValibotPlugin } from './types';
···11-import type { IR } from '../../../ir/types';
22-import type { StringCase, StringName } from '../../../types/case';
33-import type { ToRefs } from '../../shared/types/refs';
11+import type { IR } from '~/ir/types';
22+import type { ToRefs } from '~/plugins/shared/types/refs';
33+import type { StringCase, StringName } from '~/types/case';
44+45import type { ValibotPlugin } from '../types';
5667export type IrSchemaToAstOptions = {
···11-import type { StringCase, StringName } from '../../types/case';
22-import type { DefinePlugin, Plugin } from '../types';
11+import type { DefinePlugin, Plugin } from '~/plugins/types';
22+import type { StringCase, StringName } from '~/types/case';
33+34import type { IApi } from './api';
4556export type UserConfig = Plugin.Name<'valibot'> &
+2-1
packages/openapi-ts/src/plugins/valibot/v1/api.ts
···11import type ts from 'typescript';
2233-import { tsc } from '../../../tsc';
33+import { tsc } from '~/tsc';
44+45import type { ValidatorArgs } from '../shared/types';
56import { identifiers } from './constants';
67
···11-import { operationResponsesMap } from '../../../ir/operation';
22-import type { IR } from '../../../ir/types';
33-import { buildName } from '../../../openApi/shared/utils/name';
44-import { pathToSymbolResourceType } from '../../shared/utils/meta';
55-import { toRef } from '../../shared/utils/refs';
11+import { operationResponsesMap } from '~/ir/operation';
22+import type { IR } from '~/ir/types';
33+import { buildName } from '~/openApi/shared/utils/name';
44+import { pathToSymbolResourceType } from '~/plugins/shared/utils/meta';
55+import { toRef } from '~/plugins/shared/utils/refs';
66+67import type { IrSchemaToAstOptions } from '../shared/types';
78import { irSchemaToAst } from './plugin';
89
···11import type ts from 'typescript';
2233-import { tsc } from '../../../tsc';
33+import { tsc } from '~/tsc';
44+45import type { ValibotPlugin } from '../types';
56import { identifiers } from './constants';
67
···11import type { Symbol } from '@hey-api/codegen-core';
22import type ts from 'typescript';
3344-import { deduplicateSchema } from '../../../ir/schema';
55-import type { IR } from '../../../ir/types';
66-import { buildName } from '../../../openApi/shared/utils/name';
77-import { tsc } from '../../../tsc';
88-import { refToName } from '../../../utils/ref';
99-import type { SchemaWithType } from '../../shared/types/schema';
1010-import { pathToSymbolResourceType } from '../../shared/utils/meta';
1111-import { toRef, toRefs } from '../../shared/utils/refs';
1212-import { createSchemaComment } from '../../shared/utils/schema';
44+import { deduplicateSchema } from '~/ir/schema';
55+import type { IR } from '~/ir/types';
66+import { buildName } from '~/openApi/shared/utils/name';
77+import type { SchemaWithType } from '~/plugins/shared/types/schema';
88+import { pathToSymbolResourceType } from '~/plugins/shared/utils/meta';
99+import { toRef, toRefs } from '~/plugins/shared/utils/refs';
1010+import { createSchemaComment } from '~/plugins/shared/utils/schema';
1111+import { tsc } from '~/tsc';
1212+import { refToName } from '~/utils/ref';
1313+1314import { numberParameter } from '../shared/numbers';
1415import type { IrSchemaToAstOptions, PluginState } from '../shared/types';
1516import type { ValibotPlugin } from '../types';
···11import type ts from 'typescript';
2233-import { deduplicateSchema } from '../../../../ir/schema';
44-import { tsc } from '../../../../tsc';
55-import type { SchemaWithType } from '../../../shared/types/schema';
66-import { toRef } from '../../../shared/utils/refs';
33+import { deduplicateSchema } from '~/ir/schema';
44+import type { SchemaWithType } from '~/plugins/shared/types/schema';
55+import { toRef } from '~/plugins/shared/utils/refs';
66+import { tsc } from '~/tsc';
77+78import type { IrSchemaToAstOptions } from '../../shared/types';
89import { identifiers } from '../constants';
910import { pipesToAst } from '../pipesToAst';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import type { IrSchemaToAstOptions } from '../../shared/types';
45import { identifiers } from '../constants';
56
···11import type ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import type { SchemaWithType } from '../../../shared/types/schema';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { tsc } from '~/tsc';
55+56import type { IrSchemaToAstOptions } from '../../shared/types';
67import { identifiers } from '../constants';
78import { unknownToAst } from './unknown';
···11import type ts from 'typescript';
2233-import type { SchemaWithType } from '../../../shared/types/schema';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+45import type { IrSchemaToAstOptions } from '../../shared/types';
56import { arrayToAst } from './array';
67import { booleanToAst } from './boolean';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import type { IrSchemaToAstOptions } from '../../shared/types';
45import { identifiers } from '../constants';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import type { IrSchemaToAstOptions } from '../../shared/types';
45import { identifiers } from '../constants';
56
···11import type ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import type { SchemaWithType } from '../../../shared/types/schema';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { tsc } from '~/tsc';
55+56import {
67 INTEGER_FORMATS,
78 isIntegerFormat,
···11import ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import { numberRegExp } from '../../../../utils/regexp';
55-import type { SchemaWithType } from '../../../shared/types/schema';
66-import { toRef } from '../../../shared/utils/refs';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { toRef } from '~/plugins/shared/utils/refs';
55+import { tsc } from '~/tsc';
66+import { numberRegExp } from '~/utils/regexp';
77+78import type { IrSchemaToAstOptions } from '../../shared/types';
89import { identifiers } from '../constants';
910import { pipesToAst } from '../pipesToAst';
···11import type ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import type { SchemaWithType } from '../../../shared/types/schema';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { tsc } from '~/tsc';
55+56import type { IrSchemaToAstOptions } from '../../shared/types';
67import { identifiers } from '../constants';
78import { pipesToAst } from '../pipesToAst';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
33-import { toRef } from '../../../shared/utils/refs';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { toRef } from '~/plugins/shared/utils/refs';
33+import { tsc } from '~/tsc';
44+45import type { IrSchemaToAstOptions } from '../../shared/types';
56import { identifiers } from '../constants';
67import { pipesToAst } from '../pipesToAst';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import type { IrSchemaToAstOptions } from '../../shared/types';
45import { identifiers } from '../constants';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import type { IrSchemaToAstOptions } from '../../shared/types';
45import { identifiers } from '../constants';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import type { IrSchemaToAstOptions } from '../../shared/types';
45import { identifiers } from '../constants';
56
···11-import type { IR } from '../../../ir/types';
22-import { buildName } from '../../../openApi/shared/utils/name';
33-import { pathToSymbolResourceType } from '../../shared/utils/meta';
11+import type { IR } from '~/ir/types';
22+import { buildName } from '~/openApi/shared/utils/name';
33+import { pathToSymbolResourceType } from '~/plugins/shared/utils/meta';
44+45import type { IrSchemaToAstOptions } from '../shared/types';
56import { irSchemaToAst } from './plugin';
67
+2-1
packages/openapi-ts/src/plugins/zod/api.ts
···11import type { Selector } from '@hey-api/codegen-core';
22import type ts from 'typescript';
3344-import type { Plugin } from '../types';
44+import type { Plugin } from '~/plugins/types';
55+56import {
67 createRequestValidatorMini,
78 createResponseValidatorMini,
+2-1
packages/openapi-ts/src/plugins/zod/config.ts
···11import colors from 'ansi-colors';
2233-import { definePluginConfig, mappers } from '../shared/utils/config';
33+import { definePluginConfig, mappers } from '~/plugins/shared/utils/config';
44+45import { Api } from './api';
56import { handler } from './plugin';
67import type { ZodPlugin } from './types';
+1-1
packages/openapi-ts/src/plugins/zod/constants.ts
···11-import { tsc } from '../../tsc';
11+import { tsc } from '~/tsc';
2233// TODO: this is inaccurate, it combines identifiers for all supported versions
44export const identifiers = {
+2-1
packages/openapi-ts/src/plugins/zod/mini/api.ts
···11import type ts from 'typescript';
2233-import { tsc } from '../../../tsc';
33+import { tsc } from '~/tsc';
44+45import { identifiers } from '../constants';
56import type { ValidatorArgs } from '../shared/types';
67
···11-import { deduplicateSchema } from '../../../ir/schema';
22-import type { IR } from '../../../ir/types';
33-import { buildName } from '../../../openApi/shared/utils/name';
44-import { tsc } from '../../../tsc';
55-import { refToName } from '../../../utils/ref';
66-import type { SchemaWithType } from '../../shared/types/schema';
77-import { pathToSymbolResourceType } from '../../shared/utils/meta';
88-import { toRef, toRefs } from '../../shared/utils/refs';
11+import { deduplicateSchema } from '~/ir/schema';
22+import type { IR } from '~/ir/types';
33+import { buildName } from '~/openApi/shared/utils/name';
44+import type { SchemaWithType } from '~/plugins/shared/types/schema';
55+import { pathToSymbolResourceType } from '~/plugins/shared/utils/meta';
66+import { toRef, toRefs } from '~/plugins/shared/utils/refs';
77+import { tsc } from '~/tsc';
88+import { refToName } from '~/utils/ref';
99+910import { identifiers } from '../constants';
1011import { exportAst } from '../shared/export';
1112import { getZodModule } from '../shared/module';
···11import type ts from 'typescript';
2233-import { deduplicateSchema } from '../../../../ir/schema';
44-import { tsc } from '../../../../tsc';
55-import type { SchemaWithType } from '../../../shared/types/schema';
66-import { toRef } from '../../../shared/utils/refs';
33+import { deduplicateSchema } from '~/ir/schema';
44+import type { SchemaWithType } from '~/plugins/shared/types/schema';
55+import { toRef } from '~/plugins/shared/utils/refs';
66+import { tsc } from '~/tsc';
77+78import { identifiers } from '../../constants';
89import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
910import { irSchemaToAst } from '../plugin';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56
···11import type ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import type { SchemaWithType } from '../../../shared/types/schema';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { tsc } from '~/tsc';
55+56import { identifiers } from '../../constants';
67import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
78import { unknownToAst } from './unknown';
···11-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+23import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
34import { arrayToAst } from './array';
45import { booleanToAst } from './boolean';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56
···11import type ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import type { SchemaWithType } from '../../../shared/types/schema';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { tsc } from '~/tsc';
55+56import { identifiers } from '../../constants';
67import { numberParameter } from '../../shared/numbers';
78import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
···11import ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import { numberRegExp } from '../../../../utils/regexp';
55-import type { SchemaWithType } from '../../../shared/types/schema';
66-import { toRef } from '../../../shared/utils/refs';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { toRef } from '~/plugins/shared/utils/refs';
55+import { tsc } from '~/tsc';
66+import { numberRegExp } from '~/utils/regexp';
77+78import { identifiers } from '../../constants';
89import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
910import { irSchemaToAst } from '../plugin';
···11import type ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import type { SchemaWithType } from '../../../shared/types/schema';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { tsc } from '~/tsc';
55+56import { identifiers } from '../../constants';
67import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
78
···11import type ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import type { SchemaWithType } from '../../../shared/types/schema';
55-import { toRef } from '../../../shared/utils/refs';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { toRef } from '~/plugins/shared/utils/refs';
55+import { tsc } from '~/tsc';
66+67import { identifiers } from '../../constants';
78import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
89import { irSchemaToAst } from '../plugin';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56
···11import type { Symbol } from '@hey-api/codegen-core';
22import type ts from 'typescript';
3344-import type { IR } from '../../../ir/types';
55-import { tsc } from '../../../tsc';
66-import { createSchemaComment } from '../../shared/utils/schema';
44+import type { IR } from '~/ir/types';
55+import { createSchemaComment } from '~/plugins/shared/utils/schema';
66+import { tsc } from '~/tsc';
77+78import { identifiers } from '../constants';
89import type { ZodPlugin } from '../types';
910import type { Ast } from './types';
···11-import { operationResponsesMap } from '../../../ir/operation';
22-import type { IR } from '../../../ir/types';
33-import { buildName } from '../../../openApi/shared/utils/name';
44-import { pathToSymbolResourceType } from '../../shared/utils/meta';
11+import { operationResponsesMap } from '~/ir/operation';
22+import type { IR } from '~/ir/types';
33+import { buildName } from '~/openApi/shared/utils/name';
44+import { pathToSymbolResourceType } from '~/plugins/shared/utils/meta';
55+56import { exportAst } from './export';
67import type { Ast, IrSchemaToAstOptions } from './types';
78
···11import type ts from 'typescript';
2233-import type { IR } from '../../../ir/types';
44-import type { ToRefs } from '../../shared/types/refs';
33+import type { IR } from '~/ir/types';
44+import type { ToRefs } from '~/plugins/shared/types/refs';
55+56import type { ZodPlugin } from '../types';
6778export type Ast = {
···11-import type { IR } from '../../../ir/types';
22-import { buildName } from '../../../openApi/shared/utils/name';
33-import { pathToSymbolResourceType } from '../../shared/utils/meta';
11+import type { IR } from '~/ir/types';
22+import { buildName } from '~/openApi/shared/utils/name';
33+import { pathToSymbolResourceType } from '~/plugins/shared/utils/meta';
44+45import { exportAst } from './export';
56import type { Ast, IrSchemaToAstOptions } from './types';
67
+3-2
packages/openapi-ts/src/plugins/zod/types.d.ts
···11-import type { StringCase, StringName } from '../../types/case';
22-import type { DefinePlugin, Plugin } from '../types';
11+import type { DefinePlugin, Plugin } from '~/plugins/types';
22+import type { StringCase, StringName } from '~/types/case';
33+34import type { IApi } from './api';
4556export type UserConfig = Plugin.Name<'zod'> &
+2-1
packages/openapi-ts/src/plugins/zod/v3/api.ts
···11import type ts from 'typescript';
2233-import { tsc } from '../../../tsc';
33+import { tsc } from '~/tsc';
44+45import { identifiers } from '../constants';
56import type { ValidatorArgs } from '../shared/types';
67
+9-8
packages/openapi-ts/src/plugins/zod/v3/plugin.ts
···11-import { deduplicateSchema } from '../../../ir/schema';
22-import type { IR } from '../../../ir/types';
33-import { buildName } from '../../../openApi/shared/utils/name';
44-import { tsc } from '../../../tsc';
55-import { refToName } from '../../../utils/ref';
66-import type { SchemaWithType } from '../../shared/types/schema';
77-import { pathToSymbolResourceType } from '../../shared/utils/meta';
88-import { toRef, toRefs } from '../../shared/utils/refs';
11+import { deduplicateSchema } from '~/ir/schema';
22+import type { IR } from '~/ir/types';
33+import { buildName } from '~/openApi/shared/utils/name';
44+import type { SchemaWithType } from '~/plugins/shared/types/schema';
55+import { pathToSymbolResourceType } from '~/plugins/shared/utils/meta';
66+import { toRef, toRefs } from '~/plugins/shared/utils/refs';
77+import { tsc } from '~/tsc';
88+import { refToName } from '~/utils/ref';
99+910import { identifiers } from '../constants';
1011import { exportAst } from '../shared/export';
1112import { getZodModule } from '../shared/module';
···11import type ts from 'typescript';
2233-import { deduplicateSchema } from '../../../../ir/schema';
44-import { tsc } from '../../../../tsc';
55-import type { SchemaWithType } from '../../../shared/types/schema';
66-import { toRef } from '../../../shared/utils/refs';
33+import { deduplicateSchema } from '~/ir/schema';
44+import type { SchemaWithType } from '~/plugins/shared/types/schema';
55+import { toRef } from '~/plugins/shared/utils/refs';
66+import { tsc } from '~/tsc';
77+78import { identifiers } from '../../constants';
89import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
910import { irSchemaToAst } from '../plugin';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { IrSchemaToAstOptions } from '../../shared/types';
56
···11import type ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import type { SchemaWithType } from '../../../shared/types/schema';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { tsc } from '~/tsc';
55+56import { identifiers } from '../../constants';
67import type { IrSchemaToAstOptions } from '../../shared/types';
78import { unknownToAst } from './unknown';
···11-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+23import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
34import { arrayToAst } from './array';
45import { booleanToAst } from './boolean';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { IrSchemaToAstOptions } from '../../shared/types';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { IrSchemaToAstOptions } from '../../shared/types';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import { numberParameter } from '../../shared/numbers';
56import type { IrSchemaToAstOptions } from '../../shared/types';
···11import ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import { numberRegExp } from '../../../../utils/regexp';
55-import type { SchemaWithType } from '../../../shared/types/schema';
66-import { toRef } from '../../../shared/utils/refs';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { toRef } from '~/plugins/shared/utils/refs';
55+import { tsc } from '~/tsc';
66+import { numberRegExp } from '~/utils/regexp';
77+78import { identifiers } from '../../constants';
89import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
910import { irSchemaToAst } from '../plugin';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { IrSchemaToAstOptions } from '../../shared/types';
56
···11import type ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import type { SchemaWithType } from '../../../shared/types/schema';
55-import { toRef } from '../../../shared/utils/refs';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { toRef } from '~/plugins/shared/utils/refs';
55+import { tsc } from '~/tsc';
66+67import { identifiers } from '../../constants';
78import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
89import { irSchemaToAst } from '../plugin';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { IrSchemaToAstOptions } from '../../shared/types';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { IrSchemaToAstOptions } from '../../shared/types';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { IrSchemaToAstOptions } from '../../shared/types';
56
+2-1
packages/openapi-ts/src/plugins/zod/v4/api.ts
···11import type ts from 'typescript';
2233-import { tsc } from '../../../tsc';
33+import { tsc } from '~/tsc';
44+45import { identifiers } from '../constants';
56import type { ValidatorArgs } from '../shared/types';
67
+9-8
packages/openapi-ts/src/plugins/zod/v4/plugin.ts
···11-import { deduplicateSchema } from '../../../ir/schema';
22-import type { IR } from '../../../ir/types';
33-import { buildName } from '../../../openApi/shared/utils/name';
44-import { tsc } from '../../../tsc';
55-import { refToName } from '../../../utils/ref';
66-import type { SchemaWithType } from '../../shared/types/schema';
77-import { pathToSymbolResourceType } from '../../shared/utils/meta';
88-import { toRef, toRefs } from '../../shared/utils/refs';
11+import { deduplicateSchema } from '~/ir/schema';
22+import type { IR } from '~/ir/types';
33+import { buildName } from '~/openApi/shared/utils/name';
44+import type { SchemaWithType } from '~/plugins/shared/types/schema';
55+import { pathToSymbolResourceType } from '~/plugins/shared/utils/meta';
66+import { toRef, toRefs } from '~/plugins/shared/utils/refs';
77+import { tsc } from '~/tsc';
88+import { refToName } from '~/utils/ref';
99+910import { identifiers } from '../constants';
1011import { exportAst } from '../shared/export';
1112import { getZodModule } from '../shared/module';
···11import type ts from 'typescript';
2233-import { deduplicateSchema } from '../../../../ir/schema';
44-import { tsc } from '../../../../tsc';
55-import type { SchemaWithType } from '../../../shared/types/schema';
66-import { toRef } from '../../../shared/utils/refs';
33+import { deduplicateSchema } from '~/ir/schema';
44+import type { SchemaWithType } from '~/plugins/shared/types/schema';
55+import { toRef } from '~/plugins/shared/utils/refs';
66+import { tsc } from '~/tsc';
77+78import { identifiers } from '../../constants';
89import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
910import { irSchemaToAst } from '../plugin';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56
···11import type ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import type { SchemaWithType } from '../../../shared/types/schema';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { tsc } from '~/tsc';
55+56import { identifiers } from '../../constants';
67import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
78import { unknownToAst } from './unknown';
···11-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+23import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
34import { arrayToAst } from './array';
45import { booleanToAst } from './boolean';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import { numberParameter } from '../../shared/numbers';
56import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
···11import ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import { numberRegExp } from '../../../../utils/regexp';
55-import type { SchemaWithType } from '../../../shared/types/schema';
66-import { toRef } from '../../../shared/utils/refs';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { toRef } from '~/plugins/shared/utils/refs';
55+import { tsc } from '~/tsc';
66+import { numberRegExp } from '~/utils/regexp';
77+78import { identifiers } from '../../constants';
89import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
910import { irSchemaToAst } from '../plugin';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56
···11import type ts from 'typescript';
2233-import { tsc } from '../../../../tsc';
44-import type { SchemaWithType } from '../../../shared/types/schema';
55-import { toRef } from '../../../shared/utils/refs';
33+import type { SchemaWithType } from '~/plugins/shared/types/schema';
44+import { toRef } from '~/plugins/shared/utils/refs';
55+import { tsc } from '~/tsc';
66+67import { identifiers } from '../../constants';
78import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
89import { irSchemaToAst } from '../plugin';
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56
···11-import { tsc } from '../../../../tsc';
22-import type { SchemaWithType } from '../../../shared/types/schema';
11+import type { SchemaWithType } from '~/plugins/shared/types/schema';
22+import { tsc } from '~/tsc';
33+34import { identifiers } from '../../constants';
45import type { Ast, IrSchemaToAstOptions } from '../../shared/types';
56
+2-2
packages/openapi-ts/src/processOutput.ts
···11import { sync } from 'cross-spawn';
2233-import type { Config } from './types/config';
44-import type { Formatters, Linters } from './types/output';
33+import type { Config } from '~/types/config';
44+import type { Formatters, Linters } from '~/types/output';
5566type OutputProcessor = {
77 args: (path: string) => ReadonlyArray<string>;
+2-1
packages/openapi-ts/src/tsc/transform.ts
···11import ts from 'typescript';
2233-import { validTypescriptIdentifierRegExp } from '../utils/regexp';
33+import { validTypescriptIdentifierRegExp } from '~/utils/regexp';
44+45import { expressionToStatement } from './convert';
56import { createCallExpression } from './module';
67import {
+2-1
packages/openapi-ts/src/tsc/typedef.ts
···11import ts from 'typescript';
2233-import { validTypescriptIdentifierRegExp } from '../utils/regexp';
33+import { validTypescriptIdentifierRegExp } from '~/utils/regexp';
44+45import {
56 createKeywordTypeNode,
67 createMappedTypeNode,
+3-2
packages/openapi-ts/src/tsc/types.ts
···11import ts from 'typescript';
2233-import { escapeName } from '../utils/escape';
44-import { validTypescriptIdentifierRegExp } from '../utils/regexp';
33+import { escapeName } from '~/utils/escape';
44+import { validTypescriptIdentifierRegExp } from '~/utils/regexp';
55+56import {
67 addLeadingComments,
78 type Comments,
+3-2
packages/openapi-ts/src/tsc/utils.ts
···11import ts from 'typescript';
2233-import { getConfig } from '../utils/config';
44-import { unescapeName } from '../utils/escape';
33+import { getConfig } from '~/utils/config';
44+import { unescapeName } from '~/utils/escape';
55+56import type { AccessLevel } from './types';
67import { createStringLiteral, syntaxKindKeyword } from './types';
78
+1-1
packages/openapi-ts/src/types/client.d.ts
···66 Operation as ParserOperation,
77 OperationParameter,
88 OperationResponse,
99-} from '../openApi';
99+} from '~/openApi';
10101111export type { Method, Model, ModelMeta, OperationParameter, OperationResponse };
1212
+3-2
packages/openapi-ts/src/types/config.d.ts
···11-import type { PluginConfigMap } from '../plugins/config';
22-import type { Plugin, PluginNames } from '../plugins/types';
11+import type { PluginConfigMap } from '~/plugins/config';
22+import type { Plugin, PluginNames } from '~/plugins/types';
33+34import type { Input, UserInput, Watch } from './input';
45import type { Logs } from './logs';
56import type { Output, UserOutput } from './output';
+3-2
packages/openapi-ts/src/types/parser.d.ts
···11-import type { IR } from '../ir/types';
11+import type { IR } from '~/ir/types';
22import type {
33 OpenApiMetaObject,
44 OpenApiOperationObject,
···66 OpenApiRequestBodyObject,
77 OpenApiResponseObject,
88 OpenApiSchemaObject,
99-} from '../openApi/types';
99+} from '~/openApi/types';
1010+1011import type { StringCase, StringName } from './case';
11121213type EnumsMode = 'inline' | 'root';
+1-1
packages/openapi-ts/src/types/utils.d.ts
···11-import type { GeneratedFile } from '../generate/file';
11+import type { GeneratedFile } from '~/generate/file';
2233/**
44 * Converts all top-level ReadonlyArray properties to Array (shallow).
···11import { describe, expect, it } from 'vitest';
2233-import type { Model, Service } from '../../types/client';
33+import type { Model, Service } from '~/types/client';
44+45import { sort, sortByName } from '../sort';
5667describe('sort', () => {
···11import { describe, expect, it } from 'vitest';
2233-import type { StringCase } from '../../types/case';
33+import type { StringCase } from '~/types/case';
44+45import { stringCase } from '../stringCase';
5667const cases: ReadonlyArray<StringCase> = [
···11import { describe, expect, it, type MockedFunction, vi } from 'vitest';
2233-import type { Config } from '../../types/config';
33+import type { Config } from '~/types/config';
44+45import { isLegacyClient } from '../config';
56import { transformTypeKeyName } from '../type';
67
+1-1
packages/openapi-ts/src/utils/cli.ts
···11import colors from 'ansi-colors';
2233-import { loadPackageJson } from '../generate/tsConfig';
33+import { loadPackageJson } from '~/generate/tsConfig';
4455const textAscii = `
66888 | e 888~-_ 888
+2-2
packages/openapi-ts/src/utils/config.ts
···11-import { getClientPlugin } from '../plugins/@hey-api/client-core/utils';
22-import type { Config } from '../types/config';
11+import { getClientPlugin } from '~/plugins/@hey-api/client-core/utils';
22+import type { Config } from '~/types/config';
3344let _config: Config;
55
+3-2
packages/openapi-ts/src/utils/enum.ts
···11-import type { Enum, Model } from '../openApi';
22-import { ensureValidTypeScriptJavaScriptIdentifier } from '../openApi';
11+import type { Enum, Model } from '~/openApi';
22+import { ensureValidTypeScriptJavaScriptIdentifier } from '~/openApi';
33+34import { unescapeName } from './escape';
45import { sort } from './sort';
56import { unique } from './unique';
···11-import type { PluginClientNames } from '../plugins/types';
11+import type { PluginClientNames } from '~/plugins/types';
2233/**
44 * Generate the HttpRequest filename based on the selected client
+45-44
packages/openapi-ts/src/utils/handlebars.ts
···11import Handlebars from 'handlebars';
2233// @ts-expect-error
44-import templateClient from '../legacy/handlebars/compiled/client.js';
44+import templateClient from '~/legacy/handlebars/compiled/client';
55// @ts-expect-error
66-import angularGetHeaders from '../legacy/handlebars/compiled/core/angular/getHeaders.js';
66+import angularGetHeaders from '~/legacy/handlebars/compiled/core/angular/getHeaders';
77// @ts-expect-error
88-import angularGetRequestBody from '../legacy/handlebars/compiled/core/angular/getRequestBody.js';
88+import angularGetRequestBody from '~/legacy/handlebars/compiled/core/angular/getRequestBody';
99// @ts-expect-error
1010-import angularGetResponseBody from '../legacy/handlebars/compiled/core/angular/getResponseBody.js';
1010+import angularGetResponseBody from '~/legacy/handlebars/compiled/core/angular/getResponseBody';
1111// @ts-expect-error
1212-import angularGetResponseHeader from '../legacy/handlebars/compiled/core/angular/getResponseHeader.js';
1212+import angularGetResponseHeader from '~/legacy/handlebars/compiled/core/angular/getResponseHeader';
1313// @ts-expect-error
1414-import angularRequest from '../legacy/handlebars/compiled/core/angular/request.js';
1414+import angularRequest from '~/legacy/handlebars/compiled/core/angular/request';
1515// @ts-expect-error
1616-import angularSendRequest from '../legacy/handlebars/compiled/core/angular/sendRequest.js';
1616+import angularSendRequest from '~/legacy/handlebars/compiled/core/angular/sendRequest';
1717// @ts-expect-error
1818-import templateCoreApiError from '../legacy/handlebars/compiled/core/ApiError.js';
1818+import templateCoreApiError from '~/legacy/handlebars/compiled/core/ApiError';
1919// @ts-expect-error
2020-import templateCoreApiRequestOptions from '../legacy/handlebars/compiled/core/ApiRequestOptions.js';
2020+import templateCoreApiRequestOptions from '~/legacy/handlebars/compiled/core/ApiRequestOptions';
2121// @ts-expect-error
2222-import templateCoreApiResult from '../legacy/handlebars/compiled/core/ApiResult.js';
2222+import templateCoreApiResult from '~/legacy/handlebars/compiled/core/ApiResult';
2323// @ts-expect-error
2424-import axiosGetHeaders from '../legacy/handlebars/compiled/core/axios/getHeaders.js';
2424+import axiosGetHeaders from '~/legacy/handlebars/compiled/core/axios/getHeaders';
2525// @ts-expect-error
2626-import axiosGetRequestBody from '../legacy/handlebars/compiled/core/axios/getRequestBody.js';
2626+import axiosGetRequestBody from '~/legacy/handlebars/compiled/core/axios/getRequestBody';
2727// @ts-expect-error
2828-import axiosGetResponseBody from '../legacy/handlebars/compiled/core/axios/getResponseBody.js';
2828+import axiosGetResponseBody from '~/legacy/handlebars/compiled/core/axios/getResponseBody';
2929// @ts-expect-error
3030-import axiosGetResponseHeader from '../legacy/handlebars/compiled/core/axios/getResponseHeader.js';
3030+import axiosGetResponseHeader from '~/legacy/handlebars/compiled/core/axios/getResponseHeader';
3131// @ts-expect-error
3232-import axiosRequest from '../legacy/handlebars/compiled/core/axios/request.js';
3232+import axiosRequest from '~/legacy/handlebars/compiled/core/axios/request';
3333// @ts-expect-error
3434-import axiosSendRequest from '../legacy/handlebars/compiled/core/axios/sendRequest.js';
3434+import axiosSendRequest from '~/legacy/handlebars/compiled/core/axios/sendRequest';
3535// @ts-expect-error
3636-import templateCoreBaseHttpRequest from '../legacy/handlebars/compiled/core/BaseHttpRequest.js';
3636+import templateCoreBaseHttpRequest from '~/legacy/handlebars/compiled/core/BaseHttpRequest';
3737// @ts-expect-error
3838-import templateCancelablePromise from '../legacy/handlebars/compiled/core/CancelablePromise.js';
3838+import templateCancelablePromise from '~/legacy/handlebars/compiled/core/CancelablePromise';
3939// @ts-expect-error
4040-import fetchGetHeaders from '../legacy/handlebars/compiled/core/fetch/getHeaders.js';
4040+import fetchGetHeaders from '~/legacy/handlebars/compiled/core/fetch/getHeaders';
4141// @ts-expect-error
4242-import fetchGetRequestBody from '../legacy/handlebars/compiled/core/fetch/getRequestBody.js';
4242+import fetchGetRequestBody from '~/legacy/handlebars/compiled/core/fetch/getRequestBody';
4343// @ts-expect-error
4444-import fetchGetResponseBody from '../legacy/handlebars/compiled/core/fetch/getResponseBody.js';
4444+import fetchGetResponseBody from '~/legacy/handlebars/compiled/core/fetch/getResponseBody';
4545// @ts-expect-error
4646-import fetchGetResponseHeader from '../legacy/handlebars/compiled/core/fetch/getResponseHeader.js';
4646+import fetchGetResponseHeader from '~/legacy/handlebars/compiled/core/fetch/getResponseHeader';
4747// @ts-expect-error
4848-import fetchRequest from '../legacy/handlebars/compiled/core/fetch/request.js';
4848+import fetchRequest from '~/legacy/handlebars/compiled/core/fetch/request';
4949// @ts-expect-error
5050-import fetchSendRequest from '../legacy/handlebars/compiled/core/fetch/sendRequest.js';
5050+import fetchSendRequest from '~/legacy/handlebars/compiled/core/fetch/sendRequest';
5151// @ts-expect-error
5252-import functionBase64 from '../legacy/handlebars/compiled/core/functions/base64.js';
5252+import functionBase64 from '~/legacy/handlebars/compiled/core/functions/base64';
5353// @ts-expect-error
5454-import functionCatchErrorCodes from '../legacy/handlebars/compiled/core/functions/catchErrorCodes.js';
5454+import functionCatchErrorCodes from '~/legacy/handlebars/compiled/core/functions/catchErrorCodes';
5555// @ts-expect-error
5656-import functionGetFormData from '../legacy/handlebars/compiled/core/functions/getFormData.js';
5656+import functionGetFormData from '~/legacy/handlebars/compiled/core/functions/getFormData';
5757// @ts-expect-error
5858-import functionGetQueryString from '../legacy/handlebars/compiled/core/functions/getQueryString.js';
5858+import functionGetQueryString from '~/legacy/handlebars/compiled/core/functions/getQueryString';
5959// @ts-expect-error
6060-import functionGetUrl from '../legacy/handlebars/compiled/core/functions/getUrl.js';
6060+import functionGetUrl from '~/legacy/handlebars/compiled/core/functions/getUrl';
6161// @ts-expect-error
6262-import functionIsBlob from '../legacy/handlebars/compiled/core/functions/isBlob.js';
6262+import functionIsBlob from '~/legacy/handlebars/compiled/core/functions/isBlob';
6363// @ts-expect-error
6464-import functionIsFormData from '../legacy/handlebars/compiled/core/functions/isFormData.js';
6464+import functionIsFormData from '~/legacy/handlebars/compiled/core/functions/isFormData';
6565// @ts-expect-error
6666-import functionIsString from '../legacy/handlebars/compiled/core/functions/isString.js';
6666+import functionIsString from '~/legacy/handlebars/compiled/core/functions/isString';
6767// @ts-expect-error
6868-import functionIsStringWithValue from '../legacy/handlebars/compiled/core/functions/isStringWithValue.js';
6868+import functionIsStringWithValue from '~/legacy/handlebars/compiled/core/functions/isStringWithValue';
6969// @ts-expect-error
7070-import functionIsSuccess from '../legacy/handlebars/compiled/core/functions/isSuccess.js';
7070+import functionIsSuccess from '~/legacy/handlebars/compiled/core/functions/isSuccess';
7171// @ts-expect-error
7272-import functionResolve from '../legacy/handlebars/compiled/core/functions/resolve.js';
7272+import functionResolve from '~/legacy/handlebars/compiled/core/functions/resolve';
7373// @ts-expect-error
7474-import templateCoreHttpRequest from '../legacy/handlebars/compiled/core/HttpRequest.js';
7474+import templateCoreHttpRequest from '~/legacy/handlebars/compiled/core/HttpRequest';
7575// @ts-expect-error
7676-import templateCoreSettings from '../legacy/handlebars/compiled/core/OpenAPI.js';
7676+import templateCoreSettings from '~/legacy/handlebars/compiled/core/OpenAPI';
7777// @ts-expect-error
7878-import templateCoreRequest from '../legacy/handlebars/compiled/core/request.js';
7878+import templateCoreRequest from '~/legacy/handlebars/compiled/core/request';
7979// @ts-expect-error
8080-import xhrGetHeaders from '../legacy/handlebars/compiled/core/xhr/getHeaders.js';
8080+import xhrGetHeaders from '~/legacy/handlebars/compiled/core/xhr/getHeaders';
8181// @ts-expect-error
8282-import xhrGetRequestBody from '../legacy/handlebars/compiled/core/xhr/getRequestBody.js';
8282+import xhrGetRequestBody from '~/legacy/handlebars/compiled/core/xhr/getRequestBody';
8383// @ts-expect-error
8484-import xhrGetResponseBody from '../legacy/handlebars/compiled/core/xhr/getResponseBody.js';
8484+import xhrGetResponseBody from '~/legacy/handlebars/compiled/core/xhr/getResponseBody';
8585// @ts-expect-error
8686-import xhrGetResponseHeader from '../legacy/handlebars/compiled/core/xhr/getResponseHeader.js';
8686+import xhrGetResponseHeader from '~/legacy/handlebars/compiled/core/xhr/getResponseHeader';
8787// @ts-expect-error
8888-import xhrRequest from '../legacy/handlebars/compiled/core/xhr/request.js';
8888+import xhrRequest from '~/legacy/handlebars/compiled/core/xhr/request';
8989// @ts-expect-error
9090-import xhrSendRequest from '../legacy/handlebars/compiled/core/xhr/sendRequest.js';
9090+import xhrSendRequest from '~/legacy/handlebars/compiled/core/xhr/sendRequest';
9191+9192import { getConfig } from './config';
9293import { stringCase } from './stringCase';
9394import { transformClassName } from './transform';
+1-1
packages/openapi-ts/src/utils/input/heyApi.ts
···11-import type { Input } from '../../types/input';
11+import type { Input } from '~/types/input';
2233// Regular expression to match Hey API Registry input formats:
44// - {organization}/{project}?{queryParams}
+2-1
packages/openapi-ts/src/utils/input/index.ts
···11-import type { Input } from '../../types/input';
11+import type { Input } from '~/types/input';
22+23import { heyApiRegistryBaseUrl, inputToHeyApiPath } from './heyApi';
34import { inputToReadmePath } from './readme';
45import { inputToScalarPath } from './scalar';
+1-1
packages/openapi-ts/src/utils/input/readme.ts
···11-import type { Input } from '../../types/input';
11+import type { Input } from '~/types/input';
2233// Regular expression to match ReadMe API Registry input formats:
44// - @{organization}/{project}#{uuid}
+1-1
packages/openapi-ts/src/utils/input/scalar.ts
···11-import type { Input } from '../../types/input';
11+import type { Input } from '~/types/input';
2233// Regular expression to match Scalar API Registry input formats:
44// - @{organization}/{project}
+2-1
packages/openapi-ts/src/utils/meta.ts
···11-import { getType } from '../openApi';
11+import { getType } from '~/openApi';
22+23import { refParametersPartial, refSchemasPartial } from './const';
34import { reservedJavaScriptKeywordsRegExp } from './regexp';
45import { cleanAndTransformTypeName } from './transform';
+5-4
packages/openapi-ts/src/utils/postprocess.ts
···11-import type { Client as ParserClient, Model } from '../openApi';
22-import { sanitizeNamespaceIdentifier } from '../openApi';
33-import type { Client, Operation, Service } from '../types/client';
44-import type { Config } from '../types/config';
11+import type { Client as ParserClient, Model } from '~/openApi';
22+import { sanitizeNamespaceIdentifier } from '~/openApi';
33+import type { Client, Operation, Service } from '~/types/client';
44+import type { Config } from '~/types/config';
55+56import { getConfig, legacyNameFromConfig } from './config';
67import { sort } from './sort';
78import { stringCase } from './stringCase';
+1-1
packages/openapi-ts/src/utils/stringCase.ts
···11-import type { StringCase } from '../types/case';
11+import type { StringCase } from '~/types/case';
2233const uppercaseRegExp = /[\p{Lu}]/u;
44const lowercaseRegExp = /[\p{Ll}]/u;
+3-2
packages/openapi-ts/src/utils/transform.ts
···11-import { ensureValidTypeScriptJavaScriptIdentifier } from '../openApi';
22-import type { Config } from '../types/config';
11+import { ensureValidTypeScriptJavaScriptIdentifier } from '~/openApi';
22+import type { Config } from '~/types/config';
33+34import { getConfig } from './config';
45import { reservedJavaScriptKeywordsRegExp } from './regexp';
56import { stringCase } from './stringCase';
+5-4
packages/openapi-ts/src/utils/type.ts
···11import type ts from 'typescript';
2233-import type { Model } from '../openApi';
44-import { sanitizeOperationParameterName } from '../openApi';
55-import { type Property, tsc } from '../tsc';
66-import type { Client } from '../types/client';
33+import type { Model } from '~/openApi';
44+import { sanitizeOperationParameterName } from '~/openApi';
55+import { type Property, tsc } from '~/tsc';
66+import type { Client } from '~/types/client';
77+78import { getConfig, isLegacyClient } from './config';
89import { refSchemasPartial } from './const';
910import { enumValue } from './enum';