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