@twin.org/attestation-models 0.0.3-next.9 → 0.9.0-next.1
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/dist/es/models/IAttestationComponent.js.map +1 -1
- package/dist/es/models/IAttestationConnector.js.map +1 -1
- package/dist/es/models/IAttestationInformation.js.map +1 -1
- package/dist/es/models/api/IAttestationTransferRequest.js.map +1 -1
- package/dist/es/schemas/AttestationInformation.json +1 -5
- package/dist/types/models/IAttestationComponent.d.ts +4 -5
- package/dist/types/models/IAttestationConnector.d.ts +3 -4
- package/dist/types/models/IAttestationInformation.d.ts +1 -6
- package/dist/types/models/api/IAttestationTransferRequest.d.ts +0 -4
- package/docs/changelog.md +49 -0
- package/docs/reference/interfaces/IAttestationComponent.md +4 -10
- package/docs/reference/interfaces/IAttestationConnector.md +3 -9
- package/docs/reference/interfaces/IAttestationInformation.md +1 -9
- package/docs/reference/interfaces/IAttestationTransferRequest.md +0 -6
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAttestationComponent.js","sourceRoot":"","sources":["../../../src/models/IAttestationComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IAttestationInformation } from \"./IAttestationInformation.js\";\n\n/**\n * Interface describing an attestation contract.\n */\nexport interface IAttestationComponent extends IComponent {\n\t/**\n\t * Attest the data and return the collated information.\n\t * @param attestationObject The data to attest.\n\t * @param namespace The namespace of the connector to use for the attestation, defaults to component configured namespace.\n\t * @returns The id of the attestation.\n\t */\n\tcreate(attestationObject: IJsonLdNodeObject, namespace?: string): Promise<string>;\n\n\t/**\n\t * Resolve and verify the attestation id.\n\t * @param id The attestation id to verify.\n\t * @returns The verified attestation details.\n\t */\n\tget(id: string): Promise<IAttestationInformation>;\n\n\t/**\n\t * Transfer the attestation to a new holder.\n\t * @param attestationId The attestation to transfer.\n\t * @param
|
|
1
|
+
{"version":3,"file":"IAttestationComponent.js","sourceRoot":"","sources":["../../../src/models/IAttestationComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IAttestationInformation } from \"./IAttestationInformation.js\";\n\n/**\n * Interface describing an attestation contract.\n */\nexport interface IAttestationComponent extends IComponent {\n\t/**\n\t * Attest the data and return the collated information.\n\t * @param attestationObject The data to attest.\n\t * @param namespace The namespace of the connector to use for the attestation, defaults to component configured namespace.\n\t * @returns The id of the attestation.\n\t */\n\tcreate(attestationObject: IJsonLdNodeObject, namespace?: string): Promise<string>;\n\n\t/**\n\t * Resolve and verify the attestation id.\n\t * @param id The attestation id to verify.\n\t * @returns The verified attestation details.\n\t */\n\tget(id: string): Promise<IAttestationInformation>;\n\n\t/**\n\t * Transfer the attestation to a new holder.\n\t * @param attestationId The attestation to transfer.\n\t * @param holderAddress The address to transfer the attestation to.\n\t * @returns A promise that resolves when the transfer is complete.\n\t */\n\ttransfer(attestationId: string, holderAddress: string): Promise<void>;\n\n\t/**\n\t * Destroy the attestation.\n\t * @param attestationId The attestation to destroy.\n\t * @returns A promise that resolves when the attestation has been destroyed.\n\t */\n\tdestroy(attestationId: string): Promise<void>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAttestationConnector.js","sourceRoot":"","sources":["../../../src/models/IAttestationConnector.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IAttestationInformation } from \"./IAttestationInformation.js\";\n\n/**\n * Interface describing an attestation connector.\n */\nexport interface IAttestationConnector extends IComponent {\n\t/**\n\t * Attest the data and return the collated information.\n\t * @param controller The controller identity of the user to access the vault keys.\n\t * @param verificationMethodId The identity verification method to use for attesting the data.\n\t * @param attestationObject The data to attest.\n\t * @returns The collated attestation data.\n\t */\n\tcreate(\n\t\tcontroller: string,\n\t\tverificationMethodId: string,\n\t\tattestationObject: IJsonLdNodeObject\n\t): Promise<string>;\n\n\t/**\n\t * Resolve and verify the attestation id.\n\t * @param id The attestation id to verify.\n\t * @returns The verified attestation details.\n\t */\n\tget(id: string): Promise<IAttestationInformation>;\n\n\t/**\n\t * Transfer the attestation to a new holder.\n\t * @param controller The controller identity of the user to access the vault keys.\n\t * @param attestationId The attestation to transfer.\n\t * @param
|
|
1
|
+
{"version":3,"file":"IAttestationConnector.js","sourceRoot":"","sources":["../../../src/models/IAttestationConnector.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IAttestationInformation } from \"./IAttestationInformation.js\";\n\n/**\n * Interface describing an attestation connector.\n */\nexport interface IAttestationConnector extends IComponent {\n\t/**\n\t * Attest the data and return the collated information.\n\t * @param controller The controller identity of the user to access the vault keys.\n\t * @param verificationMethodId The identity verification method to use for attesting the data.\n\t * @param attestationObject The data to attest.\n\t * @returns The collated attestation data.\n\t */\n\tcreate(\n\t\tcontroller: string,\n\t\tverificationMethodId: string,\n\t\tattestationObject: IJsonLdNodeObject\n\t): Promise<string>;\n\n\t/**\n\t * Resolve and verify the attestation id.\n\t * @param id The attestation id to verify.\n\t * @returns The verified attestation details.\n\t */\n\tget(id: string): Promise<IAttestationInformation>;\n\n\t/**\n\t * Transfer the attestation to a new holder.\n\t * @param controller The controller identity of the user to access the vault keys.\n\t * @param attestationId The attestation to transfer.\n\t * @param holderAddress The new controller address of the attestation belonging to the holder.\n\t * @returns A promise that resolves when the transfer is complete.\n\t */\n\ttransfer(controller: string, attestationId: string, holderAddress: string): Promise<void>;\n\n\t/**\n\t * Destroy the attestation.\n\t * @param controller The controller identity of the user to access the vault keys.\n\t * @param attestationId The attestation to destroy.\n\t * @returns A promise that resolves when the attestation has been destroyed.\n\t */\n\tdestroy(controller: string, attestationId: string): Promise<void>;\n}\n"]}
|
|
@@ -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
|
|
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 not yet transferred.\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 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":"IAttestationTransferRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAttestationTransferRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Transfer the attestation to a new holder.\n */\nexport interface IAttestationTransferRequest {\n\t/**\n\t * The parameters to be used in the transfer.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The attestation id to transfer.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The parameters to be used in the transfer.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The new holder
|
|
1
|
+
{"version":3,"file":"IAttestationTransferRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAttestationTransferRequest.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Transfer the attestation to a new holder.\n */\nexport interface IAttestationTransferRequest {\n\t/**\n\t * The parameters to be used in the transfer.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The attestation id to transfer.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The parameters to be used in the transfer.\n\t */\n\tbody: {\n\t\t/**\n\t\t * The new holder address.\n\t\t */\n\t\tholderAddress: string;\n\t};\n}\n"]}
|
|
@@ -38,16 +38,12 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dateTransferred": {
|
|
40
40
|
"type": "string",
|
|
41
|
-
"description": "Transferred date/time of the attestation in ISO format, can be blank if
|
|
41
|
+
"description": "Transferred date/time of the attestation in ISO format, can be blank if not yet transferred."
|
|
42
42
|
},
|
|
43
43
|
"ownerIdentity": {
|
|
44
44
|
"type": "string",
|
|
45
45
|
"description": "The identity of the owner."
|
|
46
46
|
},
|
|
47
|
-
"holderIdentity": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"description": "The identity of the current holder, can be undefined if owner is still the holder."
|
|
50
|
-
},
|
|
51
47
|
"attestationObject": {
|
|
52
48
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
|
|
53
49
|
"description": "The data that was attested."
|
|
@@ -21,15 +21,14 @@ export interface IAttestationComponent extends IComponent {
|
|
|
21
21
|
/**
|
|
22
22
|
* Transfer the attestation to a new holder.
|
|
23
23
|
* @param attestationId The attestation to transfer.
|
|
24
|
-
* @param holderIdentity The identity to transfer the attestation to.
|
|
25
24
|
* @param holderAddress The address to transfer the attestation to.
|
|
26
|
-
* @returns
|
|
25
|
+
* @returns A promise that resolves when the transfer is complete.
|
|
27
26
|
*/
|
|
28
|
-
transfer(attestationId: string,
|
|
27
|
+
transfer(attestationId: string, holderAddress: string): Promise<void>;
|
|
29
28
|
/**
|
|
30
29
|
* Destroy the attestation.
|
|
31
|
-
* @param attestationId The attestation to
|
|
32
|
-
* @returns
|
|
30
|
+
* @param attestationId The attestation to destroy.
|
|
31
|
+
* @returns A promise that resolves when the attestation has been destroyed.
|
|
33
32
|
*/
|
|
34
33
|
destroy(attestationId: string): Promise<void>;
|
|
35
34
|
}
|
|
@@ -23,16 +23,15 @@ export interface IAttestationConnector extends IComponent {
|
|
|
23
23
|
* Transfer the attestation to a new holder.
|
|
24
24
|
* @param controller The controller identity of the user to access the vault keys.
|
|
25
25
|
* @param attestationId The attestation to transfer.
|
|
26
|
-
* @param holderIdentity The holder identity of the attestation.
|
|
27
26
|
* @param holderAddress The new controller address of the attestation belonging to the holder.
|
|
28
|
-
* @returns
|
|
27
|
+
* @returns A promise that resolves when the transfer is complete.
|
|
29
28
|
*/
|
|
30
|
-
transfer(controller: string, attestationId: string,
|
|
29
|
+
transfer(controller: string, attestationId: string, holderAddress: string): Promise<void>;
|
|
31
30
|
/**
|
|
32
31
|
* Destroy the attestation.
|
|
33
32
|
* @param controller The controller identity of the user to access the vault keys.
|
|
34
33
|
* @param attestationId The attestation to destroy.
|
|
35
|
-
* @returns
|
|
34
|
+
* @returns A promise that resolves when the attestation has been destroyed.
|
|
36
35
|
*/
|
|
37
36
|
destroy(controller: string, attestationId: string): Promise<void>;
|
|
38
37
|
}
|
|
@@ -29,7 +29,7 @@ export interface IAttestationInformation {
|
|
|
29
29
|
*/
|
|
30
30
|
dateCreated: string;
|
|
31
31
|
/**
|
|
32
|
-
* Transferred date/time of the attestation in ISO format, can be blank if
|
|
32
|
+
* Transferred date/time of the attestation in ISO format, can be blank if not yet transferred.
|
|
33
33
|
* @json-ld type:schema:Date
|
|
34
34
|
*/
|
|
35
35
|
dateTransferred?: string;
|
|
@@ -38,11 +38,6 @@ export interface IAttestationInformation {
|
|
|
38
38
|
* @json-ld type:schema:identifier
|
|
39
39
|
*/
|
|
40
40
|
ownerIdentity: string;
|
|
41
|
-
/**
|
|
42
|
-
* The identity of the current holder, can be undefined if owner is still the holder.
|
|
43
|
-
* @json-ld type:schema:identifier
|
|
44
|
-
*/
|
|
45
|
-
holderIdentity?: string;
|
|
46
41
|
/**
|
|
47
42
|
* The data that was attested.
|
|
48
43
|
* @json-ld namespace:twin-common
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.0-next.1](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.9.0-next.0...attestation-models-v0.9.0-next.1) (2026-06-24)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add context id features ([#21](https://github.com/iotaledger/twin-attestation/issues/21)) ([640deab](https://github.com/iotaledger/twin-attestation/commit/640deabfc00340e619283f94570c5e1ec45e83af))
|
|
9
|
+
* add ts-to-jsonld-context tool ([df7edd0](https://github.com/iotaledger/twin-attestation/commit/df7edd0d32cabc2b0f9f6dc7b216f569f739324d))
|
|
10
|
+
* add validate-locales ([a1f9e13](https://github.com/iotaledger/twin-attestation/commit/a1f9e13875a661f612ce16dd9896e7df20c6a7ff))
|
|
11
|
+
* context updates ([#25](https://github.com/iotaledger/twin-attestation/issues/25)) ([1ea71b2](https://github.com/iotaledger/twin-attestation/commit/1ea71b28d874daef4d0bca594fb5dbf5f2a47571))
|
|
12
|
+
* eslint migration to flat config ([7c768ff](https://github.com/iotaledger/twin-attestation/commit/7c768ffae02456d60fd62ba8b4b488c307ceff32))
|
|
13
|
+
* release to production ([aa69a08](https://github.com/iotaledger/twin-attestation/commit/aa69a08fbd3897c8d72b0d32ec730f104ad31b33))
|
|
14
|
+
* release to production ([89ca987](https://github.com/iotaledger/twin-attestation/commit/89ca987963d9090abcfc1b62bc997e2c521944ec))
|
|
15
|
+
* remove holder identity ([#38](https://github.com/iotaledger/twin-attestation/issues/38)) ([4862d7f](https://github.com/iotaledger/twin-attestation/commit/4862d7f22345b82bcb90f27adc0d64ed75484813))
|
|
16
|
+
* remove unused schemas causing conflict ([#27](https://github.com/iotaledger/twin-attestation/issues/27)) ([9723bc3](https://github.com/iotaledger/twin-attestation/commit/9723bc3757f87ce8a943f5f091a92d258f867892))
|
|
17
|
+
* typescript 6 update ([9484667](https://github.com/iotaledger/twin-attestation/commit/948466713dc980e4b2d89e72ebb927b3fe530280))
|
|
18
|
+
* update contexts and namespaces ([#23](https://github.com/iotaledger/twin-attestation/issues/23)) ([7e7ffb4](https://github.com/iotaledger/twin-attestation/commit/7e7ffb4056bfe296dd3cedcaa7a9bfb91fd830d7))
|
|
19
|
+
* update data type registration with fully qualified names ([5982245](https://github.com/iotaledger/twin-attestation/commit/59822454a027a9c6dfa72ffa9aabb9622b925929))
|
|
20
|
+
* update dependencies ([1d96d2e](https://github.com/iotaledger/twin-attestation/commit/1d96d2ee6e81a30396980f6f5e16e9658710d32d))
|
|
21
|
+
* update framework core ([02326d4](https://github.com/iotaledger/twin-attestation/commit/02326d41238862c13587c19bb3d04c1cb3b606d8))
|
|
22
|
+
* update schemas ([c163f36](https://github.com/iotaledger/twin-attestation/commit/c163f3623d54a0e87a97cf5eab25327b9aeac0fe))
|
|
23
|
+
* update ts-to-schema generation ([0f23298](https://github.com/iotaledger/twin-attestation/commit/0f23298f6e8accb19c0faaf74220cce02155b48a))
|
|
24
|
+
* use shared store mechanism ([#5](https://github.com/iotaledger/twin-attestation/issues/5)) ([3768cf7](https://github.com/iotaledger/twin-attestation/commit/3768cf7214d30a5429b7b08190539b517d7fafa0))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Bug Fixes
|
|
28
|
+
|
|
29
|
+
* correct context ordering ([c7cded2](https://github.com/iotaledger/twin-attestation/commit/c7cded248662b8b78ff41b19749bc182ff5105c0))
|
|
30
|
+
|
|
31
|
+
## [0.0.3-next.12](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.3-next.11...attestation-models-v0.0.3-next.12) (2026-06-01)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Miscellaneous Chores
|
|
35
|
+
|
|
36
|
+
* **attestation-models:** Synchronize repo versions
|
|
37
|
+
|
|
38
|
+
## [0.0.3-next.11](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.3-next.10...attestation-models-v0.0.3-next.11) (2026-05-22)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Features
|
|
42
|
+
|
|
43
|
+
* remove holder identity ([#38](https://github.com/iotaledger/twin-attestation/issues/38)) ([4862d7f](https://github.com/iotaledger/twin-attestation/commit/4862d7f22345b82bcb90f27adc0d64ed75484813))
|
|
44
|
+
|
|
45
|
+
## [0.0.3-next.10](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.3-next.9...attestation-models-v0.0.3-next.10) (2026-05-20)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Miscellaneous Chores
|
|
49
|
+
|
|
50
|
+
* **attestation-models:** Synchronize repo versions
|
|
51
|
+
|
|
3
52
|
## [0.0.3-next.9](https://github.com/iotaledger/twin-attestation/compare/attestation-models-v0.0.3-next.8...attestation-models-v0.0.3-next.9) (2026-05-12)
|
|
4
53
|
|
|
5
54
|
|
|
@@ -60,7 +60,7 @@ The verified attestation details.
|
|
|
60
60
|
|
|
61
61
|
### transfer() {#transfer}
|
|
62
62
|
|
|
63
|
-
> **transfer**(`attestationId`, `
|
|
63
|
+
> **transfer**(`attestationId`, `holderAddress`): `Promise`\<`void`\>
|
|
64
64
|
|
|
65
65
|
Transfer the attestation to a new holder.
|
|
66
66
|
|
|
@@ -72,12 +72,6 @@ Transfer the attestation to a new holder.
|
|
|
72
72
|
|
|
73
73
|
The attestation to transfer.
|
|
74
74
|
|
|
75
|
-
##### holderIdentity
|
|
76
|
-
|
|
77
|
-
`string`
|
|
78
|
-
|
|
79
|
-
The identity to transfer the attestation to.
|
|
80
|
-
|
|
81
75
|
##### holderAddress
|
|
82
76
|
|
|
83
77
|
`string`
|
|
@@ -88,7 +82,7 @@ The address to transfer the attestation to.
|
|
|
88
82
|
|
|
89
83
|
`Promise`\<`void`\>
|
|
90
84
|
|
|
91
|
-
|
|
85
|
+
A promise that resolves when the transfer is complete.
|
|
92
86
|
|
|
93
87
|
***
|
|
94
88
|
|
|
@@ -104,10 +98,10 @@ Destroy the attestation.
|
|
|
104
98
|
|
|
105
99
|
`string`
|
|
106
100
|
|
|
107
|
-
The attestation to
|
|
101
|
+
The attestation to destroy.
|
|
108
102
|
|
|
109
103
|
#### Returns
|
|
110
104
|
|
|
111
105
|
`Promise`\<`void`\>
|
|
112
106
|
|
|
113
|
-
|
|
107
|
+
A promise that resolves when the attestation has been destroyed.
|
|
@@ -66,7 +66,7 @@ The verified attestation details.
|
|
|
66
66
|
|
|
67
67
|
### transfer() {#transfer}
|
|
68
68
|
|
|
69
|
-
> **transfer**(`controller`, `attestationId`, `
|
|
69
|
+
> **transfer**(`controller`, `attestationId`, `holderAddress`): `Promise`\<`void`\>
|
|
70
70
|
|
|
71
71
|
Transfer the attestation to a new holder.
|
|
72
72
|
|
|
@@ -84,12 +84,6 @@ The controller identity of the user to access the vault keys.
|
|
|
84
84
|
|
|
85
85
|
The attestation to transfer.
|
|
86
86
|
|
|
87
|
-
##### holderIdentity
|
|
88
|
-
|
|
89
|
-
`string`
|
|
90
|
-
|
|
91
|
-
The holder identity of the attestation.
|
|
92
|
-
|
|
93
87
|
##### holderAddress
|
|
94
88
|
|
|
95
89
|
`string`
|
|
@@ -100,7 +94,7 @@ The new controller address of the attestation belonging to the holder.
|
|
|
100
94
|
|
|
101
95
|
`Promise`\<`void`\>
|
|
102
96
|
|
|
103
|
-
|
|
97
|
+
A promise that resolves when the transfer is complete.
|
|
104
98
|
|
|
105
99
|
***
|
|
106
100
|
|
|
@@ -128,4 +122,4 @@ The attestation to destroy.
|
|
|
128
122
|
|
|
129
123
|
`Promise`\<`void`\>
|
|
130
124
|
|
|
131
|
-
|
|
125
|
+
A promise that resolves when the attestation has been destroyed.
|
|
@@ -40,7 +40,7 @@ Created date/time of the attestation in ISO format.
|
|
|
40
40
|
|
|
41
41
|
> `optional` **dateTransferred?**: `string`
|
|
42
42
|
|
|
43
|
-
Transferred date/time of the attestation in ISO format, can be blank if
|
|
43
|
+
Transferred date/time of the attestation in ISO format, can be blank if not yet transferred.
|
|
44
44
|
|
|
45
45
|
***
|
|
46
46
|
|
|
@@ -52,14 +52,6 @@ The identity of the owner.
|
|
|
52
52
|
|
|
53
53
|
***
|
|
54
54
|
|
|
55
|
-
### holderIdentity? {#holderidentity}
|
|
56
|
-
|
|
57
|
-
> `optional` **holderIdentity?**: `string`
|
|
58
|
-
|
|
59
|
-
The identity of the current holder, can be undefined if owner is still the holder.
|
|
60
|
-
|
|
61
|
-
***
|
|
62
|
-
|
|
63
55
|
### attestationObject {#attestationobject}
|
|
64
56
|
|
|
65
57
|
> **attestationObject**: `IJsonLdNodeObject`
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/attestation-models",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.9.0-next.1",
|
|
4
4
|
"description": "Shared models and data types for attestation connectors and services.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/iotaledger/attestation.git",
|
|
7
|
+
"url": "git+https://github.com/iotaledger/twin-attestation.git",
|
|
8
8
|
"directory": "packages/attestation-models"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@twin.org/core": "next",
|
|
18
|
-
"@twin.org/data-core": "next",
|
|
19
|
-
"@twin.org/data-json-ld": "next",
|
|
20
|
-
"@twin.org/entity": "next",
|
|
21
|
-
"@twin.org/nameof": "next",
|
|
22
|
-
"@twin.org/standards-schema-org": "next",
|
|
23
|
-
"@twin.org/standards-w3c-did": "next",
|
|
24
|
-
"@twin.org/web": "next"
|
|
17
|
+
"@twin.org/core": "0.9.0-next.1",
|
|
18
|
+
"@twin.org/data-core": "0.9.0-next.1",
|
|
19
|
+
"@twin.org/data-json-ld": "0.9.0-next.1",
|
|
20
|
+
"@twin.org/entity": "0.9.0-next.1",
|
|
21
|
+
"@twin.org/nameof": "0.9.0-next.1",
|
|
22
|
+
"@twin.org/standards-schema-org": "0.9.0-next.1",
|
|
23
|
+
"@twin.org/standards-w3c-did": "0.9.0-next.1",
|
|
24
|
+
"@twin.org/web": "0.9.0-next.1"
|
|
25
25
|
},
|
|
26
26
|
"main": "./dist/es/index.js",
|
|
27
27
|
"types": "./dist/types/index.d.ts",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"schemas"
|
|
55
55
|
],
|
|
56
56
|
"bugs": {
|
|
57
|
-
"url": "git+https://github.com/iotaledger/attestation/issues"
|
|
57
|
+
"url": "git+https://github.com/iotaledger/twin-attestation/issues"
|
|
58
58
|
},
|
|
59
59
|
"homepage": "https://twindev.org"
|
|
60
60
|
}
|