@twin.org/auditable-item-graph-models 0.0.1-next.4 → 0.0.1-next.40
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 +344 -274
- package/dist/esm/index.mjs +343 -274
- package/dist/types/index.d.ts +5 -3
- package/dist/types/models/IAuditableItemGraphAlias.d.ts +21 -3
- package/dist/types/models/IAuditableItemGraphAuditedElement.d.ts +7 -7
- package/dist/types/models/IAuditableItemGraphChangeset.d.ts +27 -11
- package/dist/types/models/IAuditableItemGraphComponent.d.ts +59 -61
- package/dist/types/models/IAuditableItemGraphEdge.d.ts +22 -4
- package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +28 -2
- package/dist/types/models/IAuditableItemGraphResource.d.ts +16 -2
- package/dist/types/models/IAuditableItemGraphVertex.d.ts +28 -2
- package/dist/types/models/IAuditableItemGraphVertexList.d.ts +29 -0
- package/dist/types/models/api/IAuditableItemGraphCreateRequest.d.ts +9 -9
- package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +2 -2
- package/dist/types/models/api/IAuditableItemGraphGetResponse.d.ts +2 -13
- package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +14 -5
- package/dist/types/models/api/IAuditableItemGraphListResponse.d.ts +2 -12
- package/dist/types/models/api/IAuditableItemGraphUpdateRequest.d.ts +9 -9
- package/dist/types/models/auditableItemGraphContexts.d.ts +17 -0
- package/dist/types/models/auditableItemGraphTopics.d.ts +17 -0
- package/dist/types/models/auditableItemGraphTypes.d.ts +6 -22
- package/dist/types/models/eventBus/IAuditableItemGraphEventBusVertexCreated.d.ts +9 -0
- package/dist/types/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.d.ts +14 -0
- package/docs/changelog.md +55 -1
- package/docs/reference/classes/AuditableItemGraphDataTypes.md +3 -3
- package/docs/reference/index.md +7 -5
- package/docs/reference/interfaces/IAuditableItemGraphAlias.md +34 -22
- package/docs/reference/interfaces/IAuditableItemGraphAuditedElement.md +11 -11
- package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +34 -18
- package/docs/reference/interfaces/IAuditableItemGraphComponent.md +113 -57
- package/docs/reference/interfaces/IAuditableItemGraphCreateRequest.md +5 -5
- package/docs/reference/interfaces/IAuditableItemGraphEdge.md +38 -26
- package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexCreated.md +11 -0
- package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexUpdated.md +19 -0
- package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphGetResponse.md +4 -4
- package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +17 -5
- package/docs/reference/interfaces/IAuditableItemGraphListResponse.md +3 -3
- package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +46 -2
- package/docs/reference/interfaces/IAuditableItemGraphResource.md +32 -20
- package/docs/reference/interfaces/IAuditableItemGraphUpdateRequest.md +5 -5
- package/docs/reference/interfaces/IAuditableItemGraphVertex.md +50 -18
- package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +35 -0
- package/docs/reference/type-aliases/AuditableItemGraphContexts.md +5 -0
- package/docs/reference/type-aliases/AuditableItemGraphTopics.md +5 -0
- package/docs/reference/type-aliases/AuditableItemGraphTypes.md +1 -1
- package/docs/reference/type-aliases/VerifyDepth.md +1 -1
- package/docs/reference/variables/AuditableItemGraphContexts.md +19 -0
- package/docs/reference/variables/AuditableItemGraphTopics.md +19 -0
- package/docs/reference/variables/AuditableItemGraphTypes.md +6 -30
- package/package.json +6 -4
- package/dist/types/models/IAuditableItemGraphCredential.d.ts +0 -25
- package/dist/types/models/IAuditableItemGraphMetadataElement.d.ts +0 -10
- package/dist/types/models/IAuditableItemGraphVerification.d.ts +0 -15
- package/dist/types/models/auditableItemGraphVerificationState.d.ts +0 -37
- package/docs/reference/interfaces/IAuditableItemGraphCredential.md +0 -43
- package/docs/reference/interfaces/IAuditableItemGraphVerification.md +0 -23
- package/docs/reference/type-aliases/AuditableItemGraphVerificationState.md +0 -5
- package/docs/reference/type-aliases/JsonReturnType.md +0 -13
- package/docs/reference/variables/AuditableItemGraphVerificationState.md +0 -49
|
@@ -4,13 +4,13 @@ Interface describing an auditable item graph vertex resource.
|
|
|
4
4
|
|
|
5
5
|
## Extends
|
|
6
6
|
|
|
7
|
-
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md)
|
|
7
|
+
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md)
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
-
### id
|
|
11
|
+
### id?
|
|
12
12
|
|
|
13
|
-
> **id**: `string`
|
|
13
|
+
> `optional` **id**: `string`
|
|
14
14
|
|
|
15
15
|
The id of the element.
|
|
16
16
|
|
|
@@ -20,48 +20,60 @@ The id of the element.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
###
|
|
23
|
+
### dateCreated?
|
|
24
24
|
|
|
25
|
-
> **
|
|
25
|
+
> `optional` **dateCreated**: `string`
|
|
26
26
|
|
|
27
|
-
The
|
|
27
|
+
The date/time of when the element was created.
|
|
28
28
|
|
|
29
29
|
#### Inherited from
|
|
30
30
|
|
|
31
|
-
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`
|
|
31
|
+
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateCreated`](IAuditableItemGraphAuditedElement.md#datecreated)
|
|
32
32
|
|
|
33
33
|
***
|
|
34
34
|
|
|
35
|
-
###
|
|
35
|
+
### dateModified?
|
|
36
36
|
|
|
37
|
-
> `optional` **
|
|
37
|
+
> `optional` **dateModified**: `string`
|
|
38
38
|
|
|
39
|
-
The
|
|
39
|
+
The date/time of when the element was modified.
|
|
40
40
|
|
|
41
41
|
#### Inherited from
|
|
42
42
|
|
|
43
|
-
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`
|
|
43
|
+
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateModified`](IAuditableItemGraphAuditedElement.md#datemodified)
|
|
44
44
|
|
|
45
45
|
***
|
|
46
46
|
|
|
47
|
-
###
|
|
47
|
+
### dateDeleted?
|
|
48
48
|
|
|
49
|
-
> `optional` **
|
|
49
|
+
> `optional` **dateDeleted**: `string`
|
|
50
50
|
|
|
51
|
-
The
|
|
51
|
+
The date/time of when the element was deleted, as we never actually remove items.
|
|
52
52
|
|
|
53
53
|
#### Inherited from
|
|
54
54
|
|
|
55
|
-
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`
|
|
55
|
+
[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateDeleted`](IAuditableItemGraphAuditedElement.md#datedeleted)
|
|
56
56
|
|
|
57
57
|
***
|
|
58
58
|
|
|
59
|
-
###
|
|
59
|
+
### @context
|
|
60
60
|
|
|
61
|
-
> `
|
|
61
|
+
> **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
JSON-LD Context.
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### type
|
|
68
|
+
|
|
69
|
+
> **type**: `"AuditableItemGraphResource"`
|
|
70
|
+
|
|
71
|
+
JSON-LD Type.
|
|
72
|
+
|
|
73
|
+
***
|
|
74
|
+
|
|
75
|
+
### resourceObject?
|
|
76
|
+
|
|
77
|
+
> `optional` **resourceObject**: `IJsonLdNodeObject`
|
|
66
78
|
|
|
67
|
-
|
|
79
|
+
The JSON-LD object for the resource.
|
|
@@ -18,17 +18,17 @@ The id of the vertex to update.
|
|
|
18
18
|
|
|
19
19
|
***
|
|
20
20
|
|
|
21
|
-
### body
|
|
21
|
+
### body
|
|
22
22
|
|
|
23
|
-
>
|
|
23
|
+
> **body**: `object`
|
|
24
24
|
|
|
25
25
|
The data to be used in the vertex.
|
|
26
26
|
|
|
27
|
-
####
|
|
27
|
+
#### annotationObject?
|
|
28
28
|
|
|
29
|
-
> `optional` **
|
|
29
|
+
> `optional` **annotationObject**: `IJsonLdNodeObject`
|
|
30
30
|
|
|
31
|
-
The
|
|
31
|
+
The object to be used in the vertex as JSON-LD.
|
|
32
32
|
|
|
33
33
|
#### aliases?
|
|
34
34
|
|
|
@@ -4,55 +4,71 @@ Interface describing an auditable item graph vertex.
|
|
|
4
4
|
|
|
5
5
|
## Extends
|
|
6
6
|
|
|
7
|
-
- `Omit`\<[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md), `"deleted"
|
|
7
|
+
- `Omit`\<[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md), `"deleted"`\>
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### dateCreated?
|
|
12
12
|
|
|
13
|
-
> **
|
|
13
|
+
> `optional` **dateCreated**: `string`
|
|
14
14
|
|
|
15
|
-
The
|
|
15
|
+
The date/time of when the element was created.
|
|
16
16
|
|
|
17
17
|
#### Inherited from
|
|
18
18
|
|
|
19
|
-
`Omit.
|
|
19
|
+
`Omit.dateCreated`
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
-
###
|
|
23
|
+
### dateModified?
|
|
24
24
|
|
|
25
|
-
> **
|
|
25
|
+
> `optional` **dateModified**: `string`
|
|
26
26
|
|
|
27
|
-
The
|
|
27
|
+
The date/time of when the element was modified.
|
|
28
28
|
|
|
29
29
|
#### Inherited from
|
|
30
30
|
|
|
31
|
-
`Omit.
|
|
31
|
+
`Omit.dateModified`
|
|
32
32
|
|
|
33
33
|
***
|
|
34
34
|
|
|
35
|
-
###
|
|
35
|
+
### dateDeleted?
|
|
36
36
|
|
|
37
|
-
> `optional` **
|
|
37
|
+
> `optional` **dateDeleted**: `string`
|
|
38
38
|
|
|
39
|
-
The
|
|
39
|
+
The date/time of when the element was deleted, as we never actually remove items.
|
|
40
40
|
|
|
41
41
|
#### Inherited from
|
|
42
42
|
|
|
43
|
-
`Omit.
|
|
43
|
+
`Omit.dateDeleted`
|
|
44
44
|
|
|
45
45
|
***
|
|
46
46
|
|
|
47
|
-
###
|
|
47
|
+
### @context
|
|
48
48
|
|
|
49
|
-
>
|
|
49
|
+
> **@context**: \[`"https://schema.twindev.org/aig/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
JSON-LD Context.
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
***
|
|
54
54
|
|
|
55
|
-
|
|
55
|
+
### id
|
|
56
|
+
|
|
57
|
+
> **id**: `string`
|
|
58
|
+
|
|
59
|
+
The id of the element.
|
|
60
|
+
|
|
61
|
+
#### Overrides
|
|
62
|
+
|
|
63
|
+
`Omit.id`
|
|
64
|
+
|
|
65
|
+
***
|
|
66
|
+
|
|
67
|
+
### type
|
|
68
|
+
|
|
69
|
+
> **type**: `"AuditableItemGraphVertex"`
|
|
70
|
+
|
|
71
|
+
JSON-LD Type.
|
|
56
72
|
|
|
57
73
|
***
|
|
58
74
|
|
|
@@ -64,6 +80,14 @@ The identity of the node which controls the vertex.
|
|
|
64
80
|
|
|
65
81
|
***
|
|
66
82
|
|
|
83
|
+
### annotationObject?
|
|
84
|
+
|
|
85
|
+
> `optional` **annotationObject**: `IJsonLdNodeObject`
|
|
86
|
+
|
|
87
|
+
The JSON-LD annotation object for the vertex.
|
|
88
|
+
|
|
89
|
+
***
|
|
90
|
+
|
|
67
91
|
### aliases?
|
|
68
92
|
|
|
69
93
|
> `optional` **aliases**: [`IAuditableItemGraphAlias`](IAuditableItemGraphAlias.md)[]
|
|
@@ -93,3 +117,11 @@ Edges connected to the vertex.
|
|
|
93
117
|
> `optional` **changesets**: [`IAuditableItemGraphChangeset`](IAuditableItemGraphChangeset.md)[]
|
|
94
118
|
|
|
95
119
|
Changesets for the vertex.
|
|
120
|
+
|
|
121
|
+
***
|
|
122
|
+
|
|
123
|
+
### verified?
|
|
124
|
+
|
|
125
|
+
> `optional` **verified**: `boolean`
|
|
126
|
+
|
|
127
|
+
Is the vertex verified, will only be populated when verification is requested.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphVertexList
|
|
2
|
+
|
|
3
|
+
Interface describing an auditable item graph vertex list.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### @context
|
|
8
|
+
|
|
9
|
+
> **@context**: \[`"https://schema.org"`, `"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
10
|
+
|
|
11
|
+
JSON-LD Context.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### type
|
|
16
|
+
|
|
17
|
+
> **type**: `"ItemList"`
|
|
18
|
+
|
|
19
|
+
JSON-LD Type.
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### itemListElement
|
|
24
|
+
|
|
25
|
+
> **itemListElement**: [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)[]
|
|
26
|
+
|
|
27
|
+
The list of vertices.
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
31
|
+
### nextItem?
|
|
32
|
+
|
|
33
|
+
> `optional` **nextItem**: `string`
|
|
34
|
+
|
|
35
|
+
The cursor to get the next chunk of vertices.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: AuditableItemGraphContexts
|
|
2
|
+
|
|
3
|
+
> **AuditableItemGraphContexts** = *typeof* [`AuditableItemGraphContexts`](../variables/AuditableItemGraphContexts.md)\[keyof *typeof* [`AuditableItemGraphContexts`](../variables/AuditableItemGraphContexts.md)\]
|
|
4
|
+
|
|
5
|
+
The contexts of auditable item graph data.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Type Alias: AuditableItemGraphTopics
|
|
2
|
+
|
|
3
|
+
> **AuditableItemGraphTopics** = *typeof* [`AuditableItemGraphTopics`](../variables/AuditableItemGraphTopics.md)\[keyof *typeof* [`AuditableItemGraphTopics`](../variables/AuditableItemGraphTopics.md)\]
|
|
4
|
+
|
|
5
|
+
The topics for auditable item graph event bus notifications.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Type Alias: AuditableItemGraphTypes
|
|
2
2
|
|
|
3
|
-
> **AuditableItemGraphTypes
|
|
3
|
+
> **AuditableItemGraphTypes** = *typeof* [`AuditableItemGraphTypes`](../variables/AuditableItemGraphTypes.md)\[keyof *typeof* [`AuditableItemGraphTypes`](../variables/AuditableItemGraphTypes.md)\]
|
|
4
4
|
|
|
5
5
|
The types of auditable item graph data.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Type Alias: VerifyDepth
|
|
2
2
|
|
|
3
|
-
> **VerifyDepth
|
|
3
|
+
> **VerifyDepth** = *typeof* [`VerifyDepth`](../variables/VerifyDepth.md)\[keyof *typeof* [`VerifyDepth`](../variables/VerifyDepth.md)\]
|
|
4
4
|
|
|
5
5
|
How deep to verify the signatures.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Variable: AuditableItemGraphContexts
|
|
2
|
+
|
|
3
|
+
> `const` **AuditableItemGraphContexts**: `object`
|
|
4
|
+
|
|
5
|
+
The contexts of auditable item graph data.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### ContextRoot
|
|
10
|
+
|
|
11
|
+
> `readonly` **ContextRoot**: `"https://schema.twindev.org/aig/"` = `"https://schema.twindev.org/aig/"`
|
|
12
|
+
|
|
13
|
+
The context root for the auditable item graph types.
|
|
14
|
+
|
|
15
|
+
### ContextRootCommon
|
|
16
|
+
|
|
17
|
+
> `readonly` **ContextRootCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
|
|
18
|
+
|
|
19
|
+
The context root for the common types.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Variable: AuditableItemGraphTopics
|
|
2
|
+
|
|
3
|
+
> `const` **AuditableItemGraphTopics**: `object`
|
|
4
|
+
|
|
5
|
+
The topics for auditable item graph event bus notifications.
|
|
6
|
+
|
|
7
|
+
## Type declaration
|
|
8
|
+
|
|
9
|
+
### VertexCreated
|
|
10
|
+
|
|
11
|
+
> `readonly` **VertexCreated**: `"auditable-item-graph:vertex-created"` = `"auditable-item-graph:vertex-created"`
|
|
12
|
+
|
|
13
|
+
A vertex was created.
|
|
14
|
+
|
|
15
|
+
### VertexUpdated
|
|
16
|
+
|
|
17
|
+
> `readonly` **VertexUpdated**: `"auditable-item-graph:vertex-updated"` = `"auditable-item-graph:vertex-updated"`
|
|
18
|
+
|
|
19
|
+
A vertex was updated.
|
|
@@ -6,62 +6,38 @@ The types of auditable item graph data.
|
|
|
6
6
|
|
|
7
7
|
## Type declaration
|
|
8
8
|
|
|
9
|
-
### ContextRoot
|
|
10
|
-
|
|
11
|
-
> `readonly` **ContextRoot**: `"https://schema.twindev.org/aig/"` = `"https://schema.twindev.org/aig/"`
|
|
12
|
-
|
|
13
|
-
The context root for the auditable item graph types.
|
|
14
|
-
|
|
15
9
|
### Vertex
|
|
16
10
|
|
|
17
|
-
> `readonly` **Vertex**: `"
|
|
11
|
+
> `readonly` **Vertex**: `"AuditableItemGraphVertex"` = `"AuditableItemGraphVertex"`
|
|
18
12
|
|
|
19
13
|
Represents auditable item graph vertex.
|
|
20
14
|
|
|
21
15
|
### Alias
|
|
22
16
|
|
|
23
|
-
> `readonly` **Alias**: `"
|
|
17
|
+
> `readonly` **Alias**: `"AuditableItemGraphAlias"` = `"AuditableItemGraphAlias"`
|
|
24
18
|
|
|
25
19
|
Represents auditable item graph alias.
|
|
26
20
|
|
|
27
21
|
### Resource
|
|
28
22
|
|
|
29
|
-
> `readonly` **Resource**: `"
|
|
23
|
+
> `readonly` **Resource**: `"AuditableItemGraphResource"` = `"AuditableItemGraphResource"`
|
|
30
24
|
|
|
31
25
|
Represents auditable item graph resource.
|
|
32
26
|
|
|
33
27
|
### Edge
|
|
34
28
|
|
|
35
|
-
> `readonly` **Edge**: `"
|
|
29
|
+
> `readonly` **Edge**: `"AuditableItemGraphEdge"` = `"AuditableItemGraphEdge"`
|
|
36
30
|
|
|
37
31
|
Represents auditable item graph edge.
|
|
38
32
|
|
|
39
33
|
### Changeset
|
|
40
34
|
|
|
41
|
-
> `readonly` **Changeset**: `"
|
|
35
|
+
> `readonly` **Changeset**: `"AuditableItemGraphChangeset"` = `"AuditableItemGraphChangeset"`
|
|
42
36
|
|
|
43
37
|
Represents auditable item graph changeset.
|
|
44
38
|
|
|
45
39
|
### PatchOperation
|
|
46
40
|
|
|
47
|
-
> `readonly` **PatchOperation**: `"
|
|
41
|
+
> `readonly` **PatchOperation**: `"AuditableItemGraphPatchOperation"` = `"AuditableItemGraphPatchOperation"`
|
|
48
42
|
|
|
49
43
|
Represents patch operation.
|
|
50
|
-
|
|
51
|
-
### Credential
|
|
52
|
-
|
|
53
|
-
> `readonly` **Credential**: `"https://schema.twindev.org/aig/AuditableItemGraphPatchCredential"` = `"https://schema.twindev.org/aig/AuditableItemGraphPatchCredential"`
|
|
54
|
-
|
|
55
|
-
Represents the immutable credential payload.
|
|
56
|
-
|
|
57
|
-
### Verification
|
|
58
|
-
|
|
59
|
-
> `readonly` **Verification**: `"https://schema.twindev.org/aig/AuditableItemGraphVerification"` = `"https://schema.twindev.org/aig/AuditableItemGraphVerification"`
|
|
60
|
-
|
|
61
|
-
Represents auditable item stream verification.
|
|
62
|
-
|
|
63
|
-
### VerificationState
|
|
64
|
-
|
|
65
|
-
> `readonly` **VerificationState**: `"https://schema.twindev.org/aig/AuditableItemGraphVerificationState"` = `"https://schema.twindev.org/aig/AuditableItemGraphVerificationState"`
|
|
66
|
-
|
|
67
|
-
Represents auditable item stream verification state.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/auditable-item-graph-models",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.40",
|
|
4
4
|
"description": "Models which define the structure of the auditable item graph connectors and services",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"@twin.org/data-core": "next",
|
|
19
19
|
"@twin.org/data-json-ld": "next",
|
|
20
20
|
"@twin.org/entity": "next",
|
|
21
|
+
"@twin.org/immutable-proof-models": "next",
|
|
21
22
|
"@twin.org/nameof": "next",
|
|
23
|
+
"@twin.org/standards-schema-org": "next",
|
|
22
24
|
"@twin.org/web": "next"
|
|
23
25
|
},
|
|
24
26
|
"main": "./dist/cjs/index.cjs",
|
|
@@ -26,11 +28,11 @@
|
|
|
26
28
|
"types": "./dist/types/index.d.ts",
|
|
27
29
|
"exports": {
|
|
28
30
|
".": {
|
|
31
|
+
"types": "./dist/types/index.d.ts",
|
|
29
32
|
"require": "./dist/cjs/index.cjs",
|
|
30
|
-
"import": "./dist/esm/index.mjs"
|
|
31
|
-
"types": "./dist/types/index.d.ts"
|
|
33
|
+
"import": "./dist/esm/index.mjs"
|
|
32
34
|
},
|
|
33
|
-
"./locales": "./locales"
|
|
35
|
+
"./locales/*.json": "./locales/*.json"
|
|
34
36
|
},
|
|
35
37
|
"files": [
|
|
36
38
|
"dist/cjs",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The data stored immutably for the graph in a verifiable credential.
|
|
3
|
-
*/
|
|
4
|
-
export interface IAuditableItemGraphCredential {
|
|
5
|
-
/**
|
|
6
|
-
* The timestamp of when the changeset was created.
|
|
7
|
-
*/
|
|
8
|
-
created: number;
|
|
9
|
-
/**
|
|
10
|
-
* The user identity that created the changes.
|
|
11
|
-
*/
|
|
12
|
-
userIdentity: string;
|
|
13
|
-
/**
|
|
14
|
-
* The signature for the changeset.
|
|
15
|
-
*/
|
|
16
|
-
signature: string;
|
|
17
|
-
/**
|
|
18
|
-
* The signature for the changeset.
|
|
19
|
-
*/
|
|
20
|
-
hash: string;
|
|
21
|
-
/**
|
|
22
|
-
* The integrity data for this changeset, encrypted.
|
|
23
|
-
*/
|
|
24
|
-
integrity?: string;
|
|
25
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
|
|
2
|
-
/**
|
|
3
|
-
* Interface describing the base properties for auditable metadata elements.
|
|
4
|
-
*/
|
|
5
|
-
export interface IAuditableItemGraphMetadataElement {
|
|
6
|
-
/**
|
|
7
|
-
* The metadata to associate with the element as JSON-LD.
|
|
8
|
-
*/
|
|
9
|
-
metadata?: IJsonLdNodeObject;
|
|
10
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { AuditableItemGraphVerificationState } from "./auditableItemGraphVerificationState";
|
|
2
|
-
/**
|
|
3
|
-
* Interface describing an auditable item graph verification.
|
|
4
|
-
*/
|
|
5
|
-
export interface IAuditableItemGraphVerification {
|
|
6
|
-
[id: string]: unknown;
|
|
7
|
-
/**
|
|
8
|
-
* The epoch of the verification.
|
|
9
|
-
*/
|
|
10
|
-
epoch: number;
|
|
11
|
-
/**
|
|
12
|
-
* The state of the verification.
|
|
13
|
-
*/
|
|
14
|
-
state: AuditableItemGraphVerificationState;
|
|
15
|
-
}
|
|
@@ -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,43 +0,0 @@
|
|
|
1
|
-
# Interface: IAuditableItemGraphCredential
|
|
2
|
-
|
|
3
|
-
The data stored immutably for the graph in a verifiable credential.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### created
|
|
8
|
-
|
|
9
|
-
> **created**: `number`
|
|
10
|
-
|
|
11
|
-
The timestamp of when the changeset was created.
|
|
12
|
-
|
|
13
|
-
***
|
|
14
|
-
|
|
15
|
-
### userIdentity
|
|
16
|
-
|
|
17
|
-
> **userIdentity**: `string`
|
|
18
|
-
|
|
19
|
-
The user identity that created the changes.
|
|
20
|
-
|
|
21
|
-
***
|
|
22
|
-
|
|
23
|
-
### signature
|
|
24
|
-
|
|
25
|
-
> **signature**: `string`
|
|
26
|
-
|
|
27
|
-
The signature for the changeset.
|
|
28
|
-
|
|
29
|
-
***
|
|
30
|
-
|
|
31
|
-
### hash
|
|
32
|
-
|
|
33
|
-
> **hash**: `string`
|
|
34
|
-
|
|
35
|
-
The signature for the changeset.
|
|
36
|
-
|
|
37
|
-
***
|
|
38
|
-
|
|
39
|
-
### integrity?
|
|
40
|
-
|
|
41
|
-
> `optional` **integrity**: `string`
|
|
42
|
-
|
|
43
|
-
The integrity data for this changeset, encrypted.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Interface: IAuditableItemGraphVerification
|
|
2
|
-
|
|
3
|
-
Interface describing an auditable item graph verification.
|
|
4
|
-
|
|
5
|
-
## Indexable
|
|
6
|
-
|
|
7
|
-
\[`id`: `string`\]: `unknown`
|
|
8
|
-
|
|
9
|
-
## Properties
|
|
10
|
-
|
|
11
|
-
### epoch
|
|
12
|
-
|
|
13
|
-
> **epoch**: `number`
|
|
14
|
-
|
|
15
|
-
The epoch of the verification.
|
|
16
|
-
|
|
17
|
-
***
|
|
18
|
-
|
|
19
|
-
### state
|
|
20
|
-
|
|
21
|
-
> **state**: [`AuditableItemGraphVerificationState`](../type-aliases/AuditableItemGraphVerificationState.md)
|
|
22
|
-
|
|
23
|
-
The state of the verification.
|
|
@@ -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.
|