@twin.org/auditable-item-graph-service 0.0.3-next.8 → 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/auditableItemGraphRoutes.js +309 -8
- package/dist/es/auditableItemGraphRoutes.js.map +1 -1
- package/dist/es/auditableItemGraphService.js +576 -95
- package/dist/es/auditableItemGraphService.js.map +1 -1
- package/dist/es/entities/auditableItemGraphAlias.js +8 -0
- package/dist/es/entities/auditableItemGraphAlias.js.map +1 -1
- package/dist/es/entities/auditableItemGraphChangeset.js +8 -0
- package/dist/es/entities/auditableItemGraphChangeset.js.map +1 -1
- package/dist/es/entities/auditableItemGraphVertex.js +9 -1
- package/dist/es/entities/auditableItemGraphVertex.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphServiceConfig.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphServiceConstructorOptions.js.map +1 -1
- package/dist/es/models/IAuditableItemGraphServiceContext.js +2 -0
- package/dist/es/models/IAuditableItemGraphServiceContext.js.map +1 -1
- package/dist/es/restEntryPoints.js +3 -0
- package/dist/es/restEntryPoints.js.map +1 -1
- package/dist/types/auditableItemGraphRoutes.d.ts +34 -2
- package/dist/types/auditableItemGraphService.d.ts +50 -71
- package/dist/types/entities/auditableItemGraphAlias.d.ts +4 -0
- package/dist/types/entities/auditableItemGraphChangeset.d.ts +4 -0
- package/dist/types/entities/auditableItemGraphVertex.d.ts +5 -1
- package/dist/types/models/IAuditableItemGraphServiceConfig.d.ts +4 -0
- package/dist/types/models/IAuditableItemGraphServiceConstructorOptions.d.ts +4 -0
- package/dist/types/models/IAuditableItemGraphServiceContext.d.ts +6 -3
- package/dist/types/restEntryPoints.d.ts +3 -0
- package/docs/changelog.md +437 -84
- package/docs/examples.md +241 -1
- package/docs/open-api/spec.json +845 -268
- package/docs/reference/classes/AuditableItemGraphAlias.md +18 -10
- package/docs/reference/classes/AuditableItemGraphChangeset.md +16 -8
- package/docs/reference/classes/AuditableItemGraphEdge.md +10 -10
- package/docs/reference/classes/AuditableItemGraphPatch.md +6 -6
- package/docs/reference/classes/AuditableItemGraphResource.md +9 -9
- package/docs/reference/classes/AuditableItemGraphService.md +135 -57
- package/docs/reference/classes/AuditableItemGraphVertex.md +26 -18
- package/docs/reference/functions/auditableItemGraphRemoveProof.md +31 -0
- package/docs/reference/functions/auditableItemGraphUpdate.md +1 -1
- package/docs/reference/functions/auditableItemGraphUpdatePartial.md +31 -0
- package/docs/reference/functions/auditableItemGraphVersionGet.md +31 -0
- package/docs/reference/functions/auditableItemGraphVersionList.md +31 -0
- package/docs/reference/index.md +4 -0
- package/docs/reference/interfaces/IAuditableItemGraphServiceConfig.md +8 -0
- package/docs/reference/interfaces/IAuditableItemGraphServiceConstructorOptions.md +18 -10
- package/docs/reference/variables/restEntryPoints.md +2 -0
- package/locales/en.json +6 -2
- package/package.json +6 -6
package/docs/open-api/spec.json
CHANGED
|
@@ -44,6 +44,11 @@
|
|
|
44
44
|
"examples": {
|
|
45
45
|
"auditableItemGraphCreateRequestExample": {
|
|
46
46
|
"value": {
|
|
47
|
+
"@context": [
|
|
48
|
+
"https://schema.twindev.org/aig/",
|
|
49
|
+
"https://schema.twindev.org/common/"
|
|
50
|
+
],
|
|
51
|
+
"type": "AuditableItemGraphVertex",
|
|
47
52
|
"annotationObject": {
|
|
48
53
|
"@context": "https://schema.org",
|
|
49
54
|
"@type": "Note",
|
|
@@ -51,6 +56,7 @@
|
|
|
51
56
|
},
|
|
52
57
|
"aliases": [
|
|
53
58
|
{
|
|
59
|
+
"type": "AuditableItemGraphAlias",
|
|
54
60
|
"id": "bar456",
|
|
55
61
|
"annotationObject": {
|
|
56
62
|
"@context": "https://schema.org",
|
|
@@ -59,6 +65,7 @@
|
|
|
59
65
|
}
|
|
60
66
|
},
|
|
61
67
|
{
|
|
68
|
+
"type": "AuditableItemGraphAlias",
|
|
62
69
|
"id": "foo321",
|
|
63
70
|
"annotationObject": {
|
|
64
71
|
"@context": "https://schema.org",
|
|
@@ -69,6 +76,7 @@
|
|
|
69
76
|
],
|
|
70
77
|
"resources": [
|
|
71
78
|
{
|
|
79
|
+
"type": "AuditableItemGraphResource",
|
|
72
80
|
"id": "resource1",
|
|
73
81
|
"resourceObject": {
|
|
74
82
|
"@context": "https://schema.org",
|
|
@@ -77,6 +85,7 @@
|
|
|
77
85
|
}
|
|
78
86
|
},
|
|
79
87
|
{
|
|
88
|
+
"type": "AuditableItemGraphResource",
|
|
80
89
|
"id": "resource2",
|
|
81
90
|
"resourceObject": {
|
|
82
91
|
"@context": "https://schema.org",
|
|
@@ -87,6 +96,7 @@
|
|
|
87
96
|
],
|
|
88
97
|
"edges": [
|
|
89
98
|
{
|
|
99
|
+
"type": "AuditableItemGraphEdge",
|
|
90
100
|
"targetId": "aig:1234567890",
|
|
91
101
|
"edgeRelationships": [
|
|
92
102
|
"frenemy"
|
|
@@ -98,6 +108,7 @@
|
|
|
98
108
|
}
|
|
99
109
|
},
|
|
100
110
|
{
|
|
111
|
+
"type": "AuditableItemGraphEdge",
|
|
101
112
|
"targetId": "aig:45678901234",
|
|
102
113
|
"edgeRelationships": [
|
|
103
114
|
"end"
|
|
@@ -208,11 +219,16 @@
|
|
|
208
219
|
"in": "query",
|
|
209
220
|
"required": false,
|
|
210
221
|
"schema": {
|
|
211
|
-
"
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
222
|
+
"anyOf": [
|
|
223
|
+
{
|
|
224
|
+
"const": "id"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"const": "alias"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"const": "both"
|
|
231
|
+
}
|
|
216
232
|
]
|
|
217
233
|
}
|
|
218
234
|
},
|
|
@@ -236,7 +252,7 @@
|
|
|
236
252
|
},
|
|
237
253
|
{
|
|
238
254
|
"name": "conditions",
|
|
239
|
-
"description": "The conditions to filter the streams, JSON stringified
|
|
255
|
+
"description": "The conditions to filter the streams, JSON stringified EntityCondition<IAuditableItemGraphVertex>.",
|
|
240
256
|
"in": "query",
|
|
241
257
|
"required": false,
|
|
242
258
|
"schema": {
|
|
@@ -249,7 +265,6 @@
|
|
|
249
265
|
"in": "query",
|
|
250
266
|
"required": false,
|
|
251
267
|
"schema": {
|
|
252
|
-
"type": "string",
|
|
253
268
|
"enum": [
|
|
254
269
|
"dateCreated",
|
|
255
270
|
"dateModified"
|
|
@@ -694,7 +709,7 @@
|
|
|
694
709
|
}
|
|
695
710
|
],
|
|
696
711
|
"requestBody": {
|
|
697
|
-
"description": "Update an auditable item graph vertex.",
|
|
712
|
+
"description": "Update an auditable item graph vertex (PUT — full replacement of vertex state).",
|
|
698
713
|
"required": true,
|
|
699
714
|
"content": {
|
|
700
715
|
"application/json": {
|
|
@@ -704,6 +719,11 @@
|
|
|
704
719
|
"examples": {
|
|
705
720
|
"auditableItemGraphUpdateRequestExample": {
|
|
706
721
|
"value": {
|
|
722
|
+
"@context": [
|
|
723
|
+
"https://schema.twindev.org/aig/",
|
|
724
|
+
"https://schema.twindev.org/common/"
|
|
725
|
+
],
|
|
726
|
+
"type": "AuditableItemGraphVertex",
|
|
707
727
|
"annotationObject": {
|
|
708
728
|
"@context": "https://schema.org",
|
|
709
729
|
"@type": "Note",
|
|
@@ -711,6 +731,7 @@
|
|
|
711
731
|
},
|
|
712
732
|
"aliases": [
|
|
713
733
|
{
|
|
734
|
+
"type": "AuditableItemGraphAlias",
|
|
714
735
|
"id": "bar456",
|
|
715
736
|
"annotationObject": {
|
|
716
737
|
"@context": "https://schema.org",
|
|
@@ -719,6 +740,7 @@
|
|
|
719
740
|
}
|
|
720
741
|
},
|
|
721
742
|
{
|
|
743
|
+
"type": "AuditableItemGraphAlias",
|
|
722
744
|
"id": "foo321",
|
|
723
745
|
"annotationObject": {
|
|
724
746
|
"@context": "https://schema.org",
|
|
@@ -729,6 +751,7 @@
|
|
|
729
751
|
],
|
|
730
752
|
"resources": [
|
|
731
753
|
{
|
|
754
|
+
"type": "AuditableItemGraphResource",
|
|
732
755
|
"id": "resource1",
|
|
733
756
|
"resourceObject": {
|
|
734
757
|
"@context": "https://schema.org",
|
|
@@ -737,6 +760,7 @@
|
|
|
737
760
|
}
|
|
738
761
|
},
|
|
739
762
|
{
|
|
763
|
+
"type": "AuditableItemGraphResource",
|
|
740
764
|
"id": "resource2",
|
|
741
765
|
"resourceObject": {
|
|
742
766
|
"@context": "https://schema.org",
|
|
@@ -747,6 +771,7 @@
|
|
|
747
771
|
],
|
|
748
772
|
"edges": [
|
|
749
773
|
{
|
|
774
|
+
"type": "AuditableItemGraphEdge",
|
|
750
775
|
"id": "edge1",
|
|
751
776
|
"targetId": "aig:1234567890",
|
|
752
777
|
"edgeRelationships": [
|
|
@@ -759,6 +784,7 @@
|
|
|
759
784
|
}
|
|
760
785
|
},
|
|
761
786
|
{
|
|
787
|
+
"type": "AuditableItemGraphEdge",
|
|
762
788
|
"id": "edge2",
|
|
763
789
|
"targetId": "aig:45678901234",
|
|
764
790
|
"edgeRelationships": [
|
|
@@ -839,19 +865,17 @@
|
|
|
839
865
|
}
|
|
840
866
|
}
|
|
841
867
|
}
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
"operationId": "auditableItemGraphChangesetGet",
|
|
847
|
-
"summary": "Get a graph vertex changeset",
|
|
868
|
+
},
|
|
869
|
+
"patch": {
|
|
870
|
+
"operationId": "auditableItemGraphUpdatePartial",
|
|
871
|
+
"summary": "Partially update a graph vertex",
|
|
848
872
|
"tags": [
|
|
849
873
|
"Auditable Item Graph"
|
|
850
874
|
],
|
|
851
875
|
"parameters": [
|
|
852
876
|
{
|
|
853
877
|
"name": "id",
|
|
854
|
-
"description": "The id of the vertex to
|
|
878
|
+
"description": "The id of the vertex to update.",
|
|
855
879
|
"in": "path",
|
|
856
880
|
"required": true,
|
|
857
881
|
"schema": {
|
|
@@ -859,26 +883,138 @@
|
|
|
859
883
|
},
|
|
860
884
|
"style": "simple",
|
|
861
885
|
"example": "aig:1234567890"
|
|
886
|
+
}
|
|
887
|
+
],
|
|
888
|
+
"security": [
|
|
889
|
+
{
|
|
890
|
+
"jwtBearerAuthScheme": []
|
|
891
|
+
}
|
|
892
|
+
],
|
|
893
|
+
"requestBody": {
|
|
894
|
+
"description": "Partially update an auditable item graph vertex (PATCH — explicit list patches).",
|
|
895
|
+
"required": true,
|
|
896
|
+
"content": {
|
|
897
|
+
"application/json": {
|
|
898
|
+
"schema": {
|
|
899
|
+
"$ref": "#/components/schemas/AuditableItemGraphUpdatePartialRequest"
|
|
900
|
+
},
|
|
901
|
+
"examples": {
|
|
902
|
+
"auditableItemGraphUpdatePartialRequestExample": {
|
|
903
|
+
"value": {
|
|
904
|
+
"@context": [
|
|
905
|
+
"https://schema.twindev.org/aig/",
|
|
906
|
+
"https://schema.twindev.org/common/"
|
|
907
|
+
],
|
|
908
|
+
"edgePatches": {
|
|
909
|
+
"add": [
|
|
910
|
+
{
|
|
911
|
+
"type": "AuditableItemGraphEdge",
|
|
912
|
+
"targetId": "aig:45678901234",
|
|
913
|
+
"edgeRelationships": [
|
|
914
|
+
"document"
|
|
915
|
+
]
|
|
916
|
+
}
|
|
917
|
+
]
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
"responses": {
|
|
926
|
+
"204": {
|
|
927
|
+
"description": "The rest request ended in success with no data."
|
|
928
|
+
},
|
|
929
|
+
"400": {
|
|
930
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
931
|
+
"content": {
|
|
932
|
+
"application/json": {
|
|
933
|
+
"schema": {
|
|
934
|
+
"$ref": "#/components/schemas/Error"
|
|
935
|
+
},
|
|
936
|
+
"examples": {
|
|
937
|
+
"exampleResponse": {
|
|
938
|
+
"value": {
|
|
939
|
+
"name": "GeneralError",
|
|
940
|
+
"message": "errorMessage",
|
|
941
|
+
"properties": {
|
|
942
|
+
"foo": "bar"
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
"401": {
|
|
951
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
952
|
+
"content": {
|
|
953
|
+
"application/json": {
|
|
954
|
+
"schema": {
|
|
955
|
+
"$ref": "#/components/schemas/Error"
|
|
956
|
+
},
|
|
957
|
+
"examples": {
|
|
958
|
+
"exampleResponse": {
|
|
959
|
+
"value": {
|
|
960
|
+
"name": "UnauthorizedError",
|
|
961
|
+
"message": "errorMessage"
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
}
|
|
862
967
|
},
|
|
968
|
+
"500": {
|
|
969
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
970
|
+
"content": {
|
|
971
|
+
"application/json": {
|
|
972
|
+
"schema": {
|
|
973
|
+
"$ref": "#/components/schemas/Error"
|
|
974
|
+
},
|
|
975
|
+
"examples": {
|
|
976
|
+
"exampleResponse": {
|
|
977
|
+
"value": {
|
|
978
|
+
"name": "InternalServerError",
|
|
979
|
+
"message": "errorMessage"
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
},
|
|
989
|
+
"/auditable-item-graph/{id}/versions/{version}": {
|
|
990
|
+
"get": {
|
|
991
|
+
"operationId": "auditableItemGraphVersionGet",
|
|
992
|
+
"summary": "Get a graph vertex at a specific version",
|
|
993
|
+
"tags": [
|
|
994
|
+
"Auditable Item Graph"
|
|
995
|
+
],
|
|
996
|
+
"parameters": [
|
|
863
997
|
{
|
|
864
|
-
"name": "
|
|
865
|
-
"description": "The id of the
|
|
998
|
+
"name": "id",
|
|
999
|
+
"description": "The id of the vertex.",
|
|
866
1000
|
"in": "path",
|
|
867
1001
|
"required": true,
|
|
868
1002
|
"schema": {
|
|
869
1003
|
"type": "string"
|
|
870
1004
|
},
|
|
871
1005
|
"style": "simple",
|
|
872
|
-
"example": "
|
|
1006
|
+
"example": "aig:1234567890"
|
|
873
1007
|
},
|
|
874
1008
|
{
|
|
875
|
-
"name": "
|
|
876
|
-
"description": "
|
|
877
|
-
"in": "
|
|
878
|
-
"required":
|
|
1009
|
+
"name": "version",
|
|
1010
|
+
"description": "The version number to get.",
|
|
1011
|
+
"in": "path",
|
|
1012
|
+
"required": true,
|
|
879
1013
|
"schema": {
|
|
880
|
-
"
|
|
881
|
-
}
|
|
1014
|
+
"type": "string"
|
|
1015
|
+
},
|
|
1016
|
+
"style": "simple",
|
|
1017
|
+
"example": "1"
|
|
882
1018
|
},
|
|
883
1019
|
{
|
|
884
1020
|
"name": "accept",
|
|
@@ -898,135 +1034,28 @@
|
|
|
898
1034
|
],
|
|
899
1035
|
"responses": {
|
|
900
1036
|
"200": {
|
|
901
|
-
"description": "Response to getting an auditable item graph vertex
|
|
1037
|
+
"description": "Response to getting an auditable item graph vertex at a specific version.",
|
|
902
1038
|
"content": {
|
|
903
1039
|
"application/json": {
|
|
904
1040
|
"schema": {
|
|
905
|
-
"$ref": "https://schema.twindev.org/aig/
|
|
906
|
-
},
|
|
907
|
-
"examples": {
|
|
908
|
-
"auditableItemGraphChangesetGetResponseExample": {
|
|
909
|
-
"value": {
|
|
910
|
-
"@context": [
|
|
911
|
-
"https://schema.twindev.org/aig/",
|
|
912
|
-
"https://schema.twindev.org/common/"
|
|
913
|
-
],
|
|
914
|
-
"type": "AuditableItemGraphChangeset",
|
|
915
|
-
"id": "aig:1234567890",
|
|
916
|
-
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
917
|
-
"patches": [
|
|
918
|
-
{
|
|
919
|
-
"type": "AuditableItemGraphPatchOperation",
|
|
920
|
-
"patchOperation": "add",
|
|
921
|
-
"patchPath": "/annotationObject",
|
|
922
|
-
"patchValue": {
|
|
923
|
-
"@context": "https://www.w3.org/ns/activitystreams",
|
|
924
|
-
"type": "Create",
|
|
925
|
-
"actor": {
|
|
926
|
-
"type": "Person",
|
|
927
|
-
"id": "acct:person@example.org",
|
|
928
|
-
"name": "Person"
|
|
929
|
-
},
|
|
930
|
-
"object": {
|
|
931
|
-
"type": "Note",
|
|
932
|
-
"content": "This is a simple note"
|
|
933
|
-
},
|
|
934
|
-
"published": "2015-01-25T12:34:56Z"
|
|
935
|
-
}
|
|
936
|
-
},
|
|
937
|
-
{
|
|
938
|
-
"type": "AuditableItemGraphPatchOperation",
|
|
939
|
-
"patchOperation": "add",
|
|
940
|
-
"patchPath": "/aliases",
|
|
941
|
-
"patchValue": [
|
|
942
|
-
{
|
|
943
|
-
"id": "foo123",
|
|
944
|
-
"dateCreated": "2015-01-25T12:34:56Z"
|
|
945
|
-
},
|
|
946
|
-
{
|
|
947
|
-
"id": "bar456",
|
|
948
|
-
"dateCreated": "2015-01-25T12:34:56Z"
|
|
949
|
-
}
|
|
950
|
-
]
|
|
951
|
-
}
|
|
952
|
-
],
|
|
953
|
-
"verification": {
|
|
954
|
-
"@context": "https://schema.twindev.org/immutable-proof/",
|
|
955
|
-
"type": "ImmutableProofVerification",
|
|
956
|
-
"verified": true
|
|
957
|
-
}
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
},
|
|
962
|
-
"application/ld+json": {
|
|
963
|
-
"schema": {
|
|
964
|
-
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphChangeset"
|
|
1041
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphVertex"
|
|
965
1042
|
},
|
|
966
1043
|
"examples": {
|
|
967
|
-
"
|
|
1044
|
+
"auditableItemGraphVersionGetResponseExample": {
|
|
968
1045
|
"value": {
|
|
969
1046
|
"@context": [
|
|
970
1047
|
"https://schema.twindev.org/aig/",
|
|
971
1048
|
"https://schema.twindev.org/common/",
|
|
972
1049
|
"https://schema.org"
|
|
973
1050
|
],
|
|
974
|
-
"type": "
|
|
1051
|
+
"type": "AuditableItemGraphVertex",
|
|
975
1052
|
"id": "aig:1234567890",
|
|
976
1053
|
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
977
|
-
"
|
|
978
|
-
{
|
|
979
|
-
"type": "AuditableItemGraphPatchOperation",
|
|
980
|
-
"patchOperation": "add",
|
|
981
|
-
"patchPath": "/annotationObject",
|
|
982
|
-
"patchValue": {
|
|
983
|
-
"@context": "https://www.w3.org/ns/activitystreams",
|
|
984
|
-
"type": "Create",
|
|
985
|
-
"actor": {
|
|
986
|
-
"type": "Person",
|
|
987
|
-
"id": "acct:person@example.org",
|
|
988
|
-
"name": "Person"
|
|
989
|
-
},
|
|
990
|
-
"object": {
|
|
991
|
-
"type": "Note",
|
|
992
|
-
"content": "This is a simple note"
|
|
993
|
-
},
|
|
994
|
-
"published": "2015-01-25T12:34:56Z"
|
|
995
|
-
}
|
|
996
|
-
},
|
|
997
|
-
{
|
|
998
|
-
"type": "AuditableItemGraphPatchOperation",
|
|
999
|
-
"patchOperation": "add",
|
|
1000
|
-
"patchPath": "/aliases",
|
|
1001
|
-
"patchValue": [
|
|
1002
|
-
{
|
|
1003
|
-
"id": "foo123",
|
|
1004
|
-
"dateCreated": "2015-01-25T12:34:56Z"
|
|
1005
|
-
},
|
|
1006
|
-
{
|
|
1007
|
-
"id": "bar456",
|
|
1008
|
-
"dateCreated": "2015-01-25T12:34:56Z"
|
|
1009
|
-
}
|
|
1010
|
-
]
|
|
1011
|
-
}
|
|
1012
|
-
],
|
|
1013
|
-
"verification": {
|
|
1014
|
-
"@context": "https://schema.twindev.org/immutable-proof/",
|
|
1015
|
-
"type": "ImmutableProofVerification",
|
|
1016
|
-
"verified": true
|
|
1017
|
-
}
|
|
1054
|
+
"version": 1
|
|
1018
1055
|
}
|
|
1019
1056
|
}
|
|
1020
1057
|
}
|
|
1021
1058
|
}
|
|
1022
|
-
},
|
|
1023
|
-
"headers": {
|
|
1024
|
-
"content-type": {
|
|
1025
|
-
"schema": {
|
|
1026
|
-
"type": "string"
|
|
1027
|
-
},
|
|
1028
|
-
"description": "e.g. application/ld+json"
|
|
1029
|
-
}
|
|
1030
1059
|
}
|
|
1031
1060
|
},
|
|
1032
1061
|
"400": {
|
|
@@ -1089,17 +1118,17 @@
|
|
|
1089
1118
|
}
|
|
1090
1119
|
}
|
|
1091
1120
|
},
|
|
1092
|
-
"/auditable-item-graph/{id}/
|
|
1121
|
+
"/auditable-item-graph/{id}/versions": {
|
|
1093
1122
|
"get": {
|
|
1094
|
-
"operationId": "
|
|
1095
|
-
"summary": "Get
|
|
1123
|
+
"operationId": "auditableItemGraphVersionList",
|
|
1124
|
+
"summary": "Get all versions of a graph vertex",
|
|
1096
1125
|
"tags": [
|
|
1097
1126
|
"Auditable Item Graph"
|
|
1098
1127
|
],
|
|
1099
1128
|
"parameters": [
|
|
1100
1129
|
{
|
|
1101
1130
|
"name": "id",
|
|
1102
|
-
"description": "The id of the
|
|
1131
|
+
"description": "The id of the vertex.",
|
|
1103
1132
|
"in": "path",
|
|
1104
1133
|
"required": true,
|
|
1105
1134
|
"schema": {
|
|
@@ -1109,8 +1138,8 @@
|
|
|
1109
1138
|
"example": "aig:1234567890"
|
|
1110
1139
|
},
|
|
1111
1140
|
{
|
|
1112
|
-
"name": "
|
|
1113
|
-
"description": "
|
|
1141
|
+
"name": "after",
|
|
1142
|
+
"description": "Only return versions created after this ISO 8601 timestamp (exclusive).",
|
|
1114
1143
|
"in": "query",
|
|
1115
1144
|
"required": false,
|
|
1116
1145
|
"schema": {
|
|
@@ -1118,8 +1147,8 @@
|
|
|
1118
1147
|
}
|
|
1119
1148
|
},
|
|
1120
1149
|
{
|
|
1121
|
-
"name": "
|
|
1122
|
-
"description": "
|
|
1150
|
+
"name": "before",
|
|
1151
|
+
"description": "Only return versions created before this ISO 8601 timestamp (exclusive).",
|
|
1123
1152
|
"in": "query",
|
|
1124
1153
|
"required": false,
|
|
1125
1154
|
"schema": {
|
|
@@ -1127,12 +1156,413 @@
|
|
|
1127
1156
|
}
|
|
1128
1157
|
},
|
|
1129
1158
|
{
|
|
1130
|
-
"name": "
|
|
1131
|
-
"
|
|
1132
|
-
"
|
|
1133
|
-
"required": false,
|
|
1159
|
+
"name": "accept",
|
|
1160
|
+
"in": "header",
|
|
1161
|
+
"required": true,
|
|
1134
1162
|
"schema": {
|
|
1135
|
-
"
|
|
1163
|
+
"type": "string"
|
|
1164
|
+
},
|
|
1165
|
+
"style": "simple",
|
|
1166
|
+
"example": "application/json"
|
|
1167
|
+
}
|
|
1168
|
+
],
|
|
1169
|
+
"security": [
|
|
1170
|
+
{
|
|
1171
|
+
"jwtBearerAuthScheme": []
|
|
1172
|
+
}
|
|
1173
|
+
],
|
|
1174
|
+
"responses": {
|
|
1175
|
+
"200": {
|
|
1176
|
+
"description": "Response to getting all versions of an auditable item graph vertex.",
|
|
1177
|
+
"content": {
|
|
1178
|
+
"application/json": {
|
|
1179
|
+
"schema": {
|
|
1180
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphVertexVersionList"
|
|
1181
|
+
},
|
|
1182
|
+
"examples": {
|
|
1183
|
+
"auditableItemGraphVersionListResponseExample": {
|
|
1184
|
+
"value": {
|
|
1185
|
+
"@context": [
|
|
1186
|
+
"https://schema.org",
|
|
1187
|
+
"https://schema.twindev.org/aig/",
|
|
1188
|
+
"https://schema.twindev.org/common/"
|
|
1189
|
+
],
|
|
1190
|
+
"type": [
|
|
1191
|
+
"ItemList",
|
|
1192
|
+
"AuditableItemGraphVertexVersionList"
|
|
1193
|
+
],
|
|
1194
|
+
"itemListElement": [
|
|
1195
|
+
{
|
|
1196
|
+
"version": 0,
|
|
1197
|
+
"dateCreated": "2024-08-22T11:55:16.271Z"
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"version": 1,
|
|
1201
|
+
"dateCreated": "2024-08-22T11:56:00.000Z"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"version": 2,
|
|
1205
|
+
"dateCreated": "2024-08-22T11:57:00.000Z"
|
|
1206
|
+
}
|
|
1207
|
+
]
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1214
|
+
"400": {
|
|
1215
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
1216
|
+
"content": {
|
|
1217
|
+
"application/json": {
|
|
1218
|
+
"schema": {
|
|
1219
|
+
"$ref": "#/components/schemas/Error"
|
|
1220
|
+
},
|
|
1221
|
+
"examples": {
|
|
1222
|
+
"exampleResponse": {
|
|
1223
|
+
"value": {
|
|
1224
|
+
"name": "GeneralError",
|
|
1225
|
+
"message": "errorMessage",
|
|
1226
|
+
"properties": {
|
|
1227
|
+
"foo": "bar"
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1235
|
+
"401": {
|
|
1236
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
1237
|
+
"content": {
|
|
1238
|
+
"application/json": {
|
|
1239
|
+
"schema": {
|
|
1240
|
+
"$ref": "#/components/schemas/Error"
|
|
1241
|
+
},
|
|
1242
|
+
"examples": {
|
|
1243
|
+
"exampleResponse": {
|
|
1244
|
+
"value": {
|
|
1245
|
+
"name": "UnauthorizedError",
|
|
1246
|
+
"message": "errorMessage"
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
},
|
|
1253
|
+
"500": {
|
|
1254
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
1255
|
+
"content": {
|
|
1256
|
+
"application/json": {
|
|
1257
|
+
"schema": {
|
|
1258
|
+
"$ref": "#/components/schemas/Error"
|
|
1259
|
+
},
|
|
1260
|
+
"examples": {
|
|
1261
|
+
"exampleResponse": {
|
|
1262
|
+
"value": {
|
|
1263
|
+
"name": "InternalServerError",
|
|
1264
|
+
"message": "errorMessage"
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
}
|
|
1273
|
+
},
|
|
1274
|
+
"/auditable-item-graph/{id}/changesets/{changesetId}": {
|
|
1275
|
+
"get": {
|
|
1276
|
+
"operationId": "auditableItemGraphChangesetGet",
|
|
1277
|
+
"summary": "Get a graph vertex changeset",
|
|
1278
|
+
"tags": [
|
|
1279
|
+
"Auditable Item Graph"
|
|
1280
|
+
],
|
|
1281
|
+
"parameters": [
|
|
1282
|
+
{
|
|
1283
|
+
"name": "id",
|
|
1284
|
+
"description": "The id of the vertex to get the changeset from.",
|
|
1285
|
+
"in": "path",
|
|
1286
|
+
"required": true,
|
|
1287
|
+
"schema": {
|
|
1288
|
+
"type": "string"
|
|
1289
|
+
},
|
|
1290
|
+
"style": "simple",
|
|
1291
|
+
"example": "aig:1234567890"
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"name": "changesetId",
|
|
1295
|
+
"description": "The id of the changeset to get.",
|
|
1296
|
+
"in": "path",
|
|
1297
|
+
"required": true,
|
|
1298
|
+
"schema": {
|
|
1299
|
+
"type": "string"
|
|
1300
|
+
},
|
|
1301
|
+
"style": "simple",
|
|
1302
|
+
"example": "changeset:1234567890"
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"name": "verifySignatureDepth",
|
|
1306
|
+
"description": "How many signatures to verify, none, current or all, defaults to \"none\".",
|
|
1307
|
+
"in": "query",
|
|
1308
|
+
"required": false,
|
|
1309
|
+
"schema": {
|
|
1310
|
+
"$ref": "#/components/schemas/VerifyDepth"
|
|
1311
|
+
}
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
"name": "accept",
|
|
1315
|
+
"in": "header",
|
|
1316
|
+
"required": true,
|
|
1317
|
+
"schema": {
|
|
1318
|
+
"type": "string"
|
|
1319
|
+
},
|
|
1320
|
+
"style": "simple",
|
|
1321
|
+
"example": "application/json"
|
|
1322
|
+
}
|
|
1323
|
+
],
|
|
1324
|
+
"security": [
|
|
1325
|
+
{
|
|
1326
|
+
"jwtBearerAuthScheme": []
|
|
1327
|
+
}
|
|
1328
|
+
],
|
|
1329
|
+
"responses": {
|
|
1330
|
+
"200": {
|
|
1331
|
+
"description": "Response to getting an auditable item graph vertex changeset.",
|
|
1332
|
+
"content": {
|
|
1333
|
+
"application/json": {
|
|
1334
|
+
"schema": {
|
|
1335
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphChangeset"
|
|
1336
|
+
},
|
|
1337
|
+
"examples": {
|
|
1338
|
+
"auditableItemGraphChangesetGetResponseExample": {
|
|
1339
|
+
"value": {
|
|
1340
|
+
"@context": [
|
|
1341
|
+
"https://schema.twindev.org/aig/",
|
|
1342
|
+
"https://schema.twindev.org/common/"
|
|
1343
|
+
],
|
|
1344
|
+
"type": "AuditableItemGraphChangeset",
|
|
1345
|
+
"id": "aig:1234567890",
|
|
1346
|
+
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
1347
|
+
"patches": [
|
|
1348
|
+
{
|
|
1349
|
+
"type": "AuditableItemGraphPatchOperation",
|
|
1350
|
+
"patchOperation": "add",
|
|
1351
|
+
"patchPath": "/annotationObject",
|
|
1352
|
+
"patchValue": {
|
|
1353
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
1354
|
+
"type": "Create",
|
|
1355
|
+
"actor": {
|
|
1356
|
+
"type": "Person",
|
|
1357
|
+
"id": "acct:person@example.org",
|
|
1358
|
+
"name": "Person"
|
|
1359
|
+
},
|
|
1360
|
+
"object": {
|
|
1361
|
+
"type": "Note",
|
|
1362
|
+
"content": "This is a simple note"
|
|
1363
|
+
},
|
|
1364
|
+
"published": "2015-01-25T12:34:56Z"
|
|
1365
|
+
}
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"type": "AuditableItemGraphPatchOperation",
|
|
1369
|
+
"patchOperation": "add",
|
|
1370
|
+
"patchPath": "/aliases",
|
|
1371
|
+
"patchValue": [
|
|
1372
|
+
{
|
|
1373
|
+
"id": "foo123",
|
|
1374
|
+
"dateCreated": "2015-01-25T12:34:56Z"
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
"id": "bar456",
|
|
1378
|
+
"dateCreated": "2015-01-25T12:34:56Z"
|
|
1379
|
+
}
|
|
1380
|
+
]
|
|
1381
|
+
}
|
|
1382
|
+
],
|
|
1383
|
+
"verification": {
|
|
1384
|
+
"@context": "https://schema.twindev.org/immutable-proof/",
|
|
1385
|
+
"type": "ImmutableProofVerification",
|
|
1386
|
+
"verified": true
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
"application/ld+json": {
|
|
1393
|
+
"schema": {
|
|
1394
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphChangeset"
|
|
1395
|
+
},
|
|
1396
|
+
"examples": {
|
|
1397
|
+
"auditableItemGraphChangesetJsonLdGetResponseExample": {
|
|
1398
|
+
"value": {
|
|
1399
|
+
"@context": [
|
|
1400
|
+
"https://schema.twindev.org/aig/",
|
|
1401
|
+
"https://schema.twindev.org/common/",
|
|
1402
|
+
"https://schema.org"
|
|
1403
|
+
],
|
|
1404
|
+
"type": "AuditableItemGraphChangeset",
|
|
1405
|
+
"id": "aig:1234567890",
|
|
1406
|
+
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
1407
|
+
"patches": [
|
|
1408
|
+
{
|
|
1409
|
+
"type": "AuditableItemGraphPatchOperation",
|
|
1410
|
+
"patchOperation": "add",
|
|
1411
|
+
"patchPath": "/annotationObject",
|
|
1412
|
+
"patchValue": {
|
|
1413
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
1414
|
+
"type": "Create",
|
|
1415
|
+
"actor": {
|
|
1416
|
+
"type": "Person",
|
|
1417
|
+
"id": "acct:person@example.org",
|
|
1418
|
+
"name": "Person"
|
|
1419
|
+
},
|
|
1420
|
+
"object": {
|
|
1421
|
+
"type": "Note",
|
|
1422
|
+
"content": "This is a simple note"
|
|
1423
|
+
},
|
|
1424
|
+
"published": "2015-01-25T12:34:56Z"
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
"type": "AuditableItemGraphPatchOperation",
|
|
1429
|
+
"patchOperation": "add",
|
|
1430
|
+
"patchPath": "/aliases",
|
|
1431
|
+
"patchValue": [
|
|
1432
|
+
{
|
|
1433
|
+
"id": "foo123",
|
|
1434
|
+
"dateCreated": "2015-01-25T12:34:56Z"
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
"id": "bar456",
|
|
1438
|
+
"dateCreated": "2015-01-25T12:34:56Z"
|
|
1439
|
+
}
|
|
1440
|
+
]
|
|
1441
|
+
}
|
|
1442
|
+
],
|
|
1443
|
+
"verification": {
|
|
1444
|
+
"@context": "https://schema.twindev.org/immutable-proof/",
|
|
1445
|
+
"type": "ImmutableProofVerification",
|
|
1446
|
+
"verified": true
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
},
|
|
1453
|
+
"headers": {
|
|
1454
|
+
"content-type": {
|
|
1455
|
+
"schema": {
|
|
1456
|
+
"type": "string"
|
|
1457
|
+
},
|
|
1458
|
+
"description": "e.g. application/ld+json"
|
|
1459
|
+
}
|
|
1460
|
+
}
|
|
1461
|
+
},
|
|
1462
|
+
"400": {
|
|
1463
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
1464
|
+
"content": {
|
|
1465
|
+
"application/json": {
|
|
1466
|
+
"schema": {
|
|
1467
|
+
"$ref": "#/components/schemas/Error"
|
|
1468
|
+
},
|
|
1469
|
+
"examples": {
|
|
1470
|
+
"exampleResponse": {
|
|
1471
|
+
"value": {
|
|
1472
|
+
"name": "GeneralError",
|
|
1473
|
+
"message": "errorMessage",
|
|
1474
|
+
"properties": {
|
|
1475
|
+
"foo": "bar"
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
},
|
|
1483
|
+
"401": {
|
|
1484
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
1485
|
+
"content": {
|
|
1486
|
+
"application/json": {
|
|
1487
|
+
"schema": {
|
|
1488
|
+
"$ref": "#/components/schemas/Error"
|
|
1489
|
+
},
|
|
1490
|
+
"examples": {
|
|
1491
|
+
"exampleResponse": {
|
|
1492
|
+
"value": {
|
|
1493
|
+
"name": "UnauthorizedError",
|
|
1494
|
+
"message": "errorMessage"
|
|
1495
|
+
}
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
"500": {
|
|
1502
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
1503
|
+
"content": {
|
|
1504
|
+
"application/json": {
|
|
1505
|
+
"schema": {
|
|
1506
|
+
"$ref": "#/components/schemas/Error"
|
|
1507
|
+
},
|
|
1508
|
+
"examples": {
|
|
1509
|
+
"exampleResponse": {
|
|
1510
|
+
"value": {
|
|
1511
|
+
"name": "InternalServerError",
|
|
1512
|
+
"message": "errorMessage"
|
|
1513
|
+
}
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
}
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
},
|
|
1522
|
+
"/auditable-item-graph/{id}/changesets": {
|
|
1523
|
+
"get": {
|
|
1524
|
+
"operationId": "auditableItemGraphChangesetList",
|
|
1525
|
+
"summary": "Get a list of graph vertex changesets",
|
|
1526
|
+
"tags": [
|
|
1527
|
+
"Auditable Item Graph"
|
|
1528
|
+
],
|
|
1529
|
+
"parameters": [
|
|
1530
|
+
{
|
|
1531
|
+
"name": "id",
|
|
1532
|
+
"description": "The id of the changeset to get.",
|
|
1533
|
+
"in": "path",
|
|
1534
|
+
"required": true,
|
|
1535
|
+
"schema": {
|
|
1536
|
+
"type": "string"
|
|
1537
|
+
},
|
|
1538
|
+
"style": "simple",
|
|
1539
|
+
"example": "aig:1234567890"
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
"name": "cursor",
|
|
1543
|
+
"description": "The optional cursor to get next chunk.",
|
|
1544
|
+
"in": "query",
|
|
1545
|
+
"required": false,
|
|
1546
|
+
"schema": {
|
|
1547
|
+
"type": "string"
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
"name": "limit",
|
|
1552
|
+
"description": "Limit the number of entities to return.",
|
|
1553
|
+
"in": "query",
|
|
1554
|
+
"required": false,
|
|
1555
|
+
"schema": {
|
|
1556
|
+
"type": "string"
|
|
1557
|
+
}
|
|
1558
|
+
},
|
|
1559
|
+
{
|
|
1560
|
+
"name": "verifySignatureDepth",
|
|
1561
|
+
"description": "How many signatures to verify, none, current or all, defaults to \"none\".",
|
|
1562
|
+
"in": "query",
|
|
1563
|
+
"required": false,
|
|
1564
|
+
"schema": {
|
|
1565
|
+
"$ref": "#/components/schemas/VerifyDepth"
|
|
1136
1566
|
}
|
|
1137
1567
|
},
|
|
1138
1568
|
{
|
|
@@ -1361,168 +1791,322 @@
|
|
|
1361
1791
|
}
|
|
1362
1792
|
}
|
|
1363
1793
|
}
|
|
1794
|
+
},
|
|
1795
|
+
"/auditable-item-graph/{id}/proof": {
|
|
1796
|
+
"delete": {
|
|
1797
|
+
"operationId": "auditableItemGraphRemoveProof",
|
|
1798
|
+
"summary": "Remove the notarization proof from all changesets of a graph vertex",
|
|
1799
|
+
"tags": [
|
|
1800
|
+
"Auditable Item Graph"
|
|
1801
|
+
],
|
|
1802
|
+
"parameters": [
|
|
1803
|
+
{
|
|
1804
|
+
"name": "id",
|
|
1805
|
+
"description": "The id of the vertex whose proof should be removed.",
|
|
1806
|
+
"in": "path",
|
|
1807
|
+
"required": true,
|
|
1808
|
+
"schema": {
|
|
1809
|
+
"type": "string"
|
|
1810
|
+
},
|
|
1811
|
+
"style": "simple",
|
|
1812
|
+
"example": "0101010101010101010101010101010101010101010101010101010101010101"
|
|
1813
|
+
}
|
|
1814
|
+
],
|
|
1815
|
+
"security": [
|
|
1816
|
+
{
|
|
1817
|
+
"jwtBearerAuthScheme": []
|
|
1818
|
+
}
|
|
1819
|
+
],
|
|
1820
|
+
"responses": {
|
|
1821
|
+
"204": {
|
|
1822
|
+
"description": "The rest request ended in success with no data."
|
|
1823
|
+
},
|
|
1824
|
+
"400": {
|
|
1825
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
1826
|
+
"content": {
|
|
1827
|
+
"application/json": {
|
|
1828
|
+
"schema": {
|
|
1829
|
+
"$ref": "#/components/schemas/Error"
|
|
1830
|
+
},
|
|
1831
|
+
"examples": {
|
|
1832
|
+
"exampleResponse": {
|
|
1833
|
+
"value": {
|
|
1834
|
+
"name": "GeneralError",
|
|
1835
|
+
"message": "errorMessage",
|
|
1836
|
+
"properties": {
|
|
1837
|
+
"foo": "bar"
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
},
|
|
1845
|
+
"401": {
|
|
1846
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
1847
|
+
"content": {
|
|
1848
|
+
"application/json": {
|
|
1849
|
+
"schema": {
|
|
1850
|
+
"$ref": "#/components/schemas/Error"
|
|
1851
|
+
},
|
|
1852
|
+
"examples": {
|
|
1853
|
+
"exampleResponse": {
|
|
1854
|
+
"value": {
|
|
1855
|
+
"name": "UnauthorizedError",
|
|
1856
|
+
"message": "errorMessage"
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
},
|
|
1863
|
+
"500": {
|
|
1864
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
1865
|
+
"content": {
|
|
1866
|
+
"application/json": {
|
|
1867
|
+
"schema": {
|
|
1868
|
+
"$ref": "#/components/schemas/Error"
|
|
1869
|
+
},
|
|
1870
|
+
"examples": {
|
|
1871
|
+
"exampleResponse": {
|
|
1872
|
+
"value": {
|
|
1873
|
+
"name": "InternalServerError",
|
|
1874
|
+
"message": "errorMessage"
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1364
1883
|
}
|
|
1365
1884
|
},
|
|
1366
1885
|
"components": {
|
|
1367
1886
|
"schemas": {
|
|
1368
1887
|
"AuditableItemGraphCreateRequest": {
|
|
1888
|
+
"description": "The data to be used in the vertex.",
|
|
1369
1889
|
"type": "object",
|
|
1370
1890
|
"properties": {
|
|
1891
|
+
"dateCreated": {
|
|
1892
|
+
"type": "string",
|
|
1893
|
+
"description": "The date/time of when the element was created."
|
|
1894
|
+
},
|
|
1895
|
+
"dateModified": {
|
|
1896
|
+
"type": "string",
|
|
1897
|
+
"description": "The date/time of when the element was modified."
|
|
1898
|
+
},
|
|
1899
|
+
"dateDeleted": {
|
|
1900
|
+
"type": "string",
|
|
1901
|
+
"description": "The date/time of when the element was deleted, as we never actually remove items."
|
|
1902
|
+
},
|
|
1903
|
+
"@context": {
|
|
1904
|
+
"type": "array",
|
|
1905
|
+
"prefixItems": [
|
|
1906
|
+
{
|
|
1907
|
+
"const": "https://schema.twindev.org/aig/"
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
"const": "https://schema.twindev.org/common/"
|
|
1911
|
+
}
|
|
1912
|
+
],
|
|
1913
|
+
"items": {
|
|
1914
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1915
|
+
},
|
|
1916
|
+
"minItems": 2,
|
|
1917
|
+
"description": "JSON-LD Context."
|
|
1918
|
+
},
|
|
1919
|
+
"type": {
|
|
1920
|
+
"const": "AuditableItemGraphVertex",
|
|
1921
|
+
"description": "JSON-LD Type."
|
|
1922
|
+
},
|
|
1923
|
+
"organizationIdentity": {
|
|
1924
|
+
"type": "string",
|
|
1925
|
+
"description": "The identity of the organization which controls the vertex."
|
|
1926
|
+
},
|
|
1371
1927
|
"annotationObject": {
|
|
1372
1928
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1373
1929
|
},
|
|
1374
1930
|
"aliases": {
|
|
1375
1931
|
"type": "array",
|
|
1376
1932
|
"items": {
|
|
1377
|
-
"
|
|
1378
|
-
"properties": {
|
|
1379
|
-
"id": {
|
|
1380
|
-
"type": "string"
|
|
1381
|
-
},
|
|
1382
|
-
"aliasFormat": {
|
|
1383
|
-
"type": "string"
|
|
1384
|
-
},
|
|
1385
|
-
"unique": {
|
|
1386
|
-
"type": "boolean"
|
|
1387
|
-
},
|
|
1388
|
-
"annotationObject": {
|
|
1389
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1390
|
-
}
|
|
1391
|
-
},
|
|
1392
|
-
"required": [
|
|
1393
|
-
"id"
|
|
1394
|
-
],
|
|
1395
|
-
"additionalProperties": false
|
|
1933
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphAlias"
|
|
1396
1934
|
},
|
|
1397
1935
|
"description": "Alternative aliases that can be used to identify the vertex."
|
|
1398
1936
|
},
|
|
1399
1937
|
"resources": {
|
|
1400
1938
|
"type": "array",
|
|
1401
1939
|
"items": {
|
|
1402
|
-
"
|
|
1403
|
-
"properties": {
|
|
1404
|
-
"id": {
|
|
1405
|
-
"type": "string"
|
|
1406
|
-
},
|
|
1407
|
-
"resourceObject": {
|
|
1408
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1409
|
-
}
|
|
1410
|
-
},
|
|
1411
|
-
"additionalProperties": false
|
|
1940
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphResource"
|
|
1412
1941
|
},
|
|
1413
1942
|
"description": "The resources attached to the vertex."
|
|
1414
1943
|
},
|
|
1415
1944
|
"edges": {
|
|
1416
1945
|
"type": "array",
|
|
1417
1946
|
"items": {
|
|
1418
|
-
"
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1947
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphEdge"
|
|
1948
|
+
},
|
|
1949
|
+
"description": "Edges connected to the vertex."
|
|
1950
|
+
},
|
|
1951
|
+
"verified": {
|
|
1952
|
+
"type": "boolean",
|
|
1953
|
+
"description": "Is the vertex verified, will only be populated when verification is requested."
|
|
1954
|
+
},
|
|
1955
|
+
"version": {
|
|
1956
|
+
"type": "number",
|
|
1957
|
+
"description": "The version of the vertex, populated only when getting a specific version.\nMaps to https://schema.org/version."
|
|
1958
|
+
}
|
|
1959
|
+
},
|
|
1960
|
+
"required": [
|
|
1961
|
+
"@context",
|
|
1962
|
+
"type"
|
|
1963
|
+
]
|
|
1964
|
+
},
|
|
1965
|
+
"AuditableItemGraphUpdatePartialRequest": {
|
|
1966
|
+
"description": "Partial vertex data; only defined properties are applied.\nSub-lists use `{ add, remove }` patch objects.",
|
|
1967
|
+
"type": "object",
|
|
1968
|
+
"properties": {
|
|
1969
|
+
"dateCreated": {
|
|
1970
|
+
"type": "string",
|
|
1971
|
+
"description": "The date/time of when the element was created."
|
|
1972
|
+
},
|
|
1973
|
+
"dateModified": {
|
|
1974
|
+
"type": "string",
|
|
1975
|
+
"description": "The date/time of when the element was modified."
|
|
1976
|
+
},
|
|
1977
|
+
"dateDeleted": {
|
|
1978
|
+
"type": "string",
|
|
1979
|
+
"description": "The date/time of when the element was deleted, as we never actually remove items."
|
|
1980
|
+
},
|
|
1981
|
+
"@context": {
|
|
1982
|
+
"type": "array",
|
|
1983
|
+
"prefixItems": [
|
|
1984
|
+
{
|
|
1985
|
+
"const": "https://schema.twindev.org/aig/"
|
|
1432
1986
|
},
|
|
1433
|
-
|
|
1434
|
-
"
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1987
|
+
{
|
|
1988
|
+
"const": "https://schema.twindev.org/common/"
|
|
1989
|
+
}
|
|
1990
|
+
],
|
|
1991
|
+
"items": {
|
|
1992
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
1438
1993
|
},
|
|
1439
|
-
"
|
|
1994
|
+
"minItems": 2,
|
|
1995
|
+
"description": "JSON-LD Context."
|
|
1996
|
+
},
|
|
1997
|
+
"organizationIdentity": {
|
|
1998
|
+
"type": "string",
|
|
1999
|
+
"description": "The identity of the organization which controls the vertex."
|
|
2000
|
+
},
|
|
2001
|
+
"annotationObject": {
|
|
2002
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
2003
|
+
},
|
|
2004
|
+
"verified": {
|
|
2005
|
+
"type": "boolean",
|
|
2006
|
+
"description": "Is the vertex verified, will only be populated when verification is requested."
|
|
2007
|
+
},
|
|
2008
|
+
"version": {
|
|
2009
|
+
"type": "number",
|
|
2010
|
+
"description": "The version of the vertex, populated only when getting a specific version.\nMaps to https://schema.org/version."
|
|
2011
|
+
},
|
|
2012
|
+
"type": {
|
|
2013
|
+
"const": "AuditableItemGraphVertex",
|
|
2014
|
+
"description": "JSON-LD Type."
|
|
2015
|
+
},
|
|
2016
|
+
"aliasPatches": {
|
|
2017
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphListPatch"
|
|
2018
|
+
},
|
|
2019
|
+
"resourcePatches": {
|
|
2020
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphListPatch"
|
|
2021
|
+
},
|
|
2022
|
+
"edgePatches": {
|
|
2023
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphListPatch"
|
|
1440
2024
|
}
|
|
1441
2025
|
},
|
|
1442
|
-
"
|
|
1443
|
-
|
|
2026
|
+
"required": [
|
|
2027
|
+
"@context"
|
|
2028
|
+
]
|
|
1444
2029
|
},
|
|
1445
2030
|
"AuditableItemGraphUpdateRequest": {
|
|
2031
|
+
"description": "The full vertex payload. Replaces annotation and active sub-lists; omitted collections are cleared.",
|
|
1446
2032
|
"type": "object",
|
|
1447
2033
|
"properties": {
|
|
2034
|
+
"dateCreated": {
|
|
2035
|
+
"type": "string",
|
|
2036
|
+
"description": "The date/time of when the element was created."
|
|
2037
|
+
},
|
|
2038
|
+
"dateModified": {
|
|
2039
|
+
"type": "string",
|
|
2040
|
+
"description": "The date/time of when the element was modified."
|
|
2041
|
+
},
|
|
2042
|
+
"dateDeleted": {
|
|
2043
|
+
"type": "string",
|
|
2044
|
+
"description": "The date/time of when the element was deleted, as we never actually remove items."
|
|
2045
|
+
},
|
|
2046
|
+
"@context": {
|
|
2047
|
+
"type": "array",
|
|
2048
|
+
"prefixItems": [
|
|
2049
|
+
{
|
|
2050
|
+
"const": "https://schema.twindev.org/aig/"
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"const": "https://schema.twindev.org/common/"
|
|
2054
|
+
}
|
|
2055
|
+
],
|
|
2056
|
+
"items": {
|
|
2057
|
+
"$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
|
|
2058
|
+
},
|
|
2059
|
+
"minItems": 2,
|
|
2060
|
+
"description": "JSON-LD Context."
|
|
2061
|
+
},
|
|
2062
|
+
"type": {
|
|
2063
|
+
"const": "AuditableItemGraphVertex",
|
|
2064
|
+
"description": "JSON-LD Type."
|
|
2065
|
+
},
|
|
2066
|
+
"organizationIdentity": {
|
|
2067
|
+
"type": "string",
|
|
2068
|
+
"description": "The identity of the organization which controls the vertex."
|
|
2069
|
+
},
|
|
1448
2070
|
"annotationObject": {
|
|
1449
2071
|
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1450
2072
|
},
|
|
1451
2073
|
"aliases": {
|
|
1452
2074
|
"type": "array",
|
|
1453
2075
|
"items": {
|
|
1454
|
-
"
|
|
1455
|
-
"properties": {
|
|
1456
|
-
"id": {
|
|
1457
|
-
"type": "string"
|
|
1458
|
-
},
|
|
1459
|
-
"aliasFormat": {
|
|
1460
|
-
"type": "string"
|
|
1461
|
-
},
|
|
1462
|
-
"unique": {
|
|
1463
|
-
"type": "boolean"
|
|
1464
|
-
},
|
|
1465
|
-
"annotationObject": {
|
|
1466
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1467
|
-
}
|
|
1468
|
-
},
|
|
1469
|
-
"required": [
|
|
1470
|
-
"id"
|
|
1471
|
-
],
|
|
1472
|
-
"additionalProperties": false
|
|
2076
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphAlias"
|
|
1473
2077
|
},
|
|
1474
2078
|
"description": "Alternative aliases that can be used to identify the vertex."
|
|
1475
2079
|
},
|
|
1476
2080
|
"resources": {
|
|
1477
2081
|
"type": "array",
|
|
1478
2082
|
"items": {
|
|
1479
|
-
"
|
|
1480
|
-
"properties": {
|
|
1481
|
-
"id": {
|
|
1482
|
-
"type": "string"
|
|
1483
|
-
},
|
|
1484
|
-
"resourceObject": {
|
|
1485
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1486
|
-
}
|
|
1487
|
-
},
|
|
1488
|
-
"additionalProperties": false
|
|
2083
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphResource"
|
|
1489
2084
|
},
|
|
1490
2085
|
"description": "The resources attached to the vertex."
|
|
1491
2086
|
},
|
|
1492
2087
|
"edges": {
|
|
1493
2088
|
"type": "array",
|
|
1494
2089
|
"items": {
|
|
1495
|
-
"
|
|
1496
|
-
"properties": {
|
|
1497
|
-
"id": {
|
|
1498
|
-
"type": "string"
|
|
1499
|
-
},
|
|
1500
|
-
"targetId": {
|
|
1501
|
-
"type": "string"
|
|
1502
|
-
},
|
|
1503
|
-
"edgeRelationships": {
|
|
1504
|
-
"type": "array",
|
|
1505
|
-
"items": {
|
|
1506
|
-
"type": "string"
|
|
1507
|
-
}
|
|
1508
|
-
},
|
|
1509
|
-
"annotationObject": {
|
|
1510
|
-
"$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
|
|
1511
|
-
}
|
|
1512
|
-
},
|
|
1513
|
-
"required": [
|
|
1514
|
-
"targetId",
|
|
1515
|
-
"edgeRelationships"
|
|
1516
|
-
],
|
|
1517
|
-
"additionalProperties": false
|
|
2090
|
+
"$ref": "https://schema.twindev.org/aig/AuditableItemGraphEdge"
|
|
1518
2091
|
},
|
|
1519
|
-
"description": "
|
|
2092
|
+
"description": "Edges connected to the vertex."
|
|
2093
|
+
},
|
|
2094
|
+
"verified": {
|
|
2095
|
+
"type": "boolean",
|
|
2096
|
+
"description": "Is the vertex verified, will only be populated when verification is requested."
|
|
2097
|
+
},
|
|
2098
|
+
"version": {
|
|
2099
|
+
"type": "number",
|
|
2100
|
+
"description": "The version of the vertex, populated only when getting a specific version.\nMaps to https://schema.org/version."
|
|
1520
2101
|
}
|
|
1521
2102
|
},
|
|
1522
|
-
"
|
|
1523
|
-
|
|
2103
|
+
"required": [
|
|
2104
|
+
"@context",
|
|
2105
|
+
"type"
|
|
2106
|
+
]
|
|
1524
2107
|
},
|
|
1525
2108
|
"Error": {
|
|
2109
|
+
"description": "Model to describe serialized error.",
|
|
1526
2110
|
"type": "object",
|
|
1527
2111
|
"properties": {
|
|
1528
2112
|
"name": {
|
|
@@ -1531,7 +2115,7 @@
|
|
|
1531
2115
|
},
|
|
1532
2116
|
"message": {
|
|
1533
2117
|
"type": "string",
|
|
1534
|
-
"description": "The message for the error."
|
|
2118
|
+
"description": "The message for the error as an i18n key."
|
|
1535
2119
|
},
|
|
1536
2120
|
"source": {
|
|
1537
2121
|
"type": "string",
|
|
@@ -1553,44 +2137,37 @@
|
|
|
1553
2137
|
"required": [
|
|
1554
2138
|
"name",
|
|
1555
2139
|
"message"
|
|
1556
|
-
]
|
|
1557
|
-
"additionalProperties": false,
|
|
1558
|
-
"description": "Model to describe serialized error."
|
|
2140
|
+
]
|
|
1559
2141
|
},
|
|
1560
2142
|
"SortDirection": {
|
|
2143
|
+
"description": "The sort directions.",
|
|
1561
2144
|
"anyOf": [
|
|
1562
2145
|
{
|
|
1563
|
-
"type": "string",
|
|
1564
2146
|
"const": "asc",
|
|
1565
2147
|
"description": "Ascending."
|
|
1566
2148
|
},
|
|
1567
2149
|
{
|
|
1568
|
-
"type": "string",
|
|
1569
2150
|
"const": "desc",
|
|
1570
2151
|
"description": "Descending."
|
|
1571
2152
|
}
|
|
1572
|
-
]
|
|
1573
|
-
"description": "The sort directions."
|
|
2153
|
+
]
|
|
1574
2154
|
},
|
|
1575
2155
|
"VerifyDepth": {
|
|
2156
|
+
"description": "How deep to verify the signatures.",
|
|
1576
2157
|
"anyOf": [
|
|
1577
2158
|
{
|
|
1578
|
-
"type": "string",
|
|
1579
2159
|
"const": "none",
|
|
1580
2160
|
"description": "Do not verify any signatures."
|
|
1581
2161
|
},
|
|
1582
2162
|
{
|
|
1583
|
-
"type": "string",
|
|
1584
2163
|
"const": "current",
|
|
1585
2164
|
"description": "Verify only the most recent signature."
|
|
1586
2165
|
},
|
|
1587
2166
|
{
|
|
1588
|
-
"type": "string",
|
|
1589
2167
|
"const": "all",
|
|
1590
2168
|
"description": "Verify all the signatures."
|
|
1591
2169
|
}
|
|
1592
|
-
]
|
|
1593
|
-
"description": "How deep to verify the signatures."
|
|
2170
|
+
]
|
|
1594
2171
|
}
|
|
1595
2172
|
},
|
|
1596
2173
|
"securitySchemes": {
|