@twin.org/attestation-models 0.0.3-next.6 → 0.0.3-next.8
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 +1 -1
- package/dist/es/models/IAttestationInformation.js.map +1 -1
- package/dist/es/models/IAttestationJwtProof.js.map +1 -1
- package/dist/es/schemas/AttestationInformation.json +13 -17
- package/dist/es/schemas/AttestationJwtProof.json +5 -8
- package/dist/types/models/IAttestationInformation.d.ts +8 -8
- package/dist/types/models/IAttestationJwtProof.d.ts +1 -1
- package/docs/changelog.md +61 -47
- package/docs/examples.md +12 -1
- package/docs/reference/classes/AttestationDataTypes.md +1 -1
- package/docs/reference/interfaces/IAttestationComponent.md +4 -4
- package/docs/reference/interfaces/IAttestationConnector.md +4 -4
- package/docs/reference/interfaces/IAttestationCreateRequest.md +2 -2
- package/docs/reference/interfaces/IAttestationDestroyRequest.md +1 -1
- package/docs/reference/interfaces/IAttestationGetRequest.md +3 -3
- package/docs/reference/interfaces/IAttestationGetResponse.md +3 -3
- package/docs/reference/interfaces/IAttestationInformation.md +16 -24
- package/docs/reference/interfaces/IAttestationJwtProof.md +3 -4
- package/docs/reference/interfaces/IAttestationTransferRequest.md +2 -2
- package/docs/reference/variables/AttestationContexts.md +6 -6
- package/docs/reference/variables/AttestationTypes.md +2 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAttestationInformation.js","sourceRoot":"","sources":["../../../src/models/IAttestationInformation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { SchemaOrgContexts } from \"@twin.org/standards-schema-org\";\nimport type { AttestationContexts } from \"./attestationContexts.js\";\nimport type { AttestationTypes } from \"./attestationTypes.js\";\n\n/**\n * Interface describing the collated attestation information.\n */\nexport interface IAttestationInformation {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof SchemaOrgContexts.Context,\n\t\ttypeof AttestationContexts.Context,\n\t\ttypeof AttestationContexts.ContextCommon,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AttestationTypes.Information;\n\n\t/**\n\t * The unique identifier of the attestation.\n\t */\n\tid: string;\n\n\t/**\n\t * Created date/time of the attestation in ISO format.\n\t * json-ld namespace:schema\n\t */\n\tdateCreated: string;\n\n\t/**\n\t * Transferred date/time of the attestation in ISO format, can be blank if holder identity is owner.\n\t * json-ld type:schema:Date\n\t */\n\tdateTransferred?: string;\n\n\t/**\n\t * The identity of the owner.\n\t * json-ld type:schema:identifier\n\t */\n\townerIdentity: string;\n\n\t/**\n\t * The identity of the current holder, can be undefined if owner is still the holder.\n\t * json-ld type:schema:identifier\n\t */\n\tholderIdentity?: string;\n\n\t/**\n\t * The data that was attested.\n\t * json-ld namespace:twin-common\n\t */\n\tattestationObject: IJsonLdNodeObject;\n\n\t/**\n\t * The proof for the attested data.\n\t * json-ld namespace:twin-attestation\n\t */\n\tproof?: IJsonLdNodeObject;\n\n\t/**\n\t * Whether the attestation has been verified.\n\t * json-ld namespace:twin-common\n\t */\n\tverified?: boolean;\n\n\t/**\n\t * The verification failure message.\n\t * json-ld type:schema:Text\n\t */\n\tverificationFailure?: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IAttestationInformation.js","sourceRoot":"","sources":["../../../src/models/IAttestationInformation.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { SchemaOrgContexts } from \"@twin.org/standards-schema-org\";\nimport type { AttestationContexts } from \"./attestationContexts.js\";\nimport type { AttestationTypes } from \"./attestationTypes.js\";\n\n/**\n * Interface describing the collated attestation information.\n */\nexport interface IAttestationInformation {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof SchemaOrgContexts.Context,\n\t\ttypeof AttestationContexts.Context,\n\t\ttypeof AttestationContexts.ContextCommon,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AttestationTypes.Information;\n\n\t/**\n\t * The unique identifier of the attestation.\n\t */\n\tid: string;\n\n\t/**\n\t * Created date/time of the attestation in ISO format.\n\t * @json-ld namespace:schema\n\t */\n\tdateCreated: string;\n\n\t/**\n\t * Transferred date/time of the attestation in ISO format, can be blank if holder identity is owner.\n\t * @json-ld type:schema:Date\n\t */\n\tdateTransferred?: string;\n\n\t/**\n\t * The identity of the owner.\n\t * @json-ld type:schema:identifier\n\t */\n\townerIdentity: string;\n\n\t/**\n\t * The identity of the current holder, can be undefined if owner is still the holder.\n\t * @json-ld type:schema:identifier\n\t */\n\tholderIdentity?: string;\n\n\t/**\n\t * The data that was attested.\n\t * @json-ld namespace:twin-common\n\t */\n\tattestationObject: IJsonLdNodeObject;\n\n\t/**\n\t * The proof for the attested data.\n\t * @json-ld namespace:twin-attestation\n\t */\n\tproof?: IJsonLdNodeObject;\n\n\t/**\n\t * Whether the attestation has been verified.\n\t * @json-ld namespace:twin-common\n\t */\n\tverified?: boolean;\n\n\t/**\n\t * The verification failure message.\n\t * @json-ld type:schema:Text\n\t */\n\tverificationFailure?: string;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAttestationJwtProof.js","sourceRoot":"","sources":["../../../src/models/IAttestationJwtProof.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { AttestationContexts } from \"./attestationContexts.js\";\nimport type { AttestationTypes } from \"./attestationTypes.js\";\n\n/**\n * Interface describing an attestation proof.\n */\nexport interface IAttestationJwtProof {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\":\n\t\t| typeof AttestationContexts.Context\n\t\t| [typeof AttestationContexts.Context, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * The type of the proof.\n\t */\n\ttype: typeof AttestationTypes.JwtProof;\n\n\t/**\n\t * The value of the proof.\n\t * json-ld type:schema:Text\n\t */\n\tvalue: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IAttestationJwtProof.js","sourceRoot":"","sources":["../../../src/models/IAttestationJwtProof.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { AttestationContexts } from \"./attestationContexts.js\";\nimport type { AttestationTypes } from \"./attestationTypes.js\";\n\n/**\n * Interface describing an attestation proof.\n */\nexport interface IAttestationJwtProof {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\":\n\t\t| typeof AttestationContexts.Context\n\t\t| [typeof AttestationContexts.Context, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * The type of the proof.\n\t */\n\ttype: typeof AttestationTypes.JwtProof;\n\n\t/**\n\t * The value of the proof.\n\t * @json-ld type:schema:Text\n\t */\n\tvalue: string;\n}\n"]}
|
|
@@ -1,33 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/attestation/AttestationInformation",
|
|
4
|
+
"title": "AttestationInformation",
|
|
4
5
|
"description": "Interface describing the collated attestation information.",
|
|
5
6
|
"type": "object",
|
|
6
7
|
"properties": {
|
|
7
8
|
"@context": {
|
|
8
9
|
"type": "array",
|
|
9
|
-
"minItems": 3,
|
|
10
|
-
"description": "JSON-LD Context.",
|
|
11
10
|
"prefixItems": [
|
|
12
11
|
{
|
|
13
|
-
"type": "string",
|
|
14
12
|
"const": "https://schema.org"
|
|
15
13
|
},
|
|
16
14
|
{
|
|
17
|
-
"type": "string",
|
|
18
15
|
"const": "https://schema.twindev.org/attestation/"
|
|
19
16
|
},
|
|
20
17
|
{
|
|
21
|
-
"type": "string",
|
|
22
18
|
"const": "https://schema.twindev.org/common/"
|
|
23
19
|
}
|
|
24
20
|
],
|
|
25
21
|
"items": {
|
|
26
22
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
27
|
-
}
|
|
23
|
+
},
|
|
24
|
+
"minItems": 3,
|
|
25
|
+
"description": "JSON-LD Context."
|
|
28
26
|
},
|
|
29
27
|
"type": {
|
|
30
|
-
"type": "string",
|
|
31
28
|
"const": "Information",
|
|
32
29
|
"description": "JSON-LD Type."
|
|
33
30
|
},
|
|
@@ -37,35 +34,35 @@
|
|
|
37
34
|
},
|
|
38
35
|
"dateCreated": {
|
|
39
36
|
"type": "string",
|
|
40
|
-
"description": "Created date/time of the attestation in ISO format.
|
|
37
|
+
"description": "Created date/time of the attestation in ISO format."
|
|
41
38
|
},
|
|
42
39
|
"dateTransferred": {
|
|
43
40
|
"type": "string",
|
|
44
|
-
"description": "Transferred date/time of the attestation in ISO format, can be blank if holder identity is owner.
|
|
41
|
+
"description": "Transferred date/time of the attestation in ISO format, can be blank if holder identity is owner."
|
|
45
42
|
},
|
|
46
43
|
"ownerIdentity": {
|
|
47
44
|
"type": "string",
|
|
48
|
-
"description": "The identity of the owner.
|
|
45
|
+
"description": "The identity of the owner."
|
|
49
46
|
},
|
|
50
47
|
"holderIdentity": {
|
|
51
48
|
"type": "string",
|
|
52
|
-
"description": "The identity of the current holder, can be undefined if owner is still the holder.
|
|
49
|
+
"description": "The identity of the current holder, can be undefined if owner is still the holder."
|
|
53
50
|
},
|
|
54
51
|
"attestationObject": {
|
|
55
52
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
|
|
56
|
-
"description": "The data that was attested.
|
|
53
|
+
"description": "The data that was attested."
|
|
57
54
|
},
|
|
58
55
|
"proof": {
|
|
59
56
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
|
|
60
|
-
"description": "The proof for the attested data.
|
|
57
|
+
"description": "The proof for the attested data."
|
|
61
58
|
},
|
|
62
59
|
"verified": {
|
|
63
60
|
"type": "boolean",
|
|
64
|
-
"description": "Whether the attestation has been verified.
|
|
61
|
+
"description": "Whether the attestation has been verified."
|
|
65
62
|
},
|
|
66
63
|
"verificationFailure": {
|
|
67
64
|
"type": "string",
|
|
68
|
-
"description": "The verification failure message.
|
|
65
|
+
"description": "The verification failure message."
|
|
69
66
|
}
|
|
70
67
|
},
|
|
71
68
|
"required": [
|
|
@@ -75,6 +72,5 @@
|
|
|
75
72
|
"dateCreated",
|
|
76
73
|
"ownerIdentity",
|
|
77
74
|
"attestationObject"
|
|
78
|
-
]
|
|
79
|
-
"additionalProperties": false
|
|
75
|
+
]
|
|
80
76
|
}
|
|
@@ -1,45 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/attestation/AttestationJwtProof",
|
|
4
|
+
"title": "AttestationJwtProof",
|
|
4
5
|
"description": "Interface describing an attestation proof.",
|
|
5
6
|
"type": "object",
|
|
6
7
|
"properties": {
|
|
7
8
|
"@context": {
|
|
8
9
|
"anyOf": [
|
|
9
10
|
{
|
|
10
|
-
"type": "string",
|
|
11
11
|
"const": "https://schema.twindev.org/attestation/"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"type": "array",
|
|
15
|
-
"minItems": 1,
|
|
16
15
|
"prefixItems": [
|
|
17
16
|
{
|
|
18
|
-
"type": "string",
|
|
19
17
|
"const": "https://schema.twindev.org/attestation/"
|
|
20
18
|
}
|
|
21
19
|
],
|
|
22
20
|
"items": {
|
|
23
21
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
24
|
-
}
|
|
22
|
+
},
|
|
23
|
+
"minItems": 1
|
|
25
24
|
}
|
|
26
25
|
],
|
|
27
26
|
"description": "JSON-LD Context."
|
|
28
27
|
},
|
|
29
28
|
"type": {
|
|
30
|
-
"type": "string",
|
|
31
29
|
"const": "JwtProof",
|
|
32
30
|
"description": "The type of the proof."
|
|
33
31
|
},
|
|
34
32
|
"value": {
|
|
35
33
|
"type": "string",
|
|
36
|
-
"description": "The value of the proof.
|
|
34
|
+
"description": "The value of the proof."
|
|
37
35
|
}
|
|
38
36
|
},
|
|
39
37
|
"required": [
|
|
40
38
|
"@context",
|
|
41
39
|
"type",
|
|
42
40
|
"value"
|
|
43
|
-
]
|
|
44
|
-
"additionalProperties": false
|
|
41
|
+
]
|
|
45
42
|
}
|
|
@@ -25,42 +25,42 @@ export interface IAttestationInformation {
|
|
|
25
25
|
id: string;
|
|
26
26
|
/**
|
|
27
27
|
* Created date/time of the attestation in ISO format.
|
|
28
|
-
* json-ld namespace:schema
|
|
28
|
+
* @json-ld namespace:schema
|
|
29
29
|
*/
|
|
30
30
|
dateCreated: string;
|
|
31
31
|
/**
|
|
32
32
|
* Transferred date/time of the attestation in ISO format, can be blank if holder identity is owner.
|
|
33
|
-
* json-ld type:schema:Date
|
|
33
|
+
* @json-ld type:schema:Date
|
|
34
34
|
*/
|
|
35
35
|
dateTransferred?: string;
|
|
36
36
|
/**
|
|
37
37
|
* The identity of the owner.
|
|
38
|
-
* json-ld type:schema:identifier
|
|
38
|
+
* @json-ld type:schema:identifier
|
|
39
39
|
*/
|
|
40
40
|
ownerIdentity: string;
|
|
41
41
|
/**
|
|
42
42
|
* The identity of the current holder, can be undefined if owner is still the holder.
|
|
43
|
-
* json-ld type:schema:identifier
|
|
43
|
+
* @json-ld type:schema:identifier
|
|
44
44
|
*/
|
|
45
45
|
holderIdentity?: string;
|
|
46
46
|
/**
|
|
47
47
|
* The data that was attested.
|
|
48
|
-
* json-ld namespace:twin-common
|
|
48
|
+
* @json-ld namespace:twin-common
|
|
49
49
|
*/
|
|
50
50
|
attestationObject: IJsonLdNodeObject;
|
|
51
51
|
/**
|
|
52
52
|
* The proof for the attested data.
|
|
53
|
-
* json-ld namespace:twin-attestation
|
|
53
|
+
* @json-ld namespace:twin-attestation
|
|
54
54
|
*/
|
|
55
55
|
proof?: IJsonLdNodeObject;
|
|
56
56
|
/**
|
|
57
57
|
* Whether the attestation has been verified.
|
|
58
|
-
* json-ld namespace:twin-common
|
|
58
|
+
* @json-ld namespace:twin-common
|
|
59
59
|
*/
|
|
60
60
|
verified?: boolean;
|
|
61
61
|
/**
|
|
62
62
|
* The verification failure message.
|
|
63
|
-
* json-ld type:schema:Text
|
|
63
|
+
* @json-ld type:schema:Text
|
|
64
64
|
*/
|
|
65
65
|
verificationFailure?: string;
|
|
66
66
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -1,135 +1,149 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.0.3-next.
|
|
3
|
+
## [0.0.3-next.8](https://github.com/twinfoundation/twin-attestation/compare/attestation-models-v0.0.3-next.7...attestation-models-v0.0.3-next.8) (2026-04-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Miscellaneous Chores
|
|
7
|
+
|
|
8
|
+
* **attestation-models:** Synchronize repo versions
|
|
9
|
+
|
|
10
|
+
## [0.0.3-next.7](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.3-next.6...attestation-models-v0.0.3-next.7) (2026-02-25)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* update schemas ([c163f36](https://github.com/iotaledger/twin-attestation/commit/c163f3623d54a0e87a97cf5eab25327b9aeac0fe))
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.6](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.3-next.5...attestation-models-v0.0.3-next.6) (2026-02-11)
|
|
4
18
|
|
|
5
19
|
|
|
6
20
|
### Bug Fixes
|
|
7
21
|
|
|
8
|
-
* correct context ordering ([c7cded2](https://github.com/
|
|
22
|
+
* correct context ordering ([c7cded2](https://github.com/iotaledger/twin-attestation/commit/c7cded248662b8b78ff41b19749bc182ff5105c0))
|
|
9
23
|
|
|
10
|
-
## [0.0.3-next.5](https://github.com/
|
|
24
|
+
## [0.0.3-next.5](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.3-next.4...attestation-models-v0.0.3-next.5) (2026-02-11)
|
|
11
25
|
|
|
12
26
|
|
|
13
27
|
### Miscellaneous Chores
|
|
14
28
|
|
|
15
29
|
* **attestation-models:** Synchronize repo versions
|
|
16
30
|
|
|
17
|
-
## [0.0.3-next.4](https://github.com/
|
|
31
|
+
## [0.0.3-next.4](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.3-next.3...attestation-models-v0.0.3-next.4) (2026-02-11)
|
|
18
32
|
|
|
19
33
|
|
|
20
34
|
### Features
|
|
21
35
|
|
|
22
|
-
* add ts-to-jsonld-context tool ([df7edd0](https://github.com/
|
|
23
|
-
* remove unused schemas causing conflict ([#27](https://github.com/
|
|
36
|
+
* add ts-to-jsonld-context tool ([df7edd0](https://github.com/iotaledger/twin-attestation/commit/df7edd0d32cabc2b0f9f6dc7b216f569f739324d))
|
|
37
|
+
* remove unused schemas causing conflict ([#27](https://github.com/iotaledger/twin-attestation/issues/27)) ([9723bc3](https://github.com/iotaledger/twin-attestation/commit/9723bc3757f87ce8a943f5f091a92d258f867892))
|
|
24
38
|
|
|
25
|
-
## [0.0.3-next.3](https://github.com/
|
|
39
|
+
## [0.0.3-next.3](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.3-next.2...attestation-models-v0.0.3-next.3) (2026-01-21)
|
|
26
40
|
|
|
27
41
|
|
|
28
42
|
### Features
|
|
29
43
|
|
|
30
|
-
* context updates ([#25](https://github.com/
|
|
44
|
+
* context updates ([#25](https://github.com/iotaledger/twin-attestation/issues/25)) ([1ea71b2](https://github.com/iotaledger/twin-attestation/commit/1ea71b28d874daef4d0bca594fb5dbf5f2a47571))
|
|
31
45
|
|
|
32
|
-
## [0.0.3-next.2](https://github.com/
|
|
46
|
+
## [0.0.3-next.2](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.3-next.1...attestation-models-v0.0.3-next.2) (2026-01-14)
|
|
33
47
|
|
|
34
48
|
|
|
35
49
|
### Features
|
|
36
50
|
|
|
37
|
-
* update contexts and namespaces ([#23](https://github.com/
|
|
51
|
+
* update contexts and namespaces ([#23](https://github.com/iotaledger/twin-attestation/issues/23)) ([7e7ffb4](https://github.com/iotaledger/twin-attestation/commit/7e7ffb4056bfe296dd3cedcaa7a9bfb91fd830d7))
|
|
38
52
|
|
|
39
|
-
## [0.0.3-next.1](https://github.com/
|
|
53
|
+
## [0.0.3-next.1](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.3-next.0...attestation-models-v0.0.3-next.1) (2025-11-12)
|
|
40
54
|
|
|
41
55
|
|
|
42
56
|
### Features
|
|
43
57
|
|
|
44
|
-
* add context id features ([#21](https://github.com/
|
|
45
|
-
* add validate-locales ([a1f9e13](https://github.com/
|
|
46
|
-
* eslint migration to flat config ([7c768ff](https://github.com/
|
|
47
|
-
* release to production ([aa69a08](https://github.com/
|
|
48
|
-
* release to production ([89ca987](https://github.com/
|
|
49
|
-
* update data type registration with fully qualified names ([5982245](https://github.com/
|
|
50
|
-
* update dependencies ([1d96d2e](https://github.com/
|
|
51
|
-
* update framework core ([02326d4](https://github.com/
|
|
52
|
-
* update ts-to-schema generation ([0f23298](https://github.com/
|
|
53
|
-
* use shared store mechanism ([#5](https://github.com/
|
|
58
|
+
* add context id features ([#21](https://github.com/iotaledger/twin-attestation/issues/21)) ([640deab](https://github.com/iotaledger/twin-attestation/commit/640deabfc00340e619283f94570c5e1ec45e83af))
|
|
59
|
+
* add validate-locales ([a1f9e13](https://github.com/iotaledger/twin-attestation/commit/a1f9e13875a661f612ce16dd9896e7df20c6a7ff))
|
|
60
|
+
* eslint migration to flat config ([7c768ff](https://github.com/iotaledger/twin-attestation/commit/7c768ffae02456d60fd62ba8b4b488c307ceff32))
|
|
61
|
+
* release to production ([aa69a08](https://github.com/iotaledger/twin-attestation/commit/aa69a08fbd3897c8d72b0d32ec730f104ad31b33))
|
|
62
|
+
* release to production ([89ca987](https://github.com/iotaledger/twin-attestation/commit/89ca987963d9090abcfc1b62bc997e2c521944ec))
|
|
63
|
+
* update data type registration with fully qualified names ([5982245](https://github.com/iotaledger/twin-attestation/commit/59822454a027a9c6dfa72ffa9aabb9622b925929))
|
|
64
|
+
* update dependencies ([1d96d2e](https://github.com/iotaledger/twin-attestation/commit/1d96d2ee6e81a30396980f6f5e16e9658710d32d))
|
|
65
|
+
* update framework core ([02326d4](https://github.com/iotaledger/twin-attestation/commit/02326d41238862c13587c19bb3d04c1cb3b606d8))
|
|
66
|
+
* update ts-to-schema generation ([0f23298](https://github.com/iotaledger/twin-attestation/commit/0f23298f6e8accb19c0faaf74220cce02155b48a))
|
|
67
|
+
* use shared store mechanism ([#5](https://github.com/iotaledger/twin-attestation/issues/5)) ([3768cf7](https://github.com/iotaledger/twin-attestation/commit/3768cf7214d30a5429b7b08190539b517d7fafa0))
|
|
54
68
|
|
|
55
|
-
## [0.0.2-next.4](https://github.com/
|
|
69
|
+
## [0.0.2-next.4](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.2-next.3...attestation-models-v0.0.2-next.4) (2025-10-09)
|
|
56
70
|
|
|
57
71
|
|
|
58
72
|
### Features
|
|
59
73
|
|
|
60
|
-
* add validate-locales ([a1f9e13](https://github.com/
|
|
74
|
+
* add validate-locales ([a1f9e13](https://github.com/iotaledger/twin-attestation/commit/a1f9e13875a661f612ce16dd9896e7df20c6a7ff))
|
|
61
75
|
|
|
62
|
-
## [0.0.2-next.3](https://github.com/
|
|
76
|
+
## [0.0.2-next.3](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.2-next.2...attestation-models-v0.0.2-next.3) (2025-09-29)
|
|
63
77
|
|
|
64
78
|
|
|
65
79
|
### Miscellaneous Chores
|
|
66
80
|
|
|
67
81
|
* **attestation-models:** Synchronize repo versions
|
|
68
82
|
|
|
69
|
-
## [0.0.2-next.2](https://github.com/
|
|
83
|
+
## [0.0.2-next.2](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.2-next.1...attestation-models-v0.0.2-next.2) (2025-08-29)
|
|
70
84
|
|
|
71
85
|
|
|
72
86
|
### Features
|
|
73
87
|
|
|
74
|
-
* eslint migration to flat config ([7c768ff](https://github.com/
|
|
88
|
+
* eslint migration to flat config ([7c768ff](https://github.com/iotaledger/twin-attestation/commit/7c768ffae02456d60fd62ba8b4b488c307ceff32))
|
|
75
89
|
|
|
76
|
-
## [0.0.2-next.1](https://github.com/
|
|
90
|
+
## [0.0.2-next.1](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.2-next.0...attestation-models-v0.0.2-next.1) (2025-08-20)
|
|
77
91
|
|
|
78
92
|
|
|
79
93
|
### Features
|
|
80
94
|
|
|
81
|
-
* release to production ([aa69a08](https://github.com/
|
|
82
|
-
* release to production ([89ca987](https://github.com/
|
|
83
|
-
* update data type registration with fully qualified names ([5982245](https://github.com/
|
|
84
|
-
* update dependencies ([1d96d2e](https://github.com/
|
|
85
|
-
* update framework core ([02326d4](https://github.com/
|
|
86
|
-
* update ts-to-schema generation ([0f23298](https://github.com/
|
|
87
|
-
* use shared store mechanism ([#5](https://github.com/
|
|
95
|
+
* release to production ([aa69a08](https://github.com/iotaledger/twin-attestation/commit/aa69a08fbd3897c8d72b0d32ec730f104ad31b33))
|
|
96
|
+
* release to production ([89ca987](https://github.com/iotaledger/twin-attestation/commit/89ca987963d9090abcfc1b62bc997e2c521944ec))
|
|
97
|
+
* update data type registration with fully qualified names ([5982245](https://github.com/iotaledger/twin-attestation/commit/59822454a027a9c6dfa72ffa9aabb9622b925929))
|
|
98
|
+
* update dependencies ([1d96d2e](https://github.com/iotaledger/twin-attestation/commit/1d96d2ee6e81a30396980f6f5e16e9658710d32d))
|
|
99
|
+
* update framework core ([02326d4](https://github.com/iotaledger/twin-attestation/commit/02326d41238862c13587c19bb3d04c1cb3b606d8))
|
|
100
|
+
* update ts-to-schema generation ([0f23298](https://github.com/iotaledger/twin-attestation/commit/0f23298f6e8accb19c0faaf74220cce02155b48a))
|
|
101
|
+
* use shared store mechanism ([#5](https://github.com/iotaledger/twin-attestation/issues/5)) ([3768cf7](https://github.com/iotaledger/twin-attestation/commit/3768cf7214d30a5429b7b08190539b517d7fafa0))
|
|
88
102
|
|
|
89
103
|
## 0.0.1 (2025-07-09)
|
|
90
104
|
|
|
91
105
|
|
|
92
106
|
### Features
|
|
93
107
|
|
|
94
|
-
* release to production ([aa69a08](https://github.com/
|
|
95
|
-
* release to production ([89ca987](https://github.com/
|
|
108
|
+
* release to production ([aa69a08](https://github.com/iotaledger/twin-attestation/commit/aa69a08fbd3897c8d72b0d32ec730f104ad31b33))
|
|
109
|
+
* release to production ([89ca987](https://github.com/iotaledger/twin-attestation/commit/89ca987963d9090abcfc1b62bc997e2c521944ec))
|
|
96
110
|
|
|
97
|
-
## [0.0.1-next.30](https://github.com/
|
|
111
|
+
## [0.0.1-next.30](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.1-next.29...attestation-models-v0.0.1-next.30) (2025-06-12)
|
|
98
112
|
|
|
99
113
|
|
|
100
114
|
### Features
|
|
101
115
|
|
|
102
|
-
* update dependencies ([1d96d2e](https://github.com/
|
|
116
|
+
* update dependencies ([1d96d2e](https://github.com/iotaledger/twin-attestation/commit/1d96d2ee6e81a30396980f6f5e16e9658710d32d))
|
|
103
117
|
|
|
104
|
-
## [0.0.1-next.29](https://github.com/
|
|
118
|
+
## [0.0.1-next.29](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.1-next.28...attestation-models-v0.0.1-next.29) (2025-06-03)
|
|
105
119
|
|
|
106
120
|
|
|
107
121
|
### Features
|
|
108
122
|
|
|
109
|
-
* update ts-to-schema generation ([0f23298](https://github.com/
|
|
123
|
+
* update ts-to-schema generation ([0f23298](https://github.com/iotaledger/twin-attestation/commit/0f23298f6e8accb19c0faaf74220cce02155b48a))
|
|
110
124
|
|
|
111
|
-
## [0.0.1-next.28](https://github.com/
|
|
125
|
+
## [0.0.1-next.28](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.1-next.27...attestation-models-v0.0.1-next.28) (2025-05-28)
|
|
112
126
|
|
|
113
127
|
|
|
114
128
|
### Features
|
|
115
129
|
|
|
116
|
-
* update data type registration with fully qualified names ([5982245](https://github.com/
|
|
130
|
+
* update data type registration with fully qualified names ([5982245](https://github.com/iotaledger/twin-attestation/commit/59822454a027a9c6dfa72ffa9aabb9622b925929))
|
|
117
131
|
|
|
118
|
-
## [0.0.1-next.27](https://github.com/
|
|
132
|
+
## [0.0.1-next.27](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.1-next.26...attestation-models-v0.0.1-next.27) (2025-05-06)
|
|
119
133
|
|
|
120
134
|
|
|
121
135
|
### Miscellaneous Chores
|
|
122
136
|
|
|
123
137
|
* **attestation-models:** Synchronize repo versions
|
|
124
138
|
|
|
125
|
-
## [0.0.1-next.26](https://github.com/
|
|
139
|
+
## [0.0.1-next.26](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.1-next.25...attestation-models-v0.0.1-next.26) (2025-04-17)
|
|
126
140
|
|
|
127
141
|
|
|
128
142
|
### Features
|
|
129
143
|
|
|
130
|
-
* use shared store mechanism ([#5](https://github.com/
|
|
144
|
+
* use shared store mechanism ([#5](https://github.com/iotaledger/twin-attestation/issues/5)) ([3768cf7](https://github.com/iotaledger/twin-attestation/commit/3768cf7214d30a5429b7b08190539b517d7fafa0))
|
|
131
145
|
|
|
132
|
-
## [0.0.1-next.25](https://github.com/
|
|
146
|
+
## [0.0.1-next.25](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.1-next.24...attestation-models-v0.0.1-next.25) (2025-03-28)
|
|
133
147
|
|
|
134
148
|
|
|
135
149
|
### Miscellaneous Chores
|
package/docs/examples.md
CHANGED
|
@@ -1 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Attestation Models Examples
|
|
2
|
+
|
|
3
|
+
Register the data types at startup so schemas and JSON-LD mappings are available before you parse or validate attestation payloads.
|
|
4
|
+
|
|
5
|
+
## AttestationDataTypes
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { AttestationDataTypes } from '@twin.org/attestation-models';
|
|
9
|
+
|
|
10
|
+
AttestationDataTypes.registerTypes();
|
|
11
|
+
console.log('Attestation data types registered.'); // Attestation data types registered.
|
|
12
|
+
```
|
|
@@ -8,7 +8,7 @@ Interface describing an attestation contract.
|
|
|
8
8
|
|
|
9
9
|
## Methods
|
|
10
10
|
|
|
11
|
-
### create()
|
|
11
|
+
### create() {#create}
|
|
12
12
|
|
|
13
13
|
> **create**(`attestationObject`, `namespace?`): `Promise`\<`string`\>
|
|
14
14
|
|
|
@@ -36,7 +36,7 @@ The id of the attestation.
|
|
|
36
36
|
|
|
37
37
|
***
|
|
38
38
|
|
|
39
|
-
### get()
|
|
39
|
+
### get() {#get}
|
|
40
40
|
|
|
41
41
|
> **get**(`id`): `Promise`\<[`IAttestationInformation`](IAttestationInformation.md)\>
|
|
42
42
|
|
|
@@ -58,7 +58,7 @@ The verified attestation details.
|
|
|
58
58
|
|
|
59
59
|
***
|
|
60
60
|
|
|
61
|
-
### transfer()
|
|
61
|
+
### transfer() {#transfer}
|
|
62
62
|
|
|
63
63
|
> **transfer**(`attestationId`, `holderIdentity`, `holderAddress`): `Promise`\<`void`\>
|
|
64
64
|
|
|
@@ -92,7 +92,7 @@ Nothing.
|
|
|
92
92
|
|
|
93
93
|
***
|
|
94
94
|
|
|
95
|
-
### destroy()
|
|
95
|
+
### destroy() {#destroy}
|
|
96
96
|
|
|
97
97
|
> **destroy**(`attestationId`): `Promise`\<`void`\>
|
|
98
98
|
|
|
@@ -8,7 +8,7 @@ Interface describing an attestation connector.
|
|
|
8
8
|
|
|
9
9
|
## Methods
|
|
10
10
|
|
|
11
|
-
### create()
|
|
11
|
+
### create() {#create}
|
|
12
12
|
|
|
13
13
|
> **create**(`controller`, `verificationMethodId`, `attestationObject`): `Promise`\<`string`\>
|
|
14
14
|
|
|
@@ -42,7 +42,7 @@ The collated attestation data.
|
|
|
42
42
|
|
|
43
43
|
***
|
|
44
44
|
|
|
45
|
-
### get()
|
|
45
|
+
### get() {#get}
|
|
46
46
|
|
|
47
47
|
> **get**(`id`): `Promise`\<[`IAttestationInformation`](IAttestationInformation.md)\>
|
|
48
48
|
|
|
@@ -64,7 +64,7 @@ The verified attestation details.
|
|
|
64
64
|
|
|
65
65
|
***
|
|
66
66
|
|
|
67
|
-
### transfer()
|
|
67
|
+
### transfer() {#transfer}
|
|
68
68
|
|
|
69
69
|
> **transfer**(`controller`, `attestationId`, `holderIdentity`, `holderAddress`): `Promise`\<`void`\>
|
|
70
70
|
|
|
@@ -104,7 +104,7 @@ Nothing.
|
|
|
104
104
|
|
|
105
105
|
***
|
|
106
106
|
|
|
107
|
-
### destroy()
|
|
107
|
+
### destroy() {#destroy}
|
|
108
108
|
|
|
109
109
|
> **destroy**(`controller`, `attestationId`): `Promise`\<`void`\>
|
|
110
110
|
|
|
@@ -4,7 +4,7 @@ Attest the data and return the id of the attestation.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### body
|
|
7
|
+
### body {#body}
|
|
8
8
|
|
|
9
9
|
> **body**: `object`
|
|
10
10
|
|
|
@@ -18,6 +18,6 @@ The data object to attest.
|
|
|
18
18
|
|
|
19
19
|
#### namespace?
|
|
20
20
|
|
|
21
|
-
> `optional` **namespace
|
|
21
|
+
> `optional` **namespace?**: `string`
|
|
22
22
|
|
|
23
23
|
The namespace of the connector to use for the attestation, defaults to component configured namespace.
|
|
@@ -4,9 +4,9 @@ Verify that the proof is valid for the attestation.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### headers?
|
|
7
|
+
### headers? {#headers}
|
|
8
8
|
|
|
9
|
-
> `optional` **headers
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
10
|
|
|
11
11
|
The headers which can be used to determine the response data type.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ The headers which can be used to determine the response data type.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
### pathParams
|
|
19
|
+
### pathParams {#pathparams}
|
|
20
20
|
|
|
21
21
|
> **pathParams**: `object`
|
|
22
22
|
|
|
@@ -4,9 +4,9 @@ The response to verifying the attestation.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### headers?
|
|
7
|
+
### headers? {#headers}
|
|
8
8
|
|
|
9
|
-
> `optional` **headers
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
10
|
|
|
11
11
|
The headers which can be used to determine the response data type.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ The headers which can be used to determine the response data type.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
### body
|
|
19
|
+
### body {#body}
|
|
20
20
|
|
|
21
21
|
> **body**: [`IAttestationInformation`](IAttestationInformation.md)
|
|
22
22
|
|
|
@@ -4,7 +4,7 @@ Interface describing the collated attestation information.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### @context
|
|
7
|
+
### @context {#context}
|
|
8
8
|
|
|
9
9
|
> **@context**: \[`"https://schema.org"`, `"https://schema.twindev.org/attestation/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ JSON-LD Context.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### type
|
|
15
|
+
### type {#type}
|
|
16
16
|
|
|
17
17
|
> **type**: `"Information"`
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ JSON-LD Type.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### id
|
|
23
|
+
### id {#id}
|
|
24
24
|
|
|
25
25
|
> **id**: `string`
|
|
26
26
|
|
|
@@ -28,72 +28,64 @@ The unique identifier of the attestation.
|
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
31
|
-
### dateCreated
|
|
31
|
+
### dateCreated {#datecreated}
|
|
32
32
|
|
|
33
33
|
> **dateCreated**: `string`
|
|
34
34
|
|
|
35
35
|
Created date/time of the attestation in ISO format.
|
|
36
|
-
json-ld namespace:schema
|
|
37
36
|
|
|
38
37
|
***
|
|
39
38
|
|
|
40
|
-
### dateTransferred?
|
|
39
|
+
### dateTransferred? {#datetransferred}
|
|
41
40
|
|
|
42
|
-
> `optional` **dateTransferred
|
|
41
|
+
> `optional` **dateTransferred?**: `string`
|
|
43
42
|
|
|
44
43
|
Transferred date/time of the attestation in ISO format, can be blank if holder identity is owner.
|
|
45
|
-
json-ld type:schema:Date
|
|
46
44
|
|
|
47
45
|
***
|
|
48
46
|
|
|
49
|
-
### ownerIdentity
|
|
47
|
+
### ownerIdentity {#owneridentity}
|
|
50
48
|
|
|
51
49
|
> **ownerIdentity**: `string`
|
|
52
50
|
|
|
53
51
|
The identity of the owner.
|
|
54
|
-
json-ld type:schema:identifier
|
|
55
52
|
|
|
56
53
|
***
|
|
57
54
|
|
|
58
|
-
### holderIdentity?
|
|
55
|
+
### holderIdentity? {#holderidentity}
|
|
59
56
|
|
|
60
|
-
> `optional` **holderIdentity
|
|
57
|
+
> `optional` **holderIdentity?**: `string`
|
|
61
58
|
|
|
62
59
|
The identity of the current holder, can be undefined if owner is still the holder.
|
|
63
|
-
json-ld type:schema:identifier
|
|
64
60
|
|
|
65
61
|
***
|
|
66
62
|
|
|
67
|
-
### attestationObject
|
|
63
|
+
### attestationObject {#attestationobject}
|
|
68
64
|
|
|
69
65
|
> **attestationObject**: `IJsonLdNodeObject`
|
|
70
66
|
|
|
71
67
|
The data that was attested.
|
|
72
|
-
json-ld namespace:twin-common
|
|
73
68
|
|
|
74
69
|
***
|
|
75
70
|
|
|
76
|
-
### proof?
|
|
71
|
+
### proof? {#proof}
|
|
77
72
|
|
|
78
|
-
> `optional` **proof
|
|
73
|
+
> `optional` **proof?**: `IJsonLdNodeObject`
|
|
79
74
|
|
|
80
75
|
The proof for the attested data.
|
|
81
|
-
json-ld namespace:twin-attestation
|
|
82
76
|
|
|
83
77
|
***
|
|
84
78
|
|
|
85
|
-
### verified?
|
|
79
|
+
### verified? {#verified}
|
|
86
80
|
|
|
87
|
-
> `optional` **verified
|
|
81
|
+
> `optional` **verified?**: `boolean`
|
|
88
82
|
|
|
89
83
|
Whether the attestation has been verified.
|
|
90
|
-
json-ld namespace:twin-common
|
|
91
84
|
|
|
92
85
|
***
|
|
93
86
|
|
|
94
|
-
### verificationFailure?
|
|
87
|
+
### verificationFailure? {#verificationfailure}
|
|
95
88
|
|
|
96
|
-
> `optional` **verificationFailure
|
|
89
|
+
> `optional` **verificationFailure?**: `string`
|
|
97
90
|
|
|
98
91
|
The verification failure message.
|
|
99
|
-
json-ld type:schema:Text
|
|
@@ -4,7 +4,7 @@ Interface describing an attestation proof.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### @context
|
|
7
|
+
### @context {#context}
|
|
8
8
|
|
|
9
9
|
> **@context**: `"https://schema.twindev.org/attestation/"` \| \[`"https://schema.twindev.org/attestation/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ JSON-LD Context.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### type
|
|
15
|
+
### type {#type}
|
|
16
16
|
|
|
17
17
|
> **type**: `"JwtProof"`
|
|
18
18
|
|
|
@@ -20,9 +20,8 @@ The type of the proof.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### value
|
|
23
|
+
### value {#value}
|
|
24
24
|
|
|
25
25
|
> **value**: `string`
|
|
26
26
|
|
|
27
27
|
The value of the proof.
|
|
28
|
-
json-ld type:schema:Text
|
|
@@ -4,7 +4,7 @@ Transfer the attestation to a new holder.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### pathParams
|
|
7
|
+
### pathParams {#pathparams}
|
|
8
8
|
|
|
9
9
|
> **pathParams**: `object`
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@ The attestation id to transfer.
|
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### body
|
|
21
|
+
### body {#body}
|
|
22
22
|
|
|
23
23
|
> **body**: `object`
|
|
24
24
|
|
|
@@ -6,37 +6,37 @@ The contexts of attestation data.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### Namespace
|
|
9
|
+
### Namespace {#namespace}
|
|
10
10
|
|
|
11
11
|
> `readonly` **Namespace**: `"https://schema.twindev.org/attestation/"` = `"https://schema.twindev.org/attestation/"`
|
|
12
12
|
|
|
13
13
|
The canonical RDF namespace URI for Attestation.
|
|
14
14
|
|
|
15
|
-
### Context
|
|
15
|
+
### Context {#context}
|
|
16
16
|
|
|
17
17
|
> `readonly` **Context**: `"https://schema.twindev.org/attestation/"` = `"https://schema.twindev.org/attestation/"`
|
|
18
18
|
|
|
19
19
|
The value to use in context for Attestation.
|
|
20
20
|
|
|
21
|
-
### JsonLdContext
|
|
21
|
+
### JsonLdContext {#jsonldcontext}
|
|
22
22
|
|
|
23
23
|
> `readonly` **JsonLdContext**: `"https://schema.twindev.org/attestation/types.jsonld"` = `"https://schema.twindev.org/attestation/types.jsonld"`
|
|
24
24
|
|
|
25
25
|
The JSON-LD Context URL for Attestation.
|
|
26
26
|
|
|
27
|
-
### NamespaceCommon
|
|
27
|
+
### NamespaceCommon {#namespacecommon}
|
|
28
28
|
|
|
29
29
|
> `readonly` **NamespaceCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
|
|
30
30
|
|
|
31
31
|
The canonical RDF namespace URI for TWIN Common.
|
|
32
32
|
|
|
33
|
-
### ContextCommon
|
|
33
|
+
### ContextCommon {#contextcommon}
|
|
34
34
|
|
|
35
35
|
> `readonly` **ContextCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
|
|
36
36
|
|
|
37
37
|
The value to use in JSON-LD context for TWIN Common.
|
|
38
38
|
|
|
39
|
-
### JsonLdContextCommon
|
|
39
|
+
### JsonLdContextCommon {#jsonldcontextcommon}
|
|
40
40
|
|
|
41
41
|
> `readonly` **JsonLdContextCommon**: `"https://schema.twindev.org/common/types.jsonld"` = `"https://schema.twindev.org/common/types.jsonld"`
|
|
42
42
|
|
|
@@ -6,13 +6,13 @@ The types of attestation data.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### Information
|
|
9
|
+
### Information {#information}
|
|
10
10
|
|
|
11
11
|
> `readonly` **Information**: `"Information"` = `"Information"`
|
|
12
12
|
|
|
13
13
|
Represents attestation information.
|
|
14
14
|
|
|
15
|
-
### JwtProof
|
|
15
|
+
### JwtProof {#jwtproof}
|
|
16
16
|
|
|
17
17
|
> `readonly` **JwtProof**: `"JwtProof"` = `"JwtProof"`
|
|
18
18
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/attestation-models",
|
|
3
|
-
"version": "0.0.3-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.3-next.8",
|
|
4
|
+
"description": "Shared models and data types for attestation connectors and services.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/twinfoundation/attestation.git",
|