@twin.org/auditable-item-graph-models 0.0.1-next.7 → 0.0.1-next.9

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.
@@ -1,34 +0,0 @@
1
- import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
2
- /**
3
- * The data stored immutably for the graph in a verifiable credential.
4
- */
5
- export interface IAuditableItemGraphCredential {
6
- /**
7
- * JSON-LD Context.
8
- */
9
- "@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...string[]];
10
- /**
11
- * JSON-LD Type.
12
- */
13
- type: typeof AuditableItemGraphTypes.Credential;
14
- /**
15
- * The date/time of when the changeset was created.
16
- */
17
- dateCreated: string;
18
- /**
19
- * The user identity that created the changes.
20
- */
21
- userIdentity: string;
22
- /**
23
- * The signature for the changeset.
24
- */
25
- signature: string;
26
- /**
27
- * The signature for the changeset.
28
- */
29
- hash: string;
30
- /**
31
- * The integrity data for this changeset, encrypted.
32
- */
33
- integrity?: string;
34
- }
@@ -1,29 +0,0 @@
1
- import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
2
- import type { AuditableItemGraphVerificationState } from "./auditableItemGraphVerificationState";
3
- /**
4
- * Interface describing an auditable item graph verification.
5
- */
6
- export interface IAuditableItemGraphVerification {
7
- /**
8
- * JSON-LD Context.
9
- */
10
- "@context": typeof AuditableItemGraphTypes.ContextRoot | [typeof AuditableItemGraphTypes.ContextRoot, ...string[]];
11
- /**
12
- * JSON-LD Type.
13
- */
14
- type: typeof AuditableItemGraphTypes.Verification;
15
- /**
16
- * The date/time of the verification.
17
- */
18
- dateCreated: string;
19
- /**
20
- * The state of the verification.
21
- */
22
- state: AuditableItemGraphVerificationState;
23
- /**
24
- * The state properties.
25
- */
26
- stateProperties?: {
27
- [id: string]: unknown;
28
- };
29
- }
@@ -1,37 +0,0 @@
1
- /**
2
- * The state of the verification.
3
- */
4
- export declare const AuditableItemGraphVerificationState: {
5
- /**
6
- * OK.
7
- */
8
- readonly Ok: "ok";
9
- /**
10
- * The stored hash does not matched the calculated one.
11
- */
12
- readonly HashMismatch: "hashMismatch";
13
- /**
14
- * The signature verification failed.
15
- */
16
- readonly SignatureNotVerified: "signatureNotVerified";
17
- /**
18
- * The credential in the immutable storage was revoked.
19
- */
20
- readonly CredentialRevoked: "credentialRevoked";
21
- /**
22
- * Immutable hash mismatch.
23
- */
24
- readonly ImmutableHashMismatch: "immutableHashMismatch";
25
- /**
26
- * Immutable signature mismatch.
27
- */
28
- readonly ImmutableSignatureMismatch: "immutableSignatureMismatch";
29
- /**
30
- * Integrity data mismatch.
31
- */
32
- readonly IntegrityDataMismatch: "integrityDataMismatch";
33
- };
34
- /**
35
- * The state of the verification.
36
- */
37
- export type AuditableItemGraphVerificationState = (typeof AuditableItemGraphVerificationState)[keyof typeof AuditableItemGraphVerificationState];
@@ -1,59 +0,0 @@
1
- # Interface: IAuditableItemGraphCredential
2
-
3
- The data stored immutably for the graph in a verifiable credential.
4
-
5
- ## Properties
6
-
7
- ### @context
8
-
9
- > **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
10
-
11
- JSON-LD Context.
12
-
13
- ***
14
-
15
- ### type
16
-
17
- > **type**: `"AuditableItemGraphPatchCredential"`
18
-
19
- JSON-LD Type.
20
-
21
- ***
22
-
23
- ### dateCreated
24
-
25
- > **dateCreated**: `string`
26
-
27
- The date/time of when the changeset was created.
28
-
29
- ***
30
-
31
- ### userIdentity
32
-
33
- > **userIdentity**: `string`
34
-
35
- The user identity that created the changes.
36
-
37
- ***
38
-
39
- ### signature
40
-
41
- > **signature**: `string`
42
-
43
- The signature for the changeset.
44
-
45
- ***
46
-
47
- ### hash
48
-
49
- > **hash**: `string`
50
-
51
- The signature for the changeset.
52
-
53
- ***
54
-
55
- ### integrity?
56
-
57
- > `optional` **integrity**: `string`
58
-
59
- The integrity data for this changeset, encrypted.
@@ -1,47 +0,0 @@
1
- # Interface: IAuditableItemGraphVerification
2
-
3
- Interface describing an auditable item graph verification.
4
-
5
- ## Properties
6
-
7
- ### @context
8
-
9
- > **@context**: `"https://schema.twindev.org/aig/"` \| [`"https://schema.twindev.org/aig/"`, `...string[]`]
10
-
11
- JSON-LD Context.
12
-
13
- ***
14
-
15
- ### type
16
-
17
- > **type**: `"AuditableItemGraphVerification"`
18
-
19
- JSON-LD Type.
20
-
21
- ***
22
-
23
- ### dateCreated
24
-
25
- > **dateCreated**: `string`
26
-
27
- The date/time of the verification.
28
-
29
- ***
30
-
31
- ### state
32
-
33
- > **state**: [`AuditableItemGraphVerificationState`](../type-aliases/AuditableItemGraphVerificationState.md)
34
-
35
- The state of the verification.
36
-
37
- ***
38
-
39
- ### stateProperties?
40
-
41
- > `optional` **stateProperties**: `object`
42
-
43
- The state properties.
44
-
45
- #### Index Signature
46
-
47
- \[`id`: `string`\]: `unknown`
@@ -1,5 +0,0 @@
1
- # Type Alias: AuditableItemGraphVerificationState
2
-
3
- > **AuditableItemGraphVerificationState**: *typeof* [`AuditableItemGraphVerificationState`](../variables/AuditableItemGraphVerificationState.md)\[keyof *typeof* [`AuditableItemGraphVerificationState`](../variables/AuditableItemGraphVerificationState.md)\]
4
-
5
- The state of the verification.
@@ -1,49 +0,0 @@
1
- # Variable: AuditableItemGraphVerificationState
2
-
3
- > `const` **AuditableItemGraphVerificationState**: `object`
4
-
5
- The state of the verification.
6
-
7
- ## Type declaration
8
-
9
- ### Ok
10
-
11
- > `readonly` **Ok**: `"ok"` = `"ok"`
12
-
13
- OK.
14
-
15
- ### HashMismatch
16
-
17
- > `readonly` **HashMismatch**: `"hashMismatch"` = `"hashMismatch"`
18
-
19
- The stored hash does not matched the calculated one.
20
-
21
- ### SignatureNotVerified
22
-
23
- > `readonly` **SignatureNotVerified**: `"signatureNotVerified"` = `"signatureNotVerified"`
24
-
25
- The signature verification failed.
26
-
27
- ### CredentialRevoked
28
-
29
- > `readonly` **CredentialRevoked**: `"credentialRevoked"` = `"credentialRevoked"`
30
-
31
- The credential in the immutable storage was revoked.
32
-
33
- ### ImmutableHashMismatch
34
-
35
- > `readonly` **ImmutableHashMismatch**: `"immutableHashMismatch"` = `"immutableHashMismatch"`
36
-
37
- Immutable hash mismatch.
38
-
39
- ### ImmutableSignatureMismatch
40
-
41
- > `readonly` **ImmutableSignatureMismatch**: `"immutableSignatureMismatch"` = `"immutableSignatureMismatch"`
42
-
43
- Immutable signature mismatch.
44
-
45
- ### IntegrityDataMismatch
46
-
47
- > `readonly` **IntegrityDataMismatch**: `"integrityDataMismatch"` = `"integrityDataMismatch"`
48
-
49
- Integrity data mismatch.