@twin.org/attestation-models 0.0.1-next.6 → 0.0.1-next.7
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/types/models/IAttestationComponent.d.ts +3 -3
- package/dist/types/models/IAttestationConnector.d.ts +3 -3
- package/dist/types/models/api/IAttestationAttestResponse.d.ts +3 -0
- package/docs/changelog.md +1 -1
- package/docs/reference/interfaces/IAttestationAttestResponse.md +2 -0
- package/docs/reference/interfaces/IAttestationComponent.md +3 -3
- package/docs/reference/interfaces/IAttestationConnector.md +3 -3
- package/package.json +1 -1
@@ -14,13 +14,13 @@ export interface IAttestationComponent extends IComponent {
|
|
14
14
|
* @param nodeIdentity The node identity to include in the attestation.
|
15
15
|
* @returns The collated attestation data.
|
16
16
|
*/
|
17
|
-
attest<T extends IJsonLdNodeObject
|
17
|
+
attest<T extends IJsonLdNodeObject>(verificationMethodId: string, data: T, namespace?: string, identity?: string, nodeIdentity?: string): Promise<IAttestationInformation<T>>;
|
18
18
|
/**
|
19
19
|
* Resolve and verify the attestation id.
|
20
20
|
* @param attestationId The attestation id to verify.
|
21
21
|
* @returns The verified attestation details.
|
22
22
|
*/
|
23
|
-
verify<T extends IJsonLdNodeObject
|
23
|
+
verify<T extends IJsonLdNodeObject>(attestationId: string): Promise<{
|
24
24
|
verified: boolean;
|
25
25
|
failure?: string;
|
26
26
|
information?: Partial<IAttestationInformation<T>>;
|
@@ -32,7 +32,7 @@ export interface IAttestationComponent extends IComponent {
|
|
32
32
|
* @param identity The identity to perform the attestation operation with.
|
33
33
|
* @returns The updated attestation details.
|
34
34
|
*/
|
35
|
-
transfer<T extends IJsonLdNodeObject
|
35
|
+
transfer<T extends IJsonLdNodeObject>(attestationId: string, holderIdentity: string, identity?: string): Promise<IAttestationInformation<T>>;
|
36
36
|
/**
|
37
37
|
* Destroy the attestation.
|
38
38
|
* @param attestationId The attestation to transfer.
|
@@ -13,13 +13,13 @@ export interface IAttestationConnector extends IComponent {
|
|
13
13
|
* @param data The data to attest.
|
14
14
|
* @returns The collated attestation data.
|
15
15
|
*/
|
16
|
-
attest<T extends IJsonLdNodeObject
|
16
|
+
attest<T extends IJsonLdNodeObject>(controller: string, address: string, verificationMethodId: string, data: T): Promise<IAttestationInformation<T>>;
|
17
17
|
/**
|
18
18
|
* Resolve and verify the attestation id.
|
19
19
|
* @param attestationId The attestation id to verify.
|
20
20
|
* @returns The verified attestation details.
|
21
21
|
*/
|
22
|
-
verify<T extends IJsonLdNodeObject
|
22
|
+
verify<T extends IJsonLdNodeObject>(attestationId: string): Promise<{
|
23
23
|
verified: boolean;
|
24
24
|
failure?: string;
|
25
25
|
information?: Partial<IAttestationInformation<T>>;
|
@@ -32,7 +32,7 @@ export interface IAttestationConnector extends IComponent {
|
|
32
32
|
* @param holderAddress The new controller address of the attestation belonging to the holder.
|
33
33
|
* @returns The updated attestation details.
|
34
34
|
*/
|
35
|
-
transfer<T extends IJsonLdNodeObject
|
35
|
+
transfer<T extends IJsonLdNodeObject>(controller: string, attestationId: string, holderIdentity: string, holderAddress: string): Promise<IAttestationInformation<T>>;
|
36
36
|
/**
|
37
37
|
* Destroy the attestation.
|
38
38
|
* @param controller The controller identity of the user to access the vault keys.
|
package/docs/changelog.md
CHANGED
@@ -16,7 +16,7 @@ Attest the data and return the collated information.
|
|
16
16
|
|
17
17
|
#### Type Parameters
|
18
18
|
|
19
|
-
• **T** *extends* `IJsonLdNodeObject`
|
19
|
+
• **T** *extends* `IJsonLdNodeObject`
|
20
20
|
|
21
21
|
#### Parameters
|
22
22
|
|
@@ -56,7 +56,7 @@ Resolve and verify the attestation id.
|
|
56
56
|
|
57
57
|
#### Type Parameters
|
58
58
|
|
59
|
-
• **T** *extends* `IJsonLdNodeObject`
|
59
|
+
• **T** *extends* `IJsonLdNodeObject`
|
60
60
|
|
61
61
|
#### Parameters
|
62
62
|
|
@@ -92,7 +92,7 @@ Transfer the attestation to a new holder.
|
|
92
92
|
|
93
93
|
#### Type Parameters
|
94
94
|
|
95
|
-
• **T** *extends* `IJsonLdNodeObject`
|
95
|
+
• **T** *extends* `IJsonLdNodeObject`
|
96
96
|
|
97
97
|
#### Parameters
|
98
98
|
|
@@ -16,7 +16,7 @@ Attest the data and return the collated information.
|
|
16
16
|
|
17
17
|
#### Type Parameters
|
18
18
|
|
19
|
-
• **T** *extends* `IJsonLdNodeObject`
|
19
|
+
• **T** *extends* `IJsonLdNodeObject`
|
20
20
|
|
21
21
|
#### Parameters
|
22
22
|
|
@@ -52,7 +52,7 @@ Resolve and verify the attestation id.
|
|
52
52
|
|
53
53
|
#### Type Parameters
|
54
54
|
|
55
|
-
• **T** *extends* `IJsonLdNodeObject`
|
55
|
+
• **T** *extends* `IJsonLdNodeObject`
|
56
56
|
|
57
57
|
#### Parameters
|
58
58
|
|
@@ -88,7 +88,7 @@ Transfer the attestation to a new holder.
|
|
88
88
|
|
89
89
|
#### Type Parameters
|
90
90
|
|
91
|
-
• **T** *extends* `IJsonLdNodeObject`
|
91
|
+
• **T** *extends* `IJsonLdNodeObject`
|
92
92
|
|
93
93
|
#### Parameters
|
94
94
|
|