@twin.org/auditable-item-graph-models 0.0.3-next.13 → 0.0.3-next.14
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/es/index.js +5 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphChangeset.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphComponent.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphVertex.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphVertexVersionList.js +2 -0
- package/dist/es/models/IAuditableItemGraphVertexVersionList.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListResponse.js.map +1 -0
- package/dist/es/models/auditableItemGraphTypes.js +5 -1
- package/dist/es/models/auditableItemGraphTypes.js.map +1 -1
- package/dist/es/schemas/AuditableItemGraphChangeset.json +4 -0
- package/dist/es/schemas/AuditableItemGraphVertex.json +4 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/models/IAuditableItemGraphChangeset.d.ts +6 -0
- package/dist/types/models/IAuditableItemGraphComponent.d.ts +22 -0
- package/dist/types/models/IAuditableItemGraphVertex.d.ts +6 -0
- package/dist/types/models/IAuditableItemGraphVertexVersionList.d.ts +26 -0
- package/dist/types/models/api/IAuditableItemGraphVersionGetRequest.d.ts +25 -0
- package/dist/types/models/api/IAuditableItemGraphVersionGetResponse.d.ts +17 -0
- package/dist/types/models/api/IAuditableItemGraphVersionListRequest.d.ts +34 -0
- package/dist/types/models/api/IAuditableItemGraphVersionListResponse.d.ts +17 -0
- package/dist/types/models/auditableItemGraphTypes.d.ts +4 -0
- package/docs/changelog.md +7 -0
- package/docs/reference/index.md +5 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +9 -0
- package/docs/reference/interfaces/IAuditableItemGraphComponent.md +74 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionGetRequest.md +35 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionGetResponse.md +23 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionListRequest.md +49 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionListResponse.md +23 -0
- package/docs/reference/interfaces/IAuditableItemGraphVertex.md +9 -0
- package/docs/reference/interfaces/IAuditableItemGraphVertexVersionList.md +27 -0
- package/docs/reference/variables/AuditableItemGraphTypes.md +6 -0
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -11,6 +11,10 @@ export * from "./models/api/IAuditableItemGraphGetResponse.js";
|
|
|
11
11
|
export * from "./models/api/IAuditableItemGraphListRequest.js";
|
|
12
12
|
export * from "./models/api/IAuditableItemGraphListResponse.js";
|
|
13
13
|
export * from "./models/api/IAuditableItemGraphUpdateRequest.js";
|
|
14
|
+
export * from "./models/api/IAuditableItemGraphVersionGetRequest.js";
|
|
15
|
+
export * from "./models/api/IAuditableItemGraphVersionGetResponse.js";
|
|
16
|
+
export * from "./models/api/IAuditableItemGraphVersionListRequest.js";
|
|
17
|
+
export * from "./models/api/IAuditableItemGraphVersionListResponse.js";
|
|
14
18
|
export * from "./models/auditableItemGraphContexts.js";
|
|
15
19
|
export * from "./models/auditableItemGraphTopics.js";
|
|
16
20
|
export * from "./models/auditableItemGraphTypes.js";
|
|
@@ -26,5 +30,6 @@ export * from "./models/IAuditableItemGraphPatchOperation.js";
|
|
|
26
30
|
export * from "./models/IAuditableItemGraphResource.js";
|
|
27
31
|
export * from "./models/IAuditableItemGraphVertex.js";
|
|
28
32
|
export * from "./models/IAuditableItemGraphVertexList.js";
|
|
33
|
+
export * from "./models/IAuditableItemGraphVertexVersionList.js";
|
|
29
34
|
export * from "./models/verifyDepth.js";
|
|
30
35
|
//# sourceMappingURL=index.js.map
|
package/dist/es/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wDAAwD,CAAC;AACvE,cAAc,yDAAyD,CAAC;AACxE,cAAc,yDAAyD,CAAC;AACxE,cAAc,0DAA0D,CAAC;AACzE,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+DAA+D,CAAC;AAC9E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,sCAAsC,CAAC;AACrD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yBAAyB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./dataTypes/auditableItemGraphDataTypes.js\";\nexport * from \"./models/api/IAuditableItemGraphChangesetGetRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphChangesetGetResponse.js\";\nexport * from \"./models/api/IAuditableItemGraphChangesetListRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphChangesetListResponse.js\";\nexport * from \"./models/api/IAuditableItemGraphCreateRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphGetRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphGetResponse.js\";\nexport * from \"./models/api/IAuditableItemGraphListRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphListResponse.js\";\nexport * from \"./models/api/IAuditableItemGraphUpdateRequest.js\";\nexport * from \"./models/auditableItemGraphContexts.js\";\nexport * from \"./models/auditableItemGraphTopics.js\";\nexport * from \"./models/auditableItemGraphTypes.js\";\nexport * from \"./models/eventBus/IAuditableItemGraphEventBusVertexCreated.js\";\nexport * from \"./models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js\";\nexport * from \"./models/IAuditableItemGraphAlias.js\";\nexport * from \"./models/IAuditableItemGraphAuditedElement.js\";\nexport * from \"./models/IAuditableItemGraphChangeset.js\";\nexport * from \"./models/IAuditableItemGraphChangesetList.js\";\nexport * from \"./models/IAuditableItemGraphComponent.js\";\nexport * from \"./models/IAuditableItemGraphEdge.js\";\nexport * from \"./models/IAuditableItemGraphPatchOperation.js\";\nexport * from \"./models/IAuditableItemGraphResource.js\";\nexport * from \"./models/IAuditableItemGraphVertex.js\";\nexport * from \"./models/IAuditableItemGraphVertexList.js\";\nexport * from \"./models/verifyDepth.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wDAAwD,CAAC;AACvE,cAAc,yDAAyD,CAAC;AACxE,cAAc,yDAAyD,CAAC;AACxE,cAAc,0DAA0D,CAAC;AACzE,cAAc,kDAAkD,CAAC;AACjE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,sDAAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,uDAAuD,CAAC;AACtE,cAAc,wDAAwD,CAAC;AACvE,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+DAA+D,CAAC;AAC9E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,sCAAsC,CAAC;AACrD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0CAA0C,CAAC;AACzD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kDAAkD,CAAC;AACjE,cAAc,yBAAyB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nexport * from \"./dataTypes/auditableItemGraphDataTypes.js\";\nexport * from \"./models/api/IAuditableItemGraphChangesetGetRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphChangesetGetResponse.js\";\nexport * from \"./models/api/IAuditableItemGraphChangesetListRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphChangesetListResponse.js\";\nexport * from \"./models/api/IAuditableItemGraphCreateRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphGetRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphGetResponse.js\";\nexport * from \"./models/api/IAuditableItemGraphListRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphListResponse.js\";\nexport * from \"./models/api/IAuditableItemGraphUpdateRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphVersionGetRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphVersionGetResponse.js\";\nexport * from \"./models/api/IAuditableItemGraphVersionListRequest.js\";\nexport * from \"./models/api/IAuditableItemGraphVersionListResponse.js\";\nexport * from \"./models/auditableItemGraphContexts.js\";\nexport * from \"./models/auditableItemGraphTopics.js\";\nexport * from \"./models/auditableItemGraphTypes.js\";\nexport * from \"./models/eventBus/IAuditableItemGraphEventBusVertexCreated.js\";\nexport * from \"./models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js\";\nexport * from \"./models/IAuditableItemGraphAlias.js\";\nexport * from \"./models/IAuditableItemGraphAuditedElement.js\";\nexport * from \"./models/IAuditableItemGraphChangeset.js\";\nexport * from \"./models/IAuditableItemGraphChangesetList.js\";\nexport * from \"./models/IAuditableItemGraphComponent.js\";\nexport * from \"./models/IAuditableItemGraphEdge.js\";\nexport * from \"./models/IAuditableItemGraphPatchOperation.js\";\nexport * from \"./models/IAuditableItemGraphResource.js\";\nexport * from \"./models/IAuditableItemGraphVertex.js\";\nexport * from \"./models/IAuditableItemGraphVertexList.js\";\nexport * from \"./models/IAuditableItemGraphVertexVersionList.js\";\nexport * from \"./models/verifyDepth.js\";\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAuditableItemGraphChangeset.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphChangeset.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { IImmutableProofVerification } from \"@twin.org/immutable-proof-models\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphPatchOperation } from \"./IAuditableItemGraphPatchOperation.js\";\n\n/**\n * Interface describing a set of changes to the vertex.\n */\nexport interface IAuditableItemGraphChangeset {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\"?: [\n\t\ttypeof AuditableItemGraphContexts.Context,\n\t\ttypeof AuditableItemGraphContexts.ContextCommon,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Changeset;\n\n\t/**\n\t * The id of the changeset.\n\t */\n\tid: string;\n\n\t/**\n\t * The date/time of when the changeset was created.\n\t * @json-ld namespace:sch\n\t */\n\tdateCreated: string;\n\n\t/**\n\t * The user identity that created the changes.\n\t * @json-ld namespace:twin-common\n\t */\n\tuserIdentity?: string;\n\n\t/**\n\t * The patches in the changeset.\n\t * @json-ld container:set\n\t */\n\tpatches: IAuditableItemGraphPatchOperation[];\n\n\t/**\n\t * The immutable proof id which contains the signature for this changeset.\n\t * @json-ld type:sch:identifier\n\t */\n\tproofId?: string;\n\n\t/**\n\t * The verification for the changeset.\n\t * @json-ld id\n\t */\n\tverification?: IImmutableProofVerification;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphChangeset.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphChangeset.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { IImmutableProofVerification } from \"@twin.org/immutable-proof-models\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphPatchOperation } from \"./IAuditableItemGraphPatchOperation.js\";\n\n/**\n * Interface describing a set of changes to the vertex.\n */\nexport interface IAuditableItemGraphChangeset {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\"?: [\n\t\ttypeof AuditableItemGraphContexts.Context,\n\t\ttypeof AuditableItemGraphContexts.ContextCommon,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Changeset;\n\n\t/**\n\t * The id of the changeset.\n\t */\n\tid: string;\n\n\t/**\n\t * The date/time of when the changeset was created.\n\t * @json-ld namespace:sch\n\t */\n\tdateCreated: string;\n\n\t/**\n\t * The user identity that created the changes.\n\t * @json-ld namespace:twin-common\n\t */\n\tuserIdentity?: string;\n\n\t/**\n\t * The patches in the changeset.\n\t * @json-ld container:set\n\t */\n\tpatches: IAuditableItemGraphPatchOperation[];\n\n\t/**\n\t * The immutable proof id which contains the signature for this changeset.\n\t * @json-ld type:sch:identifier\n\t */\n\tproofId?: string;\n\n\t/**\n\t * The verification for the changeset.\n\t * @json-ld id\n\t */\n\tverification?: IImmutableProofVerification;\n\n\t/**\n\t * The version number of the vertex after this changeset was applied.\n\t * Maps to https://schema.org/version.\n\t * @json-ld namespace:sch\n\t */\n\tversion?: number;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAuditableItemGraphComponent.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IComparator, SortDirection } from \"@twin.org/entity\";\nimport type { IAuditableItemGraphChangeset } from \"./IAuditableItemGraphChangeset.js\";\nimport type { IAuditableItemGraphChangesetList } from \"./IAuditableItemGraphChangesetList.js\";\nimport type { IAuditableItemGraphVertex } from \"./IAuditableItemGraphVertex.js\";\nimport type { IAuditableItemGraphVertexList } from \"./IAuditableItemGraphVertexList.js\";\nimport type { VerifyDepth } from \"./verifyDepth.js\";\n\n/**\n * Interface describing an auditable item graph contract.\n */\nexport interface IAuditableItemGraphComponent extends IComponent {\n\t/**\n\t * Create a new graph vertex.\n\t * @param vertex The vertex to create.\n\t * @param vertex.annotationObject The annotation object for the vertex as JSON-LD.\n\t * @param vertex.aliases Alternative aliases that can be used to identify the vertex.\n\t * @param vertex.resources The resources attached to the vertex.\n\t * @param vertex.edges The edges connected to the vertex.\n\t * @returns The id of the new graph item.\n\t */\n\tcreate(vertex: Omit<IAuditableItemGraphVertex, \"id\">): Promise<string>;\n\n\t/**\n\t * Update a graph vertex.\n\t * @param vertex The vertex to update.\n\t * @param vertex.id The id of the vertex to update.\n\t * @param vertex.annotationObject The annotation object for the vertex as JSON-LD.\n\t * @param vertex.aliases Alternative aliases that can be used to identify the vertex.\n\t * @param vertex.resources The resources attached to the vertex.\n\t * @param vertex.edges The edges connected to the vertex.\n\t * @returns Nothing.\n\t */\n\tupdate(vertex: IAuditableItemGraphVertex): Promise<void>;\n\n\t/**\n\t * Get a graph vertex.\n\t * @param id The id of the vertex to get.\n\t * @param options Additional options for the get operation.\n\t * @param options.includeDeleted Whether to include deleted aliases, resource, edges, defaults to false.\n\t * @param options.verifySignatureDepth How many signatures to verify, defaults to \"none\".\n\t * @returns The vertex if found.\n\t * @throws NotFoundError if the vertex is not found.\n\t */\n\tget(\n\t\tid: string,\n\t\toptions?: {\n\t\t\tincludeDeleted?: boolean;\n\t\t\tverifySignatureDepth?: VerifyDepth;\n\t\t}\n\t): Promise<IAuditableItemGraphVertex>;\n\n\t/**\n\t * Get a graph vertex changeset list.\n\t * @param id The id of the vertex to get.\n\t * @param cursor The optional cursor to get next chunk.\n\t * @param limit Limit the number of entities to return.\n\t * @param options Additional options for the get operation.\n\t * @param options.verifySignatureDepth How many signatures to verify, defaults to \"none\".\n\t * @returns The changeset if found.\n\t * @throws NotFoundError if the vertex is not found.\n\t */\n\tgetChangesets(\n\t\tid: string,\n\t\tcursor?: string,\n\t\tlimit?: number,\n\t\toptions?: {\n\t\t\tverifySignatureDepth?: VerifyDepth;\n\t\t}\n\t): Promise<{\n\t\tchangesets: IAuditableItemGraphChangesetList;\n\t\tcursor?: string;\n\t}>;\n\n\t/**\n\t * Get a graph vertex changeset.\n\t * @param id The id of the vertex to get.\n\t * @param options Additional options for the get operation.\n\t * @param options.verifySignatureDepth How many signatures to verify, defaults to \"none\".\n\t * @returns The changeset if found.\n\t * @throws NotFoundError if the vertex or changeset is not found.\n\t */\n\tgetChangeset(\n\t\tid: string,\n\t\toptions?: { verifySignatureDepth?: VerifyDepth }\n\t): Promise<IAuditableItemGraphChangeset>;\n\n\t/**\n\t * Remove the verifiable storage for an item.\n\t * @param id The id of the vertex to remove the storage from.\n\t * @returns Nothing.\n\t * @throws NotFoundError if the vertex is not found.\n\t */\n\tremoveVerifiable(id: string): Promise<void>;\n\n\t/**\n\t * Query the graph for vertices.\n\t * @param options The query options.\n\t * @param options.id The optional id to look for.\n\t * @param options.idMode Look in id, alias or both, defaults to both.\n\t * @param options.idExact Find only exact matches, default to false meaning partial matching.\n\t * @param options.resourceTypes Include vertices with specific resource types.\n\t * @param conditions Conditions to use in the query.\n\t * @param orderBy The order for the results, defaults to dateCreated.\n\t * @param orderByDirection The direction for the order, defaults to descending.\n\t * @param properties The properties to return, if not provided defaults to id, dateCreated, aliases and object.\n\t * @param cursor The cursor to request the next chunk of entities.\n\t * @param limit Limit the number of entities to return.\n\t * @returns The entities, which can be partial if a limited keys list was provided.\n\t */\n\tquery(\n\t\toptions?: {\n\t\t\tid?: string;\n\t\t\tidMode?: \"id\" | \"alias\" | \"both\";\n\t\t\tidExact?: boolean;\n\t\t\tresourceTypes?: string[];\n\t\t},\n\t\tconditions?: IComparator[],\n\t\torderBy?: keyof Pick<IAuditableItemGraphVertex, \"dateCreated\" | \"dateModified\">,\n\t\torderByDirection?: SortDirection,\n\t\tproperties?: (keyof IAuditableItemGraphVertex)[],\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<{\n\t\tentries: IAuditableItemGraphVertexList;\n\t\tcursor?: string;\n\t}>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphComponent.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphComponent.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IComponent } from \"@twin.org/core\";\nimport type { IComparator, SortDirection } from \"@twin.org/entity\";\nimport type { IAuditableItemGraphChangeset } from \"./IAuditableItemGraphChangeset.js\";\nimport type { IAuditableItemGraphChangesetList } from \"./IAuditableItemGraphChangesetList.js\";\nimport type { IAuditableItemGraphVertex } from \"./IAuditableItemGraphVertex.js\";\nimport type { IAuditableItemGraphVertexList } from \"./IAuditableItemGraphVertexList.js\";\nimport type { IAuditableItemGraphVertexVersionList } from \"./IAuditableItemGraphVertexVersionList.js\";\nimport type { VerifyDepth } from \"./verifyDepth.js\";\n\n/**\n * Interface describing an auditable item graph contract.\n */\nexport interface IAuditableItemGraphComponent extends IComponent {\n\t/**\n\t * Create a new graph vertex.\n\t * @param vertex The vertex to create.\n\t * @param vertex.annotationObject The annotation object for the vertex as JSON-LD.\n\t * @param vertex.aliases Alternative aliases that can be used to identify the vertex.\n\t * @param vertex.resources The resources attached to the vertex.\n\t * @param vertex.edges The edges connected to the vertex.\n\t * @returns The id of the new graph item.\n\t */\n\tcreate(vertex: Omit<IAuditableItemGraphVertex, \"id\">): Promise<string>;\n\n\t/**\n\t * Update a graph vertex.\n\t * @param vertex The vertex to update.\n\t * @param vertex.id The id of the vertex to update.\n\t * @param vertex.annotationObject The annotation object for the vertex as JSON-LD.\n\t * @param vertex.aliases Alternative aliases that can be used to identify the vertex.\n\t * @param vertex.resources The resources attached to the vertex.\n\t * @param vertex.edges The edges connected to the vertex.\n\t * @returns Nothing.\n\t */\n\tupdate(vertex: IAuditableItemGraphVertex): Promise<void>;\n\n\t/**\n\t * Get a graph vertex.\n\t * @param id The id of the vertex to get.\n\t * @param options Additional options for the get operation.\n\t * @param options.includeDeleted Whether to include deleted aliases, resource, edges, defaults to false.\n\t * @param options.verifySignatureDepth How many signatures to verify, defaults to \"none\".\n\t * @returns The vertex if found.\n\t * @throws NotFoundError if the vertex is not found.\n\t */\n\tget(\n\t\tid: string,\n\t\toptions?: {\n\t\t\tincludeDeleted?: boolean;\n\t\t\tverifySignatureDepth?: VerifyDepth;\n\t\t}\n\t): Promise<IAuditableItemGraphVertex>;\n\n\t/**\n\t * Get a graph vertex changeset list.\n\t * @param id The id of the vertex to get.\n\t * @param cursor The optional cursor to get next chunk.\n\t * @param limit Limit the number of entities to return.\n\t * @param options Additional options for the get operation.\n\t * @param options.verifySignatureDepth How many signatures to verify, defaults to \"none\".\n\t * @returns The changeset if found.\n\t * @throws NotFoundError if the vertex is not found.\n\t */\n\tgetChangesets(\n\t\tid: string,\n\t\tcursor?: string,\n\t\tlimit?: number,\n\t\toptions?: {\n\t\t\tverifySignatureDepth?: VerifyDepth;\n\t\t}\n\t): Promise<{\n\t\tchangesets: IAuditableItemGraphChangesetList;\n\t\tcursor?: string;\n\t}>;\n\n\t/**\n\t * Get a graph vertex changeset.\n\t * @param id The id of the vertex to get.\n\t * @param options Additional options for the get operation.\n\t * @param options.verifySignatureDepth How many signatures to verify, defaults to \"none\".\n\t * @returns The changeset if found.\n\t * @throws NotFoundError if the vertex or changeset is not found.\n\t */\n\tgetChangeset(\n\t\tid: string,\n\t\toptions?: { verifySignatureDepth?: VerifyDepth }\n\t): Promise<IAuditableItemGraphChangeset>;\n\n\t/**\n\t * Get a graph vertex at a specific version.\n\t * @param id The id of the vertex.\n\t * @param versionId The id of the version (changeset id) to retrieve.\n\t * @returns The vertex reconstructed at that version.\n\t * @throws NotFoundError if the vertex or version is not found.\n\t */\n\tgetVersion(id: string, versionId: string): Promise<IAuditableItemGraphVertex>;\n\n\t/**\n\t * Get all versions of a graph vertex.\n\t * @param id The id of the vertex.\n\t * @param options Additional options for the operation.\n\t * @param options.after Only return versions created after this ISO 8601 timestamp (exclusive).\n\t * @param options.before Only return versions created before this ISO 8601 timestamp (exclusive).\n\t * @returns The list of vertex versions.\n\t * @throws NotFoundError if the vertex is not found.\n\t */\n\tgetVersions(\n\t\tid: string,\n\t\toptions?: {\n\t\t\tafter?: string;\n\t\t\tbefore?: string;\n\t\t}\n\t): Promise<IAuditableItemGraphVertexVersionList>;\n\n\t/**\n\t * Remove the verifiable storage for an item.\n\t * @param id The id of the vertex to remove the storage from.\n\t * @returns Nothing.\n\t * @throws NotFoundError if the vertex is not found.\n\t */\n\tremoveVerifiable(id: string): Promise<void>;\n\n\t/**\n\t * Query the graph for vertices.\n\t * @param options The query options.\n\t * @param options.id The optional id to look for.\n\t * @param options.idMode Look in id, alias or both, defaults to both.\n\t * @param options.idExact Find only exact matches, default to false meaning partial matching.\n\t * @param options.resourceTypes Include vertices with specific resource types.\n\t * @param conditions Conditions to use in the query.\n\t * @param orderBy The order for the results, defaults to dateCreated.\n\t * @param orderByDirection The direction for the order, defaults to descending.\n\t * @param properties The properties to return, if not provided defaults to id, dateCreated, aliases and object.\n\t * @param cursor The cursor to request the next chunk of entities.\n\t * @param limit Limit the number of entities to return.\n\t * @returns The entities, which can be partial if a limited keys list was provided.\n\t */\n\tquery(\n\t\toptions?: {\n\t\t\tid?: string;\n\t\t\tidMode?: \"id\" | \"alias\" | \"both\";\n\t\t\tidExact?: boolean;\n\t\t\tresourceTypes?: string[];\n\t\t},\n\t\tconditions?: IComparator[],\n\t\torderBy?: keyof Pick<IAuditableItemGraphVertex, \"dateCreated\" | \"dateModified\">,\n\t\torderByDirection?: SortDirection,\n\t\tproperties?: (keyof IAuditableItemGraphVertex)[],\n\t\tcursor?: string,\n\t\tlimit?: number\n\t): Promise<{\n\t\tentries: IAuditableItemGraphVertexList;\n\t\tcursor?: string;\n\t}>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAuditableItemGraphVertex.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphVertex.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphAlias } from \"./IAuditableItemGraphAlias.js\";\nimport type { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\nimport type { IAuditableItemGraphEdge } from \"./IAuditableItemGraphEdge.js\";\nimport type { IAuditableItemGraphResource } from \"./IAuditableItemGraphResource.js\";\n\n/**\n * Interface describing an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphVertex extends Omit<\n\tIAuditableItemGraphAuditedElement,\n\t\"deleted\"\n> {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof AuditableItemGraphContexts.Context,\n\t\ttypeof AuditableItemGraphContexts.ContextCommon,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * The id of the element.\n\t */\n\tid: string;\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Vertex;\n\n\t/**\n\t * The identity of the organization which controls the vertex.\n\t * @json-ld namespace:twin-common\n\t */\n\torganizationIdentity?: string;\n\n\t/**\n\t * The JSON-LD annotation object for the vertex.\n\t * @json-ld namespace:twin-common\n\t */\n\tannotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * Alternative aliases that can be used to identify the vertex.\n\t * @json-ld container:set\n\t */\n\taliases?: IAuditableItemGraphAlias[];\n\n\t/**\n\t * The resources attached to the vertex.\n\t * @json-ld container:set\n\t */\n\tresources?: IAuditableItemGraphResource[];\n\n\t/**\n\t * Edges connected to the vertex.\n\t * @json-ld container:set\n\t */\n\tedges?: IAuditableItemGraphEdge[];\n\n\t/**\n\t * Is the vertex verified, will only be populated when verification is requested.\n\t * @json-ld namespace:twin-common\n\t */\n\tverified?: boolean;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVertex.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphVertex.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement, IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\nimport type { IAuditableItemGraphAlias } from \"./IAuditableItemGraphAlias.js\";\nimport type { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\nimport type { IAuditableItemGraphEdge } from \"./IAuditableItemGraphEdge.js\";\nimport type { IAuditableItemGraphResource } from \"./IAuditableItemGraphResource.js\";\n\n/**\n * Interface describing an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphVertex extends Omit<\n\tIAuditableItemGraphAuditedElement,\n\t\"deleted\"\n> {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof AuditableItemGraphContexts.Context,\n\t\ttypeof AuditableItemGraphContexts.ContextCommon,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * The id of the element.\n\t */\n\tid: string;\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Vertex;\n\n\t/**\n\t * The identity of the organization which controls the vertex.\n\t * @json-ld namespace:twin-common\n\t */\n\torganizationIdentity?: string;\n\n\t/**\n\t * The JSON-LD annotation object for the vertex.\n\t * @json-ld namespace:twin-common\n\t */\n\tannotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * Alternative aliases that can be used to identify the vertex.\n\t * @json-ld container:set\n\t */\n\taliases?: IAuditableItemGraphAlias[];\n\n\t/**\n\t * The resources attached to the vertex.\n\t * @json-ld container:set\n\t */\n\tresources?: IAuditableItemGraphResource[];\n\n\t/**\n\t * Edges connected to the vertex.\n\t * @json-ld container:set\n\t */\n\tedges?: IAuditableItemGraphEdge[];\n\n\t/**\n\t * Is the vertex verified, will only be populated when verification is requested.\n\t * @json-ld namespace:twin-common\n\t */\n\tverified?: boolean;\n\n\t/**\n\t * The version of the vertex, populated only when getting a specific version.\n\t * Maps to https://schema.org/version.\n\t * @json-ld namespace:sch\n\t */\n\tversion?: number;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVertexVersionList.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphVertexVersionList.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionElement } from \"@twin.org/data-json-ld\";\nimport type { SchemaOrgContexts, SchemaOrgTypes } from \"@twin.org/standards-schema-org\";\nimport type { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\n\n/**\n * Interface describing a list of auditable item graph vertex version numbers.\n */\nexport interface IAuditableItemGraphVertexVersionList {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\": [\n\t\ttypeof SchemaOrgContexts.Context,\n\t\ttypeof AuditableItemGraphContexts.Context,\n\t\t...IJsonLdContextDefinitionElement[]\n\t];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: [typeof SchemaOrgTypes.ItemList, typeof AuditableItemGraphTypes.VertexVersionList];\n\n\t/**\n\t * The list of version numbers.\n\t * @json-ld namespace:sch\n\t */\n\t[SchemaOrgTypes.ItemListElement]: number[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVersionGetRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphVersionGetRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * Get an auditable item graph vertex at a specific version.\n */\nexport interface IAuditableItemGraphVersionGetRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The parameters from the path.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the vertex.\n\t\t */\n\t\tid: string;\n\n\t\t/**\n\t\t * The id of the version (changeset id) to get.\n\t\t */\n\t\tversionId: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVersionGetResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphVersionGetResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\nimport type { IAuditableItemGraphVertex } from \"../IAuditableItemGraphVertex.js\";\n\n/**\n * Response to getting an auditable item graph vertex at a specific version.\n */\nexport interface IAuditableItemGraphVersionGetResponse {\n\t/**\n\t * The headers.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The response body.\n\t */\n\tbody: IAuditableItemGraphVertex;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVersionListRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphVersionListRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\n\n/**\n * Get all versions of an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphVersionListRequest {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The parameters from the path.\n\t */\n\tpathParams: {\n\t\t/**\n\t\t * The id of the vertex.\n\t\t */\n\t\tid: string;\n\t};\n\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * Only return versions created after this ISO 8601 timestamp (exclusive).\n\t\t */\n\t\tafter?: string;\n\n\t\t/**\n\t\t * Only return versions created before this ISO 8601 timestamp (exclusive).\n\t\t */\n\t\tbefore?: string;\n\t};\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphVersionListResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphVersionListResponse.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\nimport type { IAuditableItemGraphVertexVersionList } from \"../IAuditableItemGraphVertexVersionList.js\";\n\n/**\n * Response to getting all versions of an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphVersionListResponse {\n\t/**\n\t * The headers.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t};\n\n\t/**\n\t * The response body.\n\t */\n\tbody: IAuditableItemGraphVertexVersionList;\n}\n"]}
|
|
@@ -36,6 +36,10 @@ export const AuditableItemGraphTypes = {
|
|
|
36
36
|
/**
|
|
37
37
|
* Represents patch operation.
|
|
38
38
|
*/
|
|
39
|
-
PatchOperation: "AuditableItemGraphPatchOperation"
|
|
39
|
+
PatchOperation: "AuditableItemGraphPatchOperation",
|
|
40
|
+
/**
|
|
41
|
+
* Represents auditable item graph vertex version list.
|
|
42
|
+
*/
|
|
43
|
+
VertexVersionList: "AuditableItemGraphVertexVersionList"
|
|
40
44
|
};
|
|
41
45
|
//# sourceMappingURL=auditableItemGraphTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auditableItemGraphTypes.js","sourceRoot":"","sources":["../../../src/models/auditableItemGraphTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC;;OAEG;IACH,MAAM,EAAE,0BAA0B;IAElC;;OAEG;IACH,UAAU,EAAE,8BAA8B;IAE1C;;OAEG;IACH,KAAK,EAAE,yBAAyB;IAEhC;;OAEG;IACH,QAAQ,EAAE,4BAA4B;IAEtC;;OAEG;IACH,IAAI,EAAE,wBAAwB;IAE9B;;OAEG;IACH,SAAS,EAAE,6BAA6B;IAExC;;OAEG;IACH,aAAa,EAAE,iCAAiC;IAEhD;;OAEG;IACH,cAAc,EAAE,kCAAkC;
|
|
1
|
+
{"version":3,"file":"auditableItemGraphTypes.js","sourceRoot":"","sources":["../../../src/models/auditableItemGraphTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC;;OAEG;IACH,MAAM,EAAE,0BAA0B;IAElC;;OAEG;IACH,UAAU,EAAE,8BAA8B;IAE1C;;OAEG;IACH,KAAK,EAAE,yBAAyB;IAEhC;;OAEG;IACH,QAAQ,EAAE,4BAA4B;IAEtC;;OAEG;IACH,IAAI,EAAE,wBAAwB;IAE9B;;OAEG;IACH,SAAS,EAAE,6BAA6B;IAExC;;OAEG;IACH,aAAa,EAAE,iCAAiC;IAEhD;;OAEG;IACH,cAAc,EAAE,kCAAkC;IAElD;;OAEG;IACH,iBAAiB,EAAE,qCAAqC;CAC/C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types of auditable item graph data.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuditableItemGraphTypes = {\n\t/**\n\t * Represents auditable item graph vertex.\n\t */\n\tVertex: \"AuditableItemGraphVertex\",\n\n\t/**\n\t * Represents auditable item graph vertex list.\n\t */\n\tVertexList: \"AuditableItemGraphVertexList\",\n\n\t/**\n\t * Represents auditable item graph alias.\n\t */\n\tAlias: \"AuditableItemGraphAlias\",\n\n\t/**\n\t * Represents auditable item graph resource.\n\t */\n\tResource: \"AuditableItemGraphResource\",\n\n\t/**\n\t * Represents auditable item graph edge.\n\t */\n\tEdge: \"AuditableItemGraphEdge\",\n\n\t/**\n\t * Represents auditable item graph changeset.\n\t */\n\tChangeset: \"AuditableItemGraphChangeset\",\n\n\t/**\n\t * Represents auditable item graph changeset list.\n\t */\n\tChangesetList: \"AuditableItemGraphChangesetList\",\n\n\t/**\n\t * Represents patch operation.\n\t */\n\tPatchOperation: \"AuditableItemGraphPatchOperation\",\n\n\t/**\n\t * Represents auditable item graph vertex version list.\n\t */\n\tVertexVersionList: \"AuditableItemGraphVertexVersionList\"\n} as const;\n\n/**\n * The types of auditable item graph data.\n */\nexport type AuditableItemGraphTypes =\n\t(typeof AuditableItemGraphTypes)[keyof typeof AuditableItemGraphTypes];\n"]}
|
|
@@ -51,6 +51,10 @@
|
|
|
51
51
|
"verification": {
|
|
52
52
|
"$ref": "https://schema.twindev.org/immutable-proof/ImmutableProofVerification",
|
|
53
53
|
"description": "The verification for the changeset."
|
|
54
|
+
},
|
|
55
|
+
"version": {
|
|
56
|
+
"type": "number",
|
|
57
|
+
"description": "The version number of the vertex after this changeset was applied.\nMaps to https://schema.org/version."
|
|
54
58
|
}
|
|
55
59
|
},
|
|
56
60
|
"required": [
|
|
@@ -61,6 +61,10 @@
|
|
|
61
61
|
"verified": {
|
|
62
62
|
"type": "boolean",
|
|
63
63
|
"description": "Is the vertex verified, will only be populated when verification is requested."
|
|
64
|
+
},
|
|
65
|
+
"version": {
|
|
66
|
+
"type": "number",
|
|
67
|
+
"description": "The version of the vertex, populated only when getting a specific version.\nMaps to https://schema.org/version."
|
|
64
68
|
}
|
|
65
69
|
},
|
|
66
70
|
"required": [
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ export * from "./models/api/IAuditableItemGraphGetResponse.js";
|
|
|
9
9
|
export * from "./models/api/IAuditableItemGraphListRequest.js";
|
|
10
10
|
export * from "./models/api/IAuditableItemGraphListResponse.js";
|
|
11
11
|
export * from "./models/api/IAuditableItemGraphUpdateRequest.js";
|
|
12
|
+
export * from "./models/api/IAuditableItemGraphVersionGetRequest.js";
|
|
13
|
+
export * from "./models/api/IAuditableItemGraphVersionGetResponse.js";
|
|
14
|
+
export * from "./models/api/IAuditableItemGraphVersionListRequest.js";
|
|
15
|
+
export * from "./models/api/IAuditableItemGraphVersionListResponse.js";
|
|
12
16
|
export * from "./models/auditableItemGraphContexts.js";
|
|
13
17
|
export * from "./models/auditableItemGraphTopics.js";
|
|
14
18
|
export * from "./models/auditableItemGraphTypes.js";
|
|
@@ -24,4 +28,5 @@ export * from "./models/IAuditableItemGraphPatchOperation.js";
|
|
|
24
28
|
export * from "./models/IAuditableItemGraphResource.js";
|
|
25
29
|
export * from "./models/IAuditableItemGraphVertex.js";
|
|
26
30
|
export * from "./models/IAuditableItemGraphVertexList.js";
|
|
31
|
+
export * from "./models/IAuditableItemGraphVertexVersionList.js";
|
|
27
32
|
export * from "./models/verifyDepth.js";
|
|
@@ -48,4 +48,10 @@ export interface IAuditableItemGraphChangeset {
|
|
|
48
48
|
* @json-ld id
|
|
49
49
|
*/
|
|
50
50
|
verification?: IImmutableProofVerification;
|
|
51
|
+
/**
|
|
52
|
+
* The version number of the vertex after this changeset was applied.
|
|
53
|
+
* Maps to https://schema.org/version.
|
|
54
|
+
* @json-ld namespace:sch
|
|
55
|
+
*/
|
|
56
|
+
version?: number;
|
|
51
57
|
}
|
|
@@ -4,6 +4,7 @@ import type { IAuditableItemGraphChangeset } from "./IAuditableItemGraphChangese
|
|
|
4
4
|
import type { IAuditableItemGraphChangesetList } from "./IAuditableItemGraphChangesetList.js";
|
|
5
5
|
import type { IAuditableItemGraphVertex } from "./IAuditableItemGraphVertex.js";
|
|
6
6
|
import type { IAuditableItemGraphVertexList } from "./IAuditableItemGraphVertexList.js";
|
|
7
|
+
import type { IAuditableItemGraphVertexVersionList } from "./IAuditableItemGraphVertexVersionList.js";
|
|
7
8
|
import type { VerifyDepth } from "./verifyDepth.js";
|
|
8
9
|
/**
|
|
9
10
|
* Interface describing an auditable item graph contract.
|
|
@@ -70,6 +71,27 @@ export interface IAuditableItemGraphComponent extends IComponent {
|
|
|
70
71
|
getChangeset(id: string, options?: {
|
|
71
72
|
verifySignatureDepth?: VerifyDepth;
|
|
72
73
|
}): Promise<IAuditableItemGraphChangeset>;
|
|
74
|
+
/**
|
|
75
|
+
* Get a graph vertex at a specific version.
|
|
76
|
+
* @param id The id of the vertex.
|
|
77
|
+
* @param versionId The id of the version (changeset id) to retrieve.
|
|
78
|
+
* @returns The vertex reconstructed at that version.
|
|
79
|
+
* @throws NotFoundError if the vertex or version is not found.
|
|
80
|
+
*/
|
|
81
|
+
getVersion(id: string, versionId: string): Promise<IAuditableItemGraphVertex>;
|
|
82
|
+
/**
|
|
83
|
+
* Get all versions of a graph vertex.
|
|
84
|
+
* @param id The id of the vertex.
|
|
85
|
+
* @param options Additional options for the operation.
|
|
86
|
+
* @param options.after Only return versions created after this ISO 8601 timestamp (exclusive).
|
|
87
|
+
* @param options.before Only return versions created before this ISO 8601 timestamp (exclusive).
|
|
88
|
+
* @returns The list of vertex versions.
|
|
89
|
+
* @throws NotFoundError if the vertex is not found.
|
|
90
|
+
*/
|
|
91
|
+
getVersions(id: string, options?: {
|
|
92
|
+
after?: string;
|
|
93
|
+
before?: string;
|
|
94
|
+
}): Promise<IAuditableItemGraphVertexVersionList>;
|
|
73
95
|
/**
|
|
74
96
|
* Remove the verifiable storage for an item.
|
|
75
97
|
* @param id The id of the vertex to remove the storage from.
|
|
@@ -55,4 +55,10 @@ export interface IAuditableItemGraphVertex extends Omit<IAuditableItemGraphAudit
|
|
|
55
55
|
* @json-ld namespace:twin-common
|
|
56
56
|
*/
|
|
57
57
|
verified?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The version of the vertex, populated only when getting a specific version.
|
|
60
|
+
* Maps to https://schema.org/version.
|
|
61
|
+
* @json-ld namespace:sch
|
|
62
|
+
*/
|
|
63
|
+
version?: number;
|
|
58
64
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
/**
|
|
6
|
+
* Interface describing a list of auditable item graph vertex version numbers.
|
|
7
|
+
*/
|
|
8
|
+
export interface IAuditableItemGraphVertexVersionList {
|
|
9
|
+
/**
|
|
10
|
+
* JSON-LD Context.
|
|
11
|
+
*/
|
|
12
|
+
"@context": [
|
|
13
|
+
typeof SchemaOrgContexts.Context,
|
|
14
|
+
typeof AuditableItemGraphContexts.Context,
|
|
15
|
+
...IJsonLdContextDefinitionElement[]
|
|
16
|
+
];
|
|
17
|
+
/**
|
|
18
|
+
* JSON-LD Type.
|
|
19
|
+
*/
|
|
20
|
+
type: [typeof SchemaOrgTypes.ItemList, typeof AuditableItemGraphTypes.VertexVersionList];
|
|
21
|
+
/**
|
|
22
|
+
* The list of version numbers.
|
|
23
|
+
* @json-ld namespace:sch
|
|
24
|
+
*/
|
|
25
|
+
[SchemaOrgTypes.ItemListElement]: number[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { HeaderTypes, MimeTypes } from "@twin.org/web";
|
|
2
|
+
/**
|
|
3
|
+
* Get an auditable item graph vertex at a specific version.
|
|
4
|
+
*/
|
|
5
|
+
export interface IAuditableItemGraphVersionGetRequest {
|
|
6
|
+
/**
|
|
7
|
+
* The headers which can be used to determine the response data type.
|
|
8
|
+
*/
|
|
9
|
+
headers?: {
|
|
10
|
+
[HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The parameters from the path.
|
|
14
|
+
*/
|
|
15
|
+
pathParams: {
|
|
16
|
+
/**
|
|
17
|
+
* The id of the vertex.
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* The id of the version (changeset id) to get.
|
|
22
|
+
*/
|
|
23
|
+
versionId: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HeaderTypes, MimeTypes } from "@twin.org/web";
|
|
2
|
+
import type { IAuditableItemGraphVertex } from "../IAuditableItemGraphVertex.js";
|
|
3
|
+
/**
|
|
4
|
+
* Response to getting an auditable item graph vertex at a specific version.
|
|
5
|
+
*/
|
|
6
|
+
export interface IAuditableItemGraphVersionGetResponse {
|
|
7
|
+
/**
|
|
8
|
+
* The headers.
|
|
9
|
+
*/
|
|
10
|
+
headers?: {
|
|
11
|
+
[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The response body.
|
|
15
|
+
*/
|
|
16
|
+
body: IAuditableItemGraphVertex;
|
|
17
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { HeaderTypes, MimeTypes } from "@twin.org/web";
|
|
2
|
+
/**
|
|
3
|
+
* Get all versions of an auditable item graph vertex.
|
|
4
|
+
*/
|
|
5
|
+
export interface IAuditableItemGraphVersionListRequest {
|
|
6
|
+
/**
|
|
7
|
+
* The headers which can be used to determine the response data type.
|
|
8
|
+
*/
|
|
9
|
+
headers?: {
|
|
10
|
+
[HeaderTypes.Accept]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The parameters from the path.
|
|
14
|
+
*/
|
|
15
|
+
pathParams: {
|
|
16
|
+
/**
|
|
17
|
+
* The id of the vertex.
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* The query parameters.
|
|
23
|
+
*/
|
|
24
|
+
query?: {
|
|
25
|
+
/**
|
|
26
|
+
* Only return versions created after this ISO 8601 timestamp (exclusive).
|
|
27
|
+
*/
|
|
28
|
+
after?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Only return versions created before this ISO 8601 timestamp (exclusive).
|
|
31
|
+
*/
|
|
32
|
+
before?: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { HeaderTypes, MimeTypes } from "@twin.org/web";
|
|
2
|
+
import type { IAuditableItemGraphVertexVersionList } from "../IAuditableItemGraphVertexVersionList.js";
|
|
3
|
+
/**
|
|
4
|
+
* Response to getting all versions of an auditable item graph vertex.
|
|
5
|
+
*/
|
|
6
|
+
export interface IAuditableItemGraphVersionListResponse {
|
|
7
|
+
/**
|
|
8
|
+
* The headers.
|
|
9
|
+
*/
|
|
10
|
+
headers?: {
|
|
11
|
+
[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The response body.
|
|
15
|
+
*/
|
|
16
|
+
body: IAuditableItemGraphVertexVersionList;
|
|
17
|
+
}
|
|
@@ -34,6 +34,10 @@ export declare const AuditableItemGraphTypes: {
|
|
|
34
34
|
* Represents patch operation.
|
|
35
35
|
*/
|
|
36
36
|
readonly PatchOperation: "AuditableItemGraphPatchOperation";
|
|
37
|
+
/**
|
|
38
|
+
* Represents auditable item graph vertex version list.
|
|
39
|
+
*/
|
|
40
|
+
readonly VertexVersionList: "AuditableItemGraphVertexVersionList";
|
|
37
41
|
};
|
|
38
42
|
/**
|
|
39
43
|
* The types of auditable item graph data.
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.3-next.14](https://github.com/iotaledger/twin-auditable-item-graph/compare/auditable-item-graph-models-v0.0.3-next.13...auditable-item-graph-models-v0.0.3-next.14) (2026-05-18)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add versions ([#60](https://github.com/iotaledger/twin-auditable-item-graph/issues/60)) ([5c36f94](https://github.com/iotaledger/twin-auditable-item-graph/commit/5c36f94b1155c01dddbc8d62f3f65d599916c521))
|
|
9
|
+
|
|
3
10
|
## [0.0.3-next.13](https://github.com/iotaledger/twin-auditable-item-graph/compare/auditable-item-graph-models-v0.0.3-next.12...auditable-item-graph-models-v0.0.3-next.13) (2026-05-12)
|
|
4
11
|
|
|
5
12
|
|
package/docs/reference/index.md
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
- [IAuditableItemGraphResource](interfaces/IAuditableItemGraphResource.md)
|
|
17
17
|
- [IAuditableItemGraphVertex](interfaces/IAuditableItemGraphVertex.md)
|
|
18
18
|
- [IAuditableItemGraphVertexList](interfaces/IAuditableItemGraphVertexList.md)
|
|
19
|
+
- [IAuditableItemGraphVertexVersionList](interfaces/IAuditableItemGraphVertexVersionList.md)
|
|
19
20
|
- [IAuditableItemGraphChangesetGetRequest](interfaces/IAuditableItemGraphChangesetGetRequest.md)
|
|
20
21
|
- [IAuditableItemGraphChangesetGetResponse](interfaces/IAuditableItemGraphChangesetGetResponse.md)
|
|
21
22
|
- [IAuditableItemGraphChangesetListRequest](interfaces/IAuditableItemGraphChangesetListRequest.md)
|
|
@@ -26,6 +27,10 @@
|
|
|
26
27
|
- [IAuditableItemGraphListRequest](interfaces/IAuditableItemGraphListRequest.md)
|
|
27
28
|
- [IAuditableItemGraphListResponse](interfaces/IAuditableItemGraphListResponse.md)
|
|
28
29
|
- [IAuditableItemGraphUpdateRequest](interfaces/IAuditableItemGraphUpdateRequest.md)
|
|
30
|
+
- [IAuditableItemGraphVersionGetRequest](interfaces/IAuditableItemGraphVersionGetRequest.md)
|
|
31
|
+
- [IAuditableItemGraphVersionGetResponse](interfaces/IAuditableItemGraphVersionGetResponse.md)
|
|
32
|
+
- [IAuditableItemGraphVersionListRequest](interfaces/IAuditableItemGraphVersionListRequest.md)
|
|
33
|
+
- [IAuditableItemGraphVersionListResponse](interfaces/IAuditableItemGraphVersionListResponse.md)
|
|
29
34
|
- [IAuditableItemGraphEventBusVertexCreated](interfaces/IAuditableItemGraphEventBusVertexCreated.md)
|
|
30
35
|
- [IAuditableItemGraphEventBusVertexUpdated](interfaces/IAuditableItemGraphEventBusVertexUpdated.md)
|
|
31
36
|
|
|
@@ -65,3 +65,12 @@ The immutable proof id which contains the signature for this changeset.
|
|
|
65
65
|
> `optional` **verification?**: `IImmutableProofVerification`
|
|
66
66
|
|
|
67
67
|
The verification for the changeset.
|
|
68
|
+
|
|
69
|
+
***
|
|
70
|
+
|
|
71
|
+
### version? {#version}
|
|
72
|
+
|
|
73
|
+
> `optional` **version?**: `number`
|
|
74
|
+
|
|
75
|
+
The version number of the vertex after this changeset was applied.
|
|
76
|
+
Maps to https://schema.org/version.
|
|
@@ -178,6 +178,80 @@ NotFoundError if the vertex or changeset is not found.
|
|
|
178
178
|
|
|
179
179
|
***
|
|
180
180
|
|
|
181
|
+
### getVersion() {#getversion}
|
|
182
|
+
|
|
183
|
+
> **getVersion**(`id`, `versionId`): `Promise`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)\>
|
|
184
|
+
|
|
185
|
+
Get a graph vertex at a specific version.
|
|
186
|
+
|
|
187
|
+
#### Parameters
|
|
188
|
+
|
|
189
|
+
##### id
|
|
190
|
+
|
|
191
|
+
`string`
|
|
192
|
+
|
|
193
|
+
The id of the vertex.
|
|
194
|
+
|
|
195
|
+
##### versionId
|
|
196
|
+
|
|
197
|
+
`string`
|
|
198
|
+
|
|
199
|
+
The id of the version (changeset id) to retrieve.
|
|
200
|
+
|
|
201
|
+
#### Returns
|
|
202
|
+
|
|
203
|
+
`Promise`\<[`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)\>
|
|
204
|
+
|
|
205
|
+
The vertex reconstructed at that version.
|
|
206
|
+
|
|
207
|
+
#### Throws
|
|
208
|
+
|
|
209
|
+
NotFoundError if the vertex or version is not found.
|
|
210
|
+
|
|
211
|
+
***
|
|
212
|
+
|
|
213
|
+
### getVersions() {#getversions}
|
|
214
|
+
|
|
215
|
+
> **getVersions**(`id`, `options?`): `Promise`\<[`IAuditableItemGraphVertexVersionList`](IAuditableItemGraphVertexVersionList.md)\>
|
|
216
|
+
|
|
217
|
+
Get all versions of a graph vertex.
|
|
218
|
+
|
|
219
|
+
#### Parameters
|
|
220
|
+
|
|
221
|
+
##### id
|
|
222
|
+
|
|
223
|
+
`string`
|
|
224
|
+
|
|
225
|
+
The id of the vertex.
|
|
226
|
+
|
|
227
|
+
##### options?
|
|
228
|
+
|
|
229
|
+
Additional options for the operation.
|
|
230
|
+
|
|
231
|
+
###### after?
|
|
232
|
+
|
|
233
|
+
`string`
|
|
234
|
+
|
|
235
|
+
Only return versions created after this ISO 8601 timestamp (exclusive).
|
|
236
|
+
|
|
237
|
+
###### before?
|
|
238
|
+
|
|
239
|
+
`string`
|
|
240
|
+
|
|
241
|
+
Only return versions created before this ISO 8601 timestamp (exclusive).
|
|
242
|
+
|
|
243
|
+
#### Returns
|
|
244
|
+
|
|
245
|
+
`Promise`\<[`IAuditableItemGraphVertexVersionList`](IAuditableItemGraphVertexVersionList.md)\>
|
|
246
|
+
|
|
247
|
+
The list of vertex versions.
|
|
248
|
+
|
|
249
|
+
#### Throws
|
|
250
|
+
|
|
251
|
+
NotFoundError if the vertex is not found.
|
|
252
|
+
|
|
253
|
+
***
|
|
254
|
+
|
|
181
255
|
### removeVerifiable() {#removeverifiable}
|
|
182
256
|
|
|
183
257
|
> **removeVerifiable**(`id`): `Promise`\<`void`\>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphVersionGetRequest
|
|
2
|
+
|
|
3
|
+
Get an auditable item graph vertex at a specific version.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### headers? {#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 {#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.
|
|
30
|
+
|
|
31
|
+
#### versionId
|
|
32
|
+
|
|
33
|
+
> **versionId**: `string`
|
|
34
|
+
|
|
35
|
+
The id of the version (changeset id) to get.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphVersionGetResponse
|
|
2
|
+
|
|
3
|
+
Response to getting an auditable item graph vertex at a specific version.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### headers? {#headers}
|
|
8
|
+
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
|
+
|
|
11
|
+
The headers.
|
|
12
|
+
|
|
13
|
+
#### content-type
|
|
14
|
+
|
|
15
|
+
> **content-type**: `"application/json"` \| `"application/ld+json"`
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### body {#body}
|
|
20
|
+
|
|
21
|
+
> **body**: [`IAuditableItemGraphVertex`](IAuditableItemGraphVertex.md)
|
|
22
|
+
|
|
23
|
+
The response body.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphVersionListRequest
|
|
2
|
+
|
|
3
|
+
Get all versions of an auditable item graph vertex.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### headers? {#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 {#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.
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### query? {#query}
|
|
34
|
+
|
|
35
|
+
> `optional` **query?**: `object`
|
|
36
|
+
|
|
37
|
+
The query parameters.
|
|
38
|
+
|
|
39
|
+
#### after?
|
|
40
|
+
|
|
41
|
+
> `optional` **after?**: `string`
|
|
42
|
+
|
|
43
|
+
Only return versions created after this ISO 8601 timestamp (exclusive).
|
|
44
|
+
|
|
45
|
+
#### before?
|
|
46
|
+
|
|
47
|
+
> `optional` **before?**: `string`
|
|
48
|
+
|
|
49
|
+
Only return versions created before this ISO 8601 timestamp (exclusive).
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphVersionListResponse
|
|
2
|
+
|
|
3
|
+
Response to getting all versions of an auditable item graph vertex.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### headers? {#headers}
|
|
8
|
+
|
|
9
|
+
> `optional` **headers?**: `object`
|
|
10
|
+
|
|
11
|
+
The headers.
|
|
12
|
+
|
|
13
|
+
#### content-type
|
|
14
|
+
|
|
15
|
+
> **content-type**: `"application/json"` \| `"application/ld+json"`
|
|
16
|
+
|
|
17
|
+
***
|
|
18
|
+
|
|
19
|
+
### body {#body}
|
|
20
|
+
|
|
21
|
+
> **body**: [`IAuditableItemGraphVertexVersionList`](IAuditableItemGraphVertexVersionList.md)
|
|
22
|
+
|
|
23
|
+
The response body.
|
|
@@ -117,3 +117,12 @@ Edges connected to the vertex.
|
|
|
117
117
|
> `optional` **verified?**: `boolean`
|
|
118
118
|
|
|
119
119
|
Is the vertex verified, will only be populated when verification is requested.
|
|
120
|
+
|
|
121
|
+
***
|
|
122
|
+
|
|
123
|
+
### version? {#version}
|
|
124
|
+
|
|
125
|
+
> `optional` **version?**: `number`
|
|
126
|
+
|
|
127
|
+
The version of the vertex, populated only when getting a specific version.
|
|
128
|
+
Maps to https://schema.org/version.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Interface: IAuditableItemGraphVertexVersionList
|
|
2
|
+
|
|
3
|
+
Interface describing a list of auditable item graph vertex version numbers.
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### @context {#context}
|
|
8
|
+
|
|
9
|
+
> **@context**: \[`"https://schema.org"`, `"https://schema.twindev.org/aig/"`, `...IJsonLdContextDefinitionElement[]`\]
|
|
10
|
+
|
|
11
|
+
JSON-LD Context.
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### type {#type}
|
|
16
|
+
|
|
17
|
+
> **type**: \[`"ItemList"`, `"AuditableItemGraphVertexVersionList"`\]
|
|
18
|
+
|
|
19
|
+
JSON-LD Type.
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### itemListElement {#itemlistelement}
|
|
24
|
+
|
|
25
|
+
> **itemListElement**: `number`[]
|
|
26
|
+
|
|
27
|
+
The list of version numbers.
|
|
@@ -53,3 +53,9 @@ Represents auditable item graph changeset list.
|
|
|
53
53
|
> `readonly` **PatchOperation**: `"AuditableItemGraphPatchOperation"` = `"AuditableItemGraphPatchOperation"`
|
|
54
54
|
|
|
55
55
|
Represents patch operation.
|
|
56
|
+
|
|
57
|
+
### VertexVersionList {#vertexversionlist}
|
|
58
|
+
|
|
59
|
+
> `readonly` **VertexVersionList**: `"AuditableItemGraphVertexVersionList"` = `"AuditableItemGraphVertexVersionList"`
|
|
60
|
+
|
|
61
|
+
Represents auditable item graph vertex version list.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/auditable-item-graph-models",
|
|
3
|
-
"version": "0.0.3-next.
|
|
3
|
+
"version": "0.0.3-next.14",
|
|
4
4
|
"description": "Defines shared graph data contracts, JSON schemas, and JSON-LD contexts for consistent interoperability.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|