@twin.org/immutable-proof-models 0.0.3-next.9 → 0.9.0-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.
Files changed (60) hide show
  1. package/README.md +1 -1
  2. package/dist/es/dataTypes/immutableProofDataTypes.js +18 -7
  3. package/dist/es/dataTypes/immutableProofDataTypes.js.map +1 -1
  4. package/dist/es/index.js +4 -1
  5. package/dist/es/index.js.map +1 -1
  6. package/dist/es/models/IImmutableProof.js.map +1 -1
  7. package/dist/es/models/IImmutableProofComponent.js.map +1 -1
  8. package/dist/es/models/IImmutableProofCredential.js +2 -0
  9. package/dist/es/models/IImmutableProofCredential.js.map +1 -0
  10. package/dist/es/models/IImmutableProofDataIntegrity.js +4 -0
  11. package/dist/es/models/IImmutableProofDataIntegrity.js.map +1 -0
  12. package/dist/es/models/IImmutableProofVerification.js.map +1 -1
  13. package/dist/es/models/api/IImmutableProofCreateRequest.js.map +1 -1
  14. package/dist/es/models/api/IImmutableProofGetResponse.js.map +1 -1
  15. package/dist/es/models/api/IImmutableProofRemoveNotarizationRequest.js +4 -0
  16. package/dist/es/models/api/IImmutableProofRemoveNotarizationRequest.js.map +1 -0
  17. package/dist/es/models/api/IImmutableProofRemoveRequest.js +4 -0
  18. package/dist/es/models/api/IImmutableProofRemoveRequest.js.map +1 -0
  19. package/dist/es/models/immutableProofTypes.js +4 -4
  20. package/dist/es/models/immutableProofTypes.js.map +1 -1
  21. package/dist/es/schemas/ImmutableProof.json +14 -16
  22. package/dist/es/schemas/ImmutableProofFailure.json +24 -0
  23. package/dist/es/schemas/ImmutableProofVerification.json +30 -0
  24. package/dist/types/index.d.ts +4 -1
  25. package/dist/types/models/IImmutableProof.d.ts +1 -1
  26. package/dist/types/models/IImmutableProofComponent.d.ts +18 -7
  27. package/dist/types/models/IImmutableProofCredential.d.ts +11 -0
  28. package/dist/types/models/IImmutableProofDataIntegrity.d.ts +10 -0
  29. package/dist/types/models/IImmutableProofVerification.d.ts +2 -2
  30. package/dist/types/models/api/IImmutableProofCreateRequest.d.ts +10 -0
  31. package/dist/types/models/api/IImmutableProofGetResponse.d.ts +2 -2
  32. package/dist/types/models/api/IImmutableProofRemoveNotarizationRequest.d.ts +14 -0
  33. package/dist/types/models/api/IImmutableProofRemoveRequest.d.ts +14 -0
  34. package/dist/types/models/immutableProofTypes.d.ts +4 -4
  35. package/docs/changelog.md +157 -47
  36. package/docs/examples.md +72 -1
  37. package/docs/reference/classes/ImmutableProofDataTypes.md +1 -1
  38. package/docs/reference/index.md +4 -1
  39. package/docs/reference/interfaces/IImmutableProof.md +7 -8
  40. package/docs/reference/interfaces/IImmutableProofComponent.md +47 -11
  41. package/docs/reference/interfaces/IImmutableProofCreateRequest.md +14 -1
  42. package/docs/reference/interfaces/IImmutableProofCredential.md +15 -0
  43. package/docs/reference/interfaces/IImmutableProofDataIntegrity.md +11 -0
  44. package/docs/reference/interfaces/IImmutableProofEventBusProofCreated.md +1 -1
  45. package/docs/reference/interfaces/IImmutableProofGetRequest.md +3 -3
  46. package/docs/reference/interfaces/IImmutableProofGetResponse.md +4 -4
  47. package/docs/reference/interfaces/IImmutableProofRemoveNotarizationRequest.md +17 -0
  48. package/docs/reference/interfaces/IImmutableProofRemoveRequest.md +17 -0
  49. package/docs/reference/interfaces/IImmutableProofVerification.md +5 -7
  50. package/docs/reference/interfaces/IImmutableProofVerifyRequest.md +3 -3
  51. package/docs/reference/interfaces/IImmutableProofVerifyResponse.md +3 -3
  52. package/docs/reference/variables/ImmutableProofContexts.md +6 -6
  53. package/docs/reference/variables/ImmutableProofFailure.md +4 -4
  54. package/docs/reference/variables/ImmutableProofTopics.md +1 -1
  55. package/docs/reference/variables/ImmutableProofTypes.md +7 -7
  56. package/package.json +11 -11
  57. package/dist/es/models/IImmutableProofReceipt.js +0 -2
  58. package/dist/es/models/IImmutableProofReceipt.js.map +0 -1
  59. package/dist/types/models/IImmutableProofReceipt.d.ts +0 -26
  60. package/docs/reference/interfaces/IImmutableProofReceipt.md +0 -37
@@ -4,9 +4,9 @@ Get a proof.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### headers?
7
+ ### headers? {#headers}
8
8
 
9
- > `optional` **headers**: `object`
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**: `object`
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**: `IDidVerifiableCredential`
21
+ > **body**: [`IImmutableProofCredential`](IImmutableProofCredential.md)
22
22
 
23
23
  The response body.
@@ -0,0 +1,17 @@
1
+ # Interface: IImmutableProofRemoveNotarizationRequest
2
+
3
+ Remove the notarization for a proof.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The parameters from the path.
12
+
13
+ #### id
14
+
15
+ > **id**: `string`
16
+
17
+ The id of the immutable proof to remove the notarization from.
@@ -0,0 +1,17 @@
1
+ # Interface: IImmutableProofRemoveRequest
2
+
3
+ Remove a proof.
4
+
5
+ ## Properties
6
+
7
+ ### pathParams {#pathparams}
8
+
9
+ > **pathParams**: `object`
10
+
11
+ The parameters from the path.
12
+
13
+ #### id
14
+
15
+ > **id**: `string`
16
+
17
+ The id of the immutable proof to remove.
@@ -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,18 +20,16 @@ JSON-LD Type.
20
20
 
21
21
  ***
22
22
 
23
- ### verified
23
+ ### verified {#verified}
24
24
 
25
25
  > **verified**: `boolean`
26
26
 
27
27
  Was the verification successful.
28
- json-ld namespace:twin-common
29
28
 
30
29
  ***
31
30
 
32
- ### failure?
31
+ ### failure? {#failure}
33
32
 
34
- > `optional` **failure**: [`ImmutableProofFailure`](../type-aliases/ImmutableProofFailure.md)
33
+ > `optional` **failure?**: [`ImmutableProofFailure`](../type-aliases/ImmutableProofFailure.md)
35
34
 
36
35
  If the verification was unsuccessful the failure reason.
37
- json-ld type:schema:Text
@@ -4,9 +4,9 @@ Verify a proof.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### headers?
7
+ ### headers? {#headers}
8
8
 
9
- > `optional` **headers**: `object`
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**: `object`
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,37 +6,37 @@ The contexts of immutable proof data.
6
6
 
7
7
  ## Type Declaration
8
8
 
9
- ### Namespace
9
+ ### Namespace {#namespace}
10
10
 
11
11
  > `readonly` **Namespace**: `"https://schema.twindev.org/immutable-proof/"` = `"https://schema.twindev.org/immutable-proof/"`
12
12
 
13
13
  The canonical RDF namespace URI for Immutable Proof.
14
14
 
15
- ### Context
15
+ ### Context {#context}
16
16
 
17
17
  > `readonly` **Context**: `"https://schema.twindev.org/immutable-proof/"` = `"https://schema.twindev.org/immutable-proof/"`
18
18
 
19
19
  The value to use in context for Immutable Proof.
20
20
 
21
- ### JsonLdContext
21
+ ### JsonLdContext {#jsonldcontext}
22
22
 
23
23
  > `readonly` **JsonLdContext**: `"https://schema.twindev.org/immutable-proof/types.jsonld"` = `"https://schema.twindev.org/immutable-proof/types.jsonld"`
24
24
 
25
25
  The JSON-LD Context URL for Immutable Proof.
26
26
 
27
- ### NamespaceCommon
27
+ ### NamespaceCommon {#namespacecommon}
28
28
 
29
29
  > `readonly` **NamespaceCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
30
30
 
31
31
  The canonical RDF namespace URI for TWIN Common.
32
32
 
33
- ### ContextCommon
33
+ ### ContextCommon {#contextcommon}
34
34
 
35
35
  > `readonly` **ContextCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
36
36
 
37
37
  The value to use in JSON-LD context for TWIN Common.
38
38
 
39
- ### JsonLdContextCommon
39
+ ### JsonLdContextCommon {#jsonldcontextcommon}
40
40
 
41
41
  > `readonly` **JsonLdContextCommon**: `"https://schema.twindev.org/common/types.jsonld"` = `"https://schema.twindev.org/common/types.jsonld"`
42
42
 
@@ -6,25 +6,25 @@ 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
- ### VerificationFailure
21
+ ### VerificationFailure {#verificationfailure}
22
22
 
23
23
  > `readonly` **VerificationFailure**: `"verificationFailure"` = `"verificationFailure"`
24
24
 
25
25
  Verification failure.
26
26
 
27
- ### Revoked
27
+ ### Revoked {#revoked}
28
28
 
29
29
  > `readonly` **Revoked**: `"revoked"` = `"revoked"`
30
30
 
@@ -6,7 +6,7 @@ The topics for immutable proof event bus notifications.
6
6
 
7
7
  ## Type Declaration
8
8
 
9
- ### ProofCreated
9
+ ### ProofCreated {#proofcreated}
10
10
 
11
11
  > `readonly` **ProofCreated**: `"immutable-proof:proof-created"` = `"immutable-proof:proof-created"`
12
12
 
@@ -6,20 +6,20 @@ 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
- ### ImmutableProofReceipt
15
+ ### ImmutableProofVerification {#immutableproofverification}
16
16
 
17
- > `readonly` **ImmutableProofReceipt**: `"ImmutableProofReceipt"` = `"ImmutableProofReceipt"`
17
+ > `readonly` **ImmutableProofVerification**: `"ImmutableProofVerification"` = `"ImmutableProofVerification"`
18
18
 
19
- Represents Immutable Proof Receipt.
19
+ Represents Immutable Proof Verification.
20
20
 
21
- ### ImmutableProofVerification
21
+ ### ImmutableProofFailure {#immutableprooffailure}
22
22
 
23
- > `readonly` **ImmutableProofVerification**: `"ImmutableProofVerification"` = `"ImmutableProofVerification"`
23
+ > `readonly` **ImmutableProofFailure**: `"ImmutableProofFailure"` = `"ImmutableProofFailure"`
24
24
 
25
- Represents Immutable Proof Verification.
25
+ Represents Immutable Proof Failure.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@twin.org/immutable-proof-models",
3
- "version": "0.0.3-next.9",
4
- "description": "Models which define the structure of the immutable proof connectors and services",
3
+ "version": "0.9.0-next.1",
4
+ "description": "Shared model contracts, schema types, and context constants for immutable proof workflows",
5
5
  "repository": {
6
6
  "type": "git",
7
- "url": "git+https://github.com/twinfoundation/immutable-proof.git",
7
+ "url": "git+https://github.com/iotaledger/twin-immutable-proof.git",
8
8
  "directory": "packages/immutable-proof-models"
9
9
  },
10
10
  "author": "martyn.janes@iota.org",
@@ -14,13 +14,13 @@
14
14
  "node": ">=20.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@twin.org/core": "next",
18
- "@twin.org/data-core": "next",
19
- "@twin.org/data-json-ld": "next",
20
- "@twin.org/entity": "next",
21
- "@twin.org/nameof": "next",
22
- "@twin.org/standards-w3c-did": "next",
23
- "@twin.org/web": "next"
17
+ "@twin.org/core": "0.9.0-next.1",
18
+ "@twin.org/data-core": "0.9.0-next.1",
19
+ "@twin.org/data-json-ld": "0.9.0-next.1",
20
+ "@twin.org/entity": "0.9.0-next.1",
21
+ "@twin.org/nameof": "0.9.0-next.1",
22
+ "@twin.org/standards-w3c-did": "0.9.0-next.1",
23
+ "@twin.org/web": "0.9.0-next.1"
24
24
  },
25
25
  "main": "./dist/es/index.js",
26
26
  "types": "./dist/types/index.d.ts",
@@ -50,7 +50,7 @@
50
50
  "schemas"
51
51
  ],
52
52
  "bugs": {
53
- "url": "git+https://github.com/twinfoundation/immutable-proof/issues"
53
+ "url": "git+https://github.com/iotaledger/twin-immutable-proof/issues"
54
54
  },
55
55
  "homepage": "https://twindev.org"
56
56
  }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=IImmutableProofReceipt.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IImmutableProofReceipt.js","sourceRoot":"","sources":["../../../src/models/IImmutableProofReceipt.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { ImmutableProofContexts } from \"./immutableProofContexts.js\";\nimport type { ImmutableProofTypes } from \"./immutableProofTypes.js\";\n\n/**\n * Interface describing an immutable proof receipt.\n */\nexport interface IImmutableProofReceipt {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\"?: [typeof ImmutableProofContexts.Context, typeof ImmutableProofContexts.ContextCommon];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof ImmutableProofTypes.ImmutableProofReceipt;\n\n\t/**\n\t * The immutable receipt detail for where the proof is stored.\n\t * json-ld id\n\t */\n\timmutableReceipt?: IJsonLdNodeObject;\n\n\t/**\n\t * The verifiable storage id for where the proof is stored.\n\t * json-ld id\n\t */\n\tverifiableStorageId?: string;\n}\n"]}
@@ -1,26 +0,0 @@
1
- import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
2
- import type { ImmutableProofContexts } from "./immutableProofContexts.js";
3
- import type { ImmutableProofTypes } from "./immutableProofTypes.js";
4
- /**
5
- * Interface describing an immutable proof receipt.
6
- */
7
- export interface IImmutableProofReceipt {
8
- /**
9
- * JSON-LD Context.
10
- */
11
- "@context"?: [typeof ImmutableProofContexts.Context, typeof ImmutableProofContexts.ContextCommon];
12
- /**
13
- * JSON-LD Type.
14
- */
15
- type: typeof ImmutableProofTypes.ImmutableProofReceipt;
16
- /**
17
- * The immutable receipt detail for where the proof is stored.
18
- * json-ld id
19
- */
20
- immutableReceipt?: IJsonLdNodeObject;
21
- /**
22
- * The verifiable storage id for where the proof is stored.
23
- * json-ld id
24
- */
25
- verifiableStorageId?: string;
26
- }
@@ -1,37 +0,0 @@
1
- # Interface: IImmutableProofReceipt
2
-
3
- Interface describing an immutable proof receipt.
4
-
5
- ## Properties
6
-
7
- ### @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
16
-
17
- > **type**: `"ImmutableProofReceipt"`
18
-
19
- JSON-LD Type.
20
-
21
- ***
22
-
23
- ### immutableReceipt?
24
-
25
- > `optional` **immutableReceipt**: `IJsonLdNodeObject`
26
-
27
- The immutable receipt detail for where the proof is stored.
28
- json-ld id
29
-
30
- ***
31
-
32
- ### verifiableStorageId?
33
-
34
- > `optional` **verifiableStorageId**: `string`
35
-
36
- The verifiable storage id for where the proof is stored.
37
- json-ld id