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

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.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as __name } from "./chunk-C0LytTxp.js";
2
- import { $ as DedupeCanonical, $t as schemaTypes, A as createFunctionParameter, At as NumberSchemaNode, B as createProperty, Bt as UnionSchemaNode, C as UserFileNode, Ct as ImportNode, D as createExport, Dt as DatetimeSchemaNode, E as createConst, Et as DateSchemaNode, F as createOperation, Ft as SchemaNode, G as createText, Gt as ConstNode, H as createSchema, Ht as PropertyNode, I as createOutput, It as SchemaNodeByType, J as update, Jt as JsxNode, K as createType, Kt as FunctionNode, L as createParameter, Lt as SchemaType, M as createImport, Mt as PrimitiveSchemaType, N as createInput, Nt as RefSchemaNode, O as createFile, Ot as EnumSchemaNode, P as createJsx, Pt as ScalarSchemaType, Q as defineSchemaDialect, Qt as httpMethods, R as createParameterGroup, Rt as StringSchemaNode, S as DistributiveOmit, St as FileNode, T as createBreak, Tt as ArraySchemaNode, U as createSource, Ut as ArrowFunctionNode, V as createResponse, Vt as UrlSchemaNode, W as createStreamInput, Wt as CodeNode, X as ParserOptions, Xt as TypeNode, Y as InferSchemaNode, Yt as TextNode, Z as SchemaDialect, Zt as NodeKind, _ as Printer, _t as FunctionParameterNode, a as createDiscriminantNode, at as OutputNode, b as createPrinterFactory, bt as ParamsTypeNode, c as findCircularSchemas, ct as HttpMethod, d as ParentOf, dt as ResponseNode, et as DedupeLookups, f as Visitor, ft as StatusCode, g as walk, gt as FunctionParamNode, h as transform, ht as FunctionNodeType, i as containsCircularRef, it as Node, j as createFunctionParameters, jt as ObjectSchemaNode, k as createFunction, kt as IntersectionSchemaNode, l as isStringType, lt as HttpOperationNode, m as collect, mt as ParameterNode, n as caseParams, nt as applyDedupe, o as createOperationParams, ot as InputMeta, p as VisitorContext, pt as ParameterLocation, q as syncOptionality, qt as JSDocNode, r as collectUsedSchemaNames, rt as buildDedupePlan, s as extractStringsFromNodes, st as InputNode, t as OperationParamsResolver, tt as DedupePlan, u as syncSchemaRef, ut as OperationNode, v as PrinterFactoryOptions, vt as FunctionParametersNode, w as createArrowFunction, wt as SourceNode, x as definePrinter, xt as ExportNode, y as PrinterPartial, yt as ParameterGroupNode, z as createParamsType, zt as TimeSchemaNode } from "./types-BL7RpQAE.js";
2
+ import { $ as createParameter, $t as InferSchemaNode, A as applyDedupe, At as contentDef, B as inputDef, Bt as ScalarSchemaType, C as createFile, Cn as DistributiveOmit, Ct as createExport, D as DedupeCanonical, Dn as NodeKind, Dt as fileDef, E as defineSchemaDialect, En as syncOptionality, Et as exportDef, F as outputDef, Ft as IntersectionSchemaNode, G as operationDef, Gt as TimeSchemaNode, H as HttpOperationNode, Ht as SchemaNodeByType, I as InputMeta, It as NumberSchemaNode, J as responseDef, Jt as createSchema, K as ResponseNode, Kt as UnionSchemaNode, L as InputNode, Lt as ObjectSchemaNode, M as Node, Mt as DateSchemaNode, N as OutputNode, Nt as DatetimeSchemaNode, O as DedupeLookups, On as httpMethods, Ot as importDef, P as createOutput, Pt as EnumSchemaNode, Q as ParameterNode, Qt as propertyDef, R as createInput, Rt as PrimitiveSchemaType, S as UserFileNode, Sn as typeDef, St as SourceNode, T as SchemaDialect, Tn as defineNode, Tt as createSource, U as OperationNode, Ut as SchemaType, V as HttpMethod, Vt as SchemaNode, W as createOperation, Wt as StringSchemaNode, X as requestBodyDef, Xt as PropertyNode, Y as StatusCode, Yt as schemaDef, Z as ParameterLocation, Zt as createProperty, _ as Printer, _n as createText, _t as objectBindingPatternDef, a as createDiscriminantNode, an as JSDocNode, at as IndexedAccessTypeNode, b as createPrinterFactory, bn as jsxDef, bt as FileNode, c as findCircularSchemas, cn as TypeNode, ct as TypeLiteralNode, d as ParentOf, dn as constDef, dt as createIndexedAccessType, en as ParserOptions, et as parameterDef, f as Visitor, fn as createArrowFunction, ft as createObjectBindingPattern, g as walk, gn as createJsx, gt as indexedAccessTypeDef, h as transform, hn as createFunction, ht as functionParametersDef, i as containsCircularRef, in as FunctionNode, it as FunctionParametersNode, j as buildDedupePlan, jt as ArraySchemaNode, k as DedupePlan, kn as schemaTypes, kt as sourceDef, l as isStringType, ln as arrowFunctionDef, lt as createFunctionParameter, m as collect, mn as createConst, mt as functionParameterDef, n as caseParams, nn as CodeNode, nt as FunctionParamNode, o as createOperationParams, on as JsxNode, ot as ObjectBindingPatternNode, p as VisitorContext, pn as createBreak, pt as createTypeLiteral, q as createResponse, qt as UrlSchemaNode, r as collectUsedSchemaNames, rn as ConstNode, rt as FunctionParameterNode, s as extractStringsFromNodes, sn as TextNode, st as TypeExpression, t as OperationParamsResolver, tn as ArrowFunctionNode, tt as FunctionNodeType, u as syncSchemaRef, un as breakDef, ut as createFunctionParameters, v as PrinterFactoryOptions, vn as createType, vt as typeLiteralDef, w as update, wn as NodeDef, wt as createImport, x as definePrinter, xn as textDef, xt as ImportNode, y as PrinterPartial, yn as functionDef, yt as ExportNode, z as createStreamInput, zt as RefSchemaNode } from "./types-C5aVnRE1.js";
3
3
 
4
4
  //#region src/guards.d.ts
5
5
  /**
@@ -12,39 +12,6 @@ import { $ as DedupeCanonical, $t as schemaTypes, A as createFunctionParameter,
12
12
  * ```
13
13
  */
14
14
  declare function narrowSchema<T extends SchemaNode['type']>(node: SchemaNode | undefined, type: T): SchemaNodeByType[T] | null;
15
- /**
16
- * Returns `true` when the input is an `InputNode`.
17
- *
18
- * @example
19
- * ```ts
20
- * if (isInputNode(node)) {
21
- * console.log(node.schemas.length)
22
- * }
23
- * ```
24
- */
25
- declare const isInputNode: (node: unknown) => node is InputNode;
26
- /**
27
- * Returns `true` when the input is an `OutputNode`.
28
- *
29
- * @example
30
- * ```ts
31
- * if (isOutputNode(node)) {
32
- * console.log(node.files.length)
33
- * }
34
- * ```
35
- */
36
- declare const isOutputNode: (node: unknown) => node is OutputNode;
37
- /**
38
- * Returns `true` when the input is an `OperationNode`.
39
- *
40
- * @example
41
- * ```ts
42
- * if (isOperationNode(node)) {
43
- * console.log(node.operationId)
44
- * }
45
- * ```
46
- */
47
- declare const isOperationNode: (node: unknown) => node is OperationNode;
48
15
  /**
49
16
  * Narrows an `OperationNode` to an `HttpOperationNode`, guaranteeing `method` and `path`.
50
17
  *
@@ -56,17 +23,6 @@ declare const isOperationNode: (node: unknown) => node is OperationNode;
56
23
  * ```
57
24
  */
58
25
  declare function isHttpOperationNode(node: OperationNode): node is HttpOperationNode;
59
- /**
60
- * Returns `true` when the input is a `SchemaNode`.
61
- *
62
- * @example
63
- * ```ts
64
- * if (isSchemaNode(node)) {
65
- * console.log(node.type)
66
- * }
67
- * ```
68
- */
69
- declare const isSchemaNode: (node: unknown) => node is SchemaNode;
70
26
  //#endregion
71
27
  //#region src/signature.d.ts
72
28
  /**
@@ -138,5 +94,5 @@ declare function mergeAdjacentObjectsLazy(members: Iterable<SchemaNode>): Genera
138
94
  declare function simplifyUnion(members: Array<SchemaNode>): Array<SchemaNode>;
139
95
  declare function setEnumName(propNode: SchemaNode, parentName: string | null | undefined, propName: string, enumSuffix: string): SchemaNode;
140
96
  //#endregion
141
- export { type ArraySchemaNode, type ArrowFunctionNode, type CodeNode, type ConstNode, type DateSchemaNode, type DatetimeSchemaNode, type DedupeCanonical, type DedupeLookups, type DedupePlan, type DistributiveOmit, type EnumSchemaNode, type ExportNode, type FileNode, type FunctionNode, type FunctionNodeType, type FunctionParamNode, type FunctionParameterNode, type FunctionParametersNode, type HttpMethod, type HttpOperationNode, type ImportNode, type InferSchemaNode, type InputMeta, type InputNode, type IntersectionSchemaNode, type JSDocNode, type JsxNode, type Node, type NodeKind, type NumberSchemaNode, type ObjectSchemaNode, type OperationNode, type OperationParamsResolver, type OutputNode, type ParameterGroupNode, type ParameterLocation, type ParameterNode, type ParamsTypeNode, type ParentOf, type ParserOptions, type PrimitiveSchemaType, type Printer, type PrinterFactoryOptions, type PrinterPartial, type PropertyNode, type RefSchemaNode, type ResponseNode, type ScalarSchemaType, type SchemaDialect, type SchemaNode, type SchemaNodeByType, type SchemaType, type SourceNode, type StatusCode, type StringSchemaNode, type TextNode, type TimeSchemaNode, type TypeNode, type UnionSchemaNode, type UrlSchemaNode, type UserFileNode, type Visitor, type VisitorContext, applyDedupe, buildDedupePlan, caseParams, collect, collectUsedSchemaNames, containsCircularRef, createArrowFunction, createBreak, createConst, createDiscriminantNode, createExport, createFile, createFunction, createFunctionParameter, createFunctionParameters, createImport, createInput, createJsx, createOperation, createOperationParams, createOutput, createParameter, createParameterGroup, createParamsType, createPrinterFactory, createProperty, createResponse, createSchema, createSource, createStreamInput, createText, createType, definePrinter, defineSchemaDialect, extractStringsFromNodes, findCircularSchemas, httpMethods, isHttpOperationNode, isInputNode, isOperationNode, isOutputNode, isSchemaNode, isStringType, mergeAdjacentObjectsLazy, narrowSchema, schemaTypes, setDiscriminatorEnum, setEnumName, signatureOf, simplifyUnion, syncOptionality, syncSchemaRef, transform, update, walk };
97
+ export { type ArraySchemaNode, type ArrowFunctionNode, type CodeNode, type ConstNode, type DateSchemaNode, type DatetimeSchemaNode, type DedupeCanonical, type DedupeLookups, type DedupePlan, type DistributiveOmit, type EnumSchemaNode, type ExportNode, type FileNode, type FunctionNode, type FunctionNodeType, type FunctionParamNode, type FunctionParameterNode, type FunctionParametersNode, type HttpMethod, type HttpOperationNode, type ImportNode, type IndexedAccessTypeNode, type InferSchemaNode, type InputMeta, type InputNode, type IntersectionSchemaNode, type JSDocNode, type JsxNode, type Node, type NodeDef, type NodeKind, type NumberSchemaNode, type ObjectBindingPatternNode, type ObjectSchemaNode, type OperationNode, type OperationParamsResolver, type OutputNode, type ParameterLocation, type ParameterNode, type ParentOf, type ParserOptions, type PrimitiveSchemaType, type Printer, type PrinterFactoryOptions, type PrinterPartial, type PropertyNode, type RefSchemaNode, type ResponseNode, type ScalarSchemaType, type SchemaDialect, type SchemaNode, type SchemaNodeByType, type SchemaType, type SourceNode, type StatusCode, type StringSchemaNode, type TextNode, type TimeSchemaNode, type TypeExpression, type TypeLiteralNode, type TypeNode, type UnionSchemaNode, type UrlSchemaNode, type UserFileNode, type Visitor, type VisitorContext, applyDedupe, arrowFunctionDef, breakDef, buildDedupePlan, caseParams, collect, collectUsedSchemaNames, constDef, containsCircularRef, contentDef, createArrowFunction, createBreak, createConst, createDiscriminantNode, createExport, createFile, createFunction, createFunctionParameter, createFunctionParameters, createImport, createIndexedAccessType, createInput, createJsx, createObjectBindingPattern, createOperation, createOperationParams, createOutput, createParameter, createPrinterFactory, createProperty, createResponse, createSchema, createSource, createStreamInput, createText, createType, createTypeLiteral, defineNode, definePrinter, defineSchemaDialect, exportDef, extractStringsFromNodes, fileDef, findCircularSchemas, functionDef, functionParameterDef, functionParametersDef, httpMethods, importDef, indexedAccessTypeDef, inputDef, isHttpOperationNode, isStringType, jsxDef, mergeAdjacentObjectsLazy, narrowSchema, objectBindingPatternDef, operationDef, outputDef, parameterDef, propertyDef, requestBodyDef, responseDef, schemaDef, schemaTypes, setDiscriminatorEnum, setEnumName, signatureOf, simplifyUnion, sourceDef, syncOptionality, syncSchemaRef, textDef, transform, typeDef, typeLiteralDef, update, walk };
142
98
  //# sourceMappingURL=index.d.ts.map