@rathnasgala2/schemas 3.2.0 → 3.3.0

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 (42) hide show
  1. package/README.md +12 -9
  2. package/THIRD_PARTY_LICENSES.json +1 -1
  3. package/diagnostics/diagnostic-map.json +138 -0
  4. package/docs/catalogs/app-components.json +589 -1
  5. package/docs/catalogs/app-routes.json +327 -11
  6. package/docs/catalogs/schema-inventory.json +5 -5
  7. package/examples/valid/appearance/rules.json +22 -0
  8. package/examples/valid/build-input/rules.json +136 -0
  9. package/examples/valid/content-frontmatter/rules.json +108 -0
  10. package/fixtures/boundary/appearance/rules.json +22 -0
  11. package/fixtures/boundary/build-input/rules.json +136 -0
  12. package/fixtures/boundary/content-frontmatter/rules.json +108 -0
  13. package/fixtures/invalid/appearance/REQUEST_FIELD_UNKNOWN/cases.json +9 -0
  14. package/fixtures/invalid/appearance/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +9 -0
  15. package/fixtures/invalid/appearance/SCHEMA_TYPE_INVALID/cases.json +20 -0
  16. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +47 -0
  17. package/fixtures/invalid/build-input/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
  18. package/fixtures/invalid/build-input/SCHEMA_ENUM_INVALID/cases.json +22 -0
  19. package/fixtures/invalid/build-input/SCHEMA_NEGATED_RULE_MATCHED/cases.json +11 -0
  20. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +173 -0
  21. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +40 -0
  22. package/fixtures/invalid/content-frontmatter/REQUEST_FIELD_UNKNOWN/cases.json +38 -0
  23. package/fixtures/invalid/content-frontmatter/SCHEMA_CONSTANT_INVALID/cases.json +11 -0
  24. package/fixtures/invalid/content-frontmatter/SCHEMA_ENUM_INVALID/cases.json +22 -0
  25. package/fixtures/invalid/content-frontmatter/SCHEMA_NEGATED_RULE_MATCHED/cases.json +9 -0
  26. package/fixtures/invalid/content-frontmatter/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +164 -0
  27. package/fixtures/invalid/content-frontmatter/SCHEMA_TYPE_INVALID/cases.json +20 -0
  28. package/fixtures/manifest.json +1064 -6
  29. package/fixtures/unknown-field/appearance/rules.json +14 -0
  30. package/fixtures/unknown-field/build-input/rules.json +69 -0
  31. package/fixtures/unknown-field/content-frontmatter/rules.json +55 -0
  32. package/generated/browser/validator-core.mjs +3 -3
  33. package/generated/typescript/contracts/appearance.d.ts +5 -0
  34. package/generated/typescript/contracts/build-input.d.ts +21 -2
  35. package/generated/typescript/contracts/content-frontmatter.d.ts +14 -1
  36. package/openapi/http-catalog.json +537 -9
  37. package/openapi/openapi.yaml +17627 -4276
  38. package/package.json +1 -1
  39. package/sbom.cdx.json +23 -23
  40. package/schemas/appearance.schema.json +8 -0
  41. package/schemas/build-input.schema.json +44 -3
  42. package/schemas/content-frontmatter.schema.json +32 -1
@@ -1,6 +1,10 @@
1
1
  // Generated from urn:gala:schema:appearance:2.0.0; sourceDesignRevision=a53052955ceb6c1aa10c886289dc832eedfe6de0a00004df07d353ac19c4403a.
2
2
  // Do not edit.
3
3
 
4
+ export type AppearanceAttribution = Readonly<{
5
+ readonly showMadeWith: boolean;
6
+ }>;
7
+
4
8
  export type AppearanceBcp47 = string;
5
9
 
6
10
  export type AppearanceCanonicalRoute = string;
@@ -52,6 +56,7 @@ export type AppearanceUrlHttps = string;
52
56
  export type AppearanceUrn = string;
53
57
 
54
58
  export type AppearanceDocument = Readonly<{
59
+ readonly attribution?: AppearanceAttribution;
55
60
  readonly brandMark?: AppearanceRepoRelativePath;
56
61
  readonly colorMode: AppearanceColorMode;
57
62
  readonly extensions: AppearanceExtensionMap;
@@ -2,6 +2,7 @@
2
2
  // Do not edit.
3
3
 
4
4
  export type BuildInputAppearanceNormalized = Readonly<{
5
+ readonly attribution?: BuildInputAttribution;
5
6
  readonly brandMark?: BuildInputResolvedFile;
6
7
  readonly colorMode: BuildInputColorMode;
7
8
  readonly fontAssets: ReadonlyArray<BuildInputResolvedFile>;
@@ -14,6 +15,10 @@ export type BuildInputAppearanceNormalized = Readonly<{
14
15
  readonly wordmark?: BuildInputResolvedFile;
15
16
  }>;
16
17
 
18
+ export type BuildInputAttribution = Readonly<{
19
+ readonly showMadeWith: boolean;
20
+ }>;
21
+
17
22
  export type BuildInputAuthorNormalized = Readonly<{
18
23
  readonly avatar?: BuildInputResolvedFile;
19
24
  readonly biography: BuildInputPlainText;
@@ -116,13 +121,26 @@ export type BuildInputContentBuildRecord = Readonly<{
116
121
  readonly sourceRevision: BuildInputGitObjectId;
117
122
  }>;
118
123
 
124
+ export type BuildInputContentEdition = Readonly<{
125
+ readonly approvedAt: BuildInputRfc3339;
126
+ readonly generation: Readonly<{
127
+ readonly generationId: BuildInputStableId;
128
+ readonly model: BuildInputPlainLabel;
129
+ readonly provider: 'anthropic';
130
+ }>;
131
+ readonly kind: 'QUICK_READ' | 'STANDARD' | 'DEEP_DIVE';
132
+ readonly of: BuildInputSlug;
133
+ readonly sourceDigest: BuildInputDigest;
134
+ }>;
135
+
119
136
  export type BuildInputContentFrontmatterNormalized = Readonly<{
120
137
  readonly authorIds: ReadonlyArray<BuildInputStableId>;
121
138
  readonly createdAt: BuildInputRfc3339;
122
139
  readonly description?: BuildInputPlainText;
140
+ readonly edition?: BuildInputContentEdition;
123
141
  readonly hero?: BuildInputResolvedMedia;
124
142
  readonly id: BuildInputStableId;
125
- readonly kind: 'article' | 'page';
143
+ readonly kind: 'article' | 'page' | 'edition';
126
144
  readonly language: BuildInputBcp47;
127
145
  readonly publishedAt: BuildInputRfc3339;
128
146
  readonly redirects: ReadonlyArray<BuildInputCanonicalRoute>;
@@ -135,7 +153,8 @@ export type BuildInputContentFrontmatterNormalized = Readonly<{
135
153
  readonly tags: ReadonlyArray<BuildInputPlainLabel>;
136
154
  readonly title: BuildInputPlainText;
137
155
  readonly updatedAt?: BuildInputRfc3339;
138
- }>;
156
+ }> &
157
+ unknown;
139
158
 
140
159
  export type BuildInputDestinationCapabilityProfile = Readonly<{
141
160
  readonly adapter: BuildInputAuthoredAdapterIdentity;
@@ -5,6 +5,18 @@ export type ContentFrontmatterBcp47 = string;
5
5
 
6
6
  export type ContentFrontmatterCanonicalRoute = string;
7
7
 
8
+ export type ContentFrontmatterContentEdition = Readonly<{
9
+ readonly approvedAt: ContentFrontmatterRfc3339;
10
+ readonly generation: Readonly<{
11
+ readonly generationId: ContentFrontmatterStableId;
12
+ readonly model: ContentFrontmatterPlainLabel;
13
+ readonly provider: 'anthropic';
14
+ }>;
15
+ readonly kind: 'QUICK_READ' | 'STANDARD' | 'DEEP_DIVE';
16
+ readonly of: ContentFrontmatterSlug;
17
+ readonly sourceDigest: ContentFrontmatterDigest;
18
+ }>;
19
+
8
20
  export type ContentFrontmatterDigest = string;
9
21
 
10
22
  export type ContentFrontmatterExtensionKey = string;
@@ -54,10 +66,11 @@ export type ContentFrontmatterDocument = Readonly<{
54
66
  readonly authors: ReadonlyArray<ContentFrontmatterStableId>;
55
67
  readonly createdAt: ContentFrontmatterRfc3339;
56
68
  readonly description?: ContentFrontmatterPlainText;
69
+ readonly edition?: ContentFrontmatterContentEdition;
57
70
  readonly extensions: ContentFrontmatterExtensionMap;
58
71
  readonly hero?: ContentFrontmatterMediaRef;
59
72
  readonly id: ContentFrontmatterStableId;
60
- readonly kind: 'article' | 'page';
73
+ readonly kind: 'article' | 'page' | 'edition';
61
74
  readonly language: ContentFrontmatterBcp47;
62
75
  readonly newsletter?: 'ineligible' | 'eligible';
63
76
  readonly publishedAt?: ContentFrontmatterRfc3339;