@twin.org/document-management-models 0.0.1-next.2 → 0.0.1-next.20

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 (41) hide show
  1. package/dist/cjs/index.cjs +167 -5
  2. package/dist/esm/index.mjs +166 -6
  3. package/dist/types/dataTypes/documentManagementDataTypes.d.ts +9 -0
  4. package/dist/types/index.d.ts +8 -2
  5. package/dist/types/models/IDocument.d.ts +14 -9
  6. package/dist/types/models/IDocumentAttestation.d.ts +41 -0
  7. package/dist/types/models/IDocumentList.d.ts +13 -7
  8. package/dist/types/models/IDocumentManagementComponent.d.ts +75 -33
  9. package/dist/types/models/api/{IDocumentManagementSetRequest.d.ts → IDocumentManagementCreateRequest.d.ts} +19 -12
  10. package/dist/types/models/api/IDocumentManagementGetRequest.d.ts +17 -13
  11. package/dist/types/models/api/IDocumentManagementGetResponse.d.ts +2 -2
  12. package/dist/types/models/api/IDocumentManagementGetRevisionRequest.d.ts +53 -0
  13. package/dist/types/models/api/IDocumentManagementGetRevisionResponse.d.ts +17 -0
  14. package/dist/types/models/api/IDocumentManagementQueryRequest.d.ts +7 -22
  15. package/dist/types/models/api/IDocumentManagementQueryResponse.d.ts +2 -2
  16. package/dist/types/models/api/IDocumentManagementRemoveRequest.d.ts +5 -15
  17. package/dist/types/models/api/IDocumentManagementUpdateRequest.d.ts +36 -0
  18. package/dist/types/models/documentContexts.d.ts +17 -0
  19. package/dist/types/models/documentTypes.d.ts +17 -0
  20. package/docs/changelog.md +104 -1
  21. package/docs/reference/classes/DocumentManagementDataTypes.md +25 -0
  22. package/docs/reference/index.md +11 -1
  23. package/docs/reference/interfaces/IDocument.md +14 -6
  24. package/docs/reference/interfaces/IDocumentAttestation.md +59 -0
  25. package/docs/reference/interfaces/IDocumentList.md +15 -7
  26. package/docs/reference/interfaces/IDocumentManagementComponent.md +179 -55
  27. package/docs/reference/interfaces/{IDocumentManagementSetRequest.md → IDocumentManagementCreateRequest.md} +21 -17
  28. package/docs/reference/interfaces/IDocumentManagementGetRequest.md +24 -18
  29. package/docs/reference/interfaces/IDocumentManagementGetResponse.md +1 -1
  30. package/docs/reference/interfaces/IDocumentManagementGetRevisionRequest.md +91 -0
  31. package/docs/reference/interfaces/IDocumentManagementGetRevisionResponse.md +23 -0
  32. package/docs/reference/interfaces/IDocumentManagementQueryRequest.md +11 -43
  33. package/docs/reference/interfaces/IDocumentManagementQueryResponse.md +1 -1
  34. package/docs/reference/interfaces/IDocumentManagementRemoveRequest.md +7 -27
  35. package/docs/reference/interfaces/IDocumentManagementUpdateRequest.md +43 -0
  36. package/docs/reference/type-aliases/DocumentContexts.md +5 -0
  37. package/docs/reference/type-aliases/DocumentTypes.md +1 -1
  38. package/docs/reference/variables/DocumentContexts.md +19 -0
  39. package/docs/reference/variables/DocumentTypes.md +3 -15
  40. package/package.json +3 -1
  41. package/dist/types/models/documentDataTypes.d.ts +0 -25
@@ -1,21 +1,31 @@
1
1
  # @twin.org/document-management-models
2
2
 
3
+ ## Classes
4
+
5
+ - [DocumentManagementDataTypes](classes/DocumentManagementDataTypes.md)
6
+
3
7
  ## Interfaces
4
8
 
5
9
  - [IDocument](interfaces/IDocument.md)
10
+ - [IDocumentAttestation](interfaces/IDocumentAttestation.md)
6
11
  - [IDocumentList](interfaces/IDocumentList.md)
7
12
  - [IDocumentManagementComponent](interfaces/IDocumentManagementComponent.md)
13
+ - [IDocumentManagementCreateRequest](interfaces/IDocumentManagementCreateRequest.md)
8
14
  - [IDocumentManagementGetRequest](interfaces/IDocumentManagementGetRequest.md)
9
15
  - [IDocumentManagementGetResponse](interfaces/IDocumentManagementGetResponse.md)
16
+ - [IDocumentManagementGetRevisionRequest](interfaces/IDocumentManagementGetRevisionRequest.md)
17
+ - [IDocumentManagementGetRevisionResponse](interfaces/IDocumentManagementGetRevisionResponse.md)
10
18
  - [IDocumentManagementQueryRequest](interfaces/IDocumentManagementQueryRequest.md)
11
19
  - [IDocumentManagementQueryResponse](interfaces/IDocumentManagementQueryResponse.md)
12
20
  - [IDocumentManagementRemoveRequest](interfaces/IDocumentManagementRemoveRequest.md)
13
- - [IDocumentManagementSetRequest](interfaces/IDocumentManagementSetRequest.md)
21
+ - [IDocumentManagementUpdateRequest](interfaces/IDocumentManagementUpdateRequest.md)
14
22
 
15
23
  ## Type Aliases
16
24
 
25
+ - [DocumentContexts](type-aliases/DocumentContexts.md)
17
26
  - [DocumentTypes](type-aliases/DocumentTypes.md)
18
27
 
19
28
  ## Variables
20
29
 
30
+ - [DocumentContexts](variables/DocumentContexts.md)
21
31
  - [DocumentTypes](variables/DocumentTypes.md)
@@ -92,6 +92,14 @@ The additional JSON-LD for blob storage if it was requested.
92
92
 
93
93
  ***
94
94
 
95
+ ### extractedData?
96
+
97
+ > `optional` **extractedData**: `unknown`
98
+
99
+ The data extracted from the document using data extraction services.
100
+
101
+ ***
102
+
95
103
  ### attestationId?
96
104
 
97
105
  > `optional` **attestationId**: `string`
@@ -132,16 +140,16 @@ The date/time of when the document was deleted, as we never actually remove item
132
140
 
133
141
  ***
134
142
 
135
- ### revisions?
143
+ ### nodeIdentity
136
144
 
137
- > `optional` **revisions**: [`IDocument`](IDocument.md)[]
145
+ > **nodeIdentity**: `string`
138
146
 
139
- The previous revisions of the document.
147
+ The node which added the document to the graph.
140
148
 
141
149
  ***
142
150
 
143
- ### revisionCursor?
151
+ ### userIdentity
144
152
 
145
- > `optional` **revisionCursor**: `string`
153
+ > **userIdentity**: `string`
146
154
 
147
- The cursor to get the next chunk of revisions.
155
+ The user who added the document to the graph.
@@ -0,0 +1,59 @@
1
+ # Interface: IDocumentAttestation
2
+
3
+ Interface describing a document attestation.
4
+
5
+ ## Properties
6
+
7
+ ### @context
8
+
9
+ > **@context**: \[`"https://schema.twindev.org/documents/"`, `"https://schema.twindev.org/common/"`, `"https://schema.org"`\]
10
+
11
+ JSON-LD Context.
12
+
13
+ ***
14
+
15
+ ### type
16
+
17
+ > **type**: `"DocumentAttestation"`
18
+
19
+ JSON-LD Type.
20
+
21
+ ***
22
+
23
+ ### documentId
24
+
25
+ > **documentId**: `string`
26
+
27
+ The id of the document.
28
+
29
+ ***
30
+
31
+ ### documentCode
32
+
33
+ > **documentCode**: `string`
34
+
35
+ The code for the document type.
36
+
37
+ ***
38
+
39
+ ### documentRevision
40
+
41
+ > **documentRevision**: `number`
42
+
43
+ The revision of the document as a 0 based index.
44
+
45
+ ***
46
+
47
+ ### dateCreated
48
+
49
+ > **dateCreated**: `string`
50
+
51
+ The date/time of when the document was created.
52
+
53
+ ***
54
+
55
+ ### blobHash
56
+
57
+ > **blobHash**: `string`
58
+
59
+ The hash of the document being attested.
@@ -1,12 +1,12 @@
1
1
  # Interface: IDocumentList
2
2
 
3
- Interface describing a document entry list.
3
+ Interface describing a list of document entries.
4
4
 
5
5
  ## Properties
6
6
 
7
7
  ### @context
8
8
 
9
- > **@context**: \[`"https://schema.twindev.org/documents/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
9
+ > **@context**: \[`"https://schema.org"`, `"https://schema.twindev.org/documents/"`, `"https://schema.twindev.org/common/"`, `...IJsonLdContextDefinitionElement[]`\]
10
10
 
11
11
  JSON-LD Context.
12
12
 
@@ -14,22 +14,30 @@ JSON-LD Context.
14
14
 
15
15
  ### type
16
16
 
17
- > **type**: `"DocumentList"`
17
+ > **type**: `"ItemList"`
18
18
 
19
19
  JSON-LD Type.
20
20
 
21
21
  ***
22
22
 
23
- ### documents
23
+ ### itemListElement
24
24
 
25
- > **documents**: [`IDocument`](IDocument.md)[]
25
+ > **itemListElement**: [`IDocument`](IDocument.md)[]
26
26
 
27
27
  The list of documents.
28
28
 
29
29
  ***
30
30
 
31
- ### cursor?
31
+ ### edges?
32
32
 
33
- > `optional` **cursor**: `string`
33
+ > `optional` **edges**: `string`[]
34
+
35
+ The ids of the other vertices which are connected to the document.
36
+
37
+ ***
38
+
39
+ ### nextItem?
40
+
41
+ > `optional` **nextItem**: `string`
34
42
 
35
43
  The cursor to get the next chunk of documents.
@@ -8,22 +8,16 @@ Interface describing an document management contract.
8
8
 
9
9
  ## Methods
10
10
 
11
- ### set()
11
+ ### create()
12
12
 
13
- > **set**(`auditableItemGraphId`, `documentId`, `documentIdFormat`, `documentCode`, `blob`, `annotationObject`?, `createAttestation`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<`string`\>
13
+ > **create**(`documentId`, `documentIdFormat`, `documentCode`, `blob`, `annotationObject?`, `auditableItemGraphEdges?`, `options?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`string`\>
14
14
 
15
- Store a document in an auditable item graph vertex and add its content to blob storage.
15
+ Create a document as an auditable item graph vertex and add its content to blob storage.
16
16
  If the document id already exists and the blob data is different a new revision will be created.
17
17
  For any other changes the current revision will be updated.
18
18
 
19
19
  #### Parameters
20
20
 
21
- ##### auditableItemGraphId
22
-
23
- `string`
24
-
25
- The auditable item graph vertex id to create the document on.
26
-
27
21
  ##### documentId
28
22
 
29
23
  `string`
@@ -54,12 +48,34 @@ The data to create the document with.
54
48
 
55
49
  Additional information to associate with the document.
56
50
 
57
- ##### createAttestation?
51
+ ##### auditableItemGraphEdges?
52
+
53
+ `object`[]
54
+
55
+ The auditable item graph vertices to connect the document to.
56
+
57
+ ##### options?
58
+
59
+ Additional options for the set operation.
60
+
61
+ ###### createAttestation?
58
62
 
59
63
  `boolean`
60
64
 
61
65
  Flag to create an attestation for the document, defaults to false.
62
66
 
67
+ ###### addAlias?
68
+
69
+ `boolean`
70
+
71
+ Flag to add the document id as an alias to the aig vertex, defaults to true.
72
+
73
+ ###### aliasAnnotationObject?
74
+
75
+ `IJsonLdNodeObject`
76
+
77
+ Annotation object for the alias.
78
+
63
79
  ##### userIdentity?
64
80
 
65
81
  `string`
@@ -76,29 +92,77 @@ The node identity to use for vault operations.
76
92
 
77
93
  `Promise`\<`string`\>
78
94
 
79
- The identifier for the document which includes the auditable item graph identifier.
95
+ The auditable item graph vertex created for the document including its revision.
80
96
 
81
97
  ***
82
98
 
83
- ### get()
99
+ ### update()
84
100
 
85
- > **get**(`auditableItemGraphId`, `identifier`, `options`?, `revisionCursor`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<[`IDocument`](IDocument.md)\>
101
+ > **update**(`auditableItemGraphDocumentId`, `blob?`, `annotationObject?`, `auditableItemGraphEdges?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`void`\>
86
102
 
87
- Get a specific document from an auditable item graph vertex.
103
+ Update a document as an auditable item graph vertex and add its content to blob storage.
104
+ If the blob data is different a new revision will be created.
105
+ For any other changes the current revision will be updated.
88
106
 
89
107
  #### Parameters
90
108
 
91
- ##### auditableItemGraphId
109
+ ##### auditableItemGraphDocumentId
110
+
111
+ `string`
112
+
113
+ The auditable item graph vertex id which contains the document.
114
+
115
+ ##### blob?
116
+
117
+ `Uint8Array`\<`ArrayBufferLike`\>
118
+
119
+ The data to update the document with.
120
+
121
+ ##### annotationObject?
122
+
123
+ `IJsonLdNodeObject`
124
+
125
+ Additional information to associate with the document.
126
+
127
+ ##### auditableItemGraphEdges?
128
+
129
+ `object`[]
130
+
131
+ The auditable item graph vertices to connect the document to, if undefined retains current connections.
132
+
133
+ ##### userIdentity?
134
+
135
+ `string`
136
+
137
+ The identity to perform the auditable item graph operation with.
138
+
139
+ ##### nodeIdentity?
92
140
 
93
141
  `string`
94
142
 
95
- The auditable item graph vertex id to get the document from.
143
+ The node identity to use for vault operations.
144
+
145
+ #### Returns
146
+
147
+ `Promise`\<`void`\>
148
+
149
+ Nothing.
150
+
151
+ ***
152
+
153
+ ### get()
96
154
 
97
- ##### identifier
155
+ > **get**(`auditableItemGraphDocumentId`, `options?`, `cursor?`, `pageSize?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<[`IDocumentList`](IDocumentList.md)\>
156
+
157
+ Get a document using it's auditable item graph vertex id and optional revision.
158
+
159
+ #### Parameters
160
+
161
+ ##### auditableItemGraphDocumentId
98
162
 
99
163
  `string`
100
164
 
101
- The identifier of the document to get.
165
+ The auditable item graph vertex id which contains the document.
102
166
 
103
167
  ##### options?
104
168
 
@@ -128,18 +192,30 @@ Flag to include the attestation information for the document, defaults to false.
128
192
 
129
193
  Flag to include deleted documents, defaults to false.
130
194
 
131
- ###### maxRevisionCount?
195
+ ###### extractRuleGroupId?
132
196
 
133
- `number`
197
+ `string`
134
198
 
135
- Max number of revisions to return, defaults to 0.
199
+ If provided will extract data from the document using the specified rule group id.
136
200
 
137
- ##### revisionCursor?
201
+ ###### extractMimeType?
202
+
203
+ `string`
204
+
205
+ By default extraction will auto detect the mime type of the document, this can be used to override the detection.
206
+
207
+ ##### cursor?
138
208
 
139
209
  `string`
140
210
 
141
211
  The cursor to get the next chunk of revisions.
142
212
 
213
+ ##### pageSize?
214
+
215
+ `number`
216
+
217
+ Page size of items to return, defaults to 1 so only most recent is returned.
218
+
143
219
  ##### userIdentity?
144
220
 
145
221
  `string`
@@ -154,42 +230,65 @@ The node identity to use for vault operations.
154
230
 
155
231
  #### Returns
156
232
 
157
- `Promise`\<[`IDocument`](IDocument.md)\>
233
+ `Promise`\<[`IDocumentList`](IDocumentList.md)\>
158
234
 
159
235
  The documents and revisions if requested, ordered by revision descending, cursor is set if there are more document revisions.
160
236
 
161
237
  ***
162
238
 
163
- ### remove()
239
+ ### getRevision()
164
240
 
165
- > **remove**(`auditableItemGraphId`, `identifier`, `options`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<`void`\>
241
+ > **getRevision**(`auditableItemGraphDocumentId`, `revision`, `options?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<[`IDocument`](IDocument.md)\>
166
242
 
167
- Remove a specific document from an auditable item graph vertex.
168
- The documents dateDeleted will be set, but can still be queried with the includeRemoved flag.
243
+ Get a document revision using it's auditable item graph vertex id.
169
244
 
170
245
  #### Parameters
171
246
 
172
- ##### auditableItemGraphId
247
+ ##### auditableItemGraphDocumentId
173
248
 
174
249
  `string`
175
250
 
176
- The auditable item graph vertex id to remove the document from.
251
+ The auditable item graph vertex id which contains the document.
177
252
 
178
- ##### identifier
253
+ ##### revision
179
254
 
180
- `string`
255
+ `number`
181
256
 
182
- The identifier of the document to remove.
257
+ The revision id of the document to get.
183
258
 
184
259
  ##### options?
185
260
 
186
- Additional options for the remove operation.
261
+ Additional options for the get operation.
262
+
263
+ ###### includeBlobStorageMetadata?
264
+
265
+ `boolean`
266
+
267
+ Flag to include the blob storage metadata for the document, defaults to false.
268
+
269
+ ###### includeBlobStorageData?
270
+
271
+ `boolean`
272
+
273
+ Flag to include the blob storage data for the document, defaults to false.
187
274
 
188
- ###### removeAllRevisions?
275
+ ###### includeAttestation?
189
276
 
190
277
  `boolean`
191
278
 
192
- Flag to remove all revisions of the document, defaults to false.
279
+ Flag to include the attestation information for the document, defaults to false.
280
+
281
+ ###### extractRuleGroupId?
282
+
283
+ `string`
284
+
285
+ If provided will extract data from the document using the specified rule group id.
286
+
287
+ ###### extractMimeType?
288
+
289
+ `string`
290
+
291
+ By default extraction will auto detect the mime type of the document, this can be used to override the detection.
193
292
 
194
293
  ##### userIdentity?
195
294
 
@@ -205,47 +304,66 @@ The node identity to use for vault operations.
205
304
 
206
305
  #### Returns
207
306
 
208
- `Promise`\<`void`\>
307
+ `Promise`\<[`IDocument`](IDocument.md)\>
209
308
 
210
- Nothing.
309
+ The documents and revisions if requested, ordered by revision descending, cursor is set if there are more document revisions.
211
310
 
212
311
  ***
213
312
 
214
- ### query()
313
+ ### removeRevision()
215
314
 
216
- > **query**(`auditableItemGraphId`, `documentCodes`?, `options`?, `cursor`?, `userIdentity`?, `nodeIdentity`?): `Promise`\<[`IDocumentList`](IDocumentList.md)\>
315
+ > **removeRevision**(`auditableItemGraphDocumentId`, `revision`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`void`\>
217
316
 
218
- Query an auditable item graph vertex for documents.
317
+ Remove an auditable item graph vertex using it's id.
318
+ The document dateDeleted will be set, but can still be queried with the includeRemoved flag.
219
319
 
220
320
  #### Parameters
221
321
 
222
- ##### auditableItemGraphId
322
+ ##### auditableItemGraphDocumentId
223
323
 
224
324
  `string`
225
325
 
226
- The auditable item graph vertex to get the documents from.
326
+ The auditable item graph vertex id which contains the document.
227
327
 
228
- ##### documentCodes?
328
+ ##### revision
229
329
 
230
- `string`[]
330
+ `number`
231
331
 
232
- The document codes to query for, if undefined gets all document codes.
332
+ The revision of the document to remove.
233
333
 
234
- ##### options?
334
+ ##### userIdentity?
235
335
 
236
- Additional options for the query operation.
336
+ `string`
237
337
 
238
- ###### includeMostRecentRevisions?
338
+ The identity to perform the auditable item graph operation with.
239
339
 
240
- `boolean`
340
+ ##### nodeIdentity?
241
341
 
242
- Include the most recent 5 revisions, use the individual get to retrieve more.
342
+ `string`
243
343
 
244
- ###### includeRemoved?
344
+ The node identity to use for vault operations.
245
345
 
246
- `boolean`
346
+ #### Returns
247
347
 
248
- Flag to include deleted documents, defaults to false.
348
+ `Promise`\<`void`\>
349
+
350
+ Nothing.
351
+
352
+ ***
353
+
354
+ ### query()
355
+
356
+ > **query**(`documentId`, `cursor?`, `pageSize?`, `userIdentity?`, `nodeIdentity?`): `Promise`\<`IAuditableItemGraphVertexList`\>
357
+
358
+ Find all the document with a specific id.
359
+
360
+ #### Parameters
361
+
362
+ ##### documentId
363
+
364
+ `string`
365
+
366
+ The document id to find in the graph.
249
367
 
250
368
  ##### cursor?
251
369
 
@@ -253,6 +371,12 @@ Flag to include deleted documents, defaults to false.
253
371
 
254
372
  The cursor to get the next chunk of documents.
255
373
 
374
+ ##### pageSize?
375
+
376
+ `number`
377
+
378
+ The page size to get the next chunk of documents.
379
+
256
380
  ##### userIdentity?
257
381
 
258
382
  `string`
@@ -267,6 +391,6 @@ The node identity to use for vault operations.
267
391
 
268
392
  #### Returns
269
393
 
270
- `Promise`\<[`IDocumentList`](IDocumentList.md)\>
394
+ `Promise`\<`IAuditableItemGraphVertexList`\>
271
395
 
272
- The most recent revisions of each document, cursor is set if there are more documents.
396
+ The graph vertices that contain documents referencing the specified document id.
@@ -1,23 +1,9 @@
1
- # Interface: IDocumentManagementSetRequest
1
+ # Interface: IDocumentManagementCreateRequest
2
2
 
3
- Request to set a document in an auditable item graph vertex.
3
+ Request to create a document as an auditable item graph vertex.
4
4
 
5
5
  ## Properties
6
6
 
7
- ### pathParams
8
-
9
- > **pathParams**: `object`
10
-
11
- The path parameters.
12
-
13
- #### auditableItemGraphId
14
-
15
- > **auditableItemGraphId**: `string`
16
-
17
- The id of the auditable item graph vertex to store the document on.
18
-
19
- ***
20
-
21
7
  ### body
22
8
 
23
9
  > **body**: `object`
@@ -54,8 +40,26 @@ The data to create the document with, in base64.
54
40
 
55
41
  Additional information to associate with the document.
56
42
 
43
+ #### auditableItemGraphEdges?
44
+
45
+ > `optional` **auditableItemGraphEdges**: `object`[]
46
+
47
+ The auditable item graph vertices to connect the document to.
48
+
57
49
  #### createAttestation?
58
50
 
59
51
  > `optional` **createAttestation**: `boolean`
60
52
 
61
- Flag to create an attestation for the document, defaults to false
53
+ Flag to create an attestation for the document, defaults to false.
54
+
55
+ #### addAlias?
56
+
57
+ > `optional` **addAlias**: `boolean`
58
+
59
+ Flag to add the document id as an alias to the aig vertex, defaults to true.
60
+
61
+ #### aliasAnnotationObject?
62
+
63
+ > `optional` **aliasAnnotationObject**: `IJsonLdNodeObject`
64
+
65
+ Annotation object for the alias.
@@ -22,15 +22,9 @@ The headers which can be used to determine the response data type.
22
22
 
23
23
  The path parameters.
24
24
 
25
- #### auditableItemGraphId
25
+ #### auditableItemGraphDocumentId
26
26
 
27
- > **auditableItemGraphId**: `string`
28
-
29
- The id of the auditable item graph vertex to store the document on.
30
-
31
- #### documentId
32
-
33
- > **documentId**: `string`
27
+ > **auditableItemGraphDocumentId**: `string`
34
28
 
35
29
  The full id of the document to get.
36
30
 
@@ -44,7 +38,7 @@ The query parameters.
44
38
 
45
39
  #### includeBlobStorageMetadata?
46
40
 
47
- > `optional` **includeBlobStorageMetadata**: `boolean`
41
+ > `optional` **includeBlobStorageMetadata**: `string` \| `boolean`
48
42
 
49
43
  Include the blob storage metadata in the response.
50
44
 
@@ -56,7 +50,7 @@ false
56
50
 
57
51
  #### includeBlobStorageData?
58
52
 
59
- > `optional` **includeBlobStorageData**: `boolean`
53
+ > `optional` **includeBlobStorageData**: `string` \| `boolean`
60
54
 
61
55
  Include the blob storage data in the response.
62
56
 
@@ -68,7 +62,7 @@ false
68
62
 
69
63
  #### includeAttestation?
70
64
 
71
- > `optional` **includeAttestation**: `boolean`
65
+ > `optional` **includeAttestation**: `string` \| `boolean`
72
66
 
73
67
  Include the attestation information in the response.
74
68
 
@@ -80,7 +74,7 @@ false
80
74
 
81
75
  #### includeRemoved?
82
76
 
83
- > `optional` **includeRemoved**: `boolean`
77
+ > `optional` **includeRemoved**: `string` \| `boolean`
84
78
 
85
79
  Include deleted documents in the response.
86
80
 
@@ -90,20 +84,32 @@ Include deleted documents in the response.
90
84
  false
91
85
  ```
92
86
 
93
- #### maxRevisionCount?
87
+ #### extractRuleGroupId?
88
+
89
+ > `optional` **extractRuleGroupId**: `string`
90
+
91
+ If provided will extract data from the document using the specified rule group id.
92
+
93
+ #### extractMimeType?
94
+
95
+ > `optional` **extractMimeType**: `string`
96
+
97
+ By default extraction will auto detect the mime type of the document, this can be used to override the detection.
98
+
99
+ #### pageSize?
94
100
 
95
- > `optional` **maxRevisionCount**: `number`
101
+ > `optional` **pageSize**: `string` \| `number`
96
102
 
97
- Max number of revisions to return.
103
+ Page size of items to return, defaults to 1 so only most recent is returned.
98
104
 
99
105
  ##### Default
100
106
 
101
107
  ```ts
102
- 0
108
+ 1
103
109
  ```
104
110
 
105
- #### revisionCursor?
111
+ #### cursor?
106
112
 
107
- > `optional` **revisionCursor**: `string`
113
+ > `optional` **cursor**: `string`
108
114
 
109
115
  The cursor to get the next chunk of revisions.