@twin.org/auditable-item-graph-models 0.0.3-next.1 → 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.
@@ -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":"auditableItemGraphData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AAE,EAC/E,GAAG,EAAE,CAAC,CAAC;YACN,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,MAA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AAU,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.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"]}
@@ -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
  /**
@@ -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,12 @@
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
+
3
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)
4
11
 
5
12
 
@@ -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.1",
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",