@twin.org/document-management-service 0.0.2-next.4 → 0.0.3-next.10

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.
@@ -68,7 +68,7 @@
68
68
  "schema": {
69
69
  "type": "string"
70
70
  },
71
- "description": "e.g. aig:123456"
71
+ "description": "e.g. aig%3A123456"
72
72
  }
73
73
  }
74
74
  },
@@ -240,10 +240,10 @@
240
240
  "type": "DigitalDocument",
241
241
  "name": "bill-of-lading"
242
242
  },
243
- "blobHash": "sha256:E3Duqrp6bHojSx+CzDttAToAiP1eFkCDAPBbKLABVGM=",
243
+ "integrity": "sha256-E3Duqrp6bHojSx+CzDttAToAiP1eFkCDAPBbKLABVGM=",
244
244
  "blobStorageId": "blob:memory:1370eeaaba7a6c7a234b1f82cc3b6d013a0088fd5e16408300f05b28b0015463",
245
245
  "dateCreated": "2024-08-22T04:13:20.000Z",
246
- "nodeIdentity": "did:entity-storage:0x0101010101010101010101010101010101010101010101010101010101010101",
246
+ "organizationIdentity": "did:entity-storage:0x0101010101010101010101010101010101010101010101010101010101010101",
247
247
  "userIdentity": "did:entity-storage:0x0404040404040404040404040404040404040404040404040404040404040404"
248
248
  }
249
249
  }
@@ -451,10 +451,7 @@
451
451
  "in": "query",
452
452
  "required": false,
453
453
  "schema": {
454
- "type": [
455
- "boolean",
456
- "string"
457
- ]
454
+ "type": "string"
458
455
  }
459
456
  },
460
457
  {
@@ -463,10 +460,7 @@
463
460
  "in": "query",
464
461
  "required": false,
465
462
  "schema": {
466
- "type": [
467
- "boolean",
468
- "string"
469
- ]
463
+ "type": "string"
470
464
  }
471
465
  },
472
466
  {
@@ -475,10 +469,7 @@
475
469
  "in": "query",
476
470
  "required": false,
477
471
  "schema": {
478
- "type": [
479
- "boolean",
480
- "string"
481
- ]
472
+ "type": "string"
482
473
  }
483
474
  },
484
475
  {
@@ -487,10 +478,7 @@
487
478
  "in": "query",
488
479
  "required": false,
489
480
  "schema": {
490
- "type": [
491
- "boolean",
492
- "string"
493
- ]
481
+ "type": "string"
494
482
  }
495
483
  },
496
484
  {
@@ -564,9 +552,9 @@
564
552
  "itemListElement": [
565
553
  {
566
554
  "@context": [
555
+ "https://schema.org",
567
556
  "https://schema.twindev.org/documents/",
568
- "https://schema.twindev.org/common/",
569
- "https://schema.org"
557
+ "https://schema.twindev.org/common/"
570
558
  ],
571
559
  "type": "Document",
572
560
  "id": "2721000:0",
@@ -575,14 +563,14 @@
575
563
  "documentCode": "unece:DocumentCodeList#705",
576
564
  "documentRevision": 0,
577
565
  "blobStorageId": "blob-memory:c57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70",
578
- "blobHash": "sha256:123456",
566
+ "integrity": "sha256-123456",
579
567
  "dateCreated": "2024-01-01T00:00:00Z",
580
568
  "annotationObject": {
581
569
  "@context": "https://schema.org",
582
570
  "@type": "DigitalDocument",
583
571
  "name": "myfile.pdf"
584
572
  },
585
- "nodeIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363",
573
+ "organizationIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363",
586
574
  "userIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363"
587
575
  }
588
576
  ]
@@ -606,9 +594,9 @@
606
594
  "itemListElement": [
607
595
  {
608
596
  "@context": [
597
+ "https://schema.org",
609
598
  "https://schema.twindev.org/documents/",
610
- "https://schema.twindev.org/common/",
611
- "https://schema.org"
599
+ "https://schema.twindev.org/common/"
612
600
  ],
613
601
  "type": "Document",
614
602
  "id": "2721000:0",
@@ -617,14 +605,14 @@
617
605
  "documentCode": "unece:DocumentCodeList#705",
618
606
  "documentRevision": 0,
619
607
  "blobStorageId": "blob-memory:c57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70",
620
- "blobHash": "sha256:123456",
608
+ "integrity": "sha256-123456",
621
609
  "dateCreated": "2024-01-01T00:00:00Z",
622
610
  "annotationObject": {
623
611
  "@context": "https://schema.org",
624
612
  "@type": "DigitalDocument",
625
613
  "name": "myfile.pdf"
626
614
  },
627
- "nodeIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363",
615
+ "organizationIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363",
628
616
  "userIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363"
629
617
  }
630
618
  ]
@@ -763,9 +751,9 @@
763
751
  "DocumentManagementGetRevisionResponseExample": {
764
752
  "value": {
765
753
  "@context": [
754
+ "https://schema.org",
766
755
  "https://schema.twindev.org/documents/",
767
- "https://schema.twindev.org/common/",
768
- "https://schema.org"
756
+ "https://schema.twindev.org/common/"
769
757
  ],
770
758
  "type": "Document",
771
759
  "id": "2721000:0",
@@ -774,14 +762,14 @@
774
762
  "documentCode": "unece:DocumentCodeList#705",
775
763
  "documentRevision": 1,
776
764
  "blobStorageId": "blob-memory:c57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70",
777
- "blobHash": "sha256:123456",
765
+ "integrity": "sha256-123456",
778
766
  "dateCreated": "2024-01-01T00:00:00Z",
779
767
  "annotationObject": {
780
768
  "@context": "https://schema.org",
781
769
  "@type": "DigitalDocument",
782
770
  "name": "myfile.pdf"
783
771
  },
784
- "nodeIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363",
772
+ "organizationIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363",
785
773
  "userIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363"
786
774
  }
787
775
  }
@@ -795,9 +783,9 @@
795
783
  "DocumentManagementGetRevisionResponseExample": {
796
784
  "value": {
797
785
  "@context": [
786
+ "https://schema.org",
798
787
  "https://schema.twindev.org/documents/",
799
- "https://schema.twindev.org/common/",
800
- "https://schema.org"
788
+ "https://schema.twindev.org/common/"
801
789
  ],
802
790
  "type": "Document",
803
791
  "id": "2721000:0",
@@ -806,14 +794,14 @@
806
794
  "documentCode": "unece:DocumentCodeList#705",
807
795
  "documentRevision": 1,
808
796
  "blobStorageId": "blob-memory:c57d94b088f4c6d2cb32ded014813d0c786aa00134c8ee22f84b1e2545602a70",
809
- "blobHash": "sha256:123456",
797
+ "integrity": "sha256-123456",
810
798
  "dateCreated": "2024-01-01T00:00:00Z",
811
799
  "annotationObject": {
812
800
  "@context": "https://schema.org",
813
801
  "@type": "DigitalDocument",
814
802
  "name": "myfile.pdf"
815
803
  },
816
- "nodeIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363",
804
+ "organizationIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363",
817
805
  "userIdentity": "did:entity-storage:0x6363636363636363636363636363636363636363636363636363636363636363"
818
806
  }
819
807
  }
@@ -1030,24 +1018,24 @@
1030
1018
  "@context": {
1031
1019
  "type": "array",
1032
1020
  "minItems": 3,
1033
- "items": {
1034
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
1035
- },
1036
1021
  "description": "JSON-LD Context.",
1037
1022
  "prefixItems": [
1038
1023
  {
1039
1024
  "type": "string",
1040
- "const": "https://schema.twindev.org/documents/"
1025
+ "const": "https://schema.org"
1041
1026
  },
1042
1027
  {
1043
1028
  "type": "string",
1044
- "const": "https://schema.twindev.org/common/"
1029
+ "const": "https://schema.twindev.org/documents/"
1045
1030
  },
1046
1031
  {
1047
1032
  "type": "string",
1048
- "const": "https://schema.org"
1033
+ "const": "https://schema.twindev.org/common/"
1049
1034
  }
1050
- ]
1035
+ ],
1036
+ "items": {
1037
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
1038
+ }
1051
1039
  },
1052
1040
  "type": {
1053
1041
  "type": "string",
@@ -1060,62 +1048,62 @@
1060
1048
  },
1061
1049
  "documentId": {
1062
1050
  "type": "string",
1063
- "description": "The id of the document."
1051
+ "description": "The id of the document. json-ld type:schema:identifier"
1064
1052
  },
1065
1053
  "documentIdFormat": {
1066
1054
  "type": "string",
1067
- "description": "The format of the document id."
1055
+ "description": "The format of the document id. json-ld type:schema:Text"
1068
1056
  },
1069
1057
  "documentCode": {
1070
- "$ref": "https://schema.twindev.org/unece/UneceDocumentCodes"
1058
+ "$ref": "https://schema.twindev.org/unece/UneceDocumentCodeList"
1071
1059
  },
1072
1060
  "documentRevision": {
1073
1061
  "type": "number",
1074
- "description": "The revision of the document as a 0 based index."
1062
+ "description": "The revision of the document as a 0 based index. json-ld type:schema:Integer"
1075
1063
  },
1076
1064
  "annotationObject": {
1077
1065
  "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1078
1066
  },
1079
1067
  "blobStorageId": {
1080
1068
  "type": "string",
1081
- "description": "The blob storage id for the document."
1069
+ "description": "The blob storage id for the document. json-ld type:schema:identifier"
1082
1070
  },
1083
- "blobHash": {
1071
+ "integrity": {
1084
1072
  "type": "string",
1085
- "description": "The hash of the blob data."
1073
+ "description": "The integrity of the blob data. json-ld namespace:twin-common"
1086
1074
  },
1087
1075
  "blobStorageEntry": {
1088
1076
  "$ref": "https://schema.twindev.org/blob-storage/BlobStorageEntry"
1089
1077
  },
1090
1078
  "extractedData": {
1091
- "description": "The data extracted from the document using data extraction services."
1079
+ "description": "The data extracted from the document using data extraction services. json-ld type:json"
1092
1080
  },
1093
1081
  "attestationId": {
1094
1082
  "type": "string",
1095
- "description": "The attestation for the document if one was created."
1083
+ "description": "The attestation for the document if one was created. json-ld type:schema:identifier"
1096
1084
  },
1097
1085
  "attestationInformation": {
1098
1086
  "$ref": "https://schema.twindev.org/attestation/AttestationInformation"
1099
1087
  },
1100
1088
  "dateCreated": {
1101
1089
  "type": "string",
1102
- "description": "The date/time of when the document was created."
1090
+ "description": "The date/time of when the document was created. json-ld namespace:schema"
1103
1091
  },
1104
1092
  "dateModified": {
1105
1093
  "type": "string",
1106
- "description": "The date/time of when the document was modified."
1094
+ "description": "The date/time of when the document was modified. json-ld namespace:schema"
1107
1095
  },
1108
1096
  "dateDeleted": {
1109
1097
  "type": "string",
1110
- "description": "The date/time of when the document was deleted, as we never actually remove items."
1098
+ "description": "The date/time of when the document was deleted, as we never actually remove items. json-ld namespace:schema"
1111
1099
  },
1112
- "nodeIdentity": {
1100
+ "organizationIdentity": {
1113
1101
  "type": "string",
1114
- "description": "The node which added the document to the graph."
1102
+ "description": "The organization which added the document to the graph. json-ld namespace:twin-common"
1115
1103
  },
1116
1104
  "userIdentity": {
1117
1105
  "type": "string",
1118
- "description": "The user who added the document to the graph."
1106
+ "description": "The user who added the document to the graph. json-ld namespace:twin-common"
1119
1107
  }
1120
1108
  },
1121
1109
  "required": [
@@ -1126,10 +1114,8 @@
1126
1114
  "documentCode",
1127
1115
  "documentRevision",
1128
1116
  "blobStorageId",
1129
- "blobHash",
1130
- "dateCreated",
1131
- "nodeIdentity",
1132
- "userIdentity"
1117
+ "integrity",
1118
+ "dateCreated"
1133
1119
  ],
1134
1120
  "additionalProperties": false,
1135
1121
  "description": "Interface describing a document."
@@ -1140,9 +1126,6 @@
1140
1126
  "@context": {
1141
1127
  "type": "array",
1142
1128
  "minItems": 3,
1143
- "items": {
1144
- "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
1145
- },
1146
1129
  "description": "JSON-LD Context.",
1147
1130
  "prefixItems": [
1148
1131
  {
@@ -1157,7 +1140,10 @@
1157
1140
  "type": "string",
1158
1141
  "const": "https://schema.twindev.org/common/"
1159
1142
  }
1160
- ]
1143
+ ],
1144
+ "items": {
1145
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdContextDefinitionElement"
1146
+ }
1161
1147
  },
1162
1148
  "type": {
1163
1149
  "type": "string",
@@ -1166,27 +1152,17 @@
1166
1152
  },
1167
1153
  "itemListElement": {
1168
1154
  "type": "array",
1169
- "items": false,
1170
- "description": "The list of documents.",
1171
- "prefixItems": [
1172
- {
1173
- "$ref": "#/components/schemas/Document"
1174
- }
1175
- ]
1155
+ "items": {
1156
+ "$ref": "#/components/schemas/Document"
1157
+ },
1158
+ "description": "The list of documents. json-ld namespace:schema"
1176
1159
  },
1177
1160
  "edges": {
1178
1161
  "type": "array",
1179
- "items": false,
1180
- "description": "The ids of the other vertices which are connected to the document.",
1181
- "prefixItems": [
1182
- {
1183
- "type": "string"
1184
- }
1185
- ]
1186
- },
1187
- "nextItem": {
1188
- "type": "string",
1189
- "description": "The cursor to get the next chunk of documents."
1162
+ "items": {
1163
+ "type": "string"
1164
+ },
1165
+ "description": "The ids of the other vertices which are connected to the document. json-ld container:set"
1190
1166
  }
1191
1167
  },
1192
1168
  "required": [
@@ -1209,7 +1185,7 @@
1209
1185
  "description": "The format of the document identifier."
1210
1186
  },
1211
1187
  "documentCode": {
1212
- "$ref": "https://schema.twindev.org/unece/UneceDocumentCodes"
1188
+ "$ref": "https://schema.twindev.org/unece/UneceDocumentCodeList"
1213
1189
  },
1214
1190
  "blob": {
1215
1191
  "type": "string",
@@ -1220,28 +1196,25 @@
1220
1196
  },
1221
1197
  "auditableItemGraphEdges": {
1222
1198
  "type": "array",
1223
- "items": false,
1224
- "description": "The auditable item graph vertices to connect the document to.",
1225
- "prefixItems": [
1226
- {
1227
- "type": "object",
1228
- "properties": {
1229
- "targetId": {
1230
- "type": "string"
1231
- },
1232
- "addAlias": {
1233
- "type": "boolean"
1234
- },
1235
- "aliasAnnotationObject": {
1236
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1237
- }
1199
+ "items": {
1200
+ "type": "object",
1201
+ "properties": {
1202
+ "targetId": {
1203
+ "type": "string"
1238
1204
  },
1239
- "required": [
1240
- "targetId"
1241
- ],
1242
- "additionalProperties": false
1243
- }
1244
- ]
1205
+ "addAlias": {
1206
+ "type": "boolean"
1207
+ },
1208
+ "aliasAnnotationObject": {
1209
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1210
+ }
1211
+ },
1212
+ "required": [
1213
+ "targetId"
1214
+ ],
1215
+ "additionalProperties": false
1216
+ },
1217
+ "description": "The auditable item graph vertices to connect the document to."
1245
1218
  },
1246
1219
  "createAttestation": {
1247
1220
  "type": "boolean",
@@ -1275,28 +1248,25 @@
1275
1248
  },
1276
1249
  "auditableItemGraphEdges": {
1277
1250
  "type": "array",
1278
- "items": false,
1279
- "description": "The auditable item graph vertices to connect the document to.",
1280
- "prefixItems": [
1281
- {
1282
- "type": "object",
1283
- "properties": {
1284
- "targetId": {
1285
- "type": "string"
1286
- },
1287
- "addAlias": {
1288
- "type": "boolean"
1289
- },
1290
- "aliasAnnotationObject": {
1291
- "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1292
- }
1251
+ "items": {
1252
+ "type": "object",
1253
+ "properties": {
1254
+ "targetId": {
1255
+ "type": "string"
1293
1256
  },
1294
- "required": [
1295
- "targetId"
1296
- ],
1297
- "additionalProperties": false
1298
- }
1299
- ]
1257
+ "addAlias": {
1258
+ "type": "boolean"
1259
+ },
1260
+ "aliasAnnotationObject": {
1261
+ "$ref": "https://schema.twindev.org/json-ld/JsonLdNodeObject"
1262
+ }
1263
+ },
1264
+ "required": [
1265
+ "targetId"
1266
+ ],
1267
+ "additionalProperties": false
1268
+ },
1269
+ "description": "The auditable item graph vertices to connect the document to."
1300
1270
  }
1301
1271
  },
1302
1272
  "additionalProperties": false,
@@ -36,9 +36,27 @@ Runtime name for the class.
36
36
 
37
37
  ## Methods
38
38
 
39
+ ### className()
40
+
41
+ > **className**(): `string`
42
+
43
+ Returns the class name of the component.
44
+
45
+ #### Returns
46
+
47
+ `string`
48
+
49
+ The class name of the component.
50
+
51
+ #### Implementation of
52
+
53
+ `IDocumentManagementComponent.className`
54
+
55
+ ***
56
+
39
57
  ### create()
40
58
 
41
- > **create**(`documentId`, `documentIdFormat`, `documentCode`, `blob`, `annotationObject?`, `auditableItemGraphEdges?`, `options?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`string`\>
59
+ > **create**(`documentId`, `documentIdFormat`, `documentCode`, `blob`, `annotationObject?`, `auditableItemGraphEdges?`, `options?`): `Promise`\<`string`\>
42
60
 
43
61
  Store a document as an auditable item graph vertex and add its content to blob storage.
44
62
  If the document id already exists and the blob data is different a new revision will be created.
@@ -56,11 +74,11 @@ The document id to create.
56
74
 
57
75
  The format of the document identifier.
58
76
 
59
- `undefined` | `string`
77
+ `string` | `undefined`
60
78
 
61
79
  ##### documentCode
62
80
 
63
- `string`
81
+ `UneceDocumentCodeList`
64
82
 
65
83
  The code for the document type.
66
84
 
@@ -104,18 +122,6 @@ Flag to add the document id as an alias to the aig vertex, defaults to true.
104
122
 
105
123
  Annotation object for the alias.
106
124
 
107
- ##### userIdentity?
108
-
109
- `string`
110
-
111
- The identity to perform the auditable item graph operation with.
112
-
113
- ##### nodeIdentity?
114
-
115
- `string`
116
-
117
- The node identity to use for vault operations.
118
-
119
125
  #### Returns
120
126
 
121
127
  `Promise`\<`string`\>
@@ -130,7 +136,7 @@ The auditable item graph vertex created for the document including its revision.
130
136
 
131
137
  ### update()
132
138
 
133
- > **update**(`auditableItemGraphDocumentId`, `blob?`, `annotationObject?`, `auditableItemGraphEdges?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`void`\>
139
+ > **update**(`auditableItemGraphDocumentId`, `blob?`, `annotationObject?`, `auditableItemGraphEdges?`): `Promise`\<`void`\>
134
140
 
135
141
  Update a document as an auditable item graph vertex and add its content to blob storage.
136
142
  If the blob data is different a new revision will be created.
@@ -162,18 +168,6 @@ Additional information to associate with the document.
162
168
 
163
169
  The auditable item graph vertices to connect the document to, if undefined retains current connections.
164
170
 
165
- ##### userIdentity?
166
-
167
- `string`
168
-
169
- The identity to perform the auditable item graph operation with.
170
-
171
- ##### nodeIdentity?
172
-
173
- `string`
174
-
175
- The node identity to use for vault operations.
176
-
177
171
  #### Returns
178
172
 
179
173
  `Promise`\<`void`\>
@@ -188,7 +182,7 @@ Nothing.
188
182
 
189
183
  ### get()
190
184
 
191
- > **get**(`auditableItemGraphDocumentId`, `options?`, `cursor?`, `limit?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`IDocumentList`\>
185
+ > **get**(`auditableItemGraphDocumentId`, `options?`, `cursor?`, `limit?`): `Promise`\<\{ `entries`: `IDocumentList`; `cursor?`: `string`; \}\>
192
186
 
193
187
  Get a document using it's auditable item graph vertex id and optional revision.
194
188
 
@@ -252,21 +246,9 @@ The cursor to get the next chunk of revisions.
252
246
 
253
247
  Limit the number of items to return, defaults to 1 so only most recent is returned.
254
248
 
255
- ##### userIdentity?
256
-
257
- `string`
258
-
259
- The identity to perform the auditable item graph operation with.
260
-
261
- ##### nodeIdentity?
262
-
263
- `string`
264
-
265
- The node identity to use for vault operations.
266
-
267
249
  #### Returns
268
250
 
269
- `Promise`\<`IDocumentList`\>
251
+ `Promise`\<\{ `entries`: `IDocumentList`; `cursor?`: `string`; \}\>
270
252
 
271
253
  The documents and revisions if requested, ordered by revision descending, cursor is set if there are more document revisions.
272
254
 
@@ -278,7 +260,7 @@ The documents and revisions if requested, ordered by revision descending, cursor
278
260
 
279
261
  ### getRevision()
280
262
 
281
- > **getRevision**(`auditableItemGraphDocumentId`, `revision`, `options?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`IDocument`\>
263
+ > **getRevision**(`auditableItemGraphDocumentId`, `revision`, `options?`): `Promise`\<`IDocument`\>
282
264
 
283
265
  Get a document revision using it's auditable item graph vertex id.
284
266
 
@@ -330,18 +312,6 @@ If provided will extract data from the document using the specified rule group i
330
312
 
331
313
  By default extraction will auto detect the mime type of the document, this can be used to override the detection.
332
314
 
333
- ##### userIdentity?
334
-
335
- `string`
336
-
337
- The identity to perform the auditable item graph operation with.
338
-
339
- ##### nodeIdentity?
340
-
341
- `string`
342
-
343
- The node identity to use for vault operations.
344
-
345
315
  #### Returns
346
316
 
347
317
  `Promise`\<`IDocument`\>
@@ -356,7 +326,7 @@ The documents and revisions if requested, ordered by revision descending, cursor
356
326
 
357
327
  ### removeRevision()
358
328
 
359
- > **removeRevision**(`auditableItemGraphDocumentId`, `revision`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`void`\>
329
+ > **removeRevision**(`auditableItemGraphDocumentId`, `revision`): `Promise`\<`void`\>
360
330
 
361
331
  Remove an auditable item graph vertex using it's id.
362
332
  The document dateDeleted will be set, but can still be queried with the includeRemoved flag.
@@ -375,18 +345,6 @@ The auditable item graph vertex id which contains the document.
375
345
 
376
346
  The revision of the document to remove.
377
347
 
378
- ##### userIdentity?
379
-
380
- `string`
381
-
382
- The identity to perform the auditable item graph operation with.
383
-
384
- ##### nodeIdentity?
385
-
386
- `string`
387
-
388
- The node identity to use for vault operations.
389
-
390
348
  #### Returns
391
349
 
392
350
  `Promise`\<`void`\>
@@ -401,7 +359,7 @@ Nothing.
401
359
 
402
360
  ### query()
403
361
 
404
- > **query**(`documentId`, `cursor?`, `limit?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`IAuditableItemGraphVertexList`\>
362
+ > **query**(`documentId`, `cursor?`, `limit?`): `Promise`\<\{ `entries`: `IAuditableItemGraphVertexList`; `cursor?`: `string`; \}\>
405
363
 
406
364
  Find all the document with a specific id.
407
365
 
@@ -425,21 +383,9 @@ The cursor to get the next chunk of documents.
425
383
 
426
384
  The limit to get the next chunk of documents.
427
385
 
428
- ##### userIdentity?
429
-
430
- `string`
431
-
432
- The identity to perform the auditable item graph operation with.
433
-
434
- ##### nodeIdentity?
435
-
436
- `string`
437
-
438
- The node identity to use for vault operations.
439
-
440
386
  #### Returns
441
387
 
442
- `Promise`\<`IAuditableItemGraphVertexList`\>
388
+ `Promise`\<\{ `entries`: `IAuditableItemGraphVertexList`; `cursor?`: `string`; \}\>
443
389
 
444
390
  The graph vertices that contain documents referencing the specified document id.
445
391