@twin.org/immutable-proof-models 0.0.1-next.27 → 0.0.1-next.29
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/cjs/index.cjs +4 -0
- package/dist/esm/index.mjs +4 -0
- package/dist/types/models/IImmutableProof.d.ts +4 -0
- package/dist/types/models/IImmutableProofComponent.d.ts +2 -2
- package/docs/changelog.md +1 -1
- package/docs/reference/interfaces/IImmutableProof.md +8 -0
- package/docs/reference/interfaces/IImmutableProofComponent.md +3 -3
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -64,6 +64,10 @@ var properties = {
|
|
|
64
64
|
type: "string",
|
|
65
65
|
description: "The hash of the object associated with the proof."
|
|
66
66
|
},
|
|
67
|
+
verifiableStorageId: {
|
|
68
|
+
type: "string",
|
|
69
|
+
description: "The verifiable storage id for where the proof is stored."
|
|
70
|
+
},
|
|
67
71
|
proof: {
|
|
68
72
|
$ref: "https://schema.twindev.org/did/DataIntegrityProof",
|
|
69
73
|
description: "The proof which can be undefined if it has not yet been issued."
|
package/dist/esm/index.mjs
CHANGED
|
@@ -62,6 +62,10 @@ var properties = {
|
|
|
62
62
|
type: "string",
|
|
63
63
|
description: "The hash of the object associated with the proof."
|
|
64
64
|
},
|
|
65
|
+
verifiableStorageId: {
|
|
66
|
+
type: "string",
|
|
67
|
+
description: "The verifiable storage id for where the proof is stored."
|
|
68
|
+
},
|
|
65
69
|
proof: {
|
|
66
70
|
$ref: "https://schema.twindev.org/did/DataIntegrityProof",
|
|
67
71
|
description: "The proof which can be undefined if it has not yet been issued."
|
|
@@ -38,6 +38,10 @@ export interface IImmutableProof {
|
|
|
38
38
|
* The hash of the object associated with the proof.
|
|
39
39
|
*/
|
|
40
40
|
proofObjectHash: string;
|
|
41
|
+
/**
|
|
42
|
+
* The verifiable storage id for where the proof is stored.
|
|
43
|
+
*/
|
|
44
|
+
verifiableStorageId?: string;
|
|
41
45
|
/**
|
|
42
46
|
* The proof which can be undefined if it has not yet been issued.
|
|
43
47
|
*/
|
|
@@ -29,11 +29,11 @@ export interface IImmutableProofComponent extends IComponent {
|
|
|
29
29
|
*/
|
|
30
30
|
verify(id: string): Promise<IImmutableProofVerification>;
|
|
31
31
|
/**
|
|
32
|
-
* Remove the
|
|
32
|
+
* Remove the verifiable storage for the proof.
|
|
33
33
|
* @param id The id of the proof to remove the storage from.
|
|
34
34
|
* @param nodeIdentity The node identity to use for vault operations.
|
|
35
35
|
* @returns Nothing.
|
|
36
36
|
* @throws NotFoundError if the proof is not found.
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
removeVerifiable(id: string, nodeIdentity?: string): Promise<void>;
|
|
39
39
|
}
|
package/docs/changelog.md
CHANGED
|
@@ -60,6 +60,14 @@ The hash of the object associated with the proof.
|
|
|
60
60
|
|
|
61
61
|
***
|
|
62
62
|
|
|
63
|
+
### verifiableStorageId?
|
|
64
|
+
|
|
65
|
+
> `optional` **verifiableStorageId**: `string`
|
|
66
|
+
|
|
67
|
+
The verifiable storage id for where the proof is stored.
|
|
68
|
+
|
|
69
|
+
***
|
|
70
|
+
|
|
63
71
|
### proof?
|
|
64
72
|
|
|
65
73
|
> `optional` **proof**: `IDataIntegrityProof`
|
|
@@ -94,11 +94,11 @@ NotFoundError if the proof is not found.
|
|
|
94
94
|
|
|
95
95
|
***
|
|
96
96
|
|
|
97
|
-
###
|
|
97
|
+
### removeVerifiable()
|
|
98
98
|
|
|
99
|
-
> **
|
|
99
|
+
> **removeVerifiable**(`id`, `nodeIdentity`?): `Promise`\<`void`\>
|
|
100
100
|
|
|
101
|
-
Remove the
|
|
101
|
+
Remove the verifiable storage for the proof.
|
|
102
102
|
|
|
103
103
|
#### Parameters
|
|
104
104
|
|
package/package.json
CHANGED