@twin.org/auditable-item-graph-models 0.0.3-next.0 → 0.0.3-next.2

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 (28) hide show
  1. package/dist/es/dataTypes/auditableItemGraphDataTypes.js +14 -14
  2. package/dist/es/dataTypes/auditableItemGraphDataTypes.js.map +1 -1
  3. package/dist/es/models/IAuditableItemGraphAlias.js.map +1 -1
  4. package/dist/es/models/IAuditableItemGraphChangeset.js.map +1 -1
  5. package/dist/es/models/IAuditableItemGraphEdge.js.map +1 -1
  6. package/dist/es/models/IAuditableItemGraphPatchOperation.js.map +1 -1
  7. package/dist/es/models/IAuditableItemGraphResource.js.map +1 -1
  8. package/dist/es/models/IAuditableItemGraphVertex.js.map +1 -1
  9. package/dist/es/models/IAuditableItemGraphVertexList.js.map +1 -1
  10. package/dist/es/models/api/IAuditableItemGraphGetRequest.js.map +1 -1
  11. package/dist/es/models/api/IAuditableItemGraphListRequest.js.map +1 -1
  12. package/dist/es/models/auditableItemGraphContexts.js +4 -4
  13. package/dist/es/models/auditableItemGraphContexts.js.map +1 -1
  14. package/dist/types/models/IAuditableItemGraphAlias.d.ts +1 -1
  15. package/dist/types/models/IAuditableItemGraphChangeset.d.ts +2 -2
  16. package/dist/types/models/IAuditableItemGraphEdge.d.ts +1 -1
  17. package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +1 -1
  18. package/dist/types/models/IAuditableItemGraphResource.d.ts +1 -1
  19. package/dist/types/models/IAuditableItemGraphVertex.d.ts +2 -2
  20. package/dist/types/models/IAuditableItemGraphVertexList.d.ts +2 -2
  21. package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +2 -2
  22. package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +1 -1
  23. package/dist/types/models/auditableItemGraphContexts.d.ts +4 -4
  24. package/docs/changelog.md +35 -0
  25. package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +2 -2
  26. package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +1 -1
  27. package/docs/reference/variables/AuditableItemGraphContexts.md +6 -6
  28. package/package.json +1 -1
@@ -18,44 +18,44 @@ export class AuditableItemGraphDataTypes {
18
18
  * Register all the data types.
19
19
  */
20
20
  static registerTypes() {
21
- DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Vertex}`, () => ({
22
- context: AuditableItemGraphContexts.ContextRoot,
21
+ DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.Vertex}`, () => ({
22
+ namespace: AuditableItemGraphContexts.Namespace,
23
23
  type: AuditableItemGraphTypes.Vertex,
24
24
  defaultValue: {},
25
25
  jsonSchema: async () => AuditableItemGraphVertexSchema
26
26
  }));
27
- DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.VertexList}`, () => ({
28
- context: AuditableItemGraphContexts.ContextRoot,
27
+ DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.VertexList}`, () => ({
28
+ namespace: AuditableItemGraphContexts.Namespace,
29
29
  type: AuditableItemGraphTypes.VertexList,
30
30
  defaultValue: {},
31
31
  jsonSchema: async () => AuditableItemGraphVertexListSchema
32
32
  }));
33
- DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Alias}`, () => ({
34
- context: AuditableItemGraphContexts.ContextRoot,
33
+ DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.Alias}`, () => ({
34
+ namespace: AuditableItemGraphContexts.Namespace,
35
35
  type: AuditableItemGraphTypes.Alias,
36
36
  defaultValue: {},
37
37
  jsonSchema: async () => AuditableItemGraphAliasSchema
38
38
  }));
39
- DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Resource}`, () => ({
40
- context: AuditableItemGraphContexts.ContextRoot,
39
+ DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.Resource}`, () => ({
40
+ namespace: AuditableItemGraphContexts.Namespace,
41
41
  type: AuditableItemGraphTypes.Resource,
42
42
  defaultValue: {},
43
43
  jsonSchema: async () => AuditableItemGraphResourceSchema
44
44
  }));
45
- DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Edge}`, () => ({
46
- context: AuditableItemGraphContexts.ContextRoot,
45
+ DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.Edge}`, () => ({
46
+ namespace: AuditableItemGraphContexts.Namespace,
47
47
  type: AuditableItemGraphTypes.Edge,
48
48
  defaultValue: {},
49
49
  jsonSchema: async () => AuditableItemGraphEdgeSchema
50
50
  }));
51
- DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Changeset}`, () => ({
52
- context: AuditableItemGraphContexts.ContextRoot,
51
+ DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.Changeset}`, () => ({
52
+ namespace: AuditableItemGraphContexts.Namespace,
53
53
  type: AuditableItemGraphTypes.Changeset,
54
54
  defaultValue: {},
55
55
  jsonSchema: async () => AuditableItemGraphChangesetSchema
56
56
  }));
57
- DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.PatchOperation}`, () => ({
58
- context: AuditableItemGraphContexts.ContextRoot,
57
+ DataTypeHandlerFactory.register(`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.PatchOperation}`, () => ({
58
+ namespace: AuditableItemGraphContexts.Namespace,
59
59
  type: AuditableItemGraphTypes.PatchOperation,
60
60
  defaultValue: {},
61
61
  jsonSchema: async () => AuditableItemGraphPatchOperationSchema
@@ -1 +1 @@
1
- {"version":3,"file":"auditableItemGraphDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/auditableIt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OAAO,EAAE,0BAA0B,CAAC,WAAW;YAC/C,IAAI,EAAE,uBAAuB,CAAC,SAAS;YACvC,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,iCAAgD;SACxE,CAAC,CACF,CAAC;QACF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,0BAA0B,CAAC,WAAW,GAAG,uBAAuB,CAAC,cAAc,EAAE,EACpF,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,0BAA0B,CAAC,WAAW;YAC/C,IAAI,EAAE,uBAAuB,CAAC,cAAc;YAC5C,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,sCAAqD;SAC7E,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHandlerFactory, type IJsonSchema } from \"@twin.org/data-core\";\nimport { AuditableItemGraphContexts } from \"../models/auditableItemGraphContexts.js\";\nimport { AuditableItemGraphTypes } from \"../models/auditableItemGraphTypes.js\";\nimport AuditableItemGraphAliasSchema from \"../schemas/AuditableItemGraphAlias.json\" with { type: \"json\" };\nimport AuditableItemGraphChangesetSchema from \"../schemas/AuditableItemGraphChangeset.json\" with { type: \"json\" };\nimport AuditableItemGraphEdgeSchema from \"../schemas/AuditableItemGraphEdge.json\" with { type: \"json\" };\nimport AuditableItemGraphPatchOperationSchema from \"../schemas/AuditableItemGraphPatchOperation.json\" with { type: \"json\" };\nimport AuditableItemGraphResourceSchema from \"../schemas/AuditableItemGraphResource.json\" with { type: \"json\" };\nimport AuditableItemGraphVertexSchema from \"../schemas/AuditableItemGraphVertex.json\" with { type: \"json\" };\nimport AuditableItemGraphVertexListSchema from \"../schemas/AuditableItemGraphVertexList.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for auditable item graph.\n */\nexport class AuditableItemGraphDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Vertex}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.Vertex,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphVertexSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.VertexList}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.VertexList,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphVertexListSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Alias}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.Alias,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphAliasSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Resource}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.Resource,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphResourceSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Edge}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.Edge,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphEdgeSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.Changeset}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.Changeset,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphChangesetSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.ContextRoot}${AuditableItemGraphTypes.PatchOperation}`,\n\t\t\t() => ({\n\t\t\t\tcontext: AuditableItemGraphContexts.ContextRoot,\n\t\t\t\ttype: AuditableItemGraphTypes.PatchOperation,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphPatchOperationSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
1
+ {"version":3,"file":"auditableItemGraphDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/auditableItemGraphDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,sBAAsB,EAAoB,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,0BAA0B,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,6BAA6B,MAAM,yCAAyC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC1G,OAAO,iCAAiC,MAAM,6CAA6C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAClH,OAAO,4BAA4B,MAAM,wCAAwC,CAAC,OAAO,IAAI,EAAE,MAAM,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D;SAC7E,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { DataTypeHandlerFactory, type IJsonSchema } from \"@twin.org/data-core\";\nimport { AuditableItemGraphContexts } from \"../models/auditableItemGraphContexts.js\";\nimport { AuditableItemGraphTypes } from \"../models/auditableItemGraphTypes.js\";\nimport AuditableItemGraphAliasSchema from \"../schemas/AuditableItemGraphAlias.json\" with { type: \"json\" };\nimport AuditableItemGraphChangesetSchema from \"../schemas/AuditableItemGraphChangeset.json\" with { type: \"json\" };\nimport AuditableItemGraphEdgeSchema from \"../schemas/AuditableItemGraphEdge.json\" with { type: \"json\" };\nimport AuditableItemGraphPatchOperationSchema from \"../schemas/AuditableItemGraphPatchOperation.json\" with { type: \"json\" };\nimport AuditableItemGraphResourceSchema from \"../schemas/AuditableItemGraphResource.json\" with { type: \"json\" };\nimport AuditableItemGraphVertexSchema from \"../schemas/AuditableItemGraphVertex.json\" with { type: \"json\" };\nimport AuditableItemGraphVertexListSchema from \"../schemas/AuditableItemGraphVertexList.json\" with { type: \"json\" };\n\n/**\n * Handle all the data types for auditable item graph.\n */\nexport class AuditableItemGraphDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.Vertex}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: AuditableItemGraphContexts.Namespace,\n\t\t\t\ttype: AuditableItemGraphTypes.Vertex,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphVertexSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.VertexList}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: AuditableItemGraphContexts.Namespace,\n\t\t\t\ttype: AuditableItemGraphTypes.VertexList,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphVertexListSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.Alias}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: AuditableItemGraphContexts.Namespace,\n\t\t\t\ttype: AuditableItemGraphTypes.Alias,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphAliasSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.Resource}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: AuditableItemGraphContexts.Namespace,\n\t\t\t\ttype: AuditableItemGraphTypes.Resource,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphResourceSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.Edge}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: AuditableItemGraphContexts.Namespace,\n\t\t\t\ttype: AuditableItemGraphTypes.Edge,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphEdgeSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.Changeset}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: AuditableItemGraphContexts.Namespace,\n\t\t\t\ttype: AuditableItemGraphTypes.Changeset,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphChangesetSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${AuditableItemGraphContexts.Namespace}${AuditableItemGraphTypes.PatchOperation}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: AuditableItemGraphContexts.Namespace,\n\t\t\t\ttype: AuditableItemGraphTypes.PatchOperation,\n\t\t\t\tdefaultValue: {},\n\t\t\t\tjsonSchema: async () => AuditableItemGraphPatchOperationSchema as IJsonSchema\n\t\t\t})\n\t\t);\n\t}\n}\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.ContextRoot\n\t\t| [typeof AuditableItemGraphContexts.ContextRoot, ...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.Namespace\n\t\t| [typeof AuditableItemGraphContexts.Namespace, ...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 +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.ContextRoot,\n\t\ttypeof AuditableItemGraphContexts.ContextRootCommon,\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.Namespace,\n\t\ttypeof AuditableItemGraphContexts.NamespaceCommon,\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 +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.ContextRoot\n\t\t| [typeof AuditableItemGraphContexts.ContextRoot, ...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.Namespace\n\t\t| [typeof AuditableItemGraphContexts.Namespace, ...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 +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.ContextRoot\n\t\t| [typeof AuditableItemGraphContexts.ContextRoot, ...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.Namespace\n\t\t| [typeof AuditableItemGraphContexts.Namespace, ...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 +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.ContextRoot\n\t\t| [typeof AuditableItemGraphContexts.ContextRoot, ...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.Namespace\n\t\t| [typeof AuditableItemGraphContexts.Namespace, ...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 +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.ContextRoot,\n\t\ttypeof AuditableItemGraphContexts.ContextRootCommon,\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 { 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.Namespace,\n\t\ttypeof AuditableItemGraphContexts.NamespaceCommon,\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 +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.ContextRoot,\n\t\ttypeof AuditableItemGraphContexts.ContextRoot,\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\t/**\n\t * The cursor to get the next chunk of vertices.\n\t */\n\t[SchemaOrgTypes.NextItem]?: string;\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.Namespace,\n\t\ttypeof AuditableItemGraphContexts.Namespace,\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\t/**\n\t * The cursor to get the next chunk of vertices.\n\t */\n\t[SchemaOrgTypes.NextItem]?: string;\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?: boolean | 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?: boolean | 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 * 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 +1 @@
1
- {"version":3,"file":"IAuditableItemGraphListRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphListRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { SortDirection } from \"@twin.org/entity\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\nimport type { IAuditableItemGraphVertex } from \"../IAuditableItemGraphVertex.js\";\n\n/**\n * Get the a list of the vertices with matching ids or aliases.\n */\nexport interface IAuditableItemGraphListRequest {\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 query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The id or alias to try and find.\n\t\t */\n\t\tid?: string;\n\n\t\t/**\n\t\t * Which field to look in with the id, defaults to both.\n\t\t */\n\t\tidMode?: \"id\" | \"alias\" | \"both\";\n\n\t\t/**\n\t\t * Find only exact matches, default to false meaning partial matching.\n\t\t */\n\t\tidExact?: boolean;\n\n\t\t/**\n\t\t * Include vertices with specific resource types, comma separated.\n\t\t */\n\t\tresourceTypes?: string;\n\n\t\t/**\n\t\t * The conditions to filter the streams, JSON stringified IComparator[].\n\t\t */\n\t\tconditions?: string;\n\n\t\t/**\n\t\t * The order for the results, default to dateCreated.\n\t\t */\n\t\torderBy?: keyof Pick<IAuditableItemGraphVertex, \"dateCreated\" | \"dateModified\">;\n\n\t\t/**\n\t\t * The direction for the order, defaults to desc.\n\t\t */\n\t\torderByDirection?: SortDirection;\n\n\t\t/**\n\t\t * The properties to return as a comma separated list, defaults to \"id,dateCreated,aliases,annotationObject\".\n\t\t */\n\t\tproperties?: string;\n\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\t};\n}\n"]}
1
+ {"version":3,"file":"IAuditableItemGraphListRequest.js","sourceRoot":"","sources":["../../../../src/models/api/IAuditableItemGraphListRequest.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { SortDirection } from \"@twin.org/entity\";\nimport type { HeaderTypes, MimeTypes } from \"@twin.org/web\";\nimport type { IAuditableItemGraphVertex } from \"../IAuditableItemGraphVertex.js\";\n\n/**\n * Get the a list of the vertices with matching ids or aliases.\n */\nexport interface IAuditableItemGraphListRequest {\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 query parameters.\n\t */\n\tquery?: {\n\t\t/**\n\t\t * The id or alias to try and find.\n\t\t */\n\t\tid?: string;\n\n\t\t/**\n\t\t * Which field to look in with the id, defaults to both.\n\t\t */\n\t\tidMode?: \"id\" | \"alias\" | \"both\";\n\n\t\t/**\n\t\t * Find only exact matches, default to false meaning partial matching.\n\t\t */\n\t\tidExact?: string;\n\n\t\t/**\n\t\t * Include vertices with specific resource types, comma separated.\n\t\t */\n\t\tresourceTypes?: string;\n\n\t\t/**\n\t\t * The conditions to filter the streams, JSON stringified IComparator[].\n\t\t */\n\t\tconditions?: string;\n\n\t\t/**\n\t\t * The order for the results, default to dateCreated.\n\t\t */\n\t\torderBy?: keyof Pick<IAuditableItemGraphVertex, \"dateCreated\" | \"dateModified\">;\n\n\t\t/**\n\t\t * The direction for the order, defaults to desc.\n\t\t */\n\t\torderByDirection?: SortDirection;\n\n\t\t/**\n\t\t * The properties to return as a comma separated list, defaults to \"id,dateCreated,aliases,annotationObject\".\n\t\t */\n\t\tproperties?: string;\n\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\t};\n}\n"]}
@@ -6,12 +6,12 @@
6
6
  // eslint-disable-next-line @typescript-eslint/naming-convention
7
7
  export const AuditableItemGraphContexts = {
8
8
  /**
9
- * The context root for the auditable item graph types.
9
+ * The namespace for the auditable item graph types.
10
10
  */
11
- ContextRoot: "https://schema.twindev.org/aig/",
11
+ Namespace: "https://schema.twindev.org/aig/",
12
12
  /**
13
- * The context root for the common types.
13
+ * The namespace for the common types.
14
14
  */
15
- ContextRootCommon: "https://schema.twindev.org/common/"
15
+ NamespaceCommon: "https://schema.twindev.org/common/"
16
16
  };
17
17
  //# sourceMappingURL=auditableItemGraphContexts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"auditableItemGraphContexts.js","sourceRoot":"","sources":["../../../src/models/auditableItemGraphContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC;;OAEG;IACH,WAAW,EAAE,iCAAiC;IAE9C;;OAEG;IACH,iBAAiB,EAAE,oCAAoC;CAC9C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts of auditable item graph data.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuditableItemGraphContexts = {\n\t/**\n\t * The context root for the auditable item graph types.\n\t */\n\tContextRoot: \"https://schema.twindev.org/aig/\",\n\n\t/**\n\t * The context root for the common types.\n\t */\n\tContextRootCommon: \"https://schema.twindev.org/common/\"\n} as const;\n\n/**\n * The contexts of auditable item graph data.\n */\nexport type AuditableItemGraphContexts =\n\t(typeof AuditableItemGraphContexts)[keyof typeof AuditableItemGraphContexts];\n"]}
1
+ {"version":3,"file":"auditableItemGraphContexts.js","sourceRoot":"","sources":["../../../src/models/auditableItemGraphContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACzC;;OAEG;IACH,SAAS,EAAE,iCAAiC;IAE5C;;OAEG;IACH,eAAe,EAAE,oCAAoC;CAC5C,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts of auditable item graph data.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuditableItemGraphContexts = {\n\t/**\n\t * The namespace for the auditable item graph types.\n\t */\n\tNamespace: \"https://schema.twindev.org/aig/\",\n\n\t/**\n\t * The namespace for the common types.\n\t */\n\tNamespaceCommon: \"https://schema.twindev.org/common/\"\n} as const;\n\n/**\n * The contexts of auditable item graph data.\n */\nexport type AuditableItemGraphContexts =\n\t(typeof AuditableItemGraphContexts)[keyof typeof AuditableItemGraphContexts];\n"]}
@@ -9,7 +9,7 @@ export interface IAuditableItemGraphAlias extends IAuditableItemGraphAuditedElem
9
9
  /**
10
10
  * JSON-LD Context.
11
11
  */
12
- "@context": typeof AuditableItemGraphContexts.ContextRoot | [typeof AuditableItemGraphContexts.ContextRoot, ...IJsonLdContextDefinitionElement[]];
12
+ "@context": typeof AuditableItemGraphContexts.Namespace | [typeof AuditableItemGraphContexts.Namespace, ...IJsonLdContextDefinitionElement[]];
13
13
  /**
14
14
  * The id of the element.
15
15
  */
@@ -11,8 +11,8 @@ export interface IAuditableItemGraphChangeset {
11
11
  * JSON-LD Context.
12
12
  */
13
13
  "@context": [
14
- typeof AuditableItemGraphContexts.ContextRoot,
15
- typeof AuditableItemGraphContexts.ContextRootCommon,
14
+ typeof AuditableItemGraphContexts.Namespace,
15
+ typeof AuditableItemGraphContexts.NamespaceCommon,
16
16
  ...IJsonLdContextDefinitionElement[]
17
17
  ];
18
18
  /**
@@ -9,7 +9,7 @@ export interface IAuditableItemGraphEdge extends IAuditableItemGraphAuditedEleme
9
9
  /**
10
10
  * JSON-LD Context.
11
11
  */
12
- "@context": typeof AuditableItemGraphContexts.ContextRoot | [typeof AuditableItemGraphContexts.ContextRoot, ...IJsonLdContextDefinitionElement[]];
12
+ "@context": typeof AuditableItemGraphContexts.Namespace | [typeof AuditableItemGraphContexts.Namespace, ...IJsonLdContextDefinitionElement[]];
13
13
  /**
14
14
  * The id of the element.
15
15
  */
@@ -8,7 +8,7 @@ export interface IAuditableItemGraphPatchOperation {
8
8
  /**
9
9
  * JSON-LD Context.
10
10
  */
11
- "@context": typeof AuditableItemGraphContexts.ContextRoot | [typeof AuditableItemGraphContexts.ContextRoot, ...IJsonLdContextDefinitionElement[]];
11
+ "@context": typeof AuditableItemGraphContexts.Namespace | [typeof AuditableItemGraphContexts.Namespace, ...IJsonLdContextDefinitionElement[]];
12
12
  /**
13
13
  * JSON-LD Type.
14
14
  */
@@ -9,7 +9,7 @@ export interface IAuditableItemGraphResource extends IAuditableItemGraphAuditedE
9
9
  /**
10
10
  * JSON-LD Context.
11
11
  */
12
- "@context": typeof AuditableItemGraphContexts.ContextRoot | [typeof AuditableItemGraphContexts.ContextRoot, ...IJsonLdContextDefinitionElement[]];
12
+ "@context": typeof AuditableItemGraphContexts.Namespace | [typeof AuditableItemGraphContexts.Namespace, ...IJsonLdContextDefinitionElement[]];
13
13
  /**
14
14
  * JSON-LD Type.
15
15
  */
@@ -14,8 +14,8 @@ export interface IAuditableItemGraphVertex extends Omit<IAuditableItemGraphAudit
14
14
  * JSON-LD Context.
15
15
  */
16
16
  "@context": [
17
- typeof AuditableItemGraphContexts.ContextRoot,
18
- typeof AuditableItemGraphContexts.ContextRootCommon,
17
+ typeof AuditableItemGraphContexts.Namespace,
18
+ typeof AuditableItemGraphContexts.NamespaceCommon,
19
19
  ...IJsonLdContextDefinitionElement[]
20
20
  ];
21
21
  /**
@@ -11,8 +11,8 @@ export interface IAuditableItemGraphVertexList {
11
11
  * JSON-LD Context.
12
12
  */
13
13
  "@context": [
14
- typeof SchemaOrgContexts.ContextRoot,
15
- typeof AuditableItemGraphContexts.ContextRoot,
14
+ typeof SchemaOrgContexts.Namespace,
15
+ typeof AuditableItemGraphContexts.Namespace,
16
16
  ...IJsonLdContextDefinitionElement[]
17
17
  ];
18
18
  /**
@@ -26,11 +26,11 @@ export interface IAuditableItemGraphGetRequest {
26
26
  /**
27
27
  * Whether to include deleted aliases, resource, edges, defaults to false.
28
28
  */
29
- includeDeleted?: boolean | string;
29
+ includeDeleted?: string;
30
30
  /**
31
31
  * Whether to include the changesets of the vertex, defaults to false.
32
32
  */
33
- includeChangesets?: boolean | string;
33
+ includeChangesets?: string;
34
34
  /**
35
35
  * How many signatures to verify, none, current or all, defaults to "none".
36
36
  */
@@ -26,7 +26,7 @@ export interface IAuditableItemGraphListRequest {
26
26
  /**
27
27
  * Find only exact matches, default to false meaning partial matching.
28
28
  */
29
- idExact?: boolean;
29
+ idExact?: string;
30
30
  /**
31
31
  * Include vertices with specific resource types, comma separated.
32
32
  */
@@ -3,13 +3,13 @@
3
3
  */
4
4
  export declare const AuditableItemGraphContexts: {
5
5
  /**
6
- * The context root for the auditable item graph types.
6
+ * The namespace for the auditable item graph types.
7
7
  */
8
- readonly ContextRoot: "https://schema.twindev.org/aig/";
8
+ readonly Namespace: "https://schema.twindev.org/aig/";
9
9
  /**
10
- * The context root for the common types.
10
+ * The namespace for the common types.
11
11
  */
12
- readonly ContextRootCommon: "https://schema.twindev.org/common/";
12
+ readonly NamespaceCommon: "https://schema.twindev.org/common/";
13
13
  };
14
14
  /**
15
15
  * The contexts of auditable item graph data.
package/docs/changelog.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @twin.org/auditable-item-graph-models - Changelog
2
2
 
3
+ ## [0.0.3-next.2](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.3-next.1...auditable-item-graph-models-v0.0.3-next.2) (2026-01-14)
4
+
5
+
6
+ ### Features
7
+
8
+ * update contexts and namespaces ([#33](https://github.com/twinfoundation/auditable-item-graph/issues/33)) ([5dadb99](https://github.com/twinfoundation/auditable-item-graph/commit/5dadb99773d410aceacaba7ed92c1ccb8b46516b))
9
+
10
+ ## [0.0.3-next.1](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.3-next.0...auditable-item-graph-models-v0.0.3-next.1) (2025-11-28)
11
+
12
+
13
+ ### Features
14
+
15
+ * add context id features ([#30](https://github.com/twinfoundation/auditable-item-graph/issues/30)) ([a35d37c](https://github.com/twinfoundation/auditable-item-graph/commit/a35d37c0db62a240adde493965c0a9f7971fec45))
16
+ * add data types with fully qualified name ([93e1ee7](https://github.com/twinfoundation/auditable-item-graph/commit/93e1ee7c0f7bad81f003787f797f363864e201af))
17
+ * add unique flag for alias, and exact match option for id query ([33dbd19](https://github.com/twinfoundation/auditable-item-graph/commit/33dbd19cabd9fbfaba81032f1d1a6527584c3f5a))
18
+ * add validate-locales ([e76e6f6](https://github.com/twinfoundation/auditable-item-graph/commit/e76e6f6b3ec9c447a04315d353442e32233601d3))
19
+ * eslint migration to flat config ([1b42a3a](https://github.com/twinfoundation/auditable-item-graph/commit/1b42a3a27bd6e32d7816de406b92b6332472edf6))
20
+ * id optional in edge updates ([6b63fe3](https://github.com/twinfoundation/auditable-item-graph/commit/6b63fe34553104843ae15aa5066775f5872859e9))
21
+ * improve comments ([97f311a](https://github.com/twinfoundation/auditable-item-graph/commit/97f311a9cc4353b5020a48a44420c97a2fa0c8d7))
22
+ * improve JSON schemas ([bec8dc1](https://github.com/twinfoundation/auditable-item-graph/commit/bec8dc1f270c6c9710623a192b984cf46f8a5613))
23
+ * update background task service ([e483ddb](https://github.com/twinfoundation/auditable-item-graph/commit/e483ddbc948f035334f92b8342248caa6abbe441))
24
+ * update dependencies ([6986689](https://github.com/twinfoundation/auditable-item-graph/commit/698668957a1fcb7f85ce2f117914d5980043924f))
25
+ * update edges to use targetId instead of id ([6c5d0e3](https://github.com/twinfoundation/auditable-item-graph/commit/6c5d0e31b6e2ea74bfa2f3344e4be628e5f237af))
26
+ * update framework core ([88ad4e6](https://github.com/twinfoundation/auditable-item-graph/commit/88ad4e6421132c3c6c45579b078d982a26f16990))
27
+ * update ts-to-schema generation ([edce91e](https://github.com/twinfoundation/auditable-item-graph/commit/edce91e8272ab361595489458066040caf582df2))
28
+ * use new nameof operators ([3921c4c](https://github.com/twinfoundation/auditable-item-graph/commit/3921c4c9ac53e42459e45f10d9e702afb2797a23))
29
+ * use shared store mechanism ([#10](https://github.com/twinfoundation/auditable-item-graph/issues/10)) ([da035e5](https://github.com/twinfoundation/auditable-item-graph/commit/da035e5eb8f157482b4eb2bdbc689c6c0647ff7d))
30
+ * use standard list json ld types ([8f53836](https://github.com/twinfoundation/auditable-item-graph/commit/8f53836d4c83a98d64d7f5fe0531bb9af09464ae))
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * only include alias in index if not deleted ([#6](https://github.com/twinfoundation/auditable-item-graph/issues/6)) ([5da3c41](https://github.com/twinfoundation/auditable-item-graph/commit/5da3c419fafa2afefd34b1c570d103012b888a75))
36
+ * query params force coercion ([2dd9afe](https://github.com/twinfoundation/auditable-item-graph/commit/2dd9afe9ec37e2a91c110317fe289f7495c187a0))
37
+
3
38
  ## [0.0.2-next.8](https://github.com/twinfoundation/auditable-item-graph/compare/auditable-item-graph-models-v0.0.2-next.7...auditable-item-graph-models-v0.0.2-next.8) (2025-10-09)
4
39
 
5
40
 
@@ -38,13 +38,13 @@ The query parameters.
38
38
 
39
39
  #### includeDeleted?
40
40
 
41
- > `optional` **includeDeleted**: `string` \| `boolean`
41
+ > `optional` **includeDeleted**: `string`
42
42
 
43
43
  Whether to include deleted aliases, resource, edges, defaults to false.
44
44
 
45
45
  #### includeChangesets?
46
46
 
47
- > `optional` **includeChangesets**: `string` \| `boolean`
47
+ > `optional` **includeChangesets**: `string`
48
48
 
49
49
  Whether to include the changesets of the vertex, defaults to false.
50
50
 
@@ -36,7 +36,7 @@ Which field to look in with the id, defaults to both.
36
36
 
37
37
  #### idExact?
38
38
 
39
- > `optional` **idExact**: `boolean`
39
+ > `optional` **idExact**: `string`
40
40
 
41
41
  Find only exact matches, default to false meaning partial matching.
42
42
 
@@ -6,14 +6,14 @@ The contexts of auditable item graph data.
6
6
 
7
7
  ## Type Declaration
8
8
 
9
- ### ContextRoot
9
+ ### Namespace
10
10
 
11
- > `readonly` **ContextRoot**: `"https://schema.twindev.org/aig/"` = `"https://schema.twindev.org/aig/"`
11
+ > `readonly` **Namespace**: `"https://schema.twindev.org/aig/"` = `"https://schema.twindev.org/aig/"`
12
12
 
13
- The context root for the auditable item graph types.
13
+ The namespace for the auditable item graph types.
14
14
 
15
- ### ContextRootCommon
15
+ ### NamespaceCommon
16
16
 
17
- > `readonly` **ContextRootCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
17
+ > `readonly` **NamespaceCommon**: `"https://schema.twindev.org/common/"` = `"https://schema.twindev.org/common/"`
18
18
 
19
- The context root for the common types.
19
+ The namespace for the common types.
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.0",
3
+ "version": "0.0.3-next.2",
4
4
  "description": "Models which define the structure of the auditable item graph connectors and services",
5
5
  "repository": {
6
6
  "type": "git",