@texuli/spec 0.0.0-stage → 0.1.0-next.1

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 (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +169 -2
  3. package/dist/build.d.ts +47 -0
  4. package/dist/build.js +65 -0
  5. package/dist/canonical.d.ts +17 -0
  6. package/dist/canonical.js +131 -0
  7. package/dist/catalog.d.ts +41 -0
  8. package/dist/catalog.js +45 -0
  9. package/dist/codegen/index.d.ts +14 -0
  10. package/dist/codegen/index.js +13 -0
  11. package/dist/codegen/kotlin.d.ts +18 -0
  12. package/dist/codegen/kotlin.js +328 -0
  13. package/dist/codegen/shared.d.ts +35 -0
  14. package/dist/codegen/shared.js +69 -0
  15. package/dist/codegen/typescript.d.ts +10 -0
  16. package/dist/codegen/typescript.js +167 -0
  17. package/dist/conformance.d.ts +20 -0
  18. package/dist/conformance.js +124 -0
  19. package/dist/dialect.d.ts +56 -0
  20. package/dist/dialect.js +264 -0
  21. package/dist/format.d.ts +9 -0
  22. package/dist/format.js +48 -0
  23. package/dist/generated/typescript/blueprint.d.ts +125 -0
  24. package/dist/generated/typescript/blueprint.js +3 -0
  25. package/dist/generated/typescript/catalog-schema.d.ts +33 -0
  26. package/dist/generated/typescript/catalog-schema.js +3 -0
  27. package/dist/generated/typescript/diagnostics.d.ts +12 -0
  28. package/dist/generated/typescript/diagnostics.js +3 -0
  29. package/dist/generated/typescript/manifest.d.ts +9 -0
  30. package/dist/generated/typescript/manifest.js +3 -0
  31. package/dist/generated/typescript/vocabulary.d.ts +972 -0
  32. package/dist/generated/typescript/vocabulary.js +140 -0
  33. package/dist/index.d.ts +17 -0
  34. package/dist/index.js +13 -0
  35. package/dist/validate.d.ts +27 -0
  36. package/dist/validate.js +143 -0
  37. package/dist/version.d.ts +2 -0
  38. package/dist/version.js +2 -0
  39. package/dist/versioning.d.ts +39 -0
  40. package/dist/versioning.js +87 -0
  41. package/package.json +36 -4
@@ -0,0 +1,12 @@
1
+ export interface SpecDiagnostic {
2
+ code: SpecDiagnosticCode;
3
+ path: string;
4
+ message: string;
5
+ id?: string;
6
+ }
7
+ export type SpecDiagnosticCode = 'schema' | 'unknown-id' | 'unknown-prop' | 'prop-type' | 'enum-value' | 'missing-required' | 'extension-prop' | 'catalog-mismatch' | 'unsupported-profile' | 'unknown-slot';
8
+ /** The stable result shape of validating a blueprint against the spec. */
9
+ export interface SpecValidation {
10
+ ok: boolean;
11
+ diagnostics: readonly SpecDiagnostic[];
12
+ }
@@ -0,0 +1,3 @@
1
+ // Generated by @texuli/spec from schemas/diagnostics.schema.json. Do not edit: run the spec generator.
2
+ // Spec 0.2.0, digest d9eccaba1826e7d87648a4a33787d873245592dda843607a10b2c68a77f1806f
3
+ export {};
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The spec version, the dialect and a SHA-256 for every normative file (manifest.json) or generated
3
+ * file (generated-manifest.json).
4
+ */
5
+ export interface SpecManifest {
6
+ specVersion: string;
7
+ dialect: 'https://json-schema.org/draft/2020-12/schema';
8
+ files: Readonly<Record<string, string>>;
9
+ }
@@ -0,0 +1,3 @@
1
+ // Generated by @texuli/spec from schemas/manifest.schema.json. Do not edit: run the spec generator.
2
+ // Spec 0.2.0, digest d9eccaba1826e7d87648a4a33787d873245592dda843607a10b2c68a77f1806f
3
+ export {};