@twin.org/auditable-item-graph-models 0.0.3-next.6 → 0.0.3-next.8

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 (67) hide show
  1. package/dist/es/index.js +5 -0
  2. package/dist/es/index.js.map +1 -1
  3. package/dist/es/models/IAuditableItemGraphAlias.js.map +1 -1
  4. package/dist/es/models/IAuditableItemGraphAuditedElement.js.map +1 -1
  5. package/dist/es/models/IAuditableItemGraphChangeset.js.map +1 -1
  6. package/dist/es/models/IAuditableItemGraphChangesetList.js +2 -0
  7. package/dist/es/models/IAuditableItemGraphChangesetList.js.map +1 -0
  8. package/dist/es/models/IAuditableItemGraphComponent.js.map +1 -1
  9. package/dist/es/models/IAuditableItemGraphEdge.js.map +1 -1
  10. package/dist/es/models/IAuditableItemGraphPatchOperation.js.map +1 -1
  11. package/dist/es/models/IAuditableItemGraphResource.js.map +1 -1
  12. package/dist/es/models/IAuditableItemGraphVertex.js.map +1 -1
  13. package/dist/es/models/IAuditableItemGraphVertexList.js.map +1 -1
  14. package/dist/es/models/api/IAuditableItemGraphChangesetGetRequest.js +2 -0
  15. package/dist/es/models/api/IAuditableItemGraphChangesetGetRequest.js.map +1 -0
  16. package/dist/es/models/api/IAuditableItemGraphChangesetGetResponse.js +2 -0
  17. package/dist/es/models/api/IAuditableItemGraphChangesetGetResponse.js.map +1 -0
  18. package/dist/es/models/api/IAuditableItemGraphChangesetListRequest.js +2 -0
  19. package/dist/es/models/api/IAuditableItemGraphChangesetListRequest.js.map +1 -0
  20. package/dist/es/models/api/IAuditableItemGraphChangesetListResponse.js +2 -0
  21. package/dist/es/models/api/IAuditableItemGraphChangesetListResponse.js.map +1 -0
  22. package/dist/es/models/api/IAuditableItemGraphGetRequest.js.map +1 -1
  23. package/dist/es/models/auditableItemGraphTypes.js +5 -1
  24. package/dist/es/models/auditableItemGraphTypes.js.map +1 -1
  25. package/dist/es/schemas/AuditableItemGraphAlias.json +5 -5
  26. package/dist/es/schemas/AuditableItemGraphChangeset.json +5 -6
  27. package/dist/es/schemas/AuditableItemGraphEdge.json +6 -6
  28. package/dist/es/schemas/AuditableItemGraphPatchOperation.json +4 -5
  29. package/dist/es/schemas/AuditableItemGraphResource.json +4 -4
  30. package/dist/es/schemas/AuditableItemGraphVertex.json +9 -16
  31. package/dist/es/schemas/AuditableItemGraphVertexList.json +1 -1
  32. package/dist/types/index.d.ts +5 -0
  33. package/dist/types/models/IAuditableItemGraphAlias.d.ts +2 -0
  34. package/dist/types/models/IAuditableItemGraphAuditedElement.d.ts +3 -0
  35. package/dist/types/models/IAuditableItemGraphChangeset.d.ts +6 -1
  36. package/dist/types/models/IAuditableItemGraphChangesetList.d.ts +27 -0
  37. package/dist/types/models/IAuditableItemGraphComponent.d.ts +29 -2
  38. package/dist/types/models/IAuditableItemGraphEdge.d.ts +3 -0
  39. package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +5 -1
  40. package/dist/types/models/IAuditableItemGraphResource.d.ts +1 -0
  41. package/dist/types/models/IAuditableItemGraphVertex.d.ts +6 -5
  42. package/dist/types/models/IAuditableItemGraphVertexList.d.ts +1 -0
  43. package/dist/types/models/api/IAuditableItemGraphChangesetGetRequest.d.ts +35 -0
  44. package/dist/types/models/api/IAuditableItemGraphChangesetGetResponse.d.ts +17 -0
  45. package/dist/types/models/api/IAuditableItemGraphChangesetListRequest.d.ts +39 -0
  46. package/dist/types/models/api/IAuditableItemGraphChangesetListResponse.d.ts +18 -0
  47. package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +0 -4
  48. package/dist/types/models/auditableItemGraphTypes.d.ts +5 -1
  49. package/docs/changelog.md +16 -0
  50. package/docs/reference/index.md +5 -0
  51. package/docs/reference/interfaces/IAuditableItemGraphAlias.md +5 -0
  52. package/docs/reference/interfaces/IAuditableItemGraphAuditedElement.md +3 -0
  53. package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +7 -2
  54. package/docs/reference/interfaces/IAuditableItemGraphChangesetGetRequest.md +49 -0
  55. package/docs/reference/interfaces/IAuditableItemGraphChangesetGetResponse.md +23 -0
  56. package/docs/reference/interfaces/IAuditableItemGraphChangesetList.md +28 -0
  57. package/docs/reference/interfaces/IAuditableItemGraphChangesetListRequest.md +55 -0
  58. package/docs/reference/interfaces/IAuditableItemGraphChangesetListResponse.md +27 -0
  59. package/docs/reference/interfaces/IAuditableItemGraphComponent.md +83 -5
  60. package/docs/reference/interfaces/IAuditableItemGraphEdge.md +6 -0
  61. package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +0 -6
  62. package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +6 -2
  63. package/docs/reference/interfaces/IAuditableItemGraphResource.md +4 -0
  64. package/docs/reference/interfaces/IAuditableItemGraphVertex.md +9 -8
  65. package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +1 -0
  66. package/docs/reference/variables/AuditableItemGraphTypes.md +7 -1
  67. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ import type { IJsonLdContextDefinitionElement } from "@twin.org/data-json-ld";
2
+ import type { SchemaOrgContexts, SchemaOrgTypes } from "@twin.org/standards-schema-org";
3
+ import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts.js";
4
+ import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes.js";
5
+ import type { IAuditableItemGraphChangeset } from "./IAuditableItemGraphChangeset.js";
6
+ /**
7
+ * Interface describing an auditable item graph changeset list.
8
+ */
9
+ export interface IAuditableItemGraphChangesetList {
10
+ /**
11
+ * JSON-LD Context.
12
+ */
13
+ "@context": [
14
+ typeof SchemaOrgContexts.Context,
15
+ typeof AuditableItemGraphContexts.Context,
16
+ ...IJsonLdContextDefinitionElement[]
17
+ ];
18
+ /**
19
+ * JSON-LD Type.
20
+ */
21
+ type: [typeof SchemaOrgTypes.ItemList, typeof AuditableItemGraphTypes.ChangesetList];
22
+ /**
23
+ * The list of changesets.
24
+ * json-ld namespace:schema
25
+ */
26
+ [SchemaOrgTypes.ItemListElement]: IAuditableItemGraphChangeset[];
27
+ }
@@ -1,6 +1,8 @@
1
1
  import type { IComponent } from "@twin.org/core";
2
2
  import type { IJsonLdNodeObject } from "@twin.org/data-json-ld";
3
3
  import type { IComparator, SortDirection } from "@twin.org/entity";
4
+ import type { IAuditableItemGraphChangeset } from "./IAuditableItemGraphChangeset.js";
5
+ import type { IAuditableItemGraphChangesetList } from "./IAuditableItemGraphChangesetList.js";
4
6
  import type { IAuditableItemGraphVertex } from "./IAuditableItemGraphVertex.js";
5
7
  import type { IAuditableItemGraphVertexList } from "./IAuditableItemGraphVertexList.js";
6
8
  import type { VerifyDepth } from "./verifyDepth.js";
@@ -70,16 +72,41 @@ export interface IAuditableItemGraphComponent extends IComponent {
70
72
  * @param id The id of the vertex to get.
71
73
  * @param options Additional options for the get operation.
72
74
  * @param options.includeDeleted Whether to include deleted aliases, resource, edges, defaults to false.
73
- * @param options.includeChangesets Whether to include the changesets of the vertex, defaults to false.
74
75
  * @param options.verifySignatureDepth How many signatures to verify, defaults to "none".
75
76
  * @returns The vertex if found.
76
77
  * @throws NotFoundError if the vertex is not found.
77
78
  */
78
79
  get(id: string, options?: {
79
80
  includeDeleted?: boolean;
80
- includeChangesets?: boolean;
81
81
  verifySignatureDepth?: VerifyDepth;
82
82
  }): Promise<IAuditableItemGraphVertex>;
83
+ /**
84
+ * Get a graph vertex changeset list.
85
+ * @param id The id of the vertex to get.
86
+ * @param cursor The optional cursor to get next chunk.
87
+ * @param limit Limit the number of entities to return.
88
+ * @param options Additional options for the get operation.
89
+ * @param options.verifySignatureDepth How many signatures to verify, defaults to "none".
90
+ * @returns The changeset if found.
91
+ * @throws NotFoundError if the vertex is not found.
92
+ */
93
+ getChangesets(id: string, cursor?: string, limit?: number, options?: {
94
+ verifySignatureDepth?: VerifyDepth;
95
+ }): Promise<{
96
+ changesets: IAuditableItemGraphChangesetList;
97
+ cursor?: string;
98
+ }>;
99
+ /**
100
+ * Get a graph vertex changeset.
101
+ * @param id The id of the vertex to get.
102
+ * @param options Additional options for the get operation.
103
+ * @param options.verifySignatureDepth How many signatures to verify, defaults to "none".
104
+ * @returns The changeset if found.
105
+ * @throws NotFoundError if the vertex or changeset is not found.
106
+ */
107
+ getChangeset(id: string, options?: {
108
+ verifySignatureDepth?: VerifyDepth;
109
+ }): Promise<IAuditableItemGraphChangeset>;
83
110
  /**
84
111
  * Remove the verifiable storage for an item.
85
112
  * @param id The id of the vertex to remove the storage from.
@@ -16,6 +16,7 @@ export interface IAuditableItemGraphEdge extends IAuditableItemGraphAuditedEleme
16
16
  id?: string;
17
17
  /**
18
18
  * The target vertex id the edge connects to.
19
+ * json-ld type:@id
19
20
  */
20
21
  targetId: string;
21
22
  /**
@@ -24,10 +25,12 @@ export interface IAuditableItemGraphEdge extends IAuditableItemGraphAuditedEleme
24
25
  type: typeof AuditableItemGraphTypes.Edge;
25
26
  /**
26
27
  * The JSON-LD annotation object for the edge.
28
+ * json-ld namespace:twin-common
27
29
  */
28
30
  annotationObject?: IJsonLdNodeObject;
29
31
  /**
30
32
  * The relationships between the two vertices.
33
+ * json-ld container:set
31
34
  */
32
35
  edgeRelationships: string[];
33
36
  }
@@ -8,25 +8,29 @@ export interface IAuditableItemGraphPatchOperation {
8
8
  /**
9
9
  * JSON-LD Context.
10
10
  */
11
- "@context": typeof AuditableItemGraphContexts.Context | [typeof AuditableItemGraphContexts.Context, ...IJsonLdContextDefinitionElement[]];
11
+ "@context"?: typeof AuditableItemGraphContexts.Context | [typeof AuditableItemGraphContexts.Context, ...IJsonLdContextDefinitionElement[]];
12
12
  /**
13
13
  * JSON-LD Type.
14
14
  */
15
15
  type: typeof AuditableItemGraphTypes.PatchOperation;
16
16
  /**
17
17
  * The operation that was performed on the item.
18
+ * json-ld type:schema:Text
18
19
  */
19
20
  patchOperation: "add" | "remove" | "replace" | "move" | "copy" | "test";
20
21
  /**
21
22
  * The path to the object that was changed.
23
+ * json-ld type:schema:Text
22
24
  */
23
25
  patchPath: string;
24
26
  /**
25
27
  * The path the value was copied or moved from.
28
+ * json-ld type:schema:Text
26
29
  */
27
30
  patchFrom?: string;
28
31
  /**
29
32
  * The value to add.
33
+ * json-ld type:json
30
34
  */
31
35
  patchValue?: unknown;
32
36
  }
@@ -16,6 +16,7 @@ export interface IAuditableItemGraphResource extends IAuditableItemGraphAuditedE
16
16
  type: typeof AuditableItemGraphTypes.Resource;
17
17
  /**
18
18
  * The JSON-LD object for the resource.
19
+ * json-ld type:json
19
20
  */
20
21
  resourceObject?: IJsonLdNodeObject;
21
22
  }
@@ -3,7 +3,6 @@ import type { AuditableItemGraphContexts } from "./auditableItemGraphContexts.js
3
3
  import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes.js";
4
4
  import type { IAuditableItemGraphAlias } from "./IAuditableItemGraphAlias.js";
5
5
  import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAuditedElement.js";
6
- import type { IAuditableItemGraphChangeset } from "./IAuditableItemGraphChangeset.js";
7
6
  import type { IAuditableItemGraphEdge } from "./IAuditableItemGraphEdge.js";
8
7
  import type { IAuditableItemGraphResource } from "./IAuditableItemGraphResource.js";
9
8
  /**
@@ -28,30 +27,32 @@ export interface IAuditableItemGraphVertex extends Omit<IAuditableItemGraphAudit
28
27
  type: typeof AuditableItemGraphTypes.Vertex;
29
28
  /**
30
29
  * The identity of the organization which controls the vertex.
30
+ * json-ld namespace:twin-common
31
31
  */
32
32
  organizationIdentity?: string;
33
33
  /**
34
34
  * The JSON-LD annotation object for the vertex.
35
+ * json-ld namespace:twin-common
35
36
  */
36
37
  annotationObject?: IJsonLdNodeObject;
37
38
  /**
38
39
  * Alternative aliases that can be used to identify the vertex.
40
+ * json-ld container:set
39
41
  */
40
42
  aliases?: IAuditableItemGraphAlias[];
41
43
  /**
42
44
  * The resources attached to the vertex.
45
+ * json-ld container:set
43
46
  */
44
47
  resources?: IAuditableItemGraphResource[];
45
48
  /**
46
49
  * Edges connected to the vertex.
50
+ * json-ld container:set
47
51
  */
48
52
  edges?: IAuditableItemGraphEdge[];
49
- /**
50
- * Changesets for the vertex.
51
- */
52
- changesets?: IAuditableItemGraphChangeset[];
53
53
  /**
54
54
  * Is the vertex verified, will only be populated when verification is requested.
55
+ * json-ld namespace:twin-common
55
56
  */
56
57
  verified?: boolean;
57
58
  }
@@ -21,6 +21,7 @@ export interface IAuditableItemGraphVertexList {
21
21
  type: [typeof SchemaOrgTypes.ItemList, typeof AuditableItemGraphTypes.VertexList];
22
22
  /**
23
23
  * The list of vertices.
24
+ * json-ld namespace:schema
24
25
  */
25
26
  [SchemaOrgTypes.ItemListElement]: IAuditableItemGraphVertex[];
26
27
  }
@@ -0,0 +1,35 @@
1
+ import type { HeaderTypes, MimeTypes } from "@twin.org/web";
2
+ import type { VerifyDepth } from "../verifyDepth.js";
3
+ /**
4
+ * Get an auditable item graph vertex changeset.
5
+ */
6
+ export interface IAuditableItemGraphChangesetGetRequest {
7
+ /**
8
+ * The headers which can be used to determine the response data type.
9
+ */
10
+ headers?: {
11
+ [HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;
12
+ };
13
+ /**
14
+ * The parameters from the path.
15
+ */
16
+ pathParams: {
17
+ /**
18
+ * The id of the vertex to get the changeset from.
19
+ */
20
+ id: string;
21
+ /**
22
+ * The id of the changeset to get.
23
+ */
24
+ changesetId: string;
25
+ };
26
+ /**
27
+ * The query parameters.
28
+ */
29
+ query?: {
30
+ /**
31
+ * How many signatures to verify, none, current or all, defaults to "none".
32
+ */
33
+ verifySignatureDepth?: VerifyDepth;
34
+ };
35
+ }
@@ -0,0 +1,17 @@
1
+ import type { HeaderTypes, MimeTypes } from "@twin.org/web";
2
+ import type { IAuditableItemGraphChangeset } from "../IAuditableItemGraphChangeset.js";
3
+ /**
4
+ * Response to getting an auditable item graph vertex changeset.
5
+ */
6
+ export interface IAuditableItemGraphChangesetGetResponse {
7
+ /**
8
+ * The headers which can be used to determine the response data type.
9
+ */
10
+ headers?: {
11
+ [HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;
12
+ };
13
+ /**
14
+ * The response body.
15
+ */
16
+ body: IAuditableItemGraphChangeset;
17
+ }
@@ -0,0 +1,39 @@
1
+ import type { HeaderTypes, MimeTypes } from "@twin.org/web";
2
+ import type { VerifyDepth } from "../verifyDepth.js";
3
+ /**
4
+ * Get an auditable item graph changeset.
5
+ */
6
+ export interface IAuditableItemGraphChangesetListRequest {
7
+ /**
8
+ * The headers which can be used to determine the response data type.
9
+ */
10
+ headers?: {
11
+ [HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;
12
+ };
13
+ /**
14
+ * The parameters from the path.
15
+ */
16
+ pathParams: {
17
+ /**
18
+ * The id of the changeset to get.
19
+ */
20
+ id: string;
21
+ };
22
+ /**
23
+ * The query parameters.
24
+ */
25
+ query?: {
26
+ /**
27
+ * The optional cursor to get next chunk.
28
+ */
29
+ cursor?: string;
30
+ /**
31
+ * Limit the number of entities to return.
32
+ */
33
+ limit?: string;
34
+ /**
35
+ * How many signatures to verify, none, current or all, defaults to "none".
36
+ */
37
+ verifySignatureDepth?: VerifyDepth;
38
+ };
39
+ }
@@ -0,0 +1,18 @@
1
+ import type { HeaderTypes, MimeTypes } from "@twin.org/web";
2
+ import type { IAuditableItemGraphChangesetList } from "../IAuditableItemGraphChangesetList.js";
3
+ /**
4
+ * Response to getting an auditable item graph changeset list.
5
+ */
6
+ export interface IAuditableItemGraphChangesetListResponse {
7
+ /**
8
+ * The headers which can be used to determine the response data type.
9
+ */
10
+ headers?: {
11
+ [HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;
12
+ [HeaderTypes.Link]?: string | string[];
13
+ };
14
+ /**
15
+ * The response body.
16
+ */
17
+ body: IAuditableItemGraphChangesetList;
18
+ }
@@ -27,10 +27,6 @@ export interface IAuditableItemGraphGetRequest {
27
27
  * Whether to include deleted aliases, resource, edges, defaults to false.
28
28
  */
29
29
  includeDeleted?: string;
30
- /**
31
- * Whether to include the changesets of the vertex, defaults to false.
32
- */
33
- includeChangesets?: string;
34
30
  /**
35
31
  * How many signatures to verify, none, current or all, defaults to "none".
36
32
  */
@@ -23,9 +23,13 @@ export declare const AuditableItemGraphTypes: {
23
23
  */
24
24
  readonly Edge: "AuditableItemGraphEdge";
25
25
  /**
26
- * Represents auditable item graph changeset.
26
+ * Represents auditable item graph changeset.
27
27
  */
28
28
  readonly Changeset: "AuditableItemGraphChangeset";
29
+ /**
30
+ * Represents auditable item graph changeset list.
31
+ */
32
+ readonly ChangesetList: "AuditableItemGraphChangesetList";
29
33
  /**
30
34
  * Represents patch operation.
31
35
  */
package/docs/changelog.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @twin.org/auditable-item-graph-models - Changelog
2
2
 
3
+ ## [0.0.3-next.8](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.3-next.7...auditable-item-graph-models-v0.0.3-next.8) (2026-02-11)
4
+
5
+
6
+ ### Miscellaneous Chores
7
+
8
+ * **auditable-item-graph-models:** Synchronize repo versions
9
+
10
+ ## [0.0.3-next.7](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.3-next.6...auditable-item-graph-models-v0.0.3-next.7) (2026-02-11)
11
+
12
+
13
+ ### Features
14
+
15
+ * add ts-to-jsonld-context tool ([08d360e](https://github.com/twinfoundation/auditable-item-graph/commit/08d360e05fd7f8c5bbe6ee4d4e691ffd516db418))
16
+ * changeset endpoints ([#44](https://github.com/twinfoundation/auditable-item-graph/issues/44)) ([7c854de](https://github.com/twinfoundation/auditable-item-graph/commit/7c854de39b247d6f24cd94a04a9f99fa9edde51d))
17
+ * update targetid json context type ([1e47ca7](https://github.com/twinfoundation/auditable-item-graph/commit/1e47ca7ec3080251d940fd8e58c44ca4fa9457f7))
18
+
3
19
  ## [0.0.3-next.6](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.3-next.5...auditable-item-graph-models-v0.0.3-next.6) (2026-01-26)
4
20
 
5
21
 
@@ -9,12 +9,17 @@
9
9
  - [IAuditableItemGraphAlias](interfaces/IAuditableItemGraphAlias.md)
10
10
  - [IAuditableItemGraphAuditedElement](interfaces/IAuditableItemGraphAuditedElement.md)
11
11
  - [IAuditableItemGraphChangeset](interfaces/IAuditableItemGraphChangeset.md)
12
+ - [IAuditableItemGraphChangesetList](interfaces/IAuditableItemGraphChangesetList.md)
12
13
  - [IAuditableItemGraphComponent](interfaces/IAuditableItemGraphComponent.md)
13
14
  - [IAuditableItemGraphEdge](interfaces/IAuditableItemGraphEdge.md)
14
15
  - [IAuditableItemGraphPatchOperation](interfaces/IAuditableItemGraphPatchOperation.md)
15
16
  - [IAuditableItemGraphResource](interfaces/IAuditableItemGraphResource.md)
16
17
  - [IAuditableItemGraphVertex](interfaces/IAuditableItemGraphVertex.md)
17
18
  - [IAuditableItemGraphVertexList](interfaces/IAuditableItemGraphVertexList.md)
19
+ - [IAuditableItemGraphChangesetGetRequest](interfaces/IAuditableItemGraphChangesetGetRequest.md)
20
+ - [IAuditableItemGraphChangesetGetResponse](interfaces/IAuditableItemGraphChangesetGetResponse.md)
21
+ - [IAuditableItemGraphChangesetListRequest](interfaces/IAuditableItemGraphChangesetListRequest.md)
22
+ - [IAuditableItemGraphChangesetListResponse](interfaces/IAuditableItemGraphChangesetListResponse.md)
18
23
  - [IAuditableItemGraphCreateRequest](interfaces/IAuditableItemGraphCreateRequest.md)
19
24
  - [IAuditableItemGraphGetRequest](interfaces/IAuditableItemGraphGetRequest.md)
20
25
  - [IAuditableItemGraphGetResponse](interfaces/IAuditableItemGraphGetResponse.md)
@@ -41,6 +41,7 @@ JSON-LD Type.
41
41
  > `optional` **annotationObject**: `IJsonLdNodeObject`
42
42
 
43
43
  The JSON-LD annotation object for the alias.
44
+ json-ld namespace:twin-common
44
45
 
45
46
  ***
46
47
 
@@ -49,6 +50,7 @@ The JSON-LD annotation object for the alias.
49
50
  > `optional` **aliasFormat**: `string`
50
51
 
51
52
  The format of the id in the alias.
53
+ json-ld type:schema:Text
52
54
 
53
55
  ***
54
56
 
@@ -57,6 +59,7 @@ The format of the id in the alias.
57
59
  > `optional` **dateCreated**: `string`
58
60
 
59
61
  The date/time of when the element was created.
62
+ json-ld namespace:schema
60
63
 
61
64
  #### Inherited from
62
65
 
@@ -69,6 +72,7 @@ The date/time of when the element was created.
69
72
  > `optional` **dateModified**: `string`
70
73
 
71
74
  The date/time of when the element was modified.
75
+ json-ld namespace:schema
72
76
 
73
77
  #### Inherited from
74
78
 
@@ -81,6 +85,7 @@ The date/time of when the element was modified.
81
85
  > `optional` **dateDeleted**: `string`
82
86
 
83
87
  The date/time of when the element was deleted, as we never actually remove items.
88
+ json-ld namespace:schema
84
89
 
85
90
  #### Inherited from
86
91
 
@@ -23,6 +23,7 @@ The id of the element.
23
23
  > `optional` **dateCreated**: `string`
24
24
 
25
25
  The date/time of when the element was created.
26
+ json-ld namespace:schema
26
27
 
27
28
  ***
28
29
 
@@ -31,6 +32,7 @@ The date/time of when the element was created.
31
32
  > `optional` **dateModified**: `string`
32
33
 
33
34
  The date/time of when the element was modified.
35
+ json-ld namespace:schema
34
36
 
35
37
  ***
36
38
 
@@ -39,3 +41,4 @@ The date/time of when the element was modified.
39
41
  > `optional` **dateDeleted**: `string`
40
42
 
41
43
  The date/time of when the element was deleted, as we never actually remove items.
44
+ json-ld namespace:schema
@@ -4,9 +4,9 @@ Interface describing a set of changes to the vertex.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### @context
7
+ ### @context?
8
8
 
9
- > **@context**: \[`"https://schema.twindev.org/aig/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
9
+ > `optional` **@context**: \[`"https://schema.twindev.org/aig/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
10
10
 
11
11
  JSON-LD Context.
12
12
 
@@ -33,6 +33,7 @@ The id of the changeset.
33
33
  > **dateCreated**: `string`
34
34
 
35
35
  The date/time of when the changeset was created.
36
+ json-ld namespace:schema
36
37
 
37
38
  ***
38
39
 
@@ -41,6 +42,7 @@ The date/time of when the changeset was created.
41
42
  > `optional` **userIdentity**: `string`
42
43
 
43
44
  The user identity that created the changes.
45
+ json-ld namespace:twin-common
44
46
 
45
47
  ***
46
48
 
@@ -49,6 +51,7 @@ The user identity that created the changes.
49
51
  > **patches**: [`IAuditableItemGraphPatchOperation`](IAuditableItemGraphPatchOperation.md)[]
50
52
 
51
53
  The patches in the changeset.
54
+ json-ld container:set
52
55
 
53
56
  ***
54
57
 
@@ -57,6 +60,7 @@ The patches in the changeset.
57
60
  > `optional` **proofId**: `string`
58
61
 
59
62
  The immutable proof id which contains the signature for this changeset.
63
+ json-ld type:schema:identifier
60
64
 
61
65
  ***
62
66
 
@@ -65,3 +69,4 @@ The immutable proof id which contains the signature for this changeset.
65
69
  > `optional` **verification**: `IImmutableProofVerification`
66
70
 
67
71
  The verification for the changeset.
72
+ json-ld id
@@ -0,0 +1,49 @@
1
+ # Interface: IAuditableItemGraphChangesetGetRequest
2
+
3
+ Get an auditable item graph vertex changeset.
4
+
5
+ ## Properties
6
+
7
+ ### headers?
8
+
9
+ > `optional` **headers**: `object`
10
+
11
+ The headers which can be used to determine the response data type.
12
+
13
+ #### accept
14
+
15
+ > **accept**: `"application/json"` \| `"application/ld+json"`
16
+
17
+ ***
18
+
19
+ ### pathParams
20
+
21
+ > **pathParams**: `object`
22
+
23
+ The parameters from the path.
24
+
25
+ #### id
26
+
27
+ > **id**: `string`
28
+
29
+ The id of the vertex to get the changeset from.
30
+
31
+ #### changesetId
32
+
33
+ > **changesetId**: `string`
34
+
35
+ The id of the changeset to get.
36
+
37
+ ***
38
+
39
+ ### query?
40
+
41
+ > `optional` **query**: `object`
42
+
43
+ The query parameters.
44
+
45
+ #### verifySignatureDepth?
46
+
47
+ > `optional` **verifySignatureDepth**: [`VerifyDepth`](../type-aliases/VerifyDepth.md)
48
+
49
+ How many signatures to verify, none, current or all, defaults to "none".
@@ -0,0 +1,23 @@
1
+ # Interface: IAuditableItemGraphChangesetGetResponse
2
+
3
+ Response to getting an auditable item graph vertex changeset.
4
+
5
+ ## Properties
6
+
7
+ ### headers?
8
+
9
+ > `optional` **headers**: `object`
10
+
11
+ The headers which can be used to determine the response data type.
12
+
13
+ #### content-type
14
+
15
+ > **content-type**: `"application/json"` \| `"application/ld+json"`
16
+
17
+ ***
18
+
19
+ ### body
20
+
21
+ > **body**: [`IAuditableItemGraphChangeset`](IAuditableItemGraphChangeset.md)
22
+
23
+ The response body.
@@ -0,0 +1,28 @@
1
+ # Interface: IAuditableItemGraphChangesetList
2
+
3
+ Interface describing an auditable item graph changeset 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"`, `"AuditableItemGraphChangesetList"`\]
18
+
19
+ JSON-LD Type.
20
+
21
+ ***
22
+
23
+ ### itemListElement
24
+
25
+ > **itemListElement**: [`IAuditableItemGraphChangeset`](IAuditableItemGraphChangeset.md)[]
26
+
27
+ The list of changesets.
28
+ json-ld namespace:schema
@@ -0,0 +1,55 @@
1
+ # Interface: IAuditableItemGraphChangesetListRequest
2
+
3
+ Get an auditable item graph changeset.
4
+
5
+ ## Properties
6
+
7
+ ### headers?
8
+
9
+ > `optional` **headers**: `object`
10
+
11
+ The headers which can be used to determine the response data type.
12
+
13
+ #### accept
14
+
15
+ > **accept**: `"application/json"` \| `"application/ld+json"`
16
+
17
+ ***
18
+
19
+ ### pathParams
20
+
21
+ > **pathParams**: `object`
22
+
23
+ The parameters from the path.
24
+
25
+ #### id
26
+
27
+ > **id**: `string`
28
+
29
+ The id of the changeset to get.
30
+
31
+ ***
32
+
33
+ ### query?
34
+
35
+ > `optional` **query**: `object`
36
+
37
+ The query parameters.
38
+
39
+ #### cursor?
40
+
41
+ > `optional` **cursor**: `string`
42
+
43
+ The optional cursor to get next chunk.
44
+
45
+ #### limit?
46
+
47
+ > `optional` **limit**: `string`
48
+
49
+ Limit the number of entities to return.
50
+
51
+ #### verifySignatureDepth?
52
+
53
+ > `optional` **verifySignatureDepth**: [`VerifyDepth`](../type-aliases/VerifyDepth.md)
54
+
55
+ How many signatures to verify, none, current or all, defaults to "none".
@@ -0,0 +1,27 @@
1
+ # Interface: IAuditableItemGraphChangesetListResponse
2
+
3
+ Response to getting an auditable item graph changeset list.
4
+
5
+ ## Properties
6
+
7
+ ### headers?
8
+
9
+ > `optional` **headers**: `object`
10
+
11
+ The headers which can be used to determine the response data type.
12
+
13
+ #### content-type
14
+
15
+ > **content-type**: `"application/json"` \| `"application/ld+json"`
16
+
17
+ #### link?
18
+
19
+ > `optional` **link**: `string` \| `string`[]
20
+
21
+ ***
22
+
23
+ ### body
24
+
25
+ > **body**: [`IAuditableItemGraphChangesetList`](IAuditableItemGraphChangesetList.md)
26
+
27
+ The response body.