@uncefact/untp-utils 0.1.0 → 0.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.
- package/README.md +52 -2
- package/artefacts/context/untp/0.6.0/dcc.json +1241 -0
- package/artefacts/context/untp/0.6.0/dfr.json +619 -0
- package/artefacts/context/untp/0.6.0/dia.json +162 -0
- package/artefacts/context/untp/0.6.0/dpp.json +1078 -0
- package/artefacts/context/untp/0.6.0/dte.json +1285 -0
- package/artefacts/context/untp/0.6.1/dcc.json +1388 -0
- package/artefacts/context/untp/0.6.1/dfr.json +690 -0
- package/artefacts/context/untp/0.6.1/dia.json +196 -0
- package/artefacts/context/untp/0.6.1/dpp.json +1164 -0
- package/artefacts/context/untp/0.6.1/dte.json +1340 -0
- package/artefacts/context/untp/0.7.0/untp.json +3493 -0
- package/artefacts/context/vcdm/2/credentials.json +301 -0
- package/artefacts/manifest.json +214 -0
- package/artefacts/schema/untp/0.6.0/dcc.json +1131 -0
- package/artefacts/schema/untp/0.6.0/dfr.json +1028 -0
- package/artefacts/schema/untp/0.6.0/dia.json +236 -0
- package/artefacts/schema/untp/0.6.0/dpp.json +1219 -0
- package/artefacts/schema/untp/0.6.0/dte.json +845 -0
- package/artefacts/schema/untp/0.6.1/dcc.json +1196 -0
- package/artefacts/schema/untp/0.6.1/dfr.json +1037 -0
- package/artefacts/schema/untp/0.6.1/dia.json +236 -0
- package/artefacts/schema/untp/0.6.1/dpp.json +1229 -0
- package/artefacts/schema/untp/0.6.1/dte.json +845 -0
- package/artefacts/schema/untp/0.7.0/cvc.json +701 -0
- package/artefacts/schema/untp/0.7.0/dcc.json +1133 -0
- package/artefacts/schema/untp/0.7.0/dfr.json +1245 -0
- package/artefacts/schema/untp/0.7.0/dia.json +443 -0
- package/artefacts/schema/untp/0.7.0/dpp.json +1300 -0
- package/artefacts/schema/untp/0.7.0/dte.json +1226 -0
- package/artefacts/schema/untp/0.7.0/linkset.json +119 -0
- package/artefacts/schema/vcdm/2/verifiable-credential.json +318 -0
- package/build/artefacts/detect-version-from-context.d.ts +46 -0
- package/build/artefacts/detect-version-from-context.js +77 -0
- package/build/artefacts/detect-version-from-context.js.map +1 -0
- package/build/artefacts/detect-version-from-context.test.d.ts +1 -0
- package/build/artefacts/detect-version-from-context.test.js +69 -0
- package/build/artefacts/detect-version-from-context.test.js.map +1 -0
- package/build/artefacts/index.d.ts +3 -0
- package/build/artefacts/index.js +4 -0
- package/build/artefacts/index.js.map +1 -0
- package/build/artefacts/urls.d.ts +85 -0
- package/build/artefacts/urls.js +141 -0
- package/build/artefacts/urls.js.map +1 -0
- package/build/artefacts/urls.test.d.ts +1 -0
- package/build/artefacts/urls.test.js +99 -0
- package/build/artefacts/urls.test.js.map +1 -0
- package/build/artefacts/version.d.ts +9 -0
- package/build/artefacts/version.js +17 -0
- package/build/artefacts/version.js.map +1 -0
- package/build/artefacts/version.test.d.ts +1 -0
- package/build/artefacts/version.test.js +16 -0
- package/build/artefacts/version.test.js.map +1 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dcc.d.ts +2 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dcc.js +1244 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dcc.js.map +1 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dfr.d.ts +2 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dfr.js +622 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dfr.js.map +1 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dia.d.ts +2 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dia.js +165 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dia.js.map +1 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dpp.d.ts +2 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dpp.js +1081 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dpp.js.map +1 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dte.d.ts +2 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dte.js +1288 -0
- package/build/bundle/artefacts/context/untp/0.6.0/dte.js.map +1 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dcc.d.ts +2 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dcc.js +1391 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dcc.js.map +1 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dfr.d.ts +2 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dfr.js +693 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dfr.js.map +1 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dia.d.ts +2 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dia.js +199 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dia.js.map +1 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dpp.d.ts +2 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dpp.js +1167 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dpp.js.map +1 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dte.d.ts +2 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dte.js +1343 -0
- package/build/bundle/artefacts/context/untp/0.6.1/dte.js.map +1 -0
- package/build/bundle/artefacts/context/untp/0.7.0/untp.d.ts +2 -0
- package/build/bundle/artefacts/context/untp/0.7.0/untp.js +3496 -0
- package/build/bundle/artefacts/context/untp/0.7.0/untp.js.map +1 -0
- package/build/bundle/artefacts/context/vcdm/2/credentials.d.ts +2 -0
- package/build/bundle/artefacts/context/vcdm/2/credentials.js +304 -0
- package/build/bundle/artefacts/context/vcdm/2/credentials.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dcc.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dcc.js +1134 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dcc.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dfr.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dfr.js +1031 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dfr.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dia.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dia.js +239 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dia.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dpp.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dpp.js +1222 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dpp.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dte.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dte.js +848 -0
- package/build/bundle/artefacts/schema/untp/0.6.0/dte.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dcc.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dcc.js +1199 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dcc.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dfr.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dfr.js +1040 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dfr.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dia.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dia.js +239 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dia.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dpp.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dpp.js +1232 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dpp.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dte.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dte.js +848 -0
- package/build/bundle/artefacts/schema/untp/0.6.1/dte.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/cvc.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/cvc.js +704 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/cvc.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dcc.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dcc.js +1136 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dcc.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dfr.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dfr.js +1248 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dfr.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dia.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dia.js +446 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dia.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dpp.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dpp.js +1303 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dpp.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dte.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dte.js +1229 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/dte.js.map +1 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/linkset.d.ts +2 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/linkset.js +122 -0
- package/build/bundle/artefacts/schema/untp/0.7.0/linkset.js.map +1 -0
- package/build/bundle/artefacts/schema/vcdm/2/verifiable-credential.d.ts +2 -0
- package/build/bundle/artefacts/schema/vcdm/2/verifiable-credential.js +321 -0
- package/build/bundle/artefacts/schema/vcdm/2/verifiable-credential.js.map +1 -0
- package/build/bundle/fallback.d.ts +41 -0
- package/build/bundle/fallback.js +62 -0
- package/build/bundle/fallback.js.map +1 -0
- package/build/bundle/fallback.test.d.ts +1 -0
- package/build/bundle/fallback.test.js +124 -0
- package/build/bundle/fallback.test.js.map +1 -0
- package/build/bundle/index.d.ts +4 -0
- package/build/bundle/index.js +77 -0
- package/build/bundle/index.js.map +1 -0
- package/build/bundle/lookup.d.ts +14 -0
- package/build/bundle/lookup.js +40 -0
- package/build/bundle/lookup.js.map +1 -0
- package/build/bundle/lookup.test.d.ts +1 -0
- package/build/bundle/lookup.test.js +70 -0
- package/build/bundle/lookup.test.js.map +1 -0
- package/build/bundle/public.d.ts +25 -0
- package/build/bundle/public.js +56 -0
- package/build/bundle/public.js.map +1 -0
- package/build/bundle/public.test.d.ts +1 -0
- package/build/bundle/public.test.js +35 -0
- package/build/bundle/public.test.js.map +1 -0
- package/build/bundle/refresh-classify.test.d.ts +1 -0
- package/build/bundle/refresh-classify.test.js +20 -0
- package/build/bundle/refresh-classify.test.js.map +1 -0
- package/build/bundle/refresh-main.test.d.ts +1 -0
- package/build/bundle/refresh-main.test.js +98 -0
- package/build/bundle/refresh-main.test.js.map +1 -0
- package/build/cache/in-memory-ttl-cache.d.ts +2 -0
- package/build/cache/in-memory-ttl-cache.js +76 -0
- package/build/cache/in-memory-ttl-cache.js.map +1 -0
- package/build/cache/in-memory-ttl-cache.test.d.ts +1 -0
- package/build/cache/in-memory-ttl-cache.test.js +236 -0
- package/build/cache/in-memory-ttl-cache.test.js.map +1 -0
- package/build/cache/index.d.ts +2 -0
- package/build/cache/index.js +2 -0
- package/build/cache/index.js.map +1 -0
- package/build/cache/ttl-cache.d.ts +22 -0
- package/build/cache/ttl-cache.js +2 -0
- package/build/cache/ttl-cache.js.map +1 -0
- package/build/common/as-date-time.d.ts +13 -0
- package/build/common/as-date-time.js +44 -0
- package/build/common/as-date-time.js.map +1 -0
- package/build/common/as-date-time.test.d.ts +1 -0
- package/build/common/as-date-time.test.js +42 -0
- package/build/common/as-date-time.test.js.map +1 -0
- package/build/common/as-non-empty-string.d.ts +14 -0
- package/build/common/as-non-empty-string.js +20 -0
- package/build/common/as-non-empty-string.js.map +1 -0
- package/build/common/as-non-empty-string.test.d.ts +1 -0
- package/build/common/as-non-empty-string.test.js +30 -0
- package/build/common/as-non-empty-string.test.js.map +1 -0
- package/build/common/index.d.ts +4 -0
- package/build/common/index.js +5 -0
- package/build/common/index.js.map +1 -0
- package/build/common/require-string.d.ts +12 -0
- package/build/common/require-string.js +27 -0
- package/build/common/require-string.js.map +1 -0
- package/build/common/require-string.test.d.ts +1 -0
- package/build/common/require-string.test.js +53 -0
- package/build/common/require-string.test.js.map +1 -0
- package/build/common/validity-window.d.ts +45 -0
- package/build/common/validity-window.js +68 -0
- package/build/common/validity-window.js.map +1 -0
- package/build/common/validity-window.test.d.ts +1 -0
- package/build/common/validity-window.test.js +67 -0
- package/build/common/validity-window.test.js.map +1 -0
- package/build/conformity-vocabulary/codes.d.ts +10 -0
- package/build/conformity-vocabulary/codes.js +10 -0
- package/build/conformity-vocabulary/codes.js.map +1 -0
- package/build/conformity-vocabulary/errors.d.ts +44 -0
- package/build/conformity-vocabulary/errors.js +68 -0
- package/build/conformity-vocabulary/errors.js.map +1 -0
- package/build/conformity-vocabulary/index.d.ts +6 -0
- package/build/conformity-vocabulary/index.js +7 -0
- package/build/conformity-vocabulary/index.js.map +1 -0
- package/build/conformity-vocabulary/parse-conformity-catalogue.d.ts +26 -0
- package/build/conformity-vocabulary/parse-conformity-catalogue.js +106 -0
- package/build/conformity-vocabulary/parse-conformity-catalogue.js.map +1 -0
- package/build/conformity-vocabulary/parse-conformity-catalogue.test.d.ts +1 -0
- package/build/conformity-vocabulary/parse-conformity-catalogue.test.js +327 -0
- package/build/conformity-vocabulary/parse-conformity-catalogue.test.js.map +1 -0
- package/build/conformity-vocabulary/parse-conformity-scheme.d.ts +28 -0
- package/build/conformity-vocabulary/parse-conformity-scheme.js +47 -0
- package/build/conformity-vocabulary/parse-conformity-scheme.js.map +1 -0
- package/build/conformity-vocabulary/parse-conformity-scheme.test.d.ts +1 -0
- package/build/conformity-vocabulary/parse-conformity-scheme.test.js +284 -0
- package/build/conformity-vocabulary/parse-conformity-scheme.test.js.map +1 -0
- package/build/conformity-vocabulary/parsers/v0-7-0.parser.d.ts +19 -0
- package/build/conformity-vocabulary/parsers/v0-7-0.parser.js +219 -0
- package/build/conformity-vocabulary/parsers/v0-7-0.parser.js.map +1 -0
- package/build/conformity-vocabulary/types.d.ts +180 -0
- package/build/conformity-vocabulary/types.js +2 -0
- package/build/conformity-vocabulary/types.js.map +1 -0
- package/build/conformity-vocabulary/validate-conformity-claim.d.ts +26 -0
- package/build/conformity-vocabulary/validate-conformity-claim.js +165 -0
- package/build/conformity-vocabulary/validate-conformity-claim.js.map +1 -0
- package/build/conformity-vocabulary/validate-conformity-claim.test.d.ts +1 -0
- package/build/conformity-vocabulary/validate-conformity-claim.test.js +478 -0
- package/build/conformity-vocabulary/validate-conformity-claim.test.js.map +1 -0
- package/build/http-headers/index.d.ts +5 -0
- package/build/http-headers/index.js +6 -0
- package/build/http-headers/index.js.map +1 -0
- package/build/http-headers/is-safe-header-value.d.ts +10 -0
- package/build/http-headers/is-safe-header-value.js +15 -0
- package/build/http-headers/is-safe-header-value.js.map +1 -0
- package/build/http-headers/is-safe-header-value.test.d.ts +1 -0
- package/build/http-headers/is-safe-header-value.test.js +37 -0
- package/build/http-headers/is-safe-header-value.test.js.map +1 -0
- package/build/http-headers/parse-entity-tag.d.ts +9 -0
- package/build/http-headers/parse-entity-tag.js +18 -0
- package/build/http-headers/parse-entity-tag.js.map +1 -0
- package/build/http-headers/parse-entity-tag.test.d.ts +1 -0
- package/build/http-headers/parse-entity-tag.test.js +41 -0
- package/build/http-headers/parse-entity-tag.test.js.map +1 -0
- package/build/http-headers/parse-imf-date.d.ts +13 -0
- package/build/http-headers/parse-imf-date.js +23 -0
- package/build/http-headers/parse-imf-date.js.map +1 -0
- package/build/http-headers/parse-imf-date.test.d.ts +1 -0
- package/build/http-headers/parse-imf-date.test.js +31 -0
- package/build/http-headers/parse-imf-date.test.js.map +1 -0
- package/build/http-headers/parse-media-type.d.ts +8 -0
- package/build/http-headers/parse-media-type.js +21 -0
- package/build/http-headers/parse-media-type.js.map +1 -0
- package/build/http-headers/parse-media-type.test.d.ts +1 -0
- package/build/http-headers/parse-media-type.test.js +39 -0
- package/build/http-headers/parse-media-type.test.js.map +1 -0
- package/build/http-headers/user-agent.d.ts +35 -0
- package/build/http-headers/user-agent.js +45 -0
- package/build/http-headers/user-agent.js.map +1 -0
- package/build/http-headers/user-agent.test.d.ts +1 -0
- package/build/http-headers/user-agent.test.js +27 -0
- package/build/http-headers/user-agent.test.js.map +1 -0
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/loaders/errors.d.ts +21 -0
- package/build/loaders/errors.js +45 -0
- package/build/loaders/errors.js.map +1 -0
- package/build/loaders/index.d.ts +5 -0
- package/build/loaders/index.js +5 -0
- package/build/loaders/index.js.map +1 -0
- package/build/loaders/jsonld-document-loader.d.ts +48 -0
- package/build/loaders/jsonld-document-loader.js +43 -0
- package/build/loaders/jsonld-document-loader.js.map +1 -0
- package/build/loaders/jsonld-document-loader.test.d.ts +1 -0
- package/build/loaders/jsonld-document-loader.test.js +111 -0
- package/build/loaders/jsonld-document-loader.test.js.map +1 -0
- package/build/loaders/schema-loader.d.ts +31 -0
- package/build/loaders/schema-loader.js +83 -0
- package/build/loaders/schema-loader.js.map +1 -0
- package/build/loaders/schema-loader.ssrf.test.d.ts +1 -0
- package/build/loaders/schema-loader.ssrf.test.js +55 -0
- package/build/loaders/schema-loader.ssrf.test.js.map +1 -0
- package/build/loaders/schema-loader.test.d.ts +1 -0
- package/build/loaders/schema-loader.test.js +217 -0
- package/build/loaders/schema-loader.test.js.map +1 -0
- package/build/multibase-digest/multibase-digest.d.ts +23 -0
- package/build/multibase-digest/multibase-digest.js +40 -0
- package/build/multibase-digest/multibase-digest.js.map +1 -1
- package/build/multibase-digest/multibase-digest.test.js +46 -0
- package/build/multibase-digest/multibase-digest.test.js.map +1 -1
- package/build/node/errors.d.ts +47 -0
- package/build/node/errors.js +86 -0
- package/build/node/errors.js.map +1 -0
- package/build/node/index.d.ts +3 -0
- package/build/node/index.js +4 -0
- package/build/node/index.js.map +1 -0
- package/build/node/is-private-ip.d.ts +45 -0
- package/build/node/is-private-ip.fail-closed.test.d.ts +1 -0
- package/build/node/is-private-ip.fail-closed.test.js +36 -0
- package/build/node/is-private-ip.fail-closed.test.js.map +1 -0
- package/build/node/is-private-ip.js +203 -0
- package/build/node/is-private-ip.js.map +1 -0
- package/build/node/is-private-ip.test.d.ts +1 -0
- package/build/node/is-private-ip.test.js +124 -0
- package/build/node/is-private-ip.test.js.map +1 -0
- package/build/node/validate-public-url.d.ts +81 -0
- package/build/node/validate-public-url.js +128 -0
- package/build/node/validate-public-url.js.map +1 -0
- package/build/node/validate-public-url.test.d.ts +1 -0
- package/build/node/validate-public-url.test.js +324 -0
- package/build/node/validate-public-url.test.js.map +1 -0
- package/build/resolvers/errors.d.ts +73 -0
- package/build/resolvers/errors.js +133 -0
- package/build/resolvers/errors.js.map +1 -0
- package/build/resolvers/index.d.ts +5 -0
- package/build/resolvers/index.js +6 -0
- package/build/resolvers/index.js.map +1 -0
- package/build/resolvers/resolve-document-if-changed.d.ts +48 -0
- package/build/resolvers/resolve-document-if-changed.js +42 -0
- package/build/resolvers/resolve-document-if-changed.js.map +1 -0
- package/build/resolvers/resolve-document-if-changed.test.d.ts +1 -0
- package/build/resolvers/resolve-document-if-changed.test.js +116 -0
- package/build/resolvers/resolve-document-if-changed.test.js.map +1 -0
- package/build/resolvers/resolve-document.d.ts +106 -0
- package/build/resolvers/resolve-document.integration.test.d.ts +1 -0
- package/build/resolvers/resolve-document.integration.test.js +108 -0
- package/build/resolvers/resolve-document.integration.test.js.map +1 -0
- package/build/resolvers/resolve-document.js +319 -0
- package/build/resolvers/resolve-document.js.map +1 -0
- package/build/resolvers/resolve-document.test.d.ts +1 -0
- package/build/resolvers/resolve-document.test.js +749 -0
- package/build/resolvers/resolve-document.test.js.map +1 -0
- package/build/resolvers/resolve-json-document.d.ts +43 -0
- package/build/resolvers/resolve-json-document.js +43 -0
- package/build/resolvers/resolve-json-document.js.map +1 -0
- package/build/resolvers/resolve-json-document.test.d.ts +1 -0
- package/build/resolvers/resolve-json-document.test.js +78 -0
- package/build/resolvers/resolve-json-document.test.js.map +1 -0
- package/build/structured-error.d.ts +49 -0
- package/build/structured-error.js +17 -0
- package/build/structured-error.js.map +1 -0
- package/build/structured-error.test.d.ts +1 -0
- package/build/structured-error.test.js +112 -0
- package/build/structured-error.test.js.map +1 -0
- package/build/validation/describe-jsonld-failure.d.ts +90 -0
- package/build/validation/describe-jsonld-failure.js +171 -0
- package/build/validation/describe-jsonld-failure.js.map +1 -0
- package/build/validation/describe-jsonld-failure.test.d.ts +1 -0
- package/build/validation/describe-jsonld-failure.test.js +226 -0
- package/build/validation/describe-jsonld-failure.test.js.map +1 -0
- package/build/validation/errors.d.ts +40 -0
- package/build/validation/errors.js +75 -0
- package/build/validation/errors.js.map +1 -0
- package/build/validation/index.d.ts +5 -0
- package/build/validation/index.js +5 -0
- package/build/validation/index.js.map +1 -0
- package/build/validation/validate-against-schemas.d.ts +22 -0
- package/build/validation/validate-against-schemas.js +65 -0
- package/build/validation/validate-against-schemas.js.map +1 -0
- package/build/validation/validate-against-schemas.test.d.ts +1 -0
- package/build/validation/validate-against-schemas.test.js +169 -0
- package/build/validation/validate-against-schemas.test.js.map +1 -0
- package/build/validation/validate-jsonld.context-cache.test.d.ts +1 -0
- package/build/validation/validate-jsonld.context-cache.test.js +32 -0
- package/build/validation/validate-jsonld.context-cache.test.js.map +1 -0
- package/build/validation/validate-jsonld.d.ts +59 -0
- package/build/validation/validate-jsonld.js +126 -0
- package/build/validation/validate-jsonld.js.map +1 -0
- package/build/validation/validate-jsonld.ssrf.test.d.ts +1 -0
- package/build/validation/validate-jsonld.ssrf.test.js +108 -0
- package/build/validation/validate-jsonld.ssrf.test.js.map +1 -0
- package/build/validation/validate-jsonld.test.d.ts +1 -0
- package/build/validation/validate-jsonld.test.js +257 -0
- package/build/validation/validate-jsonld.test.js.map +1 -0
- package/package.json +86 -5
|
@@ -0,0 +1,1196 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"additionalProperties": true,
|
|
5
|
+
"properties": {
|
|
6
|
+
"type": {
|
|
7
|
+
"type": "array",
|
|
8
|
+
"readOnly": true,
|
|
9
|
+
"default": ["DigitalConformityCredential", "VerifiableCredential"],
|
|
10
|
+
"items": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"allOf": [
|
|
14
|
+
{
|
|
15
|
+
"contains": {
|
|
16
|
+
"const": "DigitalConformityCredential",
|
|
17
|
+
"minContains": 1
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"contains": {
|
|
22
|
+
"const": "VerifiableCredential",
|
|
23
|
+
"minContains": 1
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"@context": {
|
|
29
|
+
"example": ["https://www.w3.org/ns/credentials/v2", "https://test.uncefact.org/vocabulary/untp/dcc/0.6.1/"],
|
|
30
|
+
"type": "array",
|
|
31
|
+
"items": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"description": "A list of JSON-LD context URIs that define the semantic meaning of properties within the credential. ",
|
|
35
|
+
"readOnly": true,
|
|
36
|
+
"prefixItems": [
|
|
37
|
+
{
|
|
38
|
+
"const": "https://www.w3.org/ns/credentials/v2",
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"const": "https://test.uncefact.org/vocabulary/untp/dcc/0.6.1/",
|
|
43
|
+
"type": "string"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"default": ["https://www.w3.org/ns/credentials/v2", "https://test.uncefact.org/vocabulary/untp/dcc/0.6.1/"],
|
|
47
|
+
"minItems": 2,
|
|
48
|
+
"uniqueItems": true
|
|
49
|
+
},
|
|
50
|
+
"id": {
|
|
51
|
+
"example": "https://example-company.com/credentials/2a423366-a0d6-4855-ba65-2e0c926d09b0",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"format": "uri",
|
|
54
|
+
"description": "A unique identifier (URI) assigned to the product passport. May be a UUID"
|
|
55
|
+
},
|
|
56
|
+
"issuer": {
|
|
57
|
+
"$ref": "#/$defs/CredentialIssuer",
|
|
58
|
+
"description": "The organisation that is the issuer of this VC. Note that the \"id\" property MUST be a W3C DID. Other identifiers such as tax registration numbers can be listed in the \"otherIdentifiers\" property."
|
|
59
|
+
},
|
|
60
|
+
"validFrom": {
|
|
61
|
+
"pattern": "^-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))$",
|
|
62
|
+
"example": "2024-03-15T12:00:00Z",
|
|
63
|
+
"type": "string",
|
|
64
|
+
"format": "date-time",
|
|
65
|
+
"description": "The date and time from which the credential is valid."
|
|
66
|
+
},
|
|
67
|
+
"validUntil": {
|
|
68
|
+
"pattern": "^-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))$",
|
|
69
|
+
"example": "2034-03-15T12:00:00Z",
|
|
70
|
+
"type": "string",
|
|
71
|
+
"format": "date-time",
|
|
72
|
+
"description": "The expiry date (if applicable) of this verifiable credential."
|
|
73
|
+
},
|
|
74
|
+
"credentialSubject": {
|
|
75
|
+
"$ref": "#/$defs/ConformityAttestation",
|
|
76
|
+
"description": "The conformity attestation is the subject of the verifiable credential. "
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"description": "A conformity attestation issued by a competent body that defines one or more assessments (eg carbon intensity) about a product (eg batttery) against a specification (eg LCA method) defined in a standard or regulation. ",
|
|
80
|
+
"required": ["@context", "id", "issuer"],
|
|
81
|
+
"$defs": {
|
|
82
|
+
"CredentialIssuer": {
|
|
83
|
+
"type": "object",
|
|
84
|
+
"additionalProperties": false,
|
|
85
|
+
"properties": {
|
|
86
|
+
"type": {
|
|
87
|
+
"type": "array",
|
|
88
|
+
"readOnly": true,
|
|
89
|
+
"default": ["CredentialIssuer"],
|
|
90
|
+
"items": {
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
"allOf": [
|
|
94
|
+
{
|
|
95
|
+
"contains": {
|
|
96
|
+
"const": "CredentialIssuer",
|
|
97
|
+
"minContains": 1
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
},
|
|
102
|
+
"id": {
|
|
103
|
+
"example": "did:web:identifiers.example-company.com:12345",
|
|
104
|
+
"type": "string",
|
|
105
|
+
"format": "uri",
|
|
106
|
+
"description": "The W3C DID of the issuer - should be a did:web or did:webvh"
|
|
107
|
+
},
|
|
108
|
+
"name": {
|
|
109
|
+
"example": "Example Company Pty Ltd",
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "The name of the issuer person or organisation"
|
|
112
|
+
},
|
|
113
|
+
"issuerAlsoKnownAs": {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "object",
|
|
117
|
+
"properties": {
|
|
118
|
+
"id": {
|
|
119
|
+
"example": "https://abr.business.gov.au/ABN/View?abn=90664869327",
|
|
120
|
+
"type": "string",
|
|
121
|
+
"format": "uri",
|
|
122
|
+
"description": "The globally unique ID of the party as a URI, ideally as a resolvable ID. "
|
|
123
|
+
},
|
|
124
|
+
"name": {
|
|
125
|
+
"example": "Sample Company Pty Ltd.",
|
|
126
|
+
"type": "string",
|
|
127
|
+
"description": "The registered name of the party within the identifier scheme."
|
|
128
|
+
},
|
|
129
|
+
"registeredId": {
|
|
130
|
+
"example": 90664869327,
|
|
131
|
+
"type": "string",
|
|
132
|
+
"description": "The registration number (alphanumeric) of the Party within the register. Unique within the register."
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": ["id", "name"]
|
|
136
|
+
},
|
|
137
|
+
"description": "An optional list of other registered identifiers for this credential issuer "
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"description": "The issuer party (person or organisation) of a verifiable credential.",
|
|
141
|
+
"required": ["id", "name"]
|
|
142
|
+
},
|
|
143
|
+
"ConformityAttestation": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"additionalProperties": true,
|
|
146
|
+
"properties": {
|
|
147
|
+
"type": {
|
|
148
|
+
"type": "array",
|
|
149
|
+
"readOnly": true,
|
|
150
|
+
"default": ["ConformityAttestation", "Attestation"],
|
|
151
|
+
"items": {
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
"allOf": [
|
|
155
|
+
{
|
|
156
|
+
"contains": {
|
|
157
|
+
"const": "ConformityAttestation",
|
|
158
|
+
"minContains": 1
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"contains": {
|
|
163
|
+
"const": "Attestation",
|
|
164
|
+
"minContains": 1
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
"id": {
|
|
170
|
+
"example": "https://sample-certifiers.com/attestations/12345",
|
|
171
|
+
"type": "string",
|
|
172
|
+
"format": "uri",
|
|
173
|
+
"description": "The globally unique ID of this conformity attestation."
|
|
174
|
+
},
|
|
175
|
+
"name": {
|
|
176
|
+
"example": "Carbon Lifecycle assessment 12345567",
|
|
177
|
+
"type": "string",
|
|
178
|
+
"description": "A human readable description of this conformity attestation"
|
|
179
|
+
},
|
|
180
|
+
"assessorLevel": {
|
|
181
|
+
"type": "string",
|
|
182
|
+
"enum": ["Self", "Commercial", "Buyer", "Membership", "Unspecified", "3rdParty"],
|
|
183
|
+
"example": "Self",
|
|
184
|
+
"description": "Assurance code pertaining to assessor (relation to the object under assessment)"
|
|
185
|
+
},
|
|
186
|
+
"assessmentLevel": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"enum": ["GovtApproval", "GlobalMRA", "Accredited", "Verified", "Validated", "Unspecified"],
|
|
189
|
+
"example": "GovtApproval",
|
|
190
|
+
"description": "Assurance pertaining to assessment (any authority or support for the assessment process)"
|
|
191
|
+
},
|
|
192
|
+
"attestationType": {
|
|
193
|
+
"type": "string",
|
|
194
|
+
"enum": [
|
|
195
|
+
"certification",
|
|
196
|
+
"declaration",
|
|
197
|
+
"inspection",
|
|
198
|
+
"testing",
|
|
199
|
+
"verification",
|
|
200
|
+
"validation",
|
|
201
|
+
"calibration"
|
|
202
|
+
],
|
|
203
|
+
"example": "certification",
|
|
204
|
+
"description": "The type of criterion (optional or mandatory)."
|
|
205
|
+
},
|
|
206
|
+
"description": {
|
|
207
|
+
"example": "A life-cycle assessment of the battery emissions intensity according to the Global Battery Alliance rule-book.",
|
|
208
|
+
"type": "string",
|
|
209
|
+
"description": "A textual description of the scope or purpose of this conformity attestation"
|
|
210
|
+
},
|
|
211
|
+
"issuedToParty": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"properties": {
|
|
214
|
+
"id": {
|
|
215
|
+
"example": "https://abr.business.gov.au/ABN/View?abn=90664869327",
|
|
216
|
+
"type": "string",
|
|
217
|
+
"format": "uri",
|
|
218
|
+
"description": "The globally unique ID of the party as a URI, ideally as a resolvable ID. "
|
|
219
|
+
},
|
|
220
|
+
"name": {
|
|
221
|
+
"example": "Sample Company Pty Ltd.",
|
|
222
|
+
"type": "string",
|
|
223
|
+
"description": "The registered name of the party within the identifier scheme."
|
|
224
|
+
},
|
|
225
|
+
"registeredId": {
|
|
226
|
+
"example": 90664869327,
|
|
227
|
+
"type": "string",
|
|
228
|
+
"description": "The registration number (alphanumeric) of the Party within the register. Unique within the register."
|
|
229
|
+
},
|
|
230
|
+
"description": {
|
|
231
|
+
"example": "A leading electric energy storage company",
|
|
232
|
+
"type": "string",
|
|
233
|
+
"description": "An optional short description of the party."
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"required": ["id", "name"],
|
|
237
|
+
"description": "The party to whom the conformity attestation was issued."
|
|
238
|
+
},
|
|
239
|
+
"authorisation": {
|
|
240
|
+
"type": "array",
|
|
241
|
+
"items": {
|
|
242
|
+
"$ref": "#/$defs/Endorsement"
|
|
243
|
+
},
|
|
244
|
+
"description": "The authority under which a conformity claim is issued. For example a national accreditation authority may authorise a test lab to issue test certificates about a product against a standard. "
|
|
245
|
+
},
|
|
246
|
+
"conformityCertificate": {
|
|
247
|
+
"$ref": "#/$defs/SecureLink",
|
|
248
|
+
"description": "A reference to the human / printable version of this conformity attestation - typically represented as a PDF document. The document may have more details than are represented in the digital attestation."
|
|
249
|
+
},
|
|
250
|
+
"auditableEvidence": {
|
|
251
|
+
"$ref": "#/$defs/SecureLink",
|
|
252
|
+
"description": "Auditable evidence supporting this assessment such as raw measurements, supporting documents. This is usually private data and would normally be encrypted."
|
|
253
|
+
},
|
|
254
|
+
"scope": {
|
|
255
|
+
"$ref": "#/$defs/ConformityScheme",
|
|
256
|
+
"description": "The scheme(s) under which this conformity assesment is issued. "
|
|
257
|
+
},
|
|
258
|
+
"assessment": {
|
|
259
|
+
"type": "array",
|
|
260
|
+
"items": {
|
|
261
|
+
"$ref": "#/$defs/ConformityAssessment"
|
|
262
|
+
},
|
|
263
|
+
"description": "The list of specific assessments made within this conformity attestation."
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"description": "A conformity attestation issued by a competent body that defines one or more assessments (eg carbon intensity) about a product (eg battery) against a specification (eg LCA method) defined in a standard or regulation.",
|
|
267
|
+
"required": ["id", "assessorLevel", "assessmentLevel", "attestationType", "issuedToParty"]
|
|
268
|
+
},
|
|
269
|
+
"Endorsement": {
|
|
270
|
+
"type": "object",
|
|
271
|
+
"additionalProperties": true,
|
|
272
|
+
"properties": {
|
|
273
|
+
"type": {
|
|
274
|
+
"type": "array",
|
|
275
|
+
"readOnly": true,
|
|
276
|
+
"default": ["Endorsement"],
|
|
277
|
+
"items": {
|
|
278
|
+
"type": "string"
|
|
279
|
+
},
|
|
280
|
+
"allOf": [
|
|
281
|
+
{
|
|
282
|
+
"contains": {
|
|
283
|
+
"const": "Endorsement",
|
|
284
|
+
"minContains": 1
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
},
|
|
289
|
+
"id": {
|
|
290
|
+
"example": "https://authority.gov/schemeABC/123456789",
|
|
291
|
+
"type": "string",
|
|
292
|
+
"format": "uri",
|
|
293
|
+
"description": "Globally unique identifier of an accreditation or authority issued to a conformity assessment body by a regulator or national accreditation authority."
|
|
294
|
+
},
|
|
295
|
+
"name": {
|
|
296
|
+
"example": "Accreditation of certifiers.com under the Australian National Greenhouse and Energy Reporting scheme (NGER).",
|
|
297
|
+
"type": "string",
|
|
298
|
+
"description": "The name of the accreditation."
|
|
299
|
+
},
|
|
300
|
+
"trustmark": {
|
|
301
|
+
"$ref": "#/$defs/BinaryFile",
|
|
302
|
+
"description": "The trust mark image awarded by the AB to the CAB to indicate accreditation."
|
|
303
|
+
},
|
|
304
|
+
"issuingAuthority": {
|
|
305
|
+
"type": "object",
|
|
306
|
+
"properties": {
|
|
307
|
+
"id": {
|
|
308
|
+
"example": "https://abr.business.gov.au/ABN/View?abn=90664869327",
|
|
309
|
+
"type": "string",
|
|
310
|
+
"format": "uri",
|
|
311
|
+
"description": "The globally unique ID of the party as a URI, ideally as a resolvable ID. "
|
|
312
|
+
},
|
|
313
|
+
"name": {
|
|
314
|
+
"example": "Sample Company Pty Ltd.",
|
|
315
|
+
"type": "string",
|
|
316
|
+
"description": "The registered name of the party within the identifier scheme."
|
|
317
|
+
},
|
|
318
|
+
"registeredId": {
|
|
319
|
+
"example": 90664869327,
|
|
320
|
+
"type": "string",
|
|
321
|
+
"description": "The registration number (alphanumeric) of the Party within the register. Unique within the register."
|
|
322
|
+
}
|
|
323
|
+
},
|
|
324
|
+
"required": ["id", "name"],
|
|
325
|
+
"description": "The competent authority that issued the accreditation."
|
|
326
|
+
},
|
|
327
|
+
"endorsementEvidence": {
|
|
328
|
+
"$ref": "#/$defs/Link",
|
|
329
|
+
"description": "The evidence that supports the authority under which the attestation is issued - for an example an accreditation certificate."
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"description": "The authority under which a conformity claim is issued. For example a national accreditation authority may authorise a test lab to issue test certificates about a product against a standard. ",
|
|
333
|
+
"required": ["id", "name", "issuingAuthority"]
|
|
334
|
+
},
|
|
335
|
+
"BinaryFile": {
|
|
336
|
+
"type": "object",
|
|
337
|
+
"additionalProperties": false,
|
|
338
|
+
"properties": {
|
|
339
|
+
"type": {
|
|
340
|
+
"type": "array",
|
|
341
|
+
"readOnly": true,
|
|
342
|
+
"default": ["BinaryFile"],
|
|
343
|
+
"items": {
|
|
344
|
+
"type": "string"
|
|
345
|
+
},
|
|
346
|
+
"allOf": [
|
|
347
|
+
{
|
|
348
|
+
"contains": {
|
|
349
|
+
"const": "BinaryFile",
|
|
350
|
+
"minContains": 1
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
]
|
|
354
|
+
},
|
|
355
|
+
"fileName": {
|
|
356
|
+
"example": "GHG protocol trust mark",
|
|
357
|
+
"type": "string",
|
|
358
|
+
"description": "A name for referenced binary file"
|
|
359
|
+
},
|
|
360
|
+
"fileType": {
|
|
361
|
+
"type": "string",
|
|
362
|
+
"x-external-enumeration": "https://mimetype.io/",
|
|
363
|
+
"description": "The type of file, represented as a MIME type.\n\n This is an enumerated value, but the list of valid values are too big, or change too often to include here. You can access the list of allowable values at this URL: https://mimetype.io/\n "
|
|
364
|
+
},
|
|
365
|
+
"file": {
|
|
366
|
+
"example": "iVBORw0KGgoAAAANSUhEUgAAADkAAAA2CAYAAAB9TjFQAAAABGdBTUEAAi/9H3pWy6vI9uFdAAAAAElFTkSuQmCC",
|
|
367
|
+
"type": "string",
|
|
368
|
+
"format": "byte",
|
|
369
|
+
"description": "The binary file data encoded as Base64 string."
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"description": "A binary file reference including name and file type."
|
|
373
|
+
},
|
|
374
|
+
"Link": {
|
|
375
|
+
"type": "object",
|
|
376
|
+
"additionalProperties": false,
|
|
377
|
+
"properties": {
|
|
378
|
+
"type": {
|
|
379
|
+
"type": "array",
|
|
380
|
+
"readOnly": true,
|
|
381
|
+
"default": ["Link"],
|
|
382
|
+
"items": {
|
|
383
|
+
"type": "string"
|
|
384
|
+
},
|
|
385
|
+
"allOf": [
|
|
386
|
+
{
|
|
387
|
+
"contains": {
|
|
388
|
+
"const": "Link",
|
|
389
|
+
"minContains": 1
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
"linkURL": {
|
|
395
|
+
"example": "https://files.example-certifier.com/1234567.json",
|
|
396
|
+
"type": "string",
|
|
397
|
+
"format": "uri",
|
|
398
|
+
"description": "The URL of the target resource. "
|
|
399
|
+
},
|
|
400
|
+
"linkName": {
|
|
401
|
+
"example": "GBA rule book conformity certificate",
|
|
402
|
+
"type": "string",
|
|
403
|
+
"description": "A display name for the target resource "
|
|
404
|
+
},
|
|
405
|
+
"linkType": {
|
|
406
|
+
"example": "https://test.uncefact.org/vocabulary/linkTypes/dcc",
|
|
407
|
+
"type": "string",
|
|
408
|
+
"description": "The type of the target resource - drawn from a controlled vocabulary "
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
"description": "A structure to provide a URL link plus metadata associated with the link."
|
|
412
|
+
},
|
|
413
|
+
"SecureLink": {
|
|
414
|
+
"type": "object",
|
|
415
|
+
"additionalProperties": false,
|
|
416
|
+
"properties": {
|
|
417
|
+
"type": {
|
|
418
|
+
"type": "array",
|
|
419
|
+
"readOnly": true,
|
|
420
|
+
"default": ["SecureLink", "Link"],
|
|
421
|
+
"items": {
|
|
422
|
+
"type": "string"
|
|
423
|
+
},
|
|
424
|
+
"allOf": [
|
|
425
|
+
{
|
|
426
|
+
"contains": {
|
|
427
|
+
"const": "SecureLink",
|
|
428
|
+
"minContains": 1
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"contains": {
|
|
433
|
+
"const": "Link",
|
|
434
|
+
"minContains": 1
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
]
|
|
438
|
+
},
|
|
439
|
+
"linkURL": {
|
|
440
|
+
"example": "https://files.example-certifier.com/1234567.json",
|
|
441
|
+
"type": "string",
|
|
442
|
+
"format": "uri",
|
|
443
|
+
"description": "The URL of the target resource. "
|
|
444
|
+
},
|
|
445
|
+
"linkName": {
|
|
446
|
+
"example": "GBA rule book conformity certificate",
|
|
447
|
+
"type": "string",
|
|
448
|
+
"description": "A display name for the target resource "
|
|
449
|
+
},
|
|
450
|
+
"linkType": {
|
|
451
|
+
"example": "https://test.uncefact.org/vocabulary/linkTypes/dcc",
|
|
452
|
+
"type": "string",
|
|
453
|
+
"description": "The type of the target resource - drawn from a controlled vocabulary "
|
|
454
|
+
},
|
|
455
|
+
"hashDigest": {
|
|
456
|
+
"example": "6239119dda5bd4c8a6ffb832fe16feaa5c27b7dba154d24c53d4470a2c69adc2",
|
|
457
|
+
"type": "string",
|
|
458
|
+
"description": "The hash of the file."
|
|
459
|
+
},
|
|
460
|
+
"hashMethod": {
|
|
461
|
+
"type": "string",
|
|
462
|
+
"enum": ["SHA-256", "SHA-1"],
|
|
463
|
+
"example": "SHA-256",
|
|
464
|
+
"description": "The hashing algorithm used to create the target hash. SHA-265 is the recommended standard"
|
|
465
|
+
},
|
|
466
|
+
"encryptionMethod": {
|
|
467
|
+
"type": "string",
|
|
468
|
+
"enum": ["none", "AES"],
|
|
469
|
+
"example": "none",
|
|
470
|
+
"description": "The symmetric encryption algorithm used to encrypt the link target. AES is the recommended standard. Decryption keys are expected to be passed out of bounds."
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"description": "A binary file that is hashed ()for tamper evidence) and optionally encrypted (for confidentiality)."
|
|
474
|
+
},
|
|
475
|
+
"ConformityScheme": {
|
|
476
|
+
"type": "object",
|
|
477
|
+
"additionalProperties": true,
|
|
478
|
+
"properties": {
|
|
479
|
+
"type": {
|
|
480
|
+
"type": "array",
|
|
481
|
+
"readOnly": true,
|
|
482
|
+
"default": ["ConformityScheme"],
|
|
483
|
+
"items": {
|
|
484
|
+
"type": "string"
|
|
485
|
+
},
|
|
486
|
+
"allOf": [
|
|
487
|
+
{
|
|
488
|
+
"contains": {
|
|
489
|
+
"const": "ConformityScheme",
|
|
490
|
+
"minContains": 1
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
"id": {
|
|
496
|
+
"example": "https://sample-scheme.org/ESGStandard/v4.0",
|
|
497
|
+
"type": "string",
|
|
498
|
+
"format": "uri",
|
|
499
|
+
"description": "The identifier of this scheme as a URI. Typically of the form ownerDomain.schemeName."
|
|
500
|
+
},
|
|
501
|
+
"name": {
|
|
502
|
+
"example": "Sample ESG Standard",
|
|
503
|
+
"type": "string",
|
|
504
|
+
"description": "The name of this conformity scheme"
|
|
505
|
+
},
|
|
506
|
+
"description": {
|
|
507
|
+
"example": "The Sample ESG Standard provides a framework for assessing and enhancing environmental, social, and governance performance across supply chains, ensuring compliance with best practices through validated assessments.",
|
|
508
|
+
"type": "string",
|
|
509
|
+
"description": "The description of this conformity scheme"
|
|
510
|
+
},
|
|
511
|
+
"version": {
|
|
512
|
+
"example": "1.0.0",
|
|
513
|
+
"type": "string",
|
|
514
|
+
"description": "Version of this scheme folling SemVer best practive (major.minor.patch). "
|
|
515
|
+
},
|
|
516
|
+
"validFrom": {
|
|
517
|
+
"example": "2025-06-10",
|
|
518
|
+
"type": "string",
|
|
519
|
+
"format": "date",
|
|
520
|
+
"description": "The data from which this scheme version is valid."
|
|
521
|
+
},
|
|
522
|
+
"owner": {
|
|
523
|
+
"type": "object",
|
|
524
|
+
"properties": {
|
|
525
|
+
"id": {
|
|
526
|
+
"example": "https://abr.business.gov.au/ABN/View?abn=90664869327",
|
|
527
|
+
"type": "string",
|
|
528
|
+
"format": "uri",
|
|
529
|
+
"description": "The globally unique ID of the party as a URI, ideally as a resolvable ID. "
|
|
530
|
+
},
|
|
531
|
+
"name": {
|
|
532
|
+
"example": "Sample Company Pty Ltd.",
|
|
533
|
+
"type": "string",
|
|
534
|
+
"description": "The registered name of the party within the identifier scheme."
|
|
535
|
+
},
|
|
536
|
+
"registeredId": {
|
|
537
|
+
"example": 90664869327,
|
|
538
|
+
"type": "string",
|
|
539
|
+
"description": "The registration number (alphanumeric) of the Party within the register. Unique within the register."
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"required": ["id", "name"],
|
|
543
|
+
"description": "The party that is the owner / maintainer of this conformity scheme."
|
|
544
|
+
},
|
|
545
|
+
"trustmark": {
|
|
546
|
+
"$ref": "#/$defs/BinaryFile",
|
|
547
|
+
"description": "The trust mark or seal used by this conformity scheme."
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
"description": "A formal governance scheme under which this attestation is issued (eg ACRS structural steel certification)",
|
|
551
|
+
"required": ["id", "name", "description", "version", "validFrom", "owner"]
|
|
552
|
+
},
|
|
553
|
+
"ConformityAssessment": {
|
|
554
|
+
"type": "object",
|
|
555
|
+
"additionalProperties": true,
|
|
556
|
+
"properties": {
|
|
557
|
+
"type": {
|
|
558
|
+
"type": "array",
|
|
559
|
+
"readOnly": true,
|
|
560
|
+
"default": ["ConformityAssessment", "Declaration"],
|
|
561
|
+
"items": {
|
|
562
|
+
"type": "string"
|
|
563
|
+
},
|
|
564
|
+
"allOf": [
|
|
565
|
+
{
|
|
566
|
+
"contains": {
|
|
567
|
+
"const": "ConformityAssessment",
|
|
568
|
+
"minContains": 1
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"contains": {
|
|
573
|
+
"const": "Declaration",
|
|
574
|
+
"minContains": 1
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
]
|
|
578
|
+
},
|
|
579
|
+
"description": {
|
|
580
|
+
"example": "A standardised disclosure of the battery's greenhouse gas emissions intensity, calculated in accordance with the Global Battery Alliance Battery Passport Greenhouse Gas Rulebook V.2.0.",
|
|
581
|
+
"type": "string",
|
|
582
|
+
"description": "A textual description of the declaration being made."
|
|
583
|
+
},
|
|
584
|
+
"assessmentDate": {
|
|
585
|
+
"example": "2024-03-15",
|
|
586
|
+
"type": "string",
|
|
587
|
+
"format": "date",
|
|
588
|
+
"description": "The date on which this assessment was made. "
|
|
589
|
+
},
|
|
590
|
+
"id": {
|
|
591
|
+
"example": "https://exampleCAB.com/38f73303-a39e-45a7-b8b7-e73517548f27/01",
|
|
592
|
+
"type": "string",
|
|
593
|
+
"format": "uri",
|
|
594
|
+
"description": "A unique identifier for the declaration. Often this will be an extension of the product.id or attestation.id. But could be a UUID."
|
|
595
|
+
},
|
|
596
|
+
"name": {
|
|
597
|
+
"example": "Product GHG Footprint certificate in accordance with GBA Rulebook.",
|
|
598
|
+
"type": "string",
|
|
599
|
+
"description": "A name that describes the specific assessment"
|
|
600
|
+
},
|
|
601
|
+
"referenceStandard": {
|
|
602
|
+
"$ref": "#/$defs/Standard",
|
|
603
|
+
"description": "The reference to the standard that defines the specification / criteria"
|
|
604
|
+
},
|
|
605
|
+
"referenceRegulation": {
|
|
606
|
+
"$ref": "#/$defs/Regulation",
|
|
607
|
+
"description": "The reference to the regulation that defines the assessment criteria"
|
|
608
|
+
},
|
|
609
|
+
"assessmentCriteria": {
|
|
610
|
+
"type": "array",
|
|
611
|
+
"items": {
|
|
612
|
+
"$ref": "#/$defs/Criterion"
|
|
613
|
+
},
|
|
614
|
+
"description": "The specification against which the assessment is made."
|
|
615
|
+
},
|
|
616
|
+
"declaredValue": {
|
|
617
|
+
"type": "array",
|
|
618
|
+
"items": {
|
|
619
|
+
"$ref": "#/$defs/Metric"
|
|
620
|
+
},
|
|
621
|
+
"description": "The list of specific values measured as part of this assessment (eg tensile strength)"
|
|
622
|
+
},
|
|
623
|
+
"conformance": {
|
|
624
|
+
"example": true,
|
|
625
|
+
"type": "boolean",
|
|
626
|
+
"description": "An indicator of whether or not the claim or assesment conforms to the regulatory or standard criteria."
|
|
627
|
+
},
|
|
628
|
+
"conformityTopic": {
|
|
629
|
+
"type": "string",
|
|
630
|
+
"enum": [
|
|
631
|
+
"environment.energy",
|
|
632
|
+
"environment.emissions",
|
|
633
|
+
"environment.water",
|
|
634
|
+
"environment.waste",
|
|
635
|
+
"environment.deforestation",
|
|
636
|
+
"environment.biodiversity",
|
|
637
|
+
"circularity.content",
|
|
638
|
+
"circularity.design",
|
|
639
|
+
"social.labour",
|
|
640
|
+
"social.rights",
|
|
641
|
+
"social.community",
|
|
642
|
+
"social.safety",
|
|
643
|
+
"governance.ethics",
|
|
644
|
+
"governance.compliance",
|
|
645
|
+
"governance.transparency"
|
|
646
|
+
],
|
|
647
|
+
"example": "environment.energy",
|
|
648
|
+
"description": "The conformity topic category for this assessment (eg vocabulary.uncefact.org/sustainability/emissions)"
|
|
649
|
+
},
|
|
650
|
+
"assessedProduct": {
|
|
651
|
+
"type": "array",
|
|
652
|
+
"items": {
|
|
653
|
+
"$ref": "#/$defs/ProductVerification"
|
|
654
|
+
},
|
|
655
|
+
"description": "The list of products that are the object of this conformity assessment"
|
|
656
|
+
},
|
|
657
|
+
"assessedFacility": {
|
|
658
|
+
"type": "array",
|
|
659
|
+
"items": {
|
|
660
|
+
"$ref": "#/$defs/FacilityVerification"
|
|
661
|
+
},
|
|
662
|
+
"description": "The list of facilities that are the object of this conformity assessment."
|
|
663
|
+
},
|
|
664
|
+
"assessedOrganisation": {
|
|
665
|
+
"type": "object",
|
|
666
|
+
"properties": {
|
|
667
|
+
"id": {
|
|
668
|
+
"example": "https://abr.business.gov.au/ABN/View?abn=90664869327",
|
|
669
|
+
"type": "string",
|
|
670
|
+
"format": "uri",
|
|
671
|
+
"description": "The globally unique ID of the party as a URI, ideally as a resolvable ID. "
|
|
672
|
+
},
|
|
673
|
+
"name": {
|
|
674
|
+
"example": "Sample Company Pty Ltd.",
|
|
675
|
+
"type": "string",
|
|
676
|
+
"description": "The registered name of the party within the identifier scheme."
|
|
677
|
+
},
|
|
678
|
+
"registeredId": {
|
|
679
|
+
"example": 90664869327,
|
|
680
|
+
"type": "string",
|
|
681
|
+
"description": "The registration number (alphanumeric) of the Party within the register. Unique within the register."
|
|
682
|
+
},
|
|
683
|
+
"description": {
|
|
684
|
+
"example": "A leading electric energy storage company",
|
|
685
|
+
"type": "string",
|
|
686
|
+
"description": "An optional short description of the party."
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
"required": ["id", "name"],
|
|
690
|
+
"description": "The organisation that is the object of this assessment."
|
|
691
|
+
},
|
|
692
|
+
"auditor": {
|
|
693
|
+
"type": "object",
|
|
694
|
+
"properties": {
|
|
695
|
+
"id": {
|
|
696
|
+
"example": "https://abr.business.gov.au/ABN/View?abn=90664869327",
|
|
697
|
+
"type": "string",
|
|
698
|
+
"format": "uri",
|
|
699
|
+
"description": "The globally unique ID of the party as a URI, ideally as a resolvable ID. "
|
|
700
|
+
},
|
|
701
|
+
"name": {
|
|
702
|
+
"example": "Sample Company Pty Ltd.",
|
|
703
|
+
"type": "string",
|
|
704
|
+
"description": "The registered name of the party within the identifier scheme."
|
|
705
|
+
},
|
|
706
|
+
"registeredId": {
|
|
707
|
+
"example": 90664869327,
|
|
708
|
+
"type": "string",
|
|
709
|
+
"description": "The registration number (alphanumeric) of the Party within the register. Unique within the register."
|
|
710
|
+
},
|
|
711
|
+
"description": {
|
|
712
|
+
"example": "A leading electric energy storage company",
|
|
713
|
+
"type": "string",
|
|
714
|
+
"description": "An optional short description of the party."
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
"required": ["id", "name"],
|
|
718
|
+
"description": "The person or organisations that performed this assessment (if different to the issuer of the parent attestation)"
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
"description": "A specific assessment about the product or facility against a specific specification. Eg the carbon intensity of a given product or batch.",
|
|
722
|
+
"required": ["id", "conformance", "conformityTopic"]
|
|
723
|
+
},
|
|
724
|
+
"Standard": {
|
|
725
|
+
"type": "object",
|
|
726
|
+
"additionalProperties": false,
|
|
727
|
+
"properties": {
|
|
728
|
+
"type": {
|
|
729
|
+
"type": "array",
|
|
730
|
+
"readOnly": true,
|
|
731
|
+
"default": ["Standard"],
|
|
732
|
+
"items": {
|
|
733
|
+
"type": "string"
|
|
734
|
+
},
|
|
735
|
+
"allOf": [
|
|
736
|
+
{
|
|
737
|
+
"contains": {
|
|
738
|
+
"const": "Standard",
|
|
739
|
+
"minContains": 1
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
]
|
|
743
|
+
},
|
|
744
|
+
"id": {
|
|
745
|
+
"example": "https://www.globalbattery.org/media/publications/gba-rulebook-v2.0-master.pdf",
|
|
746
|
+
"type": "string",
|
|
747
|
+
"format": "uri",
|
|
748
|
+
"description": "A unique identifier for the standard (eg https://www.iso.org/standard/60857.html)."
|
|
749
|
+
},
|
|
750
|
+
"name": {
|
|
751
|
+
"example": "GBA Battery Passport Greenhouse Gas Rulebook - V.2.0",
|
|
752
|
+
"type": "string",
|
|
753
|
+
"description": "The name of the standard"
|
|
754
|
+
},
|
|
755
|
+
"issuingParty": {
|
|
756
|
+
"type": "object",
|
|
757
|
+
"properties": {
|
|
758
|
+
"id": {
|
|
759
|
+
"example": "https://abr.business.gov.au/ABN/View?abn=90664869327",
|
|
760
|
+
"type": "string",
|
|
761
|
+
"format": "uri",
|
|
762
|
+
"description": "The globally unique ID of the party as a URI, ideally as a resolvable ID. "
|
|
763
|
+
},
|
|
764
|
+
"name": {
|
|
765
|
+
"example": "Sample Company Pty Ltd.",
|
|
766
|
+
"type": "string",
|
|
767
|
+
"description": "The registered name of the party within the identifier scheme."
|
|
768
|
+
},
|
|
769
|
+
"registeredId": {
|
|
770
|
+
"example": 90664869327,
|
|
771
|
+
"type": "string",
|
|
772
|
+
"description": "The registration number (alphanumeric) of the Party within the register. Unique within the register."
|
|
773
|
+
}
|
|
774
|
+
},
|
|
775
|
+
"required": ["id", "name"],
|
|
776
|
+
"description": "The party that issued the standard "
|
|
777
|
+
},
|
|
778
|
+
"issueDate": {
|
|
779
|
+
"example": "2023-12-05",
|
|
780
|
+
"type": "string",
|
|
781
|
+
"format": "date",
|
|
782
|
+
"description": "The date when the standard was issued."
|
|
783
|
+
}
|
|
784
|
+
},
|
|
785
|
+
"description": "A standard (eg ISO 14000) that specifies the criteria for conformance.",
|
|
786
|
+
"required": ["issuingParty"]
|
|
787
|
+
},
|
|
788
|
+
"Regulation": {
|
|
789
|
+
"type": "object",
|
|
790
|
+
"additionalProperties": false,
|
|
791
|
+
"properties": {
|
|
792
|
+
"type": {
|
|
793
|
+
"type": "array",
|
|
794
|
+
"readOnly": true,
|
|
795
|
+
"default": ["Regulation"],
|
|
796
|
+
"items": {
|
|
797
|
+
"type": "string"
|
|
798
|
+
},
|
|
799
|
+
"allOf": [
|
|
800
|
+
{
|
|
801
|
+
"contains": {
|
|
802
|
+
"const": "Regulation",
|
|
803
|
+
"minContains": 1
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
]
|
|
807
|
+
},
|
|
808
|
+
"id": {
|
|
809
|
+
"example": "https://www.legislation.gov.au/F2008L02309/latest/versions",
|
|
810
|
+
"type": "string",
|
|
811
|
+
"format": "uri",
|
|
812
|
+
"description": "The globally unique identifier of this regulation. "
|
|
813
|
+
},
|
|
814
|
+
"name": {
|
|
815
|
+
"example": "NNational Greenhouse and Energy Reporting (Measurement) Determination",
|
|
816
|
+
"type": "string",
|
|
817
|
+
"description": "The name of the regulation or act."
|
|
818
|
+
},
|
|
819
|
+
"jurisdictionCountry": {
|
|
820
|
+
"type": "string",
|
|
821
|
+
"x-external-enumeration": "https://vocabulary.uncefact.org/CountryId#",
|
|
822
|
+
"description": "The legal jurisdiction (country) under which the regulation is issued.\n\n This is an enumerated value, but the list of valid values are too big, or change too often to include here. You can access the list of allowable values at this URL: https://vocabulary.uncefact.org/CountryId#\n "
|
|
823
|
+
},
|
|
824
|
+
"administeredBy": {
|
|
825
|
+
"type": "object",
|
|
826
|
+
"properties": {
|
|
827
|
+
"id": {
|
|
828
|
+
"example": "https://abr.business.gov.au/ABN/View?abn=90664869327",
|
|
829
|
+
"type": "string",
|
|
830
|
+
"format": "uri",
|
|
831
|
+
"description": "The globally unique ID of the party as a URI, ideally as a resolvable ID. "
|
|
832
|
+
},
|
|
833
|
+
"name": {
|
|
834
|
+
"example": "Sample Company Pty Ltd.",
|
|
835
|
+
"type": "string",
|
|
836
|
+
"description": "The registered name of the party within the identifier scheme."
|
|
837
|
+
},
|
|
838
|
+
"registeredId": {
|
|
839
|
+
"example": 90664869327,
|
|
840
|
+
"type": "string",
|
|
841
|
+
"description": "The registration number (alphanumeric) of the Party within the register. Unique within the register."
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
"required": ["id", "name"],
|
|
845
|
+
"description": "the issuing body of the regulation. For example Australian Government Department of Climate Change, Energy, the Environment and Water"
|
|
846
|
+
},
|
|
847
|
+
"effectiveDate": {
|
|
848
|
+
"example": "2024-03-20",
|
|
849
|
+
"type": "string",
|
|
850
|
+
"format": "date",
|
|
851
|
+
"description": "the date at which the regulation came into effect."
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
"description": "A regulation (eg EU deforestation regulation) that defines the criteria for assessment.",
|
|
855
|
+
"required": ["administeredBy"]
|
|
856
|
+
},
|
|
857
|
+
"Criterion": {
|
|
858
|
+
"type": "object",
|
|
859
|
+
"additionalProperties": false,
|
|
860
|
+
"properties": {
|
|
861
|
+
"type": {
|
|
862
|
+
"type": "array",
|
|
863
|
+
"readOnly": true,
|
|
864
|
+
"default": ["Criterion"],
|
|
865
|
+
"items": {
|
|
866
|
+
"type": "string"
|
|
867
|
+
},
|
|
868
|
+
"allOf": [
|
|
869
|
+
{
|
|
870
|
+
"contains": {
|
|
871
|
+
"const": "Criterion",
|
|
872
|
+
"minContains": 1
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
]
|
|
876
|
+
},
|
|
877
|
+
"id": {
|
|
878
|
+
"example": "https://www.globalbattery.org/media/publications/gba-rulebook-v2.0-master.pdf#BatteryAssembly",
|
|
879
|
+
"type": "string",
|
|
880
|
+
"format": "uri",
|
|
881
|
+
"description": "A unique identifier for the criterion within the scheme, standard or regulation. For example CO2 emissions calculations for liquid fuel combustion."
|
|
882
|
+
},
|
|
883
|
+
"name": {
|
|
884
|
+
"example": "GBA Battery rule book v2.0 battery assembly guidelines.",
|
|
885
|
+
"type": "string",
|
|
886
|
+
"description": "A name that describes this criteria."
|
|
887
|
+
},
|
|
888
|
+
"description": {
|
|
889
|
+
"example": "Battery is designed for easy disassembly and recycling at end-of-life.",
|
|
890
|
+
"type": "string",
|
|
891
|
+
"description": "A full text description of the criterion that clearly specifies how compliance is achieved and measured. "
|
|
892
|
+
},
|
|
893
|
+
"conformityTopic": {
|
|
894
|
+
"type": "string",
|
|
895
|
+
"enum": [
|
|
896
|
+
"environment.energy",
|
|
897
|
+
"environment.emissions",
|
|
898
|
+
"environment.water",
|
|
899
|
+
"environment.waste",
|
|
900
|
+
"environment.deforestation",
|
|
901
|
+
"environment.biodiversity",
|
|
902
|
+
"circularity.content",
|
|
903
|
+
"circularity.design",
|
|
904
|
+
"social.labour",
|
|
905
|
+
"social.rights",
|
|
906
|
+
"social.community",
|
|
907
|
+
"social.safety",
|
|
908
|
+
"governance.ethics",
|
|
909
|
+
"governance.compliance",
|
|
910
|
+
"governance.transparency"
|
|
911
|
+
],
|
|
912
|
+
"example": "environment.energy",
|
|
913
|
+
"description": "A gloabl UN/CEFACT standard sustainability toipic code. "
|
|
914
|
+
},
|
|
915
|
+
"status": {
|
|
916
|
+
"type": "string",
|
|
917
|
+
"enum": ["proposed", "active", "deprecated"],
|
|
918
|
+
"example": "proposed",
|
|
919
|
+
"description": "The lifecycle status of this criterion. "
|
|
920
|
+
},
|
|
921
|
+
"subCriterion": {
|
|
922
|
+
"type": "array",
|
|
923
|
+
"items": {
|
|
924
|
+
"$ref": "#/$defs/Criterion"
|
|
925
|
+
},
|
|
926
|
+
"description": "List of criterion that are subordinate to this criterion in the hierarchy."
|
|
927
|
+
},
|
|
928
|
+
"thresholdValue": {
|
|
929
|
+
"$ref": "#/$defs/Metric",
|
|
930
|
+
"description": "A threshold value that defines the minimum compliance level. "
|
|
931
|
+
},
|
|
932
|
+
"performanceLevel": {
|
|
933
|
+
"example": "\"Category 3 recyclable with 73% recyclability\"",
|
|
934
|
+
"type": "string",
|
|
935
|
+
"description": "A performance category code to group criterion in a given hierarchyLevel according to pareformance"
|
|
936
|
+
},
|
|
937
|
+
"category": {
|
|
938
|
+
"type": "array",
|
|
939
|
+
"items": {
|
|
940
|
+
"$ref": "#/$defs/Classification"
|
|
941
|
+
},
|
|
942
|
+
"description": "A set of classification codes that may be used to categorize the applicability of this criteria - for example industry sector, jurisdiction or commodity type - based on a formal vocabulary."
|
|
943
|
+
},
|
|
944
|
+
"tag": {
|
|
945
|
+
"type": "array",
|
|
946
|
+
"items": {
|
|
947
|
+
"type": "string"
|
|
948
|
+
},
|
|
949
|
+
"description": "A set of tags that can be used by the scheme owner to be able to filter or group criterion in a large vocabulary for specific use cases."
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
"description": "A specific rule or criterion within a standard or regulation. eg a carbon intensity calculation rule within an emissions standard.",
|
|
953
|
+
"required": ["id", "name", "description", "conformityTopic", "status"]
|
|
954
|
+
},
|
|
955
|
+
"Metric": {
|
|
956
|
+
"type": "object",
|
|
957
|
+
"additionalProperties": false,
|
|
958
|
+
"properties": {
|
|
959
|
+
"type": {
|
|
960
|
+
"type": "array",
|
|
961
|
+
"readOnly": true,
|
|
962
|
+
"default": ["Metric"],
|
|
963
|
+
"items": {
|
|
964
|
+
"type": "string"
|
|
965
|
+
},
|
|
966
|
+
"allOf": [
|
|
967
|
+
{
|
|
968
|
+
"contains": {
|
|
969
|
+
"const": "Metric",
|
|
970
|
+
"minContains": 1
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
]
|
|
974
|
+
},
|
|
975
|
+
"metricName": {
|
|
976
|
+
"example": "GHG emissions intensity",
|
|
977
|
+
"type": "string",
|
|
978
|
+
"description": "A human readable name for this metric (for example \"Tensile strength\")"
|
|
979
|
+
},
|
|
980
|
+
"metricValue": {
|
|
981
|
+
"$ref": "#/$defs/Measure",
|
|
982
|
+
"description": "A numeric value and unit of measure for this metric. Could be a measured value or a specified threshold. Eg {\"value\":400, \"unit\":\"MPA\"} as tensile strength of structural steel"
|
|
983
|
+
},
|
|
984
|
+
"score": {
|
|
985
|
+
"example": "BB",
|
|
986
|
+
"type": "string",
|
|
987
|
+
"description": "A score or rank associated with this measured metric."
|
|
988
|
+
},
|
|
989
|
+
"accuracy": {
|
|
990
|
+
"example": 0.05,
|
|
991
|
+
"type": "number",
|
|
992
|
+
"description": "A percentage represented as a numeric between 0 and 1 indicating the rage of accuracy of the claimed value (eg 0.05 means that the actual value is within 5% of the claimed value.)"
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
"description": "A specific measure of performance against the criteria that governs the claim. Expressed as an array of metric (ie unit of measure) / value (ie the actual numeric value) pairs. ",
|
|
996
|
+
"required": ["metricName", "metricValue"]
|
|
997
|
+
},
|
|
998
|
+
"Measure": {
|
|
999
|
+
"type": "object",
|
|
1000
|
+
"additionalProperties": false,
|
|
1001
|
+
"properties": {
|
|
1002
|
+
"type": {
|
|
1003
|
+
"type": "array",
|
|
1004
|
+
"readOnly": true,
|
|
1005
|
+
"default": ["Measure"],
|
|
1006
|
+
"items": {
|
|
1007
|
+
"type": "string"
|
|
1008
|
+
},
|
|
1009
|
+
"allOf": [
|
|
1010
|
+
{
|
|
1011
|
+
"contains": {
|
|
1012
|
+
"const": "Measure",
|
|
1013
|
+
"minContains": 1
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
]
|
|
1017
|
+
},
|
|
1018
|
+
"value": {
|
|
1019
|
+
"example": 10,
|
|
1020
|
+
"type": "number",
|
|
1021
|
+
"description": "The numeric value of the measure"
|
|
1022
|
+
},
|
|
1023
|
+
"unit": {
|
|
1024
|
+
"type": "string",
|
|
1025
|
+
"x-external-enumeration": "https://vocabulary.uncefact.org/UnitMeasureCode#",
|
|
1026
|
+
"description": "Unit of measure drawn from the UNECE Rec20 measure code list.\n\n This is an enumerated value, but the list of valid values are too big, or change too often to include here. You can access the list of allowable values at this URL: https://vocabulary.uncefact.org/UnitMeasureCode#\n "
|
|
1027
|
+
}
|
|
1028
|
+
},
|
|
1029
|
+
"description": "The measure class defines a numeric measured value (eg 10) and a coded unit of measure (eg KG).",
|
|
1030
|
+
"required": ["value", "unit"]
|
|
1031
|
+
},
|
|
1032
|
+
"Classification": {
|
|
1033
|
+
"type": "object",
|
|
1034
|
+
"additionalProperties": false,
|
|
1035
|
+
"properties": {
|
|
1036
|
+
"type": {
|
|
1037
|
+
"type": "array",
|
|
1038
|
+
"readOnly": true,
|
|
1039
|
+
"default": ["Classification"],
|
|
1040
|
+
"items": {
|
|
1041
|
+
"type": "string"
|
|
1042
|
+
},
|
|
1043
|
+
"allOf": [
|
|
1044
|
+
{
|
|
1045
|
+
"contains": {
|
|
1046
|
+
"const": "Classification",
|
|
1047
|
+
"minContains": 1
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
]
|
|
1051
|
+
},
|
|
1052
|
+
"id": {
|
|
1053
|
+
"example": "https://unstats.un.org/unsd/classifications/Econ/cpc/46410",
|
|
1054
|
+
"type": "string",
|
|
1055
|
+
"format": "uri",
|
|
1056
|
+
"description": "The globally unique URI representing the specific classifier value"
|
|
1057
|
+
},
|
|
1058
|
+
"code": {
|
|
1059
|
+
"example": 46410,
|
|
1060
|
+
"type": "string",
|
|
1061
|
+
"description": "classification code within the scheme"
|
|
1062
|
+
},
|
|
1063
|
+
"name": {
|
|
1064
|
+
"example": "Primary cells and primary batteries",
|
|
1065
|
+
"type": "string",
|
|
1066
|
+
"description": "Name of the classification represented by the code"
|
|
1067
|
+
},
|
|
1068
|
+
"schemeID": {
|
|
1069
|
+
"example": "https://unstats.un.org/unsd/classifications/Econ/cpc/",
|
|
1070
|
+
"type": "string",
|
|
1071
|
+
"format": "uri",
|
|
1072
|
+
"description": "Classification scheme ID"
|
|
1073
|
+
},
|
|
1074
|
+
"schemeName": {
|
|
1075
|
+
"example": "UN Central Product Classification (CPC)",
|
|
1076
|
+
"type": "string",
|
|
1077
|
+
"description": "The name of the classification scheme"
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
"description": "A classification scheme and code / name representing a category value for a product, entity, or facility.",
|
|
1081
|
+
"required": ["id", "name"]
|
|
1082
|
+
},
|
|
1083
|
+
"ProductVerification": {
|
|
1084
|
+
"type": "object",
|
|
1085
|
+
"additionalProperties": true,
|
|
1086
|
+
"properties": {
|
|
1087
|
+
"type": {
|
|
1088
|
+
"type": "array",
|
|
1089
|
+
"readOnly": true,
|
|
1090
|
+
"default": ["ProductVerification"],
|
|
1091
|
+
"items": {
|
|
1092
|
+
"type": "string"
|
|
1093
|
+
},
|
|
1094
|
+
"allOf": [
|
|
1095
|
+
{
|
|
1096
|
+
"contains": {
|
|
1097
|
+
"const": "ProductVerification",
|
|
1098
|
+
"minContains": 1
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1101
|
+
]
|
|
1102
|
+
},
|
|
1103
|
+
"product": {
|
|
1104
|
+
"type": "object",
|
|
1105
|
+
"properties": {
|
|
1106
|
+
"id": {
|
|
1107
|
+
"example": "https://id.gs1.org/01/09520123456788/21/12345",
|
|
1108
|
+
"type": "string",
|
|
1109
|
+
"format": "uri",
|
|
1110
|
+
"description": "The globally unique ID of the product as a URI. Ideally as a resolvable URL according to ISO 18975. "
|
|
1111
|
+
},
|
|
1112
|
+
"name": {
|
|
1113
|
+
"example": "EV battery 300Ah.",
|
|
1114
|
+
"type": "string",
|
|
1115
|
+
"description": "The registered name of the product within the identifier scheme. "
|
|
1116
|
+
},
|
|
1117
|
+
"registeredId": {
|
|
1118
|
+
"example": "09520123456788.21.12345",
|
|
1119
|
+
"type": "string",
|
|
1120
|
+
"description": "The registration number (alphanumeric) of the entity within the register. Unique within the register."
|
|
1121
|
+
},
|
|
1122
|
+
"serialNumber": {
|
|
1123
|
+
"example": 12345678,
|
|
1124
|
+
"type": "string",
|
|
1125
|
+
"description": "A number or code representing a specific serialised item of the product. Unique within product class."
|
|
1126
|
+
},
|
|
1127
|
+
"batchNumber": {
|
|
1128
|
+
"example": 6789,
|
|
1129
|
+
"type": "string",
|
|
1130
|
+
"description": "Identifier of the specific production batch of the product. Unique within the product class."
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
"required": ["id", "name"],
|
|
1134
|
+
"description": "The ProductInformation class encapsulates detailed information regarding a specific product, including its identification details, manufacturer, and other pertinent details."
|
|
1135
|
+
},
|
|
1136
|
+
"IDverifiedByCAB": {
|
|
1137
|
+
"example": true,
|
|
1138
|
+
"type": "boolean",
|
|
1139
|
+
"description": "Indicates whether the conformity assessment body has verified the identity product that is the subject of the assessment."
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
"description": "The product which is the subject of this conformity assessment"
|
|
1143
|
+
},
|
|
1144
|
+
"FacilityVerification": {
|
|
1145
|
+
"type": "object",
|
|
1146
|
+
"additionalProperties": true,
|
|
1147
|
+
"properties": {
|
|
1148
|
+
"type": {
|
|
1149
|
+
"type": "array",
|
|
1150
|
+
"readOnly": true,
|
|
1151
|
+
"default": ["FacilityVerification"],
|
|
1152
|
+
"items": {
|
|
1153
|
+
"type": "string"
|
|
1154
|
+
},
|
|
1155
|
+
"allOf": [
|
|
1156
|
+
{
|
|
1157
|
+
"contains": {
|
|
1158
|
+
"const": "FacilityVerification",
|
|
1159
|
+
"minContains": 1
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
]
|
|
1163
|
+
},
|
|
1164
|
+
"facility": {
|
|
1165
|
+
"type": "object",
|
|
1166
|
+
"properties": {
|
|
1167
|
+
"id": {
|
|
1168
|
+
"example": "https://sample-facility-register.com/1234567",
|
|
1169
|
+
"type": "string",
|
|
1170
|
+
"format": "uri",
|
|
1171
|
+
"description": "The globally unique ID of the facility as URI, ideally as a resolvable URL."
|
|
1172
|
+
},
|
|
1173
|
+
"name": {
|
|
1174
|
+
"example": "Greenacres battery factory",
|
|
1175
|
+
"type": "string",
|
|
1176
|
+
"description": "The registered name of the facility within the identifier scheme. "
|
|
1177
|
+
},
|
|
1178
|
+
"registeredId": {
|
|
1179
|
+
"example": 1234567,
|
|
1180
|
+
"type": "string",
|
|
1181
|
+
"description": "The registration number (alphanumeric) of the facility within the identifier scheme. Unique within the register."
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
"required": ["id", "name"],
|
|
1185
|
+
"description": "The physical site (eg farm or factory) where the product or materials was produced."
|
|
1186
|
+
},
|
|
1187
|
+
"IDverifiedByCAB": {
|
|
1188
|
+
"example": true,
|
|
1189
|
+
"type": "boolean",
|
|
1190
|
+
"description": "Indicates whether the conformity assessment body has verified the identity of the facility which is the subject of the assessment."
|
|
1191
|
+
}
|
|
1192
|
+
},
|
|
1193
|
+
"description": "The facility which is the subject of this conformity assessment"
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
}
|