@twin.org/auditable-item-graph-models 0.0.1-next.7 → 0.0.1-next.9
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 +57 -274
- package/dist/esm/index.mjs +58 -274
- package/dist/types/index.d.ts +0 -3
- package/dist/types/models/IAuditableItemGraphChangeset.d.ts +9 -8
- package/dist/types/models/IAuditableItemGraphVertex.d.ts +0 -5
- package/dist/types/models/auditableItemGraphTypes.d.ts +0 -12
- package/docs/changelog.md +1 -1
- package/docs/reference/index.md +0 -4
- package/docs/reference/interfaces/IAuditableItemGraphChangeset.md +14 -14
- package/docs/reference/interfaces/IAuditableItemGraphVertex.md +0 -8
- package/docs/reference/variables/AuditableItemGraphTypes.md +0 -18
- package/package.json +2 -1
- package/dist/types/models/IAuditableItemGraphCredential.d.ts +0 -34
- package/dist/types/models/IAuditableItemGraphVerification.d.ts +0 -29
- package/dist/types/models/auditableItemGraphVerificationState.d.ts +0 -37
- package/docs/reference/interfaces/IAuditableItemGraphCredential.md +0 -59
- package/docs/reference/interfaces/IAuditableItemGraphVerification.md +0 -47
- package/docs/reference/type-aliases/AuditableItemGraphVerificationState.md +0 -5
- package/docs/reference/variables/AuditableItemGraphVerificationState.md +0 -49
package/dist/esm/index.mjs
CHANGED
|
@@ -35,26 +35,14 @@ const AuditableItemGraphTypes = {
|
|
|
35
35
|
* Represents patch operation.
|
|
36
36
|
*/
|
|
37
37
|
PatchOperation: "AuditableItemGraphPatchOperation",
|
|
38
|
-
/**
|
|
39
|
-
* Represents the immutable credential payload.
|
|
40
|
-
*/
|
|
41
|
-
Credential: "AuditableItemGraphPatchCredential",
|
|
42
|
-
/**
|
|
43
|
-
* Represents auditable item stream verification.
|
|
44
|
-
*/
|
|
45
|
-
Verification: "AuditableItemGraphVerification",
|
|
46
|
-
/**
|
|
47
|
-
* Represents auditable item stream verification state.
|
|
48
|
-
*/
|
|
49
|
-
VerificationState: "AuditableItemGraphVerificationState",
|
|
50
38
|
/**
|
|
51
39
|
* Represents auditable item stream vertex list.
|
|
52
40
|
*/
|
|
53
41
|
VertexList: "AuditableItemGraphVertexList"
|
|
54
42
|
};
|
|
55
43
|
|
|
56
|
-
var type$
|
|
57
|
-
var properties$
|
|
44
|
+
var type$6 = "object";
|
|
45
|
+
var properties$6 = {
|
|
58
46
|
id: {
|
|
59
47
|
type: "string",
|
|
60
48
|
description: "The id of the element."
|
|
@@ -107,24 +95,24 @@ var properties$8 = {
|
|
|
107
95
|
description: "The format of the id in the alias."
|
|
108
96
|
}
|
|
109
97
|
};
|
|
110
|
-
var required$
|
|
98
|
+
var required$6 = [
|
|
111
99
|
"@context",
|
|
112
100
|
"dateCreated",
|
|
113
101
|
"id",
|
|
114
102
|
"type"
|
|
115
103
|
];
|
|
116
|
-
var additionalProperties$
|
|
117
|
-
var description$
|
|
104
|
+
var additionalProperties$6 = false;
|
|
105
|
+
var description$6 = "Interface describing an alias for a vertex.";
|
|
118
106
|
var AuditableItemGraphAliasSchema = {
|
|
119
|
-
type: type$
|
|
120
|
-
properties: properties$
|
|
121
|
-
required: required$
|
|
122
|
-
additionalProperties: additionalProperties$
|
|
123
|
-
description: description$
|
|
107
|
+
type: type$6,
|
|
108
|
+
properties: properties$6,
|
|
109
|
+
required: required$6,
|
|
110
|
+
additionalProperties: additionalProperties$6,
|
|
111
|
+
description: description$6
|
|
124
112
|
};
|
|
125
113
|
|
|
126
|
-
var type$
|
|
127
|
-
var properties$
|
|
114
|
+
var type$5 = "object";
|
|
115
|
+
var properties$5 = {
|
|
128
116
|
"@context": {
|
|
129
117
|
anyOf: [
|
|
130
118
|
{
|
|
@@ -152,6 +140,10 @@ var properties$7 = {
|
|
|
152
140
|
"const": "AuditableItemGraphChangeset",
|
|
153
141
|
description: "JSON-LD Type."
|
|
154
142
|
},
|
|
143
|
+
id: {
|
|
144
|
+
type: "string",
|
|
145
|
+
description: "The id of the changeset."
|
|
146
|
+
},
|
|
155
147
|
dateCreated: {
|
|
156
148
|
type: "string",
|
|
157
149
|
description: "The date/time of when the changeset was created."
|
|
@@ -167,108 +159,35 @@ var properties$7 = {
|
|
|
167
159
|
},
|
|
168
160
|
description: "The patches in the changeset."
|
|
169
161
|
},
|
|
170
|
-
|
|
162
|
+
proofId: {
|
|
171
163
|
type: "string",
|
|
172
|
-
description: "The
|
|
164
|
+
description: "The immutable proof id which contains the signature for this changeset."
|
|
173
165
|
},
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
description: "The
|
|
177
|
-
},
|
|
178
|
-
immutableStorageId: {
|
|
179
|
-
type: "string",
|
|
180
|
-
description: "The immutable storage id containing the signature for the changeset."
|
|
166
|
+
verification: {
|
|
167
|
+
$ref: "https://schema.twindev.org/immutable-proof/ImmutableProofVerification",
|
|
168
|
+
description: "The verification for the changeset."
|
|
181
169
|
}
|
|
182
170
|
};
|
|
183
|
-
var required$
|
|
171
|
+
var required$5 = [
|
|
184
172
|
"@context",
|
|
185
173
|
"type",
|
|
174
|
+
"id",
|
|
186
175
|
"dateCreated",
|
|
187
176
|
"userIdentity",
|
|
188
|
-
"patches"
|
|
189
|
-
"hash",
|
|
190
|
-
"signature"
|
|
177
|
+
"patches"
|
|
191
178
|
];
|
|
192
|
-
var additionalProperties$
|
|
193
|
-
var description$
|
|
179
|
+
var additionalProperties$5 = false;
|
|
180
|
+
var description$5 = "Interface describing a set of updates to the vertex.";
|
|
194
181
|
var AuditableItemGraphChangesetSchema = {
|
|
195
|
-
type: type$
|
|
196
|
-
properties: properties$
|
|
197
|
-
required: required$
|
|
198
|
-
additionalProperties: additionalProperties$
|
|
199
|
-
description: description$
|
|
200
|
-
};
|
|
201
|
-
|
|
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."
|
|
234
|
-
},
|
|
235
|
-
userIdentity: {
|
|
236
|
-
type: "string",
|
|
237
|
-
description: "The user identity that created the changes."
|
|
238
|
-
},
|
|
239
|
-
signature: {
|
|
240
|
-
type: "string",
|
|
241
|
-
description: "The signature for the changeset."
|
|
242
|
-
},
|
|
243
|
-
hash: {
|
|
244
|
-
type: "string",
|
|
245
|
-
description: "The signature for the changeset."
|
|
246
|
-
},
|
|
247
|
-
integrity: {
|
|
248
|
-
type: "string",
|
|
249
|
-
description: "The integrity data for this changeset, encrypted."
|
|
250
|
-
}
|
|
251
|
-
};
|
|
252
|
-
var required$6 = [
|
|
253
|
-
"@context",
|
|
254
|
-
"type",
|
|
255
|
-
"dateCreated",
|
|
256
|
-
"userIdentity",
|
|
257
|
-
"signature",
|
|
258
|
-
"hash"
|
|
259
|
-
];
|
|
260
|
-
var additionalProperties$6 = false;
|
|
261
|
-
var description$7 = "The data stored immutably for the graph in a verifiable credential.";
|
|
262
|
-
var AuditableItemGraphCredentialSchema = {
|
|
263
|
-
type: type$7,
|
|
264
|
-
properties: properties$6,
|
|
265
|
-
required: required$6,
|
|
266
|
-
additionalProperties: additionalProperties$6,
|
|
267
|
-
description: description$7
|
|
182
|
+
type: type$5,
|
|
183
|
+
properties: properties$5,
|
|
184
|
+
required: required$5,
|
|
185
|
+
additionalProperties: additionalProperties$5,
|
|
186
|
+
description: description$5
|
|
268
187
|
};
|
|
269
188
|
|
|
270
|
-
var type$
|
|
271
|
-
var properties$
|
|
189
|
+
var type$4 = "object";
|
|
190
|
+
var properties$4 = {
|
|
272
191
|
id: {
|
|
273
192
|
type: "string",
|
|
274
193
|
description: "The id of the element."
|
|
@@ -321,25 +240,25 @@ var properties$5 = {
|
|
|
321
240
|
description: "The relationship between the two vertices."
|
|
322
241
|
}
|
|
323
242
|
};
|
|
324
|
-
var required$
|
|
243
|
+
var required$4 = [
|
|
325
244
|
"@context",
|
|
326
245
|
"dateCreated",
|
|
327
246
|
"edgeRelationship",
|
|
328
247
|
"id",
|
|
329
248
|
"type"
|
|
330
249
|
];
|
|
331
|
-
var additionalProperties$
|
|
332
|
-
var description$
|
|
250
|
+
var additionalProperties$4 = false;
|
|
251
|
+
var description$4 = "Interface describing an edge between two vertices in an auditable item graph.";
|
|
333
252
|
var AuditableItemGraphEdgeSchema = {
|
|
334
|
-
type: type$
|
|
335
|
-
properties: properties$
|
|
336
|
-
required: required$
|
|
337
|
-
additionalProperties: additionalProperties$
|
|
338
|
-
description: description$
|
|
253
|
+
type: type$4,
|
|
254
|
+
properties: properties$4,
|
|
255
|
+
required: required$4,
|
|
256
|
+
additionalProperties: additionalProperties$4,
|
|
257
|
+
description: description$4
|
|
339
258
|
};
|
|
340
259
|
|
|
341
|
-
var type$
|
|
342
|
-
var properties$
|
|
260
|
+
var type$3 = "object";
|
|
261
|
+
var properties$3 = {
|
|
343
262
|
"@context": {
|
|
344
263
|
anyOf: [
|
|
345
264
|
{
|
|
@@ -391,24 +310,24 @@ var properties$4 = {
|
|
|
391
310
|
description: "The value to add."
|
|
392
311
|
}
|
|
393
312
|
};
|
|
394
|
-
var required$
|
|
313
|
+
var required$3 = [
|
|
395
314
|
"@context",
|
|
396
315
|
"type",
|
|
397
316
|
"patchOperation",
|
|
398
317
|
"patchPath"
|
|
399
318
|
];
|
|
400
|
-
var additionalProperties$
|
|
401
|
-
var description$
|
|
319
|
+
var additionalProperties$3 = false;
|
|
320
|
+
var description$3 = "The patch operation for JSON diffs.";
|
|
402
321
|
var AuditableItemGraphPatchOperationSchema = {
|
|
403
|
-
type: type$
|
|
404
|
-
properties: properties$
|
|
405
|
-
required: required$
|
|
406
|
-
additionalProperties: additionalProperties$
|
|
407
|
-
description: description$
|
|
322
|
+
type: type$3,
|
|
323
|
+
properties: properties$3,
|
|
324
|
+
required: required$3,
|
|
325
|
+
additionalProperties: additionalProperties$3,
|
|
326
|
+
description: description$3
|
|
408
327
|
};
|
|
409
328
|
|
|
410
|
-
var type$
|
|
411
|
-
var properties$
|
|
329
|
+
var type$2 = "object";
|
|
330
|
+
var properties$2 = {
|
|
412
331
|
id: {
|
|
413
332
|
type: "string",
|
|
414
333
|
description: "The id of the element."
|
|
@@ -457,95 +376,19 @@ var properties$3 = {
|
|
|
457
376
|
description: "The JSON-LD object for the resource."
|
|
458
377
|
}
|
|
459
378
|
};
|
|
460
|
-
var required$
|
|
379
|
+
var required$2 = [
|
|
461
380
|
"@context",
|
|
462
381
|
"dateCreated",
|
|
463
382
|
"id",
|
|
464
383
|
"type"
|
|
465
384
|
];
|
|
466
|
-
var additionalProperties$3 = false;
|
|
467
|
-
var description$4 = "Interface describing an auditable item graph vertex resource.";
|
|
468
|
-
var AuditableItemGraphResourceSchema = {
|
|
469
|
-
type: type$4,
|
|
470
|
-
properties: properties$3,
|
|
471
|
-
required: required$3,
|
|
472
|
-
additionalProperties: additionalProperties$3,
|
|
473
|
-
description: description$4
|
|
474
|
-
};
|
|
475
|
-
|
|
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."
|
|
508
|
-
},
|
|
509
|
-
state: {
|
|
510
|
-
$ref: "https://schema.twindev.org/aig/AuditableItemGraphVerificationState",
|
|
511
|
-
description: "The state of the verification."
|
|
512
|
-
},
|
|
513
|
-
stateProperties: {
|
|
514
|
-
type: "object",
|
|
515
|
-
additionalProperties: {
|
|
516
|
-
},
|
|
517
|
-
description: "The state properties."
|
|
518
|
-
}
|
|
519
|
-
};
|
|
520
|
-
var required$2 = [
|
|
521
|
-
"@context",
|
|
522
|
-
"type",
|
|
523
|
-
"dateCreated",
|
|
524
|
-
"state"
|
|
525
|
-
];
|
|
526
385
|
var additionalProperties$2 = false;
|
|
527
|
-
var description$
|
|
528
|
-
var
|
|
529
|
-
type: type$
|
|
386
|
+
var description$2 = "Interface describing an auditable item graph vertex resource.";
|
|
387
|
+
var AuditableItemGraphResourceSchema = {
|
|
388
|
+
type: type$2,
|
|
530
389
|
properties: properties$2,
|
|
531
390
|
required: required$2,
|
|
532
391
|
additionalProperties: additionalProperties$2,
|
|
533
|
-
description: description$3
|
|
534
|
-
};
|
|
535
|
-
|
|
536
|
-
var type$2 = "string";
|
|
537
|
-
var description$2 = "The state of the verification.";
|
|
538
|
-
var AuditableItemGraphVerificationStateSchema = {
|
|
539
|
-
type: type$2,
|
|
540
|
-
"enum": [
|
|
541
|
-
"ok",
|
|
542
|
-
"hashMismatch",
|
|
543
|
-
"signatureNotVerified",
|
|
544
|
-
"credentialRevoked",
|
|
545
|
-
"immutableHashMismatch",
|
|
546
|
-
"immutableSignatureMismatch",
|
|
547
|
-
"integrityDataMismatch"
|
|
548
|
-
],
|
|
549
392
|
description: description$2
|
|
550
393
|
};
|
|
551
394
|
|
|
@@ -633,13 +476,6 @@ var properties$1 = {
|
|
|
633
476
|
verified: {
|
|
634
477
|
type: "boolean",
|
|
635
478
|
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
479
|
}
|
|
644
480
|
};
|
|
645
481
|
var required$1 = [
|
|
@@ -754,66 +590,14 @@ class AuditableItemGraphDataTypes {
|
|
|
754
590
|
defaultValue: {},
|
|
755
591
|
jsonSchema: async () => AuditableItemGraphPatchOperationSchema
|
|
756
592
|
}));
|
|
757
|
-
DataTypeHandlerFactory.register(AuditableItemGraphTypes.Credential, () => ({
|
|
758
|
-
type: AuditableItemGraphTypes.Credential,
|
|
759
|
-
defaultValue: {},
|
|
760
|
-
jsonSchema: async () => AuditableItemGraphCredentialSchema
|
|
761
|
-
}));
|
|
762
|
-
DataTypeHandlerFactory.register(AuditableItemGraphTypes.Verification, () => ({
|
|
763
|
-
type: AuditableItemGraphTypes.Verification,
|
|
764
|
-
defaultValue: {},
|
|
765
|
-
jsonSchema: async () => AuditableItemGraphVerificationSchema
|
|
766
|
-
}));
|
|
767
593
|
DataTypeHandlerFactory.register(AuditableItemGraphTypes.VertexList, () => ({
|
|
768
594
|
type: AuditableItemGraphTypes.VertexList,
|
|
769
595
|
defaultValue: {},
|
|
770
596
|
jsonSchema: async () => AuditableItemGraphVertexListSchema
|
|
771
597
|
}));
|
|
772
|
-
DataTypeHandlerFactory.register(AuditableItemGraphTypes.VerificationState, () => ({
|
|
773
|
-
type: AuditableItemGraphTypes.VerificationState,
|
|
774
|
-
defaultValue: {},
|
|
775
|
-
jsonSchema: async () => AuditableItemGraphVerificationStateSchema
|
|
776
|
-
}));
|
|
777
598
|
}
|
|
778
599
|
}
|
|
779
600
|
|
|
780
|
-
// Copyright 2024 IOTA Stiftung.
|
|
781
|
-
// SPDX-License-Identifier: Apache-2.0.
|
|
782
|
-
/**
|
|
783
|
-
* The state of the verification.
|
|
784
|
-
*/
|
|
785
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
786
|
-
const AuditableItemGraphVerificationState = {
|
|
787
|
-
/**
|
|
788
|
-
* OK.
|
|
789
|
-
*/
|
|
790
|
-
Ok: "ok",
|
|
791
|
-
/**
|
|
792
|
-
* The stored hash does not matched the calculated one.
|
|
793
|
-
*/
|
|
794
|
-
HashMismatch: "hashMismatch",
|
|
795
|
-
/**
|
|
796
|
-
* The signature verification failed.
|
|
797
|
-
*/
|
|
798
|
-
SignatureNotVerified: "signatureNotVerified",
|
|
799
|
-
/**
|
|
800
|
-
* The credential in the immutable storage was revoked.
|
|
801
|
-
*/
|
|
802
|
-
CredentialRevoked: "credentialRevoked",
|
|
803
|
-
/**
|
|
804
|
-
* Immutable hash mismatch.
|
|
805
|
-
*/
|
|
806
|
-
ImmutableHashMismatch: "immutableHashMismatch",
|
|
807
|
-
/**
|
|
808
|
-
* Immutable signature mismatch.
|
|
809
|
-
*/
|
|
810
|
-
ImmutableSignatureMismatch: "immutableSignatureMismatch",
|
|
811
|
-
/**
|
|
812
|
-
* Integrity data mismatch.
|
|
813
|
-
*/
|
|
814
|
-
IntegrityDataMismatch: "integrityDataMismatch"
|
|
815
|
-
};
|
|
816
|
-
|
|
817
601
|
// Copyright 2024 IOTA Stiftung.
|
|
818
602
|
// SPDX-License-Identifier: Apache-2.0.
|
|
819
603
|
/**
|
|
@@ -835,4 +619,4 @@ const VerifyDepth = {
|
|
|
835
619
|
All: "all"
|
|
836
620
|
};
|
|
837
621
|
|
|
838
|
-
export { AuditableItemGraphDataTypes, AuditableItemGraphTypes,
|
|
622
|
+
export { AuditableItemGraphDataTypes, AuditableItemGraphTypes, VerifyDepth };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,16 +6,13 @@ export * from "./models/api/IAuditableItemGraphListRequest";
|
|
|
6
6
|
export * from "./models/api/IAuditableItemGraphListResponse";
|
|
7
7
|
export * from "./models/api/IAuditableItemGraphUpdateRequest";
|
|
8
8
|
export * from "./models/auditableItemGraphTypes";
|
|
9
|
-
export * from "./models/auditableItemGraphVerificationState";
|
|
10
9
|
export * from "./models/IAuditableItemGraphAlias";
|
|
11
10
|
export * from "./models/IAuditableItemGraphAuditedElement";
|
|
12
11
|
export * from "./models/IAuditableItemGraphChangeset";
|
|
13
12
|
export * from "./models/IAuditableItemGraphComponent";
|
|
14
|
-
export * from "./models/IAuditableItemGraphCredential";
|
|
15
13
|
export * from "./models/IAuditableItemGraphEdge";
|
|
16
14
|
export * from "./models/IAuditableItemGraphPatchOperation";
|
|
17
15
|
export * from "./models/IAuditableItemGraphResource";
|
|
18
|
-
export * from "./models/IAuditableItemGraphVerification";
|
|
19
16
|
export * from "./models/IAuditableItemGraphVertex";
|
|
20
17
|
export * from "./models/IAuditableItemGraphVertexList";
|
|
21
18
|
export * from "./models/verifyDepth";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IImmutableProofVerification } from "@twin.org/immutable-proof-models";
|
|
1
2
|
import type { AuditableItemGraphTypes } from "./auditableItemGraphTypes";
|
|
2
3
|
import type { IAuditableItemGraphPatchOperation } from "./IAuditableItemGraphPatchOperation";
|
|
3
4
|
/**
|
|
@@ -12,6 +13,10 @@ export interface IAuditableItemGraphChangeset {
|
|
|
12
13
|
* JSON-LD Type.
|
|
13
14
|
*/
|
|
14
15
|
type: typeof AuditableItemGraphTypes.Changeset;
|
|
16
|
+
/**
|
|
17
|
+
* The id of the changeset.
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
15
20
|
/**
|
|
16
21
|
* The date/time of when the changeset was created.
|
|
17
22
|
*/
|
|
@@ -25,15 +30,11 @@ export interface IAuditableItemGraphChangeset {
|
|
|
25
30
|
*/
|
|
26
31
|
patches: IAuditableItemGraphPatchOperation[];
|
|
27
32
|
/**
|
|
28
|
-
* The
|
|
29
|
-
*/
|
|
30
|
-
hash: string;
|
|
31
|
-
/**
|
|
32
|
-
* The signature for the changeset.
|
|
33
|
+
* The immutable proof id which contains the signature for this changeset.
|
|
33
34
|
*/
|
|
34
|
-
|
|
35
|
+
proofId?: string;
|
|
35
36
|
/**
|
|
36
|
-
* The
|
|
37
|
+
* The verification for the changeset.
|
|
37
38
|
*/
|
|
38
|
-
|
|
39
|
+
verification?: IImmutableProofVerification;
|
|
39
40
|
}
|
|
@@ -5,7 +5,6 @@ import type { IAuditableItemGraphAuditedElement } from "./IAuditableItemGraphAud
|
|
|
5
5
|
import type { IAuditableItemGraphChangeset } from "./IAuditableItemGraphChangeset";
|
|
6
6
|
import type { IAuditableItemGraphEdge } from "./IAuditableItemGraphEdge";
|
|
7
7
|
import type { IAuditableItemGraphResource } from "./IAuditableItemGraphResource";
|
|
8
|
-
import type { IAuditableItemGraphVerification } from "./IAuditableItemGraphVerification";
|
|
9
8
|
/**
|
|
10
9
|
* Interface describing an auditable item graph vertex.
|
|
11
10
|
*/
|
|
@@ -46,8 +45,4 @@ export interface IAuditableItemGraphVertex extends Omit<IAuditableItemGraphAudit
|
|
|
46
45
|
* Is the vertex verified, will only be populated when verification is requested.
|
|
47
46
|
*/
|
|
48
47
|
verified?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* The verification state of the changesets, will only be populated when changesets are requested.
|
|
51
|
-
*/
|
|
52
|
-
changesetsVerification?: IAuditableItemGraphVerification[];
|
|
53
48
|
}
|
|
@@ -30,18 +30,6 @@ export declare const AuditableItemGraphTypes: {
|
|
|
30
30
|
* Represents patch operation.
|
|
31
31
|
*/
|
|
32
32
|
readonly PatchOperation: "AuditableItemGraphPatchOperation";
|
|
33
|
-
/**
|
|
34
|
-
* Represents the immutable credential payload.
|
|
35
|
-
*/
|
|
36
|
-
readonly Credential: "AuditableItemGraphPatchCredential";
|
|
37
|
-
/**
|
|
38
|
-
* Represents auditable item stream verification.
|
|
39
|
-
*/
|
|
40
|
-
readonly Verification: "AuditableItemGraphVerification";
|
|
41
|
-
/**
|
|
42
|
-
* Represents auditable item stream verification state.
|
|
43
|
-
*/
|
|
44
|
-
readonly VerificationState: "AuditableItemGraphVerificationState";
|
|
45
33
|
/**
|
|
46
34
|
* Represents auditable item stream vertex list.
|
|
47
35
|
*/
|
package/docs/changelog.md
CHANGED
package/docs/reference/index.md
CHANGED
|
@@ -10,11 +10,9 @@
|
|
|
10
10
|
- [IAuditableItemGraphAuditedElement](interfaces/IAuditableItemGraphAuditedElement.md)
|
|
11
11
|
- [IAuditableItemGraphChangeset](interfaces/IAuditableItemGraphChangeset.md)
|
|
12
12
|
- [IAuditableItemGraphComponent](interfaces/IAuditableItemGraphComponent.md)
|
|
13
|
-
- [IAuditableItemGraphCredential](interfaces/IAuditableItemGraphCredential.md)
|
|
14
13
|
- [IAuditableItemGraphEdge](interfaces/IAuditableItemGraphEdge.md)
|
|
15
14
|
- [IAuditableItemGraphPatchOperation](interfaces/IAuditableItemGraphPatchOperation.md)
|
|
16
15
|
- [IAuditableItemGraphResource](interfaces/IAuditableItemGraphResource.md)
|
|
17
|
-
- [IAuditableItemGraphVerification](interfaces/IAuditableItemGraphVerification.md)
|
|
18
16
|
- [IAuditableItemGraphVertex](interfaces/IAuditableItemGraphVertex.md)
|
|
19
17
|
- [IAuditableItemGraphVertexList](interfaces/IAuditableItemGraphVertexList.md)
|
|
20
18
|
- [IAuditableItemGraphCreateRequest](interfaces/IAuditableItemGraphCreateRequest.md)
|
|
@@ -27,11 +25,9 @@
|
|
|
27
25
|
## Type Aliases
|
|
28
26
|
|
|
29
27
|
- [AuditableItemGraphTypes](type-aliases/AuditableItemGraphTypes.md)
|
|
30
|
-
- [AuditableItemGraphVerificationState](type-aliases/AuditableItemGraphVerificationState.md)
|
|
31
28
|
- [VerifyDepth](type-aliases/VerifyDepth.md)
|
|
32
29
|
|
|
33
30
|
## Variables
|
|
34
31
|
|
|
35
32
|
- [AuditableItemGraphTypes](variables/AuditableItemGraphTypes.md)
|
|
36
|
-
- [AuditableItemGraphVerificationState](variables/AuditableItemGraphVerificationState.md)
|
|
37
33
|
- [VerifyDepth](variables/VerifyDepth.md)
|
|
@@ -20,6 +20,14 @@ JSON-LD Type.
|
|
|
20
20
|
|
|
21
21
|
***
|
|
22
22
|
|
|
23
|
+
### id
|
|
24
|
+
|
|
25
|
+
> **id**: `string`
|
|
26
|
+
|
|
27
|
+
The id of the changeset.
|
|
28
|
+
|
|
29
|
+
***
|
|
30
|
+
|
|
23
31
|
### dateCreated
|
|
24
32
|
|
|
25
33
|
> **dateCreated**: `string`
|
|
@@ -44,24 +52,16 @@ The patches in the changeset.
|
|
|
44
52
|
|
|
45
53
|
***
|
|
46
54
|
|
|
47
|
-
###
|
|
48
|
-
|
|
49
|
-
> **hash**: `string`
|
|
50
|
-
|
|
51
|
-
The hash for the changeset.
|
|
52
|
-
|
|
53
|
-
***
|
|
54
|
-
|
|
55
|
-
### signature
|
|
55
|
+
### proofId?
|
|
56
56
|
|
|
57
|
-
> **
|
|
57
|
+
> `optional` **proofId**: `string`
|
|
58
58
|
|
|
59
|
-
The signature for
|
|
59
|
+
The immutable proof id which contains the signature for this changeset.
|
|
60
60
|
|
|
61
61
|
***
|
|
62
62
|
|
|
63
|
-
###
|
|
63
|
+
### verification?
|
|
64
64
|
|
|
65
|
-
> `optional` **
|
|
65
|
+
> `optional` **verification**: `IImmutableProofVerification`
|
|
66
66
|
|
|
67
|
-
The
|
|
67
|
+
The verification for the changeset.
|
|
@@ -125,11 +125,3 @@ Changesets for the vertex.
|
|
|
125
125
|
> `optional` **verified**: `boolean`
|
|
126
126
|
|
|
127
127
|
Is the vertex verified, will only be populated when verification is requested.
|
|
128
|
-
|
|
129
|
-
***
|
|
130
|
-
|
|
131
|
-
### changesetsVerification?
|
|
132
|
-
|
|
133
|
-
> `optional` **changesetsVerification**: [`IAuditableItemGraphVerification`](IAuditableItemGraphVerification.md)[]
|
|
134
|
-
|
|
135
|
-
The verification state of the changesets, will only be populated when changesets are requested.
|
|
@@ -48,24 +48,6 @@ Represents auditable item graph changeset.
|
|
|
48
48
|
|
|
49
49
|
Represents patch operation.
|
|
50
50
|
|
|
51
|
-
### Credential
|
|
52
|
-
|
|
53
|
-
> `readonly` **Credential**: `"AuditableItemGraphPatchCredential"` = `"AuditableItemGraphPatchCredential"`
|
|
54
|
-
|
|
55
|
-
Represents the immutable credential payload.
|
|
56
|
-
|
|
57
|
-
### Verification
|
|
58
|
-
|
|
59
|
-
> `readonly` **Verification**: `"AuditableItemGraphVerification"` = `"AuditableItemGraphVerification"`
|
|
60
|
-
|
|
61
|
-
Represents auditable item stream verification.
|
|
62
|
-
|
|
63
|
-
### VerificationState
|
|
64
|
-
|
|
65
|
-
> `readonly` **VerificationState**: `"AuditableItemGraphVerificationState"` = `"AuditableItemGraphVerificationState"`
|
|
66
|
-
|
|
67
|
-
Represents auditable item stream verification state.
|
|
68
|
-
|
|
69
51
|
### VertexList
|
|
70
52
|
|
|
71
53
|
> `readonly` **VertexList**: `"AuditableItemGraphVertexList"` = `"AuditableItemGraphVertexList"`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/auditable-item-graph-models",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.9",
|
|
4
4
|
"description": "Models which define the structure of the auditable item graph connectors and services",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"@twin.org/data-core": "next",
|
|
19
19
|
"@twin.org/data-json-ld": "next",
|
|
20
20
|
"@twin.org/entity": "next",
|
|
21
|
+
"@twin.org/immutable-proof-models": "next",
|
|
21
22
|
"@twin.org/nameof": "next",
|
|
22
23
|
"@twin.org/web": "next"
|
|
23
24
|
},
|