stylegallery 0.1.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.
- package/AGENTS.md +156 -0
- package/CATALOG.md +69 -0
- package/DOMAINS.md +65 -0
- package/GOVERNANCE.md +222 -0
- package/GUIDE.md +59 -0
- package/README.md +313 -0
- package/consumer-reference/adapters/style-dictionary.config.mjs +36 -0
- package/consumer-reference/agent-native/README.md +157 -0
- package/consumer-reference/agent-native/registry.json +640 -0
- package/consumer-reference/agent-native/schema/agent-native.schema.json +848 -0
- package/consumer-reference/agent-native/schema/epistemic.schema.json +14 -0
- package/consumer-reference/agent-native/schema/execution.schema.json +12 -0
- package/consumer-reference/agent-native/schema/identity.schema.json +10 -0
- package/consumer-reference/agent-native/schema/learning.schema.json +12 -0
- package/consumer-reference/agent-native/schema/manifest.schema.json +6 -0
- package/consumer-reference/agent-native/schema/operation.schema.json +12 -0
- package/consumer-reference/agent-native/schema/protocol-binding.schema.json +9 -0
- package/consumer-reference/agent-native/schema/retrieval.schema.json +10 -0
- package/consumer-reference/baselines/calibration.json +260 -0
- package/consumer-reference/baselines/manifest.json +21 -0
- package/consumer-reference/contract.md +83 -0
- package/consumer-reference/fixtures/consumer-conformance/e2e-fixture.mjs +282 -0
- package/consumer-reference/fixtures/consumer-conformance/manifest.json +102 -0
- package/consumer-reference/fixtures/consumer-conformance/runtime-proof.mjs +32 -0
- package/consumer-reference/fixtures/consumer-conformance/valid-migration-result.json +18 -0
- package/consumer-reference/fixtures/consumer-conformance/valid-migration.json +142 -0
- package/consumer-reference/fixtures/invalid-stable-ended-support.json +19 -0
- package/consumer-reference/fixtures/promotion/invalid-blocking-evidence.json +26 -0
- package/consumer-reference/fixtures/promotion/invalid-count-only.json +29 -0
- package/consumer-reference/fixtures/promotion/invalid-missing-owner-migration.json +25 -0
- package/consumer-reference/fixtures/promotion/invalid-normative-bypass-no-regression.json +25 -0
- package/consumer-reference/fixtures/promotion/invalid-related-counted-independent.json +45 -0
- package/consumer-reference/fixtures/promotion/invalid-stable-ended-support.json +26 -0
- package/consumer-reference/fixtures/promotion/manifest.json +15 -0
- package/consumer-reference/fixtures/promotion/valid-deferred-example.json +67 -0
- package/consumer-reference/fixtures/promotion/valid-normative-bypass.json +67 -0
- package/consumer-reference/fixtures/token-portability/invalid-cycle.json +7 -0
- package/consumer-reference/fixtures/token-portability/invalid-dangling-alias.json +6 -0
- package/consumer-reference/fixtures/token-portability/invalid-extends.json +4 -0
- package/consumer-reference/fixtures/token-portability/invalid-json-pointer.json +7 -0
- package/consumer-reference/fixtures/token-portability/invalid-resolver.json +9 -0
- package/consumer-reference/fixtures/token-portability/invalid-type-mismatch.json +10 -0
- package/consumer-reference/fixtures/token-portability/invalid-unknown-reserved.json +6 -0
- package/consumer-reference/fixtures/token-portability/invalid-untested-type.json +6 -0
- package/consumer-reference/fixtures/token-portability/valid-border.json +14 -0
- package/consumer-reference/fixtures/token-portability/valid-reference.json +32 -0
- package/consumer-reference/fixtures/token-portability/valid-whole-alias.json +7 -0
- package/consumer-reference/fixtures/valid-deprecated.json +21 -0
- package/consumer-reference/fixtures/valid-experimental.json +19 -0
- package/consumer-reference/generated/manifest.json +40 -0
- package/consumer-reference/generated/tokens.css +12 -0
- package/consumer-reference/index.md +32 -0
- package/consumer-reference/policies/shared-experimental.json +37 -0
- package/consumer-reference/schema/ax-evidence.schema.json +30 -0
- package/consumer-reference/schema/baseline-manifest.schema.json +55 -0
- package/consumer-reference/schema/calibration-record.schema.json +190 -0
- package/consumer-reference/schema/capture-session.schema.json +161 -0
- package/consumer-reference/schema/component-state.schema.json +150 -0
- package/consumer-reference/schema/consumer-conformance-record.schema.json +365 -0
- package/consumer-reference/schema/dom-evidence.schema.json +38 -0
- package/consumer-reference/schema/evidence-record.schema.json +81 -0
- package/consumer-reference/schema/fixture-manifest.schema.json +32 -0
- package/consumer-reference/schema/item.schema.json +188 -0
- package/consumer-reference/schema/page-evidence-manifest.schema.json +216 -0
- package/consumer-reference/schema/page-evidence-session.schema.json +119 -0
- package/consumer-reference/schema/portable-tokens.schema.json +104 -0
- package/consumer-reference/schema/promotion-rfc.schema.json +219 -0
- package/consumer-reference/schema/runtime-evidence-manifest.schema.json +33 -0
- package/consumer-reference/schema/visual-evidence.schema.json +31 -0
- package/design-engineering/consumer-migration-readiness.md +124 -0
- package/design-engineering/index.md +28 -0
- package/design-engineering/interface-craft.md +107 -0
- package/design-engineering/reference-profiles/external-adaptation/index.md +12 -0
- package/design-engineering/reference-profiles/governed-local/editorial/components/button.component.json +125 -0
- package/design-engineering/reference-profiles/governed-local/editorial/evidence/button.evidence.json +3504 -0
- package/design-engineering/reference-profiles/governed-local/editorial/fixtures/button.fixture.json +65 -0
- package/design-engineering/reference-profiles/governed-local/editorial/generated/evidence-coverage.md +23 -0
- package/design-engineering/reference-profiles/governed-local/editorial/generated/keyboard-matrix.md +19 -0
- package/design-engineering/reference-profiles/governed-local/editorial/generated/state-matrix.md +21 -0
- package/design-engineering/reference-profiles/governed-local/editorial/local-foundations.json +12 -0
- package/design-engineering/reference-profiles/governed-local/editorial/profile.json +43 -0
- package/design-engineering/reference-profiles/governed-local/editorial/states/button.states.json +195 -0
- package/design-engineering/reference-profiles/governed-local/editorial/tokens.dtcg.json +17 -0
- package/design-engineering/reference-profiles/governed-local/index.md +26 -0
- package/design-engineering/reference-profiles/governed-local/terminal/components/button.component.json +125 -0
- package/design-engineering/reference-profiles/governed-local/terminal/evidence/button.evidence.json +3504 -0
- package/design-engineering/reference-profiles/governed-local/terminal/fixtures/button.fixture.json +65 -0
- package/design-engineering/reference-profiles/governed-local/terminal/generated/evidence-coverage.md +23 -0
- package/design-engineering/reference-profiles/governed-local/terminal/generated/keyboard-matrix.md +19 -0
- package/design-engineering/reference-profiles/governed-local/terminal/generated/state-matrix.md +21 -0
- package/design-engineering/reference-profiles/governed-local/terminal/local-foundations.json +12 -0
- package/design-engineering/reference-profiles/governed-local/terminal/profile.json +43 -0
- package/design-engineering/reference-profiles/governed-local/terminal/states/button.states.json +195 -0
- package/design-engineering/reference-profiles/governed-local/terminal/tokens.dtcg.json +17 -0
- package/design-engineering/reference-profiles/index.md +19 -0
- package/game-ui/classification.md +82 -0
- package/game-ui/index.md +35 -0
- package/game-ui/reference-record.md +62 -0
- package/game-ui/screen-hierarchy.md +107 -0
- package/game-ui/unity/architecture.md +166 -0
- package/game-ui/unity/cli-loop.md +84 -0
- package/game-ui/unity/data/unity-technologies-public-repositories.json +26654 -0
- package/game-ui/unity/org-wiki.md +146 -0
- package/game-ui/unity/repository-map.md +102 -0
- package/game-ui/unity/ui-systems.md +85 -0
- package/guides/decision-tree.md +149 -0
- package/guides/documentation-mode-taxonomy.md +157 -0
- package/guides/layout-brief.md +220 -0
- package/guides/vocabulary.md +148 -0
- package/guides/webpage-generation-workflow.md +185 -0
- package/index.md +36 -0
- package/layout/index.md +26 -0
- package/motion/index.md +24 -0
- package/motion/practice-reference.md +145 -0
- package/motion/review-workflow.md +86 -0
- package/motion/vocabulary.md +82 -0
- package/package.json +78 -0
- package/patterns/centering/center.md +87 -0
- package/patterns/centering/index.md +6 -0
- package/patterns/centering/super-center.md +89 -0
- package/patterns/containment/box.md +87 -0
- package/patterns/containment/clamped-card.md +86 -0
- package/patterns/containment/content-limiter.md +87 -0
- package/patterns/containment/fluid-styles.md +86 -0
- package/patterns/containment/index.md +8 -0
- package/patterns/grid-repetition/card-grid.md +88 -0
- package/patterns/grid-repetition/columns.md +87 -0
- package/patterns/grid-repetition/dense-grid.md +88 -0
- package/patterns/grid-repetition/grid-wrapper.md +89 -0
- package/patterns/grid-repetition/index.md +12 -0
- package/patterns/grid-repetition/masonry-approx.md +87 -0
- package/patterns/grid-repetition/page-grid.md +90 -0
- package/patterns/grid-repetition/ram-grid.md +88 -0
- package/patterns/grid-repetition/twelve-span-grid.md +92 -0
- package/patterns/in-line-grouping/badge-list.md +94 -0
- package/patterns/in-line-grouping/breadcrumb.md +89 -0
- package/patterns/in-line-grouping/cluster.md +89 -0
- package/patterns/in-line-grouping/deconstructed-pancake.md +92 -0
- package/patterns/in-line-grouping/index.md +13 -0
- package/patterns/in-line-grouping/pagination.md +89 -0
- package/patterns/in-line-grouping/reel.md +90 -0
- package/patterns/in-line-grouping/split-nav.md +97 -0
- package/patterns/in-line-grouping/tab-strip.md +88 -0
- package/patterns/in-line-grouping/wrap-row.md +89 -0
- package/patterns/index.md +13 -0
- package/patterns/media-fit/frame.md +95 -0
- package/patterns/media-fit/icon-frame.md +87 -0
- package/patterns/media-fit/index.md +6 -0
- package/patterns/overlay-exception/imposter.md +95 -0
- package/patterns/overlay-exception/index.md +6 -0
- package/patterns/overlay-exception/overlay-stack.md +89 -0
- package/patterns/split-sidebar/index.md +12 -0
- package/patterns/split-sidebar/list-detail.md +95 -0
- package/patterns/split-sidebar/main-with-rail.md +95 -0
- package/patterns/split-sidebar/media-object.md +102 -0
- package/patterns/split-sidebar/sidebar.md +101 -0
- package/patterns/split-sidebar/split-screen.md +92 -0
- package/patterns/split-sidebar/sticky-aside.md +97 -0
- package/patterns/split-sidebar/supporting-pane.md +95 -0
- package/patterns/split-sidebar/switcher.md +93 -0
- package/patterns/stacking/feed.md +88 -0
- package/patterns/stacking/index.md +8 -0
- package/patterns/stacking/line-up.md +95 -0
- package/patterns/stacking/stack.md +87 -0
- package/patterns/stacking/step-nav.md +88 -0
- package/patterns/viewport-shell/cover.md +90 -0
- package/patterns/viewport-shell/fixed-sidenav-shell.md +97 -0
- package/patterns/viewport-shell/holy-grail.md +112 -0
- package/patterns/viewport-shell/index.md +11 -0
- package/patterns/viewport-shell/panel-layout.md +95 -0
- package/patterns/viewport-shell/scroll-body-shell.md +93 -0
- package/patterns/viewport-shell/sticky-footer.md +92 -0
- package/patterns/viewport-shell/sticky-header.md +86 -0
- package/platform-guides/apple-interaction.md +89 -0
- package/platform-guides/index.md +26 -0
- package/quality/claim-records/index.md +3 -0
- package/quality/claim-records/samples.md +92 -0
- package/quality/claim-records/stylegallery-multidomain-scope.md +42 -0
- package/quality/claims.md +77 -0
- package/quality/evidence/accessibility.md +58 -0
- package/quality/evidence/consumer-migration.md +42 -0
- package/quality/evidence/design-rationale.md +34 -0
- package/quality/evidence/executable-evidence.md +79 -0
- package/quality/evidence/families.md +56 -0
- package/quality/evidence/hci-evaluation.md +36 -0
- package/quality/evidence/index.md +16 -0
- package/quality/evidence/pattern-contract-audit.md +96 -0
- package/quality/evidence/search-metadata-polyhierarchy.md +86 -0
- package/quality/evidence/sources.md +43 -0
- package/quality/evidence/tokens.md +33 -0
- package/quality/evidence/visual-qa.md +41 -0
- package/quality/gates/accessibility-evidence.md +60 -0
- package/quality/gates/consumer-migration-evidence.md +53 -0
- package/quality/gates/design-claim.md +56 -0
- package/quality/gates/harmony-evaluation.md +78 -0
- package/quality/gates/index.md +13 -0
- package/quality/gates/layout.md +52 -0
- package/quality/gates/rationale.md +53 -0
- package/quality/gates/visual-evidence.md +47 -0
- package/quality/index.md +55 -0
- package/quality/principles.md +58 -0
- package/recipes/article-page.md +52 -0
- package/recipes/command-surface.md +55 -0
- package/recipes/dashboard.md +56 -0
- package/recipes/form-flow.md +55 -0
- package/recipes/homepage.md +89 -0
- package/recipes/index.md +13 -0
- package/recipes/list-detail.md +55 -0
- package/recipes/primitive-to-recipe-matrix.md +83 -0
- package/recipes/saas-settings.md +52 -0
- package/scripts/agent-native/a2a-projection.mjs +248 -0
- package/scripts/agent-native/agui-projection.mjs +178 -0
- package/scripts/agent-native/canonical-json.mjs +109 -0
- package/scripts/agent-native/cli-adapter.mjs +68 -0
- package/scripts/agent-native/events.mjs +113 -0
- package/scripts/agent-native/execution.mjs +227 -0
- package/scripts/agent-native/fixture.mjs +159 -0
- package/scripts/agent-native/identity.mjs +184 -0
- package/scripts/agent-native/immutable-store.mjs +102 -0
- package/scripts/agent-native/knowledge.mjs +168 -0
- package/scripts/agent-native/learning-records.mjs +244 -0
- package/scripts/agent-native/learning.mjs +247 -0
- package/scripts/agent-native/mcp-adapter.mjs +173 -0
- package/scripts/agent-native/queries.mjs +173 -0
- package/scripts/agent-native/registry.mjs +154 -0
- package/scripts/agent-native/retrieval.mjs +171 -0
- package/scripts/agent-native/self-description.mjs +160 -0
- package/scripts/artifact-metadata.mjs +20 -0
- package/scripts/audit-evidence-freshness.mjs +308 -0
- package/scripts/baseline-contract.mjs +189 -0
- package/scripts/baseline-schema-parity.mjs +40 -0
- package/scripts/build-reference-artifacts.mjs +127 -0
- package/scripts/calibration-raw-contract.mjs +172 -0
- package/scripts/capture-session-contract.mjs +187 -0
- package/scripts/component-state-artifact-fixture.mjs +44 -0
- package/scripts/component-state-contract.mjs +99 -0
- package/scripts/component-state-semantics.mjs +128 -0
- package/scripts/component-state-workflow-contract.mjs +67 -0
- package/scripts/component-state-workflow-negative-cases.mjs +64 -0
- package/scripts/consumer-conformance-contract.mjs +198 -0
- package/scripts/consumer-evidence-governance-contract.mjs +210 -0
- package/scripts/consumer-reference-case-runner.mjs +93 -0
- package/scripts/consumer-reference-schema.mjs +155 -0
- package/scripts/create-component-state-session.mjs +100 -0
- package/scripts/create-page-evidence-session.mjs +139 -0
- package/scripts/domain-document-boundaries.mjs +40 -0
- package/scripts/domain-validation-checks.mjs +141 -0
- package/scripts/evidence-artifact-contract.mjs +191 -0
- package/scripts/finalize-component-state-evidence.mjs +165 -0
- package/scripts/finalize-page-evidence.mjs +197 -0
- package/scripts/generate-consumer-reference-evidence.mjs +154 -0
- package/scripts/generate-patterns.mjs +218 -0
- package/scripts/governance-matrix-contract.mjs +73 -0
- package/scripts/governance-matrix-negative-cases.mjs +114 -0
- package/scripts/governance-policy-contract.mjs +49 -0
- package/scripts/governance-test-fixture.mjs +321 -0
- package/scripts/governance-workflow-negative-cases.mjs +241 -0
- package/scripts/governed-profile-registry.mjs +125 -0
- package/scripts/json-schema-formats.mjs +31 -0
- package/scripts/markdown-structure.mjs +45 -0
- package/scripts/page-artifact-metadata.mjs +124 -0
- package/scripts/page-evidence-contract.mjs +297 -0
- package/scripts/page-evidence-fixture.mjs +271 -0
- package/scripts/pattern-data.mjs +325 -0
- package/scripts/profile-record-contract.mjs +140 -0
- package/scripts/promotion-attestation-contract.mjs +91 -0
- package/scripts/promotion-boundary-test-contract.mjs +92 -0
- package/scripts/promotion-fixture-inventory.mjs +109 -0
- package/scripts/promotion-governance-contract.mjs +28 -0
- package/scripts/reference-artifact-path-contract.mjs +28 -0
- package/scripts/reference-profile-contract.mjs +114 -0
- package/scripts/reference-token-contract.mjs +156 -0
- package/scripts/run-consumer-page-evidence-ci.mjs +170 -0
- package/scripts/sg-mcp.mjs +16 -0
- package/scripts/sg.mjs +27 -0
- package/scripts/strict-json.mjs +72 -0
- package/scripts/summarize-sentinel-calibration.mjs +98 -0
- package/scripts/test-agent-adapter-conformance.mjs +250 -0
- package/scripts/test-agent-conformance-receipt.mjs +106 -0
- package/scripts/test-agent-events.mjs +81 -0
- package/scripts/test-agent-execution-effects.mjs +114 -0
- package/scripts/test-agent-execution-fixtures.mjs +140 -0
- package/scripts/test-agent-execution-kernel.mjs +39 -0
- package/scripts/test-agent-execution-learning.mjs +130 -0
- package/scripts/test-agent-execution-lifecycle.mjs +143 -0
- package/scripts/test-agent-execution-safety.mjs +158 -0
- package/scripts/test-agent-execution-views.mjs +117 -0
- package/scripts/test-agent-identity-integrity-cases.mjs +160 -0
- package/scripts/test-agent-knowledge-kernel.mjs +183 -0
- package/scripts/test-agent-learning.mjs +246 -0
- package/scripts/test-agent-mcp.mjs +246 -0
- package/scripts/test-agent-native-schemas.mjs +215 -0
- package/scripts/test-agent-projections.mjs +249 -0
- package/scripts/test-agent-registry-mcp-integrity.mjs +215 -0
- package/scripts/test-agent-registry-mutations.mjs +110 -0
- package/scripts/test-audit-evidence-freshness.mjs +177 -0
- package/scripts/test-component-state-sentinel.mjs +35 -0
- package/scripts/test-component-state-source-contract.mjs +83 -0
- package/scripts/test-consumer-conformance-sentinel.mjs +165 -0
- package/scripts/test-consumer-reference-sentinel.mjs +31 -0
- package/scripts/test-generate-consumer-reference-evidence.mjs +124 -0
- package/scripts/test-json-cli-output.mjs +151 -0
- package/scripts/test-json-schema-formats.mjs +40 -0
- package/scripts/test-reference-adapters.mjs +199 -0
- package/scripts/test-renderer-purity.mjs +34 -0
- package/scripts/test-sg-cli.mjs +129 -0
- package/scripts/test-summarize-sentinel-calibration.mjs +226 -0
- package/scripts/test-validate-baseline-manifest.mjs +234 -0
- package/scripts/test-validate-component-state-artifacts.mjs +243 -0
- package/scripts/test-validate-component-state.mjs +106 -0
- package/scripts/test-validate-consumer-conformance.mjs +427 -0
- package/scripts/test-validate-consumer-reference-cli.mjs +69 -0
- package/scripts/test-validate-consumer-reference.mjs +263 -0
- package/scripts/test-validate-domains.mjs +357 -0
- package/scripts/test-validate-governance.mjs +292 -0
- package/scripts/test-validate-ia.mjs +262 -0
- package/scripts/test-validate-okf.mjs +73 -0
- package/scripts/test-validate-page-evidence.mjs +302 -0
- package/scripts/test-validate-patterns.mjs +157 -0
- package/scripts/test-validate-promotion-rfc.mjs +250 -0
- package/scripts/test-validate-reference-profiles.mjs +170 -0
- package/scripts/test-validate-unity-org-wiki.mjs +57 -0
- package/scripts/test-validate-unity-source-contracts.mjs +67 -0
- package/scripts/test-validate-vocabulary.mjs +174 -0
- package/scripts/test-validate-webpage-workflow.mjs +293 -0
- package/scripts/validate-baseline-manifest.mjs +44 -0
- package/scripts/validate-catalog.mjs +65 -0
- package/scripts/validate-component-state.mjs +141 -0
- package/scripts/validate-consumer-conformance.mjs +477 -0
- package/scripts/validate-consumer-reference.mjs +288 -0
- package/scripts/validate-domains.mjs +237 -0
- package/scripts/validate-governance.mjs +248 -0
- package/scripts/validate-ia.mjs +136 -0
- package/scripts/validate-links.mjs +66 -0
- package/scripts/validate-okf.mjs +104 -0
- package/scripts/validate-page-evidence.mjs +191 -0
- package/scripts/validate-patterns.mjs +246 -0
- package/scripts/validate-promotion-rfc.mjs +224 -0
- package/scripts/validate-reference-artifacts.mjs +125 -0
- package/scripts/validate-renderer-purity.mjs +56 -0
- package/scripts/validate-unity-org-wiki.mjs +146 -0
- package/scripts/validate-unity-source-contracts.mjs +107 -0
- package/scripts/validate-vocabulary.mjs +115 -0
- package/scripts/validate-webpage-workflow.mjs +254 -0
- package/scripts/visual-expectation-contract.mjs +20 -0
- package/scripts/workflow-action-contract.mjs +163 -0
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://stylegallery.example/consumer-reference/schema/item.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"allOf": [
|
|
6
|
+
{
|
|
7
|
+
"if": {
|
|
8
|
+
"properties": {
|
|
9
|
+
"maturity": { "const": "stable" },
|
|
10
|
+
"support": {
|
|
11
|
+
"properties": { "status": { "const": "ended" } },
|
|
12
|
+
"required": ["status"]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": ["maturity", "support"]
|
|
16
|
+
},
|
|
17
|
+
"then": false
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"if": {
|
|
21
|
+
"properties": { "maturity": { "const": "deprecated" } },
|
|
22
|
+
"required": ["maturity"]
|
|
23
|
+
},
|
|
24
|
+
"then": { "required": ["removal_trigger", "replacement"] }
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"if": { "required": ["profile_kind"] },
|
|
28
|
+
"then": {
|
|
29
|
+
"properties": {
|
|
30
|
+
"artifact_mode": { "const": "governed_local" },
|
|
31
|
+
"default": { "const": false },
|
|
32
|
+
"example_only": { "const": true },
|
|
33
|
+
"maturity": { "const": "experimental" },
|
|
34
|
+
"profile_kind": { "const": "governed_local" }
|
|
35
|
+
},
|
|
36
|
+
"required": [
|
|
37
|
+
"default",
|
|
38
|
+
"environment_assumptions",
|
|
39
|
+
"example_only",
|
|
40
|
+
"component_records",
|
|
41
|
+
"evidence_records",
|
|
42
|
+
"fixture_records",
|
|
43
|
+
"generated_records",
|
|
44
|
+
"layout_source_sha",
|
|
45
|
+
"local_foundations",
|
|
46
|
+
"profile_kind",
|
|
47
|
+
"related_fixture_set_id",
|
|
48
|
+
"selection",
|
|
49
|
+
"state_records",
|
|
50
|
+
"tokens"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"properties": {
|
|
56
|
+
"artifact_mode": {
|
|
57
|
+
"enum": ["consumer_local", "external_consumer", "governed_local", "schema_only"]
|
|
58
|
+
},
|
|
59
|
+
"component_records": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"minItems": 1,
|
|
62
|
+
"uniqueItems": true,
|
|
63
|
+
"items": { "const": "components/button.component.json" }
|
|
64
|
+
},
|
|
65
|
+
"default": { "const": false },
|
|
66
|
+
"environment_assumptions": {
|
|
67
|
+
"additionalProperties": false,
|
|
68
|
+
"properties": {
|
|
69
|
+
"reset": {
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"properties": {
|
|
72
|
+
"body_margin": { "minLength": 1, "type": "string" },
|
|
73
|
+
"box_sizing": { "minLength": 1, "type": "string" },
|
|
74
|
+
"figure_margin": { "minLength": 1, "type": "string" }
|
|
75
|
+
},
|
|
76
|
+
"required": ["body_margin", "box_sizing", "figure_margin"],
|
|
77
|
+
"type": "object"
|
|
78
|
+
},
|
|
79
|
+
"user_agent_styles": { "minLength": 1, "type": "string" }
|
|
80
|
+
},
|
|
81
|
+
"required": ["reset", "user_agent_styles"],
|
|
82
|
+
"type": "object"
|
|
83
|
+
},
|
|
84
|
+
"example_only": { "const": true },
|
|
85
|
+
"evidence_records": {
|
|
86
|
+
"type": "array",
|
|
87
|
+
"minItems": 1,
|
|
88
|
+
"uniqueItems": true,
|
|
89
|
+
"items": { "const": "evidence/button.evidence.json" }
|
|
90
|
+
},
|
|
91
|
+
"fixture_independence": { "const": "related" },
|
|
92
|
+
"fixture_records": {
|
|
93
|
+
"type": "array",
|
|
94
|
+
"minItems": 1,
|
|
95
|
+
"uniqueItems": true,
|
|
96
|
+
"items": { "const": "fixtures/button.fixture.json" }
|
|
97
|
+
},
|
|
98
|
+
"generated_records": {
|
|
99
|
+
"type": "array",
|
|
100
|
+
"minItems": 3,
|
|
101
|
+
"uniqueItems": true,
|
|
102
|
+
"items": { "enum": ["generated/state-matrix.md", "generated/keyboard-matrix.md", "generated/evidence-coverage.md"] }
|
|
103
|
+
},
|
|
104
|
+
"handoff": {
|
|
105
|
+
"oneOf": [
|
|
106
|
+
{
|
|
107
|
+
"additionalProperties": false,
|
|
108
|
+
"properties": {
|
|
109
|
+
"record": {
|
|
110
|
+
"pattern": "^(?!/)(?!.*//)(?!.*(?:^|/)\\.{1,2}(?:/|$))(?![A-Za-z][A-Za-z0-9+.-]*:)[^\\\\?#]+\\.json$",
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"status": { "const": "declared" }
|
|
114
|
+
},
|
|
115
|
+
"required": ["record", "status"],
|
|
116
|
+
"type": "object"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"properties": {
|
|
121
|
+
"reason": {
|
|
122
|
+
"minLength": 10,
|
|
123
|
+
"pattern": "^\\S+(?:\\s+\\S+){2,}\\s*[.!?]$",
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
"status": { "const": "not_applicable" }
|
|
127
|
+
},
|
|
128
|
+
"required": ["reason", "status"],
|
|
129
|
+
"type": "object"
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
"id": { "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$", "type": "string" },
|
|
134
|
+
"layout_source_sha": { "const": "775430bbaf4ee208a642220f440f6926d79c90a3" },
|
|
135
|
+
"local_foundations": { "const": "local-foundations.json" },
|
|
136
|
+
"maturity": { "enum": ["deprecated", "experimental", "stable"] },
|
|
137
|
+
"owner": {
|
|
138
|
+
"additionalProperties": false,
|
|
139
|
+
"properties": {
|
|
140
|
+
"enforcement": { "const": "placeholder" },
|
|
141
|
+
"name": { "minLength": 1, "type": "string" }
|
|
142
|
+
},
|
|
143
|
+
"required": ["enforcement", "name"],
|
|
144
|
+
"type": "object"
|
|
145
|
+
},
|
|
146
|
+
"removal_trigger": { "minLength": 1, "type": "string" },
|
|
147
|
+
"profile_kind": { "const": "governed_local" },
|
|
148
|
+
"related_fixture_set_id": { "minLength": 1, "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$", "type": "string" },
|
|
149
|
+
"replacement": { "minLength": 1, "type": "string" },
|
|
150
|
+
"review_independence": { "const": "single_account" },
|
|
151
|
+
"schema_version": { "const": "1.0" },
|
|
152
|
+
"selection": {
|
|
153
|
+
"additionalProperties": false,
|
|
154
|
+
"properties": {
|
|
155
|
+
"method": { "const": "profile_path" },
|
|
156
|
+
"required": { "const": true }
|
|
157
|
+
},
|
|
158
|
+
"required": ["method", "required"],
|
|
159
|
+
"type": "object"
|
|
160
|
+
},
|
|
161
|
+
"support": {
|
|
162
|
+
"additionalProperties": false,
|
|
163
|
+
"properties": { "status": { "enum": ["active", "ended"] } },
|
|
164
|
+
"required": ["status"],
|
|
165
|
+
"type": "object"
|
|
166
|
+
},
|
|
167
|
+
"state_records": {
|
|
168
|
+
"type": "array",
|
|
169
|
+
"minItems": 1,
|
|
170
|
+
"uniqueItems": true,
|
|
171
|
+
"items": { "const": "states/button.states.json" }
|
|
172
|
+
},
|
|
173
|
+
"tokens": { "const": "tokens.dtcg.json" }
|
|
174
|
+
},
|
|
175
|
+
"required": [
|
|
176
|
+
"artifact_mode",
|
|
177
|
+
"fixture_independence",
|
|
178
|
+
"handoff",
|
|
179
|
+
"id",
|
|
180
|
+
"maturity",
|
|
181
|
+
"owner",
|
|
182
|
+
"review_independence",
|
|
183
|
+
"schema_version",
|
|
184
|
+
"support"
|
|
185
|
+
],
|
|
186
|
+
"title": "Consumer reference item",
|
|
187
|
+
"type": "object"
|
|
188
|
+
}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://stylegallery.local/consumer-reference/schema/page-evidence-manifest.schema.json",
|
|
4
|
+
"title": "Closed consumer-local page evidence manifest",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "record_kind", "claim_boundary", "completed_at", "review_by", "repository", "revision", "run", "session", "scenarios"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": { "const": "1.0" },
|
|
10
|
+
"record_kind": { "const": "page_evidence_manifest" },
|
|
11
|
+
"claim_boundary": { "const": "Page evidence is claim-scoped runtime evidence, not visual-regression approval or accessibility certification." },
|
|
12
|
+
"completed_at": { "type": "string", "format": "date-time" },
|
|
13
|
+
"review_by": { "type": "string", "format": "date-time" },
|
|
14
|
+
"repository": { "type": "string", "minLength": 1 },
|
|
15
|
+
"revision": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
16
|
+
"run": { "$ref": "#/$defs/run" },
|
|
17
|
+
"session": { "$ref": "https://stylegallery.local/consumer-reference/schema/page-evidence-session.schema.json#/$defs/completed_session" },
|
|
18
|
+
"scenarios": {
|
|
19
|
+
"type": "array",
|
|
20
|
+
"maxItems": 256,
|
|
21
|
+
"minItems": 1,
|
|
22
|
+
"items": { "$ref": "#/$defs/manifest_scenario" }
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"$defs": {
|
|
26
|
+
"hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
27
|
+
"identity": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$" },
|
|
28
|
+
"scenario_id": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
|
|
29
|
+
"normalized_path": { "type": "string", "minLength": 1, "pattern": "^(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*[?#]).+$" },
|
|
30
|
+
"run": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"additionalProperties": false,
|
|
33
|
+
"required": ["id", "source", "repository", "revision", "attempt", "status"],
|
|
34
|
+
"properties": {
|
|
35
|
+
"id": { "$ref": "#/$defs/identity" },
|
|
36
|
+
"source": { "enum": ["local", "github_actions"] },
|
|
37
|
+
"repository": { "type": "string", "minLength": 1 },
|
|
38
|
+
"revision": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
39
|
+
"attempt": { "type": "integer", "minimum": 1 },
|
|
40
|
+
"status": { "const": "passed" }
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"semantic_environment": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"additionalProperties": false,
|
|
46
|
+
"required": ["browser", "browser_revision", "platform", "viewport", "page_scale_factor", "locale", "color_scheme", "reduced_motion"],
|
|
47
|
+
"properties": {
|
|
48
|
+
"browser": { "type": "string", "minLength": 1 },
|
|
49
|
+
"browser_revision": { "type": "string", "minLength": 1 },
|
|
50
|
+
"platform": { "type": "string", "minLength": 1 },
|
|
51
|
+
"viewport": {
|
|
52
|
+
"type": "object",
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"required": ["width", "height"],
|
|
55
|
+
"properties": {
|
|
56
|
+
"width": { "type": "integer", "minimum": 1 },
|
|
57
|
+
"height": { "type": "integer", "minimum": 1 }
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"page_scale_factor": { "type": "number", "exclusiveMinimum": 0, "maximum": 10 },
|
|
61
|
+
"locale": { "type": "string", "minLength": 1 },
|
|
62
|
+
"color_scheme": { "enum": ["light", "dark", "no-preference"] },
|
|
63
|
+
"reduced_motion": { "enum": ["reduce", "no-preference"] }
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"artifact_declaration": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"required": ["path", "media_type"],
|
|
70
|
+
"properties": {
|
|
71
|
+
"path": { "$ref": "#/$defs/normalized_path" },
|
|
72
|
+
"media_type": { "enum": ["application/json", "image/png", "text/plain"] }
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"artifact": {
|
|
76
|
+
"type": "object",
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"required": ["path", "sha256", "byte_length", "media_type"],
|
|
79
|
+
"properties": {
|
|
80
|
+
"path": { "$ref": "#/$defs/normalized_path" },
|
|
81
|
+
"sha256": { "$ref": "#/$defs/hash" },
|
|
82
|
+
"byte_length": { "type": "integer", "minimum": 1 },
|
|
83
|
+
"media_type": { "enum": ["application/json", "image/png", "text/plain"] },
|
|
84
|
+
"width": { "type": "integer", "minimum": 1 },
|
|
85
|
+
"height": { "type": "integer", "minimum": 1 }
|
|
86
|
+
},
|
|
87
|
+
"allOf": [
|
|
88
|
+
{
|
|
89
|
+
"if": { "properties": { "media_type": { "const": "image/png" } }, "required": ["media_type"] },
|
|
90
|
+
"then": {
|
|
91
|
+
"required": ["width", "height"],
|
|
92
|
+
"properties": {
|
|
93
|
+
"width": { "type": "integer", "minimum": 1 },
|
|
94
|
+
"height": { "type": "integer", "minimum": 1 }
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
"reuse": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"additionalProperties": false,
|
|
103
|
+
"required": ["kind", "prior_manifest_sha256", "prior_session_id", "prior_run_id", "prior_scenario_id"],
|
|
104
|
+
"properties": {
|
|
105
|
+
"kind": { "const": "reused" },
|
|
106
|
+
"prior_manifest_sha256": { "$ref": "#/$defs/hash" },
|
|
107
|
+
"prior_session_id": { "$ref": "#/$defs/identity" },
|
|
108
|
+
"prior_run_id": { "$ref": "#/$defs/identity" },
|
|
109
|
+
"prior_scenario_id": { "$ref": "#/$defs/scenario_id" }
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"runner_result": {
|
|
113
|
+
"type": "object",
|
|
114
|
+
"additionalProperties": false,
|
|
115
|
+
"required": ["schema_version", "record_kind", "session_id", "nonce", "receipt_sha256", "repository", "revision", "source_sha256", "run", "scenario_id", "recorded_at", "semantic_environment", "status", "evidence"],
|
|
116
|
+
"properties": {
|
|
117
|
+
"schema_version": { "const": "1.0" },
|
|
118
|
+
"record_kind": { "const": "page_evidence_runner_result" },
|
|
119
|
+
"session_id": { "$ref": "#/$defs/identity" },
|
|
120
|
+
"nonce": { "$ref": "#/$defs/hash" },
|
|
121
|
+
"receipt_sha256": { "$ref": "#/$defs/hash" },
|
|
122
|
+
"repository": { "type": "string", "minLength": 1 },
|
|
123
|
+
"revision": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
124
|
+
"source_sha256": { "$ref": "#/$defs/hash" },
|
|
125
|
+
"run": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"additionalProperties": false,
|
|
128
|
+
"required": ["id", "source", "repository", "revision", "attempt"],
|
|
129
|
+
"properties": {
|
|
130
|
+
"id": { "$ref": "#/$defs/identity" },
|
|
131
|
+
"source": { "enum": ["local", "github_actions"] },
|
|
132
|
+
"repository": { "type": "string", "minLength": 1 },
|
|
133
|
+
"revision": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
134
|
+
"attempt": { "type": "integer", "minimum": 1 }
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"scenario_id": { "$ref": "#/$defs/scenario_id" },
|
|
138
|
+
"recorded_at": { "type": "string", "format": "date-time" },
|
|
139
|
+
"semantic_environment": { "$ref": "#/$defs/semantic_environment" },
|
|
140
|
+
"status": { "enum": ["passed", "failed"] },
|
|
141
|
+
"evidence": {
|
|
142
|
+
"oneOf": [
|
|
143
|
+
{
|
|
144
|
+
"type": "object",
|
|
145
|
+
"additionalProperties": false,
|
|
146
|
+
"required": ["kind", "artifacts"],
|
|
147
|
+
"properties": {
|
|
148
|
+
"kind": { "const": "captured" },
|
|
149
|
+
"artifacts": { "type": "array", "minItems": 1, "maxItems": 128, "items": { "$ref": "#/$defs/artifact_declaration" } }
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
{ "$ref": "#/$defs/reuse" },
|
|
153
|
+
{
|
|
154
|
+
"type": "object",
|
|
155
|
+
"additionalProperties": false,
|
|
156
|
+
"required": ["kind", "reason"],
|
|
157
|
+
"properties": {
|
|
158
|
+
"kind": { "const": "failed" },
|
|
159
|
+
"reason": { "type": "string", "minLength": 1 }
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"allOf": [
|
|
166
|
+
{
|
|
167
|
+
"if": { "properties": { "status": { "const": "passed" } }, "required": ["status"] },
|
|
168
|
+
"then": {
|
|
169
|
+
"properties": {
|
|
170
|
+
"evidence": {
|
|
171
|
+
"type": "object",
|
|
172
|
+
"oneOf": [
|
|
173
|
+
{ "$ref": "#/$defs/reuse" },
|
|
174
|
+
{ "type": "object", "properties": { "kind": { "const": "captured" } }, "required": ["kind"] }
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"if": { "properties": { "status": { "const": "failed" } }, "required": ["status"] },
|
|
182
|
+
"then": {
|
|
183
|
+
"properties": {
|
|
184
|
+
"evidence": { "type": "object", "properties": { "kind": { "const": "failed" } }, "required": ["kind"] }
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"manifest_scenario": {
|
|
191
|
+
"type": "object",
|
|
192
|
+
"additionalProperties": false,
|
|
193
|
+
"required": ["id", "recorded_at", "semantic_environment", "runner_result", "evidence"],
|
|
194
|
+
"properties": {
|
|
195
|
+
"id": { "$ref": "#/$defs/scenario_id" },
|
|
196
|
+
"recorded_at": { "type": "string", "format": "date-time" },
|
|
197
|
+
"semantic_environment": { "$ref": "#/$defs/semantic_environment" },
|
|
198
|
+
"runner_result": { "$ref": "#/$defs/artifact" },
|
|
199
|
+
"evidence": {
|
|
200
|
+
"oneOf": [
|
|
201
|
+
{
|
|
202
|
+
"type": "object",
|
|
203
|
+
"additionalProperties": false,
|
|
204
|
+
"required": ["kind", "artifacts"],
|
|
205
|
+
"properties": {
|
|
206
|
+
"kind": { "const": "captured" },
|
|
207
|
+
"artifacts": { "type": "array", "minItems": 1, "maxItems": 128, "items": { "$ref": "#/$defs/artifact" } }
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{ "$ref": "#/$defs/reuse" }
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://stylegallery.local/consumer-reference/schema/page-evidence-session.schema.json",
|
|
4
|
+
"title": "Consumer-local page evidence start receipt",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"required": ["schema_version", "record_kind", "session_id", "run_id", "nonce", "started_at", "repository", "revision", "branch", "attempt", "environment", "conformance_record", "source", "intended_scenario_ids"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"schema_version": { "const": "1.0" },
|
|
10
|
+
"record_kind": { "const": "page_evidence_session" },
|
|
11
|
+
"session_id": { "$ref": "#/$defs/identity" },
|
|
12
|
+
"run_id": { "$ref": "#/$defs/identity" },
|
|
13
|
+
"nonce": { "$ref": "#/$defs/hash" },
|
|
14
|
+
"started_at": { "type": "string", "format": "date-time" },
|
|
15
|
+
"repository": { "type": "string", "minLength": 1 },
|
|
16
|
+
"revision": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
17
|
+
"branch": { "type": "string", "minLength": 1 },
|
|
18
|
+
"attempt": { "type": "integer", "minimum": 1 },
|
|
19
|
+
"environment": { "$ref": "#/$defs/producer_environment" },
|
|
20
|
+
"conformance_record": { "$ref": "#/$defs/json_artifact" },
|
|
21
|
+
"source": { "$ref": "#/$defs/source_manifest" },
|
|
22
|
+
"intended_scenario_ids": {
|
|
23
|
+
"type": "array",
|
|
24
|
+
"minItems": 1,
|
|
25
|
+
"uniqueItems": true,
|
|
26
|
+
"items": { "$ref": "#/$defs/scenario_id" }
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"$defs": {
|
|
30
|
+
"hash": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
|
31
|
+
"identity": { "type": "string", "pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$" },
|
|
32
|
+
"scenario_id": { "type": "string", "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" },
|
|
33
|
+
"normalized_path": { "type": "string", "minLength": 1, "pattern": "^(?!/)(?![A-Za-z]:)(?!.*\\\\)(?!.*[?#]).+$" },
|
|
34
|
+
"producer_environment": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"required": ["kind", "node", "platform", "producer"],
|
|
38
|
+
"properties": {
|
|
39
|
+
"kind": { "const": "browser_evidence" },
|
|
40
|
+
"node": { "type": "string", "pattern": "^v\\d+\\.\\d+\\.\\d+$" },
|
|
41
|
+
"platform": { "type": "string", "minLength": 1 },
|
|
42
|
+
"producer": { "const": "stylegallery_page_evidence" }
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"file_artifact": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"required": ["path", "sha256", "byte_length"],
|
|
49
|
+
"properties": {
|
|
50
|
+
"path": { "$ref": "#/$defs/normalized_path" },
|
|
51
|
+
"sha256": { "$ref": "#/$defs/hash" },
|
|
52
|
+
"byte_length": { "type": "integer", "minimum": 1 }
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"json_artifact": {
|
|
56
|
+
"type": "object",
|
|
57
|
+
"additionalProperties": false,
|
|
58
|
+
"required": ["path", "sha256", "byte_length", "media_type"],
|
|
59
|
+
"properties": {
|
|
60
|
+
"path": { "$ref": "#/$defs/normalized_path" },
|
|
61
|
+
"sha256": { "$ref": "#/$defs/hash" },
|
|
62
|
+
"byte_length": { "type": "integer", "minimum": 1 },
|
|
63
|
+
"media_type": { "const": "application/json" }
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"source_manifest": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"additionalProperties": false,
|
|
69
|
+
"required": ["sha256", "files"],
|
|
70
|
+
"properties": {
|
|
71
|
+
"sha256": { "$ref": "#/$defs/hash" },
|
|
72
|
+
"files": {
|
|
73
|
+
"type": "array",
|
|
74
|
+
"maxItems": 1024,
|
|
75
|
+
"minItems": 1,
|
|
76
|
+
"items": { "$ref": "#/$defs/file_artifact" }
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"receipt_artifact": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"additionalProperties": false,
|
|
83
|
+
"required": ["path", "sha256", "byte_length", "media_type"],
|
|
84
|
+
"properties": {
|
|
85
|
+
"path": { "const": "page-evidence-session.json" },
|
|
86
|
+
"sha256": { "$ref": "#/$defs/hash" },
|
|
87
|
+
"byte_length": { "type": "integer", "minimum": 1 },
|
|
88
|
+
"media_type": { "const": "application/json" }
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"completed_session": {
|
|
92
|
+
"type": "object",
|
|
93
|
+
"additionalProperties": false,
|
|
94
|
+
"required": ["session_id", "run_id", "nonce", "receipt_sha256", "receipt", "started_at", "completed_at", "repository", "revision", "branch", "attempt", "environment", "conformance_record", "source", "intended_scenario_ids"],
|
|
95
|
+
"properties": {
|
|
96
|
+
"session_id": { "$ref": "#/$defs/identity" },
|
|
97
|
+
"run_id": { "$ref": "#/$defs/identity" },
|
|
98
|
+
"nonce": { "$ref": "#/$defs/hash" },
|
|
99
|
+
"receipt_sha256": { "$ref": "#/$defs/hash" },
|
|
100
|
+
"receipt": { "$ref": "#/$defs/receipt_artifact" },
|
|
101
|
+
"started_at": { "type": "string", "format": "date-time" },
|
|
102
|
+
"completed_at": { "type": "string", "format": "date-time" },
|
|
103
|
+
"repository": { "type": "string", "minLength": 1 },
|
|
104
|
+
"revision": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
|
105
|
+
"branch": { "type": "string", "minLength": 1 },
|
|
106
|
+
"attempt": { "type": "integer", "minimum": 1 },
|
|
107
|
+
"environment": { "$ref": "#/$defs/producer_environment" },
|
|
108
|
+
"conformance_record": { "$ref": "#/$defs/json_artifact" },
|
|
109
|
+
"source": { "$ref": "#/$defs/source_manifest" },
|
|
110
|
+
"intended_scenario_ids": {
|
|
111
|
+
"type": "array",
|
|
112
|
+
"minItems": 1,
|
|
113
|
+
"uniqueItems": true,
|
|
114
|
+
"items": { "$ref": "#/$defs/scenario_id" }
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "https://stylegallery.example/consumer-reference/schema/portable-tokens.schema.json",
|
|
3
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
4
|
+
"$defs": {
|
|
5
|
+
"alias": {
|
|
6
|
+
"pattern": "^\\{[a-z0-9]+(?:[.-][a-z0-9]+)*\\}$",
|
|
7
|
+
"type": "string"
|
|
8
|
+
},
|
|
9
|
+
"border": {
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"properties": {
|
|
12
|
+
"color": {
|
|
13
|
+
"oneOf": [
|
|
14
|
+
{ "$ref": "#/$defs/alias" },
|
|
15
|
+
{ "$ref": "#/$defs/color" }
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"style": { "const": "solid" },
|
|
19
|
+
"width": {
|
|
20
|
+
"oneOf": [
|
|
21
|
+
{ "$ref": "#/$defs/alias" },
|
|
22
|
+
{ "$ref": "#/$defs/dimension" }
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": ["color", "style", "width"],
|
|
27
|
+
"type": "object"
|
|
28
|
+
},
|
|
29
|
+
"color": {
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"properties": {
|
|
32
|
+
"alpha": { "maximum": 1, "minimum": 0, "type": "number" },
|
|
33
|
+
"colorSpace": { "const": "srgb" },
|
|
34
|
+
"components": {
|
|
35
|
+
"items": { "maximum": 1, "minimum": 0, "type": "number" },
|
|
36
|
+
"maxItems": 3,
|
|
37
|
+
"minItems": 3,
|
|
38
|
+
"type": "array"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": ["colorSpace", "components"],
|
|
42
|
+
"type": "object"
|
|
43
|
+
},
|
|
44
|
+
"dimension": {
|
|
45
|
+
"additionalProperties": false,
|
|
46
|
+
"properties": {
|
|
47
|
+
"unit": { "enum": ["px", "rem"] },
|
|
48
|
+
"value": { "type": "number" }
|
|
49
|
+
},
|
|
50
|
+
"required": ["unit", "value"],
|
|
51
|
+
"type": "object"
|
|
52
|
+
},
|
|
53
|
+
"duration": {
|
|
54
|
+
"additionalProperties": false,
|
|
55
|
+
"properties": {
|
|
56
|
+
"unit": { "enum": ["ms", "s"] },
|
|
57
|
+
"value": { "minimum": 0, "type": "number" }
|
|
58
|
+
},
|
|
59
|
+
"required": ["unit", "value"],
|
|
60
|
+
"type": "object"
|
|
61
|
+
},
|
|
62
|
+
"group": {
|
|
63
|
+
"additionalProperties": false,
|
|
64
|
+
"patternProperties": {
|
|
65
|
+
"^(?!\\$)(?!(?:__proto__|prototype|constructor)$)[a-z0-9]+(?:-[a-z0-9]+)*$": { "$ref": "#/$defs/node" }
|
|
66
|
+
},
|
|
67
|
+
"properties": {
|
|
68
|
+
"$description": { "type": "string" },
|
|
69
|
+
"$type": { "enum": ["border", "color", "dimension", "duration"] }
|
|
70
|
+
},
|
|
71
|
+
"type": "object"
|
|
72
|
+
},
|
|
73
|
+
"node": {
|
|
74
|
+
"oneOf": [
|
|
75
|
+
{ "$ref": "#/$defs/token" },
|
|
76
|
+
{ "$ref": "#/$defs/group" }
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"token": {
|
|
80
|
+
"additionalProperties": false,
|
|
81
|
+
"properties": {
|
|
82
|
+
"$description": { "type": "string" },
|
|
83
|
+
"$type": { "enum": ["border", "color", "dimension", "duration"] },
|
|
84
|
+
"$value": {
|
|
85
|
+
"oneOf": [
|
|
86
|
+
{ "$ref": "#/$defs/alias" },
|
|
87
|
+
{ "$ref": "#/$defs/border" },
|
|
88
|
+
{ "$ref": "#/$defs/color" },
|
|
89
|
+
{ "$ref": "#/$defs/dimension" },
|
|
90
|
+
{ "$ref": "#/$defs/duration" }
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"required": ["$value"],
|
|
95
|
+
"type": "object"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"patternProperties": {
|
|
100
|
+
"^(?!\\$)(?!(?:__proto__|prototype|constructor)$)[a-z0-9]+(?:-[a-z0-9]+)*$": { "$ref": "#/$defs/node" }
|
|
101
|
+
},
|
|
102
|
+
"title": "StyleGallery portable design tokens",
|
|
103
|
+
"type": "object"
|
|
104
|
+
}
|