@formspec/build 0.1.0-alpha.4 → 0.1.0-alpha.41

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 (113) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +238 -93
  3. package/dist/analyzer/class-analyzer.d.ts +135 -0
  4. package/dist/analyzer/class-analyzer.d.ts.map +1 -0
  5. package/dist/analyzer/jsdoc-constraints.d.ts +53 -0
  6. package/dist/analyzer/jsdoc-constraints.d.ts.map +1 -0
  7. package/dist/analyzer/program.d.ts +94 -0
  8. package/dist/analyzer/program.d.ts.map +1 -0
  9. package/dist/analyzer/tsdoc-parser.d.ts +126 -0
  10. package/dist/analyzer/tsdoc-parser.d.ts.map +1 -0
  11. package/dist/browser.cjs +2113 -0
  12. package/dist/browser.cjs.map +1 -0
  13. package/dist/browser.d.ts +74 -0
  14. package/dist/browser.d.ts.map +1 -0
  15. package/dist/browser.js +2070 -0
  16. package/dist/browser.js.map +1 -0
  17. package/dist/build-alpha.d.ts +1501 -0
  18. package/dist/build-beta.d.ts +1501 -0
  19. package/dist/build-internal.d.ts +1501 -0
  20. package/dist/build.d.ts +1194 -43
  21. package/dist/canonicalize/chain-dsl-canonicalizer.d.ts +22 -0
  22. package/dist/canonicalize/chain-dsl-canonicalizer.d.ts.map +1 -0
  23. package/dist/canonicalize/index.d.ts +8 -0
  24. package/dist/canonicalize/index.d.ts.map +1 -0
  25. package/dist/canonicalize/tsdoc-canonicalizer.d.ts +38 -0
  26. package/dist/canonicalize/tsdoc-canonicalizer.d.ts.map +1 -0
  27. package/dist/cli.cjs +6715 -0
  28. package/dist/cli.cjs.map +1 -0
  29. package/dist/cli.js +6687 -103
  30. package/dist/cli.js.map +1 -1
  31. package/dist/extensions/index.d.ts +8 -0
  32. package/dist/extensions/index.d.ts.map +1 -0
  33. package/dist/extensions/registry.d.ts +83 -0
  34. package/dist/extensions/registry.d.ts.map +1 -0
  35. package/dist/generators/class-schema.d.ts +347 -0
  36. package/dist/generators/class-schema.d.ts.map +1 -0
  37. package/dist/generators/discovered-schema.d.ts +152 -0
  38. package/dist/generators/discovered-schema.d.ts.map +1 -0
  39. package/dist/generators/method-schema.d.ts +72 -0
  40. package/dist/generators/method-schema.d.ts.map +1 -0
  41. package/dist/generators/mixed-authoring.d.ts +52 -0
  42. package/dist/generators/mixed-authoring.d.ts.map +1 -0
  43. package/dist/index.cjs +6412 -0
  44. package/dist/index.cjs.map +1 -0
  45. package/dist/index.d.ts +50 -8
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +6387 -107
  48. package/dist/index.js.map +1 -1
  49. package/dist/internals.cjs +5573 -0
  50. package/dist/internals.cjs.map +1 -0
  51. package/dist/internals.d.ts +32 -0
  52. package/dist/internals.d.ts.map +1 -0
  53. package/dist/internals.js +5554 -0
  54. package/dist/internals.js.map +1 -0
  55. package/dist/json-schema/generator.d.ts +32 -6
  56. package/dist/json-schema/generator.d.ts.map +1 -1
  57. package/dist/json-schema/ir-generator.d.ts +149 -0
  58. package/dist/json-schema/ir-generator.d.ts.map +1 -0
  59. package/dist/json-schema/schema.d.ts +23 -0
  60. package/dist/json-schema/schema.d.ts.map +1 -0
  61. package/dist/json-schema/types.d.ts +76 -2
  62. package/dist/json-schema/types.d.ts.map +1 -1
  63. package/dist/metadata/collision-guards.d.ts +3 -0
  64. package/dist/metadata/collision-guards.d.ts.map +1 -0
  65. package/dist/metadata/index.d.ts +7 -0
  66. package/dist/metadata/index.d.ts.map +1 -0
  67. package/dist/metadata/policy.d.ts +12 -0
  68. package/dist/metadata/policy.d.ts.map +1 -0
  69. package/dist/metadata/resolve.d.ts +21 -0
  70. package/dist/metadata/resolve.d.ts.map +1 -0
  71. package/dist/static-build.d.ts +61 -0
  72. package/dist/static-build.d.ts.map +1 -0
  73. package/dist/ui-schema/generator.d.ts +18 -2
  74. package/dist/ui-schema/generator.d.ts.map +1 -1
  75. package/dist/ui-schema/ir-generator.d.ts +54 -0
  76. package/dist/ui-schema/ir-generator.d.ts.map +1 -0
  77. package/dist/ui-schema/schema.d.ts +429 -0
  78. package/dist/ui-schema/schema.d.ts.map +1 -0
  79. package/dist/ui-schema/types.d.ts +179 -35
  80. package/dist/ui-schema/types.d.ts.map +1 -1
  81. package/dist/validate/constraint-validator.d.ts +85 -0
  82. package/dist/validate/constraint-validator.d.ts.map +1 -0
  83. package/dist/validate/index.d.ts +9 -0
  84. package/dist/validate/index.d.ts.map +1 -0
  85. package/package.json +31 -11
  86. package/dist/__tests__/cli.test.d.ts +0 -2
  87. package/dist/__tests__/cli.test.d.ts.map +0 -1
  88. package/dist/__tests__/cli.test.js +0 -178
  89. package/dist/__tests__/cli.test.js.map +0 -1
  90. package/dist/__tests__/edge-cases.test.d.ts +0 -7
  91. package/dist/__tests__/edge-cases.test.d.ts.map +0 -1
  92. package/dist/__tests__/edge-cases.test.js +0 -217
  93. package/dist/__tests__/edge-cases.test.js.map +0 -1
  94. package/dist/__tests__/generator.test.d.ts +0 -2
  95. package/dist/__tests__/generator.test.d.ts.map +0 -1
  96. package/dist/__tests__/generator.test.js +0 -225
  97. package/dist/__tests__/generator.test.js.map +0 -1
  98. package/dist/__tests__/integration.test.d.ts +0 -8
  99. package/dist/__tests__/integration.test.d.ts.map +0 -1
  100. package/dist/__tests__/integration.test.js +0 -163
  101. package/dist/__tests__/integration.test.js.map +0 -1
  102. package/dist/__tests__/write-schemas.test.d.ts +0 -2
  103. package/dist/__tests__/write-schemas.test.d.ts.map +0 -1
  104. package/dist/__tests__/write-schemas.test.js +0 -196
  105. package/dist/__tests__/write-schemas.test.js.map +0 -1
  106. package/dist/json-schema/generator.js +0 -161
  107. package/dist/json-schema/generator.js.map +0 -1
  108. package/dist/json-schema/types.js +0 -7
  109. package/dist/json-schema/types.js.map +0 -1
  110. package/dist/ui-schema/generator.js +0 -150
  111. package/dist/ui-schema/generator.js.map +0 -1
  112. package/dist/ui-schema/types.js +0 -8
  113. package/dist/ui-schema/types.js.map +0 -1
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Extension registry for `@formspec/build`.
3
+ *
4
+ * @packageDocumentation
5
+ */
6
+ export { createExtensionRegistry } from "./registry.js";
7
+ export type { ExtensionRegistry } from "./registry.js";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/extensions/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,YAAY,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Extension registry for resolving custom types, constraints, and annotations
3
+ * during JSON Schema generation and IR validation.
4
+ *
5
+ * The registry is created from a list of {@link ExtensionDefinition} objects
6
+ * and provides O(1) lookup by fully-qualified ID (extensionId + "/" + name).
7
+ *
8
+ * @packageDocumentation
9
+ */
10
+ import type { ExtensionDefinition, CustomTypeRegistration, CustomConstraintRegistration, CustomAnnotationRegistration, ConstraintTagRegistration, BuiltinConstraintBroadeningRegistration } from "@formspec/core";
11
+ /**
12
+ * A registry of extensions that provides lookup by fully-qualified ID.
13
+ *
14
+ * Type IDs follow the format: `<extensionId>/<typeName>`
15
+ * Constraint IDs follow the format: `<extensionId>/<constraintName>`
16
+ * Annotation IDs follow the format: `<extensionId>/<annotationName>`
17
+ *
18
+ * @public
19
+ */
20
+ export interface ExtensionRegistry {
21
+ /** The extensions registered in this registry (in registration order). */
22
+ readonly extensions: readonly ExtensionDefinition[];
23
+ /**
24
+ * Look up a custom type registration by its fully-qualified type ID.
25
+ *
26
+ * @param typeId - The fully-qualified type ID (e.g., "x-stripe/monetary/Decimal").
27
+ * @returns The registration if found, otherwise `undefined`.
28
+ */
29
+ findType(typeId: string): CustomTypeRegistration | undefined;
30
+ /**
31
+ * Look up a custom type registration by a TypeScript-facing type name.
32
+ *
33
+ * This is used during TSDoc/class analysis to resolve extension-defined
34
+ * custom types from source-level declarations.
35
+ */
36
+ findTypeByName(typeName: string): {
37
+ readonly extensionId: string;
38
+ readonly registration: CustomTypeRegistration;
39
+ } | undefined;
40
+ /**
41
+ * Look up a custom constraint registration by its fully-qualified constraint ID.
42
+ *
43
+ * @param constraintId - The fully-qualified constraint ID.
44
+ * @returns The registration if found, otherwise `undefined`.
45
+ */
46
+ findConstraint(constraintId: string): CustomConstraintRegistration | undefined;
47
+ /**
48
+ * Look up a TSDoc custom constraint-tag registration by tag name.
49
+ */
50
+ findConstraintTag(tagName: string): {
51
+ readonly extensionId: string;
52
+ readonly registration: ConstraintTagRegistration;
53
+ } | undefined;
54
+ /**
55
+ * Look up built-in tag broadening for a given custom type ID.
56
+ */
57
+ findBuiltinConstraintBroadening(typeId: string, tagName: string): {
58
+ readonly extensionId: string;
59
+ readonly registration: BuiltinConstraintBroadeningRegistration;
60
+ } | undefined;
61
+ /**
62
+ * Look up a custom annotation registration by its fully-qualified annotation ID.
63
+ *
64
+ * @param annotationId - The fully-qualified annotation ID.
65
+ * @returns The registration if found, otherwise `undefined`.
66
+ */
67
+ findAnnotation(annotationId: string): CustomAnnotationRegistration | undefined;
68
+ }
69
+ /**
70
+ * Creates an extension registry from a list of extension definitions.
71
+ *
72
+ * The registry indexes all types, constraints, and annotations by their
73
+ * fully-qualified IDs (`<extensionId>/<name>`) for O(1) lookup during
74
+ * generation and validation.
75
+ *
76
+ * @param extensions - The extension definitions to register.
77
+ * @returns An {@link ExtensionRegistry} instance.
78
+ * @throws If duplicate type/constraint/annotation IDs are detected across extensions.
79
+ *
80
+ * @public
81
+ */
82
+ export declare function createExtensionRegistry(extensions: readonly ExtensionDefinition[]): ExtensionRegistry;
83
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/extensions/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,mBAAmB,EACnB,sBAAsB,EACtB,4BAA4B,EAC5B,4BAA4B,EAC5B,yBAAyB,EACzB,uCAAuC,EACxC,MAAM,gBAAgB,CAAC;AAexB;;;;;;;;GAQG;AACH,MAAM,WAAW,iBAAiB;IAChC,0EAA0E;IAC1E,QAAQ,CAAC,UAAU,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAEpD;;;;;OAKG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,sBAAsB,GAAG,SAAS,CAAC;IAC7D;;;;;OAKG;IACH,cAAc,CACZ,QAAQ,EAAE,MAAM,GACf;QAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,YAAY,EAAE,sBAAsB,CAAA;KAAE,GAAG,SAAS,CAAC;IAE/F;;;;;OAKG;IACH,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,4BAA4B,GAAG,SAAS,CAAC;IAC/E;;OAEG;IACH,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAC7B;QACE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,YAAY,EAAE,yBAAyB,CAAC;KAClD,GACD,SAAS,CAAC;IACd;;OAEG;IACH,+BAA+B,CAC7B,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,MAAM,GAEb;QACE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;QAC7B,QAAQ,CAAC,YAAY,EAAE,uCAAuC,CAAC;KAChE,GACD,SAAS,CAAC;IAEd;;;;;OAKG;IACH,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,4BAA4B,GAAG,SAAS,CAAC;CAChF;AAuBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,SAAS,mBAAmB,EAAE,GACzC,iBAAiB,CAkJnB"}
@@ -0,0 +1,347 @@
1
+ /**
2
+ * Class schema generator.
3
+ *
4
+ * Generates JSON Schema 2020-12 and JSON Forms UI Schema from statically
5
+ * analyzed class/interface/type alias declarations, routing through the
6
+ * canonical FormIR pipeline.
7
+ */
8
+ import * as ts from "typescript";
9
+ import type { UISchema } from "../ui-schema/types.js";
10
+ import type { MetadataPolicyInput } from "@formspec/core";
11
+ import { type DiscriminatorResolutionOptions, type IRClassAnalysis } from "../analyzer/class-analyzer.js";
12
+ import { type TSDocSource } from "../canonicalize/index.js";
13
+ import { type GenerateJsonSchemaFromIROptions, type JsonSchema2020 } from "../json-schema/ir-generator.js";
14
+ import type { ExtensionRegistry } from "../extensions/index.js";
15
+ import { type ValidationDiagnostic } from "../validate/index.js";
16
+ export type { DiscriminatorResolutionOptions } from "../analyzer/class-analyzer.js";
17
+ /**
18
+ * Generated schemas for a class.
19
+ *
20
+ * @beta
21
+ */
22
+ export interface ClassSchemas {
23
+ /** JSON Schema 2020-12 for validation */
24
+ jsonSchema: JsonSchema2020;
25
+ /** JSON Forms UI Schema for rendering */
26
+ uiSchema: UISchema;
27
+ }
28
+ /**
29
+ * Non-throwing schema generation result with structured diagnostics.
30
+ *
31
+ * @public
32
+ */
33
+ export interface DetailedClassSchemasResult {
34
+ /** Whether schema generation completed without error-severity diagnostics. */
35
+ readonly ok: boolean;
36
+ /** Collected analysis and validation diagnostics for this target. */
37
+ readonly diagnostics: readonly ValidationDiagnostic[];
38
+ /** JSON Schema 2020-12 for validation, when generation succeeds. */
39
+ readonly jsonSchema?: JsonSchema2020 | undefined;
40
+ /** JSON Forms UI Schema for rendering, when generation succeeds. */
41
+ readonly uiSchema?: UISchema | undefined;
42
+ }
43
+ /**
44
+ * A batch target for non-throwing schema generation.
45
+ *
46
+ * @public
47
+ */
48
+ export interface SchemaGenerationTarget {
49
+ /** Path to the TypeScript source file. */
50
+ readonly filePath: string;
51
+ /** Name of the exported class, interface, or type alias to analyze. */
52
+ readonly typeName: string;
53
+ }
54
+ /**
55
+ * Batch options for non-throwing schema generation.
56
+ *
57
+ * @public
58
+ */
59
+ export interface GenerateSchemasBatchOptions extends StaticSchemaGenerationOptions {
60
+ /** Targets to analyze and generate. */
61
+ readonly targets: readonly SchemaGenerationTarget[];
62
+ }
63
+ /**
64
+ * Batch options for non-throwing schema generation using an existing program.
65
+ *
66
+ * @public
67
+ */
68
+ export interface GenerateSchemasBatchFromProgramOptions extends StaticSchemaGenerationOptions {
69
+ /** Existing TypeScript program supplied by the caller. */
70
+ readonly program: ts.Program;
71
+ /** Targets to analyze and generate. */
72
+ readonly targets: readonly SchemaGenerationTarget[];
73
+ }
74
+ /**
75
+ * Result for a single target in a batch generation request.
76
+ *
77
+ * @public
78
+ */
79
+ export interface DetailedSchemaGenerationTargetResult extends DetailedClassSchemasResult {
80
+ /** Path to the TypeScript source file. */
81
+ readonly filePath: string;
82
+ /** Name of the exported class, interface, or type alias that was analyzed. */
83
+ readonly typeName: string;
84
+ }
85
+ /**
86
+ * Generates JSON Schema 2020-12 and UI Schema from an IR class analysis.
87
+ *
88
+ * Routes through the canonical IR pipeline:
89
+ * IRClassAnalysis → canonicalizeTSDoc → FormIR → JSON Schema / UI Schema
90
+ *
91
+ * @param analysis - The IR analysis result (from analyzeClassToIR, analyzeInterfaceToIR, or analyzeTypeAliasToIR)
92
+ * @param source - Optional source file metadata for provenance
93
+ * @returns Generated JSON Schema and UI Schema
94
+ */
95
+ export declare function generateClassSchemas(analysis: IRClassAnalysis, source?: TSDocSource, options?: GenerateJsonSchemaFromIROptions & {
96
+ metadata?: MetadataPolicyInput | undefined;
97
+ }): ClassSchemas;
98
+ /**
99
+ * Generates JSON Schema 2020-12 and UI Schema from an IR class analysis
100
+ * without throwing on validation diagnostics.
101
+ *
102
+ * @public
103
+ */
104
+ export declare function generateClassSchemasDetailed(analysis: IRClassAnalysis, source?: TSDocSource, options?: GenerateJsonSchemaFromIROptions & {
105
+ metadata?: MetadataPolicyInput | undefined;
106
+ }): DetailedClassSchemasResult;
107
+ /**
108
+ * Shared options for schema generation flows that support custom extensions.
109
+ *
110
+ * @public
111
+ */
112
+ export interface StaticSchemaGenerationOptions {
113
+ /**
114
+ * Registry used to resolve custom types, constraints, and annotations.
115
+ */
116
+ readonly extensionRegistry?: ExtensionRegistry | undefined;
117
+ /**
118
+ * Vendor prefix for emitted extension keywords.
119
+ * @defaultValue "x-formspec"
120
+ */
121
+ readonly vendorPrefix?: string | undefined;
122
+ /**
123
+ * JSON Schema representation to use for static enums.
124
+ * @defaultValue "enum"
125
+ */
126
+ readonly enumSerialization?: "enum" | "oneOf";
127
+ /** Metadata resolution policy for static schema generation. */
128
+ readonly metadata?: MetadataPolicyInput | undefined;
129
+ /** Discriminator-specific schema generation behavior. */
130
+ readonly discriminator?: DiscriminatorResolutionOptions | undefined;
131
+ }
132
+ /**
133
+ * Options for generating schemas from a decorated class.
134
+ *
135
+ * @public
136
+ */
137
+ export interface GenerateFromClassOptions extends StaticSchemaGenerationOptions {
138
+ /** Path to the TypeScript source file */
139
+ filePath: string;
140
+ /** Class name to analyze */
141
+ className: string;
142
+ }
143
+ /**
144
+ * Result of generating schemas from a decorated class.
145
+ *
146
+ * @public
147
+ */
148
+ export interface GenerateFromClassResult {
149
+ /** JSON Schema 2020-12 for validation */
150
+ jsonSchema: JsonSchema2020;
151
+ /** JSON Forms UI Schema for rendering */
152
+ uiSchema: UISchema;
153
+ }
154
+ /**
155
+ * Options for generating schemas from a named type inside an existing TypeScript program.
156
+ *
157
+ * @public
158
+ */
159
+ export interface GenerateSchemasFromProgramOptions extends StaticSchemaGenerationOptions {
160
+ /** Existing TypeScript program supplied by the caller. */
161
+ readonly program: ts.Program;
162
+ /** Path to the TypeScript source file */
163
+ readonly filePath: string;
164
+ /** Name of the exported class, interface, or type alias to analyze */
165
+ readonly typeName: string;
166
+ /**
167
+ * Controls whether error-severity diagnostics throw or are returned in the result.
168
+ */
169
+ readonly errorReporting: "throw" | "diagnostics";
170
+ }
171
+ /**
172
+ * Generates JSON Schema and UI Schema from a decorated TypeScript class.
173
+ *
174
+ * This is a high-level entry point that handles the entire pipeline:
175
+ * creating a TypeScript program, finding the class, analyzing it to IR,
176
+ * and generating schemas — all in one call.
177
+ *
178
+ * @example
179
+ * ```typescript
180
+ * const result = generateSchemasFromClass({
181
+ * filePath: "./src/forms.ts",
182
+ * className: "UserForm",
183
+ * });
184
+ * console.log(result.jsonSchema);
185
+ * ```
186
+ *
187
+ * @param options - File path, class name, and optional compiler options
188
+ * @returns Generated JSON Schema and UI Schema
189
+ *
190
+ * @public
191
+ */
192
+ export declare function generateSchemasFromClass(options: GenerateFromClassOptions): GenerateFromClassResult;
193
+ /**
194
+ * Options for generating schemas from a named type (class, interface, or type alias).
195
+ *
196
+ * @public
197
+ */
198
+ export interface GenerateSchemasOptions extends StaticSchemaGenerationOptions {
199
+ /** Path to the TypeScript source file */
200
+ readonly filePath: string;
201
+ /** Name of the exported class, interface, or type alias to analyze */
202
+ readonly typeName: string;
203
+ /**
204
+ * Controls whether error-severity diagnostics throw or are returned in the result.
205
+ */
206
+ readonly errorReporting: "throw" | "diagnostics";
207
+ }
208
+ /**
209
+ * Generates JSON Schema and UI Schema from a named TypeScript
210
+ * type — a decorated class, an interface with TSDoc tags, or a type alias.
211
+ *
212
+ * This is the recommended entry point. It automatically detects whether
213
+ * the name resolves to a class, interface, or type alias and uses the
214
+ * appropriate IR analysis pipeline.
215
+ *
216
+ * @example
217
+ * ```typescript
218
+ * const result = generateSchemas({
219
+ * filePath: "./src/config.ts",
220
+ * typeName: "DiscountConfig",
221
+ * errorReporting: "throw",
222
+ * });
223
+ * ```
224
+ */
225
+ /**
226
+ * Generates JSON Schema and UI Schema from a named type and throws when
227
+ * generation reports error-severity diagnostics.
228
+ *
229
+ * @param options - File path, type name, and explicit throw-on-error reporting
230
+ * @returns Generated JSON Schema and UI Schema
231
+ *
232
+ * @public
233
+ */
234
+ export declare function generateSchemas(options: GenerateSchemasOptions & {
235
+ readonly errorReporting: "throw";
236
+ }): GenerateFromClassResult;
237
+ /**
238
+ * Generates JSON Schema and UI Schema from a named type and returns structured
239
+ * diagnostics instead of throwing on validation or analysis failures.
240
+ *
241
+ * @param options - File path, type name, and explicit diagnostics reporting
242
+ * @returns Structured generation result with diagnostics
243
+ *
244
+ * @public
245
+ */
246
+ export declare function generateSchemas(options: GenerateSchemasOptions & {
247
+ readonly errorReporting: "diagnostics";
248
+ }): DetailedClassSchemasResult;
249
+ /**
250
+ * Generates JSON Schema and UI Schema from a named type.
251
+ *
252
+ * @deprecated Pass `errorReporting` explicitly. Omitting it defaults to `"throw"` only for backward compatibility.
253
+ * @param options - File path and type name
254
+ * @returns Generated JSON Schema and UI Schema
255
+ *
256
+ * @public
257
+ */
258
+ export declare function generateSchemas(options: StaticSchemaGenerationOptions & {
259
+ readonly filePath: string;
260
+ readonly typeName: string;
261
+ }): GenerateFromClassResult;
262
+ /**
263
+ * Generates JSON Schema and UI Schema from a named type within an existing
264
+ * TypeScript program supplied by the caller.
265
+ *
266
+ * This low-level entry point lets downstream tooling reuse a host-owned
267
+ * `Program` for both FormSpec extraction and other TypeScript analysis.
268
+ */
269
+ /**
270
+ * Generates JSON Schema and UI Schema from a named type within an existing
271
+ * TypeScript program and throws when generation reports error-severity diagnostics.
272
+ *
273
+ * @param options - Host program, file path, type name, and explicit throw-on-error reporting
274
+ * @returns Generated JSON Schema and UI Schema
275
+ *
276
+ * @public
277
+ */
278
+ export declare function generateSchemasFromProgram(options: GenerateSchemasFromProgramOptions & {
279
+ readonly errorReporting: "throw";
280
+ }): GenerateFromClassResult;
281
+ /**
282
+ * Generates JSON Schema and UI Schema from a named type within an existing
283
+ * TypeScript program and returns structured diagnostics instead of throwing on
284
+ * validation or analysis failures.
285
+ *
286
+ * @param options - Host program, file path, type name, and explicit diagnostics reporting
287
+ * @returns Structured generation result with diagnostics
288
+ *
289
+ * @public
290
+ */
291
+ export declare function generateSchemasFromProgram(options: GenerateSchemasFromProgramOptions & {
292
+ readonly errorReporting: "diagnostics";
293
+ }): DetailedClassSchemasResult;
294
+ /**
295
+ * Generates JSON Schema and UI Schema from a named type within an existing
296
+ * TypeScript program.
297
+ *
298
+ * @deprecated Pass `errorReporting` explicitly. Omitting it defaults to `"throw"` only for backward compatibility.
299
+ * @param options - Host program, file path, and type name
300
+ * @returns Generated JSON Schema and UI Schema
301
+ *
302
+ * @public
303
+ */
304
+ export declare function generateSchemasFromProgram(options: StaticSchemaGenerationOptions & {
305
+ readonly program: ts.Program;
306
+ readonly filePath: string;
307
+ readonly typeName: string;
308
+ }): GenerateFromClassResult;
309
+ /**
310
+ * Generates JSON Schema and UI Schema from a named type and returns structured
311
+ * diagnostics instead of throwing on validation or analysis failures.
312
+ * @deprecated Use `generateSchemas({ ...options, errorReporting: "diagnostics" })` instead.
313
+ *
314
+ * @public
315
+ */
316
+ export declare function generateSchemasDetailed(options: StaticSchemaGenerationOptions & {
317
+ readonly filePath: string;
318
+ readonly typeName: string;
319
+ }): DetailedClassSchemasResult;
320
+ /**
321
+ * Generates JSON Schema and UI Schema from a named type within an existing
322
+ * TypeScript program and returns structured diagnostics instead of throwing on
323
+ * validation or analysis failures.
324
+ * @deprecated Use `generateSchemasFromProgram({ ...options, errorReporting: "diagnostics" })` instead.
325
+ *
326
+ * @public
327
+ */
328
+ export declare function generateSchemasFromProgramDetailed(options: StaticSchemaGenerationOptions & {
329
+ readonly program: ts.Program;
330
+ readonly filePath: string;
331
+ readonly typeName: string;
332
+ }): DetailedClassSchemasResult;
333
+ /**
334
+ * Generates schemas for many targets and returns per-target diagnostics instead
335
+ * of failing on the first problem.
336
+ *
337
+ * @public
338
+ */
339
+ export declare function generateSchemasBatch(options: GenerateSchemasBatchOptions): readonly DetailedSchemaGenerationTargetResult[];
340
+ /**
341
+ * Generates schemas for many targets from an existing TypeScript program and
342
+ * returns per-target diagnostics instead of failing on the first problem.
343
+ *
344
+ * @public
345
+ */
346
+ export declare function generateSchemasBatchFromProgram(options: GenerateSchemasBatchFromProgramOptions): readonly DetailedSchemaGenerationTargetResult[];
347
+ //# sourceMappingURL=class-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"class-schema.d.ts","sourceRoot":"","sources":["../../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G;IACvC,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B,GACA,0BAA0B,CAK5B;AAkBD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,2BAA2B,GACnC,SAAS,oCAAoC,EAAE,CA4BjD;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,sCAAsC,GAC9C,SAAS,oCAAoC,EAAE,CAiBjD"}
@@ -0,0 +1,152 @@
1
+ import * as ts from "typescript";
2
+ import type { ResolvedMetadata } from "@formspec/core";
3
+ import type { UISchema } from "../ui-schema/types.js";
4
+ import type { StaticBuildContext } from "../static-build.js";
5
+ import { type StaticSchemaGenerationOptions } from "./class-schema.js";
6
+ import { type JsonSchema2020 } from "../json-schema/ir-generator.js";
7
+ /**
8
+ * Generated schemas for a discovered declaration or signature type.
9
+ *
10
+ * `uiSchema` is `null` when the discovered type does not have an object-shaped
11
+ * root that can be represented as a JSON Forms layout.
12
+ *
13
+ * @public
14
+ */
15
+ export interface DiscoveredTypeSchemas {
16
+ /** JSON Schema 2020-12 for the resolved type. */
17
+ readonly jsonSchema: JsonSchema2020;
18
+ /** UI Schema for object-shaped roots, or `null` when not applicable. */
19
+ readonly uiSchema: UISchema | null;
20
+ /**
21
+ * Resolved type-level metadata used during generation, when available.
22
+ *
23
+ * This preserves explicit and inferred naming metadata such as singular and
24
+ * plural API/display names for consumers that need the resolved values in
25
+ * addition to the emitted schema artifacts.
26
+ */
27
+ readonly resolvedMetadata?: ResolvedMetadata | undefined;
28
+ }
29
+ /**
30
+ * Supported declaration kinds for declaration-driven schema generation.
31
+ *
32
+ * @public
33
+ */
34
+ export type SchemaSourceDeclaration = ts.ClassDeclaration | ts.InterfaceDeclaration | ts.TypeAliasDeclaration;
35
+ /**
36
+ * Supported declaration kinds for standalone metadata resolution.
37
+ *
38
+ * This helper is intentionally limited to named type declarations,
39
+ * methods/functions, and object-like properties. It does not currently expose
40
+ * parameter or variable metadata resolution on the public build surface.
41
+ *
42
+ * @public
43
+ */
44
+ export type MetadataSourceDeclaration = SchemaSourceDeclaration | ts.MethodDeclaration | ts.FunctionDeclaration | ts.PropertyDeclaration | ts.PropertySignature;
45
+ /**
46
+ * Options for generating schemas from a resolved declaration.
47
+ *
48
+ * @public
49
+ */
50
+ export interface GenerateSchemasFromDeclarationOptions extends StaticSchemaGenerationOptions {
51
+ /** Supported build context used for checker access and related analysis. */
52
+ readonly context: StaticBuildContext;
53
+ /** Declaration to turn into schemas. */
54
+ readonly declaration: SchemaSourceDeclaration;
55
+ }
56
+ /**
57
+ * Options for generating schemas from a resolved TypeScript type.
58
+ *
59
+ * @public
60
+ */
61
+ export interface GenerateSchemasFromTypeOptions extends StaticSchemaGenerationOptions {
62
+ /** Supported build context used for checker access and related analysis. */
63
+ readonly context: StaticBuildContext;
64
+ /** TypeScript type to turn into schemas. */
65
+ readonly type: ts.Type;
66
+ /**
67
+ * Optional source node associated with the type.
68
+ *
69
+ * When provided, FormSpec uses it as the source location for provenance and
70
+ * inline-type analysis.
71
+ */
72
+ readonly sourceNode?: ts.Node | undefined;
73
+ /** Optional logical name used for anonymous roots. */
74
+ readonly name?: string | undefined;
75
+ }
76
+ /**
77
+ * Options for generating schemas from a method or function parameter type.
78
+ *
79
+ * @public
80
+ */
81
+ export interface GenerateSchemasFromParameterOptions extends StaticSchemaGenerationOptions {
82
+ /** Supported build context used for checker access and related analysis. */
83
+ readonly context: StaticBuildContext;
84
+ /** Parameter declaration whose type should be converted into schemas. */
85
+ readonly parameter: ts.ParameterDeclaration;
86
+ }
87
+ /**
88
+ * Options for generating schemas from a method or function return type.
89
+ *
90
+ * @public
91
+ */
92
+ export interface GenerateSchemasFromReturnTypeOptions extends StaticSchemaGenerationOptions {
93
+ /** Supported build context used for checker access and related analysis. */
94
+ readonly context: StaticBuildContext;
95
+ /** Signature declaration whose return type should be converted into schemas. */
96
+ readonly declaration: ts.SignatureDeclaration;
97
+ }
98
+ /**
99
+ * Options for resolving metadata from a declaration against the active
100
+ * metadata policy.
101
+ *
102
+ * @public
103
+ */
104
+ export interface ResolveDeclarationMetadataOptions extends StaticSchemaGenerationOptions {
105
+ /** Supported build context used for checker access and related analysis. */
106
+ readonly context: StaticBuildContext;
107
+ /** Declaration whose metadata should be resolved. */
108
+ readonly declaration: MetadataSourceDeclaration;
109
+ }
110
+ /**
111
+ * Generates schemas from a resolved declaration using the supported public
112
+ * static-build workflow.
113
+ *
114
+ * Named declarations reuse the same analyzer semantics as FormSpec's existing
115
+ * top-level generation APIs. Non-object type aliases fall back to the generic
116
+ * resolved-type entry point.
117
+ *
118
+ * @public
119
+ */
120
+ export declare function generateSchemasFromDeclaration(options: GenerateSchemasFromDeclarationOptions): DiscoveredTypeSchemas;
121
+ /**
122
+ * Generates schemas from a resolved TypeScript type.
123
+ *
124
+ * This is the advanced public entry point for build tooling that already uses
125
+ * the TypeScript compiler API to discover types before handing them to
126
+ * FormSpec.
127
+ *
128
+ * @public
129
+ */
130
+ export declare function generateSchemasFromType(options: GenerateSchemasFromTypeOptions): DiscoveredTypeSchemas;
131
+ /**
132
+ * Generates schemas for a method or function parameter type.
133
+ *
134
+ * @public
135
+ */
136
+ export declare function generateSchemasFromParameter(options: GenerateSchemasFromParameterOptions): DiscoveredTypeSchemas;
137
+ /**
138
+ * Generates schemas for a method or function return type.
139
+ *
140
+ * Awaited `Promise<T>`-style return types are unwrapped before generation.
141
+ *
142
+ * @public
143
+ */
144
+ export declare function generateSchemasFromReturnType(options: GenerateSchemasFromReturnTypeOptions): DiscoveredTypeSchemas;
145
+ /**
146
+ * Resolves metadata from a declaration using FormSpec's configured metadata
147
+ * policy for the matching declaration kind.
148
+ *
149
+ * @public
150
+ */
151
+ export declare function resolveDeclarationMetadata(options: ResolveDeclarationMetadataOptions): ResolvedMetadata | undefined;
152
+ //# sourceMappingURL=discovered-schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discovered-schema.d.ts","sourceRoot":"","sources":["../../src/generators/discovered-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AAQjC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAU7D,OAAO,EAGL,KAAK,6BAA6B,EACnC,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA4B,KAAK,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAU/F;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB;IACpC,iDAAiD;IACjD,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IACnC;;;;;;OAMG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC1D;AAED;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAC/B,EAAE,CAAC,gBAAgB,GACnB,EAAE,CAAC,oBAAoB,GACvB,EAAE,CAAC,oBAAoB,CAAC;AAE5B;;;;;;;;GAQG;AACH,MAAM,MAAM,yBAAyB,GACjC,uBAAuB,GACvB,EAAE,CAAC,iBAAiB,GACpB,EAAE,CAAC,mBAAmB,GACtB,EAAE,CAAC,mBAAmB,GACtB,EAAE,CAAC,iBAAiB,CAAC;AAEzB;;;;GAIG;AACH,MAAM,WAAW,qCAAsC,SAAQ,6BAA6B;IAC1F,4EAA4E;IAC5E,QAAQ,CAAC,OAAO,EAAE,kBAAkB,CAAC;IACrC,wCAAwC;IACxC,QAAQ,CAAC,WAAW,EAAE,uBAAuB,CAAC;CAC/C;AAED;;;;GAIG;A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