@twin.org/auditable-item-graph-models 0.0.1-next.4 → 0.0.1-next.6

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.
Files changed (44) hide show
  1. package/dist/cjs/index.cjs +489 -165
  2. package/dist/esm/index.mjs +489 -165
  3. package/dist/types/index.d.ts +1 -0
  4. package/dist/types/models/IAuditableItemGraphAlias.d.ts +16 -3
  5. package/dist/types/models/IAuditableItemGraphAuditedElement.d.ts +6 -6
  6. package/dist/types/models/IAuditableItemGraphChangeset.d.ts +11 -2
  7. package/dist/types/models/IAuditableItemGraphComponent.d.ts +22 -40
  8. package/dist/types/models/IAuditableItemGraphCredential.d.ts +11 -2
  9. package/dist/types/models/IAuditableItemGraphEdge.d.ts +16 -3
  10. package/dist/types/models/IAuditableItemGraphPatchOperation.d.ts +26 -2
  11. package/dist/types/models/IAuditableItemGraphResource.d.ts +15 -2
  12. package/dist/types/models/IAuditableItemGraphVerification.d.ts +17 -3
  13. package/dist/types/models/IAuditableItemGraphVertex.d.ts +24 -2
  14. package/dist/types/models/IAuditableItemGraphVertexList.d.ts +23 -0
  15. package/dist/types/models/api/IAuditableItemGraphCreateRequest.d.ts +7 -7
  16. package/dist/types/models/api/IAuditableItemGraphGetRequest.d.ts +2 -2
  17. package/dist/types/models/api/IAuditableItemGraphGetResponse.d.ts +2 -13
  18. package/dist/types/models/api/IAuditableItemGraphListRequest.d.ts +6 -5
  19. package/dist/types/models/api/IAuditableItemGraphListResponse.d.ts +2 -12
  20. package/dist/types/models/api/IAuditableItemGraphUpdateRequest.d.ts +7 -7
  21. package/dist/types/models/auditableItemGraphTypes.d.ts +13 -9
  22. package/docs/changelog.md +1 -1
  23. package/docs/reference/index.md +1 -1
  24. package/docs/reference/interfaces/IAuditableItemGraphAlias.md +37 -25
  25. package/docs/reference/interfaces/IAuditableItemGraphAuditedElement.md +9 -9
  26. package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +19 -3
  27. package/docs/reference/interfaces/IAuditableItemGraphComponent.md +13 -29
  28. package/docs/reference/interfaces/IAuditableItemGraphCreateRequest.md +3 -3
  29. package/docs/reference/interfaces/IAuditableItemGraphCredential.md +19 -3
  30. package/docs/reference/interfaces/IAuditableItemGraphEdge.md +33 -21
  31. package/docs/reference/interfaces/IAuditableItemGraphGetRequest.md +2 -2
  32. package/docs/reference/interfaces/IAuditableItemGraphGetResponse.md +4 -4
  33. package/docs/reference/interfaces/IAuditableItemGraphListRequest.md +5 -5
  34. package/docs/reference/interfaces/IAuditableItemGraphListResponse.md +3 -3
  35. package/docs/reference/interfaces/IAuditableItemGraphPatchOperation.md +46 -2
  36. package/docs/reference/interfaces/IAuditableItemGraphResource.md +30 -18
  37. package/docs/reference/interfaces/IAuditableItemGraphUpdateRequest.md +3 -3
  38. package/docs/reference/interfaces/IAuditableItemGraphVerification.md +30 -6
  39. package/docs/reference/interfaces/IAuditableItemGraphVertex.md +53 -13
  40. package/docs/reference/interfaces/IAuditableItemGraphVertexList.md +35 -0
  41. package/docs/reference/variables/AuditableItemGraphTypes.md +15 -9
  42. package/package.json +1 -1
  43. package/dist/types/models/IAuditableItemGraphMetadataElement.d.ts +0 -10
  44. package/docs/reference/type-aliases/JsonReturnType.md +0 -13
@@ -14,87 +14,147 @@ const AuditableItemGraphTypes = {
14
14
  /**
15
15
  * Represents auditable item graph vertex.
16
16
  */
17
- Vertex: "https://schema.twindev.org/aig/AuditableItemGraphVertex",
17
+ Vertex: "AuditableItemGraphVertex",
18
18
  /**
19
19
  * Represents auditable item graph alias.
20
20
  */
21
- Alias: "https://schema.twindev.org/aig/AuditableItemGraphAlias",
21
+ Alias: "AuditableItemGraphAlias",
22
22
  /**
23
23
  * Represents auditable item graph resource.
24
24
  */
25
- Resource: "https://schema.twindev.org/aig/AuditableItemGraphResource",
25
+ Resource: "AuditableItemGraphResource",
26
26
  /**
27
27
  * Represents auditable item graph edge.
28
28
  */
29
- Edge: "https://schema.twindev.org/aig/AuditableItemGraphEdge",
29
+ Edge: "AuditableItemGraphEdge",
30
30
  /**
31
31
  * Represents auditable item graph changeset.
32
32
  */
33
- Changeset: "https://schema.twindev.org/aig/AuditableItemGraphChangeset",
33
+ Changeset: "AuditableItemGraphChangeset",
34
34
  /**
35
35
  * Represents patch operation.
36
36
  */
37
- PatchOperation: "https://schema.twindev.org/aig/AuditableItemGraphPatchOperation",
37
+ PatchOperation: "AuditableItemGraphPatchOperation",
38
38
  /**
39
39
  * Represents the immutable credential payload.
40
40
  */
41
- Credential: "https://schema.twindev.org/aig/AuditableItemGraphPatchCredential",
41
+ Credential: "AuditableItemGraphPatchCredential",
42
42
  /**
43
43
  * Represents auditable item stream verification.
44
44
  */
45
- Verification: "https://schema.twindev.org/aig/AuditableItemGraphVerification",
45
+ Verification: "AuditableItemGraphVerification",
46
46
  /**
47
47
  * Represents auditable item stream verification state.
48
48
  */
49
- VerificationState: "https://schema.twindev.org/aig/AuditableItemGraphVerificationState"
49
+ VerificationState: "AuditableItemGraphVerificationState",
50
+ /**
51
+ * Represents auditable item stream vertex list.
52
+ */
53
+ VertexList: "AuditableItemGraphVertexList"
50
54
  };
51
55
 
52
- var type$8 = "object";
53
- var properties$7 = {
54
- metadata: {
55
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject",
56
- description: "The metadata to associate with the element as JSON-LD."
57
- },
56
+ var type$9 = "object";
57
+ var properties$8 = {
58
58
  id: {
59
59
  type: "string",
60
60
  description: "The id of the element."
61
61
  },
62
- created: {
63
- type: "number",
64
- description: "The timestamp of when the element was created."
62
+ dateCreated: {
63
+ type: "string",
64
+ description: "The date/time of when the element was created."
65
65
  },
66
- updated: {
67
- type: "number",
68
- description: "The timestamp of when the element was updated."
66
+ dateModified: {
67
+ type: "string",
68
+ description: "The date/time of when the element was modified."
69
69
  },
70
- deleted: {
71
- type: "number",
72
- description: "The timestamp of when the element was deleted, as we never actually remove items."
70
+ dateDeleted: {
71
+ type: "string",
72
+ description: "The date/time of when the element was deleted, as we never actually remove items."
73
+ },
74
+ "@context": {
75
+ anyOf: [
76
+ {
77
+ type: "string",
78
+ "const": "https://schema.twindev.org/aig/"
79
+ },
80
+ {
81
+ type: "array",
82
+ minItems: 1,
83
+ items: [
84
+ {
85
+ type: "string",
86
+ "const": "https://schema.twindev.org/aig/"
87
+ }
88
+ ],
89
+ additionalItems: {
90
+ type: "string"
91
+ }
92
+ }
93
+ ],
94
+ description: "JSON-LD Context."
73
95
  },
74
- format: {
96
+ type: {
97
+ type: "string",
98
+ "const": "AuditableItemGraphAlias",
99
+ description: "JSON-LD Type."
100
+ },
101
+ aliasObject: {
102
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject",
103
+ description: "The JSON-LD object for the alias."
104
+ },
105
+ aliasFormat: {
75
106
  type: "string",
76
107
  description: "The format of the id in the alias."
77
108
  }
78
109
  };
79
- var additionalProperties$7 = false;
80
- var required$6 = [
81
- "created",
82
- "id"
110
+ var required$8 = [
111
+ "@context",
112
+ "dateCreated",
113
+ "id",
114
+ "type"
83
115
  ];
84
- var description$7 = "Interface describing an alias for a vertex.";
116
+ var additionalProperties$8 = false;
117
+ var description$9 = "Interface describing an alias for a vertex.";
85
118
  var AuditableItemGraphAliasSchema = {
86
- type: type$8,
87
- properties: properties$7,
88
- additionalProperties: additionalProperties$7,
89
- required: required$6,
90
- description: description$7
119
+ type: type$9,
120
+ properties: properties$8,
121
+ required: required$8,
122
+ additionalProperties: additionalProperties$8,
123
+ description: description$9
91
124
  };
92
125
 
93
- var type$7 = "object";
94
- var properties$6 = {
95
- created: {
96
- type: "number",
97
- description: "The timestamp of when the changeset was created."
126
+ var type$8 = "object";
127
+ var properties$7 = {
128
+ "@context": {
129
+ anyOf: [
130
+ {
131
+ type: "string",
132
+ "const": "https://schema.twindev.org/aig/"
133
+ },
134
+ {
135
+ type: "array",
136
+ minItems: 1,
137
+ items: [
138
+ {
139
+ type: "string",
140
+ "const": "https://schema.twindev.org/aig/"
141
+ }
142
+ ],
143
+ additionalItems: {
144
+ type: "string"
145
+ }
146
+ }
147
+ ],
148
+ description: "JSON-LD Context."
149
+ },
150
+ type: {
151
+ type: "string",
152
+ "const": "AuditableItemGraphChangeset",
153
+ description: "JSON-LD Type."
154
+ },
155
+ dateCreated: {
156
+ type: "string",
157
+ description: "The date/time of when the changeset was created."
98
158
  },
99
159
  userIdentity: {
100
160
  type: "string",
@@ -120,28 +180,57 @@ var properties$6 = {
120
180
  description: "The immutable storage id containing the signature for the changeset."
121
181
  }
122
182
  };
123
- var required$5 = [
124
- "created",
183
+ var required$7 = [
184
+ "@context",
185
+ "type",
186
+ "dateCreated",
125
187
  "userIdentity",
126
188
  "patches",
127
189
  "hash",
128
190
  "signature"
129
191
  ];
130
- var additionalProperties$6 = false;
131
- var description$6 = "Interface describing a set of updates to the vertex.";
192
+ var additionalProperties$7 = false;
193
+ var description$8 = "Interface describing a set of updates to the vertex.";
132
194
  var AuditableItemGraphChangesetSchema = {
133
- type: type$7,
134
- properties: properties$6,
135
- required: required$5,
136
- additionalProperties: additionalProperties$6,
137
- description: description$6
195
+ type: type$8,
196
+ properties: properties$7,
197
+ required: required$7,
198
+ additionalProperties: additionalProperties$7,
199
+ description: description$8
138
200
  };
139
201
 
140
- var type$6 = "object";
141
- var properties$5 = {
142
- created: {
143
- type: "number",
144
- description: "The timestamp of when the changeset was created."
202
+ var type$7 = "object";
203
+ var properties$6 = {
204
+ "@context": {
205
+ anyOf: [
206
+ {
207
+ type: "string",
208
+ "const": "https://schema.twindev.org/aig/"
209
+ },
210
+ {
211
+ type: "array",
212
+ minItems: 1,
213
+ items: [
214
+ {
215
+ type: "string",
216
+ "const": "https://schema.twindev.org/aig/"
217
+ }
218
+ ],
219
+ additionalItems: {
220
+ type: "string"
221
+ }
222
+ }
223
+ ],
224
+ description: "JSON-LD Context."
225
+ },
226
+ type: {
227
+ type: "string",
228
+ "const": "AuditableItemGraphPatchCredential",
229
+ description: "JSON-LD Type."
230
+ },
231
+ dateCreated: {
232
+ type: "string",
233
+ description: "The date/time of when the changeset was created."
145
234
  },
146
235
  userIdentity: {
147
236
  type: "string",
@@ -160,68 +249,125 @@ var properties$5 = {
160
249
  description: "The integrity data for this changeset, encrypted."
161
250
  }
162
251
  };
163
- var required$4 = [
164
- "created",
252
+ var required$6 = [
253
+ "@context",
254
+ "type",
255
+ "dateCreated",
165
256
  "userIdentity",
166
257
  "signature",
167
258
  "hash"
168
259
  ];
169
- var additionalProperties$5 = false;
170
- var description$5 = "The data stored immutably for the graph in a verifiable credential.";
260
+ var additionalProperties$6 = false;
261
+ var description$7 = "The data stored immutably for the graph in a verifiable credential.";
171
262
  var AuditableItemGraphCredentialSchema = {
172
- type: type$6,
173
- properties: properties$5,
174
- required: required$4,
175
- additionalProperties: additionalProperties$5,
176
- description: description$5
263
+ type: type$7,
264
+ properties: properties$6,
265
+ required: required$6,
266
+ additionalProperties: additionalProperties$6,
267
+ description: description$7
177
268
  };
178
269
 
179
- var type$5 = "object";
180
- var properties$4 = {
181
- metadata: {
182
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject",
183
- description: "The metadata to associate with the element as JSON-LD."
184
- },
270
+ var type$6 = "object";
271
+ var properties$5 = {
185
272
  id: {
186
273
  type: "string",
187
274
  description: "The id of the element."
188
275
  },
189
- created: {
190
- type: "number",
191
- description: "The timestamp of when the element was created."
276
+ dateCreated: {
277
+ type: "string",
278
+ description: "The date/time of when the element was created."
279
+ },
280
+ dateModified: {
281
+ type: "string",
282
+ description: "The date/time of when the element was modified."
192
283
  },
193
- updated: {
194
- type: "number",
195
- description: "The timestamp of when the element was updated."
284
+ dateDeleted: {
285
+ type: "string",
286
+ description: "The date/time of when the element was deleted, as we never actually remove items."
287
+ },
288
+ "@context": {
289
+ anyOf: [
290
+ {
291
+ type: "string",
292
+ "const": "https://schema.twindev.org/aig/"
293
+ },
294
+ {
295
+ type: "array",
296
+ minItems: 1,
297
+ items: [
298
+ {
299
+ type: "string",
300
+ "const": "https://schema.twindev.org/aig/"
301
+ }
302
+ ],
303
+ additionalItems: {
304
+ type: "string"
305
+ }
306
+ }
307
+ ],
308
+ description: "JSON-LD Context."
309
+ },
310
+ type: {
311
+ type: "string",
312
+ "const": "AuditableItemGraphEdge",
313
+ description: "JSON-LD Type."
196
314
  },
197
- deleted: {
198
- type: "number",
199
- description: "The timestamp of when the element was deleted, as we never actually remove items."
315
+ edgeObject: {
316
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject",
317
+ description: "The JSON-LD object for the edge."
200
318
  },
201
- relationship: {
319
+ edgeRelationship: {
202
320
  type: "string",
203
321
  description: "The relationship between the two vertices."
204
322
  }
205
323
  };
206
- var required$3 = [
207
- "created",
324
+ var required$5 = [
325
+ "@context",
326
+ "dateCreated",
327
+ "edgeRelationship",
208
328
  "id",
209
- "relationship"
329
+ "type"
210
330
  ];
211
- var additionalProperties$4 = false;
212
- var description$4 = "Interface describing an edge between two vertices in an auditable item graph.";
331
+ var additionalProperties$5 = false;
332
+ var description$6 = "Interface describing an edge between two vertices in an auditable item graph.";
213
333
  var AuditableItemGraphEdgeSchema = {
214
- type: type$5,
215
- properties: properties$4,
216
- required: required$3,
217
- additionalProperties: additionalProperties$4,
218
- description: description$4
334
+ type: type$6,
335
+ properties: properties$5,
336
+ required: required$5,
337
+ additionalProperties: additionalProperties$5,
338
+ description: description$6
219
339
  };
220
340
 
221
- var type$4 = "object";
222
- var additionalProperties$3 = false;
223
- var properties$3 = {
224
- op: {
341
+ var type$5 = "object";
342
+ var properties$4 = {
343
+ "@context": {
344
+ anyOf: [
345
+ {
346
+ type: "string",
347
+ "const": "https://schema.twindev.org/aig/"
348
+ },
349
+ {
350
+ type: "array",
351
+ minItems: 1,
352
+ items: [
353
+ {
354
+ type: "string",
355
+ "const": "https://schema.twindev.org/aig/"
356
+ }
357
+ ],
358
+ additionalItems: {
359
+ type: "string"
360
+ }
361
+ }
362
+ ],
363
+ description: "JSON-LD Context."
364
+ },
365
+ type: {
366
+ type: "string",
367
+ "const": "AuditableItemGraphPatchOperation",
368
+ description: "JSON-LD Type."
369
+ },
370
+ patchOperation: {
225
371
  type: "string",
226
372
  "enum": [
227
373
  "add",
@@ -233,98 +379,164 @@ var properties$3 = {
233
379
  ],
234
380
  description: "The operation that was performed on the item."
235
381
  },
236
- path: {
382
+ patchPath: {
237
383
  type: "string",
238
384
  description: "The path to the object that was changed."
239
385
  },
240
- from: {
386
+ patchFrom: {
241
387
  type: "string",
242
388
  description: "The path the value was copied or moved from."
243
389
  },
244
- value: {
390
+ patchValue: {
245
391
  description: "The value to add."
246
392
  }
247
393
  };
248
- var required$2 = [
249
- "op",
250
- "path"
394
+ var required$4 = [
395
+ "@context",
396
+ "type",
397
+ "patchOperation",
398
+ "patchPath"
251
399
  ];
252
- var description$3 = "The patch operation for JSON diffs.";
400
+ var additionalProperties$4 = false;
401
+ var description$5 = "The patch operation for JSON diffs.";
253
402
  var AuditableItemGraphPatchOperationSchema = {
254
- type: type$4,
255
- additionalProperties: additionalProperties$3,
256
- properties: properties$3,
257
- required: required$2,
258
- description: description$3
403
+ type: type$5,
404
+ properties: properties$4,
405
+ required: required$4,
406
+ additionalProperties: additionalProperties$4,
407
+ description: description$5
259
408
  };
260
409
 
261
- var type$3 = "object";
262
- var additionalProperties$2 = false;
263
- var properties$2 = {
264
- metadata: {
265
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject",
266
- description: "The metadata to associate with the element as JSON-LD."
267
- },
410
+ var type$4 = "object";
411
+ var properties$3 = {
268
412
  id: {
269
413
  type: "string",
270
414
  description: "The id of the element."
271
415
  },
272
- created: {
273
- type: "number",
274
- description: "The timestamp of when the element was created."
416
+ dateCreated: {
417
+ type: "string",
418
+ description: "The date/time of when the element was created."
275
419
  },
276
- updated: {
277
- type: "number",
278
- description: "The timestamp of when the element was updated."
420
+ dateModified: {
421
+ type: "string",
422
+ description: "The date/time of when the element was modified."
279
423
  },
280
- deleted: {
281
- type: "number",
282
- description: "The timestamp of when the element was deleted, as we never actually remove items."
424
+ dateDeleted: {
425
+ type: "string",
426
+ description: "The date/time of when the element was deleted, as we never actually remove items."
427
+ },
428
+ "@context": {
429
+ anyOf: [
430
+ {
431
+ type: "string",
432
+ "const": "https://schema.twindev.org/aig/"
433
+ },
434
+ {
435
+ type: "array",
436
+ minItems: 1,
437
+ items: [
438
+ {
439
+ type: "string",
440
+ "const": "https://schema.twindev.org/aig/"
441
+ }
442
+ ],
443
+ additionalItems: {
444
+ type: "string"
445
+ }
446
+ }
447
+ ],
448
+ description: "JSON-LD Context."
449
+ },
450
+ type: {
451
+ type: "string",
452
+ "const": "AuditableItemGraphResource",
453
+ description: "JSON-LD Type."
454
+ },
455
+ resourceObject: {
456
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject",
457
+ description: "The JSON-LD object for the resource."
283
458
  }
284
459
  };
285
- var required$1 = [
286
- "created",
287
- "id"
460
+ var required$3 = [
461
+ "@context",
462
+ "dateCreated",
463
+ "id",
464
+ "type"
288
465
  ];
289
- var description$2 = "Interface describing an auditable item graph vertex resource.";
466
+ var additionalProperties$3 = false;
467
+ var description$4 = "Interface describing an auditable item graph vertex resource.";
290
468
  var AuditableItemGraphResourceSchema = {
291
- type: type$3,
292
- additionalProperties: additionalProperties$2,
293
- properties: properties$2,
294
- required: required$1,
295
- description: description$2
469
+ type: type$4,
470
+ properties: properties$3,
471
+ required: required$3,
472
+ additionalProperties: additionalProperties$3,
473
+ description: description$4
296
474
  };
297
475
 
298
- var type$2 = "object";
299
- var properties$1 = {
300
- epoch: {
301
- type: "number",
302
- description: "The epoch of the verification."
476
+ var type$3 = "object";
477
+ var properties$2 = {
478
+ "@context": {
479
+ anyOf: [
480
+ {
481
+ type: "string",
482
+ "const": "https://schema.twindev.org/aig/"
483
+ },
484
+ {
485
+ type: "array",
486
+ minItems: 1,
487
+ items: [
488
+ {
489
+ type: "string",
490
+ "const": "https://schema.twindev.org/aig/"
491
+ }
492
+ ],
493
+ additionalItems: {
494
+ type: "string"
495
+ }
496
+ }
497
+ ],
498
+ description: "JSON-LD Context."
499
+ },
500
+ type: {
501
+ type: "string",
502
+ "const": "AuditableItemGraphVerification",
503
+ description: "JSON-LD Type."
504
+ },
505
+ dateCreated: {
506
+ type: "string",
507
+ description: "The date/time of the verification."
303
508
  },
304
509
  state: {
305
510
  $ref: "https://schema.twindev.org/aig/AuditableItemGraphVerificationState",
306
511
  description: "The state of the verification."
512
+ },
513
+ stateProperties: {
514
+ type: "object",
515
+ additionalProperties: {
516
+ },
517
+ description: "The state properties."
307
518
  }
308
519
  };
309
- var required = [
310
- "epoch",
520
+ var required$2 = [
521
+ "@context",
522
+ "type",
523
+ "dateCreated",
311
524
  "state"
312
525
  ];
313
- var additionalProperties$1 = {
314
- };
315
- var description$1 = "Interface describing an auditable item graph verification.";
526
+ var additionalProperties$2 = false;
527
+ var description$3 = "Interface describing an auditable item graph verification.";
316
528
  var AuditableItemGraphVerificationSchema = {
317
- type: type$2,
318
- properties: properties$1,
319
- required: required,
320
- additionalProperties: additionalProperties$1,
321
- description: description$1
529
+ type: type$3,
530
+ properties: properties$2,
531
+ required: required$2,
532
+ additionalProperties: additionalProperties$2,
533
+ description: description$3
322
534
  };
323
535
 
324
- var type$1 = "string";
325
- var description = "The state of the verification.";
536
+ var type$2 = "string";
537
+ var description$2 = "The state of the verification.";
326
538
  var AuditableItemGraphVerificationStateSchema = {
327
- type: type$1,
539
+ type: type$2,
328
540
  "enum": [
329
541
  "ok",
330
542
  "hashMismatch",
@@ -334,15 +546,62 @@ var AuditableItemGraphVerificationStateSchema = {
334
546
  "immutableSignatureMismatch",
335
547
  "integrityDataMismatch"
336
548
  ],
337
- description: description
549
+ description: description$2
338
550
  };
339
551
 
340
- var type = "object";
341
- var properties = {
552
+ var type$1 = "object";
553
+ var properties$1 = {
554
+ id: {
555
+ type: "string",
556
+ description: "The id of the element."
557
+ },
558
+ dateCreated: {
559
+ type: "string",
560
+ description: "The date/time of when the element was created."
561
+ },
562
+ dateModified: {
563
+ type: "string",
564
+ description: "The date/time of when the element was modified."
565
+ },
566
+ dateDeleted: {
567
+ type: "string",
568
+ description: "The date/time of when the element was deleted, as we never actually remove items."
569
+ },
570
+ "@context": {
571
+ anyOf: [
572
+ {
573
+ type: "string",
574
+ "const": "https://schema.twindev.org/aig/"
575
+ },
576
+ {
577
+ type: "array",
578
+ minItems: 1,
579
+ items: [
580
+ {
581
+ type: "string",
582
+ "const": "https://schema.twindev.org/aig/"
583
+ }
584
+ ],
585
+ additionalItems: {
586
+ type: "string"
587
+ }
588
+ }
589
+ ],
590
+ description: "JSON-LD Context."
591
+ },
592
+ type: {
593
+ type: "string",
594
+ "const": "AuditableItemGraphVertex",
595
+ description: "JSON-LD Type."
596
+ },
342
597
  nodeIdentity: {
343
598
  type: "string",
344
599
  description: "The identity of the node which controls the vertex."
345
600
  },
601
+ vertexObject: {
602
+ $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject",
603
+ description: "The JSON-LD object for the vertex."
604
+ },
346
605
  aliases: {
347
606
  type: "array",
348
607
  items: {
@@ -371,28 +630,88 @@ var properties = {
371
630
  },
372
631
  description: "Changesets for the vertex."
373
632
  },
374
- id: {
375
- type: "string",
376
- description: "The id of the element."
633
+ verified: {
634
+ type: "boolean",
635
+ description: "Is the vertex verified, will only be populated when verification is requested."
636
+ },
637
+ changesetsVerification: {
638
+ type: "array",
639
+ items: {
640
+ $ref: "https://schema.twindev.org/aig/AuditableItemGraphVerification"
641
+ },
642
+ description: "The verification state of the changesets, will only be populated when changesets are requested."
643
+ }
644
+ };
645
+ var required$1 = [
646
+ "@context",
647
+ "dateCreated",
648
+ "id",
649
+ "type"
650
+ ];
651
+ var additionalProperties$1 = false;
652
+ var description$1 = "Interface describing an auditable item graph vertex.";
653
+ var AuditableItemGraphVertexSchema = {
654
+ type: type$1,
655
+ properties: properties$1,
656
+ required: required$1,
657
+ additionalProperties: additionalProperties$1,
658
+ description: description$1
659
+ };
660
+
661
+ var type = "object";
662
+ var properties = {
663
+ "@context": {
664
+ anyOf: [
665
+ {
666
+ type: "string",
667
+ "const": "https://schema.twindev.org/aig/"
668
+ },
669
+ {
670
+ type: "array",
671
+ minItems: 1,
672
+ items: [
673
+ {
674
+ type: "string",
675
+ "const": "https://schema.twindev.org/aig/"
676
+ }
677
+ ],
678
+ additionalItems: {
679
+ type: "string"
680
+ }
681
+ }
682
+ ],
683
+ description: "JSON-LD Context."
377
684
  },
378
- created: {
379
- type: "number",
380
- description: "The timestamp of when the element was created."
685
+ type: {
686
+ type: "string",
687
+ "const": "AuditableItemGraphVertexList",
688
+ description: "JSON-LD Type."
381
689
  },
382
- updated: {
383
- type: "number",
384
- description: "The timestamp of when the element was updated."
690
+ vertices: {
691
+ type: "array",
692
+ items: {
693
+ $ref: "https://schema.twindev.org/aig/AuditableItemGraphVertex"
694
+ },
695
+ description: "The list of vertices."
385
696
  },
386
- metadata: {
387
- $ref: "https://schema.twindev.org/json-ld/JsonLdNodeObject",
388
- description: "The metadata to associate with the element as JSON-LD."
697
+ cursor: {
698
+ type: "string",
699
+ description: "The cursor to get the next chunk of vertices."
389
700
  }
390
701
  };
702
+ var required = [
703
+ "@context",
704
+ "type",
705
+ "vertices"
706
+ ];
391
707
  var additionalProperties = false;
392
- var AuditableItemGraphVertexSchema = {
708
+ var description = "Interface describing an auditable item graph vertex list.";
709
+ var AuditableItemGraphVertexListSchema = {
393
710
  type: type,
394
711
  properties: properties,
395
- additionalProperties: additionalProperties
712
+ required: required,
713
+ additionalProperties: additionalProperties,
714
+ description: description
396
715
  };
397
716
 
398
717
  // Copyright 2024 IOTA Stiftung.
@@ -445,6 +764,11 @@ class AuditableItemGraphDataTypes {
445
764
  defaultValue: {},
446
765
  jsonSchema: async () => AuditableItemGraphVerificationSchema
447
766
  }));
767
+ DataTypeHandlerFactory.register(AuditableItemGraphTypes.VertexList, () => ({
768
+ type: AuditableItemGraphTypes.VertexList,
769
+ defaultValue: {},
770
+ jsonSchema: async () => AuditableItemGraphVertexListSchema
771
+ }));
448
772
  DataTypeHandlerFactory.register(AuditableItemGraphTypes.VerificationState, () => ({
449
773
  type: AuditableItemGraphTypes.VerificationState,
450
774
  defaultValue: {},