@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
package/dist/es/index.js CHANGED
@@ -1,6 +1,10 @@
1
1
  // Copyright 2024 IOTA Stiftung.
2
2
  // SPDX-License-Identifier: Apache-2.0.
3
3
  export * from "./dataTypes/auditableItemGraphDataTypes.js";
4
+ export * from "./models/api/IAuditableItemGraphChangesetGetRequest.js";
5
+ export * from "./models/api/IAuditableItemGraphChangesetGetResponse.js";
6
+ export * from "./models/api/IAuditableItemGraphChangesetListRequest.js";
7
+ export * from "./models/api/IAuditableItemGraphChangesetListResponse.js";
4
8
  export * from "./models/api/IAuditableItemGraphCreateRequest.js";
5
9
  export * from "./models/api/IAuditableItemGraphGetRequest.js";
6
10
  export * from "./models/api/IAuditableItemGraphGetResponse.js";
@@ -15,6 +19,7 @@ export * from "./models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js";
15
19
  export * from "./models/IAuditableItemGraphAlias.js";
16
20
  export * from "./models/IAuditableItemGraphAuditedElement.js";
17
21
  export * from "./models/IAuditableItemGraphChangeset.js";
22
+ export * from "./models/IAuditableItemGraphChangesetList.js";
18
23
  export * from "./models/IAuditableItemGraphComponent.js";
19
24
  export * from "./models/IAuditableItemGraphEdge.js";
20
25
  export * from "./models/IAuditableItemGraphPatchOperation.js";
@@ -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,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,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/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/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,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 +1 @@
1
- {"version":3,"file":"IAuditableItemGraphAlias.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphAlias.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 { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\n\n/**\n * Interface describing an alias for a vertex.\n */\nexport interface IAuditableItemGraphAlias extends IAuditableItemGraphAuditedElement {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\":\n\t\t| typeof AuditableItemGraphContexts.Context\n\t\t| [typeof AuditableItemGraphContexts.Context, ...IJsonLdContextDefinitionElement[]];\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.Alias;\n\n\t/**\n\t * The JSON-LD annotation object for the alias.\n\t */\n\tannotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * The format of the id in the alias.\n\t */\n\taliasFormat?: string;\n}\n"]}
1
+ {"version":3,"file":"IAuditableItemGraphAlias.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphAlias.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 { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\n\n/**\n * Interface describing an alias for a vertex.\n */\nexport interface IAuditableItemGraphAlias extends IAuditableItemGraphAuditedElement {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\":\n\t\t| typeof AuditableItemGraphContexts.Context\n\t\t| [typeof AuditableItemGraphContexts.Context, ...IJsonLdContextDefinitionElement[]];\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.Alias;\n\n\t/**\n\t * The JSON-LD annotation object for the alias.\n\t * json-ld namespace:twin-common\n\t */\n\tannotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * The format of the id in the alias.\n\t * json-ld type:schema:Text\n\t */\n\taliasFormat?: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IAuditableItemGraphAuditedElement.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphAuditedElement.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Interface describing the base properties for auditable elements.\n */\nexport interface IAuditableItemGraphAuditedElement {\n\t/**\n\t * The id of the element.\n\t */\n\tid?: string;\n\n\t/**\n\t * The date/time of when the element was created.\n\t */\n\tdateCreated?: string;\n\n\t/**\n\t * The date/time of when the element was modified.\n\t */\n\tdateModified?: string;\n\n\t/**\n\t * The date/time of when the element was deleted, as we never actually remove items.\n\t */\n\tdateDeleted?: string;\n}\n"]}
1
+ {"version":3,"file":"IAuditableItemGraphAuditedElement.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphAuditedElement.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Interface describing the base properties for auditable elements.\n */\nexport interface IAuditableItemGraphAuditedElement {\n\t/**\n\t * The id of the element.\n\t */\n\tid?: string;\n\n\t/**\n\t * The date/time of when the element was created.\n\t * json-ld namespace:schema\n\t */\n\tdateCreated?: string;\n\n\t/**\n\t * The date/time of when the element was modified.\n\t * json-ld namespace:schema\n\t */\n\tdateModified?: string;\n\n\t/**\n\t * The date/time of when the element was deleted, as we never actually remove items.\n\t * json-ld namespace:schema\n\t */\n\tdateDeleted?: string;\n}\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 */\n\tdateCreated: string;\n\n\t/**\n\t * The user identity that created the changes.\n\t */\n\tuserIdentity?: string;\n\n\t/**\n\t * The patches in the changeset.\n\t */\n\tpatches: IAuditableItemGraphPatchOperation[];\n\n\t/**\n\t * The immutable proof id which contains the signature for this changeset.\n\t */\n\tproofId?: string;\n\n\t/**\n\t * The verification for the changeset.\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:schema\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:schema: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"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IAuditableItemGraphChangesetList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAuditableItemGraphChangesetList.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphChangesetList.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\";\nimport type { IAuditableItemGraphChangeset } from \"./IAuditableItemGraphChangeset.js\";\n\n/**\n * Interface describing an auditable item graph changeset list.\n */\nexport interface IAuditableItemGraphChangesetList {\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.ChangesetList];\n\n\t/**\n\t * The list of changesets.\n\t * json-ld namespace:schema\n\t */\n\t[SchemaOrgTypes.ItemListElement]: IAuditableItemGraphChangeset[];\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 { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\nimport type { IComparator, SortDirection } from \"@twin.org/entity\";\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: {\n\t\tannotationObject?: IJsonLdNodeObject;\n\t\taliases?: {\n\t\t\tid: string;\n\t\t\taliasFormat?: string;\n\t\t\tunique?: boolean;\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t\tresources?: {\n\t\t\tid?: string;\n\t\t\tresourceObject?: IJsonLdNodeObject;\n\t\t}[];\n\t\tedges?: {\n\t\t\ttargetId: string;\n\t\t\tedgeRelationships: string[];\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t}): 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: {\n\t\tid: string;\n\t\tannotationObject?: IJsonLdNodeObject;\n\t\taliases?: {\n\t\t\tid: string;\n\t\t\taliasFormat?: string;\n\t\t\tunique?: boolean;\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t\tresources?: {\n\t\t\tid?: string;\n\t\t\tresourceObject?: IJsonLdNodeObject;\n\t\t}[];\n\t\tedges?: {\n\t\t\tid?: string;\n\t\t\ttargetId: string;\n\t\t\tedgeRelationships: string[];\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t}): 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.includeChangesets Whether to include the changesets of the vertex, 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\tincludeChangesets?: boolean;\n\t\t\tverifySignatureDepth?: VerifyDepth;\n\t\t}\n\t): Promise<IAuditableItemGraphVertex>;\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 { IJsonLdNodeObject } from \"@twin.org/data-json-ld\";\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: {\n\t\tannotationObject?: IJsonLdNodeObject;\n\t\taliases?: {\n\t\t\tid: string;\n\t\t\taliasFormat?: string;\n\t\t\tunique?: boolean;\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t\tresources?: {\n\t\t\tid?: string;\n\t\t\tresourceObject?: IJsonLdNodeObject;\n\t\t}[];\n\t\tedges?: {\n\t\t\ttargetId: string;\n\t\t\tedgeRelationships: string[];\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t}): 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: {\n\t\tid: string;\n\t\tannotationObject?: IJsonLdNodeObject;\n\t\taliases?: {\n\t\t\tid: string;\n\t\t\taliasFormat?: string;\n\t\t\tunique?: boolean;\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t\tresources?: {\n\t\t\tid?: string;\n\t\t\tresourceObject?: IJsonLdNodeObject;\n\t\t}[];\n\t\tedges?: {\n\t\t\tid?: string;\n\t\t\ttargetId: string;\n\t\t\tedgeRelationships: string[];\n\t\t\tannotationObject?: IJsonLdNodeObject;\n\t\t}[];\n\t}): 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 +1 @@
1
- {"version":3,"file":"IAuditableItemGraphEdge.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphEdge.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 { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\n\n/**\n * Interface describing an edge between two vertices in an auditable item graph.\n */\nexport interface IAuditableItemGraphEdge extends IAuditableItemGraphAuditedElement {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\":\n\t\t| typeof AuditableItemGraphContexts.Context\n\t\t| [typeof AuditableItemGraphContexts.Context, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * The id of the element.\n\t */\n\tid?: string;\n\n\t/**\n\t * The target vertex id the edge connects to.\n\t */\n\ttargetId: string;\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Edge;\n\n\t/**\n\t * The JSON-LD annotation object for the edge.\n\t */\n\tannotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * The relationships between the two vertices.\n\t */\n\tedgeRelationships: string[];\n}\n"]}
1
+ {"version":3,"file":"IAuditableItemGraphEdge.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphEdge.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 { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\n\n/**\n * Interface describing an edge between two vertices in an auditable item graph.\n */\nexport interface IAuditableItemGraphEdge extends IAuditableItemGraphAuditedElement {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\":\n\t\t| typeof AuditableItemGraphContexts.Context\n\t\t| [typeof AuditableItemGraphContexts.Context, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * The id of the element.\n\t */\n\tid?: string;\n\n\t/**\n\t * The target vertex id the edge connects to.\n\t * json-ld type:@id\n\t */\n\ttargetId: string;\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Edge;\n\n\t/**\n\t * The JSON-LD annotation object for the edge.\n\t * json-ld namespace:twin-common\n\t */\n\tannotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * The relationships between the two vertices.\n\t * json-ld container:set\n\t */\n\tedgeRelationships: string[];\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IAuditableItemGraphPatchOperation.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphPatchOperation.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 { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\n\n/**\n * The patch operation for JSON diffs.\n */\nexport interface IAuditableItemGraphPatchOperation {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\":\n\t\t| typeof AuditableItemGraphContexts.Context\n\t\t| [typeof AuditableItemGraphContexts.Context, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.PatchOperation;\n\n\t/**\n\t * The operation that was performed on the item.\n\t */\n\tpatchOperation: \"add\" | \"remove\" | \"replace\" | \"move\" | \"copy\" | \"test\";\n\n\t/**\n\t * The path to the object that was changed.\n\t */\n\tpatchPath: string;\n\n\t/**\n\t * The path the value was copied or moved from.\n\t */\n\tpatchFrom?: string;\n\n\t/**\n\t * The value to add.\n\t */\n\tpatchValue?: unknown;\n}\n"]}
1
+ {"version":3,"file":"IAuditableItemGraphPatchOperation.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphPatchOperation.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 { AuditableItemGraphContexts } from \"./auditableItemGraphContexts.js\";\nimport type { AuditableItemGraphTypes } from \"./auditableItemGraphTypes.js\";\n\n/**\n * The patch operation for JSON diffs.\n */\nexport interface IAuditableItemGraphPatchOperation {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\"?:\n\t\t| typeof AuditableItemGraphContexts.Context\n\t\t| [typeof AuditableItemGraphContexts.Context, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.PatchOperation;\n\n\t/**\n\t * The operation that was performed on the item.\n\t * json-ld type:schema:Text\n\t */\n\tpatchOperation: \"add\" | \"remove\" | \"replace\" | \"move\" | \"copy\" | \"test\";\n\n\t/**\n\t * The path to the object that was changed.\n\t * json-ld type:schema:Text\n\t */\n\tpatchPath: string;\n\n\t/**\n\t * The path the value was copied or moved from.\n\t * json-ld type:schema:Text\n\t */\n\tpatchFrom?: string;\n\n\t/**\n\t * The value to add.\n\t * json-ld type:json\n\t */\n\tpatchValue?: unknown;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IAuditableItemGraphResource.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphResource.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 { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\n\n/**\n * Interface describing an auditable item graph vertex resource.\n */\nexport interface IAuditableItemGraphResource extends IAuditableItemGraphAuditedElement {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\":\n\t\t| typeof AuditableItemGraphContexts.Context\n\t\t| [typeof AuditableItemGraphContexts.Context, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Resource;\n\n\t/**\n\t * The JSON-LD object for the resource.\n\t */\n\tresourceObject?: IJsonLdNodeObject;\n}\n"]}
1
+ {"version":3,"file":"IAuditableItemGraphResource.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphResource.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 { IAuditableItemGraphAuditedElement } from \"./IAuditableItemGraphAuditedElement.js\";\n\n/**\n * Interface describing an auditable item graph vertex resource.\n */\nexport interface IAuditableItemGraphResource extends IAuditableItemGraphAuditedElement {\n\t/**\n\t * JSON-LD Context.\n\t */\n\t\"@context\":\n\t\t| typeof AuditableItemGraphContexts.Context\n\t\t| [typeof AuditableItemGraphContexts.Context, ...IJsonLdContextDefinitionElement[]];\n\n\t/**\n\t * JSON-LD Type.\n\t */\n\ttype: typeof AuditableItemGraphTypes.Resource;\n\n\t/**\n\t * The JSON-LD object for the resource.\n\t * json-ld type:json\n\t */\n\tresourceObject?: IJsonLdNodeObject;\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 { IAuditableItemGraphChangeset } from \"./IAuditableItemGraphChangeset.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\n\textends Omit<IAuditableItemGraphAuditedElement, \"deleted\"> {\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 */\n\torganizationIdentity?: string;\n\n\t/**\n\t * The JSON-LD annotation object for the vertex.\n\t */\n\tannotationObject?: IJsonLdNodeObject;\n\n\t/**\n\t * Alternative aliases that can be used to identify the vertex.\n\t */\n\taliases?: IAuditableItemGraphAlias[];\n\n\t/**\n\t * The resources attached to the vertex.\n\t */\n\tresources?: IAuditableItemGraphResource[];\n\n\t/**\n\t * Edges connected to the vertex.\n\t */\n\tedges?: IAuditableItemGraphEdge[];\n\n\t/**\n\t * Changesets for the vertex.\n\t */\n\tchangesets?: IAuditableItemGraphChangeset[];\n\n\t/**\n\t * Is the vertex verified, will only be populated when verification is requested.\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\n\textends Omit<IAuditableItemGraphAuditedElement, \"deleted\"> {\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 +1 @@
1
- {"version":3,"file":"IAuditableItemGraphVertexList.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphVertexList.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\";\nimport type { IAuditableItemGraphVertex } from \"./IAuditableItemGraphVertex.js\";\n\n/**\n * Interface describing an auditable item graph vertex list.\n */\nexport interface IAuditableItemGraphVertexList {\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.VertexList];\n\n\t/**\n\t * The list of vertices.\n\t */\n\t[SchemaOrgTypes.ItemListElement]: IAuditableItemGraphVertex[];\n}\n"]}
1
+ {"version":3,"file":"IAuditableItemGraphVertexList.js","sourceRoot":"","sources":["../../../src/models/IAuditableItemGraphVertexList.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\";\nimport type { IAuditableItemGraphVertex } from \"./IAuditableItemGraphVertex.js\";\n\n/**\n * Interface describing an auditable item graph vertex list.\n */\nexport interface IAuditableItemGraphVertexList {\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.VertexList];\n\n\t/**\n\t * The list of vertices.\n\t * json-ld namespace:schema\n\t */\n\t[SchemaOrgTypes.ItemListElement]: IAuditableItemGraphVertex[];\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IAuditableItemGraphChangesetGetRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAuditableItemGraphChangesetGetRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphChangesetGetRequest.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 { VerifyDepth } from \"../verifyDepth.js\";\n\n/**\n * Get an auditable item graph vertex changeset.\n */\nexport interface IAuditableItemGraphChangesetGetRequest {\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 to get the changeset from.\n\t\t */\n\t\tid: string;\n\n\t\t/**\n\t\t * The id of the changeset to get.\n\t\t */\n\t\tchangesetId: string;\n\t};\n\n\t/**\n\t * The query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * How many signatures to verify, none, current or all, defaults to \"none\".\n\t\t */\n\t\tverifySignatureDepth?: VerifyDepth;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IAuditableItemGraphChangesetGetResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAuditableItemGraphChangesetGetResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphChangesetGetResponse.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 { IAuditableItemGraphChangeset } from \"../IAuditableItemGraphChangeset.js\";\n\n/**\n * Response to getting an auditable item graph vertex changeset.\n */\nexport interface IAuditableItemGraphChangesetGetResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\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: IAuditableItemGraphChangeset;\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IAuditableItemGraphChangesetListRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAuditableItemGraphChangesetListRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphChangesetListRequest.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 { VerifyDepth } from \"../verifyDepth.js\";\n\n/**\n * Get an auditable item graph changeset.\n */\nexport interface IAuditableItemGraphChangesetListRequest {\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 changeset to get.\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 * The optional cursor to get next chunk.\n\t\t */\n\t\tcursor?: string;\n\n\t\t/**\n\t\t * Limit the number of entities to return.\n\t\t */\n\t\tlimit?: string;\n\n\t\t/**\n\t\t * How many signatures to verify, none, current or all, defaults to \"none\".\n\t\t */\n\t\tverifySignatureDepth?: VerifyDepth;\n\t};\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=IAuditableItemGraphChangesetListResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IAuditableItemGraphChangesetListResponse.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphChangesetListResponse.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 { IAuditableItemGraphChangesetList } from \"../IAuditableItemGraphChangesetList.js\";\n\n/**\n * Response to getting an auditable item graph changeset list.\n */\nexport interface IAuditableItemGraphChangesetListResponse {\n\t/**\n\t * The headers which can be used to determine the response data type.\n\t */\n\theaders?: {\n\t\t[HeaderTypes.ContentType]: typeof MimeTypes.Json | typeof MimeTypes.JsonLd;\n\t\t[HeaderTypes.Link]?: string | string[];\n\t};\n\n\t/**\n\t * The response body.\n\t */\n\tbody: IAuditableItemGraphChangesetList;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"IAuditableItemGraphGetRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphGetRequest.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 { VerifyDepth } from \"../verifyDepth.js\";\n\n/**\n * Get an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphGetRequest {\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 to get.\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 * Whether to include deleted aliases, resource, edges, defaults to false.\n\t\t */\n\t\tincludeDeleted?: string;\n\n\t\t/**\n\t\t * Whether to include the changesets of the vertex, defaults to false.\n\t\t */\n\t\tincludeChangesets?: string;\n\n\t\t/**\n\t\t * How many signatures to verify, none, current or all, defaults to \"none\".\n\t\t */\n\t\tverifySignatureDepth?: VerifyDepth;\n\t};\n}\n"]}
1
+ {"version":3,"file":"IAuditableItemGraphGetRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphGetRequest.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 { VerifyDepth } from \"../verifyDepth.js\";\n\n/**\n * Get an auditable item graph vertex.\n */\nexport interface IAuditableItemGraphGetRequest {\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 to get.\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 * Whether to include deleted aliases, resource, edges, defaults to false.\n\t\t */\n\t\tincludeDeleted?: string;\n\n\t\t/**\n\t\t * How many signatures to verify, none, current or all, defaults to \"none\".\n\t\t */\n\t\tverifySignatureDepth?: VerifyDepth;\n\t};\n}\n"]}
@@ -26,9 +26,13 @@ export const AuditableItemGraphTypes = {
26
26
  */
27
27
  Edge: "AuditableItemGraphEdge",
28
28
  /**
29
- * Represents auditable item graph changeset.
29
+ * Represents auditable item graph changeset.
30
30
  */
31
31
  Changeset: "AuditableItemGraphChangeset",
32
+ /**
33
+ * Represents auditable item graph changeset list.
34
+ */
35
+ ChangesetList: "AuditableItemGraphChangesetList",
32
36
  /**
33
37
  * Represents patch operation.
34
38
  */
@@ -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,cAAc,EAAE,kCAAkC;CACzC,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 patch operation.\n\t */\n\tPatchOperation: \"AuditableItemGraphPatchOperation\"\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"]}
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;CACzC,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} as const;\n\n/**\n * The types of auditable item graph data.\n */\nexport type AuditableItemGraphTypes =\n\t(typeof AuditableItemGraphTypes)[keyof typeof AuditableItemGraphTypes];\n"]}
@@ -10,15 +10,15 @@
10
10
  },
11
11
  "dateCreated": {
12
12
  "type": "string",
13
- "description": "The date/time of when the element was created."
13
+ "description": "The date/time of when the element was created. json-ld namespace:schema"
14
14
  },
15
15
  "dateModified": {
16
16
  "type": "string",
17
- "description": "The date/time of when the element was modified."
17
+ "description": "The date/time of when the element was modified. json-ld namespace:schema"
18
18
  },
19
19
  "dateDeleted": {
20
20
  "type": "string",
21
- "description": "The date/time of when the element was deleted, as we never actually remove items."
21
+ "description": "The date/time of when the element was deleted, as we never actually remove items. json-ld namespace:schema"
22
22
  },
23
23
  "@context": {
24
24
  "anyOf": [
@@ -49,11 +49,11 @@
49
49
  },
50
50
  "annotationObject": {
51
51
  "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
52
- "description": "The JSON-LD annotation object for the alias."
52
+ "description": "The JSON-LD annotation object for the alias. json-ld namespace:twin-common"
53
53
  },
54
54
  "aliasFormat": {
55
55
  "type": "string",
56
- "description": "The format of the id in the alias."
56
+ "description": "The format of the id in the alias. json-ld type:schema:Text"
57
57
  }
58
58
  },
59
59
  "required": [
@@ -33,30 +33,29 @@
33
33
  },
34
34
  "dateCreated": {
35
35
  "type": "string",
36
- "description": "The date/time of when the changeset was created."
36
+ "description": "The date/time of when the changeset was created. json-ld namespace:schema"
37
37
  },
38
38
  "userIdentity": {
39
39
  "type": "string",
40
- "description": "The user identity that created the changes."
40
+ "description": "The user identity that created the changes. json-ld namespace:twin-common"
41
41
  },
42
42
  "patches": {
43
43
  "type": "array",
44
44
  "items": {
45
45
  "$ref": "https://schema.twindev.org/aig/AuditableItemGraphPatchOperation"
46
46
  },
47
- "description": "The patches in the changeset."
47
+ "description": "The patches in the changeset. json-ld container:set"
48
48
  },
49
49
  "proofId": {
50
50
  "type": "string",
51
- "description": "The immutable proof id which contains the signature for this changeset."
51
+ "description": "The immutable proof id which contains the signature for this changeset. json-ld type:schema:identifier"
52
52
  },
53
53
  "verification": {
54
54
  "$ref": "https://schema.twindev.org/immutable-proof/ImmutableProofVerification",
55
- "description": "The verification for the changeset."
55
+ "description": "The verification for the changeset. json-ld id"
56
56
  }
57
57
  },
58
58
  "required": [
59
- "@context",
60
59
  "type",
61
60
  "id",
62
61
  "dateCreated",
@@ -10,15 +10,15 @@
10
10
  },
11
11
  "dateCreated": {
12
12
  "type": "string",
13
- "description": "The date/time of when the element was created."
13
+ "description": "The date/time of when the element was created. json-ld namespace:schema"
14
14
  },
15
15
  "dateModified": {
16
16
  "type": "string",
17
- "description": "The date/time of when the element was modified."
17
+ "description": "The date/time of when the element was modified. json-ld namespace:schema"
18
18
  },
19
19
  "dateDeleted": {
20
20
  "type": "string",
21
- "description": "The date/time of when the element was deleted, as we never actually remove items."
21
+ "description": "The date/time of when the element was deleted, as we never actually remove items. json-ld namespace:schema"
22
22
  },
23
23
  "@context": {
24
24
  "anyOf": [
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "targetId": {
46
46
  "type": "string",
47
- "description": "The target vertex id the edge connects to."
47
+ "description": "The target vertex id the edge connects to. json-ld type:@id"
48
48
  },
49
49
  "type": {
50
50
  "type": "string",
@@ -53,14 +53,14 @@
53
53
  },
54
54
  "annotationObject": {
55
55
  "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
56
- "description": "The JSON-LD annotation object for the edge."
56
+ "description": "The JSON-LD annotation object for the edge. json-ld namespace:twin-common"
57
57
  },
58
58
  "edgeRelationships": {
59
59
  "type": "array",
60
60
  "items": {
61
61
  "type": "string"
62
62
  },
63
- "description": "The relationships between the two vertices."
63
+ "description": "The relationships between the two vertices. json-ld container:set"
64
64
  }
65
65
  },
66
66
  "required": [
@@ -41,22 +41,21 @@
41
41
  "copy",
42
42
  "test"
43
43
  ],
44
- "description": "The operation that was performed on the item."
44
+ "description": "The operation that was performed on the item. json-ld type:schema:Text"
45
45
  },
46
46
  "patchPath": {
47
47
  "type": "string",
48
- "description": "The path to the object that was changed."
48
+ "description": "The path to the object that was changed. json-ld type:schema:Text"
49
49
  },
50
50
  "patchFrom": {
51
51
  "type": "string",
52
- "description": "The path the value was copied or moved from."
52
+ "description": "The path the value was copied or moved from. json-ld type:schema:Text"
53
53
  },
54
54
  "patchValue": {
55
- "description": "The value to add."
55
+ "description": "The value to add. json-ld type:json"
56
56
  }
57
57
  },
58
58
  "required": [
59
- "@context",
60
59
  "type",
61
60
  "patchOperation",
62
61
  "patchPath"
@@ -10,15 +10,15 @@
10
10
  },
11
11
  "dateCreated": {
12
12
  "type": "string",
13
- "description": "The date/time of when the element was created."
13
+ "description": "The date/time of when the element was created. json-ld namespace:schema"
14
14
  },
15
15
  "dateModified": {
16
16
  "type": "string",
17
- "description": "The date/time of when the element was modified."
17
+ "description": "The date/time of when the element was modified. json-ld namespace:schema"
18
18
  },
19
19
  "dateDeleted": {
20
20
  "type": "string",
21
- "description": "The date/time of when the element was deleted, as we never actually remove items."
21
+ "description": "The date/time of when the element was deleted, as we never actually remove items. json-ld namespace:schema"
22
22
  },
23
23
  "@context": {
24
24
  "anyOf": [
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "resourceObject": {
51
51
  "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
52
- "description": "The JSON-LD object for the resource."
52
+ "description": "The JSON-LD object for the resource. json-ld type:json"
53
53
  }
54
54
  },
55
55
  "required": [
@@ -10,15 +10,15 @@
10
10
  },
11
11
  "dateCreated": {
12
12
  "type": "string",
13
- "description": "The date/time of when the element was created."
13
+ "description": "The date/time of when the element was created. json-ld namespace:schema"
14
14
  },
15
15
  "dateModified": {
16
16
  "type": "string",
17
- "description": "The date/time of when the element was modified."
17
+ "description": "The date/time of when the element was modified. json-ld namespace:schema"
18
18
  },
19
19
  "dateDeleted": {
20
20
  "type": "string",
21
- "description": "The date/time of when the element was deleted, as we never actually remove items."
21
+ "description": "The date/time of when the element was deleted, as we never actually remove items. json-ld namespace:schema"
22
22
  },
23
23
  "@context": {
24
24
  "type": "array",
@@ -45,43 +45,36 @@
45
45
  },
46
46
  "organizationIdentity": {
47
47
  "type": "string",
48
- "description": "The identity of the organization which controls the vertex."
48
+ "description": "The identity of the organization which controls the vertex. json-ld namespace:twin-common"
49
49
  },
50
50
  "annotationObject": {
51
51
  "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
52
- "description": "The JSON-LD annotation object for the vertex."
52
+ "description": "The JSON-LD annotation object for the vertex. json-ld namespace:twin-common"
53
53
  },
54
54
  "aliases": {
55
55
  "type": "array",
56
56
  "items": {
57
57
  "$ref": "https://schema.twindev.org/aig/AuditableItemGraphAlias"
58
58
  },
59
- "description": "Alternative aliases that can be used to identify the vertex."
59
+ "description": "Alternative aliases that can be used to identify the vertex. json-ld container:set"
60
60
  },
61
61
  "resources": {
62
62
  "type": "array",
63
63
  "items": {
64
64
  "$ref": "https://schema.twindev.org/aig/AuditableItemGraphResource"
65
65
  },
66
- "description": "The resources attached to the vertex."
66
+ "description": "The resources attached to the vertex. json-ld container:set"
67
67
  },
68
68
  "edges": {
69
69
  "type": "array",
70
70
  "items": {
71
71
  "$ref": "https://schema.twindev.org/aig/AuditableItemGraphEdge"
72
72
  },
73
- "description": "Edges connected to the vertex."
74
- },
75
- "changesets": {
76
- "type": "array",
77
- "items": {
78
- "$ref": "https://schema.twindev.org/aig/AuditableItemGraphChangeset"
79
- },
80
- "description": "Changesets for the vertex."
73
+ "description": "Edges connected to the vertex. json-ld container:set"
81
74
  },
82
75
  "verified": {
83
76
  "type": "boolean",
84
- "description": "Is the vertex verified, will only be populated when verification is requested."
77
+ "description": "Is the vertex verified, will only be populated when verification is requested. json-ld namespace:twin-common"
85
78
  }
86
79
  },
87
80
  "required": [
@@ -43,7 +43,7 @@
43
43
  "items": {
44
44
  "$ref": "https://schema.twindev.org/aig/AuditableItemGraphVertex"
45
45
  },
46
- "description": "The list of vertices."
46
+ "description": "The list of vertices. json-ld namespace:schema"
47
47
  }
48
48
  },
49
49
  "required": [
@@ -1,4 +1,8 @@
1
1
  export * from "./dataTypes/auditableItemGraphDataTypes.js";
2
+ export * from "./models/api/IAuditableItemGraphChangesetGetRequest.js";
3
+ export * from "./models/api/IAuditableItemGraphChangesetGetResponse.js";
4
+ export * from "./models/api/IAuditableItemGraphChangesetListRequest.js";
5
+ export * from "./models/api/IAuditableItemGraphChangesetListResponse.js";
2
6
  export * from "./models/api/IAuditableItemGraphCreateRequest.js";
3
7
  export * from "./models/api/IAuditableItemGraphGetRequest.js";
4
8
  export * from "./models/api/IAuditableItemGraphGetResponse.js";
@@ -13,6 +17,7 @@ export * from "./models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js";
13
17
  export * from "./models/IAuditableItemGraphAlias.js";
14
18
  export * from "./models/IAuditableItemGraphAuditedElement.js";
15
19
  export * from "./models/IAuditableItemGraphChangeset.js";
20
+ export * from "./models/IAuditableItemGraphChangesetList.js";
16
21
  export * from "./models/IAuditableItemGraphComponent.js";
17
22
  export * from "./models/IAuditableItemGraphEdge.js";
18
23
  export * from "./models/IAuditableItemGraphPatchOperation.js";
@@ -20,10 +20,12 @@ export interface IAuditableItemGraphAlias extends IAuditableItemGraphAuditedElem
20
20
  type: typeof AuditableItemGraphTypes.Alias;
21
21
  /**
22
22
  * The JSON-LD annotation object for the alias.
23
+ * json-ld namespace:twin-common
23
24
  */
24
25
  annotationObject?: IJsonLdNodeObject;
25
26
  /**
26
27
  * The format of the id in the alias.
28
+ * json-ld type:schema:Text
27
29
  */
28
30
  aliasFormat?: string;
29
31
  }
@@ -8,14 +8,17 @@ export interface IAuditableItemGraphAuditedElement {
8
8
  id?: string;
9
9
  /**
10
10
  * The date/time of when the element was created.
11
+ * json-ld namespace:schema
11
12
  */
12
13
  dateCreated?: string;
13
14
  /**
14
15
  * The date/time of when the element was modified.
16
+ * json-ld namespace:schema
15
17
  */
16
18
  dateModified?: string;
17
19
  /**
18
20
  * The date/time of when the element was deleted, as we never actually remove items.
21
+ * json-ld namespace:schema
19
22
  */
20
23
  dateDeleted?: string;
21
24
  }
@@ -10,7 +10,7 @@ export interface IAuditableItemGraphChangeset {
10
10
  /**
11
11
  * JSON-LD Context.
12
12
  */
13
- "@context": [
13
+ "@context"?: [
14
14
  typeof AuditableItemGraphContexts.Context,
15
15
  typeof AuditableItemGraphContexts.ContextCommon,
16
16
  ...IJsonLdContextDefinitionElement[]
@@ -25,22 +25,27 @@ export interface IAuditableItemGraphChangeset {
25
25
  id: string;
26
26
  /**
27
27
  * The date/time of when the changeset was created.
28
+ * json-ld namespace:schema
28
29
  */
29
30
  dateCreated: string;
30
31
  /**
31
32
  * The user identity that created the changes.
33
+ * json-ld namespace:twin-common
32
34
  */
33
35
  userIdentity?: string;
34
36
  /**
35
37
  * The patches in the changeset.
38
+ * json-ld container:set
36
39
  */
37
40
  patches: IAuditableItemGraphPatchOperation[];
38
41
  /**
39
42
  * The immutable proof id which contains the signature for this changeset.
43
+ * json-ld type:schema:identifier
40
44
  */
41
45
  proofId?: string;
42
46
  /**
43
47
  * The verification for the changeset.
48
+ * json-ld id
44
49
  */
45
50
  verification?: IImmutableProofVerification;
46
51
  }