@3sixty/auditable-item-graph-service 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/auditableItemGraphRoutes.js +1136 -0
- package/dist/es/auditableItemGraphRoutes.js.map +1 -0
- package/dist/es/auditableItemGraphService.js +1913 -0
- package/dist/es/auditableItemGraphService.js.map +1 -0
- package/dist/es/entities/auditableItemGraphAlias.js +70 -0
- package/dist/es/entities/auditableItemGraphAlias.js.map +1 -0
- package/dist/es/entities/auditableItemGraphChangeset.js +79 -0
- package/dist/es/entities/auditableItemGraphChangeset.js.map +1 -0
- package/dist/es/entities/auditableItemGraphEdge.js +70 -0
- package/dist/es/entities/auditableItemGraphEdge.js.map +1 -0
- package/dist/es/entities/auditableItemGraphPatch.js +45 -0
- package/dist/es/entities/auditableItemGraphPatch.js.map +1 -0
- package/dist/es/entities/auditableItemGraphResource.js +54 -0
- package/dist/es/entities/auditableItemGraphResource.js.map +1 -0
- package/dist/es/entities/auditableItemGraphVertex.js +97 -0
- package/dist/es/entities/auditableItemGraphVertex.js.map +1 -0
- package/dist/es/entities/auditableItemGraphVertexIndex.js +95 -0
- package/dist/es/entities/auditableItemGraphVertexIndex.js.map +1 -0
- package/dist/es/entities/auditableItemGraphVertexV0.js +107 -0
- package/dist/es/entities/auditableItemGraphVertexV0.js.map +1 -0
- package/dist/es/entities/auditableItemGraphVertexV1.js +113 -0
- package/dist/es/entities/auditableItemGraphVertexV1.js.map +1 -0
- package/dist/es/index.js +19 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphServiceConfig.js +4 -0
- package/dist/es/models/IAuditableItemGraphServiceConfig.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphServiceConstructorOptions.js +2 -0
- package/dist/es/models/IAuditableItemGraphServiceConstructorOptions.js.map +1 -0
- package/dist/es/models/IAuditableItemGraphServiceContext.js +4 -0
- package/dist/es/models/IAuditableItemGraphServiceContext.js.map +1 -0
- package/dist/es/restEntryPoints.js +13 -0
- package/dist/es/restEntryPoints.js.map +1 -0
- package/dist/es/schema.js +27 -0
- package/dist/es/schema.js.map +1 -0
- package/dist/es/utils/auditableItemGraphVertexIndexHelper.js +57 -0
- package/dist/es/utils/auditableItemGraphVertexIndexHelper.js.map +1 -0
- package/dist/types/auditableItemGraphRoutes.d.ts +94 -0
- package/dist/types/auditableItemGraphService.d.ts +164 -0
- package/dist/types/entities/auditableItemGraphAlias.d.ts +34 -0
- package/dist/types/entities/auditableItemGraphChangeset.d.ts +34 -0
- package/dist/types/entities/auditableItemGraphEdge.d.ts +34 -0
- package/dist/types/entities/auditableItemGraphPatch.d.ts +21 -0
- package/dist/types/entities/auditableItemGraphResource.d.ts +26 -0
- package/dist/types/entities/auditableItemGraphVertex.d.ts +50 -0
- package/dist/types/entities/auditableItemGraphVertexIndex.d.ts +39 -0
- package/dist/types/entities/auditableItemGraphVertexV0.d.ts +53 -0
- package/dist/types/entities/auditableItemGraphVertexV1.d.ts +58 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/models/IAuditableItemGraphServiceConfig.d.ts +9 -0
- package/dist/types/models/IAuditableItemGraphServiceConstructorOptions.d.ts +38 -0
- package/dist/types/models/IAuditableItemGraphServiceContext.d.ts +17 -0
- package/dist/types/restEntryPoints.d.ts +5 -0
- package/dist/types/schema.d.ts +4 -0
- package/dist/types/utils/auditableItemGraphVertexIndexHelper.d.ts +25 -0
- package/docs/changelog.md +16 -0
- package/docs/examples.md +273 -0
- package/docs/open-api/spec.json +2190 -0
- package/docs/reference/classes/AuditableItemGraphAlias.md +69 -0
- package/docs/reference/classes/AuditableItemGraphChangeset.md +69 -0
- package/docs/reference/classes/AuditableItemGraphEdge.md +69 -0
- package/docs/reference/classes/AuditableItemGraphPatch.md +45 -0
- package/docs/reference/classes/AuditableItemGraphResource.md +53 -0
- package/docs/reference/classes/AuditableItemGraphService.md +539 -0
- package/docs/reference/classes/AuditableItemGraphVertex.md +93 -0
- package/docs/reference/classes/AuditableItemGraphVertexIndex.md +75 -0
- package/docs/reference/classes/AuditableItemGraphVertexIndexHelper.md +84 -0
- package/docs/reference/classes/AuditableItemGraphVertexV0.md +101 -0
- package/docs/reference/classes/AuditableItemGraphVertexV1.md +109 -0
- package/docs/reference/functions/auditableItemGraphChangesetGet.md +31 -0
- package/docs/reference/functions/auditableItemGraphChangesetList.md +31 -0
- package/docs/reference/functions/auditableItemGraphCreate.md +37 -0
- package/docs/reference/functions/auditableItemGraphGet.md +31 -0
- package/docs/reference/functions/auditableItemGraphList.md +31 -0
- package/docs/reference/functions/auditableItemGraphRemoveProof.md +31 -0
- package/docs/reference/functions/auditableItemGraphUpdate.md +31 -0
- 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/functions/generateRestRoutesAuditableItemGraph.md +25 -0
- package/docs/reference/functions/initSchema.md +9 -0
- package/docs/reference/index.md +40 -0
- package/docs/reference/interfaces/IAuditableItemGraphServiceConfig.md +11 -0
- package/docs/reference/interfaces/IAuditableItemGraphServiceConstructorOptions.md +83 -0
- package/docs/reference/variables/restEntryPoints.md +5 -0
- package/docs/reference/variables/tagsAuditableItemGraph.md +5 -0
- package/locales/en.json +34 -0
- package/package.json +64 -5
|
@@ -0,0 +1,2190 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.1.1",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "3Sixty - Test Endpoints",
|
|
5
|
+
"description": "REST API for 3Sixty - Test Endpoints.",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"license": {
|
|
8
|
+
"name": "Apache 2.0 License",
|
|
9
|
+
"url": "https://opensource.org/licenses/Apache-2.0"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"servers": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://localhost"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"tags": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Auditable Item Graph",
|
|
20
|
+
"description": "Endpoints which are modelled to access an auditable item graph contract."
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"paths": {
|
|
24
|
+
"/auditable-item-graph": {
|
|
25
|
+
"post": {
|
|
26
|
+
"operationId": "auditableItemGraphCreate",
|
|
27
|
+
"summary": "Create a new graph vertex",
|
|
28
|
+
"tags": [
|
|
29
|
+
"Auditable Item Graph"
|
|
30
|
+
],
|
|
31
|
+
"security": [
|
|
32
|
+
{
|
|
33
|
+
"jwtBearerAuthScheme": []
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"requestBody": {
|
|
37
|
+
"description": "Create an auditable item graph vertex.",
|
|
38
|
+
"required": true,
|
|
39
|
+
"content": {
|
|
40
|
+
"application/json": {
|
|
41
|
+
"schema": {
|
|
42
|
+
"$ref": "#/components/schemas/AuditableItemGraphCreateRequest"
|
|
43
|
+
},
|
|
44
|
+
"examples": {
|
|
45
|
+
"auditableItemGraphCreateRequestExample": {
|
|
46
|
+
"value": {
|
|
47
|
+
"@context": [
|
|
48
|
+
"https://schema.3sixty.global/aig/",
|
|
49
|
+
"https://schema.3sixty.global/common/"
|
|
50
|
+
],
|
|
51
|
+
"type": "AuditableItemGraphVertex",
|
|
52
|
+
"annotationObject": {
|
|
53
|
+
"@context": "https://schema.org",
|
|
54
|
+
"@type": "Note",
|
|
55
|
+
"content": "This is a simple note"
|
|
56
|
+
},
|
|
57
|
+
"aliases": [
|
|
58
|
+
{
|
|
59
|
+
"type": "AuditableItemGraphAlias",
|
|
60
|
+
"id": "bar456",
|
|
61
|
+
"annotationObject": {
|
|
62
|
+
"@context": "https://schema.org",
|
|
63
|
+
"@type": "Note",
|
|
64
|
+
"content": "This is a simple note"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"type": "AuditableItemGraphAlias",
|
|
69
|
+
"id": "foo321",
|
|
70
|
+
"annotationObject": {
|
|
71
|
+
"@context": "https://schema.org",
|
|
72
|
+
"@type": "Note",
|
|
73
|
+
"content": "This is a simple note"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"resources": [
|
|
78
|
+
{
|
|
79
|
+
"type": "AuditableItemGraphResource",
|
|
80
|
+
"id": "resource1",
|
|
81
|
+
"resourceObject": {
|
|
82
|
+
"@context": "https://schema.org",
|
|
83
|
+
"@type": "Note",
|
|
84
|
+
"content": "This is a simple note"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"type": "AuditableItemGraphResource",
|
|
89
|
+
"id": "resource2",
|
|
90
|
+
"resourceObject": {
|
|
91
|
+
"@context": "https://schema.org",
|
|
92
|
+
"@type": "Note",
|
|
93
|
+
"content": "This is a simple note"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"edges": [
|
|
98
|
+
{
|
|
99
|
+
"type": "AuditableItemGraphEdge",
|
|
100
|
+
"targetId": "aig:1234567890",
|
|
101
|
+
"edgeRelationships": [
|
|
102
|
+
"frenemy"
|
|
103
|
+
],
|
|
104
|
+
"annotationObject": {
|
|
105
|
+
"@context": "https://schema.org",
|
|
106
|
+
"@type": "Note",
|
|
107
|
+
"content": "This is a simple note"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "AuditableItemGraphEdge",
|
|
112
|
+
"targetId": "aig:45678901234",
|
|
113
|
+
"edgeRelationships": [
|
|
114
|
+
"end"
|
|
115
|
+
],
|
|
116
|
+
"annotationObject": {
|
|
117
|
+
"@context": "https://schema.org",
|
|
118
|
+
"@type": "Note",
|
|
119
|
+
"content": "This is a simple note"
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"responses": {
|
|
130
|
+
"201": {
|
|
131
|
+
"description": "The rest request ended in created response.",
|
|
132
|
+
"headers": {
|
|
133
|
+
"location": {
|
|
134
|
+
"schema": {
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
"description": "e.g. aig%3A1234567890"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"400": {
|
|
142
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
143
|
+
"content": {
|
|
144
|
+
"application/json": {
|
|
145
|
+
"schema": {
|
|
146
|
+
"$ref": "#/components/schemas/Error"
|
|
147
|
+
},
|
|
148
|
+
"examples": {
|
|
149
|
+
"exampleResponse": {
|
|
150
|
+
"value": {
|
|
151
|
+
"name": "GeneralError",
|
|
152
|
+
"message": "errorMessage",
|
|
153
|
+
"properties": {
|
|
154
|
+
"foo": "bar"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"401": {
|
|
163
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
164
|
+
"content": {
|
|
165
|
+
"application/json": {
|
|
166
|
+
"schema": {
|
|
167
|
+
"$ref": "#/components/schemas/Error"
|
|
168
|
+
},
|
|
169
|
+
"examples": {
|
|
170
|
+
"exampleResponse": {
|
|
171
|
+
"value": {
|
|
172
|
+
"name": "UnauthorizedError",
|
|
173
|
+
"message": "errorMessage"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"500": {
|
|
181
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
182
|
+
"content": {
|
|
183
|
+
"application/json": {
|
|
184
|
+
"schema": {
|
|
185
|
+
"$ref": "#/components/schemas/Error"
|
|
186
|
+
},
|
|
187
|
+
"examples": {
|
|
188
|
+
"exampleResponse": {
|
|
189
|
+
"value": {
|
|
190
|
+
"name": "InternalServerError",
|
|
191
|
+
"message": "errorMessage"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
"get": {
|
|
201
|
+
"operationId": "auditableItemGraphList",
|
|
202
|
+
"summary": "Query graph vertices by id or alias",
|
|
203
|
+
"tags": [
|
|
204
|
+
"Auditable Item Graph"
|
|
205
|
+
],
|
|
206
|
+
"parameters": [
|
|
207
|
+
{
|
|
208
|
+
"name": "id",
|
|
209
|
+
"description": "The id or alias to try and find.",
|
|
210
|
+
"in": "query",
|
|
211
|
+
"required": false,
|
|
212
|
+
"schema": {
|
|
213
|
+
"type": "string"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "idMode",
|
|
218
|
+
"description": "Which field to look in with the id, defaults to both.",
|
|
219
|
+
"in": "query",
|
|
220
|
+
"required": false,
|
|
221
|
+
"schema": {
|
|
222
|
+
"anyOf": [
|
|
223
|
+
{
|
|
224
|
+
"const": "id"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"const": "alias"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"const": "both"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "idExact",
|
|
237
|
+
"description": "Find only exact matches, default to false meaning partial matching.",
|
|
238
|
+
"in": "query",
|
|
239
|
+
"required": false,
|
|
240
|
+
"schema": {
|
|
241
|
+
"type": "string"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "resourceTypes",
|
|
246
|
+
"description": "Include vertices with specific resource types, comma separated.",
|
|
247
|
+
"in": "query",
|
|
248
|
+
"required": false,
|
|
249
|
+
"schema": {
|
|
250
|
+
"type": "string"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "conditions",
|
|
255
|
+
"description": "The conditions to filter the streams, JSON stringified `EntityCondition<IAuditableItemGraphVertex>`.",
|
|
256
|
+
"in": "query",
|
|
257
|
+
"required": false,
|
|
258
|
+
"schema": {
|
|
259
|
+
"type": "string"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"name": "orderBy",
|
|
264
|
+
"description": "The order for the results, default to dateCreated.",
|
|
265
|
+
"in": "query",
|
|
266
|
+
"required": false,
|
|
267
|
+
"schema": {
|
|
268
|
+
"enum": [
|
|
269
|
+
"dateCreated",
|
|
270
|
+
"dateModified"
|
|
271
|
+
]
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "orderByDirection",
|
|
276
|
+
"description": "The direction for the order, defaults to desc.",
|
|
277
|
+
"in": "query",
|
|
278
|
+
"required": false,
|
|
279
|
+
"schema": {
|
|
280
|
+
"$ref": "#/components/schemas/SortDirection"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"name": "properties",
|
|
285
|
+
"description": "The properties to return as a comma separated list, defaults to \"id,dateCreated,aliases,annotationObject\".",
|
|
286
|
+
"in": "query",
|
|
287
|
+
"required": false,
|
|
288
|
+
"schema": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "cursor",
|
|
294
|
+
"description": "The optional cursor to get next chunk.",
|
|
295
|
+
"in": "query",
|
|
296
|
+
"required": false,
|
|
297
|
+
"schema": {
|
|
298
|
+
"type": "string"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "limit",
|
|
303
|
+
"description": "The maximum number of entities to return, a page can contain fewer so follow the cursor\nuntil it is absent to read them all.",
|
|
304
|
+
"in": "query",
|
|
305
|
+
"required": false,
|
|
306
|
+
"schema": {
|
|
307
|
+
"type": "string"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"name": "accept",
|
|
312
|
+
"in": "header",
|
|
313
|
+
"required": true,
|
|
314
|
+
"schema": {
|
|
315
|
+
"type": "string"
|
|
316
|
+
},
|
|
317
|
+
"style": "simple"
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"security": [
|
|
321
|
+
{
|
|
322
|
+
"jwtBearerAuthScheme": []
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"responses": {
|
|
326
|
+
"200": {
|
|
327
|
+
"description": "The response to getting the a list of the vertices with matching ids or aliases.",
|
|
328
|
+
"content": {
|
|
329
|
+
"application/json": {
|
|
330
|
+
"schema": {
|
|
331
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphVertexList"
|
|
332
|
+
},
|
|
333
|
+
"examples": {
|
|
334
|
+
"auditableItemGraphListResponseExample": {
|
|
335
|
+
"value": {
|
|
336
|
+
"@context": [
|
|
337
|
+
"https://schema.org",
|
|
338
|
+
"https://schema.3sixty.global/aig/",
|
|
339
|
+
"https://schema.3sixty.global/common/"
|
|
340
|
+
],
|
|
341
|
+
"type": [
|
|
342
|
+
"ItemList",
|
|
343
|
+
"AuditableItemGraphVertexList"
|
|
344
|
+
],
|
|
345
|
+
"itemListElement": [
|
|
346
|
+
{
|
|
347
|
+
"@context": [
|
|
348
|
+
"https://schema.3sixty.global/aig/",
|
|
349
|
+
"https://schema.3sixty.global/common/",
|
|
350
|
+
"https://schema.org"
|
|
351
|
+
],
|
|
352
|
+
"type": "AuditableItemGraphVertex",
|
|
353
|
+
"id": "0101010101010101010101010101010101010101010101010101010101010101",
|
|
354
|
+
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
355
|
+
"aliases": [
|
|
356
|
+
{
|
|
357
|
+
"@context": [
|
|
358
|
+
"https://schema.3sixty.global/aig/",
|
|
359
|
+
"https://schema.3sixty.global/common/",
|
|
360
|
+
"https://schema.org"
|
|
361
|
+
],
|
|
362
|
+
"type": "AuditableItemGraphAlias",
|
|
363
|
+
"id": "foo4",
|
|
364
|
+
"dateCreated": "2024-08-22T11:55:16.271Z"
|
|
365
|
+
}
|
|
366
|
+
]
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"application/ld+json": {
|
|
374
|
+
"schema": {
|
|
375
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphVertexList"
|
|
376
|
+
},
|
|
377
|
+
"examples": {
|
|
378
|
+
"auditableItemGraphJsonLdListResponseExample": {
|
|
379
|
+
"value": {
|
|
380
|
+
"@context": [
|
|
381
|
+
"https://schema.org",
|
|
382
|
+
"https://schema.3sixty.global/aig/",
|
|
383
|
+
"https://schema.3sixty.global/common/"
|
|
384
|
+
],
|
|
385
|
+
"type": [
|
|
386
|
+
"ItemList",
|
|
387
|
+
"AuditableItemGraphVertexList"
|
|
388
|
+
],
|
|
389
|
+
"itemListElement": [
|
|
390
|
+
{
|
|
391
|
+
"@context": [
|
|
392
|
+
"https://schema.3sixty.global/aig/",
|
|
393
|
+
"https://schema.3sixty.global/common/",
|
|
394
|
+
"https://schema.org"
|
|
395
|
+
],
|
|
396
|
+
"type": "AuditableItemGraphVertex",
|
|
397
|
+
"id": "0101010101010101010101010101010101010101010101010101010101010101",
|
|
398
|
+
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
399
|
+
"aliases": [
|
|
400
|
+
{
|
|
401
|
+
"@context": [
|
|
402
|
+
"https://schema.3sixty.global/aig/",
|
|
403
|
+
"https://schema.3sixty.global/common/",
|
|
404
|
+
"https://schema.org"
|
|
405
|
+
],
|
|
406
|
+
"type": "AuditableItemGraphAlias",
|
|
407
|
+
"id": "foo4",
|
|
408
|
+
"dateCreated": "2024-08-22T11:55:16.271Z"
|
|
409
|
+
}
|
|
410
|
+
]
|
|
411
|
+
}
|
|
412
|
+
]
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
"headers": {
|
|
419
|
+
"content-type": {
|
|
420
|
+
"schema": {
|
|
421
|
+
"type": "string"
|
|
422
|
+
},
|
|
423
|
+
"description": "e.g. application/ld+json"
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
"400": {
|
|
428
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
429
|
+
"content": {
|
|
430
|
+
"application/json": {
|
|
431
|
+
"schema": {
|
|
432
|
+
"$ref": "#/components/schemas/Error"
|
|
433
|
+
},
|
|
434
|
+
"examples": {
|
|
435
|
+
"exampleResponse": {
|
|
436
|
+
"value": {
|
|
437
|
+
"name": "GeneralError",
|
|
438
|
+
"message": "errorMessage",
|
|
439
|
+
"properties": {
|
|
440
|
+
"foo": "bar"
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
"401": {
|
|
449
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
450
|
+
"content": {
|
|
451
|
+
"application/json": {
|
|
452
|
+
"schema": {
|
|
453
|
+
"$ref": "#/components/schemas/Error"
|
|
454
|
+
},
|
|
455
|
+
"examples": {
|
|
456
|
+
"exampleResponse": {
|
|
457
|
+
"value": {
|
|
458
|
+
"name": "UnauthorizedError",
|
|
459
|
+
"message": "errorMessage"
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"500": {
|
|
467
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
468
|
+
"content": {
|
|
469
|
+
"application/json": {
|
|
470
|
+
"schema": {
|
|
471
|
+
"$ref": "#/components/schemas/Error"
|
|
472
|
+
},
|
|
473
|
+
"examples": {
|
|
474
|
+
"exampleResponse": {
|
|
475
|
+
"value": {
|
|
476
|
+
"name": "InternalServerError",
|
|
477
|
+
"message": "errorMessage"
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
"/auditable-item-graph/{id}": {
|
|
488
|
+
"get": {
|
|
489
|
+
"operationId": "auditableItemGraphGet",
|
|
490
|
+
"summary": "Get a graph vertex",
|
|
491
|
+
"tags": [
|
|
492
|
+
"Auditable Item Graph"
|
|
493
|
+
],
|
|
494
|
+
"parameters": [
|
|
495
|
+
{
|
|
496
|
+
"name": "id",
|
|
497
|
+
"description": "The id of the vertex to get.",
|
|
498
|
+
"in": "path",
|
|
499
|
+
"required": true,
|
|
500
|
+
"schema": {
|
|
501
|
+
"type": "string"
|
|
502
|
+
},
|
|
503
|
+
"style": "simple",
|
|
504
|
+
"example": "aig:1234567890"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"name": "includeDeleted",
|
|
508
|
+
"description": "Whether to include deleted aliases, resource, edges, defaults to false.",
|
|
509
|
+
"in": "query",
|
|
510
|
+
"required": false,
|
|
511
|
+
"schema": {
|
|
512
|
+
"type": "string"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "verifySignatureDepth",
|
|
517
|
+
"description": "How many signatures to verify, none, current or all, defaults to \"none\".",
|
|
518
|
+
"in": "query",
|
|
519
|
+
"required": false,
|
|
520
|
+
"schema": {
|
|
521
|
+
"$ref": "#/components/schemas/VerifyDepth"
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "accept",
|
|
526
|
+
"in": "header",
|
|
527
|
+
"required": true,
|
|
528
|
+
"schema": {
|
|
529
|
+
"type": "string"
|
|
530
|
+
},
|
|
531
|
+
"style": "simple",
|
|
532
|
+
"example": "application/json"
|
|
533
|
+
}
|
|
534
|
+
],
|
|
535
|
+
"security": [
|
|
536
|
+
{
|
|
537
|
+
"jwtBearerAuthScheme": []
|
|
538
|
+
}
|
|
539
|
+
],
|
|
540
|
+
"responses": {
|
|
541
|
+
"200": {
|
|
542
|
+
"description": "Response to getting an auditable item graph vertex.",
|
|
543
|
+
"content": {
|
|
544
|
+
"application/json": {
|
|
545
|
+
"schema": {
|
|
546
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphVertex"
|
|
547
|
+
},
|
|
548
|
+
"examples": {
|
|
549
|
+
"auditableItemGraphGetResponseExample": {
|
|
550
|
+
"value": {
|
|
551
|
+
"@context": [
|
|
552
|
+
"https://schema.3sixty.global/aig/",
|
|
553
|
+
"https://schema.3sixty.global/common/",
|
|
554
|
+
"https://schema.org"
|
|
555
|
+
],
|
|
556
|
+
"type": "AuditableItemGraphVertex",
|
|
557
|
+
"id": "aig:1234567890",
|
|
558
|
+
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
559
|
+
"dateModified": "2024-08-22T11:55:16.271Z",
|
|
560
|
+
"annotationObject": {
|
|
561
|
+
"@context": "https://schema.org",
|
|
562
|
+
"@type": "Note",
|
|
563
|
+
"content": "This is a simple note"
|
|
564
|
+
},
|
|
565
|
+
"aliases": [
|
|
566
|
+
{
|
|
567
|
+
"@context": [
|
|
568
|
+
"https://schema.3sixty.global/aig/",
|
|
569
|
+
"https://schema.3sixty.global/common/",
|
|
570
|
+
"https://schema.org"
|
|
571
|
+
],
|
|
572
|
+
"type": "AuditableItemGraphAlias",
|
|
573
|
+
"id": "tst:1234567890",
|
|
574
|
+
"dateCreated": "2024-08-22T11:55:16.271Z"
|
|
575
|
+
}
|
|
576
|
+
]
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
},
|
|
581
|
+
"application/ld+json": {
|
|
582
|
+
"schema": {
|
|
583
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphVertex"
|
|
584
|
+
},
|
|
585
|
+
"examples": {
|
|
586
|
+
"auditableItemGraphJsonLdGetResponseExample": {
|
|
587
|
+
"value": {
|
|
588
|
+
"@context": [
|
|
589
|
+
"https://schema.3sixty.global/aig/",
|
|
590
|
+
"https://schema.3sixty.global/common/",
|
|
591
|
+
"https://schema.org"
|
|
592
|
+
],
|
|
593
|
+
"type": "AuditableItemGraphVertex",
|
|
594
|
+
"id": "aig:1234567890",
|
|
595
|
+
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
596
|
+
"dateModified": "2024-08-22T11:55:16.271Z",
|
|
597
|
+
"annotationObject": {
|
|
598
|
+
"@context": "https://schema.org",
|
|
599
|
+
"@type": "Note",
|
|
600
|
+
"content": "This is a simple note"
|
|
601
|
+
},
|
|
602
|
+
"aliases": [
|
|
603
|
+
{
|
|
604
|
+
"@context": [
|
|
605
|
+
"https://schema.3sixty.global/aig/",
|
|
606
|
+
"https://schema.3sixty.global/common/",
|
|
607
|
+
"https://schema.org"
|
|
608
|
+
],
|
|
609
|
+
"type": "AuditableItemGraphAlias",
|
|
610
|
+
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
611
|
+
"id": "tst:1234567890"
|
|
612
|
+
}
|
|
613
|
+
]
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
"headers": {
|
|
620
|
+
"content-type": {
|
|
621
|
+
"schema": {
|
|
622
|
+
"type": "string"
|
|
623
|
+
},
|
|
624
|
+
"description": "e.g. application/ld+json"
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
"400": {
|
|
629
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
630
|
+
"content": {
|
|
631
|
+
"application/json": {
|
|
632
|
+
"schema": {
|
|
633
|
+
"$ref": "#/components/schemas/Error"
|
|
634
|
+
},
|
|
635
|
+
"examples": {
|
|
636
|
+
"exampleResponse": {
|
|
637
|
+
"value": {
|
|
638
|
+
"name": "GeneralError",
|
|
639
|
+
"message": "errorMessage",
|
|
640
|
+
"properties": {
|
|
641
|
+
"foo": "bar"
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
},
|
|
649
|
+
"401": {
|
|
650
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
651
|
+
"content": {
|
|
652
|
+
"application/json": {
|
|
653
|
+
"schema": {
|
|
654
|
+
"$ref": "#/components/schemas/Error"
|
|
655
|
+
},
|
|
656
|
+
"examples": {
|
|
657
|
+
"exampleResponse": {
|
|
658
|
+
"value": {
|
|
659
|
+
"name": "UnauthorizedError",
|
|
660
|
+
"message": "errorMessage"
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
"500": {
|
|
668
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
669
|
+
"content": {
|
|
670
|
+
"application/json": {
|
|
671
|
+
"schema": {
|
|
672
|
+
"$ref": "#/components/schemas/Error"
|
|
673
|
+
},
|
|
674
|
+
"examples": {
|
|
675
|
+
"exampleResponse": {
|
|
676
|
+
"value": {
|
|
677
|
+
"name": "InternalServerError",
|
|
678
|
+
"message": "errorMessage"
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
"put": {
|
|
688
|
+
"operationId": "auditableItemGraphUpdate",
|
|
689
|
+
"summary": "Update a graph vertex",
|
|
690
|
+
"tags": [
|
|
691
|
+
"Auditable Item Graph"
|
|
692
|
+
],
|
|
693
|
+
"parameters": [
|
|
694
|
+
{
|
|
695
|
+
"name": "id",
|
|
696
|
+
"description": "The id of the vertex to update.",
|
|
697
|
+
"in": "path",
|
|
698
|
+
"required": true,
|
|
699
|
+
"schema": {
|
|
700
|
+
"type": "string"
|
|
701
|
+
},
|
|
702
|
+
"style": "simple",
|
|
703
|
+
"example": "aig:1234567890"
|
|
704
|
+
}
|
|
705
|
+
],
|
|
706
|
+
"security": [
|
|
707
|
+
{
|
|
708
|
+
"jwtBearerAuthScheme": []
|
|
709
|
+
}
|
|
710
|
+
],
|
|
711
|
+
"requestBody": {
|
|
712
|
+
"description": "Update an auditable item graph vertex (PUT - full replacement of vertex state).",
|
|
713
|
+
"required": true,
|
|
714
|
+
"content": {
|
|
715
|
+
"application/json": {
|
|
716
|
+
"schema": {
|
|
717
|
+
"$ref": "#/components/schemas/AuditableItemGraphUpdateRequest"
|
|
718
|
+
},
|
|
719
|
+
"examples": {
|
|
720
|
+
"auditableItemGraphUpdateRequestExample": {
|
|
721
|
+
"value": {
|
|
722
|
+
"@context": [
|
|
723
|
+
"https://schema.3sixty.global/aig/",
|
|
724
|
+
"https://schema.3sixty.global/common/"
|
|
725
|
+
],
|
|
726
|
+
"type": "AuditableItemGraphVertex",
|
|
727
|
+
"annotationObject": {
|
|
728
|
+
"@context": "https://schema.org",
|
|
729
|
+
"@type": "Note",
|
|
730
|
+
"content": "This is a simple note"
|
|
731
|
+
},
|
|
732
|
+
"aliases": [
|
|
733
|
+
{
|
|
734
|
+
"type": "AuditableItemGraphAlias",
|
|
735
|
+
"id": "bar456",
|
|
736
|
+
"annotationObject": {
|
|
737
|
+
"@context": "https://schema.org",
|
|
738
|
+
"@type": "Note",
|
|
739
|
+
"content": "This is a simple note"
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
"type": "AuditableItemGraphAlias",
|
|
744
|
+
"id": "foo321",
|
|
745
|
+
"annotationObject": {
|
|
746
|
+
"@context": "https://schema.org",
|
|
747
|
+
"@type": "Note",
|
|
748
|
+
"content": "This is a simple note"
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
],
|
|
752
|
+
"resources": [
|
|
753
|
+
{
|
|
754
|
+
"type": "AuditableItemGraphResource",
|
|
755
|
+
"id": "resource1",
|
|
756
|
+
"resourceObject": {
|
|
757
|
+
"@context": "https://schema.org",
|
|
758
|
+
"@type": "Note",
|
|
759
|
+
"content": "This is a simple note"
|
|
760
|
+
}
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
"type": "AuditableItemGraphResource",
|
|
764
|
+
"id": "resource2",
|
|
765
|
+
"resourceObject": {
|
|
766
|
+
"@context": "https://schema.org",
|
|
767
|
+
"@type": "Note",
|
|
768
|
+
"content": "This is a simple note"
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
],
|
|
772
|
+
"edges": [
|
|
773
|
+
{
|
|
774
|
+
"type": "AuditableItemGraphEdge",
|
|
775
|
+
"id": "edge1",
|
|
776
|
+
"targetId": "aig:1234567890",
|
|
777
|
+
"edgeRelationships": [
|
|
778
|
+
"frenemy"
|
|
779
|
+
],
|
|
780
|
+
"annotationObject": {
|
|
781
|
+
"@context": "https://schema.org",
|
|
782
|
+
"@type": "Note",
|
|
783
|
+
"content": "This is a simple note"
|
|
784
|
+
}
|
|
785
|
+
},
|
|
786
|
+
{
|
|
787
|
+
"type": "AuditableItemGraphEdge",
|
|
788
|
+
"id": "edge2",
|
|
789
|
+
"targetId": "aig:45678901234",
|
|
790
|
+
"edgeRelationships": [
|
|
791
|
+
"end"
|
|
792
|
+
],
|
|
793
|
+
"annotationObject": {
|
|
794
|
+
"@context": "https://schema.org",
|
|
795
|
+
"@type": "Note",
|
|
796
|
+
"content": "This is a simple note"
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
]
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
},
|
|
806
|
+
"responses": {
|
|
807
|
+
"204": {
|
|
808
|
+
"description": "The rest request ended in success with no data."
|
|
809
|
+
},
|
|
810
|
+
"400": {
|
|
811
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
812
|
+
"content": {
|
|
813
|
+
"application/json": {
|
|
814
|
+
"schema": {
|
|
815
|
+
"$ref": "#/components/schemas/Error"
|
|
816
|
+
},
|
|
817
|
+
"examples": {
|
|
818
|
+
"exampleResponse": {
|
|
819
|
+
"value": {
|
|
820
|
+
"name": "GeneralError",
|
|
821
|
+
"message": "errorMessage",
|
|
822
|
+
"properties": {
|
|
823
|
+
"foo": "bar"
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"401": {
|
|
832
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
833
|
+
"content": {
|
|
834
|
+
"application/json": {
|
|
835
|
+
"schema": {
|
|
836
|
+
"$ref": "#/components/schemas/Error"
|
|
837
|
+
},
|
|
838
|
+
"examples": {
|
|
839
|
+
"exampleResponse": {
|
|
840
|
+
"value": {
|
|
841
|
+
"name": "UnauthorizedError",
|
|
842
|
+
"message": "errorMessage"
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
},
|
|
849
|
+
"500": {
|
|
850
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
851
|
+
"content": {
|
|
852
|
+
"application/json": {
|
|
853
|
+
"schema": {
|
|
854
|
+
"$ref": "#/components/schemas/Error"
|
|
855
|
+
},
|
|
856
|
+
"examples": {
|
|
857
|
+
"exampleResponse": {
|
|
858
|
+
"value": {
|
|
859
|
+
"name": "InternalServerError",
|
|
860
|
+
"message": "errorMessage"
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
},
|
|
869
|
+
"patch": {
|
|
870
|
+
"operationId": "auditableItemGraphUpdatePartial",
|
|
871
|
+
"summary": "Partially update a graph vertex",
|
|
872
|
+
"tags": [
|
|
873
|
+
"Auditable Item Graph"
|
|
874
|
+
],
|
|
875
|
+
"parameters": [
|
|
876
|
+
{
|
|
877
|
+
"name": "id",
|
|
878
|
+
"description": "The id of the vertex to update.",
|
|
879
|
+
"in": "path",
|
|
880
|
+
"required": true,
|
|
881
|
+
"schema": {
|
|
882
|
+
"type": "string"
|
|
883
|
+
},
|
|
884
|
+
"style": "simple",
|
|
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.3sixty.global/aig/",
|
|
906
|
+
"https://schema.3sixty.global/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
|
+
}
|
|
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": [
|
|
997
|
+
{
|
|
998
|
+
"name": "id",
|
|
999
|
+
"description": "The id of the vertex.",
|
|
1000
|
+
"in": "path",
|
|
1001
|
+
"required": true,
|
|
1002
|
+
"schema": {
|
|
1003
|
+
"type": "string"
|
|
1004
|
+
},
|
|
1005
|
+
"style": "simple",
|
|
1006
|
+
"example": "aig:1234567890"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"name": "version",
|
|
1010
|
+
"description": "The version number to get.",
|
|
1011
|
+
"in": "path",
|
|
1012
|
+
"required": true,
|
|
1013
|
+
"schema": {
|
|
1014
|
+
"type": "string"
|
|
1015
|
+
},
|
|
1016
|
+
"style": "simple",
|
|
1017
|
+
"example": "1"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"name": "accept",
|
|
1021
|
+
"in": "header",
|
|
1022
|
+
"required": true,
|
|
1023
|
+
"schema": {
|
|
1024
|
+
"type": "string"
|
|
1025
|
+
},
|
|
1026
|
+
"style": "simple",
|
|
1027
|
+
"example": "application/json"
|
|
1028
|
+
}
|
|
1029
|
+
],
|
|
1030
|
+
"security": [
|
|
1031
|
+
{
|
|
1032
|
+
"jwtBearerAuthScheme": []
|
|
1033
|
+
}
|
|
1034
|
+
],
|
|
1035
|
+
"responses": {
|
|
1036
|
+
"200": {
|
|
1037
|
+
"description": "Response to getting an auditable item graph vertex at a specific version.",
|
|
1038
|
+
"content": {
|
|
1039
|
+
"application/json": {
|
|
1040
|
+
"schema": {
|
|
1041
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphVertex"
|
|
1042
|
+
},
|
|
1043
|
+
"examples": {
|
|
1044
|
+
"auditableItemGraphVersionGetResponseExample": {
|
|
1045
|
+
"value": {
|
|
1046
|
+
"@context": [
|
|
1047
|
+
"https://schema.3sixty.global/aig/",
|
|
1048
|
+
"https://schema.3sixty.global/common/",
|
|
1049
|
+
"https://schema.org"
|
|
1050
|
+
],
|
|
1051
|
+
"type": "AuditableItemGraphVertex",
|
|
1052
|
+
"id": "aig:1234567890",
|
|
1053
|
+
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
1054
|
+
"version": 1
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
},
|
|
1061
|
+
"400": {
|
|
1062
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
1063
|
+
"content": {
|
|
1064
|
+
"application/json": {
|
|
1065
|
+
"schema": {
|
|
1066
|
+
"$ref": "#/components/schemas/Error"
|
|
1067
|
+
},
|
|
1068
|
+
"examples": {
|
|
1069
|
+
"exampleResponse": {
|
|
1070
|
+
"value": {
|
|
1071
|
+
"name": "GeneralError",
|
|
1072
|
+
"message": "errorMessage",
|
|
1073
|
+
"properties": {
|
|
1074
|
+
"foo": "bar"
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
},
|
|
1082
|
+
"401": {
|
|
1083
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
1084
|
+
"content": {
|
|
1085
|
+
"application/json": {
|
|
1086
|
+
"schema": {
|
|
1087
|
+
"$ref": "#/components/schemas/Error"
|
|
1088
|
+
},
|
|
1089
|
+
"examples": {
|
|
1090
|
+
"exampleResponse": {
|
|
1091
|
+
"value": {
|
|
1092
|
+
"name": "UnauthorizedError",
|
|
1093
|
+
"message": "errorMessage"
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1100
|
+
"500": {
|
|
1101
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
1102
|
+
"content": {
|
|
1103
|
+
"application/json": {
|
|
1104
|
+
"schema": {
|
|
1105
|
+
"$ref": "#/components/schemas/Error"
|
|
1106
|
+
},
|
|
1107
|
+
"examples": {
|
|
1108
|
+
"exampleResponse": {
|
|
1109
|
+
"value": {
|
|
1110
|
+
"name": "InternalServerError",
|
|
1111
|
+
"message": "errorMessage"
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
},
|
|
1121
|
+
"/auditable-item-graph/{id}/versions": {
|
|
1122
|
+
"get": {
|
|
1123
|
+
"operationId": "auditableItemGraphVersionList",
|
|
1124
|
+
"summary": "Get all versions of a graph vertex",
|
|
1125
|
+
"tags": [
|
|
1126
|
+
"Auditable Item Graph"
|
|
1127
|
+
],
|
|
1128
|
+
"parameters": [
|
|
1129
|
+
{
|
|
1130
|
+
"name": "id",
|
|
1131
|
+
"description": "The id of the vertex.",
|
|
1132
|
+
"in": "path",
|
|
1133
|
+
"required": true,
|
|
1134
|
+
"schema": {
|
|
1135
|
+
"type": "string"
|
|
1136
|
+
},
|
|
1137
|
+
"style": "simple",
|
|
1138
|
+
"example": "aig:1234567890"
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"name": "after",
|
|
1142
|
+
"description": "Only return versions created after this ISO 8601 timestamp (exclusive).",
|
|
1143
|
+
"in": "query",
|
|
1144
|
+
"required": false,
|
|
1145
|
+
"schema": {
|
|
1146
|
+
"type": "string"
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"name": "before",
|
|
1151
|
+
"description": "Only return versions created before this ISO 8601 timestamp (exclusive).",
|
|
1152
|
+
"in": "query",
|
|
1153
|
+
"required": false,
|
|
1154
|
+
"schema": {
|
|
1155
|
+
"type": "string"
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"name": "accept",
|
|
1160
|
+
"in": "header",
|
|
1161
|
+
"required": true,
|
|
1162
|
+
"schema": {
|
|
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.3sixty.global/aig/AuditableItemGraphVertexVersionList"
|
|
1181
|
+
},
|
|
1182
|
+
"examples": {
|
|
1183
|
+
"auditableItemGraphVersionListResponseExample": {
|
|
1184
|
+
"value": {
|
|
1185
|
+
"@context": [
|
|
1186
|
+
"https://schema.org",
|
|
1187
|
+
"https://schema.3sixty.global/aig/",
|
|
1188
|
+
"https://schema.3sixty.global/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.3sixty.global/aig/AuditableItemGraphChangeset"
|
|
1336
|
+
},
|
|
1337
|
+
"examples": {
|
|
1338
|
+
"auditableItemGraphChangesetGetResponseExample": {
|
|
1339
|
+
"value": {
|
|
1340
|
+
"@context": [
|
|
1341
|
+
"https://schema.3sixty.global/aig/",
|
|
1342
|
+
"https://schema.3sixty.global/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.3sixty.global/immutable-proof/",
|
|
1385
|
+
"type": "ImmutableProofVerification",
|
|
1386
|
+
"verified": true
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
"application/ld+json": {
|
|
1393
|
+
"schema": {
|
|
1394
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphChangeset"
|
|
1395
|
+
},
|
|
1396
|
+
"examples": {
|
|
1397
|
+
"auditableItemGraphChangesetJsonLdGetResponseExample": {
|
|
1398
|
+
"value": {
|
|
1399
|
+
"@context": [
|
|
1400
|
+
"https://schema.3sixty.global/aig/",
|
|
1401
|
+
"https://schema.3sixty.global/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.3sixty.global/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"
|
|
1566
|
+
}
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
"name": "accept",
|
|
1570
|
+
"in": "header",
|
|
1571
|
+
"required": true,
|
|
1572
|
+
"schema": {
|
|
1573
|
+
"type": "string"
|
|
1574
|
+
},
|
|
1575
|
+
"style": "simple",
|
|
1576
|
+
"example": "application/json"
|
|
1577
|
+
}
|
|
1578
|
+
],
|
|
1579
|
+
"security": [
|
|
1580
|
+
{
|
|
1581
|
+
"jwtBearerAuthScheme": []
|
|
1582
|
+
}
|
|
1583
|
+
],
|
|
1584
|
+
"responses": {
|
|
1585
|
+
"200": {
|
|
1586
|
+
"description": "Response to getting an auditable item graph vertex changeset.",
|
|
1587
|
+
"content": {
|
|
1588
|
+
"application/json": {
|
|
1589
|
+
"schema": {
|
|
1590
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphChangesetList"
|
|
1591
|
+
},
|
|
1592
|
+
"examples": {
|
|
1593
|
+
"auditableItemGraphChangesetListResponseExample": {
|
|
1594
|
+
"value": {
|
|
1595
|
+
"@context": [
|
|
1596
|
+
"https://schema.org",
|
|
1597
|
+
"https://schema.3sixty.global/aig/",
|
|
1598
|
+
"https://schema.3sixty.global/common/"
|
|
1599
|
+
],
|
|
1600
|
+
"type": [
|
|
1601
|
+
"ItemList",
|
|
1602
|
+
"AuditableItemGraphChangesetList"
|
|
1603
|
+
],
|
|
1604
|
+
"itemListElement": [
|
|
1605
|
+
{
|
|
1606
|
+
"type": "AuditableItemGraphChangeset",
|
|
1607
|
+
"id": "aig:1234567890",
|
|
1608
|
+
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
1609
|
+
"patches": [
|
|
1610
|
+
{
|
|
1611
|
+
"type": "AuditableItemGraphPatchOperation",
|
|
1612
|
+
"patchOperation": "add",
|
|
1613
|
+
"patchPath": "/annotationObject",
|
|
1614
|
+
"patchValue": {
|
|
1615
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
1616
|
+
"type": "Create",
|
|
1617
|
+
"actor": {
|
|
1618
|
+
"type": "Person",
|
|
1619
|
+
"id": "acct:person@example.org",
|
|
1620
|
+
"name": "Person"
|
|
1621
|
+
},
|
|
1622
|
+
"object": {
|
|
1623
|
+
"type": "Note",
|
|
1624
|
+
"content": "This is a simple note"
|
|
1625
|
+
},
|
|
1626
|
+
"published": "2015-01-25T12:34:56Z"
|
|
1627
|
+
}
|
|
1628
|
+
},
|
|
1629
|
+
{
|
|
1630
|
+
"type": "AuditableItemGraphPatchOperation",
|
|
1631
|
+
"patchOperation": "add",
|
|
1632
|
+
"patchPath": "/aliases",
|
|
1633
|
+
"patchValue": [
|
|
1634
|
+
{
|
|
1635
|
+
"id": "foo123",
|
|
1636
|
+
"dateCreated": "2015-01-25T12:34:56Z"
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"id": "bar456",
|
|
1640
|
+
"dateCreated": "2015-01-25T12:34:56Z"
|
|
1641
|
+
}
|
|
1642
|
+
]
|
|
1643
|
+
}
|
|
1644
|
+
],
|
|
1645
|
+
"verification": {
|
|
1646
|
+
"@context": "https://schema.3sixty.global/immutable-proof/",
|
|
1647
|
+
"type": "ImmutableProofVerification",
|
|
1648
|
+
"verified": true
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
]
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
},
|
|
1656
|
+
"application/ld+json": {
|
|
1657
|
+
"schema": {
|
|
1658
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphChangeset"
|
|
1659
|
+
},
|
|
1660
|
+
"examples": {
|
|
1661
|
+
"auditableItemGraphChangesetJsonLdGetResponseExample": {
|
|
1662
|
+
"value": {
|
|
1663
|
+
"@context": [
|
|
1664
|
+
"https://schema.org",
|
|
1665
|
+
"https://schema.3sixty.global/aig/",
|
|
1666
|
+
"https://schema.3sixty.global/common/",
|
|
1667
|
+
"https://schema.org"
|
|
1668
|
+
],
|
|
1669
|
+
"type": [
|
|
1670
|
+
"ItemList",
|
|
1671
|
+
"AuditableItemGraphChangesetList"
|
|
1672
|
+
],
|
|
1673
|
+
"itemListElement": [
|
|
1674
|
+
{
|
|
1675
|
+
"type": "AuditableItemGraphChangeset",
|
|
1676
|
+
"id": "aig:1234567890",
|
|
1677
|
+
"dateCreated": "2024-08-22T11:55:16.271Z",
|
|
1678
|
+
"patches": [
|
|
1679
|
+
{
|
|
1680
|
+
"type": "AuditableItemGraphPatchOperation",
|
|
1681
|
+
"patchOperation": "add",
|
|
1682
|
+
"patchPath": "/annotationObject",
|
|
1683
|
+
"patchValue": {
|
|
1684
|
+
"@context": "https://www.w3.org/ns/activitystreams",
|
|
1685
|
+
"type": "Create",
|
|
1686
|
+
"actor": {
|
|
1687
|
+
"type": "Person",
|
|
1688
|
+
"id": "acct:person@example.org",
|
|
1689
|
+
"name": "Person"
|
|
1690
|
+
},
|
|
1691
|
+
"object": {
|
|
1692
|
+
"type": "Note",
|
|
1693
|
+
"content": "This is a simple note"
|
|
1694
|
+
},
|
|
1695
|
+
"published": "2015-01-25T12:34:56Z"
|
|
1696
|
+
}
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"type": "AuditableItemGraphPatchOperation",
|
|
1700
|
+
"patchOperation": "add",
|
|
1701
|
+
"patchPath": "/aliases",
|
|
1702
|
+
"patchValue": [
|
|
1703
|
+
{
|
|
1704
|
+
"id": "foo123",
|
|
1705
|
+
"dateCreated": "2015-01-25T12:34:56Z"
|
|
1706
|
+
},
|
|
1707
|
+
{
|
|
1708
|
+
"id": "bar456",
|
|
1709
|
+
"dateCreated": "2015-01-25T12:34:56Z"
|
|
1710
|
+
}
|
|
1711
|
+
]
|
|
1712
|
+
}
|
|
1713
|
+
],
|
|
1714
|
+
"verification": {
|
|
1715
|
+
"@context": "https://schema.3sixty.global/immutable-proof/",
|
|
1716
|
+
"type": "ImmutableProofVerification",
|
|
1717
|
+
"verified": true
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
]
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
},
|
|
1726
|
+
"headers": {
|
|
1727
|
+
"content-type": {
|
|
1728
|
+
"schema": {
|
|
1729
|
+
"type": "string"
|
|
1730
|
+
},
|
|
1731
|
+
"description": "e.g. application/ld+json"
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
},
|
|
1735
|
+
"400": {
|
|
1736
|
+
"description": "The server cannot process the request, see the content for more details.",
|
|
1737
|
+
"content": {
|
|
1738
|
+
"application/json": {
|
|
1739
|
+
"schema": {
|
|
1740
|
+
"$ref": "#/components/schemas/Error"
|
|
1741
|
+
},
|
|
1742
|
+
"examples": {
|
|
1743
|
+
"exampleResponse": {
|
|
1744
|
+
"value": {
|
|
1745
|
+
"name": "GeneralError",
|
|
1746
|
+
"message": "errorMessage",
|
|
1747
|
+
"properties": {
|
|
1748
|
+
"foo": "bar"
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
},
|
|
1756
|
+
"401": {
|
|
1757
|
+
"description": "You are not authorized to use the API or no credentials were supplied, see the content for more details.",
|
|
1758
|
+
"content": {
|
|
1759
|
+
"application/json": {
|
|
1760
|
+
"schema": {
|
|
1761
|
+
"$ref": "#/components/schemas/Error"
|
|
1762
|
+
},
|
|
1763
|
+
"examples": {
|
|
1764
|
+
"exampleResponse": {
|
|
1765
|
+
"value": {
|
|
1766
|
+
"name": "UnauthorizedError",
|
|
1767
|
+
"message": "errorMessage"
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
},
|
|
1774
|
+
"500": {
|
|
1775
|
+
"description": "The server has encountered a situation it does not know how to handle, see the content for more details.",
|
|
1776
|
+
"content": {
|
|
1777
|
+
"application/json": {
|
|
1778
|
+
"schema": {
|
|
1779
|
+
"$ref": "#/components/schemas/Error"
|
|
1780
|
+
},
|
|
1781
|
+
"examples": {
|
|
1782
|
+
"exampleResponse": {
|
|
1783
|
+
"value": {
|
|
1784
|
+
"name": "InternalServerError",
|
|
1785
|
+
"message": "errorMessage"
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
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
|
+
}
|
|
1883
|
+
}
|
|
1884
|
+
},
|
|
1885
|
+
"components": {
|
|
1886
|
+
"schemas": {
|
|
1887
|
+
"AuditableItemGraphCreateRequest": {
|
|
1888
|
+
"description": "The data to be used in the vertex.",
|
|
1889
|
+
"type": "object",
|
|
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.3sixty.global/aig/"
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
"const": "https://schema.3sixty.global/common/"
|
|
1911
|
+
}
|
|
1912
|
+
],
|
|
1913
|
+
"items": {
|
|
1914
|
+
"$ref": "https://schema.3sixty.global/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
|
+
},
|
|
1927
|
+
"auditMode": {
|
|
1928
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphAuditMode"
|
|
1929
|
+
},
|
|
1930
|
+
"annotationObject": {
|
|
1931
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdNodeObject"
|
|
1932
|
+
},
|
|
1933
|
+
"aliases": {
|
|
1934
|
+
"type": "array",
|
|
1935
|
+
"items": {
|
|
1936
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphAlias"
|
|
1937
|
+
},
|
|
1938
|
+
"description": "Alternative aliases that can be used to identify the vertex."
|
|
1939
|
+
},
|
|
1940
|
+
"resources": {
|
|
1941
|
+
"type": "array",
|
|
1942
|
+
"items": {
|
|
1943
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphResource"
|
|
1944
|
+
},
|
|
1945
|
+
"description": "The resources attached to the vertex."
|
|
1946
|
+
},
|
|
1947
|
+
"edges": {
|
|
1948
|
+
"type": "array",
|
|
1949
|
+
"items": {
|
|
1950
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphEdge"
|
|
1951
|
+
},
|
|
1952
|
+
"description": "Edges connected to the vertex."
|
|
1953
|
+
},
|
|
1954
|
+
"verified": {
|
|
1955
|
+
"type": "boolean",
|
|
1956
|
+
"description": "Is the vertex verified, will only be populated when verification is requested.\nAlways undefined when the vertex is in bypass mode."
|
|
1957
|
+
},
|
|
1958
|
+
"version": {
|
|
1959
|
+
"type": "number",
|
|
1960
|
+
"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."
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
"required": [
|
|
1964
|
+
"@context",
|
|
1965
|
+
"type"
|
|
1966
|
+
]
|
|
1967
|
+
},
|
|
1968
|
+
"AuditableItemGraphUpdatePartialRequest": {
|
|
1969
|
+
"description": "Partial vertex data; only defined properties are applied.\nSub-lists use `{ add, remove }` patch objects.",
|
|
1970
|
+
"type": "object",
|
|
1971
|
+
"properties": {
|
|
1972
|
+
"dateCreated": {
|
|
1973
|
+
"type": "string",
|
|
1974
|
+
"description": "The date/time of when the element was created."
|
|
1975
|
+
},
|
|
1976
|
+
"dateModified": {
|
|
1977
|
+
"type": "string",
|
|
1978
|
+
"description": "The date/time of when the element was modified."
|
|
1979
|
+
},
|
|
1980
|
+
"dateDeleted": {
|
|
1981
|
+
"type": "string",
|
|
1982
|
+
"description": "The date/time of when the element was deleted, as we never actually remove items."
|
|
1983
|
+
},
|
|
1984
|
+
"@context": {
|
|
1985
|
+
"type": "array",
|
|
1986
|
+
"prefixItems": [
|
|
1987
|
+
{
|
|
1988
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
"const": "https://schema.3sixty.global/common/"
|
|
1992
|
+
}
|
|
1993
|
+
],
|
|
1994
|
+
"items": {
|
|
1995
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdContextDefinitionElement"
|
|
1996
|
+
},
|
|
1997
|
+
"minItems": 2,
|
|
1998
|
+
"description": "JSON-LD Context."
|
|
1999
|
+
},
|
|
2000
|
+
"organizationIdentity": {
|
|
2001
|
+
"type": "string",
|
|
2002
|
+
"description": "The identity of the organization which controls the vertex."
|
|
2003
|
+
},
|
|
2004
|
+
"auditMode": {
|
|
2005
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphAuditMode"
|
|
2006
|
+
},
|
|
2007
|
+
"annotationObject": {
|
|
2008
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdNodeObject"
|
|
2009
|
+
},
|
|
2010
|
+
"verified": {
|
|
2011
|
+
"type": "boolean",
|
|
2012
|
+
"description": "Is the vertex verified, will only be populated when verification is requested.\nAlways undefined when the vertex is in bypass mode."
|
|
2013
|
+
},
|
|
2014
|
+
"version": {
|
|
2015
|
+
"type": "number",
|
|
2016
|
+
"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."
|
|
2017
|
+
},
|
|
2018
|
+
"type": {
|
|
2019
|
+
"const": "AuditableItemGraphVertex",
|
|
2020
|
+
"description": "JSON-LD Type."
|
|
2021
|
+
},
|
|
2022
|
+
"aliasPatches": {
|
|
2023
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphListPatch"
|
|
2024
|
+
},
|
|
2025
|
+
"resourcePatches": {
|
|
2026
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphListPatch"
|
|
2027
|
+
},
|
|
2028
|
+
"edgePatches": {
|
|
2029
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphListPatch"
|
|
2030
|
+
}
|
|
2031
|
+
},
|
|
2032
|
+
"required": [
|
|
2033
|
+
"@context"
|
|
2034
|
+
]
|
|
2035
|
+
},
|
|
2036
|
+
"AuditableItemGraphUpdateRequest": {
|
|
2037
|
+
"description": "The full vertex payload. Replaces annotation and active sub-lists; omitted collections are cleared.",
|
|
2038
|
+
"type": "object",
|
|
2039
|
+
"properties": {
|
|
2040
|
+
"dateCreated": {
|
|
2041
|
+
"type": "string",
|
|
2042
|
+
"description": "The date/time of when the element was created."
|
|
2043
|
+
},
|
|
2044
|
+
"dateModified": {
|
|
2045
|
+
"type": "string",
|
|
2046
|
+
"description": "The date/time of when the element was modified."
|
|
2047
|
+
},
|
|
2048
|
+
"dateDeleted": {
|
|
2049
|
+
"type": "string",
|
|
2050
|
+
"description": "The date/time of when the element was deleted, as we never actually remove items."
|
|
2051
|
+
},
|
|
2052
|
+
"@context": {
|
|
2053
|
+
"type": "array",
|
|
2054
|
+
"prefixItems": [
|
|
2055
|
+
{
|
|
2056
|
+
"const": "https://schema.3sixty.global/aig/"
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
"const": "https://schema.3sixty.global/common/"
|
|
2060
|
+
}
|
|
2061
|
+
],
|
|
2062
|
+
"items": {
|
|
2063
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdContextDefinitionElement"
|
|
2064
|
+
},
|
|
2065
|
+
"minItems": 2,
|
|
2066
|
+
"description": "JSON-LD Context."
|
|
2067
|
+
},
|
|
2068
|
+
"type": {
|
|
2069
|
+
"const": "AuditableItemGraphVertex",
|
|
2070
|
+
"description": "JSON-LD Type."
|
|
2071
|
+
},
|
|
2072
|
+
"organizationIdentity": {
|
|
2073
|
+
"type": "string",
|
|
2074
|
+
"description": "The identity of the organization which controls the vertex."
|
|
2075
|
+
},
|
|
2076
|
+
"auditMode": {
|
|
2077
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphAuditMode"
|
|
2078
|
+
},
|
|
2079
|
+
"annotationObject": {
|
|
2080
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdNodeObject"
|
|
2081
|
+
},
|
|
2082
|
+
"aliases": {
|
|
2083
|
+
"type": "array",
|
|
2084
|
+
"items": {
|
|
2085
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphAlias"
|
|
2086
|
+
},
|
|
2087
|
+
"description": "Alternative aliases that can be used to identify the vertex."
|
|
2088
|
+
},
|
|
2089
|
+
"resources": {
|
|
2090
|
+
"type": "array",
|
|
2091
|
+
"items": {
|
|
2092
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphResource"
|
|
2093
|
+
},
|
|
2094
|
+
"description": "The resources attached to the vertex."
|
|
2095
|
+
},
|
|
2096
|
+
"edges": {
|
|
2097
|
+
"type": "array",
|
|
2098
|
+
"items": {
|
|
2099
|
+
"$ref": "https://schema.3sixty.global/aig/AuditableItemGraphEdge"
|
|
2100
|
+
},
|
|
2101
|
+
"description": "Edges connected to the vertex."
|
|
2102
|
+
},
|
|
2103
|
+
"verified": {
|
|
2104
|
+
"type": "boolean",
|
|
2105
|
+
"description": "Is the vertex verified, will only be populated when verification is requested.\nAlways undefined when the vertex is in bypass mode."
|
|
2106
|
+
},
|
|
2107
|
+
"version": {
|
|
2108
|
+
"type": "number",
|
|
2109
|
+
"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."
|
|
2110
|
+
}
|
|
2111
|
+
},
|
|
2112
|
+
"required": [
|
|
2113
|
+
"@context",
|
|
2114
|
+
"type"
|
|
2115
|
+
]
|
|
2116
|
+
},
|
|
2117
|
+
"Error": {
|
|
2118
|
+
"description": "Model to describe serialized error.",
|
|
2119
|
+
"type": "object",
|
|
2120
|
+
"properties": {
|
|
2121
|
+
"name": {
|
|
2122
|
+
"type": "string",
|
|
2123
|
+
"description": "The name for the error."
|
|
2124
|
+
},
|
|
2125
|
+
"message": {
|
|
2126
|
+
"type": "string",
|
|
2127
|
+
"description": "The message for the error as an i18n key."
|
|
2128
|
+
},
|
|
2129
|
+
"source": {
|
|
2130
|
+
"type": "string",
|
|
2131
|
+
"description": "The source of the error."
|
|
2132
|
+
},
|
|
2133
|
+
"properties": {
|
|
2134
|
+
"type": "object",
|
|
2135
|
+
"additionalProperties": {},
|
|
2136
|
+
"description": "Any additional information for the error."
|
|
2137
|
+
},
|
|
2138
|
+
"stack": {
|
|
2139
|
+
"type": "string",
|
|
2140
|
+
"description": "The stack trace for the error."
|
|
2141
|
+
},
|
|
2142
|
+
"cause": {
|
|
2143
|
+
"$ref": "#/components/schemas/Error"
|
|
2144
|
+
}
|
|
2145
|
+
},
|
|
2146
|
+
"required": [
|
|
2147
|
+
"name",
|
|
2148
|
+
"message"
|
|
2149
|
+
]
|
|
2150
|
+
},
|
|
2151
|
+
"SortDirection": {
|
|
2152
|
+
"description": "The sort directions.",
|
|
2153
|
+
"anyOf": [
|
|
2154
|
+
{
|
|
2155
|
+
"const": "asc",
|
|
2156
|
+
"description": "Ascending."
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
"const": "desc",
|
|
2160
|
+
"description": "Descending."
|
|
2161
|
+
}
|
|
2162
|
+
]
|
|
2163
|
+
},
|
|
2164
|
+
"VerifyDepth": {
|
|
2165
|
+
"description": "How deep to verify the signatures.",
|
|
2166
|
+
"anyOf": [
|
|
2167
|
+
{
|
|
2168
|
+
"const": "none",
|
|
2169
|
+
"description": "Do not verify any signatures."
|
|
2170
|
+
},
|
|
2171
|
+
{
|
|
2172
|
+
"const": "current",
|
|
2173
|
+
"description": "Verify only the most recent signature."
|
|
2174
|
+
},
|
|
2175
|
+
{
|
|
2176
|
+
"const": "all",
|
|
2177
|
+
"description": "Verify all the signatures."
|
|
2178
|
+
}
|
|
2179
|
+
]
|
|
2180
|
+
}
|
|
2181
|
+
},
|
|
2182
|
+
"securitySchemes": {
|
|
2183
|
+
"jwtBearerAuthScheme": {
|
|
2184
|
+
"type": "http",
|
|
2185
|
+
"scheme": "bearer",
|
|
2186
|
+
"bearerFormat": "JWT"
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
}
|
|
2190
|
+
}
|