@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.
- package/dist/cjs/index.cjs +14 -0
- package/dist/esm/index.mjs +14 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/models/eventBus/IImmutableProofEventBusProofCreated.d.ts +9 -0
- package/dist/types/models/immutableProofTopics.d.ts +13 -0
- package/docs/changelog.md +1 -1
- package/docs/reference/index.md +3 -0
- package/docs/reference/interfaces/IImmutableProof.md +1 -1
- package/docs/reference/interfaces/IImmutableProofComponent.md +21 -7
- package/docs/reference/interfaces/IImmutableProofEventBusProofCreated.md +11 -0
- package/docs/reference/type-aliases/ImmutableProofTopics.md +5 -0
- package/docs/reference/variables/ImmutableProofTopics.md +13 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -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;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -139,4 +139,17 @@ const ImmutableProofFailure = {
|
|
|
139
139
|
SignatureMismatch: "signatureMismatch"
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
-
|
|
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 };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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,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
package/docs/reference/index.md
CHANGED
|
@@ -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
|
-
|
|
19
|
+
##### proofObject
|
|
20
|
+
|
|
21
|
+
`IJsonLdNodeObject`
|
|
20
22
|
|
|
21
23
|
The object for the proof as JSON-LD.
|
|
22
24
|
|
|
23
|
-
|
|
25
|
+
##### userIdentity?
|
|
26
|
+
|
|
27
|
+
`string`
|
|
24
28
|
|
|
25
29
|
The identity to create the immutable proof operation with.
|
|
26
30
|
|
|
27
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
105
|
+
##### id
|
|
106
|
+
|
|
107
|
+
`string`
|
|
96
108
|
|
|
97
109
|
The id of the proof to remove the storage from.
|
|
98
110
|
|
|
99
|
-
|
|
111
|
+
##### nodeIdentity?
|
|
112
|
+
|
|
113
|
+
`string`
|
|
100
114
|
|
|
101
115
|
The node identity to use for vault operations.
|
|
102
116
|
|
|
@@ -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