@uncefact/untp-utils 0.2.0 → 0.4.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 +40 -12
- 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 +7 -2
- package/build/artefacts/detect-version-from-context.js +17 -6
- package/build/artefacts/detect-version-from-context.js.map +1 -1
- package/build/artefacts/detect-version-from-context.test.js +59 -0
- package/build/artefacts/detect-version-from-context.test.js.map +1 -1
- package/build/artefacts/urls.d.ts +8 -1
- package/build/artefacts/urls.js +17 -5
- package/build/artefacts/urls.js.map +1 -1
- package/build/artefacts/urls.test.js +63 -1
- package/build/artefacts/urls.test.js.map +1 -1
- 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 +29 -0
- package/build/bundle/public.js +60 -0
- package/build/bundle/public.js.map +1 -0
- package/build/bundle/public.test.d.ts +1 -0
- package/build/bundle/public.test.js +41 -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/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 +11 -4
- package/build/common/as-non-empty-string.js +15 -5
- package/build/common/as-non-empty-string.js.map +1 -1
- package/build/common/as-non-empty-string.test.js +7 -2
- package/build/common/as-non-empty-string.test.js.map +1 -1
- package/build/common/canonical-json.d.ts +10 -0
- package/build/common/canonical-json.js +29 -0
- package/build/common/canonical-json.js.map +1 -0
- package/build/common/canonical-json.test.d.ts +1 -0
- package/build/common/canonical-json.test.js +20 -0
- package/build/common/canonical-json.test.js.map +1 -0
- package/build/common/index.d.ts +5 -0
- package/build/common/index.js +6 -0
- package/build/common/index.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 +4 -0
- package/build/conformity-vocabulary/codes.js +4 -0
- package/build/conformity-vocabulary/codes.js.map +1 -1
- package/build/conformity-vocabulary/parse-conformity-scheme.test.js +150 -0
- package/build/conformity-vocabulary/parse-conformity-scheme.test.js.map +1 -1
- package/build/conformity-vocabulary/parsers/v0-7-0.parser.js +225 -0
- package/build/conformity-vocabulary/parsers/v0-7-0.parser.js.map +1 -1
- package/build/conformity-vocabulary/types.d.ts +69 -15
- package/build/conformity-vocabulary/validate-conformity-claim.d.ts +17 -11
- package/build/conformity-vocabulary/validate-conformity-claim.js +118 -13
- package/build/conformity-vocabulary/validate-conformity-claim.js.map +1 -1
- package/build/conformity-vocabulary/validate-conformity-claim.test.js +265 -0
- package/build/conformity-vocabulary/validate-conformity-claim.test.js.map +1 -1
- package/build/loaders/index.d.ts +2 -0
- package/build/loaders/index.js +1 -0
- package/build/loaders/index.js.map +1 -1
- package/build/loaders/jsonld-document-loader.d.ts +7 -5
- package/build/loaders/jsonld-document-loader.js +11 -2
- package/build/loaders/jsonld-document-loader.js.map +1 -1
- package/build/loaders/jsonld-document-loader.test.js +41 -1
- package/build/loaders/jsonld-document-loader.test.js.map +1 -1
- package/build/loaders/schema-loader.d.ts +13 -3
- package/build/loaders/schema-loader.js +24 -8
- package/build/loaders/schema-loader.js.map +1 -1
- package/build/loaders/schema-loader.test.js +56 -1
- package/build/loaders/schema-loader.test.js.map +1 -1
- package/build/node/errors.d.ts +9 -3
- package/build/node/errors.js +9 -3
- package/build/node/errors.js.map +1 -1
- package/build/node/index.d.ts +1 -1
- package/build/node/index.js +1 -1
- package/build/node/index.js.map +1 -1
- package/build/node/is-private-ip.d.ts +8 -4
- 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 +77 -12
- package/build/node/is-private-ip.js.map +1 -1
- package/build/node/is-private-ip.test.js +28 -0
- package/build/node/is-private-ip.test.js.map +1 -1
- package/build/node/validate-public-url.d.ts +43 -11
- package/build/node/validate-public-url.js +68 -34
- package/build/node/validate-public-url.js.map +1 -1
- package/build/node/validate-public-url.test.js +161 -14
- package/build/node/validate-public-url.test.js.map +1 -1
- package/build/resolvers/errors.d.ts +36 -6
- package/build/resolvers/errors.js +41 -7
- package/build/resolvers/errors.js.map +1 -1
- package/build/resolvers/resolve-document-if-changed.test.js +7 -0
- package/build/resolvers/resolve-document-if-changed.test.js.map +1 -1
- package/build/resolvers/resolve-document.d.ts +29 -9
- 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 +129 -49
- package/build/resolvers/resolve-document.js.map +1 -1
- package/build/resolvers/resolve-document.test.js +462 -12
- package/build/resolvers/resolve-document.test.js.map +1 -1
- package/build/resolvers/resolve-json-document.d.ts +11 -8
- package/build/resolvers/resolve-json-document.js +7 -6
- package/build/resolvers/resolve-json-document.js.map +1 -1
- package/build/resolvers/resolve-json-document.test.js +21 -4
- package/build/resolvers/resolve-json-document.test.js.map +1 -1
- package/build/validation/describe-jsonld-failure.d.ts +48 -8
- package/build/validation/describe-jsonld-failure.js +94 -27
- package/build/validation/describe-jsonld-failure.js.map +1 -1
- package/build/validation/describe-jsonld-failure.test.js +98 -13
- package/build/validation/describe-jsonld-failure.test.js.map +1 -1
- package/build/validation/index.d.ts +3 -2
- package/build/validation/index.js +2 -2
- package/build/validation/index.js.map +1 -1
- package/build/validation/validate-jsonld.d.ts +29 -3
- package/build/validation/validate-jsonld.js +49 -22
- package/build/validation/validate-jsonld.js.map +1 -1
- package/build/validation/validate-jsonld.test.js +62 -5
- package/build/validation/validate-jsonld.test.js.map +1 -1
- package/package.json +23 -3
|
@@ -0,0 +1,443 @@
|
|
|
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": ["DigitalIdentityAnchor", "VerifiableCredential"],
|
|
10
|
+
"items": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"allOf": [
|
|
14
|
+
{
|
|
15
|
+
"contains": {
|
|
16
|
+
"const": "DigitalIdentityAnchor",
|
|
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://vocabulary.uncefact.org/untp/0.7.0/context/"],
|
|
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://vocabulary.uncefact.org/untp/0.7.0/context/",
|
|
43
|
+
"type": "string"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"default": ["https://www.w3.org/ns/credentials/v2", "https://vocabulary.uncefact.org/untp/0.7.0/context/"],
|
|
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 this verifiable credential."
|
|
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
|
+
"example": "2024-03-15T12:00:00Z",
|
|
62
|
+
"type": "string",
|
|
63
|
+
"format": "date-time",
|
|
64
|
+
"description": "The date and time from which the credential is valid."
|
|
65
|
+
},
|
|
66
|
+
"validUntil": {
|
|
67
|
+
"example": "2034-03-15T12:00:00Z",
|
|
68
|
+
"type": "string",
|
|
69
|
+
"format": "date-time",
|
|
70
|
+
"description": "The expiry date (if applicable) of this verifiable credential."
|
|
71
|
+
},
|
|
72
|
+
"name": {
|
|
73
|
+
"example": "Some name",
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "Name of this verifiable credential instance (eg the title of a digital product passport, facility record, lifecycle event, or conformity credential)"
|
|
76
|
+
},
|
|
77
|
+
"credentialStatus": {
|
|
78
|
+
"$ref": "#/$defs/BitstringStatusListEntry",
|
|
79
|
+
"description": "A W3C VCDM2.0 compliant object containing credential status information."
|
|
80
|
+
},
|
|
81
|
+
"renderMethod": {
|
|
82
|
+
"type": "array",
|
|
83
|
+
"items": {
|
|
84
|
+
"$ref": "#/$defs/RenderTemplate2024"
|
|
85
|
+
},
|
|
86
|
+
"description": "Human rendering information for this credential. An array of render methods (eg RenderTemplate2024) that may be used to display the credential."
|
|
87
|
+
},
|
|
88
|
+
"credentialSubject": {
|
|
89
|
+
"$ref": "#/$defs/RegisteredIdentity",
|
|
90
|
+
"description": "The registered identity from the authoritative register that is the subject of this credential"
|
|
91
|
+
},
|
|
92
|
+
"issuingSoftware": {
|
|
93
|
+
"$ref": "#/$defs/IssuingSoftware",
|
|
94
|
+
"description": "Optional metadata identifying the software product (and its vendor) that issued this credential. Useful for vendor traceability and conformity testing. Issuers MAY omit this property."
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"description": "The Digital Identity Anchor (DIA) is a very simple credential that is issued by a trusted authority and asserts an equivalence between a member identity as known to the authority (eg a VAT number) and one or more decentralised identifiers (DIDs) held by the member. ",
|
|
98
|
+
"required": ["@context", "id", "issuer", "validFrom", "name", "credentialSubject"],
|
|
99
|
+
"$defs": {
|
|
100
|
+
"CredentialIssuer": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"additionalProperties": true,
|
|
103
|
+
"properties": {
|
|
104
|
+
"type": {
|
|
105
|
+
"type": "array",
|
|
106
|
+
"readOnly": true,
|
|
107
|
+
"default": ["CredentialIssuer"],
|
|
108
|
+
"items": {
|
|
109
|
+
"type": "string"
|
|
110
|
+
},
|
|
111
|
+
"allOf": [
|
|
112
|
+
{
|
|
113
|
+
"contains": {
|
|
114
|
+
"const": "CredentialIssuer",
|
|
115
|
+
"minContains": 1
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
"id": {
|
|
121
|
+
"example": "did:web:identifiers.example-company.com:12345",
|
|
122
|
+
"type": "string",
|
|
123
|
+
"format": "uri",
|
|
124
|
+
"description": "The W3C DID of the issuer - should be a did:web or did:webvh"
|
|
125
|
+
},
|
|
126
|
+
"name": {
|
|
127
|
+
"example": "Example Company Pty Ltd",
|
|
128
|
+
"type": "string",
|
|
129
|
+
"description": "The name of the issuer person or organisation"
|
|
130
|
+
},
|
|
131
|
+
"issuerAlsoKnownAs": {
|
|
132
|
+
"type": "array",
|
|
133
|
+
"items": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
136
|
+
"type": {
|
|
137
|
+
"type": "array",
|
|
138
|
+
"readOnly": true,
|
|
139
|
+
"default": ["Party"],
|
|
140
|
+
"items": {
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
"allOf": [
|
|
144
|
+
{
|
|
145
|
+
"contains": {
|
|
146
|
+
"const": "Party",
|
|
147
|
+
"minContains": 1
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
"id": {
|
|
153
|
+
"example": "https://sample-business-register.gov/123456789",
|
|
154
|
+
"type": "string",
|
|
155
|
+
"format": "uri",
|
|
156
|
+
"description": "Globally unique identifier of this party. Typically represented as a URI identifierScheme/Identifier URI"
|
|
157
|
+
},
|
|
158
|
+
"name": {
|
|
159
|
+
"example": "Sample Company Ltd",
|
|
160
|
+
"type": "string",
|
|
161
|
+
"description": "Legal registered name of this party."
|
|
162
|
+
},
|
|
163
|
+
"registeredId": {
|
|
164
|
+
"example": 90664869327,
|
|
165
|
+
"type": "string",
|
|
166
|
+
"description": "The registration number (alphanumeric) of the Party within the register. Unique within the register."
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"required": ["id", "name"]
|
|
170
|
+
},
|
|
171
|
+
"description": "An optional list of other registered identifiers for this credential issuer "
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"description": "The issuer party (person or organisation) of a verifiable credential.",
|
|
175
|
+
"required": ["id", "name"]
|
|
176
|
+
},
|
|
177
|
+
"BitstringStatusListEntry": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"additionalProperties": false,
|
|
180
|
+
"properties": {
|
|
181
|
+
"type": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"enum": ["BitstringStatusListEntry"],
|
|
184
|
+
"example": "BitstringStatusListEntry",
|
|
185
|
+
"description": "The type of status list - must be set to \"The type property MUST be BitstringStatusListEntry.\""
|
|
186
|
+
},
|
|
187
|
+
"id": {
|
|
188
|
+
"example": "https://example-cab.com/credentials/status/3#94567\"",
|
|
189
|
+
"type": "string",
|
|
190
|
+
"format": "uri",
|
|
191
|
+
"description": "optional identifier of this status list entry."
|
|
192
|
+
},
|
|
193
|
+
"statusPurpose": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"enum": ["refresh", "revocation", "suspension", "message"],
|
|
196
|
+
"example": "refresh",
|
|
197
|
+
"description": "Status purpose drawn from a standard list but extensible as per w3c bitstring status list specification."
|
|
198
|
+
},
|
|
199
|
+
"statusListIndex": {
|
|
200
|
+
"minimum": 0,
|
|
201
|
+
"example": 94567,
|
|
202
|
+
"type": "integer",
|
|
203
|
+
"description": "\tThe statusListIndex property MUST be an arbitrary size integer greater than or equal to 0, expressed as a string in base 10. The value identifies the position of the status of the verifiable credential."
|
|
204
|
+
},
|
|
205
|
+
"statusListCredential": {
|
|
206
|
+
"example": "https://example-cab.com/credentials/status/4",
|
|
207
|
+
"type": "string",
|
|
208
|
+
"format": "uri",
|
|
209
|
+
"description": "The statusListCredential property MUST be a URL to a verifiable credential. When the URL is dereferenced, the resulting verifiable credential MUST have type property that includes the BitstringStatusListCredential value."
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"description": "A privacy-preserving, space-efficient, and high-performance mechanism for publishing status information such as suspension or revocation of Verifiable Credentials through use of bitstrings. See https://www.w3.org/TR/vc-bitstring-status-list/ for full details.",
|
|
213
|
+
"required": ["type", "statusPurpose", "statusListIndex", "statusListCredential"]
|
|
214
|
+
},
|
|
215
|
+
"RenderTemplate2024": {
|
|
216
|
+
"type": "object",
|
|
217
|
+
"additionalProperties": false,
|
|
218
|
+
"properties": {
|
|
219
|
+
"type": {
|
|
220
|
+
"type": "array",
|
|
221
|
+
"readOnly": true,
|
|
222
|
+
"default": ["RenderTemplate2024"],
|
|
223
|
+
"items": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
},
|
|
226
|
+
"allOf": [
|
|
227
|
+
{
|
|
228
|
+
"contains": {
|
|
229
|
+
"const": "RenderTemplate2024",
|
|
230
|
+
"minContains": 1
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
"name": {
|
|
236
|
+
"type": "string",
|
|
237
|
+
"description": "Human facing display name for selection"
|
|
238
|
+
},
|
|
239
|
+
"mediaQuery": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"description": "Media query as defined in https://www.w3.org/TR/mediaqueries-4/"
|
|
242
|
+
},
|
|
243
|
+
"template": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"description": "An inline template field for use cases where remote retrieval of a render method is suboptimal"
|
|
246
|
+
},
|
|
247
|
+
"url": {
|
|
248
|
+
"type": "string",
|
|
249
|
+
"format": "uri",
|
|
250
|
+
"description": "URL for remotely hosted template"
|
|
251
|
+
},
|
|
252
|
+
"mediaType": {
|
|
253
|
+
"type": "string",
|
|
254
|
+
"description": "media type of the rendered output (eg text/html)"
|
|
255
|
+
},
|
|
256
|
+
"digestMultibase": {
|
|
257
|
+
"type": "string",
|
|
258
|
+
"description": "Used for resource integrity and/or validation of the inline `template`"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"description": "A single template format focused render method where the content/media type decision becomes secondary (and is expressed separately).See https://github.com/w3c-ccg/vc-render-method/issues/9"
|
|
262
|
+
},
|
|
263
|
+
"IssuingSoftware": {
|
|
264
|
+
"type": "object",
|
|
265
|
+
"additionalProperties": false,
|
|
266
|
+
"properties": {
|
|
267
|
+
"id": {
|
|
268
|
+
"example": "https://yourdomain.com/.well-known/untp/software/yourproduct/2026.04.1",
|
|
269
|
+
"type": "string",
|
|
270
|
+
"format": "uri",
|
|
271
|
+
"description": "A resolvable identifier for the specific version of the software product that issued this credential."
|
|
272
|
+
},
|
|
273
|
+
"name": {
|
|
274
|
+
"example": "Your Product Name",
|
|
275
|
+
"type": "string",
|
|
276
|
+
"description": "The name of the software product that issued this credential."
|
|
277
|
+
},
|
|
278
|
+
"version": {
|
|
279
|
+
"example": "2026.04.1",
|
|
280
|
+
"type": "string",
|
|
281
|
+
"description": "The version of the software product that issued this credential."
|
|
282
|
+
},
|
|
283
|
+
"vendor": {
|
|
284
|
+
"type": "object",
|
|
285
|
+
"additionalProperties": false,
|
|
286
|
+
"properties": {
|
|
287
|
+
"id": {
|
|
288
|
+
"example": "did:web:yourdomain.com",
|
|
289
|
+
"type": "string",
|
|
290
|
+
"format": "uri",
|
|
291
|
+
"description": "The decentralised identifier (DID) or other resolvable identifier of the software vendor."
|
|
292
|
+
},
|
|
293
|
+
"name": {
|
|
294
|
+
"example": "Your Vendor Name",
|
|
295
|
+
"type": "string",
|
|
296
|
+
"description": "The name of the software vendor."
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
"required": ["id", "name"],
|
|
300
|
+
"description": "The vendor of the software product that issued this credential."
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"required": ["id", "name", "version", "vendor"],
|
|
304
|
+
"description": "Optional metadata identifying the software product (and its vendor) that issued the parent credential. When present, all listed sub-properties MUST be populated; when absent, the credential is still valid (verifiers MUST treat the property as optional)."
|
|
305
|
+
},
|
|
306
|
+
"RegisteredIdentity": {
|
|
307
|
+
"type": "object",
|
|
308
|
+
"additionalProperties": true,
|
|
309
|
+
"properties": {
|
|
310
|
+
"type": {
|
|
311
|
+
"type": "array",
|
|
312
|
+
"readOnly": true,
|
|
313
|
+
"default": ["RegisteredIdentity"],
|
|
314
|
+
"items": {
|
|
315
|
+
"type": "string"
|
|
316
|
+
},
|
|
317
|
+
"allOf": [
|
|
318
|
+
{
|
|
319
|
+
"contains": {
|
|
320
|
+
"const": "RegisteredIdentity",
|
|
321
|
+
"minContains": 1
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
]
|
|
325
|
+
},
|
|
326
|
+
"id": {
|
|
327
|
+
"example": "did:web:samplecompany.com/123456789",
|
|
328
|
+
"type": "string",
|
|
329
|
+
"format": "uri",
|
|
330
|
+
"description": "The DID that is controlled by the registered member and is linked to the registeredID through this Identity Anchor credential"
|
|
331
|
+
},
|
|
332
|
+
"registeredName": {
|
|
333
|
+
"example": "Sample business Ltd",
|
|
334
|
+
"type": "string",
|
|
335
|
+
"description": "The registered name of the entity within the identifier scheme. Examples: product - EV battery 300Ah, Party - Sample Company Pty Ltd, Facility - Green Acres battery factory "
|
|
336
|
+
},
|
|
337
|
+
"registeredId": {
|
|
338
|
+
"example": 123456789,
|
|
339
|
+
"type": "string",
|
|
340
|
+
"description": "The registration number (alphanumeric) of the entity within the register. Unique within the register."
|
|
341
|
+
},
|
|
342
|
+
"registeredDate": {
|
|
343
|
+
"type": "string",
|
|
344
|
+
"format": "date",
|
|
345
|
+
"description": "The date on which this identity was first registered with the registrar."
|
|
346
|
+
},
|
|
347
|
+
"publicInformation": {
|
|
348
|
+
"type": "string",
|
|
349
|
+
"format": "uri",
|
|
350
|
+
"description": "A link to further information about the registered entity on the authoritative registrar site."
|
|
351
|
+
},
|
|
352
|
+
"idScheme": {
|
|
353
|
+
"$ref": "#/$defs/IdentifierScheme",
|
|
354
|
+
"description": "The identifier scheme operated by the registrar"
|
|
355
|
+
},
|
|
356
|
+
"registrar": {
|
|
357
|
+
"type": "object",
|
|
358
|
+
"properties": {
|
|
359
|
+
"type": {
|
|
360
|
+
"type": "array",
|
|
361
|
+
"readOnly": true,
|
|
362
|
+
"default": ["Party"],
|
|
363
|
+
"items": {
|
|
364
|
+
"type": "string"
|
|
365
|
+
},
|
|
366
|
+
"allOf": [
|
|
367
|
+
{
|
|
368
|
+
"contains": {
|
|
369
|
+
"const": "Party",
|
|
370
|
+
"minContains": 1
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
"id": {
|
|
376
|
+
"example": "https://sample-business-register.gov/123456789",
|
|
377
|
+
"type": "string",
|
|
378
|
+
"format": "uri",
|
|
379
|
+
"description": "Globally unique identifier of this party. Typically represented as a URI identifierScheme/Identifier URI"
|
|
380
|
+
},
|
|
381
|
+
"name": {
|
|
382
|
+
"example": "Sample Company Ltd",
|
|
383
|
+
"type": "string",
|
|
384
|
+
"description": "Legal registered name of this party."
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"required": ["id", "name"],
|
|
388
|
+
"description": "The registrar party that operates the register."
|
|
389
|
+
},
|
|
390
|
+
"registerType": {
|
|
391
|
+
"type": "string",
|
|
392
|
+
"enum": ["product", "facility", "business", "trademark", "land", "accreditation"],
|
|
393
|
+
"example": "product",
|
|
394
|
+
"description": "The thematic purpose of the register - organisations, facilities, products, trademarks, etc"
|
|
395
|
+
},
|
|
396
|
+
"registrationScope": {
|
|
397
|
+
"type": "array",
|
|
398
|
+
"items": {
|
|
399
|
+
"type": "string",
|
|
400
|
+
"format": "uri"
|
|
401
|
+
},
|
|
402
|
+
"description": "List of URIs that represent the roles or scopes of membership. For example [\"https://abr.business.gov.au/Help/EntityTypeDescription?Id=19\"]"
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"description": "The identity anchor is a mapping between a registry member identity and one or more decentralised identifiers owned by the member. It may also list a set of membership scopes.",
|
|
406
|
+
"required": ["id", "registeredName", "registeredId", "registeredDate", "idScheme", "registerType"]
|
|
407
|
+
},
|
|
408
|
+
"IdentifierScheme": {
|
|
409
|
+
"type": "object",
|
|
410
|
+
"additionalProperties": false,
|
|
411
|
+
"properties": {
|
|
412
|
+
"type": {
|
|
413
|
+
"type": "array",
|
|
414
|
+
"readOnly": true,
|
|
415
|
+
"default": ["IdentifierScheme"],
|
|
416
|
+
"items": {
|
|
417
|
+
"type": "string"
|
|
418
|
+
},
|
|
419
|
+
"allOf": [
|
|
420
|
+
{
|
|
421
|
+
"contains": {
|
|
422
|
+
"const": "IdentifierScheme",
|
|
423
|
+
"minContains": 1
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
]
|
|
427
|
+
},
|
|
428
|
+
"id": {
|
|
429
|
+
"type": "string",
|
|
430
|
+
"format": "uri",
|
|
431
|
+
"description": "The URI of this identifier scheme"
|
|
432
|
+
},
|
|
433
|
+
"name": {
|
|
434
|
+
"example": "Global Identifier Scheme Name",
|
|
435
|
+
"type": "string",
|
|
436
|
+
"description": "The name of the identifier scheme. "
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
"description": "An identifier registration scheme for products, facilities, or organisations. Typically operated by a state, national or global authority.",
|
|
440
|
+
"required": ["id", "name"]
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|