@twin.org/immutable-proof-models 0.0.1-next.13 → 0.0.1-next.15

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.
@@ -141,6 +141,20 @@ const ImmutableProofFailure = {
141
141
  SignatureMismatch: "signatureMismatch"
142
142
  };
143
143
 
144
+ // Copyright 2024 IOTA Stiftung.
145
+ // SPDX-License-Identifier: Apache-2.0.
146
+ /**
147
+ * The topics for immutable proof event bus notifications.
148
+ */
149
+ // eslint-disable-next-line @typescript-eslint/naming-convention
150
+ const ImmutableProofTopics = {
151
+ /**
152
+ * A proof was created.
153
+ */
154
+ ProofCreated: "immutable-proof:proof-created"
155
+ };
156
+
144
157
  exports.ImmutableProofDataTypes = ImmutableProofDataTypes;
145
158
  exports.ImmutableProofFailure = ImmutableProofFailure;
159
+ exports.ImmutableProofTopics = ImmutableProofTopics;
146
160
  exports.ImmutableProofTypes = ImmutableProofTypes;
@@ -139,4 +139,17 @@ const ImmutableProofFailure = {
139
139
  SignatureMismatch: "signatureMismatch"
140
140
  };
141
141
 
142
- export { ImmutableProofDataTypes, ImmutableProofFailure, ImmutableProofTypes };
142
+ // Copyright 2024 IOTA Stiftung.
143
+ // SPDX-License-Identifier: Apache-2.0.
144
+ /**
145
+ * The topics for immutable proof event bus notifications.
146
+ */
147
+ // eslint-disable-next-line @typescript-eslint/naming-convention
148
+ const ImmutableProofTopics = {
149
+ /**
150
+ * A proof was created.
151
+ */
152
+ ProofCreated: "immutable-proof:proof-created"
153
+ };
154
+
155
+ export { ImmutableProofDataTypes, ImmutableProofFailure, ImmutableProofTopics, ImmutableProofTypes };
@@ -4,8 +4,10 @@ export * from "./models/api/IImmutableProofGetRequest";
4
4
  export * from "./models/api/IImmutableProofGetResponse";
5
5
  export * from "./models/api/IImmutableProofVerifyRequest";
6
6
  export * from "./models/api/IImmutableProofVerifyResponse";
7
+ export * from "./models/eventBus/IImmutableProofEventBusProofCreated";
7
8
  export * from "./models/IImmutableProof";
8
- export * from "./models/IImmutableProofVerification";
9
9
  export * from "./models/IImmutableProofComponent";
10
+ export * from "./models/IImmutableProofVerification";
10
11
  export * from "./models/immutableProofFailure";
12
+ export * from "./models/immutableProofTopics";
11
13
  export * from "./models/immutableProofTypes";
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Event bus payload for proof created.
3
+ */
4
+ export interface IImmutableProofEventBusProofCreated {
5
+ /**
6
+ * The id of the proof created.
7
+ */
8
+ id: string;
9
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The topics for immutable proof event bus notifications.
3
+ */
4
+ export declare const ImmutableProofTopics: {
5
+ /**
6
+ * A proof was created.
7
+ */
8
+ readonly ProofCreated: "immutable-proof:proof-created";
9
+ };
10
+ /**
11
+ * The topics for immutable proof event bus notifications.
12
+ */
13
+ export type ImmutableProofTopics = (typeof ImmutableProofTopics)[keyof typeof ImmutableProofTopics];
package/docs/changelog.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # @twin.org/immutable-proof-models - Changelog
2
2
 
3
- ## v0.0.1-next.13
3
+ ## v0.0.1-next.15
4
4
 
5
5
  - Initial Release
@@ -14,13 +14,16 @@
14
14
  - [IImmutableProofGetResponse](interfaces/IImmutableProofGetResponse.md)
15
15
  - [IImmutableProofVerifyRequest](interfaces/IImmutableProofVerifyRequest.md)
16
16
  - [IImmutableProofVerifyResponse](interfaces/IImmutableProofVerifyResponse.md)
17
+ - [IImmutableProofEventBusProofCreated](interfaces/IImmutableProofEventBusProofCreated.md)
17
18
 
18
19
  ## Type Aliases
19
20
 
20
21
  - [ImmutableProofFailure](type-aliases/ImmutableProofFailure.md)
22
+ - [ImmutableProofTopics](type-aliases/ImmutableProofTopics.md)
21
23
  - [ImmutableProofTypes](type-aliases/ImmutableProofTypes.md)
22
24
 
23
25
  ## Variables
24
26
 
25
27
  - [ImmutableProofFailure](variables/ImmutableProofFailure.md)
28
+ - [ImmutableProofTopics](variables/ImmutableProofTopics.md)
26
29
  - [ImmutableProofTypes](variables/ImmutableProofTypes.md)
@@ -6,7 +6,7 @@ Interface describing an immutable proof state.
6
6
 
7
7
  ### @context
8
8
 
9
- > **@context**: `"https://schema.twindev.org/immutable-proof/"` \| [`"https://schema.twindev.org/immutable-proof/"`, `...string[]`]
9
+ > **@context**: `"https://schema.twindev.org/immutable-proof/"` \| \[`"https://schema.twindev.org/immutable-proof/"`, `...string[]`\]
10
10
 
11
11
  JSON-LD Context.
12
12
 
@@ -16,15 +16,21 @@ Create a new authentication proof.
16
16
 
17
17
  #### Parameters
18
18
 
19
- **proofObject**: `IJsonLdNodeObject`
19
+ ##### proofObject
20
+
21
+ `IJsonLdNodeObject`
20
22
 
21
23
  The object for the proof as JSON-LD.
22
24
 
23
- **userIdentity?**: `string`
25
+ ##### userIdentity?
26
+
27
+ `string`
24
28
 
25
29
  The identity to create the immutable proof operation with.
26
30
 
27
- **nodeIdentity?**: `string`
31
+ ##### nodeIdentity?
32
+
33
+ `string`
28
34
 
29
35
  The node identity to use for vault operations.
30
36
 
@@ -44,7 +50,9 @@ Get an authentication proof.
44
50
 
45
51
  #### Parameters
46
52
 
47
- **id**: `string`
53
+ ##### id
54
+
55
+ `string`
48
56
 
49
57
  The id of the proof to get.
50
58
 
@@ -68,7 +76,9 @@ Verify an authentication proof.
68
76
 
69
77
  #### Parameters
70
78
 
71
- **id**: `string`
79
+ ##### id
80
+
81
+ `string`
72
82
 
73
83
  The id of the proof to verify.
74
84
 
@@ -92,11 +102,15 @@ Remove the immutable storage for the proof.
92
102
 
93
103
  #### Parameters
94
104
 
95
- **id**: `string`
105
+ ##### id
106
+
107
+ `string`
96
108
 
97
109
  The id of the proof to remove the storage from.
98
110
 
99
- **nodeIdentity?**: `string`
111
+ ##### nodeIdentity?
112
+
113
+ `string`
100
114
 
101
115
  The node identity to use for vault operations.
102
116
 
@@ -0,0 +1,11 @@
1
+ # Interface: IImmutableProofEventBusProofCreated
2
+
3
+ Event bus payload for proof created.
4
+
5
+ ## Properties
6
+
7
+ ### id
8
+
9
+ > **id**: `string`
10
+
11
+ The id of the proof created.
@@ -0,0 +1,5 @@
1
+ # Type Alias: ImmutableProofTopics
2
+
3
+ > **ImmutableProofTopics**: *typeof* [`ImmutableProofTopics`](../variables/ImmutableProofTopics.md)\[keyof *typeof* [`ImmutableProofTopics`](../variables/ImmutableProofTopics.md)\]
4
+
5
+ The topics for immutable proof event bus notifications.
@@ -0,0 +1,13 @@
1
+ # Variable: ImmutableProofTopics
2
+
3
+ > `const` **ImmutableProofTopics**: `object`
4
+
5
+ The topics for immutable proof event bus notifications.
6
+
7
+ ## Type declaration
8
+
9
+ ### ProofCreated
10
+
11
+ > `readonly` **ProofCreated**: `"immutable-proof:proof-created"` = `"immutable-proof:proof-created"`
12
+
13
+ A proof was created.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@twin.org/immutable-proof-models",
3
- "version": "0.0.1-next.13",
3
+ "version": "0.0.1-next.15",
4
4
  "description": "Models which define the structure of the immutable proof connectors and services",
5
5
  "repository": {
6
6
  "type": "git",