@3sixty/auditable-item-graph-models 0.0.0-stage → 0.20.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +26 -2
- package/dist/es/compiled/validators.js +1885 -0
- package/dist/es/compiled/validators.js.map +1 -0
- package/dist/es/dataTypes/auditableItemGraphDataTypes.js +103 -0
- package/dist/es/dataTypes/auditableItemGraphDataTypes.js.map +1 -0
- package/dist/es/index.js +43 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphAlias.js +2 -0
- package/dist/es/models/IAuditableItemGraphAlias.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphAuditedElement.js +4 -0
- package/dist/es/models/IAuditableItemGraphAuditedElement.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphChangeset.js +2 -0
- package/dist/es/models/IAuditableItemGraphChangeset.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphChangesetList.js +2 -0
- package/dist/es/models/IAuditableItemGraphChangesetList.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphComponent.js +2 -0
- package/dist/es/models/IAuditableItemGraphComponent.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphEdge.js +2 -0
- package/dist/es/models/IAuditableItemGraphEdge.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphListPatch.js +2 -0
- package/dist/es/models/IAuditableItemGraphListPatch.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphPartialVertex.js +2 -0
- package/dist/es/models/IAuditableItemGraphPartialVertex.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphPatchOperation.js +2 -0
- package/dist/es/models/IAuditableItemGraphPatchOperation.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphResource.js +2 -0
- package/dist/es/models/IAuditableItemGraphResource.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphVertex.js +2 -0
- package/dist/es/models/IAuditableItemGraphVertex.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphVertexList.js +2 -0
- package/dist/es/models/IAuditableItemGraphVertexList.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphVertexVersionList.js +2 -0
- package/dist/es/models/IAuditableItemGraphVertexVersionList.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetGetRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetGetRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetGetResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetGetResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetListRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetListRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetListResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphChangesetListResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphCreateRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphCreateRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphGetRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphGetRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphGetResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphGetResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphListRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphListRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphListResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphListResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphRemoveProofRequest.js +4 -0
- package/dist/es/models/api/IAuditableItemGraphRemoveProofRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphUpdatePartialRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphUpdatePartialRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphUpdateRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphUpdateRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionGetResponse.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListRequest.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListRequest.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListResponse.js +2 -0
- package/dist/es/models/api/IAuditableItemGraphVersionListResponse.js.map +1 -0
- package/dist/es/models/auditableItemGraphAuditMode.js +17 -0
- package/dist/es/models/auditableItemGraphAuditMode.js.map +1 -0
- package/dist/es/models/auditableItemGraphContexts.js +33 -0
- package/dist/es/models/auditableItemGraphContexts.js.map +1 -0
- package/dist/es/models/auditableItemGraphMetricIds.js +69 -0
- package/dist/es/models/auditableItemGraphMetricIds.js.map +1 -0
- package/dist/es/models/auditableItemGraphMetrics.js +82 -0
- package/dist/es/models/auditableItemGraphMetrics.js.map +1 -0
- package/dist/es/models/auditableItemGraphTopics.js +17 -0
- package/dist/es/models/auditableItemGraphTopics.js.map +1 -0
- package/dist/es/models/auditableItemGraphTypes.js +57 -0
- package/dist/es/models/auditableItemGraphTypes.js.map +1 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexCreated.js +4 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexCreated.js.map +1 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js +2 -0
- package/dist/es/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.js.map +1 -0
- package/dist/es/models/verifyDepth.js +21 -0
- package/dist/es/models/verifyDepth.js.map +1 -0
- package/dist/es/schemas/AuditableItemGraphAlias.json +58 -0
- package/dist/es/schemas/AuditableItemGraphAuditMode.json +16 -0
- package/dist/es/schemas/AuditableItemGraphAuditedElement.json +25 -0
- package/dist/es/schemas/AuditableItemGraphChangeset.json +66 -0
- package/dist/es/schemas/AuditableItemGraphChangesetList.json +52 -0
- package/dist/es/schemas/AuditableItemGraphEdge.json +62 -0
- package/dist/es/schemas/AuditableItemGraphListPatch.json +33 -0
- package/dist/es/schemas/AuditableItemGraphPartialVertex.json +115 -0
- package/dist/es/schemas/AuditableItemGraphPatchOperation.json +72 -0
- package/dist/es/schemas/AuditableItemGraphResource.json +45 -0
- package/dist/es/schemas/AuditableItemGraphVertex.json +100 -0
- package/dist/es/schemas/AuditableItemGraphVertexList.json +52 -0
- package/dist/es/schemas/AuditableItemGraphVertexVersionList.json +64 -0
- package/dist/types/compiled/validators.d.ts +53 -0
- package/dist/types/dataTypes/auditableItemGraphDataTypes.d.ts +9 -0
- package/dist/types/index.d.ts +40 -0
- package/dist/types/models/IAuditableItemGraphAlias.d.ts +36 -0
- package/dist/types/models/IAuditableItemGraphAuditedElement.d.ts +24 -0
- package/dist/types/models/IAuditableItemGraphChangeset.d.ts +57 -0
- package/dist/types/models/IAuditableItemGraphChangesetList.d.ts +27 -0
- package/dist/types/models/IAuditableItemGraphComponent.d.ts +143 -0
- package/dist/types/models/IAuditableItemGraphEdge.d.ts +36 -0
- package/dist/types/models/IAuditableItemGraphListPatch.d.ts +18 -0
- package/dist/types/models/IAuditableItemGraphPartialVertex.d.ts +45 -0
- package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +36 -0
- package/dist/types/models/IAuditableItemGraphResource.d.ts +22 -0
- package/dist/types/models/IAuditableItemGraphVertex.d.ts +73 -0
- package/dist/types/models/IAuditableItemGraphVertexList.d.ts +27 -0
- package/dist/types/models/IAuditableItemGraphVertexVersionList.d.ts +29 -0
- package/dist/types/models/api/IAuditableItemGraphChangesetGetRequest.d.ts +35 -0
- package/dist/types/models/api/IAuditableItemGraphChangesetGetResponse.d.ts +17 -0
- package/dist/types/models/api/IAuditableItemGraphChangesetListRequest.d.ts +39 -0
- package/dist/types/models/api/IAuditableItemGraphChangesetListResponse.d.ts +18 -0
- package/dist/types/models/api/IAuditableItemGraphCreateRequest.d.ts +10 -0
- package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +35 -0
- package/dist/types/models/api/IAuditableItemGraphGetResponse.d.ts +17 -0
- package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +60 -0
- package/dist/types/models/api/IAuditableItemGraphListResponse.d.ts +18 -0
- package/dist/types/models/api/IAuditableItemGraphRemoveProofRequest.d.ts +14 -0
- package/dist/types/models/api/IAuditableItemGraphUpdatePartialRequest.d.ts +20 -0
- package/dist/types/models/api/IAuditableItemGraphUpdateRequest.d.ts +19 -0
- package/dist/types/models/api/IAuditableItemGraphVersionGetRequest.d.ts +25 -0
- package/dist/types/models/api/IAuditableItemGraphVersionGetResponse.d.ts +17 -0
- package/dist/types/models/api/IAuditableItemGraphVersionListRequest.d.ts +34 -0
- package/dist/types/models/api/IAuditableItemGraphVersionListResponse.d.ts +17 -0
- package/dist/types/models/auditableItemGraphAuditMode.d.ts +17 -0
- package/dist/types/models/auditableItemGraphContexts.d.ts +33 -0
- package/dist/types/models/auditableItemGraphMetricIds.d.ts +69 -0
- package/dist/types/models/auditableItemGraphMetrics.d.ts +5 -0
- package/dist/types/models/auditableItemGraphTopics.d.ts +17 -0
- package/dist/types/models/auditableItemGraphTypes.d.ts +57 -0
- package/dist/types/models/eventBus/IAuditableItemGraphEventBusVertexCreated.d.ts +9 -0
- package/dist/types/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.d.ts +14 -0
- package/dist/types/models/verifyDepth.d.ts +21 -0
- package/docs/changelog.md +9 -0
- package/docs/examples.md +22 -0
- package/docs/reference/classes/AuditableItemGraphDataTypes.md +25 -0
- package/docs/reference/index.md +71 -0
- package/docs/reference/interfaces/IAuditableItemGraphAlias.md +95 -0
- package/docs/reference/interfaces/IAuditableItemGraphAuditedElement.md +41 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +76 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangesetGetRequest.md +49 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangesetGetResponse.md +23 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangesetList.md +27 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangesetListRequest.md +55 -0
- package/docs/reference/interfaces/IAuditableItemGraphChangesetListResponse.md +27 -0
- package/docs/reference/interfaces/IAuditableItemGraphComponent.md +393 -0
- package/docs/reference/interfaces/IAuditableItemGraphCreateRequest.md +11 -0
- package/docs/reference/interfaces/IAuditableItemGraphEdge.md +95 -0
- package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexCreated.md +11 -0
- package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexUpdated.md +19 -0
- package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +49 -0
- package/docs/reference/interfaces/IAuditableItemGraphGetResponse.md +23 -0
- package/docs/reference/interfaces/IAuditableItemGraphListPatch.md +25 -0
- package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +84 -0
- package/docs/reference/interfaces/IAuditableItemGraphListResponse.md +27 -0
- package/docs/reference/interfaces/IAuditableItemGraphPartialVertex.md +164 -0
- package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +51 -0
- package/docs/reference/interfaces/IAuditableItemGraphRemoveProofRequest.md +17 -0
- package/docs/reference/interfaces/IAuditableItemGraphResource.md +79 -0
- package/docs/reference/interfaces/IAuditableItemGraphUpdatePartialRequest.md +26 -0
- package/docs/reference/interfaces/IAuditableItemGraphUpdateRequest.md +25 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionGetRequest.md +35 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionGetResponse.md +23 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionListRequest.md +49 -0
- package/docs/reference/interfaces/IAuditableItemGraphVersionListResponse.md +23 -0
- package/docs/reference/interfaces/IAuditableItemGraphVertex.md +139 -0
- package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +27 -0
- package/docs/reference/interfaces/IAuditableItemGraphVertexVersionList.md +35 -0
- package/docs/reference/type-aliases/AuditableItemGraphAuditMode.md +5 -0
- package/docs/reference/type-aliases/AuditableItemGraphContexts.md +5 -0
- package/docs/reference/type-aliases/AuditableItemGraphMetricIds.md +5 -0
- package/docs/reference/type-aliases/AuditableItemGraphTopics.md +5 -0
- package/docs/reference/type-aliases/AuditableItemGraphTypes.md +5 -0
- package/docs/reference/type-aliases/VerifyDepth.md +5 -0
- package/docs/reference/variables/AuditableItemGraphAuditMode.md +19 -0
- package/docs/reference/variables/AuditableItemGraphContexts.md +43 -0
- package/docs/reference/variables/AuditableItemGraphMetricIds.md +97 -0
- package/docs/reference/variables/AuditableItemGraphMetrics.md +5 -0
- package/docs/reference/variables/AuditableItemGraphTopics.md +19 -0
- package/docs/reference/variables/AuditableItemGraphTypes.md +79 -0
- package/docs/reference/variables/CompiledAuditableItemGraphAlias.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphAuditMode.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphAuditedElement.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphChangeset.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphChangesetList.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphEdge.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphListPatch.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphPartialVertex.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphPatchOperation.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphResource.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphVertex.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphVertexList.md +5 -0
- package/docs/reference/variables/CompiledAuditableItemGraphVertexVersionList.md +5 -0
- package/docs/reference/variables/VerifyDepth.md +25 -0
- package/locales/en.json +3 -0
- package/package.json +57 -5
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The types of auditable item graph data.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const AuditableItemGraphTypes = {
|
|
8
|
+
/**
|
|
9
|
+
* Represents auditable item graph vertex.
|
|
10
|
+
*/
|
|
11
|
+
Vertex: "AuditableItemGraphVertex",
|
|
12
|
+
/**
|
|
13
|
+
* Represents auditable item graph vertex list.
|
|
14
|
+
*/
|
|
15
|
+
VertexList: "AuditableItemGraphVertexList",
|
|
16
|
+
/**
|
|
17
|
+
* Represents auditable item graph alias.
|
|
18
|
+
*/
|
|
19
|
+
Alias: "AuditableItemGraphAlias",
|
|
20
|
+
/**
|
|
21
|
+
* Represents auditable item graph resource.
|
|
22
|
+
*/
|
|
23
|
+
Resource: "AuditableItemGraphResource",
|
|
24
|
+
/**
|
|
25
|
+
* Represents auditable item graph edge.
|
|
26
|
+
*/
|
|
27
|
+
Edge: "AuditableItemGraphEdge",
|
|
28
|
+
/**
|
|
29
|
+
* Represents auditable item graph changeset.
|
|
30
|
+
*/
|
|
31
|
+
Changeset: "AuditableItemGraphChangeset",
|
|
32
|
+
/**
|
|
33
|
+
* Represents auditable item graph changeset list.
|
|
34
|
+
*/
|
|
35
|
+
ChangesetList: "AuditableItemGraphChangesetList",
|
|
36
|
+
/**
|
|
37
|
+
* Represents patch operation.
|
|
38
|
+
*/
|
|
39
|
+
PatchOperation: "AuditableItemGraphPatchOperation",
|
|
40
|
+
/**
|
|
41
|
+
* Represents auditable item graph vertex version list.
|
|
42
|
+
*/
|
|
43
|
+
VertexVersionList: "AuditableItemGraphVertexVersionList",
|
|
44
|
+
/**
|
|
45
|
+
* Represents auditable item graph partial vertex.
|
|
46
|
+
*/
|
|
47
|
+
PartialVertex: "AuditableItemGraphPartialVertex",
|
|
48
|
+
/**
|
|
49
|
+
* Represents auditable item graph list patch.
|
|
50
|
+
*/
|
|
51
|
+
ListPatch: "AuditableItemGraphListPatch",
|
|
52
|
+
/**
|
|
53
|
+
* Represents auditable item graph audit mode.
|
|
54
|
+
*/
|
|
55
|
+
AuditMode: "AuditableItemGraphAuditMode"
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=auditableItemGraphTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphTypes.js","sources":["../../../src/models/auditableItemGraphTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC;;OAEG;IACH,MAAM,EAAE,0BAA0B;IAElC;;OAEG;IACH,UAAU,EAAE,8BAA8B;IAE1C;;OAEG;IACH,KAAK,EAAE,yBAAyB;IAEhC;;OAEG;IACH,QAAQ,EAAE,4BAA4B;IAEtC;;OAEG;IACH,IAAI,EAAE,wBAAwB;IAE9B;;OAEG;IACH,SAAS,EAAE,6BAA6B;IAExC;;OAEG;IACH,aAAa,EAAE,iCAAiC;IAEhD;;OAEG;IACH,cAAc,EAAE,kCAAkC;IAElD;;OAEG;IACH,iBAAiB,EAAE,qCAAqC;IAExD;;OAEG;IACH,aAAa,EAAE,iCAAiC;IAEhD;;OAEG;IACH,SAAS,EAAE,6BAA6B;IAExC;;OAEG;IACH,SAAS,EAAE,6BAA6B;CAC/B,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types of auditable item graph data.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuditableItemGraphTypes = {\n\t/**\n\t * Represents auditable item graph vertex.\n\t */\n\tVertex: \"AuditableItemGraphVertex\",\n\n\t/**\n\t * Represents auditable item graph vertex list.\n\t */\n\tVertexList: \"AuditableItemGraphVertexList\",\n\n\t/**\n\t * Represents auditable item graph alias.\n\t */\n\tAlias: \"AuditableItemGraphAlias\",\n\n\t/**\n\t * Represents auditable item graph resource.\n\t */\n\tResource: \"AuditableItemGraphResource\",\n\n\t/**\n\t * Represents auditable item graph edge.\n\t */\n\tEdge: \"AuditableItemGraphEdge\",\n\n\t/**\n\t * Represents auditable item graph changeset.\n\t */\n\tChangeset: \"AuditableItemGraphChangeset\",\n\n\t/**\n\t * Represents auditable item graph changeset list.\n\t */\n\tChangesetList: \"AuditableItemGraphChangesetList\",\n\n\t/**\n\t * Represents patch operation.\n\t */\n\tPatchOperation: \"AuditableItemGraphPatchOperation\",\n\n\t/**\n\t * Represents auditable item graph vertex version list.\n\t */\n\tVertexVersionList: \"AuditableItemGraphVertexVersionList\",\n\n\t/**\n\t * Represents auditable item graph partial vertex.\n\t */\n\tPartialVertex: \"AuditableItemGraphPartialVertex\",\n\n\t/**\n\t * Represents auditable item graph list patch.\n\t */\n\tListPatch: \"AuditableItemGraphListPatch\",\n\n\t/**\n\t * Represents auditable item graph audit mode.\n\t */\n\tAuditMode: \"AuditableItemGraphAuditMode\"\n} as const;\n\n/**\n * The types of auditable item graph data.\n */\nexport type AuditableItemGraphTypes =\n\t(typeof AuditableItemGraphTypes)[keyof typeof AuditableItemGraphTypes];\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphEventBusVertexCreated.js","sources":["../../../../src/models/eventBus/IAuditableItemGraphEventBusVertexCreated.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * Event bus payload for vertex created.\n */\nexport interface IAuditableItemGraphEventBusVertexCreated {\n\t/**\n\t * The id of the vertex created.\n\t */\n\tid: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAuditableItemGraphEventBusVertexUpdated.js","sources":["../../../../src/models/eventBus/IAuditableItemGraphEventBusVertexUpdated.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IPatchOperation } from \"@3sixty/core\";\n\n/**\n * Event bus payload for vertex updated.\n */\nexport interface IAuditableItemGraphEventBusVertexUpdated {\n\t/**\n\t * The id of the vertex updated.\n\t */\n\tid: string;\n\n\t/**\n\t * The patches in the changeset.\n\t */\n\tpatches: IPatchOperation[];\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* How deep to verify the signatures.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const VerifyDepth = {
|
|
8
|
+
/**
|
|
9
|
+
* Do not verify any signatures.
|
|
10
|
+
*/
|
|
11
|
+
None: "none",
|
|
12
|
+
/**
|
|
13
|
+
* Verify only the most recent signature.
|
|
14
|
+
*/
|
|
15
|
+
Current: "current",
|
|
16
|
+
/**
|
|
17
|
+
* Verify all the signatures.
|
|
18
|
+
*/
|
|
19
|
+
All: "all"
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=verifyDepth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifyDepth.js","sources":["../../../src/models/verifyDepth.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;;OAEG;IACH,IAAI,EAAE,MAAM;IAEZ;;OAEG;IACH,OAAO,EAAE,SAAS;IAElB;;OAEG;IACH,GAAG,EAAE,KAAK;CACD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * How deep to verify the signatures.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const VerifyDepth = {\n\t/**\n\t * Do not verify any signatures.\n\t */\n\tNone: \"none\",\n\n\t/**\n\t * Verify only the most recent signature.\n\t */\n\tCurrent: \"current\",\n\n\t/**\n\t * Verify all the signatures.\n\t */\n\tAll: \"all\"\n} as const;\n\n/**\n * How deep to verify the signatures.\n */\nexport type VerifyDepth = (typeof VerifyDepth)[keyof typeof VerifyDepth];\n"]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/aig/AuditableItemGraphAlias",
|
|
4
|
+
"title": "AuditableItemGraphAlias",
|
|
5
|
+
"description": "Interface describing an alias for a vertex.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"@context": {
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "array",
|
|
15
|
+
"prefixItems": [
|
|
16
|
+
{
|
|
17
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"items": {
|
|
21
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdContextDefinitionElement"
|
|
22
|
+
},
|
|
23
|
+
"minItems": 1
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"description": "JSON-LD Context."
|
|
27
|
+
},
|
|
28
|
+
"id": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "The id of the element."
|
|
31
|
+
},
|
|
32
|
+
"type": {
|
|
33
|
+
"const": "AuditableItemGraphAlias",
|
|
34
|
+
"description": "JSON-LD Type."
|
|
35
|
+
},
|
|
36
|
+
"annotationObject": {
|
|
37
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdNodeObject",
|
|
38
|
+
"description": "The JSON-LD annotation object for the alias."
|
|
39
|
+
},
|
|
40
|
+
"aliasFormat": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "The format of the id in the alias."
|
|
43
|
+
},
|
|
44
|
+
"unique": {
|
|
45
|
+
"type": "boolean",
|
|
46
|
+
"description": "Whether the alias should be unique across the graph, meaning that no other vertex can have the same alias. Defaults to false."
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"required": [
|
|
50
|
+
"id",
|
|
51
|
+
"type"
|
|
52
|
+
],
|
|
53
|
+
"allOf": [
|
|
54
|
+
{
|
|
55
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphAuditedElement"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/aig/AuditableItemGraphAuditMode",
|
|
4
|
+
"title": "AuditableItemGraphAuditMode",
|
|
5
|
+
"description": "How the mutations of a vertex are recorded.",
|
|
6
|
+
"anyOf": [
|
|
7
|
+
{
|
|
8
|
+
"const": "audited",
|
|
9
|
+
"description": "Every mutation appends a new version entry and maintains a full audit trail."
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"const": "bypass",
|
|
13
|
+
"description": "Mutations overwrite the stored state in place, with no version chain or audit entries."
|
|
14
|
+
}
|
|
15
|
+
]
|
|
16
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/aig/AuditableItemGraphAuditedElement",
|
|
4
|
+
"title": "AuditableItemGraphAuditedElement",
|
|
5
|
+
"description": "Interface describing the base properties for auditable elements.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"id": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The id of the element."
|
|
11
|
+
},
|
|
12
|
+
"dateCreated": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The date/time of when the element was created."
|
|
15
|
+
},
|
|
16
|
+
"dateModified": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The date/time of when the element was modified."
|
|
19
|
+
},
|
|
20
|
+
"dateDeleted": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "The date/time of when the element was deleted, as we never actually remove items."
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/aig/AuditableItemGraphChangeset",
|
|
4
|
+
"title": "AuditableItemGraphChangeset",
|
|
5
|
+
"description": "Interface describing a set of changes to the vertex.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"@context": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"prefixItems": [
|
|
11
|
+
{
|
|
12
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"const": "https://schema.3sixty.global/common/"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"items": {
|
|
19
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdContextDefinitionElement"
|
|
20
|
+
},
|
|
21
|
+
"minItems": 2,
|
|
22
|
+
"description": "JSON-LD Context."
|
|
23
|
+
},
|
|
24
|
+
"type": {
|
|
25
|
+
"const": "AuditableItemGraphChangeset",
|
|
26
|
+
"description": "JSON-LD Type."
|
|
27
|
+
},
|
|
28
|
+
"id": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "The id of the changeset."
|
|
31
|
+
},
|
|
32
|
+
"dateCreated": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "The date/time of when the changeset was created."
|
|
35
|
+
},
|
|
36
|
+
"userIdentity": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "The user identity that created the changes."
|
|
39
|
+
},
|
|
40
|
+
"patches": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": {
|
|
43
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphPatchOperation"
|
|
44
|
+
},
|
|
45
|
+
"description": "The patches in the changeset."
|
|
46
|
+
},
|
|
47
|
+
"proofId": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "The immutable proof id which contains the signature for this changeset."
|
|
50
|
+
},
|
|
51
|
+
"verification": {
|
|
52
|
+
"$ref": "https://schema.3sixty.global/immutable-proof/ImmutableProofVerification",
|
|
53
|
+
"description": "The verification for the changeset."
|
|
54
|
+
},
|
|
55
|
+
"version": {
|
|
56
|
+
"type": "number",
|
|
57
|
+
"description": "The version number of the vertex after this changeset was applied.\nMaps to https://schema.org/version."
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"required": [
|
|
61
|
+
"type",
|
|
62
|
+
"id",
|
|
63
|
+
"dateCreated",
|
|
64
|
+
"patches"
|
|
65
|
+
]
|
|
66
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/aig/AuditableItemGraphChangesetList",
|
|
4
|
+
"title": "AuditableItemGraphChangesetList",
|
|
5
|
+
"description": "Interface describing an auditable item graph changeset list.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"@context": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"prefixItems": [
|
|
11
|
+
{
|
|
12
|
+
"const": "https://schema.org"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"items": {
|
|
19
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdContextDefinitionElement"
|
|
20
|
+
},
|
|
21
|
+
"minItems": 2,
|
|
22
|
+
"description": "JSON-LD Context."
|
|
23
|
+
},
|
|
24
|
+
"type": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"prefixItems": [
|
|
27
|
+
{
|
|
28
|
+
"const": "ItemList"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"const": "AuditableItemGraphChangesetList"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"items": false,
|
|
35
|
+
"minItems": 2,
|
|
36
|
+
"maxItems": 2,
|
|
37
|
+
"description": "JSON-LD Type."
|
|
38
|
+
},
|
|
39
|
+
"itemListElement": {
|
|
40
|
+
"type": "array",
|
|
41
|
+
"items": {
|
|
42
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphChangeset"
|
|
43
|
+
},
|
|
44
|
+
"description": "The list of changesets."
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"required": [
|
|
48
|
+
"@context",
|
|
49
|
+
"type",
|
|
50
|
+
"itemListElement"
|
|
51
|
+
]
|
|
52
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/aig/AuditableItemGraphEdge",
|
|
4
|
+
"title": "AuditableItemGraphEdge",
|
|
5
|
+
"description": "Interface describing an edge between two vertices in an auditable item graph.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"@context": {
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "array",
|
|
15
|
+
"prefixItems": [
|
|
16
|
+
{
|
|
17
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"items": {
|
|
21
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdContextDefinitionElement"
|
|
22
|
+
},
|
|
23
|
+
"minItems": 1
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"description": "JSON-LD Context."
|
|
27
|
+
},
|
|
28
|
+
"id": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "The id of the element."
|
|
31
|
+
},
|
|
32
|
+
"targetId": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "The target vertex id the edge connects to."
|
|
35
|
+
},
|
|
36
|
+
"type": {
|
|
37
|
+
"const": "AuditableItemGraphEdge",
|
|
38
|
+
"description": "JSON-LD Type."
|
|
39
|
+
},
|
|
40
|
+
"annotationObject": {
|
|
41
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdNodeObject",
|
|
42
|
+
"description": "The JSON-LD annotation object for the edge."
|
|
43
|
+
},
|
|
44
|
+
"edgeRelationships": {
|
|
45
|
+
"type": "array",
|
|
46
|
+
"items": {
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"description": "The relationships between the two vertices."
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": [
|
|
53
|
+
"targetId",
|
|
54
|
+
"type",
|
|
55
|
+
"edgeRelationships"
|
|
56
|
+
],
|
|
57
|
+
"allOf": [
|
|
58
|
+
{
|
|
59
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphAuditedElement"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/aig/AuditableItemGraphListPatch",
|
|
4
|
+
"title": "AuditableItemGraphListPatch",
|
|
5
|
+
"description": "PATCH operations for a sub-list on a vertex.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"add": {
|
|
9
|
+
"type": "array",
|
|
10
|
+
"items": {
|
|
11
|
+
"oneOf": [
|
|
12
|
+
{
|
|
13
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphEdge"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphAlias"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphResource"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"description": "Items to add or update in the active set."
|
|
24
|
+
},
|
|
25
|
+
"remove": {
|
|
26
|
+
"type": "array",
|
|
27
|
+
"items": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"description": "Identifiers of items to remove from the active set (soft-delete)."
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/aig/AuditableItemGraphPartialVertex",
|
|
4
|
+
"title": "AuditableItemGraphPartialVertex",
|
|
5
|
+
"description": "Partial vertex payload for updatePartial.\nSub-lists use explicit `{ add, remove }` patches; bare arrays are not supported.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"id": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The id of the vertex to update."
|
|
11
|
+
},
|
|
12
|
+
"@context": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"prefixItems": [
|
|
15
|
+
{
|
|
16
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"const": "https://schema.3sixty.global/common/"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"items": {
|
|
23
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdContextDefinitionElement"
|
|
24
|
+
},
|
|
25
|
+
"minItems": 2,
|
|
26
|
+
"description": "JSON-LD Context."
|
|
27
|
+
},
|
|
28
|
+
"type": {
|
|
29
|
+
"const": "AuditableItemGraphVertex",
|
|
30
|
+
"description": "JSON-LD Type."
|
|
31
|
+
},
|
|
32
|
+
"aliasPatches": {
|
|
33
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphListPatch",
|
|
34
|
+
"description": "Patch operations for aliases."
|
|
35
|
+
},
|
|
36
|
+
"resourcePatches": {
|
|
37
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphListPatch",
|
|
38
|
+
"description": "Patch operations for resources."
|
|
39
|
+
},
|
|
40
|
+
"edgePatches": {
|
|
41
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphListPatch",
|
|
42
|
+
"description": "Patch operations for edges."
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"required": [
|
|
46
|
+
"id",
|
|
47
|
+
"@context"
|
|
48
|
+
],
|
|
49
|
+
"allOf": [
|
|
50
|
+
{
|
|
51
|
+
"description": "Interface describing an auditable item graph vertex.",
|
|
52
|
+
"type": "object",
|
|
53
|
+
"properties": {
|
|
54
|
+
"dateCreated": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "The date/time of when the element was created."
|
|
57
|
+
},
|
|
58
|
+
"dateModified": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "The date/time of when the element was modified."
|
|
61
|
+
},
|
|
62
|
+
"dateDeleted": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "The date/time of when the element was deleted, as we never actually remove items."
|
|
65
|
+
},
|
|
66
|
+
"@context": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"prefixItems": [
|
|
69
|
+
{
|
|
70
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"const": "https://schema.3sixty.global/common/"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"items": {
|
|
77
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdContextDefinitionElement"
|
|
78
|
+
},
|
|
79
|
+
"minItems": 2,
|
|
80
|
+
"description": "JSON-LD Context.",
|
|
81
|
+
"$comment": "Inherited from AuditableItemGraphVertex"
|
|
82
|
+
},
|
|
83
|
+
"organizationIdentity": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "The identity of the organization which controls the vertex.",
|
|
86
|
+
"$comment": "Inherited from AuditableItemGraphVertex"
|
|
87
|
+
},
|
|
88
|
+
"auditMode": {
|
|
89
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphAuditMode",
|
|
90
|
+
"description": "How the mutations of the vertex are recorded, when absent the vertex behaves as audited.\nOnce a vertex is set to bypass it can not be returned to audited.",
|
|
91
|
+
"$comment": "Inherited from AuditableItemGraphVertex"
|
|
92
|
+
},
|
|
93
|
+
"annotationObject": {
|
|
94
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdNodeObject",
|
|
95
|
+
"description": "The JSON-LD annotation object for the vertex.",
|
|
96
|
+
"$comment": "Inherited from AuditableItemGraphVertex"
|
|
97
|
+
},
|
|
98
|
+
"verified": {
|
|
99
|
+
"type": "boolean",
|
|
100
|
+
"description": "Is the vertex verified, will only be populated when verification is requested.\nAlways undefined when the vertex is in bypass mode.",
|
|
101
|
+
"$comment": "Inherited from AuditableItemGraphVertex"
|
|
102
|
+
},
|
|
103
|
+
"version": {
|
|
104
|
+
"type": "number",
|
|
105
|
+
"description": "The version of the vertex, populated only when getting a specific version.\nAlways undefined when the vertex is in bypass mode.\nMaps to https://schema.org/version.",
|
|
106
|
+
"$comment": "Inherited from AuditableItemGraphVertex"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": [
|
|
110
|
+
"@context"
|
|
111
|
+
],
|
|
112
|
+
"$comment": "Inlined utility base type AuditableItemGraphVertex so utility transformations can operate on concrete properties instead of a $ref."
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/aig/AuditableItemGraphPatchOperation",
|
|
4
|
+
"title": "AuditableItemGraphPatchOperation",
|
|
5
|
+
"description": "The patch operation for JSON diffs.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"@context": {
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "array",
|
|
15
|
+
"prefixItems": [
|
|
16
|
+
{
|
|
17
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"items": {
|
|
21
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdContextDefinitionElement"
|
|
22
|
+
},
|
|
23
|
+
"minItems": 1
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"description": "JSON-LD Context."
|
|
27
|
+
},
|
|
28
|
+
"type": {
|
|
29
|
+
"const": "AuditableItemGraphPatchOperation",
|
|
30
|
+
"description": "JSON-LD Type."
|
|
31
|
+
},
|
|
32
|
+
"patchOperation": {
|
|
33
|
+
"anyOf": [
|
|
34
|
+
{
|
|
35
|
+
"const": "add"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"const": "remove"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"const": "replace"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"const": "move"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"const": "copy"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"const": "test"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"description": "The operation that was performed on the item."
|
|
54
|
+
},
|
|
55
|
+
"patchPath": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "The path to the object that was changed."
|
|
58
|
+
},
|
|
59
|
+
"patchFrom": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "The path the value was copied or moved from."
|
|
62
|
+
},
|
|
63
|
+
"patchValue": {
|
|
64
|
+
"description": "The value to add."
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"required": [
|
|
68
|
+
"type",
|
|
69
|
+
"patchOperation",
|
|
70
|
+
"patchPath"
|
|
71
|
+
]
|
|
72
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/aig/AuditableItemGraphResource",
|
|
4
|
+
"title": "AuditableItemGraphResource",
|
|
5
|
+
"description": "Interface describing an auditable item graph vertex resource.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"@context": {
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "array",
|
|
15
|
+
"prefixItems": [
|
|
16
|
+
{
|
|
17
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"items": {
|
|
21
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdContextDefinitionElement"
|
|
22
|
+
},
|
|
23
|
+
"minItems": 1
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"description": "JSON-LD Context."
|
|
27
|
+
},
|
|
28
|
+
"type": {
|
|
29
|
+
"const": "AuditableItemGraphResource",
|
|
30
|
+
"description": "JSON-LD Type."
|
|
31
|
+
},
|
|
32
|
+
"resourceObject": {
|
|
33
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdNodeObject",
|
|
34
|
+
"description": "The JSON-LD object for the resource."
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"required": [
|
|
38
|
+
"type"
|
|
39
|
+
],
|
|
40
|
+
"allOf": [
|
|
41
|
+
{
|
|
42
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphAuditedElement"
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
}
|