@twin.org/auditable-item-graph-models 0.0.1-next.3 → 0.0.1-next.30

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 (57) hide show
  1. package/dist/cjs/index.cjs +375 -253
  2. package/dist/esm/index.mjs +374 -253
  3. package/dist/types/index.d.ts +5 -3
  4. package/dist/types/models/IAuditableItemGraphAlias.d.ts +21 -3
  5. package/dist/types/models/IAuditableItemGraphAuditedElement.d.ts +7 -7
  6. package/dist/types/models/IAuditableItemGraphChangeset.d.ts +26 -10
  7. package/dist/types/models/IAuditableItemGraphComponent.d.ts +55 -59
  8. package/dist/types/models/IAuditableItemGraphEdge.d.ts +21 -3
  9. package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +28 -2
  10. package/dist/types/models/IAuditableItemGraphResource.d.ts +16 -2
  11. package/dist/types/models/IAuditableItemGraphVertex.d.ts +28 -2
  12. package/dist/types/models/IAuditableItemGraphVertexList.d.ts +25 -0
  13. package/dist/types/models/api/IAuditableItemGraphCreateRequest.d.ts +9 -9
  14. package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +2 -2
  15. package/dist/types/models/api/IAuditableItemGraphGetResponse.d.ts +2 -13
  16. package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +10 -5
  17. package/dist/types/models/api/IAuditableItemGraphListResponse.d.ts +2 -12
  18. package/dist/types/models/api/IAuditableItemGraphUpdateRequest.d.ts +9 -9
  19. package/dist/types/models/auditableItemGraphContexts.d.ts +17 -0
  20. package/dist/types/models/auditableItemGraphTopics.d.ts +17 -0
  21. package/dist/types/models/auditableItemGraphTypes.d.ts +8 -24
  22. package/dist/types/models/eventBus/IAuditableItemGraphEventBusVertexCreated.d.ts +9 -0
  23. package/dist/types/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.d.ts +14 -0
  24. package/docs/changelog.md +1 -1
  25. package/docs/reference/index.md +7 -5
  26. package/docs/reference/interfaces/IAuditableItemGraphAlias.md +34 -22
  27. package/docs/reference/interfaces/IAuditableItemGraphAuditedElement.md +11 -11
  28. package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +33 -17
  29. package/docs/reference/interfaces/IAuditableItemGraphComponent.md +104 -54
  30. package/docs/reference/interfaces/IAuditableItemGraphCreateRequest.md +5 -5
  31. package/docs/reference/interfaces/IAuditableItemGraphEdge.md +38 -26
  32. package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexCreated.md +11 -0
  33. package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexUpdated.md +19 -0
  34. package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +2 -2
  35. package/docs/reference/interfaces/IAuditableItemGraphGetResponse.md +4 -4
  36. package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +11 -5
  37. package/docs/reference/interfaces/IAuditableItemGraphListResponse.md +3 -3
  38. package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +46 -2
  39. package/docs/reference/interfaces/IAuditableItemGraphResource.md +32 -20
  40. package/docs/reference/interfaces/IAuditableItemGraphUpdateRequest.md +5 -5
  41. package/docs/reference/interfaces/IAuditableItemGraphVertex.md +50 -18
  42. package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +35 -0
  43. package/docs/reference/type-aliases/AuditableItemGraphContexts.md +5 -0
  44. package/docs/reference/type-aliases/AuditableItemGraphTopics.md +5 -0
  45. package/docs/reference/variables/AuditableItemGraphContexts.md +19 -0
  46. package/docs/reference/variables/AuditableItemGraphTopics.md +19 -0
  47. package/docs/reference/variables/AuditableItemGraphTypes.md +9 -33
  48. package/package.json +5 -34
  49. package/dist/types/models/IAuditableItemGraphCredential.d.ts +0 -25
  50. package/dist/types/models/IAuditableItemGraphMetadataElement.d.ts +0 -10
  51. package/dist/types/models/IAuditableItemGraphVerification.d.ts +0 -15
  52. package/dist/types/models/auditableItemGraphVerificationState.d.ts +0 -37
  53. package/docs/reference/interfaces/IAuditableItemGraphCredential.md +0 -43
  54. package/docs/reference/interfaces/IAuditableItemGraphVerification.md +0 -23
  55. package/docs/reference/type-aliases/AuditableItemGraphVerificationState.md +0 -5
  56. package/docs/reference/type-aliases/JsonReturnType.md +0 -13
  57. 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).`IAuditableItemGraphMetadataElement`
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
- ### created
23
+ ### dateCreated?
24
24
 
25
- > **created**: `number`
25
+ > `optional` **dateCreated**: `string`
26
26
 
27
- The timestamp of when the element was created.
27
+ The date/time of when the element was created.
28
28
 
29
29
  #### Inherited from
30
30
 
31
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`created`](IAuditableItemGraphAuditedElement.md#created)
31
+ [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateCreated`](IAuditableItemGraphAuditedElement.md#datecreated)
32
32
 
33
33
  ***
34
34
 
35
- ### updated?
35
+ ### dateModified?
36
36
 
37
- > `optional` **updated**: `number`
37
+ > `optional` **dateModified**: `string`
38
38
 
39
- The timestamp of when the element was updated.
39
+ The date/time of when the element was modified.
40
40
 
41
41
  #### Inherited from
42
42
 
43
- [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`updated`](IAuditableItemGraphAuditedElement.md#updated)
43
+ [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateModified`](IAuditableItemGraphAuditedElement.md#datemodified)
44
44
 
45
45
  ***
46
46
 
47
- ### deleted?
47
+ ### dateDeleted?
48
48
 
49
- > `optional` **deleted**: `number`
49
+ > `optional` **dateDeleted**: `string`
50
50
 
51
- The timestamp of when the element was deleted, as we never actually remove items.
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).[`deleted`](IAuditableItemGraphAuditedElement.md#deleted)
55
+ [`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md).[`dateDeleted`](IAuditableItemGraphAuditedElement.md#datedeleted)
56
56
 
57
57
  ***
58
58
 
59
- ### metadata?
59
+ ### @context
60
60
 
61
- > `optional` **metadata**: `IJsonLdNodeObject`
61
+ > **@context**: `"https://schema.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
62
62
 
63
- The metadata to associate with the element as JSON-LD.
63
+ JSON-LD Context.
64
64
 
65
- #### Inherited from
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
- `IAuditableItemGraphMetadataElement.metadata`
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
- > `optional` **body**: `object`
23
+ > **body**: `object`
24
24
 
25
25
  The data to be used in the vertex.
26
26
 
27
- #### metadata?
27
+ #### annotationObject?
28
28
 
29
- > `optional` **metadata**: `IJsonLdNodeObject`
29
+ > `optional` **annotationObject**: `IJsonLdNodeObject`
30
30
 
31
- The metadata to be used in the vertex as JSON-LD.
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"`\>.`IAuditableItemGraphMetadataElement`
7
+ - `Omit`\<[`IAuditableItemGraphAuditedElement`](IAuditableItemGraphAuditedElement.md), `"deleted"`\>
8
8
 
9
9
  ## Properties
10
10
 
11
- ### id
11
+ ### dateCreated?
12
12
 
13
- > **id**: `string`
13
+ > `optional` **dateCreated**: `string`
14
14
 
15
- The id of the element.
15
+ The date/time of when the element was created.
16
16
 
17
17
  #### Inherited from
18
18
 
19
- `Omit.id`
19
+ `Omit.dateCreated`
20
20
 
21
21
  ***
22
22
 
23
- ### created
23
+ ### dateModified?
24
24
 
25
- > **created**: `number`
25
+ > `optional` **dateModified**: `string`
26
26
 
27
- The timestamp of when the element was created.
27
+ The date/time of when the element was modified.
28
28
 
29
29
  #### Inherited from
30
30
 
31
- `Omit.created`
31
+ `Omit.dateModified`
32
32
 
33
33
  ***
34
34
 
35
- ### updated?
35
+ ### dateDeleted?
36
36
 
37
- > `optional` **updated**: `number`
37
+ > `optional` **dateDeleted**: `string`
38
38
 
39
- The timestamp of when the element was updated.
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.updated`
43
+ `Omit.dateDeleted`
44
44
 
45
45
  ***
46
46
 
47
- ### metadata?
47
+ ### @context
48
48
 
49
- > `optional` **metadata**: `IJsonLdNodeObject`
49
+ > **@context**: \[`"https://schema.twindev.org/aig/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
50
50
 
51
- The metadata to associate with the element as JSON-LD.
51
+ JSON-LD Context.
52
52
 
53
- #### Inherited from
53
+ ***
54
54
 
55
- `IAuditableItemGraphMetadataElement.metadata`
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.twindev.org/aig/"` \| \[`"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
10
+
11
+ JSON-LD Context.
12
+
13
+ ***
14
+
15
+ ### type
16
+
17
+ > **type**: `"AuditableItemGraphVertexList"`
18
+
19
+ JSON-LD Type.
20
+
21
+ ***
22
+
23
+ ### vertices
24
+
25
+ > **vertices**: [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)[]
26
+
27
+ The list of vertices.
28
+
29
+ ***
30
+
31
+ ### cursor?
32
+
33
+ > `optional` **cursor**: `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.
@@ -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,68 +6,44 @@ The types of auditable item graph data.
6
6
 
7
7
  ## Type declaration
8
8
 
9
- ### ContextUri
10
-
11
- > `readonly` **ContextUri**: `"https://schema.twindev.org/aig/"` = `"https://schema.twindev.org/aig/"`
12
-
13
- The context uri for the auditable item graph types.
14
-
15
- ### ContextJsonld
16
-
17
- > `readonly` **ContextJsonld**: `"https://schema.twindev.org/aig/types.jsonld"` = `"https://schema.twindev.org/aig/types.jsonld"`
18
-
19
- The context root for the auditable item graph types.
20
-
21
9
  ### Vertex
22
10
 
23
- > `readonly` **Vertex**: `"https://schema.twindev.org/aig/AuditableItemGraphVertex"` = `"https://schema.twindev.org/aig/AuditableItemGraphVertex"`
11
+ > `readonly` **Vertex**: `"AuditableItemGraphVertex"` = `"AuditableItemGraphVertex"`
24
12
 
25
13
  Represents auditable item graph vertex.
26
14
 
27
15
  ### Alias
28
16
 
29
- > `readonly` **Alias**: `"https://schema.twindev.org/aig/AuditableItemGraphAlias"` = `"https://schema.twindev.org/aig/AuditableItemGraphAlias"`
17
+ > `readonly` **Alias**: `"AuditableItemGraphAlias"` = `"AuditableItemGraphAlias"`
30
18
 
31
19
  Represents auditable item graph alias.
32
20
 
33
21
  ### Resource
34
22
 
35
- > `readonly` **Resource**: `"https://schema.twindev.org/aig/AuditableItemGraphResource"` = `"https://schema.twindev.org/aig/AuditableItemGraphResource"`
23
+ > `readonly` **Resource**: `"AuditableItemGraphResource"` = `"AuditableItemGraphResource"`
36
24
 
37
25
  Represents auditable item graph resource.
38
26
 
39
27
  ### Edge
40
28
 
41
- > `readonly` **Edge**: `"https://schema.twindev.org/aig/AuditableItemGraphEdge"` = `"https://schema.twindev.org/aig/AuditableItemGraphEdge"`
29
+ > `readonly` **Edge**: `"AuditableItemGraphEdge"` = `"AuditableItemGraphEdge"`
42
30
 
43
31
  Represents auditable item graph edge.
44
32
 
45
33
  ### Changeset
46
34
 
47
- > `readonly` **Changeset**: `"https://schema.twindev.org/aig/AuditableItemGraphChangeset"` = `"https://schema.twindev.org/aig/AuditableItemGraphChangeset"`
35
+ > `readonly` **Changeset**: `"AuditableItemGraphChangeset"` = `"AuditableItemGraphChangeset"`
48
36
 
49
37
  Represents auditable item graph changeset.
50
38
 
51
39
  ### PatchOperation
52
40
 
53
- > `readonly` **PatchOperation**: `"https://schema.twindev.org/aig/AuditableItemGraphPatchOperation"` = `"https://schema.twindev.org/aig/AuditableItemGraphPatchOperation"`
41
+ > `readonly` **PatchOperation**: `"AuditableItemGraphPatchOperation"` = `"AuditableItemGraphPatchOperation"`
54
42
 
55
43
  Represents patch operation.
56
44
 
57
- ### Credential
58
-
59
- > `readonly` **Credential**: `"https://schema.twindev.org/aig/AuditableItemGraphPatchCredential"` = `"https://schema.twindev.org/aig/AuditableItemGraphPatchCredential"`
60
-
61
- Represents the immutable credential payload.
62
-
63
- ### Verification
64
-
65
- > `readonly` **Verification**: `"https://schema.twindev.org/aig/AuditableItemGraphVerification"` = `"https://schema.twindev.org/aig/AuditableItemGraphVerification"`
66
-
67
- Represents auditable item stream verification.
68
-
69
- ### VerificationState
45
+ ### VertexList
70
46
 
71
- > `readonly` **VerificationState**: `"https://schema.twindev.org/aig/AuditableItemGraphVerificationState"` = `"https://schema.twindev.org/aig/AuditableItemGraphVerificationState"`
47
+ > `readonly` **VertexList**: `"AuditableItemGraphVertexList"` = `"AuditableItemGraphVertexList"`
72
48
 
73
- Represents auditable item stream verification state.
49
+ Represents auditable item stream vertex list.
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",
3
+ "version": "0.0.1-next.30",
4
4
  "description": "Models which define the structure of the auditable item graph connectors and services",
5
5
  "repository": {
6
6
  "type": "git",
@@ -13,54 +13,25 @@
13
13
  "engines": {
14
14
  "node": ">=20.0.0"
15
15
  },
16
- "scripts": {
17
- "clean": "rimraf dist coverage docs/reference src/schemas",
18
- "build:schema": "ts-to-schema ./ts-to-schema.json ./src/schemas",
19
- "build:compile": "tspc",
20
- "build": "npm run build:schema && npm run build:compile",
21
- "test": "vitest --run --config ./vitest.config.ts --no-cache",
22
- "coverage": "vitest --run --coverage --config ./vitest.config.ts --no-cache",
23
- "bundle:esm": "rollup --config rollup.config.mjs --environment MODULE:esm",
24
- "bundle:cjs": "rollup --config rollup.config.mjs --environment MODULE:cjs",
25
- "bundle": "npm run bundle:esm && npm run bundle:cjs",
26
- "docs:clean": "rimraf docs/reference",
27
- "docs:generate": "typedoc",
28
- "docs": "npm run docs:clean && npm run docs:generate",
29
- "dist": "npm run clean && npm run build && npm run test && npm run bundle && npm run docs"
30
- },
31
16
  "dependencies": {
32
17
  "@twin.org/core": "next",
33
18
  "@twin.org/data-core": "next",
34
19
  "@twin.org/data-json-ld": "next",
35
20
  "@twin.org/entity": "next",
21
+ "@twin.org/immutable-proof-models": "next",
36
22
  "@twin.org/nameof": "next",
37
23
  "@twin.org/web": "next"
38
24
  },
39
- "devDependencies": {
40
- "@twin.org/nameof-transformer": "next",
41
- "@twin.org/ts-to-schema": "next",
42
- "@rollup/plugin-json": "6.1.0",
43
- "@vitest/coverage-v8": "2.1.1",
44
- "copyfiles": "2.4.1",
45
- "rimraf": "6.0.1",
46
- "rollup": "4.22.0",
47
- "rollup-plugin-typescript2": "0.36.0",
48
- "ts-patch": "3.2.1",
49
- "typedoc": "0.26.7",
50
- "typedoc-plugin-markdown": "4.2.7",
51
- "typescript": "5.6.2",
52
- "vitest": "2.1.1"
53
- },
54
25
  "main": "./dist/cjs/index.cjs",
55
26
  "module": "./dist/esm/index.mjs",
56
27
  "types": "./dist/types/index.d.ts",
57
28
  "exports": {
58
29
  ".": {
30
+ "types": "./dist/types/index.d.ts",
59
31
  "require": "./dist/cjs/index.cjs",
60
- "import": "./dist/esm/index.mjs",
61
- "types": "./dist/types/index.d.ts"
32
+ "import": "./dist/esm/index.mjs"
62
33
  },
63
- "./locales": "./locales"
34
+ "./locales/*.json": "./locales/*.json"
64
35
  },
65
36
  "files": [
66
37
  "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,13 +0,0 @@
1
- # Type Alias: JsonReturnType\<T, U, V\>
2
-
3
- > **JsonReturnType**\<`T`, `U`, `V`\>: `T` *extends* `"json"` ? `U` : `V`
4
-
5
- The return type based on the response type.
6
-
7
- ## Type Parameters
8
-
9
- • **T**
10
-
11
- • **U**
12
-
13
- • **V**