@rathnasgala2/schemas 3.9.0 → 3.11.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 (47) hide show
  1. package/THIRD_PARTY_LICENSES.json +1 -1
  2. package/diagnostics/diagnostic-map.json +255 -9
  3. package/docs/catalogs/app-components.json +71 -1
  4. package/docs/catalogs/app-routes.json +27 -4
  5. package/docs/catalogs/schema-inventory.json +5 -5
  6. package/examples/valid/appearance/rules.json +105 -1
  7. package/examples/valid/build-input/rules.json +105 -1
  8. package/examples/valid/theme-contract/rules.json +276 -2
  9. package/fixtures/boundary/appearance/rules.json +105 -12
  10. package/fixtures/boundary/build-input/rules.json +105 -12
  11. package/fixtures/boundary/theme-contract/rules.json +386 -2
  12. package/fixtures/invalid/appearance/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
  13. package/fixtures/invalid/appearance/SCHEMA_OBJECT_TOO_LARGE/cases.json +0 -13
  14. package/fixtures/invalid/appearance/SCHEMA_PATTERN_INVALID/cases.json +68 -0
  15. package/fixtures/invalid/appearance/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +66 -0
  16. package/fixtures/invalid/appearance/SCHEMA_TYPE_INVALID/cases.json +99 -0
  17. package/fixtures/invalid/build-input/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
  18. package/fixtures/invalid/build-input/SCHEMA_PATTERN_INVALID/cases.json +66 -0
  19. package/fixtures/invalid/build-input/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +66 -0
  20. package/fixtures/invalid/build-input/SCHEMA_TYPE_INVALID/cases.json +99 -0
  21. package/fixtures/invalid/theme-contract/REQUEST_FIELD_UNKNOWN/cases.json +33 -0
  22. package/fixtures/invalid/theme-contract/SCHEMA_ARRAY_TOO_LONG/cases.json +165 -0
  23. package/fixtures/invalid/theme-contract/SCHEMA_CONSTANT_INVALID/cases.json +11 -11
  24. package/fixtures/invalid/theme-contract/SCHEMA_ENUM_INVALID/cases.json +88 -0
  25. package/fixtures/invalid/theme-contract/SCHEMA_REQUIRED_FIELD_MISSING/cases.json +93 -0
  26. package/fixtures/invalid/theme-contract/SCHEMA_TYPE_INVALID/cases.json +51 -0
  27. package/fixtures/manifest.json +1955 -35
  28. package/fixtures/unknown-field/appearance/rules.json +54 -1
  29. package/fixtures/unknown-field/build-input/rules.json +54 -1
  30. package/fixtures/unknown-field/theme-contract/rules.json +70 -1
  31. package/generated/browser/validator-core.mjs +3 -3
  32. package/generated/typescript/contracts/appearance.d.ts +14 -1
  33. package/generated/typescript/contracts/build-input.d.ts +14 -1
  34. package/generated/typescript/contracts/theme-contract.d.ts +51 -0
  35. package/openapi/http-catalog.json +38 -2
  36. package/openapi/openapi.yaml +598 -3
  37. package/package.json +10 -1
  38. package/parity/palette/golden-vectors.json +883 -0
  39. package/parity/palette/stress-corpus.json +521 -0
  40. package/parity/palette/theme-default.fixture.json +698 -0
  41. package/sbom.cdx.json +23 -23
  42. package/schemas/appearance.schema.json +30 -3
  43. package/schemas/build-input.schema.json +30 -3
  44. package/schemas/theme-contract.schema.json +185 -1
  45. package/src/palette.js +919 -0
  46. package/types/palette.d.ts +305 -0
  47. package/fixtures/invalid/build-input/SCHEMA_OBJECT_TOO_LARGE/cases.json +0 -15
@@ -41,7 +41,20 @@ export type AppearanceRepoRelativePath = string;
41
41
 
42
42
  export type AppearanceRfc3339 = string;
43
43
 
44
- export type AppearanceSemanticTokens = Readonly<Record<string, never>>;
44
+ export type AppearanceSemanticTokens = Readonly<{
45
+ readonly accent?: Readonly<{
46
+ readonly dark: string;
47
+ readonly light: string;
48
+ }>;
49
+ readonly canvas?: Readonly<{
50
+ readonly dark: string;
51
+ readonly light: string;
52
+ }>;
53
+ readonly text?: Readonly<{
54
+ readonly dark: string;
55
+ readonly light: string;
56
+ }>;
57
+ }>;
45
58
 
46
59
  export type AppearanceSemver = string;
47
60
 
@@ -366,7 +366,20 @@ export type BuildInputResolvedMedia = Readonly<{
366
366
 
367
367
  export type BuildInputRfc3339 = string;
368
368
 
369
- export type BuildInputSemanticTokens = Readonly<Record<string, never>>;
369
+ export type BuildInputSemanticTokens = Readonly<{
370
+ readonly accent?: Readonly<{
371
+ readonly dark: string;
372
+ readonly light: string;
373
+ }>;
374
+ readonly canvas?: Readonly<{
375
+ readonly dark: string;
376
+ readonly light: string;
377
+ }>;
378
+ readonly text?: Readonly<{
379
+ readonly dark: string;
380
+ readonly light: string;
381
+ }>;
382
+ }>;
370
383
 
371
384
  export type BuildInputSemver = string;
372
385
 
@@ -21,6 +21,53 @@ export type ThemeContractPackageExact = string;
21
21
 
22
22
  export type ThemeContractPackageRange = string;
23
23
 
24
+ export type ThemeContractPaletteFollow = Readonly<{
25
+ readonly dark: ReadonlyArray<'accent' | 'canvas' | 'text' | null>;
26
+ readonly key:
27
+ | 'border-button'
28
+ | 'border-card'
29
+ | 'border-chip'
30
+ | 'border-media-divider'
31
+ | 'border-quote'
32
+ | 'border-row-divider'
33
+ | 'border-section-rule'
34
+ | 'color-accent'
35
+ | 'color-accent-2'
36
+ | 'color-border'
37
+ | 'color-btn-panel'
38
+ | 'color-btn-panel-text'
39
+ | 'color-btn-text'
40
+ | 'color-canvas'
41
+ | 'color-chip-text'
42
+ | 'color-focus'
43
+ | 'color-footer'
44
+ | 'color-header'
45
+ | 'color-icon-accent'
46
+ | 'color-link'
47
+ | 'color-link-underline'
48
+ | 'color-link-underline-hover'
49
+ | 'color-link-visited'
50
+ | 'color-on-accent'
51
+ | 'color-panel-muted'
52
+ | 'color-panel-text'
53
+ | 'color-selection'
54
+ | 'color-surface'
55
+ | 'color-surface-raised'
56
+ | 'color-text'
57
+ | 'color-text-faint'
58
+ | 'color-text-muted'
59
+ | 'color-toc-active'
60
+ | 'color-toc-active-text'
61
+ | 'paint-button'
62
+ | 'paint-chip'
63
+ | 'paint-page-decor'
64
+ | 'paint-panel'
65
+ | 'shadow-avatar-ring'
66
+ | 'shadow-button';
67
+ readonly light: ReadonlyArray<'accent' | 'canvas' | 'text' | null>;
68
+ }> &
69
+ unknown;
70
+
24
71
  export type ThemeContractPassiveAsset = Readonly<{
25
72
  readonly byteLength: ThemeContractNonNegativeInt64;
26
73
  readonly license: ThemeContractSpdxExpression;
@@ -330,6 +377,10 @@ export type ThemeContractDocument = (
330
377
  readonly integrity: ThemeContractDigest;
331
378
  readonly modes: ['dark', 'light', 'system'];
332
379
  readonly package: string & ThemeContractPackageExact;
380
+ readonly palette?: Readonly<{
381
+ readonly follow: ReadonlyArray<ThemeContractPaletteFollow>;
382
+ readonly profile: 'gala-palette-follow-v1';
383
+ }>;
333
384
  readonly schemaId: 'urn:gala:schema:theme-contract:2.0.0';
334
385
  readonly schemaVersion: '2.0.0';
335
386
  readonly slotHooks: ReadonlyArray<ThemeContractPlainLabel>;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schemaVersion": "2.0.0",
3
3
  "sourceDesignRevision": "a53052955ceb6c1aa10c886289dc832eedfe6de0a00004df07d353ac19c4403a",
4
- "openApiDigest": "sha256:9612379eda4997a04a0e3d0bcb4c3e7d68c5ba76688d4c733ab2b91520a914f7",
4
+ "openApiDigest": "sha256:b5ab8902d0a3d6990cd2c4bcdc51e6f007ceb33d65119fc2f5e526c0a2260bb1",
5
5
  "operations": [
6
6
  {
7
7
  "operationId": "getInternalHealth",
@@ -1604,6 +1604,18 @@
1604
1604
  "actionGrant": "none",
1605
1605
  "sourceFragment": "platform"
1606
1606
  },
1607
+ {
1608
+ "operationId": "postPlatformUsersByPersonIdContact",
1609
+ "method": "POST",
1610
+ "path": "/v2/platform/users/{personId}:contact",
1611
+ "purpose": "contact platform user",
1612
+ "capabilityKey": "platform.users.contact",
1613
+ "conditionalCapabilityKeys": [],
1614
+ "activationGate": "MVP",
1615
+ "assuranceClass": "SESSION",
1616
+ "actionGrant": "none",
1617
+ "sourceFragment": "platform"
1618
+ },
1607
1619
  {
1608
1620
  "operationId": "getPlatformWebhookEvents",
1609
1621
  "method": "GET",
@@ -1844,6 +1856,30 @@
1844
1856
  "actionGrant": "none",
1845
1857
  "sourceFragment": "self"
1846
1858
  },
1859
+ {
1860
+ "operationId": "postSelfContactEmailGrant",
1861
+ "method": "POST",
1862
+ "path": "/v2/self/contact-email:grant",
1863
+ "purpose": "grant contact email",
1864
+ "capabilityKey": null,
1865
+ "conditionalCapabilityKeys": [],
1866
+ "activationGate": "MVP",
1867
+ "assuranceClass": "SESSION",
1868
+ "actionGrant": "none",
1869
+ "sourceFragment": "self"
1870
+ },
1871
+ {
1872
+ "operationId": "postSelfContactEmailWithdraw",
1873
+ "method": "POST",
1874
+ "path": "/v2/self/contact-email:withdraw",
1875
+ "purpose": "withdraw contact email",
1876
+ "capabilityKey": null,
1877
+ "conditionalCapabilityKeys": [],
1878
+ "activationGate": "MVP",
1879
+ "assuranceClass": "SESSION",
1880
+ "actionGrant": "none",
1881
+ "sourceFragment": "self"
1882
+ },
1847
1883
  {
1848
1884
  "operationId": "getSelfExports",
1849
1885
  "method": "GET",
@@ -2121,5 +2157,5 @@
2121
2157
  "sourceFragment": "workloads"
2122
2158
  }
2123
2159
  ],
2124
- "digest": "sha256:e203c10513b422926292b5ed11f582de9ad4522fcdb824eed3fc332f639a819f"
2160
+ "digest": "sha256:e0e3e201cb7a5b7004e158e7bc48261f82817929bdadfde6d4aa0373e9174ecd"
2125
2161
  }