@twin.org/immutable-proof-service 0.0.1-next.9 → 0.0.2-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.
@@ -27,7 +27,7 @@ export declare class ImmutableProof {
27
27
  */
28
28
  proofObjectHash: string;
29
29
  /**
30
- * The immutable storage id.
30
+ * The verifiable storage id.
31
31
  */
32
- immutableStorageId?: string;
32
+ verifiableStorageId?: string;
33
33
  }
@@ -1,14 +1,10 @@
1
1
  import { type IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
2
  import { type IImmutableProof, type IImmutableProofComponent, type IImmutableProofVerification } from "@twin.org/immutable-proof-models";
3
- import type { IImmutableProofServiceConfig } from "./models/IImmutableProofServiceConfig";
3
+ import type { IImmutableProofServiceConstructorOptions } from "./models/IImmutableProofServiceConstructorOptions";
4
4
  /**
5
5
  * Class for performing immutable proof operations.
6
6
  */
7
7
  export declare class ImmutableProofService implements IImmutableProofComponent {
8
- /**
9
- * The namespace for the service.
10
- */
11
- static readonly NAMESPACE: string;
12
8
  /**
13
9
  * Runtime name for the class.
14
10
  */
@@ -16,50 +12,36 @@ export declare class ImmutableProofService implements IImmutableProofComponent {
16
12
  /**
17
13
  * Create a new instance of ImmutableProofService.
18
14
  * @param options The dependencies for the immutable proof connector.
19
- * @param options.config The configuration for the connector.
20
- * @param options.vaultConnectorType The vault connector type, defaults to "vault".
21
- * @param options.immutableProofEntityStorageType The entity storage for proofs, defaults to "immutable-proof".
22
- * @param options.immutableStorageType The immutable storage, defaults to "immutable-storage".
23
- * @param options.identityConnectorType The identity connector type, defaults to "identity".
24
- * @param options.backgroundTaskConnectorType The background task connector type, defaults to "background-task".
25
15
  */
26
- constructor(options?: {
27
- vaultConnectorType?: string;
28
- immutableProofEntityStorageType?: string;
29
- immutableStorageType?: string;
30
- identityConnectorType?: string;
31
- backgroundTaskConnectorType?: string;
32
- config?: IImmutableProofServiceConfig;
33
- });
16
+ constructor(options?: IImmutableProofServiceConstructorOptions);
34
17
  /**
35
- * Create a new authentication proof.
36
- * @param proofObject The object for the proof as JSON-LD.
18
+ * Create a new proof.
19
+ * @param document The document to create the proof for.
37
20
  * @param userIdentity The identity to create the immutable proof operation with.
38
21
  * @param nodeIdentity The node identity to use for vault operations.
39
- * @returns The id of the new authentication proof.
22
+ * @returns The id of the new proof.
40
23
  */
41
- create(proofObject: IJsonLdNodeObject, userIdentity?: string, nodeIdentity?: string): Promise<string>;
24
+ create(document: IJsonLdNodeObject, userIdentity?: string, nodeIdentity?: string): Promise<string>;
42
25
  /**
43
- * Get an authentication proof.
26
+ * Get a proof.
44
27
  * @param id The id of the proof to get.
45
28
  * @returns The proof.
46
29
  * @throws NotFoundError if the proof is not found.
47
30
  */
48
31
  get(id: string): Promise<IImmutableProof>;
49
32
  /**
50
- * Verify an authentication proof.
33
+ * Verify a proof.
51
34
  * @param id The id of the proof to verify.
52
- * @param proofObject The object to verify as JSON-LD.
53
35
  * @returns The result of the verification and any failures.
54
36
  * @throws NotFoundError if the proof is not found.
55
37
  */
56
- verify(id: string, proofObject: IJsonLdNodeObject): Promise<IImmutableProofVerification>;
38
+ verify(id: string): Promise<IImmutableProofVerification>;
57
39
  /**
58
- * Remove the immutable storage for the proof.
40
+ * Remove the verifiable storage for the proof.
59
41
  * @param id The id of the proof to remove the storage from.
60
42
  * @param nodeIdentity The node identity to use for vault operations.
61
43
  * @returns Nothing.
62
44
  * @throws NotFoundError if the proof is not found.
63
45
  */
64
- removeImmutable(id: string, nodeIdentity?: string): Promise<void>;
46
+ removeVerifiable(id: string, nodeIdentity?: string): Promise<void>;
65
47
  }
@@ -1,6 +1,7 @@
1
+ export * from "./entities/immutableProof";
1
2
  export * from "./immutableProofRoutes";
2
3
  export * from "./immutableProofService";
3
- export * from "./entities/immutableProof";
4
4
  export * from "./models/IImmutableProofServiceConfig";
5
+ export * from "./models/IImmutableProofServiceConstructorOptions";
5
6
  export * from "./restEntryPoints";
6
7
  export * from "./schema";
@@ -3,13 +3,8 @@
3
3
  */
4
4
  export interface IImmutableProofServiceConfig {
5
5
  /**
6
- * The assertion method id to use for the stream.
6
+ * The verification method id to use for the proof.
7
7
  * @default immutable-proof-assertion
8
8
  */
9
- assertionMethodId?: string;
10
- /**
11
- * The key to use in the proof hash.
12
- * @default immutable-proof-hash
13
- */
14
- proofHashKeyId?: string;
9
+ verificationMethodId?: string;
15
10
  }
@@ -0,0 +1,34 @@
1
+ import type { IImmutableProofServiceConfig } from "./IImmutableProofServiceConfig";
2
+ /**
3
+ * Options for the immutable proof service constructor.
4
+ */
5
+ export interface IImmutableProofServiceConstructorOptions {
6
+ /**
7
+ * The entity storage for proofs.
8
+ * @default immutable-proof
9
+ */
10
+ immutableProofEntityStorageType?: string;
11
+ /**
12
+ * The verifiable storage.
13
+ * @default verifiable-storage
14
+ */
15
+ verifiableStorageType?: string;
16
+ /**
17
+ * The identity connector type.
18
+ * @default identity
19
+ */
20
+ identityConnectorType?: string;
21
+ /**
22
+ * The background task connector type.
23
+ * @default background-task
24
+ */
25
+ backgroundTaskConnectorType?: string;
26
+ /**
27
+ * The event bus component type, defaults to no event bus.
28
+ */
29
+ eventBusComponentType?: string;
30
+ /**
31
+ * The configuration for the connector.
32
+ */
33
+ config?: IImmutableProofServiceConfig;
34
+ }
package/docs/changelog.md CHANGED
@@ -1,5 +1,119 @@
1
1
  # @twin.org/immutable-proof-service - Changelog
2
2
 
3
- ## v0.0.1-next.9
3
+ ## [0.0.2-next.1](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-service-v0.0.2-next.0...immutable-proof-service-v0.0.2-next.1) (2025-08-20)
4
+
5
+
6
+ ### Features
7
+
8
+ * remove unused namespace ([a39864c](https://github.com/twinfoundation/immutable-proof/commit/a39864c0b2ca8753334a34028b8e5823a14162b4))
9
+ * update data types to use fully qualified names ([e94d0f5](https://github.com/twinfoundation/immutable-proof/commit/e94d0f5db93856b5b59cfd34e55252fa13a7f4e0))
10
+ * update dependencies ([7d6b321](https://github.com/twinfoundation/immutable-proof/commit/7d6b321928ca0434ee530816b1440f1687b94a6e))
11
+ * update framework core ([e708d4d](https://github.com/twinfoundation/immutable-proof/commit/e708d4dd3febcfbcd64663d5be004eab1d26c0fb))
12
+ * use shared store mechanism ([#3](https://github.com/twinfoundation/immutable-proof/issues/3)) ([7042a40](https://github.com/twinfoundation/immutable-proof/commit/7042a40f0ef8b01463f07aeb1efae4f417162fa1))
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * Missing user and node identity on create ([#1](https://github.com/twinfoundation/immutable-proof/issues/1)) ([80ea2f9](https://github.com/twinfoundation/immutable-proof/commit/80ea2f901afc7531f4a522227a61e6fa1482484d))
18
+
19
+
20
+ ### Dependencies
21
+
22
+ * The following workspace dependencies were updated
23
+ * dependencies
24
+ * @twin.org/immutable-proof-models bumped from 0.0.2-next.0 to 0.0.2-next.1
25
+ * @twin.org/immutable-proof-task bumped from 0.0.2-next.0 to 0.0.2-next.1
26
+
27
+ ## 0.0.1 (2025-07-09)
28
+
29
+
30
+ ### Features
31
+
32
+ * release to production ([cb7ecff](https://github.com/twinfoundation/immutable-proof/commit/cb7ecff3e9a1ec8b4391d7efea4a58057b8b66c6))
33
+
34
+
35
+ ### Dependencies
36
+
37
+ * The following workspace dependencies were updated
38
+ * dependencies
39
+ * @twin.org/immutable-proof-models bumped from ^0.0.0 to ^0.0.1
40
+ * @twin.org/immutable-proof-task bumped from ^0.0.0 to ^0.0.1
41
+
42
+ ## [0.0.1-next.35](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-service-v0.0.1-next.34...immutable-proof-service-v0.0.1-next.35) (2025-06-12)
43
+
44
+
45
+ ### Features
46
+
47
+ * update dependencies ([7d6b321](https://github.com/twinfoundation/immutable-proof/commit/7d6b321928ca0434ee530816b1440f1687b94a6e))
48
+
49
+
50
+ ### Dependencies
51
+
52
+ * The following workspace dependencies were updated
53
+ * dependencies
54
+ * @twin.org/immutable-proof-models bumped from 0.0.1-next.34 to 0.0.1-next.35
55
+ * @twin.org/immutable-proof-task bumped from 0.0.1-next.34 to 0.0.1-next.35
56
+
57
+ ## [0.0.1-next.34](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-service-v0.0.1-next.33...immutable-proof-service-v0.0.1-next.34) (2025-06-03)
58
+
59
+
60
+ ### Miscellaneous Chores
61
+
62
+ * **immutable-proof-service:** Synchronize repo versions
63
+
64
+
65
+ ### Dependencies
66
+
67
+ * The following workspace dependencies were updated
68
+ * dependencies
69
+ * @twin.org/immutable-proof-models bumped from 0.0.1-next.33 to 0.0.1-next.34
70
+ * @twin.org/immutable-proof-task bumped from 0.0.1-next.33 to 0.0.1-next.34
71
+
72
+ ## [0.0.1-next.33](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-service-v0.0.1-next.32...immutable-proof-service-v0.0.1-next.33) (2025-05-28)
73
+
74
+
75
+ ### Features
76
+
77
+ * update data types to use fully qualified names ([e94d0f5](https://github.com/twinfoundation/immutable-proof/commit/e94d0f5db93856b5b59cfd34e55252fa13a7f4e0))
78
+
79
+
80
+ ### Dependencies
81
+
82
+ * The following workspace dependencies were updated
83
+ * dependencies
84
+ * @twin.org/immutable-proof-models bumped from 0.0.1-next.32 to 0.0.1-next.33
85
+ * @twin.org/immutable-proof-task bumped from 0.0.1-next.32 to 0.0.1-next.33
86
+
87
+ ## [0.0.1-next.32](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-service-v0.0.1-next.31...immutable-proof-service-v0.0.1-next.32) (2025-04-17)
88
+
89
+
90
+ ### Features
91
+
92
+ * use shared store mechanism ([#3](https://github.com/twinfoundation/immutable-proof/issues/3)) ([7042a40](https://github.com/twinfoundation/immutable-proof/commit/7042a40f0ef8b01463f07aeb1efae4f417162fa1))
93
+
94
+
95
+ ### Dependencies
96
+
97
+ * The following workspace dependencies were updated
98
+ * dependencies
99
+ * @twin.org/immutable-proof-models bumped from 0.0.1-next.31 to 0.0.1-next.32
100
+ * @twin.org/immutable-proof-task bumped from 0.0.1-next.31 to 0.0.1-next.32
101
+
102
+ ## [0.0.1-next.31](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-service-v0.0.1-next.30...immutable-proof-service-v0.0.1-next.31) (2025-03-28)
103
+
104
+
105
+ ### Bug Fixes
106
+
107
+ * Missing user and node identity on create ([#1](https://github.com/twinfoundation/immutable-proof/issues/1)) ([80ea2f9](https://github.com/twinfoundation/immutable-proof/commit/80ea2f901afc7531f4a522227a61e6fa1482484d))
108
+
109
+
110
+ ### Dependencies
111
+
112
+ * The following workspace dependencies were updated
113
+ * dependencies
114
+ * @twin.org/immutable-proof-models bumped from 0.0.1-next.30 to 0.0.1-next.31
115
+ * @twin.org/immutable-proof-task bumped from 0.0.1-next.30 to 0.0.1-next.31
116
+
117
+ ## v0.0.1-next.30
4
118
 
5
119
  - Initial Release