@kubb/ast 5.0.0-beta.57 → 5.0.0-beta.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +21 -7
  2. package/dist/casing-BE2R1RXg.cjs +88 -0
  3. package/dist/casing-BE2R1RXg.cjs.map +1 -0
  4. package/dist/chunk-CNktS9qV.js +17 -0
  5. package/dist/extractStringsFromNodes-WMYJ8nQL.d.ts +82 -0
  6. package/dist/factory-BmcGBdeg.cjs +1251 -0
  7. package/dist/factory-BmcGBdeg.cjs.map +1 -0
  8. package/dist/factory-Du7nEP4B.js +282 -0
  9. package/dist/factory-Du7nEP4B.js.map +1 -0
  10. package/dist/factory.cjs +28 -0
  11. package/dist/factory.d.ts +62 -0
  12. package/dist/factory.js +3 -0
  13. package/dist/{types-C5aVnRE1.d.ts → index-BzjwdK2M.d.ts} +94 -1146
  14. package/dist/index.cjs +220 -1481
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.ts +96 -58
  17. package/dist/index.js +182 -1920
  18. package/dist/index.js.map +1 -1
  19. package/dist/operationParams-BZ07xDm0.d.ts +204 -0
  20. package/dist/response-DKxTr522.js +683 -0
  21. package/dist/response-DKxTr522.js.map +1 -0
  22. package/dist/types-olVl9v5p.d.ts +764 -0
  23. package/dist/types.d.ts +5 -2
  24. package/dist/utils-BCtRXfhI.cjs +275 -0
  25. package/dist/utils-BCtRXfhI.cjs.map +1 -0
  26. package/dist/utils-SdZU0F3H.js +1336 -0
  27. package/dist/utils-SdZU0F3H.js.map +1 -0
  28. package/dist/utils.cjs +129 -13
  29. package/dist/utils.d.ts +127 -76
  30. package/dist/utils.js +3 -2
  31. package/package.json +5 -1
  32. package/src/constants.ts +8 -14
  33. package/src/dedupe.ts +8 -0
  34. package/src/factory.ts +18 -1
  35. package/src/guards.ts +1 -1
  36. package/src/index.ts +7 -50
  37. package/src/node.ts +1 -1
  38. package/src/nodes/base.ts +0 -10
  39. package/src/nodes/code.ts +29 -47
  40. package/src/nodes/content.ts +2 -2
  41. package/src/nodes/file.ts +28 -23
  42. package/src/nodes/function.ts +2 -17
  43. package/src/nodes/index.ts +1 -1
  44. package/src/nodes/input.ts +20 -19
  45. package/src/nodes/operation.ts +1 -1
  46. package/src/nodes/parameter.ts +0 -3
  47. package/src/nodes/property.ts +0 -3
  48. package/src/nodes/requestBody.ts +3 -6
  49. package/src/nodes/schema.ts +3 -2
  50. package/src/printer.ts +4 -4
  51. package/src/registry.ts +31 -26
  52. package/src/signature.ts +3 -3
  53. package/src/transformers.ts +28 -1
  54. package/src/types.ts +2 -53
  55. package/src/utils/codegen.ts +104 -0
  56. package/src/utils/extractStringsFromNodes.ts +34 -0
  57. package/src/utils/fileMerge.ts +184 -0
  58. package/src/utils/index.ts +8 -296
  59. package/src/utils/operationParams.ts +353 -0
  60. package/src/utils/refs.ts +112 -0
  61. package/src/utils/schemaGraph.ts +169 -0
  62. package/src/utils/strings.ts +139 -0
  63. package/src/visitor.ts +43 -19
  64. package/dist/chunk-C0LytTxp.js +0 -8
  65. package/dist/utils-0p8ZO287.js +0 -570
  66. package/dist/utils-0p8ZO287.js.map +0 -1
  67. package/dist/utils-cdQ6Pzyi.cjs +0 -726
  68. package/dist/utils-cdQ6Pzyi.cjs.map +0 -1
  69. package/src/utils/ast.ts +0 -879
@@ -0,0 +1,184 @@
1
+ /**
2
+ * File-member merging. `combineImports`, `combineExports`, and `combineSources` deduplicate and sort
3
+ * the import, export, and source entries of one file, and drop imports nothing references. This works
4
+ * on a file's members, not on schema content.
5
+ *
6
+ * For collapsing duplicate schema shapes by structural signature, see `dedupe.ts`.
7
+ */
8
+ import type { ExportNode, ImportNode, SourceNode } from '../nodes/index.ts'
9
+ import { extractStringsFromNodes } from './extractStringsFromNodes.ts'
10
+
11
+ function sourceKey(source: SourceNode): string {
12
+ const nameKey = source.name ?? extractStringsFromNodes(source.nodes)
13
+ return `${nameKey}:${source.isExportable ?? false}:${source.isTypeOnly ?? false}`
14
+ }
15
+
16
+ function pathTypeKey(path: string, isTypeOnly: boolean | null | undefined): string {
17
+ return `${path}:${isTypeOnly ?? false}`
18
+ }
19
+
20
+ function exportKey(path: string, name: string | null | undefined, isTypeOnly: boolean | null | undefined, asAlias: boolean | null | undefined): string {
21
+ return `${path}:${name ?? ''}:${isTypeOnly ?? false}:${asAlias ?? ''}`
22
+ }
23
+
24
+ function importKey(path: string, name: string | null | undefined, isTypeOnly: boolean | null | undefined): string {
25
+ return `${path}:${name ?? ''}:${isTypeOnly ?? false}`
26
+ }
27
+
28
+ /**
29
+ * Computes a multi-level sort key for exports and imports:
30
+ * non-array names first (wildcards/namespace aliases). Type-only before value. Alphabetical path. Unnamed before named.
31
+ */
32
+ function sortKey(node: { name?: string | Array<unknown> | null; isTypeOnly?: boolean | null; path: string }): string {
33
+ const isArray = Array.isArray(node.name) ? '1' : '0'
34
+ const typeOnly = node.isTypeOnly ? '0' : '1'
35
+ const hasName = node.name != null ? '1' : '0'
36
+ const name = Array.isArray(node.name) ? node.name.toSorted().join('\0') : (node.name ?? '')
37
+ return `${isArray}:${typeOnly}:${node.path}:${hasName}:${name}`
38
+ }
39
+
40
+ /**
41
+ * Deduplicates and merges `SourceNode` objects by `name + isExportable + isTypeOnly`.
42
+ *
43
+ * Unnamed sources are deduplicated by object reference. Returns a deduplicated array in original order.
44
+ */
45
+ export function combineSources(sources: Array<SourceNode>): Array<SourceNode> {
46
+ const seen = new Map<string, SourceNode>()
47
+ for (const source of sources) {
48
+ const key = sourceKey(source)
49
+ if (!seen.has(key)) seen.set(key, source)
50
+ }
51
+ return [...seen.values()]
52
+ }
53
+
54
+ /**
55
+ * Merges `incoming` names into `existing`, preserving order and dropping duplicates.
56
+ *
57
+ * Shared by `combineExports` and `combineImports` for the same-path name-merge case.
58
+ */
59
+ function mergeNameArrays<TName>(existing: Array<TName>, incoming: Array<TName>): Array<TName> {
60
+ const merged = new Set(existing)
61
+ for (const name of incoming) merged.add(name)
62
+ return [...merged]
63
+ }
64
+
65
+ /**
66
+ * Deduplicates and merges `ExportNode` objects by path and type.
67
+ *
68
+ * Named exports with the same path and `isTypeOnly` flag have their names merged into a single export.
69
+ * Non-array exports are deduplicated by exact identity. Returns a sorted, deduplicated array.
70
+ */
71
+ export function combineExports(exports: Array<ExportNode>): Array<ExportNode> {
72
+ const result: Array<ExportNode> = []
73
+ // Accumulates array-named exports keyed by `path:isTypeOnly` for name-merging
74
+ const namedByPath = new Map<string, ExportNode>()
75
+ // Deduplicates non-array exports by their exact identity
76
+ const seen = new Set<string>()
77
+
78
+ // Precompute sort keys once, avoids recomputing per comparison.
79
+ const keyed = exports.map((node) => ({ node, key: sortKey(node) }))
80
+ keyed.sort((a, b) => (a.key < b.key ? -1 : a.key > b.key ? 1 : 0))
81
+
82
+ for (const { node: curr } of keyed) {
83
+ const { name, path, isTypeOnly, asAlias } = curr
84
+
85
+ if (Array.isArray(name)) {
86
+ if (!name.length) continue
87
+
88
+ const key = pathTypeKey(path, isTypeOnly)
89
+ const existing = namedByPath.get(key)
90
+
91
+ if (existing && Array.isArray(existing.name)) {
92
+ existing.name = mergeNameArrays(existing.name, name)
93
+ } else {
94
+ const newItem: ExportNode = { ...curr, name: [...new Set(name)] }
95
+ result.push(newItem)
96
+ namedByPath.set(key, newItem)
97
+ }
98
+ } else {
99
+ const key = exportKey(path, name, isTypeOnly, asAlias)
100
+ if (!seen.has(key)) {
101
+ result.push(curr)
102
+ seen.add(key)
103
+ }
104
+ }
105
+ }
106
+
107
+ return result
108
+ }
109
+
110
+ /**
111
+ * Deduplicates and merges `ImportNode` objects, filtering out unused imports.
112
+ *
113
+ * Retains imports that are referenced in `source` or re-exported. Imports with the same path and
114
+ * `isTypeOnly` flag have their names merged. Returns a sorted, deduplicated, filtered array.
115
+ */
116
+ export function combineImports(imports: Array<ImportNode>, exports: Array<ExportNode>, source?: string): Array<ImportNode> {
117
+ // Build a lookup of all exported names to retain imports that are re-exported
118
+ const exportedNames = new Set(exports.flatMap((e) => (Array.isArray(e.name) ? e.name : e.name ? [e.name] : [])))
119
+ const isUsed = (importName: string): boolean => !source || source.includes(importName) || exportedNames.has(importName)
120
+
121
+ // Memoize object import names so the same logical (propertyName, name) pair always
122
+ // reuses the same object reference. Set-based deduplication then works correctly.
123
+ const importNameMemo = new Map<string, { propertyName: string; name?: string }>()
124
+ const canonicalizeName = (n: string | { propertyName: string; name?: string }): string | { propertyName: string; name?: string } => {
125
+ if (typeof n === 'string') return n
126
+ const key = `${n.propertyName}:${n.name ?? ''}`
127
+ if (!importNameMemo.has(key)) importNameMemo.set(key, n)
128
+ return importNameMemo.get(key)!
129
+ }
130
+
131
+ // Paths that keep at least one used named import. A default import from such a path is retained
132
+ // even when its binding can't be found in `source` e.g. a generated `client` default import
133
+ // alongside `import type { Client } from <same path>`, where merged grouped output omits the body.
134
+ const pathsWithUsedNamedImport = new Set<string>()
135
+ for (const node of imports) {
136
+ if (!Array.isArray(node.name)) continue
137
+ if (node.name.some((item) => (typeof item === 'string' ? isUsed(item) : isUsed(item.name ?? item.propertyName)))) {
138
+ pathsWithUsedNamedImport.add(node.path)
139
+ }
140
+ }
141
+
142
+ const result: Array<ImportNode> = []
143
+ // Accumulates array-named imports keyed by `path:isTypeOnly` for name-merging
144
+ const namedByPath = new Map<string, ImportNode>()
145
+ // Deduplicates non-array imports by their exact identity
146
+ const seen = new Set<string>()
147
+
148
+ // Precompute sort keys once, avoids recomputing per comparison.
149
+ const keyed = imports.map((node) => ({ node, key: sortKey(node) }))
150
+ keyed.sort((a, b) => (a.key < b.key ? -1 : a.key > b.key ? 1 : 0))
151
+
152
+ for (const { node: curr } of keyed) {
153
+ if (curr.path === curr.root) continue
154
+
155
+ const { path, isTypeOnly } = curr
156
+ let { name } = curr
157
+
158
+ if (Array.isArray(name)) {
159
+ name = [...new Set(name.map(canonicalizeName))].filter((item) => (typeof item === 'string' ? isUsed(item) : isUsed(item.name ?? item.propertyName)))
160
+ if (!name.length) continue
161
+
162
+ const key = pathTypeKey(path, isTypeOnly)
163
+ const existing = namedByPath.get(key)
164
+
165
+ if (existing && Array.isArray(existing.name)) {
166
+ existing.name = mergeNameArrays(existing.name, name)
167
+ } else {
168
+ const newItem: ImportNode = { ...curr, name }
169
+ result.push(newItem)
170
+ namedByPath.set(key, newItem)
171
+ }
172
+ } else {
173
+ if (name && !isUsed(name) && !pathsWithUsedNamedImport.has(path)) continue
174
+
175
+ const key = importKey(path, name, isTypeOnly)
176
+ if (!seen.has(key)) {
177
+ result.push(curr)
178
+ seen.add(key)
179
+ }
180
+ }
181
+ }
182
+
183
+ return result
184
+ }
@@ -1,297 +1,9 @@
1
- import { isIdentifier, pascalCase, singleQuote } from '@internals/utils'
2
- import { INDENT } from '../constants.ts'
3
-
4
1
  export { isValidVarName } from '@internals/utils'
5
-
6
- /**
7
- * Strips a single matching pair of `"..."`, `'...'`, or `` `...` `` from both ends of `text`.
8
- * Returns the string unchanged when no balanced quote pair is found.
9
- *
10
- * @example
11
- * ```ts
12
- * trimQuotes('"hello"') // 'hello'
13
- * trimQuotes('hello') // 'hello'
14
- * ```
15
- */
16
- export function trimQuotes(text: string): string {
17
- if (text.length >= 2) {
18
- const first = text[0]
19
- const last = text[text.length - 1]
20
- if ((first === '"' && last === '"') || (first === "'" && last === "'") || (first === '`' && last === '`')) {
21
- return text.slice(1, -1)
22
- }
23
- }
24
- return text
25
- }
26
-
27
- /**
28
- * Serializes a primitive value to a single-quoted string literal, stripping any surrounding quote
29
- * characters first. Escaping comes from `JSON.stringify`, then the quote style switches to single
30
- * quotes so generated code matches the repo style without a formatter.
31
- *
32
- * @example
33
- * ```ts
34
- * stringify('hello') // "'hello'"
35
- * stringify('"hello"') // "'hello'"
36
- * ```
37
- */
38
- export function stringify(value: string | number | boolean | undefined): string {
39
- if (value === undefined || value === null) return "''"
40
- const json = JSON.stringify(trimQuotes(value.toString()))
41
- const inner = json.slice(1, -1).replace(/\\"/g, '"').replace(/'/g, "\\'")
42
- return `'${inner}'`
43
- }
44
-
45
- /**
46
- * Escapes characters that are not allowed inside JS string literals, covering quotes, backslashes,
47
- * and the Unicode line terminators U+2028 and U+2029.
48
- *
49
- * @see http://www.ecma-international.org/ecma-262/5.1/#sec-7.8.4
50
- *
51
- * @example
52
- * ```ts
53
- * jsStringEscape('say "hi"\nbye') // 'say \\"hi\\"\\nbye'
54
- * ```
55
- */
56
- export function jsStringEscape(input: unknown): string {
57
- return `${input}`.replace(/["'\\\n\r\u2028\u2029]/g, (character) => {
58
- switch (character) {
59
- case '"':
60
- case "'":
61
- case '\\':
62
- return `\\${character}`
63
- case '\n':
64
- return '\\n'
65
- case '\r':
66
- return '\\r'
67
- case '\u2028':
68
- return '\\u2028'
69
- case '\u2029':
70
- return '\\u2029'
71
- default:
72
- return ''
73
- }
74
- })
75
- }
76
-
77
- /**
78
- * Converts a pattern string into a `new RegExp(...)` constructor call or a regex literal string.
79
- * Inline flags expressed as a `^(?im)` prefix are extracted and applied to the resulting expression.
80
- * Pass `null` as the second argument to emit a `/pattern/flags` literal instead.
81
- *
82
- * @example
83
- * ```ts
84
- * toRegExpString('^(?im)foo') // 'new RegExp("^foo", "im")'
85
- * toRegExpString('^(?im)foo', null) // '/^foo/im'
86
- * ```
87
- */
88
- export function toRegExpString(text: string, func: string | null = 'RegExp'): string {
89
- const raw = trimQuotes(text)
90
-
91
- const match = raw.match(/^\^(\(\?([igmsuy]+)\))/i)
92
- const replacementTarget = match?.[1] ?? ''
93
- const matchedFlags = match?.[2]
94
- const cleaned = raw
95
- .replace(/^\\?\//, '')
96
- .replace(/\\?\/$/, '')
97
- .replace(replacementTarget, '')
98
-
99
- const { source, flags } = new RegExp(cleaned, matchedFlags)
100
-
101
- if (func === null) return `/${source}/${flags}`
102
-
103
- return `new ${func}(${JSON.stringify(source)}${flags ? `, ${JSON.stringify(flags)}` : ''})`
104
- }
105
-
106
- /**
107
- * Renders a plain object as multi-line `key: value` source for embedding in generated code. Nested
108
- * objects recurse with fixed indentation, so the result drops straight into an object literal
109
- * without re-parsing.
110
- *
111
- * @example
112
- * ```ts
113
- * stringifyObject({ foo: 'bar', nested: { a: 1 } })
114
- * // 'foo: bar,\nnested: {\n a: 1\n }'
115
- * ```
116
- */
117
- export function stringifyObject(value: Record<string, unknown>): string {
118
- const items = Object.entries(value)
119
- .map(([key, val]) => {
120
- if (val !== null && typeof val === 'object') {
121
- return `${key}: {\n ${stringifyObject(val as Record<string, unknown>)}\n }`
122
- }
123
- return `${key}: ${val}`
124
- })
125
- .filter(Boolean)
126
- return items.join(',\n')
127
- }
128
-
129
- /**
130
- * Renders a dotted path or string array as an optional-chaining accessor expression rooted at
131
- * `accessor`. Returns `null` for an empty path.
132
- *
133
- * @example
134
- * ```ts
135
- * getNestedAccessor('pagination.next.id', 'lastPage')
136
- * // "lastPage?.['pagination']?.['next']?.['id']"
137
- * ```
138
- */
139
- export function getNestedAccessor(param: string | Array<string>, accessor: string): string | null {
140
- const parts = Array.isArray(param) ? param : param.split('.')
141
- if (parts.length === 0 || (parts.length === 1 && parts[0] === '')) return null
142
- return `${accessor}?.['${`${parts.join("']?.['")}']`}`
143
- }
144
-
145
- /**
146
- * Builds a JSDoc comment block from an array of lines, returning `fallback` when there are no
147
- * comments so callers always get a usable string.
148
- *
149
- * @example
150
- * ```ts
151
- * buildJSDoc(['@type string', '@example hello'])
152
- * // '/**\n * @type string\n * @example hello\n *\/\n '
153
- * ```
154
- */
155
- export function buildJSDoc(
156
- comments: Array<string>,
157
- options: {
158
- /**
159
- * String used to indent each comment line.
160
- * @default ' * '
161
- */
162
- indent?: string
163
- /**
164
- * String appended after the closing tag.
165
- * @default '\n '
166
- */
167
- suffix?: string
168
- /**
169
- * Returned as-is when `comments` is empty.
170
- * @default ' '
171
- */
172
- fallback?: string
173
- } = {},
174
- ): string {
175
- const { indent = ' * ', suffix = '\n ', fallback = ' ' } = options
176
-
177
- if (comments.length === 0) return fallback
178
-
179
- return `/**\n${comments.map((c) => `${indent}${c}`).join('\n')}\n */${suffix}`
180
- }
181
-
182
- /**
183
- * Indents every non-empty line of `text` by one indent level, leaving blank lines empty.
184
- */
185
- function indentLines(text: string): string {
186
- if (!text) return ''
187
- return text
188
- .split('\n')
189
- .map((line) => (line.trim() ? `${INDENT}${line}` : ''))
190
- .join('\n')
191
- }
192
-
193
- /**
194
- * Renders an object key, quoting it with single quotes only when it is not a valid identifier.
195
- * Reserved words and globals (`name`, `class`, …) are valid bare keys and stay unquoted.
196
- *
197
- * @example
198
- * ```ts
199
- * objectKey('name') // 'name'
200
- * objectKey('x-total') // "'x-total'"
201
- * ```
202
- */
203
- export function objectKey(name: string): string {
204
- return isIdentifier(name) ? name : singleQuote(name)
205
- }
206
-
207
- /**
208
- * Assembles a multi-line object literal from already-rendered `entries`, indenting each entry one
209
- * level and closing the brace at column zero. Nested objects built the same way indent cumulatively,
210
- * so callers never re-parse the generated code. A trailing comma is added per entry to match the
211
- * formatter's multi-line style.
212
- *
213
- * @example
214
- * ```ts
215
- * buildObject(['id: z.number()', 'name: z.string()'])
216
- * // '{\n id: z.number(),\n name: z.string(),\n}'
217
- * ```
218
- */
219
- export function buildObject(entries: Array<string>): string {
220
- if (entries.length === 0) return '{}'
221
- const body = entries.map((entry) => `${indentLines(entry)},`).join('\n')
222
-
223
- return `{\n${body}\n}`
224
- }
225
-
226
- /**
227
- * Assembles a bracketed list (array by default) from already-rendered `items`. Keeps everything on
228
- * one line when no item spans multiple lines, and otherwise puts each item on its own line, indented
229
- * one level with a trailing comma and the closing bracket at column zero. Use it for `z.union([…])`,
230
- * `z.array([…])`, and similar member lists so objects inside them nest correctly.
231
- *
232
- * @example
233
- * ```ts
234
- * buildList(['z.string()', 'z.number()'])
235
- * // '[z.string(), z.number()]'
236
- * ```
237
- */
238
- export function buildList(items: Array<string>, brackets: [open: string, close: string] = ['[', ']']): string {
239
- const [open, close] = brackets
240
- if (items.length === 0) return `${open}${close}`
241
- if (!items.some((item) => item.includes('\n'))) return `${open}${items.join(', ')}${close}`
242
- const body = items.map((item) => `${indentLines(item)},`).join('\n')
243
-
244
- return `${open}\n${body}\n${close}`
245
- }
246
-
247
- /**
248
- * Returns the last path segment of a reference string.
249
- *
250
- * @example
251
- * ```ts
252
- * extractRefName('#/components/schemas/Pet') // 'Pet'
253
- * ```
254
- */
255
- export function extractRefName(ref: string): string {
256
- return ref.split('/').at(-1) ?? ref
257
- }
258
-
259
- /**
260
- * Builds a PascalCase child schema name by joining a parent name and property name.
261
- * Returns `null` when there is no parent to nest under.
262
- *
263
- * @example
264
- * ```ts
265
- * childName('Order', 'shipping_address') // 'OrderShippingAddress'
266
- * childName(undefined, 'params') // null
267
- * ```
268
- */
269
- export function childName(parentName: string | null | undefined, propName: string): string | null {
270
- return parentName ? pascalCase([parentName, propName].join(' ')) : null
271
- }
272
-
273
- /**
274
- * Builds a PascalCase enum name from the parent name, property name, and a suffix, skipping any
275
- * empty parts.
276
- *
277
- * @example
278
- * ```ts
279
- * enumPropName('Order', 'status', 'enum') // 'OrderStatusEnum'
280
- * ```
281
- */
282
- export function enumPropName(parentName: string | null | undefined, propName: string, enumSuffix: string): string {
283
- return pascalCase([parentName, propName, enumSuffix].filter(Boolean).join(' '))
284
- }
285
-
286
- /**
287
- * Returns the discriminator key whose mapping value matches `ref`, or `null` when there is no match.
288
- *
289
- * @example
290
- * ```ts
291
- * findDiscriminator({ dog: '#/components/schemas/Dog' }, '#/components/schemas/Dog') // 'dog'
292
- * ```
293
- */
294
- export function findDiscriminator(mapping: Record<string, string> | undefined, ref: string | undefined): string | null {
295
- if (!mapping || !ref) return null
296
- return Object.entries(mapping).find(([, value]) => value === ref)?.[0] ?? null
297
- }
2
+ export { buildJSDoc, buildList, buildObject, objectKey } from './codegen.ts'
3
+ export { extractStringsFromNodes } from './extractStringsFromNodes.ts'
4
+ export { childName, enumPropName, extractRefName, isStringType, resolveGroupType } from './refs.ts'
5
+ export { syncSchemaRef } from '../transformers.ts'
6
+ export { getNestedAccessor, jsStringEscape, stringify, stringifyObject, toRegExpString, trimQuotes } from './strings.ts'
7
+ export { collectUsedSchemaNames, containsCircularRef, findCircularSchemas } from './schemaGraph.ts'
8
+ export { buildGroupParam, buildTypeLiteral, caseParams, createOperationParams, resolveParamType } from './operationParams.ts'
9
+ export type { BuildGroupArgs, ParamGroupType } from './operationParams.ts'