@twin.org/immutable-proof-service 0.0.1-next.9 → 0.0.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,6 +1,6 @@
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
  */
@@ -16,50 +16,36 @@ export declare class ImmutableProofService implements IImmutableProofComponent {
16
16
  /**
17
17
  * Create a new instance of ImmutableProofService.
18
18
  * @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
19
  */
26
- constructor(options?: {
27
- vaultConnectorType?: string;
28
- immutableProofEntityStorageType?: string;
29
- immutableStorageType?: string;
30
- identityConnectorType?: string;
31
- backgroundTaskConnectorType?: string;
32
- config?: IImmutableProofServiceConfig;
33
- });
20
+ constructor(options?: IImmutableProofServiceConstructorOptions);
34
21
  /**
35
- * Create a new authentication proof.
36
- * @param proofObject The object for the proof as JSON-LD.
22
+ * Create a new proof.
23
+ * @param document The document to create the proof for.
37
24
  * @param userIdentity The identity to create the immutable proof operation with.
38
25
  * @param nodeIdentity The node identity to use for vault operations.
39
- * @returns The id of the new authentication proof.
26
+ * @returns The id of the new proof.
40
27
  */
41
- create(proofObject: IJsonLdNodeObject, userIdentity?: string, nodeIdentity?: string): Promise<string>;
28
+ create(document: IJsonLdNodeObject, userIdentity?: string, nodeIdentity?: string): Promise<string>;
42
29
  /**
43
- * Get an authentication proof.
30
+ * Get a proof.
44
31
  * @param id The id of the proof to get.
45
32
  * @returns The proof.
46
33
  * @throws NotFoundError if the proof is not found.
47
34
  */
48
35
  get(id: string): Promise<IImmutableProof>;
49
36
  /**
50
- * Verify an authentication proof.
37
+ * Verify a proof.
51
38
  * @param id The id of the proof to verify.
52
- * @param proofObject The object to verify as JSON-LD.
53
39
  * @returns The result of the verification and any failures.
54
40
  * @throws NotFoundError if the proof is not found.
55
41
  */
56
- verify(id: string, proofObject: IJsonLdNodeObject): Promise<IImmutableProofVerification>;
42
+ verify(id: string): Promise<IImmutableProofVerification>;
57
43
  /**
58
- * Remove the immutable storage for the proof.
44
+ * Remove the verifiable storage for the proof.
59
45
  * @param id The id of the proof to remove the storage from.
60
46
  * @param nodeIdentity The node identity to use for vault operations.
61
47
  * @returns Nothing.
62
48
  * @throws NotFoundError if the proof is not found.
63
49
  */
64
- removeImmutable(id: string, nodeIdentity?: string): Promise<void>;
50
+ removeVerifiable(id: string, nodeIdentity?: string): Promise<void>;
65
51
  }
@@ -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,95 @@
1
1
  # @twin.org/immutable-proof-service - Changelog
2
2
 
3
- ## v0.0.1-next.9
3
+ ## 0.0.1 (2025-07-09)
4
+
5
+
6
+ ### Features
7
+
8
+ * release to production ([cb7ecff](https://github.com/twinfoundation/immutable-proof/commit/cb7ecff3e9a1ec8b4391d7efea4a58057b8b66c6))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/immutable-proof-models bumped from ^0.0.0 to ^0.0.1
16
+ * @twin.org/immutable-proof-task bumped from ^0.0.0 to ^0.0.1
17
+
18
+ ## [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)
19
+
20
+
21
+ ### Features
22
+
23
+ * update dependencies ([7d6b321](https://github.com/twinfoundation/immutable-proof/commit/7d6b321928ca0434ee530816b1440f1687b94a6e))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * The following workspace dependencies were updated
29
+ * dependencies
30
+ * @twin.org/immutable-proof-models bumped from 0.0.1-next.34 to 0.0.1-next.35
31
+ * @twin.org/immutable-proof-task bumped from 0.0.1-next.34 to 0.0.1-next.35
32
+
33
+ ## [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)
34
+
35
+
36
+ ### Miscellaneous Chores
37
+
38
+ * **immutable-proof-service:** Synchronize repo versions
39
+
40
+
41
+ ### Dependencies
42
+
43
+ * The following workspace dependencies were updated
44
+ * dependencies
45
+ * @twin.org/immutable-proof-models bumped from 0.0.1-next.33 to 0.0.1-next.34
46
+ * @twin.org/immutable-proof-task bumped from 0.0.1-next.33 to 0.0.1-next.34
47
+
48
+ ## [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)
49
+
50
+
51
+ ### Features
52
+
53
+ * update data types to use fully qualified names ([e94d0f5](https://github.com/twinfoundation/immutable-proof/commit/e94d0f5db93856b5b59cfd34e55252fa13a7f4e0))
54
+
55
+
56
+ ### Dependencies
57
+
58
+ * The following workspace dependencies were updated
59
+ * dependencies
60
+ * @twin.org/immutable-proof-models bumped from 0.0.1-next.32 to 0.0.1-next.33
61
+ * @twin.org/immutable-proof-task bumped from 0.0.1-next.32 to 0.0.1-next.33
62
+
63
+ ## [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)
64
+
65
+
66
+ ### Features
67
+
68
+ * use shared store mechanism ([#3](https://github.com/twinfoundation/immutable-proof/issues/3)) ([7042a40](https://github.com/twinfoundation/immutable-proof/commit/7042a40f0ef8b01463f07aeb1efae4f417162fa1))
69
+
70
+
71
+ ### Dependencies
72
+
73
+ * The following workspace dependencies were updated
74
+ * dependencies
75
+ * @twin.org/immutable-proof-models bumped from 0.0.1-next.31 to 0.0.1-next.32
76
+ * @twin.org/immutable-proof-task bumped from 0.0.1-next.31 to 0.0.1-next.32
77
+
78
+ ## [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)
79
+
80
+
81
+ ### Bug Fixes
82
+
83
+ * 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))
84
+
85
+
86
+ ### Dependencies
87
+
88
+ * The following workspace dependencies were updated
89
+ * dependencies
90
+ * @twin.org/immutable-proof-models bumped from 0.0.1-next.30 to 0.0.1-next.31
91
+ * @twin.org/immutable-proof-task bumped from 0.0.1-next.30 to 0.0.1-next.31
92
+
93
+ ## v0.0.1-next.30
4
94
 
5
95
  - Initial Release