@twin.org/auditable-item-graph-models 0.0.3-next.9 → 0.9.0-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.
- package/README.md +3 -1
- package/dist/es/dataTypes/auditableItemGraphDataTypes.js +47 -43
- package/dist/es/dataTypes/auditableItemGraphDataTypes.js.map +1 -1
- package/dist/es/index.js +11 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphAlias.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphAuditedElement.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphChangeset.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphChangesetList.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphComponent.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphEdge.js.map +1 -1
- 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.map +1 -1
- package/dist/es/models/IAuditableItemGraphResource.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphVertex.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphVertexList.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphVertexVersionList.js +2 -0
- package/dist/es/models/IAuditableItemGraphVertexVersionList.js.map +1 -0
- package/dist/es/models/api/IAuditableItemGraphCreateRequest.js.map +1 -1
- package/dist/es/models/api/IAuditableItemGraphListRequest.js.map +1 -1
- 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.map +1 -1
- 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/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/auditableItemGraphTypes.js +13 -1
- package/dist/es/models/auditableItemGraphTypes.js.map +1 -1
- package/dist/es/schemas/AuditableItemGraphAlias.json +18 -25
- package/dist/es/schemas/AuditableItemGraphAuditedElement.json +25 -0
- package/dist/es/schemas/AuditableItemGraphChangeset.json +14 -13
- package/dist/es/schemas/AuditableItemGraphEdge.json +15 -26
- package/dist/es/schemas/AuditableItemGraphListPatch.json +33 -0
- package/dist/es/schemas/AuditableItemGraphPartialVertex.json +110 -0
- package/dist/es/schemas/AuditableItemGraphPatchOperation.json +27 -19
- package/dist/es/schemas/AuditableItemGraphResource.json +9 -24
- package/dist/es/schemas/AuditableItemGraphVertex.json +39 -29
- package/dist/es/schemas/AuditableItemGraphVertexList.json +17 -20
- package/dist/types/index.d.ts +11 -0
- package/dist/types/models/IAuditableItemGraphAlias.d.ts +8 -3
- package/dist/types/models/IAuditableItemGraphAuditedElement.d.ts +3 -3
- package/dist/types/models/IAuditableItemGraphChangeset.d.ts +11 -5
- package/dist/types/models/IAuditableItemGraphChangesetList.d.ts +1 -1
- package/dist/types/models/IAuditableItemGraphComponent.d.ts +43 -47
- package/dist/types/models/IAuditableItemGraphEdge.d.ts +4 -4
- 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 +4 -4
- package/dist/types/models/IAuditableItemGraphResource.d.ts +2 -2
- package/dist/types/models/IAuditableItemGraphVertex.d.ts +12 -6
- package/dist/types/models/IAuditableItemGraphVertexList.d.ts +1 -1
- package/dist/types/models/IAuditableItemGraphVertexVersionList.d.ts +29 -0
- package/dist/types/models/api/IAuditableItemGraphCreateRequest.d.ts +2 -31
- package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +1 -1
- 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 +4 -34
- 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/auditableItemGraphMetricIds.d.ts +69 -0
- package/dist/types/models/auditableItemGraphMetrics.d.ts +5 -0
- package/dist/types/models/auditableItemGraphTypes.d.ts +12 -0
- package/docs/changelog.md +270 -81
- package/docs/examples.md +22 -1
- package/docs/reference/classes/AuditableItemGraphDataTypes.md +1 -1
- package/docs/reference/index.md +12 -0
- package/docs/reference/interfaces/IAuditableItemGraphAlias.md +22 -19
- package/docs/reference/interfaces/IAuditableItemGraphAuditedElement.md +8 -11
- package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +21 -17
- package/docs/reference/interfaces/IAuditableItemGraphChangesetGetRequest.md +6 -6
- package/docs/reference/interfaces/IAuditableItemGraphChangesetGetResponse.md +3 -3
- package/docs/reference/interfaces/IAuditableItemGraphChangesetList.md +3 -4
- package/docs/reference/interfaces/IAuditableItemGraphChangesetListRequest.md +8 -8
- package/docs/reference/interfaces/IAuditableItemGraphChangesetListResponse.md +4 -4
- package/docs/reference/interfaces/IAuditableItemGraphComponent.md +109 -59
- package/docs/reference/interfaces/IAuditableItemGraphCreateRequest.md +2 -26
- package/docs/reference/interfaces/IAuditableItemGraphEdge.md +15 -21
- package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexCreated.md +1 -1
- package/docs/reference/interfaces/IAuditableItemGraphEventBusVertexUpdated.md +2 -2
- package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +7 -7
- package/docs/reference/interfaces/IAuditableItemGraphGetResponse.md +3 -3
- package/docs/reference/interfaces/IAuditableItemGraphListPatch.md +25 -0
- package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +15 -15
- package/docs/reference/interfaces/IAuditableItemGraphListResponse.md +4 -4
- package/docs/reference/interfaces/IAuditableItemGraphPartialVertex.md +149 -0
- package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +9 -13
- package/docs/reference/interfaces/IAuditableItemGraphRemoveProofRequest.md +17 -0
- package/docs/reference/interfaces/IAuditableItemGraphResource.md +13 -17
- package/docs/reference/interfaces/IAuditableItemGraphUpdatePartialRequest.md +26 -0
- package/docs/reference/interfaces/IAuditableItemGraphUpdateRequest.md +5 -29
- 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 +30 -30
- package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +3 -4
- package/docs/reference/interfaces/IAuditableItemGraphVertexVersionList.md +35 -0
- package/docs/reference/type-aliases/AuditableItemGraphMetricIds.md +5 -0
- package/docs/reference/variables/AuditableItemGraphContexts.md +6 -6
- package/docs/reference/variables/AuditableItemGraphMetricIds.md +97 -0
- package/docs/reference/variables/AuditableItemGraphMetrics.md +5 -0
- package/docs/reference/variables/AuditableItemGraphTopics.md +2 -2
- package/docs/reference/variables/AuditableItemGraphTypes.md +26 -8
- package/docs/reference/variables/VerifyDepth.md +3 -3
- package/package.json +5 -4
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
import { MetricType } from "@twin.org/telemetry-models";
|
|
4
|
+
import { AuditableItemGraphMetricIds } from "./auditableItemGraphMetricIds.js";
|
|
5
|
+
/**
|
|
6
|
+
* Metrics registered by the auditable item graph service.
|
|
7
|
+
*/
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
9
|
+
export const AuditableItemGraphMetrics = [
|
|
10
|
+
{
|
|
11
|
+
id: AuditableItemGraphMetricIds.VerticesCreated,
|
|
12
|
+
label: "Vertices created",
|
|
13
|
+
type: MetricType.Counter
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
id: AuditableItemGraphMetricIds.VerticesUpdated,
|
|
17
|
+
label: "Vertices updated",
|
|
18
|
+
type: MetricType.Counter
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: AuditableItemGraphMetricIds.ChangesetsCreated,
|
|
22
|
+
label: "Changesets created",
|
|
23
|
+
type: MetricType.Counter
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: AuditableItemGraphMetricIds.AliasesAdded,
|
|
27
|
+
label: "Aliases added",
|
|
28
|
+
type: MetricType.Counter
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: AuditableItemGraphMetricIds.AliasesModified,
|
|
32
|
+
label: "Aliases modified",
|
|
33
|
+
type: MetricType.Counter
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: AuditableItemGraphMetricIds.AliasesDeleted,
|
|
37
|
+
label: "Aliases deleted",
|
|
38
|
+
type: MetricType.Counter
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: AuditableItemGraphMetricIds.ResourcesAdded,
|
|
42
|
+
label: "Resources added",
|
|
43
|
+
type: MetricType.Counter
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: AuditableItemGraphMetricIds.ResourcesModified,
|
|
47
|
+
label: "Resources modified",
|
|
48
|
+
type: MetricType.Counter
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: AuditableItemGraphMetricIds.ResourcesDeleted,
|
|
52
|
+
label: "Resources deleted",
|
|
53
|
+
type: MetricType.Counter
|
|
54
|
+
},
|
|
55
|
+
{ id: AuditableItemGraphMetricIds.EdgesAdded, label: "Edges added", type: MetricType.Counter },
|
|
56
|
+
{
|
|
57
|
+
id: AuditableItemGraphMetricIds.EdgesModified,
|
|
58
|
+
label: "Edges modified",
|
|
59
|
+
type: MetricType.Counter
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: AuditableItemGraphMetricIds.EdgesDeleted,
|
|
63
|
+
label: "Edges deleted",
|
|
64
|
+
type: MetricType.Counter
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
id: AuditableItemGraphMetricIds.QueriesExecuted,
|
|
68
|
+
label: "Queries executed",
|
|
69
|
+
type: MetricType.Counter
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: AuditableItemGraphMetricIds.VerificationsSucceeded,
|
|
73
|
+
label: "Verifications succeeded",
|
|
74
|
+
type: MetricType.Counter
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: AuditableItemGraphMetricIds.VerificationsFailed,
|
|
78
|
+
label: "Verifications failed",
|
|
79
|
+
type: MetricType.Counter
|
|
80
|
+
}
|
|
81
|
+
];
|
|
82
|
+
//# sourceMappingURL=auditableItemGraphMetrics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auditableItemGraphMetrics.js","sourceRoot":"","sources":["../../../src/models/auditableItemGraphMetrics.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAyB,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,yBAAyB,GAAuB;IAC5D;QACC,EAAE,EAAE,2BAA2B,CAAC,eAAe;QAC/C,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,eAAe;QAC/C,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,iBAAiB;QACjD,KAAK,EAAE,oBAAoB;QAC3B,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,YAAY;QAC5C,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,eAAe;QAC/C,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,cAAc;QAC9C,KAAK,EAAE,iBAAiB;QACxB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,cAAc;QAC9C,KAAK,EAAE,iBAAiB;QACxB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,iBAAiB;QACjD,KAAK,EAAE,oBAAoB;QAC3B,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,gBAAgB;QAChD,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD,EAAE,EAAE,EAAE,2BAA2B,CAAC,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,UAAU,CAAC,OAAO,EAAE;IAC9F;QACC,EAAE,EAAE,2BAA2B,CAAC,aAAa;QAC7C,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,YAAY;QAC5C,KAAK,EAAE,eAAe;QACtB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,eAAe;QAC/C,KAAK,EAAE,kBAAkB;QACzB,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,sBAAsB;QACtD,KAAK,EAAE,yBAAyB;QAChC,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;IACD;QACC,EAAE,EAAE,2BAA2B,CAAC,mBAAmB;QACnD,KAAK,EAAE,sBAAsB;QAC7B,IAAI,EAAE,UAAU,CAAC,OAAO;KACxB;CACD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { type ITelemetryMetric, MetricType } from \"@twin.org/telemetry-models\";\nimport { AuditableItemGraphMetricIds } from \"./auditableItemGraphMetricIds.js\";\n\n/**\n * Metrics registered by the auditable item graph service.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const AuditableItemGraphMetrics: ITelemetryMetric[] = [\n\t{\n\t\tid: AuditableItemGraphMetricIds.VerticesCreated,\n\t\tlabel: \"Vertices created\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.VerticesUpdated,\n\t\tlabel: \"Vertices updated\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.ChangesetsCreated,\n\t\tlabel: \"Changesets created\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.AliasesAdded,\n\t\tlabel: \"Aliases added\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.AliasesModified,\n\t\tlabel: \"Aliases modified\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.AliasesDeleted,\n\t\tlabel: \"Aliases deleted\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.ResourcesAdded,\n\t\tlabel: \"Resources added\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.ResourcesModified,\n\t\tlabel: \"Resources modified\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.ResourcesDeleted,\n\t\tlabel: \"Resources deleted\",\n\t\ttype: MetricType.Counter\n\t},\n\t{ id: AuditableItemGraphMetricIds.EdgesAdded, label: \"Edges added\", type: MetricType.Counter },\n\t{\n\t\tid: AuditableItemGraphMetricIds.EdgesModified,\n\t\tlabel: \"Edges modified\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.EdgesDeleted,\n\t\tlabel: \"Edges deleted\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.QueriesExecuted,\n\t\tlabel: \"Queries executed\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.VerificationsSucceeded,\n\t\tlabel: \"Verifications succeeded\",\n\t\ttype: MetricType.Counter\n\t},\n\t{\n\t\tid: AuditableItemGraphMetricIds.VerificationsFailed,\n\t\tlabel: \"Verifications failed\",\n\t\ttype: MetricType.Counter\n\t}\n];\n"]}
|
|
@@ -36,6 +36,18 @@ export const AuditableItemGraphTypes = {
|
|
|
36
36
|
/**
|
|
37
37
|
* Represents patch operation.
|
|
38
38
|
*/
|
|
39
|
-
PatchOperation: "AuditableItemGraphPatchOperation"
|
|
39
|
+
PatchOperation: "AuditableItemGraphPatchOperation",
|
|
40
|
+
/**
|
|
41
|
+
* Represents auditable item graph vertex version list.
|
|
42
|
+
*/
|
|
43
|
+
VertexVersionList: "AuditableItemGraphVertexVersionList",
|
|
44
|
+
/**
|
|
45
|
+
* Represents auditable item graph partial vertex.
|
|
46
|
+
*/
|
|
47
|
+
PartialVertex: "AuditableItemGraphPartialVertex",
|
|
48
|
+
/**
|
|
49
|
+
* Represents auditable item graph list patch.
|
|
50
|
+
*/
|
|
51
|
+
ListPatch: "AuditableItemGraphListPatch"
|
|
40
52
|
};
|
|
41
53
|
//# sourceMappingURL=auditableItemGraphTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auditableItemGraphTypes.js","sourceRoot":"","sources":["../../../src/models/auditableItemGraphTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC;;OAEG;IACH,MAAM,EAAE,0BAA0B;IAElC;;OAEG;IACH,UAAU,EAAE,8BAA8B;IAE1C;;OAEG;IACH,KAAK,EAAE,yBAAyB;IAEhC;;OAEG;IACH,QAAQ,EAAE,4BAA4B;IAEtC;;OAEG;IACH,IAAI,EAAE,wBAAwB;IAE9B;;OAEG;IACH,SAAS,EAAE,6BAA6B;IAExC;;OAEG;IACH,aAAa,EAAE,iCAAiC;IAEhD;;OAEG;IACH,cAAc,EAAE,kCAAkC;
|
|
1
|
+
{"version":3,"file":"auditableItemGraphTypes.js","sourceRoot":"","sources":["../../../src/models/auditableItemGraphTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC;;OAEG;IACH,MAAM,EAAE,0BAA0B;IAElC;;OAEG;IACH,UAAU,EAAE,8BAA8B;IAE1C;;OAEG;IACH,KAAK,EAAE,yBAAyB;IAEhC;;OAEG;IACH,QAAQ,EAAE,4BAA4B;IAEtC;;OAEG;IACH,IAAI,EAAE,wBAAwB;IAE9B;;OAEG;IACH,SAAS,EAAE,6BAA6B;IAExC;;OAEG;IACH,aAAa,EAAE,iCAAiC;IAEhD;;OAEG;IACH,cAAc,EAAE,kCAAkC;IAElD;;OAEG;IACH,iBAAiB,EAAE,qCAAqC;IAExD;;OAEG;IACH,aAAa,EAAE,iCAAiC;IAEhD;;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} as const;\n\n/**\n * The types of auditable item graph data.\n */\nexport type AuditableItemGraphTypes =\n\t(typeof AuditableItemGraphTypes)[keyof typeof AuditableItemGraphTypes];\n"]}
|
|
@@ -1,65 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/aig/AuditableItemGraphAlias",
|
|
4
|
+
"title": "AuditableItemGraphAlias",
|
|
4
5
|
"description": "Interface describing an alias for a vertex.",
|
|
5
6
|
"type": "object",
|
|
6
7
|
"properties": {
|
|
7
|
-
"id": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "The id of the element."
|
|
10
|
-
},
|
|
11
|
-
"dateCreated": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"description": "The date/time of when the element was created. json-ld namespace:schema"
|
|
14
|
-
},
|
|
15
|
-
"dateModified": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"description": "The date/time of when the element was modified. json-ld namespace:schema"
|
|
18
|
-
},
|
|
19
|
-
"dateDeleted": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "The date/time of when the element was deleted, as we never actually remove items. json-ld namespace:schema"
|
|
22
|
-
},
|
|
23
8
|
"@context": {
|
|
24
9
|
"anyOf": [
|
|
25
10
|
{
|
|
26
|
-
"type": "string",
|
|
27
11
|
"const": "https://schema.twindev.org/aig/"
|
|
28
12
|
},
|
|
29
13
|
{
|
|
30
14
|
"type": "array",
|
|
31
|
-
"minItems": 1,
|
|
32
15
|
"prefixItems": [
|
|
33
16
|
{
|
|
34
|
-
"type": "string",
|
|
35
17
|
"const": "https://schema.twindev.org/aig/"
|
|
36
18
|
}
|
|
37
19
|
],
|
|
38
20
|
"items": {
|
|
39
21
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
40
|
-
}
|
|
22
|
+
},
|
|
23
|
+
"minItems": 1
|
|
41
24
|
}
|
|
42
25
|
],
|
|
43
26
|
"description": "JSON-LD Context."
|
|
44
27
|
},
|
|
45
|
-
"
|
|
28
|
+
"id": {
|
|
46
29
|
"type": "string",
|
|
30
|
+
"description": "The id of the element."
|
|
31
|
+
},
|
|
32
|
+
"type": {
|
|
47
33
|
"const": "AuditableItemGraphAlias",
|
|
48
34
|
"description": "JSON-LD Type."
|
|
49
35
|
},
|
|
50
36
|
"annotationObject": {
|
|
51
37
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
|
|
52
|
-
"description": "The JSON-LD annotation object for the alias.
|
|
38
|
+
"description": "The JSON-LD annotation object for the alias."
|
|
53
39
|
},
|
|
54
40
|
"aliasFormat": {
|
|
55
41
|
"type": "string",
|
|
56
|
-
"description": "The format of the id in the alias.
|
|
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."
|
|
57
47
|
}
|
|
58
48
|
},
|
|
59
49
|
"required": [
|
|
60
|
-
"@context",
|
|
61
50
|
"id",
|
|
62
51
|
"type"
|
|
63
52
|
],
|
|
64
|
-
"
|
|
53
|
+
"allOf": [
|
|
54
|
+
{
|
|
55
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphAuditedElement"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
65
58
|
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/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
|
+
}
|
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/aig/AuditableItemGraphChangeset",
|
|
4
|
+
"title": "AuditableItemGraphChangeset",
|
|
4
5
|
"description": "Interface describing a set of changes to the vertex.",
|
|
5
6
|
"type": "object",
|
|
6
7
|
"properties": {
|
|
7
8
|
"@context": {
|
|
8
9
|
"type": "array",
|
|
9
|
-
"minItems": 2,
|
|
10
|
-
"description": "JSON-LD Context.",
|
|
11
10
|
"prefixItems": [
|
|
12
11
|
{
|
|
13
|
-
"type": "string",
|
|
14
12
|
"const": "https://schema.twindev.org/aig/"
|
|
15
13
|
},
|
|
16
14
|
{
|
|
17
|
-
"type": "string",
|
|
18
15
|
"const": "https://schema.twindev.org/common/"
|
|
19
16
|
}
|
|
20
17
|
],
|
|
21
18
|
"items": {
|
|
22
19
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
23
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"minItems": 2,
|
|
22
|
+
"description": "JSON-LD Context."
|
|
24
23
|
},
|
|
25
24
|
"type": {
|
|
26
|
-
"type": "string",
|
|
27
25
|
"const": "AuditableItemGraphChangeset",
|
|
28
26
|
"description": "JSON-LD Type."
|
|
29
27
|
},
|
|
@@ -33,26 +31,30 @@
|
|
|
33
31
|
},
|
|
34
32
|
"dateCreated": {
|
|
35
33
|
"type": "string",
|
|
36
|
-
"description": "The date/time of when the changeset was created.
|
|
34
|
+
"description": "The date/time of when the changeset was created."
|
|
37
35
|
},
|
|
38
36
|
"userIdentity": {
|
|
39
37
|
"type": "string",
|
|
40
|
-
"description": "The user identity that created the changes.
|
|
38
|
+
"description": "The user identity that created the changes."
|
|
41
39
|
},
|
|
42
40
|
"patches": {
|
|
43
41
|
"type": "array",
|
|
44
42
|
"items": {
|
|
45
43
|
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphPatchOperation"
|
|
46
44
|
},
|
|
47
|
-
"description": "The patches in the changeset.
|
|
45
|
+
"description": "The patches in the changeset."
|
|
48
46
|
},
|
|
49
47
|
"proofId": {
|
|
50
48
|
"type": "string",
|
|
51
|
-
"description": "The immutable proof id which contains the signature for this changeset.
|
|
49
|
+
"description": "The immutable proof id which contains the signature for this changeset."
|
|
52
50
|
},
|
|
53
51
|
"verification": {
|
|
54
52
|
"$ref": "https://schema.twindev.org/immutable-proof/ImmutableProofVerification",
|
|
55
|
-
"description": "The verification for the changeset.
|
|
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."
|
|
56
58
|
}
|
|
57
59
|
},
|
|
58
60
|
"required": [
|
|
@@ -60,6 +62,5 @@
|
|
|
60
62
|
"id",
|
|
61
63
|
"dateCreated",
|
|
62
64
|
"patches"
|
|
63
|
-
]
|
|
64
|
-
"additionalProperties": false
|
|
65
|
+
]
|
|
65
66
|
}
|
|
@@ -1,73 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/aig/AuditableItemGraphEdge",
|
|
4
|
+
"title": "AuditableItemGraphEdge",
|
|
4
5
|
"description": "Interface describing an edge between two vertices in an auditable item graph.",
|
|
5
6
|
"type": "object",
|
|
6
7
|
"properties": {
|
|
7
|
-
"id": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "The id of the element."
|
|
10
|
-
},
|
|
11
|
-
"dateCreated": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"description": "The date/time of when the element was created. json-ld namespace:schema"
|
|
14
|
-
},
|
|
15
|
-
"dateModified": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"description": "The date/time of when the element was modified. json-ld namespace:schema"
|
|
18
|
-
},
|
|
19
|
-
"dateDeleted": {
|
|
20
|
-
"type": "string",
|
|
21
|
-
"description": "The date/time of when the element was deleted, as we never actually remove items. json-ld namespace:schema"
|
|
22
|
-
},
|
|
23
8
|
"@context": {
|
|
24
9
|
"anyOf": [
|
|
25
10
|
{
|
|
26
|
-
"type": "string",
|
|
27
11
|
"const": "https://schema.twindev.org/aig/"
|
|
28
12
|
},
|
|
29
13
|
{
|
|
30
14
|
"type": "array",
|
|
31
|
-
"minItems": 1,
|
|
32
15
|
"prefixItems": [
|
|
33
16
|
{
|
|
34
|
-
"type": "string",
|
|
35
17
|
"const": "https://schema.twindev.org/aig/"
|
|
36
18
|
}
|
|
37
19
|
],
|
|
38
20
|
"items": {
|
|
39
21
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
40
|
-
}
|
|
22
|
+
},
|
|
23
|
+
"minItems": 1
|
|
41
24
|
}
|
|
42
25
|
],
|
|
43
26
|
"description": "JSON-LD Context."
|
|
44
27
|
},
|
|
28
|
+
"id": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "The id of the element."
|
|
31
|
+
},
|
|
45
32
|
"targetId": {
|
|
46
33
|
"type": "string",
|
|
47
|
-
"description": "The target vertex id the edge connects to.
|
|
34
|
+
"description": "The target vertex id the edge connects to."
|
|
48
35
|
},
|
|
49
36
|
"type": {
|
|
50
|
-
"type": "string",
|
|
51
37
|
"const": "AuditableItemGraphEdge",
|
|
52
38
|
"description": "JSON-LD Type."
|
|
53
39
|
},
|
|
54
40
|
"annotationObject": {
|
|
55
41
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
|
|
56
|
-
"description": "The JSON-LD annotation object for the edge.
|
|
42
|
+
"description": "The JSON-LD annotation object for the edge."
|
|
57
43
|
},
|
|
58
44
|
"edgeRelationships": {
|
|
59
45
|
"type": "array",
|
|
60
46
|
"items": {
|
|
61
47
|
"type": "string"
|
|
62
48
|
},
|
|
63
|
-
"description": "The relationships between the two vertices.
|
|
49
|
+
"description": "The relationships between the two vertices."
|
|
64
50
|
}
|
|
65
51
|
},
|
|
66
52
|
"required": [
|
|
67
|
-
"@context",
|
|
68
53
|
"targetId",
|
|
69
54
|
"type",
|
|
70
55
|
"edgeRelationships"
|
|
71
56
|
],
|
|
72
|
-
"
|
|
57
|
+
"allOf": [
|
|
58
|
+
{
|
|
59
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphAuditedElement"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
73
62
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/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.twindev.org/aig/AuditableItemGraphEdge"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphAlias"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"$ref": "https://schema.twindev.org/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,110 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.twindev.org/aig/AuditableItemGraphPartialVertex",
|
|
4
|
+
"title": "AuditableItemGraphPartialVertex",
|
|
5
|
+
"description": "Partial vertex payload for updatePartial (PATCH — requires id).\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.twindev.org/aig/"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"const": "https://schema.twindev.org/common/"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"items": {
|
|
23
|
+
"$ref": "https://schema.twindev.org/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.twindev.org/aig/AuditableItemGraphListPatch",
|
|
34
|
+
"description": "Patch operations for aliases."
|
|
35
|
+
},
|
|
36
|
+
"resourcePatches": {
|
|
37
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphListPatch",
|
|
38
|
+
"description": "Patch operations for resources."
|
|
39
|
+
},
|
|
40
|
+
"edgePatches": {
|
|
41
|
+
"$ref": "https://schema.twindev.org/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.twindev.org/aig/"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"const": "https://schema.twindev.org/common/"
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
"items": {
|
|
77
|
+
"$ref": "https://schema.twindev.org/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
|
+
"annotationObject": {
|
|
89
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject",
|
|
90
|
+
"description": "The JSON-LD annotation object for the vertex.",
|
|
91
|
+
"$comment": "Inherited from AuditableItemGraphVertex"
|
|
92
|
+
},
|
|
93
|
+
"verified": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"description": "Is the vertex verified, will only be populated when verification is requested.",
|
|
96
|
+
"$comment": "Inherited from AuditableItemGraphVertex"
|
|
97
|
+
},
|
|
98
|
+
"version": {
|
|
99
|
+
"type": "number",
|
|
100
|
+
"description": "The version of the vertex, populated only when getting a specific version.\nMaps to https://schema.org/version.",
|
|
101
|
+
"$comment": "Inherited from AuditableItemGraphVertex"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": [
|
|
105
|
+
"@context"
|
|
106
|
+
],
|
|
107
|
+
"$comment": "Inlined utility base type AuditableItemGraphVertex so utility transformations can operate on concrete properties instead of a $ref."
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
@@ -1,64 +1,72 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://schema.twindev.org/aig/AuditableItemGraphPatchOperation",
|
|
4
|
+
"title": "AuditableItemGraphPatchOperation",
|
|
4
5
|
"description": "The patch operation for JSON diffs.",
|
|
5
6
|
"type": "object",
|
|
6
7
|
"properties": {
|
|
7
8
|
"@context": {
|
|
8
9
|
"anyOf": [
|
|
9
10
|
{
|
|
10
|
-
"type": "string",
|
|
11
11
|
"const": "https://schema.twindev.org/aig/"
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
"type": "array",
|
|
15
|
-
"minItems": 1,
|
|
16
15
|
"prefixItems": [
|
|
17
16
|
{
|
|
18
|
-
"type": "string",
|
|
19
17
|
"const": "https://schema.twindev.org/aig/"
|
|
20
18
|
}
|
|
21
19
|
],
|
|
22
20
|
"items": {
|
|
23
21
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
24
|
-
}
|
|
22
|
+
},
|
|
23
|
+
"minItems": 1
|
|
25
24
|
}
|
|
26
25
|
],
|
|
27
26
|
"description": "JSON-LD Context."
|
|
28
27
|
},
|
|
29
28
|
"type": {
|
|
30
|
-
"type": "string",
|
|
31
29
|
"const": "AuditableItemGraphPatchOperation",
|
|
32
30
|
"description": "JSON-LD Type."
|
|
33
31
|
},
|
|
34
32
|
"patchOperation": {
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
+
}
|
|
43
52
|
],
|
|
44
|
-
"description": "The operation that was performed on the item.
|
|
53
|
+
"description": "The operation that was performed on the item."
|
|
45
54
|
},
|
|
46
55
|
"patchPath": {
|
|
47
56
|
"type": "string",
|
|
48
|
-
"description": "The path to the object that was changed.
|
|
57
|
+
"description": "The path to the object that was changed."
|
|
49
58
|
},
|
|
50
59
|
"patchFrom": {
|
|
51
60
|
"type": "string",
|
|
52
|
-
"description": "The path the value was copied or moved from.
|
|
61
|
+
"description": "The path the value was copied or moved from."
|
|
53
62
|
},
|
|
54
63
|
"patchValue": {
|
|
55
|
-
"description": "The value to add.
|
|
64
|
+
"description": "The value to add."
|
|
56
65
|
}
|
|
57
66
|
},
|
|
58
67
|
"required": [
|
|
59
68
|
"type",
|
|
60
69
|
"patchOperation",
|
|
61
70
|
"patchPath"
|
|
62
|
-
]
|
|
63
|
-
"additionalProperties": false
|
|
71
|
+
]
|
|
64
72
|
}
|