@twin.org/immutable-proof-models 0.0.3-next.1 → 0.0.3-next.11
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/README.md +1 -1
- package/dist/es/dataTypes/immutableProofDataTypes.js +23 -7
- package/dist/es/dataTypes/immutableProofDataTypes.js.map +1 -1
- package/dist/es/index.js +1 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IImmutableProof.js.map +1 -1
- package/dist/es/models/IImmutableProofComponent.js.map +1 -1
- package/dist/es/models/IImmutableProofReceipt.js +2 -0
- package/dist/es/models/IImmutableProofReceipt.js.map +1 -0
- package/dist/es/models/IImmutableProofVerification.js.map +1 -1
- package/dist/es/models/api/IImmutableProofGetResponse.js.map +1 -1
- package/dist/es/models/immutableProofContexts.js +20 -4
- package/dist/es/models/immutableProofContexts.js.map +1 -1
- package/dist/es/models/immutableProofFailure.js +4 -8
- package/dist/es/models/immutableProofFailure.js.map +1 -1
- package/dist/es/models/immutableProofTypes.js +9 -1
- package/dist/es/models/immutableProofTypes.js.map +1 -1
- package/dist/es/schemas/ImmutableProof.json +9 -32
- package/dist/es/schemas/ImmutableProofFailure.json +24 -0
- package/dist/es/schemas/ImmutableProofReceipt.json +39 -0
- package/dist/es/schemas/ImmutableProofVerification.json +30 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/IImmutableProof.d.ts +6 -27
- package/dist/types/models/IImmutableProofComponent.d.ts +2 -2
- package/dist/types/models/IImmutableProofReceipt.d.ts +26 -0
- package/dist/types/models/IImmutableProofVerification.d.ts +3 -1
- package/dist/types/models/api/IImmutableProofGetResponse.d.ts +2 -2
- package/dist/types/models/immutableProofContexts.d.ts +20 -4
- package/dist/types/models/immutableProofFailure.d.ts +4 -8
- package/dist/types/models/immutableProofTypes.d.ts +8 -0
- package/docs/changelog.md +71 -1
- package/docs/examples.md +72 -1
- package/docs/reference/classes/ImmutableProofDataTypes.md +1 -1
- package/docs/reference/index.md +1 -0
- package/docs/reference/interfaces/IImmutableProof.md +9 -41
- package/docs/reference/interfaces/IImmutableProofComponent.md +6 -6
- package/docs/reference/interfaces/IImmutableProofCreateRequest.md +1 -1
- package/docs/reference/interfaces/IImmutableProofEventBusProofCreated.md +1 -1
- package/docs/reference/interfaces/IImmutableProofGetRequest.md +3 -3
- package/docs/reference/interfaces/IImmutableProofGetResponse.md +4 -4
- package/docs/reference/interfaces/IImmutableProofReceipt.md +35 -0
- package/docs/reference/interfaces/IImmutableProofVerification.md +5 -5
- package/docs/reference/interfaces/IImmutableProofVerifyRequest.md +3 -3
- package/docs/reference/interfaces/IImmutableProofVerifyResponse.md +3 -3
- package/docs/reference/variables/ImmutableProofContexts.md +30 -6
- package/docs/reference/variables/ImmutableProofFailure.md +8 -14
- package/docs/reference/variables/ImmutableProofTopics.md +1 -1
- package/docs/reference/variables/ImmutableProofTypes.md +14 -2
- package/package.json +2 -2
|
@@ -6,10 +6,18 @@ export declare const ImmutableProofTypes: {
|
|
|
6
6
|
* Represents Immutable Proof.
|
|
7
7
|
*/
|
|
8
8
|
readonly ImmutableProof: "ImmutableProof";
|
|
9
|
+
/**
|
|
10
|
+
* Represents Immutable Proof Receipt.
|
|
11
|
+
*/
|
|
12
|
+
readonly ImmutableProofReceipt: "ImmutableProofReceipt";
|
|
9
13
|
/**
|
|
10
14
|
* Represents Immutable Proof Verification.
|
|
11
15
|
*/
|
|
12
16
|
readonly ImmutableProofVerification: "ImmutableProofVerification";
|
|
17
|
+
/**
|
|
18
|
+
* Represents Immutable Proof Failure.
|
|
19
|
+
*/
|
|
20
|
+
readonly ImmutableProofFailure: "ImmutableProofFailure";
|
|
13
21
|
};
|
|
14
22
|
/**
|
|
15
23
|
* The types of immutable proof data.
|
package/docs/changelog.md
CHANGED
|
@@ -1,4 +1,74 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.0.3-next.11](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-models-v0.0.3-next.10...immutable-proof-models-v0.0.3-next.11) (2026-03-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add missing proof type registration ([1e9f52b](https://github.com/twinfoundation/immutable-proof/commit/1e9f52b88ab201e97c9d2aa7611fb8f77a82d614))
|
|
9
|
+
|
|
10
|
+
## [0.0.3-next.10](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-models-v0.0.3-next.9...immutable-proof-models-v0.0.3-next.10) (2026-02-25)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* update schemas ([ab0569a](https://github.com/twinfoundation/immutable-proof/commit/ab0569adf3419beefd8aef7793fdbe5b2fe2d93e))
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.9](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-models-v0.0.3-next.8...immutable-proof-models-v0.0.3-next.9) (2026-02-13)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Miscellaneous Chores
|
|
21
|
+
|
|
22
|
+
* **immutable-proof-models:** Synchronize repo versions
|
|
23
|
+
|
|
24
|
+
## [0.0.3-next.8](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-models-v0.0.3-next.7...immutable-proof-models-v0.0.3-next.8) (2026-02-10)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* immutable proof as vc ([#31](https://github.com/twinfoundation/immutable-proof/issues/31)) ([79cdb03](https://github.com/twinfoundation/immutable-proof/commit/79cdb03eb86c4f6d2ab1d5bf235f74ff74e8b877))
|
|
30
|
+
|
|
31
|
+
## [0.0.3-next.7](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-models-v0.0.3-next.6...immutable-proof-models-v0.0.3-next.7) (2026-02-05)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
* add ts-to-jsonld-context tool ([871191b](https://github.com/twinfoundation/immutable-proof/commit/871191b75cb82c2f6daaab08a71384ba92f02a64))
|
|
37
|
+
|
|
38
|
+
## [0.0.3-next.6](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-models-v0.0.3-next.5...immutable-proof-models-v0.0.3-next.6) (2026-01-21)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Features
|
|
42
|
+
|
|
43
|
+
* update contexts ([#22](https://github.com/twinfoundation/immutable-proof/issues/22)) ([645b880](https://github.com/twinfoundation/immutable-proof/commit/645b8803540408c74e3891b2c5ff9aefd5908d9f))
|
|
44
|
+
|
|
45
|
+
## [0.0.3-next.5](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-models-v0.0.3-next.4...immutable-proof-models-v0.0.3-next.5) (2026-01-14)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* update contexts and namespaces ([#20](https://github.com/twinfoundation/immutable-proof/issues/20)) ([d38aa69](https://github.com/twinfoundation/immutable-proof/commit/d38aa696c73e4fcc304f08fb458d5900109abcb4))
|
|
51
|
+
|
|
52
|
+
## [0.0.3-next.4](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-models-v0.0.3-next.3...immutable-proof-models-v0.0.3-next.4) (2026-01-07)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Miscellaneous Chores
|
|
56
|
+
|
|
57
|
+
* **immutable-proof-models:** Synchronize repo versions
|
|
58
|
+
|
|
59
|
+
## [0.0.3-next.3](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-models-v0.0.3-next.2...immutable-proof-models-v0.0.3-next.3) (2025-11-28)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Miscellaneous Chores
|
|
63
|
+
|
|
64
|
+
* **immutable-proof-models:** Synchronize repo versions
|
|
65
|
+
|
|
66
|
+
## [0.0.3-next.2](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-models-v0.0.3-next.1...immutable-proof-models-v0.0.3-next.2) (2025-11-28)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Miscellaneous Chores
|
|
70
|
+
|
|
71
|
+
* **immutable-proof-models:** Synchronize repo versions
|
|
2
72
|
|
|
3
73
|
## [0.0.3-next.1](https://github.com/twinfoundation/immutable-proof/compare/immutable-proof-models-v0.0.3-next.0...immutable-proof-models-v0.0.3-next.1) (2025-11-12)
|
|
4
74
|
|
package/docs/examples.md
CHANGED
|
@@ -1 +1,72 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Immutable Proof Models Examples
|
|
2
|
+
|
|
3
|
+
These snippets show how to register data types and then use the immutable proof model contracts in request and response flows.
|
|
4
|
+
|
|
5
|
+
## ImmutableProofDataTypes
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { DataTypeHandlerFactory } from '@twin.org/data-core';
|
|
9
|
+
import { ImmutableProofDataTypes, ImmutableProofTypes } from '@twin.org/immutable-proof-models';
|
|
10
|
+
|
|
11
|
+
ImmutableProofDataTypes.registerTypes();
|
|
12
|
+
|
|
13
|
+
const handler = DataTypeHandlerFactory.get(
|
|
14
|
+
'https://schema.twindev.org/immutable-proof/ImmutableProof'
|
|
15
|
+
);
|
|
16
|
+
console.log(handler.type === ImmutableProofTypes.ImmutableProof); // true
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Model Contracts
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type {
|
|
23
|
+
IImmutableProofCreateRequest,
|
|
24
|
+
IImmutableProofGetResponse,
|
|
25
|
+
IImmutableProofVerifyResponse
|
|
26
|
+
} from '@twin.org/immutable-proof-models';
|
|
27
|
+
|
|
28
|
+
const createRequest: IImmutableProofCreateRequest = {
|
|
29
|
+
body: {
|
|
30
|
+
document: {
|
|
31
|
+
'@context': 'https://schema.org',
|
|
32
|
+
type: 'Person',
|
|
33
|
+
name: 'Alice Example'
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
console.log(createRequest.body.document.type); // Person
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
```typescript
|
|
42
|
+
import { ImmutableProofFailure, ImmutableProofTypes } from '@twin.org/immutable-proof-models';
|
|
43
|
+
import type {
|
|
44
|
+
IImmutableProofGetResponse,
|
|
45
|
+
IImmutableProofVerifyResponse
|
|
46
|
+
} from '@twin.org/immutable-proof-models';
|
|
47
|
+
|
|
48
|
+
const getResponse: IImmutableProofGetResponse = {
|
|
49
|
+
body: {
|
|
50
|
+
'@context': ['https://www.w3.org/2018/credentials/v1'],
|
|
51
|
+
type: ['VerifiableCredential', ImmutableProofTypes.ImmutableProof],
|
|
52
|
+
issuer: 'did:iota:tst:issuer',
|
|
53
|
+
id: 'immutable-proof:01JABCDEF1234567890',
|
|
54
|
+
credentialSubject: {
|
|
55
|
+
id: 'https://example.org/documents/100',
|
|
56
|
+
proofIntegrity: 'yEr9VvYCGDh2Ww1YwQMehUy4LlW35mLhX8j8R8U6x0g='
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const verifyResponse: IImmutableProofVerifyResponse = {
|
|
62
|
+
body: {
|
|
63
|
+
'@context': 'https://schema.twindev.org/immutable-proof',
|
|
64
|
+
type: ImmutableProofTypes.ImmutableProofVerification,
|
|
65
|
+
verified: false,
|
|
66
|
+
failure: ImmutableProofFailure.ProofMissing
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
console.log(getResponse.body.id); // immutable-proof:01JABCDEF1234567890
|
|
71
|
+
console.log(verifyResponse.body.failure); // proof-missing
|
|
72
|
+
```
|
package/docs/reference/index.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
- [IImmutableProof](interfaces/IImmutableProof.md)
|
|
10
10
|
- [IImmutableProofComponent](interfaces/IImmutableProofComponent.md)
|
|
11
|
+
- [IImmutableProofReceipt](interfaces/IImmutableProofReceipt.md)
|
|
11
12
|
- [IImmutableProofVerification](interfaces/IImmutableProofVerification.md)
|
|
12
13
|
- [IImmutableProofCreateRequest](interfaces/IImmutableProofCreateRequest.md)
|
|
13
14
|
- [IImmutableProofGetRequest](interfaces/IImmutableProofGetRequest.md)
|
|
@@ -4,64 +4,32 @@ Interface describing an immutable proof state.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### @context
|
|
7
|
+
### @context? {#context}
|
|
8
8
|
|
|
9
|
-
> **@context
|
|
9
|
+
> `optional` **@context?**: \[`"https://schema.twindev.org/immutable-proof/"`, `"https://schema.twindev.org/common/"`\]
|
|
10
10
|
|
|
11
11
|
JSON-LD Context.
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### type
|
|
15
|
+
### type? {#type}
|
|
16
16
|
|
|
17
|
-
> **type
|
|
17
|
+
> `optional` **type?**: `"ImmutableProof"`
|
|
18
18
|
|
|
19
19
|
JSON-LD Type.
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### id
|
|
23
|
+
### id? {#id}
|
|
24
24
|
|
|
25
|
-
> **id
|
|
26
|
-
|
|
27
|
-
The id of the proof.
|
|
28
|
-
|
|
29
|
-
***
|
|
30
|
-
|
|
31
|
-
### proofObjectId?
|
|
32
|
-
|
|
33
|
-
> `optional` **proofObjectId**: `string`
|
|
25
|
+
> `optional` **id?**: `string`
|
|
34
26
|
|
|
35
27
|
The id of the object associated with the proof.
|
|
36
28
|
|
|
37
29
|
***
|
|
38
30
|
|
|
39
|
-
###
|
|
40
|
-
|
|
41
|
-
> **proofObjectHash**: `string`
|
|
42
|
-
|
|
43
|
-
The hash of the object associated with the proof.
|
|
44
|
-
|
|
45
|
-
***
|
|
46
|
-
|
|
47
|
-
### verifiableStorageId?
|
|
48
|
-
|
|
49
|
-
> `optional` **verifiableStorageId**: `string`
|
|
50
|
-
|
|
51
|
-
The verifiable storage id for where the proof is stored.
|
|
52
|
-
|
|
53
|
-
***
|
|
54
|
-
|
|
55
|
-
### proof?
|
|
56
|
-
|
|
57
|
-
> `optional` **proof**: `IDataIntegrityProof`
|
|
58
|
-
|
|
59
|
-
The proof which can be undefined if it has not yet been issued.
|
|
60
|
-
|
|
61
|
-
***
|
|
62
|
-
|
|
63
|
-
### immutableReceipt?
|
|
31
|
+
### proofIntegrity {#proofintegrity}
|
|
64
32
|
|
|
65
|
-
>
|
|
33
|
+
> **proofIntegrity**: `string`
|
|
66
34
|
|
|
67
|
-
The
|
|
35
|
+
The integrity hash of the object associated with the proof.
|
|
@@ -8,7 +8,7 @@ Interface describing an immutable proof contract.
|
|
|
8
8
|
|
|
9
9
|
## Methods
|
|
10
10
|
|
|
11
|
-
### create()
|
|
11
|
+
### create() {#create}
|
|
12
12
|
|
|
13
13
|
> **create**(`document`): `Promise`\<`string`\>
|
|
14
14
|
|
|
@@ -30,9 +30,9 @@ The id of the new proof.
|
|
|
30
30
|
|
|
31
31
|
***
|
|
32
32
|
|
|
33
|
-
### get()
|
|
33
|
+
### get() {#get}
|
|
34
34
|
|
|
35
|
-
> **get**(`id`): `Promise
|
|
35
|
+
> **get**(`id`): `Promise`\<`IDidVerifiableCredential`\>
|
|
36
36
|
|
|
37
37
|
Get a proof.
|
|
38
38
|
|
|
@@ -46,7 +46,7 @@ The id of the proof to get.
|
|
|
46
46
|
|
|
47
47
|
#### Returns
|
|
48
48
|
|
|
49
|
-
`Promise
|
|
49
|
+
`Promise`\<`IDidVerifiableCredential`\>
|
|
50
50
|
|
|
51
51
|
The proof.
|
|
52
52
|
|
|
@@ -56,7 +56,7 @@ NotFoundError if the proof is not found.
|
|
|
56
56
|
|
|
57
57
|
***
|
|
58
58
|
|
|
59
|
-
### verify()
|
|
59
|
+
### verify() {#verify}
|
|
60
60
|
|
|
61
61
|
> **verify**(`id`): `Promise`\<[`IImmutableProofVerification`](IImmutableProofVerification.md)\>
|
|
62
62
|
|
|
@@ -82,7 +82,7 @@ NotFoundError if the proof is not found.
|
|
|
82
82
|
|
|
83
83
|
***
|
|
84
84
|
|
|
85
|
-
### removeVerifiable()
|
|
85
|
+
### removeVerifiable() {#removeverifiable}
|
|
86
86
|
|
|
87
87
|
> **removeVerifiable**(`id`): `Promise`\<`void`\>
|
|
88
88
|
|
|
@@ -4,9 +4,9 @@ Get a proof.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### headers?
|
|
7
|
+
### headers? {#headers}
|
|
8
8
|
|
|
9
|
-
> `optional` **headers
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
10
|
|
|
11
11
|
The headers which can be used to determine the response data type.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ The headers which can be used to determine the response data type.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
### pathParams
|
|
19
|
+
### pathParams {#pathparams}
|
|
20
20
|
|
|
21
21
|
> **pathParams**: `object`
|
|
22
22
|
|
|
@@ -4,9 +4,9 @@ Response to getting an immutable proof.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### headers?
|
|
7
|
+
### headers? {#headers}
|
|
8
8
|
|
|
9
|
-
> `optional` **headers
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
10
|
|
|
11
11
|
The headers which can be used to determine the response data type.
|
|
12
12
|
|
|
@@ -16,8 +16,8 @@ The headers which can be used to determine the response data type.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
### body
|
|
19
|
+
### body {#body}
|
|
20
20
|
|
|
21
|
-
> **body**:
|
|
21
|
+
> **body**: `IDidVerifiableCredential`
|
|
22
22
|
|
|
23
23
|
The response body.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Interface: IImmutableProofReceipt
|
|
2
|
+
|
|
3
|
+
Interface describing an immutable proof receipt.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### @context? {#context}
|
|
8
|
+
|
|
9
|
+
> `optional` **@context?**: \[`"https://schema.twindev.org/immutable-proof/"`, `"https://schema.twindev.org/common/"`\]
|
|
10
|
+
|
|
11
|
+
JSON-LD Context.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### type {#type}
|
|
16
|
+
|
|
17
|
+
> **type**: `"ImmutableProofReceipt"`
|
|
18
|
+
|
|
19
|
+
JSON-LD Type.
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### immutableReceipt? {#immutablereceipt}
|
|
24
|
+
|
|
25
|
+
> `optional` **immutableReceipt?**: `IJsonLdNodeObject`
|
|
26
|
+
|
|
27
|
+
The immutable receipt detail for where the proof is stored.
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### verifiableStorageId? {#verifiablestorageid}
|
|
32
|
+
|
|
33
|
+
> `optional` **verifiableStorageId?**: `string`
|
|
34
|
+
|
|
35
|
+
The verifiable storage id for where the proof is stored.
|
|
@@ -4,7 +4,7 @@ Interface describing an immutable proof verification.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### @context
|
|
7
|
+
### @context {#context}
|
|
8
8
|
|
|
9
9
|
> **@context**: `"https://schema.twindev.org/immutable-proof/"`
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ JSON-LD Context.
|
|
|
12
12
|
|
|
13
13
|
***
|
|
14
14
|
|
|
15
|
-
### type
|
|
15
|
+
### type {#type}
|
|
16
16
|
|
|
17
17
|
> **type**: `"ImmutableProofVerification"`
|
|
18
18
|
|
|
@@ -20,7 +20,7 @@ JSON-LD Type.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
### verified
|
|
23
|
+
### verified {#verified}
|
|
24
24
|
|
|
25
25
|
> **verified**: `boolean`
|
|
26
26
|
|
|
@@ -28,8 +28,8 @@ Was the verification successful.
|
|
|
28
28
|
|
|
29
29
|
***
|
|
30
30
|
|
|
31
|
-
### failure?
|
|
31
|
+
### failure? {#failure}
|
|
32
32
|
|
|
33
|
-
> `optional` **failure
|
|
33
|
+
> `optional` **failure?**: [`ImmutableProofFailure`](../type-aliases/ImmutableProofFailure.md)
|
|
34
34
|
|
|
35
35
|
If the verification was unsuccessful the failure reason.
|
|
@@ -4,9 +4,9 @@ Verify a proof.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### headers?
|
|
7
|
+
### headers? {#headers}
|
|
8
8
|
|
|
9
|
-
> `optional` **headers
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
10
|
|
|
11
11
|
The headers which can be used to determine the response data type.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ The headers which can be used to determine the response data type.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
### pathParams
|
|
19
|
+
### pathParams {#pathparams}
|
|
20
20
|
|
|
21
21
|
> **pathParams**: `object`
|
|
22
22
|
|
|
@@ -4,9 +4,9 @@ Response to verifying an immutable proof.
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
|
-
### headers?
|
|
7
|
+
### headers? {#headers}
|
|
8
8
|
|
|
9
|
-
> `optional` **headers
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
10
|
|
|
11
11
|
The headers which can be used to determine the response data type.
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@ The headers which can be used to determine the response data type.
|
|
|
16
16
|
|
|
17
17
|
***
|
|
18
18
|
|
|
19
|
-
### body
|
|
19
|
+
### body {#body}
|
|
20
20
|
|
|
21
21
|
> **body**: [`IImmutableProofVerification`](IImmutableProofVerification.md)
|
|
22
22
|
|
|
@@ -6,14 +6,38 @@ The contexts of immutable proof data.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Namespace {#namespace}
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **Namespace**: `"https://schema.twindev.org/immutable-proof/"` = `"https://schema.twindev.org/immutable-proof/"`
|
|
12
12
|
|
|
13
|
-
The
|
|
13
|
+
The canonical RDF namespace URI for Immutable Proof.
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### Context {#context}
|
|
16
16
|
|
|
17
|
-
> `readonly` **
|
|
17
|
+
> `readonly` **Context**: `"https://schema.twindev.org/immutable-proof/"` = `"https://schema.twindev.org/immutable-proof/"`
|
|
18
18
|
|
|
19
|
-
The context
|
|
19
|
+
The value to use in context for Immutable Proof.
|
|
20
|
+
|
|
21
|
+
### JsonLdContext {#jsonldcontext}
|
|
22
|
+
|
|
23
|
+
> `readonly` **JsonLdContext**: `"https://schema.twindev.org/immutable-proof/types.jsonld"` = `"https://schema.twindev.org/immutable-proof/types.jsonld"`
|
|
24
|
+
|
|
25
|
+
The JSON-LD Context URL for Immutable Proof.
|
|
26
|
+
|
|
27
|
+
### NamespaceCommon {#namespacecommon}
|
|
28
|
+
|
|
29
|
+
> `readonly` **NamespaceCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
|
|
30
|
+
|
|
31
|
+
The canonical RDF namespace URI for TWIN Common.
|
|
32
|
+
|
|
33
|
+
### ContextCommon {#contextcommon}
|
|
34
|
+
|
|
35
|
+
> `readonly` **ContextCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
|
|
36
|
+
|
|
37
|
+
The value to use in JSON-LD context for TWIN Common.
|
|
38
|
+
|
|
39
|
+
### JsonLdContextCommon {#jsonldcontextcommon}
|
|
40
|
+
|
|
41
|
+
> `readonly` **JsonLdContextCommon**: `"https://schema.twindev.org/common/types.jsonld"` = `"https://schema.twindev.org/common/types.jsonld"`
|
|
42
|
+
|
|
43
|
+
The JSON-LD Context URL for TWIN Common.
|
|
@@ -6,32 +6,26 @@ The failure reason of the proof.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### NotIssued
|
|
9
|
+
### NotIssued {#notissued}
|
|
10
10
|
|
|
11
11
|
> `readonly` **NotIssued**: `"notIssued"` = `"notIssued"`
|
|
12
12
|
|
|
13
13
|
Proof not yet issued.
|
|
14
14
|
|
|
15
|
-
### ProofMissing
|
|
15
|
+
### ProofMissing {#proofmissing}
|
|
16
16
|
|
|
17
17
|
> `readonly` **ProofMissing**: `"proofMissing"` = `"proofMissing"`
|
|
18
18
|
|
|
19
19
|
Proof missing.
|
|
20
20
|
|
|
21
|
-
###
|
|
21
|
+
### VerificationFailure {#verificationfailure}
|
|
22
22
|
|
|
23
|
-
> `readonly` **
|
|
23
|
+
> `readonly` **VerificationFailure**: `"verificationFailure"` = `"verificationFailure"`
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
Verification failure.
|
|
26
26
|
|
|
27
|
-
###
|
|
27
|
+
### Revoked {#revoked}
|
|
28
28
|
|
|
29
|
-
> `readonly` **
|
|
29
|
+
> `readonly` **Revoked**: `"revoked"` = `"revoked"`
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
### SignatureMismatch
|
|
34
|
-
|
|
35
|
-
> `readonly` **SignatureMismatch**: `"signatureMismatch"` = `"signatureMismatch"`
|
|
36
|
-
|
|
37
|
-
Signature mismatch.
|
|
31
|
+
Revoked.
|
|
@@ -6,14 +6,26 @@ The types of immutable proof data.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### ImmutableProof
|
|
9
|
+
### ImmutableProof {#immutableproof}
|
|
10
10
|
|
|
11
11
|
> `readonly` **ImmutableProof**: `"ImmutableProof"` = `"ImmutableProof"`
|
|
12
12
|
|
|
13
13
|
Represents Immutable Proof.
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### ImmutableProofReceipt {#immutableproofreceipt}
|
|
16
|
+
|
|
17
|
+
> `readonly` **ImmutableProofReceipt**: `"ImmutableProofReceipt"` = `"ImmutableProofReceipt"`
|
|
18
|
+
|
|
19
|
+
Represents Immutable Proof Receipt.
|
|
20
|
+
|
|
21
|
+
### ImmutableProofVerification {#immutableproofverification}
|
|
16
22
|
|
|
17
23
|
> `readonly` **ImmutableProofVerification**: `"ImmutableProofVerification"` = `"ImmutableProofVerification"`
|
|
18
24
|
|
|
19
25
|
Represents Immutable Proof Verification.
|
|
26
|
+
|
|
27
|
+
### ImmutableProofFailure {#immutableprooffailure}
|
|
28
|
+
|
|
29
|
+
> `readonly` **ImmutableProofFailure**: `"ImmutableProofFailure"` = `"ImmutableProofFailure"`
|
|
30
|
+
|
|
31
|
+
Represents Immutable Proof Failure.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/immutable-proof-models",
|
|
3
|
-
"version": "0.0.3-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.3-next.11",
|
|
4
|
+
"description": "Shared model contracts, schema types, and context constants for immutable proof workflows",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/twinfoundation/immutable-proof.git",
|