@knowledge-stack/ksapi 3.13.1 → 3.14.0

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 (49) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +6 -2
  3. package/dist/apis/DocumentVersionsApi.d.ts +4 -4
  4. package/dist/apis/DocumentVersionsApi.js +2 -2
  5. package/dist/apis/SystemJobsApi.d.ts +126 -17
  6. package/dist/apis/SystemJobsApi.js +137 -8
  7. package/dist/esm/apis/DocumentVersionsApi.d.ts +4 -4
  8. package/dist/esm/apis/DocumentVersionsApi.js +2 -2
  9. package/dist/esm/apis/SystemJobsApi.d.ts +126 -17
  10. package/dist/esm/apis/SystemJobsApi.js +138 -9
  11. package/dist/esm/models/BulkFailureReason.d.ts +3 -0
  12. package/dist/esm/models/BulkFailureReason.js +4 -1
  13. package/dist/esm/models/BulkRerunRequest.d.ts +47 -0
  14. package/dist/esm/models/BulkRerunRequest.js +42 -0
  15. package/dist/esm/models/PaginatedResponseUserInfo.d.ts +66 -0
  16. package/dist/esm/models/PaginatedResponseUserInfo.js +70 -0
  17. package/dist/esm/models/WorkflowDetailResponse.d.ts +26 -1
  18. package/dist/esm/models/WorkflowDetailResponse.js +17 -0
  19. package/dist/esm/models/WorkflowSummaryResponse.d.ts +26 -1
  20. package/dist/esm/models/WorkflowSummaryResponse.js +17 -0
  21. package/dist/esm/models/index.d.ts +2 -0
  22. package/dist/esm/models/index.js +2 -0
  23. package/dist/models/BulkFailureReason.d.ts +3 -0
  24. package/dist/models/BulkFailureReason.js +4 -1
  25. package/dist/models/BulkRerunRequest.d.ts +47 -0
  26. package/dist/models/BulkRerunRequest.js +50 -0
  27. package/dist/models/PaginatedResponseUserInfo.d.ts +66 -0
  28. package/dist/models/PaginatedResponseUserInfo.js +78 -0
  29. package/dist/models/WorkflowDetailResponse.d.ts +26 -1
  30. package/dist/models/WorkflowDetailResponse.js +17 -0
  31. package/dist/models/WorkflowSummaryResponse.d.ts +26 -1
  32. package/dist/models/WorkflowSummaryResponse.js +17 -0
  33. package/dist/models/index.d.ts +2 -0
  34. package/dist/models/index.js +2 -0
  35. package/docs/BulkRerunRequest.md +35 -0
  36. package/docs/DocumentVersionsApi.md +1 -1
  37. package/docs/PaginatedResponseUserInfo.md +40 -0
  38. package/docs/SystemJobsApi.md +190 -5
  39. package/docs/WorkflowDetailResponse.md +8 -0
  40. package/docs/WorkflowSummaryResponse.md +8 -0
  41. package/package.json +1 -1
  42. package/src/apis/DocumentVersionsApi.ts +4 -4
  43. package/src/apis/SystemJobsApi.ts +272 -16
  44. package/src/models/BulkFailureReason.ts +4 -1
  45. package/src/models/BulkRerunRequest.ts +82 -0
  46. package/src/models/PaginatedResponseUserInfo.ts +130 -0
  47. package/src/models/WorkflowDetailResponse.ts +44 -1
  48. package/src/models/WorkflowSummaryResponse.ts +44 -1
  49. package/src/models/index.ts +2 -0
@@ -62,6 +62,55 @@ const index_1 = require("../models/index");
62
62
  *
63
63
  */
64
64
  class SystemJobsApi extends runtime.BaseAPI {
65
+ /**
66
+ * Creates request options for bulkRerunDvWorkflows without sending the request
67
+ */
68
+ bulkRerunDvWorkflowsRequestOpts(requestParameters) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ if (requestParameters['bulkRerunRequest'] == null) {
71
+ throw new runtime.RequiredError('bulkRerunRequest', 'Required parameter "bulkRerunRequest" was null or undefined when calling bulkRerunDvWorkflows().');
72
+ }
73
+ const queryParameters = {};
74
+ const headerParameters = {};
75
+ headerParameters['Content-Type'] = 'application/json';
76
+ if (this.configuration && this.configuration.accessToken) {
77
+ const token = this.configuration.accessToken;
78
+ const tokenString = yield token("bearerAuth", []);
79
+ if (tokenString) {
80
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
81
+ }
82
+ }
83
+ let urlPath = `/v1/system-jobs/document_versions/bulk-rerun`;
84
+ return {
85
+ path: urlPath,
86
+ method: 'POST',
87
+ headers: headerParameters,
88
+ query: queryParameters,
89
+ body: (0, index_1.BulkRerunRequestToJSON)(requestParameters['bulkRerunRequest']),
90
+ };
91
+ });
92
+ }
93
+ /**
94
+ * Re-run ingestion for the selected document versions, reporting per item. ``not_found``: missing, trashed, never ingested or without its stored source; ``forbidden``: no ``can_write``; ``in_progress_workflow``: still pending/processing; ``already_ingested``: completed; ``unsupported_document_type``: a type that is no longer ingested; ``superseded``: a newer version of the document exists. More than 200 ids is a 400 before any re-run.
95
+ * Bulk Rerun Dv Workflows Handler
96
+ */
97
+ bulkRerunDvWorkflowsRaw(requestParameters, initOverrides) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ const requestOptions = yield this.bulkRerunDvWorkflowsRequestOpts(requestParameters);
100
+ const response = yield this.request(requestOptions, initOverrides);
101
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BulkOperationResponseFromJSON)(jsonValue));
102
+ });
103
+ }
104
+ /**
105
+ * Re-run ingestion for the selected document versions, reporting per item. ``not_found``: missing, trashed, never ingested or without its stored source; ``forbidden``: no ``can_write``; ``in_progress_workflow``: still pending/processing; ``already_ingested``: completed; ``unsupported_document_type``: a type that is no longer ingested; ``superseded``: a newer version of the document exists. More than 200 ids is a 400 before any re-run.
106
+ * Bulk Rerun Dv Workflows Handler
107
+ */
108
+ bulkRerunDvWorkflows(requestParameters, initOverrides) {
109
+ return __awaiter(this, void 0, void 0, function* () {
110
+ const response = yield this.bulkRerunDvWorkflowsRaw(requestParameters, initOverrides);
111
+ return yield response.value();
112
+ });
113
+ }
65
114
  /**
66
115
  * Creates request options for cancelTemporalWorkflow without sending the request
67
116
  */
@@ -90,7 +139,7 @@ class SystemJobsApi extends runtime.BaseAPI {
90
139
  });
91
140
  }
92
141
  /**
93
- * Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side.
142
+ * Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side. A run no worker ever picked up is terminated instead, since a cancel request is itself a workflow task nobody would process. When Temporal no longer has the run, or it was terminated here, a document version still showing it running is settled as cancelled (needs ``can_write``) so it can be re-run.
94
143
  * Cancel Temporal Workflow Handler
95
144
  */
96
145
  cancelTemporalWorkflowRaw(requestParameters, initOverrides) {
@@ -101,7 +150,7 @@ class SystemJobsApi extends runtime.BaseAPI {
101
150
  });
102
151
  }
103
152
  /**
104
- * Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side.
153
+ * Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side. A run no worker ever picked up is terminated instead, since a cancel request is itself a workflow task nobody would process. When Temporal no longer has the run, or it was terminated here, a document version still showing it running is settled as cancelled (needs ``can_write``) so it can be re-run.
105
154
  * Cancel Temporal Workflow Handler
106
155
  */
107
156
  cancelTemporalWorkflow(requestParameters, initOverrides) {
@@ -138,7 +187,7 @@ class SystemJobsApi extends runtime.BaseAPI {
138
187
  });
139
188
  }
140
189
  /**
141
- * Rerun a workflow. USER role requires ``can_write`` on the document path. ``s3_client`` is injected because ``DocumentIngestionService.__init__`` requires it, even though the re-ingestion path reuses the existing S3 source.
190
+ * Rerun a workflow. USER role requires ``can_write`` on the document path. A version that a newer live version supersedes is refused with 409. ``s3_client`` is injected because ``DocumentIngestionService.__init__`` requires it, even though the re-ingestion path reuses the existing S3 source.
142
191
  * Dv Workflow Rerun Handler
143
192
  */
144
193
  dvWorkflowRerunRaw(requestParameters, initOverrides) {
@@ -149,7 +198,7 @@ class SystemJobsApi extends runtime.BaseAPI {
149
198
  });
150
199
  }
151
200
  /**
152
- * Rerun a workflow. USER role requires ``can_write`` on the document path. ``s3_client`` is injected because ``DocumentIngestionService.__init__`` requires it, even though the re-ingestion path reuses the existing S3 source.
201
+ * Rerun a workflow. USER role requires ``can_write`` on the document path. A version that a newer live version supersedes is refused with 409. ``s3_client`` is injected because ``DocumentIngestionService.__init__`` requires it, even though the re-ingestion path reuses the existing S3 source.
153
202
  * Dv Workflow Rerun Handler
154
203
  */
155
204
  dvWorkflowRerun(requestParameters, initOverrides) {
@@ -282,7 +331,7 @@ class SystemJobsApi extends runtime.BaseAPI {
282
331
  });
283
332
  }
284
333
  /**
285
- * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
334
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s. Any other workflow type has no ``results`` query and is a 404, not a 500.
286
335
  * Get Zip Ingestion Status Handler
287
336
  */
288
337
  getZipIngestionStatusRaw(requestParameters, initOverrides) {
@@ -293,7 +342,7 @@ class SystemJobsApi extends runtime.BaseAPI {
293
342
  });
294
343
  }
295
344
  /**
296
- * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
345
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s. Any other workflow type has no ``results`` query and is a 404, not a 500.
297
346
  * Get Zip Ingestion Status Handler
298
347
  */
299
348
  getZipIngestionStatus(requestParameters, initOverrides) {
@@ -302,6 +351,59 @@ class SystemJobsApi extends runtime.BaseAPI {
302
351
  return yield response.value();
303
352
  });
304
353
  }
354
+ /**
355
+ * Creates request options for listDvWorkflowUploaders without sending the request
356
+ */
357
+ listDvWorkflowUploadersRequestOpts(requestParameters) {
358
+ return __awaiter(this, void 0, void 0, function* () {
359
+ const queryParameters = {};
360
+ if (requestParameters['usernameLike'] != null) {
361
+ queryParameters['username_like'] = requestParameters['usernameLike'];
362
+ }
363
+ if (requestParameters['limit'] != null) {
364
+ queryParameters['limit'] = requestParameters['limit'];
365
+ }
366
+ if (requestParameters['offset'] != null) {
367
+ queryParameters['offset'] = requestParameters['offset'];
368
+ }
369
+ const headerParameters = {};
370
+ if (this.configuration && this.configuration.accessToken) {
371
+ const token = this.configuration.accessToken;
372
+ const tokenString = yield token("bearerAuth", []);
373
+ if (tokenString) {
374
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
375
+ }
376
+ }
377
+ let urlPath = `/v1/system-jobs/document_versions/uploaders`;
378
+ return {
379
+ path: urlPath,
380
+ method: 'GET',
381
+ headers: headerParameters,
382
+ query: queryParameters,
383
+ };
384
+ });
385
+ }
386
+ /**
387
+ * People who uploaded a version the caller can list, for the uploader filter. Scoped like ``list_dv_workflows``: USER only counts versions under readable paths.
388
+ * List Dv Workflow Uploaders Handler
389
+ */
390
+ listDvWorkflowUploadersRaw(requestParameters, initOverrides) {
391
+ return __awaiter(this, void 0, void 0, function* () {
392
+ const requestOptions = yield this.listDvWorkflowUploadersRequestOpts(requestParameters);
393
+ const response = yield this.request(requestOptions, initOverrides);
394
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponseUserInfoFromJSON)(jsonValue));
395
+ });
396
+ }
397
+ /**
398
+ * People who uploaded a version the caller can list, for the uploader filter. Scoped like ``list_dv_workflows``: USER only counts versions under readable paths.
399
+ * List Dv Workflow Uploaders Handler
400
+ */
401
+ listDvWorkflowUploaders() {
402
+ return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
403
+ const response = yield this.listDvWorkflowUploadersRaw(requestParameters, initOverrides);
404
+ return yield response.value();
405
+ });
406
+ }
305
407
  /**
306
408
  * Creates request options for listDvWorkflows without sending the request
307
409
  */
@@ -314,6 +416,33 @@ class SystemJobsApi extends runtime.BaseAPI {
314
416
  if (requestParameters['offset'] != null) {
315
417
  queryParameters['offset'] = requestParameters['offset'];
316
418
  }
419
+ if (requestParameters['sortDir'] != null) {
420
+ queryParameters['sort_dir'] = requestParameters['sortDir'];
421
+ }
422
+ if (requestParameters['status'] != null) {
423
+ queryParameters['status'] = requestParameters['status'];
424
+ }
425
+ if (requestParameters['nameLike'] != null) {
426
+ queryParameters['name_like'] = requestParameters['nameLike'];
427
+ }
428
+ if (requestParameters['latestVersionOnly'] != null) {
429
+ queryParameters['latest_version_only'] = requestParameters['latestVersionOnly'];
430
+ }
431
+ if (requestParameters['uploaderUserId'] != null) {
432
+ queryParameters['uploader_user_id'] = requestParameters['uploaderUserId'];
433
+ }
434
+ if (requestParameters['createdAfter'] != null) {
435
+ queryParameters['created_after'] = requestParameters['createdAfter'].toISOString();
436
+ }
437
+ if (requestParameters['createdBefore'] != null) {
438
+ queryParameters['created_before'] = requestParameters['createdBefore'].toISOString();
439
+ }
440
+ if (requestParameters['updatedAfter'] != null) {
441
+ queryParameters['updated_after'] = requestParameters['updatedAfter'].toISOString();
442
+ }
443
+ if (requestParameters['updatedBefore'] != null) {
444
+ queryParameters['updated_before'] = requestParameters['updatedBefore'].toISOString();
445
+ }
317
446
  const headerParameters = {};
318
447
  if (this.configuration && this.configuration.accessToken) {
319
448
  const token = this.configuration.accessToken;
@@ -332,7 +461,7 @@ class SystemJobsApi extends runtime.BaseAPI {
332
461
  });
333
462
  }
334
463
  /**
335
- * List all workflows for the current tenant (paginated, DB-backed). ADMIN/OWNER see all workflows; USER sees only those under permitted paths.
464
+ * List ingestions of live documents in the current tenant, newest upload first. ADMIN/OWNER see every version; USER only versions under readable paths. ``sort_dir=ASC`` lists the oldest upload first.
336
465
  * List Dv Workflows Handler
337
466
  */
338
467
  listDvWorkflowsRaw(requestParameters, initOverrides) {
@@ -343,7 +472,7 @@ class SystemJobsApi extends runtime.BaseAPI {
343
472
  });
344
473
  }
345
474
  /**
346
- * List all workflows for the current tenant (paginated, DB-backed). ADMIN/OWNER see all workflows; USER sees only those under permitted paths.
475
+ * List ingestions of live documents in the current tenant, newest upload first. ADMIN/OWNER see every version; USER only versions under readable paths. ``sort_dir=ASC`` lists the oldest upload first.
347
476
  * List Dv Workflows Handler
348
477
  */
349
478
  listDvWorkflows() {
@@ -324,7 +324,7 @@ export interface DocumentVersionsApiInterface {
324
324
  */
325
325
  updateDocumentVersionMetadataRequestOpts(requestParameters: UpdateDocumentVersionMetadataRequest): Promise<runtime.RequestOpts>;
326
326
  /**
327
- * Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved. When this PATCH settles an ``inputs/`` upload\'s ingestion (an in-progress pipeline reaching a terminal state), it drives the parent workflow run forward: the two-step ``PENDING <-> NOT_STARTED`` toggle, plus auto-start / auto-fail for an ``auto_start`` run (see ``WorkflowRunStartService.auto_advance_on_input_settled``).
327
+ * Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved. When this PATCH settles an ``inputs/`` upload\'s ingestion (an in-progress pipeline reaching a terminal state), it drives the parent workflow run forward: the two-step ``PENDING <-> NOT_STARTED`` toggle, plus auto-start / auto-fail for an ``auto_start`` run (see ``WorkflowRunStartService.auto_advance_on_input_settled``). Any settle pushes a tenant-wide ``document_detail_changed``; a failed, cancelled or quota-limited one does so with the ``ingestion_failed`` kind so open views (the Ingestions page) refetch.
328
328
  * @summary Update Document Version Metadata Handler
329
329
  * @param {string} versionId DocumentVersion ID
330
330
  * @param {DocumentVersionMetadataUpdate} documentVersionMetadataUpdate
@@ -334,7 +334,7 @@ export interface DocumentVersionsApiInterface {
334
334
  */
335
335
  updateDocumentVersionMetadataRaw(requestParameters: UpdateDocumentVersionMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentVersionResponse>>;
336
336
  /**
337
- * Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved. When this PATCH settles an ``inputs/`` upload\'s ingestion (an in-progress pipeline reaching a terminal state), it drives the parent workflow run forward: the two-step ``PENDING <-> NOT_STARTED`` toggle, plus auto-start / auto-fail for an ``auto_start`` run (see ``WorkflowRunStartService.auto_advance_on_input_settled``).
337
+ * Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved. When this PATCH settles an ``inputs/`` upload\'s ingestion (an in-progress pipeline reaching a terminal state), it drives the parent workflow run forward: the two-step ``PENDING <-> NOT_STARTED`` toggle, plus auto-start / auto-fail for an ``auto_start`` run (see ``WorkflowRunStartService.auto_advance_on_input_settled``). Any settle pushes a tenant-wide ``document_detail_changed``; a failed, cancelled or quota-limited one does so with the ``ingestion_failed`` kind so open views (the Ingestions page) refetch.
338
338
  * Update Document Version Metadata Handler
339
339
  */
340
340
  updateDocumentVersionMetadata(requestParameters: UpdateDocumentVersionMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentVersionResponse>;
@@ -486,12 +486,12 @@ export declare class DocumentVersionsApi extends runtime.BaseAPI implements Docu
486
486
  */
487
487
  updateDocumentVersionMetadataRequestOpts(requestParameters: UpdateDocumentVersionMetadataRequest): Promise<runtime.RequestOpts>;
488
488
  /**
489
- * Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved. When this PATCH settles an ``inputs/`` upload\'s ingestion (an in-progress pipeline reaching a terminal state), it drives the parent workflow run forward: the two-step ``PENDING <-> NOT_STARTED`` toggle, plus auto-start / auto-fail for an ``auto_start`` run (see ``WorkflowRunStartService.auto_advance_on_input_settled``).
489
+ * Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved. When this PATCH settles an ``inputs/`` upload\'s ingestion (an in-progress pipeline reaching a terminal state), it drives the parent workflow run forward: the two-step ``PENDING <-> NOT_STARTED`` toggle, plus auto-start / auto-fail for an ``auto_start`` run (see ``WorkflowRunStartService.auto_advance_on_input_settled``). Any settle pushes a tenant-wide ``document_detail_changed``; a failed, cancelled or quota-limited one does so with the ``ingestion_failed`` kind so open views (the Ingestions page) refetch.
490
490
  * Update Document Version Metadata Handler
491
491
  */
492
492
  updateDocumentVersionMetadataRaw(requestParameters: UpdateDocumentVersionMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentVersionResponse>>;
493
493
  /**
494
- * Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved. When this PATCH settles an ``inputs/`` upload\'s ingestion (an in-progress pipeline reaching a terminal state), it drives the parent workflow run forward: the two-step ``PENDING <-> NOT_STARTED`` toggle, plus auto-start / auto-fail for an ``auto_start`` run (see ``WorkflowRunStartService.auto_advance_on_input_settled``).
494
+ * Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved. When this PATCH settles an ``inputs/`` upload\'s ingestion (an in-progress pipeline reaching a terminal state), it drives the parent workflow run forward: the two-step ``PENDING <-> NOT_STARTED`` toggle, plus auto-start / auto-fail for an ``auto_start`` run (see ``WorkflowRunStartService.auto_advance_on_input_settled``). Any settle pushes a tenant-wide ``document_detail_changed``; a failed, cancelled or quota-limited one does so with the ``ingestion_failed`` kind so open views (the Ingestions page) refetch.
495
495
  * Update Document Version Metadata Handler
496
496
  */
497
497
  updateDocumentVersionMetadata(requestParameters: UpdateDocumentVersionMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentVersionResponse>;
@@ -613,7 +613,7 @@ export class DocumentVersionsApi extends runtime.BaseAPI {
613
613
  });
614
614
  }
615
615
  /**
616
- * Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved. When this PATCH settles an ``inputs/`` upload\'s ingestion (an in-progress pipeline reaching a terminal state), it drives the parent workflow run forward: the two-step ``PENDING <-> NOT_STARTED`` toggle, plus auto-start / auto-fail for an ``auto_start`` run (see ``WorkflowRunStartService.auto_advance_on_input_settled``).
616
+ * Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved. When this PATCH settles an ``inputs/`` upload\'s ingestion (an in-progress pipeline reaching a terminal state), it drives the parent workflow run forward: the two-step ``PENDING <-> NOT_STARTED`` toggle, plus auto-start / auto-fail for an ``auto_start`` run (see ``WorkflowRunStartService.auto_advance_on_input_settled``). Any settle pushes a tenant-wide ``document_detail_changed``; a failed, cancelled or quota-limited one does so with the ``ingestion_failed`` kind so open views (the Ingestions page) refetch.
617
617
  * Update Document Version Metadata Handler
618
618
  */
619
619
  updateDocumentVersionMetadataRaw(requestParameters, initOverrides) {
@@ -624,7 +624,7 @@ export class DocumentVersionsApi extends runtime.BaseAPI {
624
624
  });
625
625
  }
626
626
  /**
627
- * Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved. When this PATCH settles an ``inputs/`` upload\'s ingestion (an in-progress pipeline reaching a terminal state), it drives the parent workflow run forward: the two-step ``PENDING <-> NOT_STARTED`` toggle, plus auto-start / auto-fail for an ``auto_start`` run (see ``WorkflowRunStartService.auto_advance_on_input_settled``).
627
+ * Merge metadata fields into an existing document version\'s metadata. Only non-null fields in the request body are merged; existing metadata fields not present in the request are preserved. When this PATCH settles an ``inputs/`` upload\'s ingestion (an in-progress pipeline reaching a terminal state), it drives the parent workflow run forward: the two-step ``PENDING <-> NOT_STARTED`` toggle, plus auto-start / auto-fail for an ``auto_start`` run (see ``WorkflowRunStartService.auto_advance_on_input_settled``). Any settle pushes a tenant-wide ``document_detail_changed``; a failed, cancelled or quota-limited one does so with the ``ingestion_failed`` kind so open views (the Ingestions page) refetch.
628
628
  * Update Document Version Metadata Handler
629
629
  */
630
630
  updateDocumentVersionMetadata(requestParameters, initOverrides) {
@@ -10,7 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { PaginatedResponseWorkflowSummaryResponse, TemporalWorkflowStatusResponse, WorkflowActionResponse, WorkflowCancelResponse, WorkflowDetailResponse, ZipIngestionStatusResponse } from '../models/index';
13
+ import type { BulkOperationResponse, BulkRerunRequest, PaginatedResponseUserInfo, PaginatedResponseWorkflowSummaryResponse, PipelineStatus, SortDirection, TemporalWorkflowStatusResponse, WorkflowActionResponse, WorkflowCancelResponse, WorkflowDetailResponse, ZipIngestionStatusResponse } from '../models/index';
14
+ export interface BulkRerunDvWorkflowsRequest {
15
+ bulkRerunRequest: BulkRerunRequest;
16
+ }
14
17
  export interface CancelTemporalWorkflowRequest {
15
18
  workflowId: string;
16
19
  }
@@ -26,9 +29,23 @@ export interface GetTemporalWorkflowStatusRequest {
26
29
  export interface GetZipIngestionStatusRequest {
27
30
  workflowId: string;
28
31
  }
32
+ export interface ListDvWorkflowUploadersRequest {
33
+ usernameLike?: string | null;
34
+ limit?: number;
35
+ offset?: number;
36
+ }
29
37
  export interface ListDvWorkflowsRequest {
30
38
  limit?: number;
31
39
  offset?: number;
40
+ sortDir?: SortDirection;
41
+ status?: Array<PipelineStatus> | null;
42
+ nameLike?: string | null;
43
+ latestVersionOnly?: boolean;
44
+ uploaderUserId?: string | null;
45
+ createdAfter?: Date | null;
46
+ createdBefore?: Date | null;
47
+ updatedAfter?: Date | null;
48
+ updatedBefore?: Date | null;
32
49
  }
33
50
  /**
34
51
  * SystemJobsApi - interface
@@ -37,6 +54,27 @@ export interface ListDvWorkflowsRequest {
37
54
  * @interface SystemJobsApiInterface
38
55
  */
39
56
  export interface SystemJobsApiInterface {
57
+ /**
58
+ * Creates request options for bulkRerunDvWorkflows without sending the request
59
+ * @param {BulkRerunRequest} bulkRerunRequest
60
+ * @throws {RequiredError}
61
+ * @memberof SystemJobsApiInterface
62
+ */
63
+ bulkRerunDvWorkflowsRequestOpts(requestParameters: BulkRerunDvWorkflowsRequest): Promise<runtime.RequestOpts>;
64
+ /**
65
+ * Re-run ingestion for the selected document versions, reporting per item. ``not_found``: missing, trashed, never ingested or without its stored source; ``forbidden``: no ``can_write``; ``in_progress_workflow``: still pending/processing; ``already_ingested``: completed; ``unsupported_document_type``: a type that is no longer ingested; ``superseded``: a newer version of the document exists. More than 200 ids is a 400 before any re-run.
66
+ * @summary Bulk Rerun Dv Workflows Handler
67
+ * @param {BulkRerunRequest} bulkRerunRequest
68
+ * @param {*} [options] Override http request option.
69
+ * @throws {RequiredError}
70
+ * @memberof SystemJobsApiInterface
71
+ */
72
+ bulkRerunDvWorkflowsRaw(requestParameters: BulkRerunDvWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkOperationResponse>>;
73
+ /**
74
+ * Re-run ingestion for the selected document versions, reporting per item. ``not_found``: missing, trashed, never ingested or without its stored source; ``forbidden``: no ``can_write``; ``in_progress_workflow``: still pending/processing; ``already_ingested``: completed; ``unsupported_document_type``: a type that is no longer ingested; ``superseded``: a newer version of the document exists. More than 200 ids is a 400 before any re-run.
75
+ * Bulk Rerun Dv Workflows Handler
76
+ */
77
+ bulkRerunDvWorkflows(requestParameters: BulkRerunDvWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkOperationResponse>;
40
78
  /**
41
79
  * Creates request options for cancelTemporalWorkflow without sending the request
42
80
  * @param {string} workflowId
@@ -45,7 +83,7 @@ export interface SystemJobsApiInterface {
45
83
  */
46
84
  cancelTemporalWorkflowRequestOpts(requestParameters: CancelTemporalWorkflowRequest): Promise<runtime.RequestOpts>;
47
85
  /**
48
- * Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side.
86
+ * Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side. A run no worker ever picked up is terminated instead, since a cancel request is itself a workflow task nobody would process. When Temporal no longer has the run, or it was terminated here, a document version still showing it running is settled as cancelled (needs ``can_write``) so it can be re-run.
49
87
  * @summary Cancel Temporal Workflow Handler
50
88
  * @param {string} workflowId
51
89
  * @param {*} [options] Override http request option.
@@ -54,7 +92,7 @@ export interface SystemJobsApiInterface {
54
92
  */
55
93
  cancelTemporalWorkflowRaw(requestParameters: CancelTemporalWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowCancelResponse>>;
56
94
  /**
57
- * Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side.
95
+ * Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side. A run no worker ever picked up is terminated instead, since a cancel request is itself a workflow task nobody would process. When Temporal no longer has the run, or it was terminated here, a document version still showing it running is settled as cancelled (needs ``can_write``) so it can be re-run.
58
96
  * Cancel Temporal Workflow Handler
59
97
  */
60
98
  cancelTemporalWorkflow(requestParameters: CancelTemporalWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowCancelResponse>;
@@ -66,7 +104,7 @@ export interface SystemJobsApiInterface {
66
104
  */
67
105
  dvWorkflowRerunRequestOpts(requestParameters: DvWorkflowRerunRequest): Promise<runtime.RequestOpts>;
68
106
  /**
69
- * Rerun a workflow. USER role requires ``can_write`` on the document path. ``s3_client`` is injected because ``DocumentIngestionService.__init__`` requires it, even though the re-ingestion path reuses the existing S3 source.
107
+ * Rerun a workflow. USER role requires ``can_write`` on the document path. A version that a newer live version supersedes is refused with 409. ``s3_client`` is injected because ``DocumentIngestionService.__init__`` requires it, even though the re-ingestion path reuses the existing S3 source.
70
108
  * @summary Dv Workflow Rerun Handler
71
109
  * @param {string} workflowId
72
110
  * @param {*} [options] Override http request option.
@@ -75,7 +113,7 @@ export interface SystemJobsApiInterface {
75
113
  */
76
114
  dvWorkflowRerunRaw(requestParameters: DvWorkflowRerunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowActionResponse>>;
77
115
  /**
78
- * Rerun a workflow. USER role requires ``can_write`` on the document path. ``s3_client`` is injected because ``DocumentIngestionService.__init__`` requires it, even though the re-ingestion path reuses the existing S3 source.
116
+ * Rerun a workflow. USER role requires ``can_write`` on the document path. A version that a newer live version supersedes is refused with 409. ``s3_client`` is injected because ``DocumentIngestionService.__init__`` requires it, even though the re-ingestion path reuses the existing S3 source.
79
117
  * Dv Workflow Rerun Handler
80
118
  */
81
119
  dvWorkflowRerun(requestParameters: DvWorkflowRerunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowActionResponse>;
@@ -129,7 +167,7 @@ export interface SystemJobsApiInterface {
129
167
  */
130
168
  getZipIngestionStatusRequestOpts(requestParameters: GetZipIngestionStatusRequest): Promise<runtime.RequestOpts>;
131
169
  /**
132
- * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
170
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s. Any other workflow type has no ``results`` query and is a 404, not a 500.
133
171
  * @summary Get Zip Ingestion Status Handler
134
172
  * @param {string} workflowId
135
173
  * @param {*} [options] Override http request option.
@@ -138,30 +176,73 @@ export interface SystemJobsApiInterface {
138
176
  */
139
177
  getZipIngestionStatusRaw(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZipIngestionStatusResponse>>;
140
178
  /**
141
- * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
179
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s. Any other workflow type has no ``results`` query and is a 404, not a 500.
142
180
  * Get Zip Ingestion Status Handler
143
181
  */
144
182
  getZipIngestionStatus(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZipIngestionStatusResponse>;
183
+ /**
184
+ * Creates request options for listDvWorkflowUploaders without sending the request
185
+ * @param {string} [usernameLike] Case-insensitive substring of the first or last name
186
+ * @param {number} [limit] Number of items per page
187
+ * @param {number} [offset] Number of items to skip
188
+ * @throws {RequiredError}
189
+ * @memberof SystemJobsApiInterface
190
+ */
191
+ listDvWorkflowUploadersRequestOpts(requestParameters: ListDvWorkflowUploadersRequest): Promise<runtime.RequestOpts>;
192
+ /**
193
+ * People who uploaded a version the caller can list, for the uploader filter. Scoped like ``list_dv_workflows``: USER only counts versions under readable paths.
194
+ * @summary List Dv Workflow Uploaders Handler
195
+ * @param {string} [usernameLike] Case-insensitive substring of the first or last name
196
+ * @param {number} [limit] Number of items per page
197
+ * @param {number} [offset] Number of items to skip
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ * @memberof SystemJobsApiInterface
201
+ */
202
+ listDvWorkflowUploadersRaw(requestParameters: ListDvWorkflowUploadersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseUserInfo>>;
203
+ /**
204
+ * People who uploaded a version the caller can list, for the uploader filter. Scoped like ``list_dv_workflows``: USER only counts versions under readable paths.
205
+ * List Dv Workflow Uploaders Handler
206
+ */
207
+ listDvWorkflowUploaders(requestParameters: ListDvWorkflowUploadersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseUserInfo>;
145
208
  /**
146
209
  * Creates request options for listDvWorkflows without sending the request
147
210
  * @param {number} [limit] Number of items per page
148
211
  * @param {number} [offset] Number of items to skip
212
+ * @param {SortDirection} [sortDir] Sort direction (ASC or DESC); overrides the field\&#39;s natural default. Every sort field supports both directions.
213
+ * @param {Array<PipelineStatus>} [status] Only versions in one of these pipeline statuses
214
+ * @param {string} [nameLike] Case-insensitive substring filter on document name
215
+ * @param {boolean} [latestVersionOnly] Skip versions superseded by a newer version
216
+ * @param {string} [uploaderUserId] Filter to versions uploaded by this user
217
+ * @param {Date} [createdAfter] Only items created at or after this timestamp (inclusive)
218
+ * @param {Date} [createdBefore] Only items created strictly before this timestamp
219
+ * @param {Date} [updatedAfter] Only items updated at or after this timestamp (inclusive)
220
+ * @param {Date} [updatedBefore] Only items updated strictly before this timestamp
149
221
  * @throws {RequiredError}
150
222
  * @memberof SystemJobsApiInterface
151
223
  */
152
224
  listDvWorkflowsRequestOpts(requestParameters: ListDvWorkflowsRequest): Promise<runtime.RequestOpts>;
153
225
  /**
154
- * List all workflows for the current tenant (paginated, DB-backed). ADMIN/OWNER see all workflows; USER sees only those under permitted paths.
226
+ * List ingestions of live documents in the current tenant, newest upload first. ADMIN/OWNER see every version; USER only versions under readable paths. ``sort_dir=ASC`` lists the oldest upload first.
155
227
  * @summary List Dv Workflows Handler
156
228
  * @param {number} [limit] Number of items per page
157
229
  * @param {number} [offset] Number of items to skip
230
+ * @param {SortDirection} [sortDir] Sort direction (ASC or DESC); overrides the field\&#39;s natural default. Every sort field supports both directions.
231
+ * @param {Array<PipelineStatus>} [status] Only versions in one of these pipeline statuses
232
+ * @param {string} [nameLike] Case-insensitive substring filter on document name
233
+ * @param {boolean} [latestVersionOnly] Skip versions superseded by a newer version
234
+ * @param {string} [uploaderUserId] Filter to versions uploaded by this user
235
+ * @param {Date} [createdAfter] Only items created at or after this timestamp (inclusive)
236
+ * @param {Date} [createdBefore] Only items created strictly before this timestamp
237
+ * @param {Date} [updatedAfter] Only items updated at or after this timestamp (inclusive)
238
+ * @param {Date} [updatedBefore] Only items updated strictly before this timestamp
158
239
  * @param {*} [options] Override http request option.
159
240
  * @throws {RequiredError}
160
241
  * @memberof SystemJobsApiInterface
161
242
  */
162
243
  listDvWorkflowsRaw(requestParameters: ListDvWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseWorkflowSummaryResponse>>;
163
244
  /**
164
- * List all workflows for the current tenant (paginated, DB-backed). ADMIN/OWNER see all workflows; USER sees only those under permitted paths.
245
+ * List ingestions of live documents in the current tenant, newest upload first. ADMIN/OWNER see every version; USER only versions under readable paths. ``sort_dir=ASC`` lists the oldest upload first.
165
246
  * List Dv Workflows Handler
166
247
  */
167
248
  listDvWorkflows(requestParameters: ListDvWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseWorkflowSummaryResponse>;
@@ -170,17 +251,31 @@ export interface SystemJobsApiInterface {
170
251
  *
171
252
  */
172
253
  export declare class SystemJobsApi extends runtime.BaseAPI implements SystemJobsApiInterface {
254
+ /**
255
+ * Creates request options for bulkRerunDvWorkflows without sending the request
256
+ */
257
+ bulkRerunDvWorkflowsRequestOpts(requestParameters: BulkRerunDvWorkflowsRequest): Promise<runtime.RequestOpts>;
258
+ /**
259
+ * Re-run ingestion for the selected document versions, reporting per item. ``not_found``: missing, trashed, never ingested or without its stored source; ``forbidden``: no ``can_write``; ``in_progress_workflow``: still pending/processing; ``already_ingested``: completed; ``unsupported_document_type``: a type that is no longer ingested; ``superseded``: a newer version of the document exists. More than 200 ids is a 400 before any re-run.
260
+ * Bulk Rerun Dv Workflows Handler
261
+ */
262
+ bulkRerunDvWorkflowsRaw(requestParameters: BulkRerunDvWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkOperationResponse>>;
263
+ /**
264
+ * Re-run ingestion for the selected document versions, reporting per item. ``not_found``: missing, trashed, never ingested or without its stored source; ``forbidden``: no ``can_write``; ``in_progress_workflow``: still pending/processing; ``already_ingested``: completed; ``unsupported_document_type``: a type that is no longer ingested; ``superseded``: a newer version of the document exists. More than 200 ids is a 400 before any re-run.
265
+ * Bulk Rerun Dv Workflows Handler
266
+ */
267
+ bulkRerunDvWorkflows(requestParameters: BulkRerunDvWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkOperationResponse>;
173
268
  /**
174
269
  * Creates request options for cancelTemporalWorkflow without sending the request
175
270
  */
176
271
  cancelTemporalWorkflowRequestOpts(requestParameters: CancelTemporalWorkflowRequest): Promise<runtime.RequestOpts>;
177
272
  /**
178
- * Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side.
273
+ * Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side. A run no worker ever picked up is terminated instead, since a cancel request is itself a workflow task nobody would process. When Temporal no longer has the run, or it was terminated here, a document version still showing it running is settled as cancelled (needs ``can_write``) so it can be re-run.
179
274
  * Cancel Temporal Workflow Handler
180
275
  */
181
276
  cancelTemporalWorkflowRaw(requestParameters: CancelTemporalWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowCancelResponse>>;
182
277
  /**
183
- * Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side.
278
+ * Cancel any Temporal workflow owned by the caller\'s tenant. No status guard — this is a thin Temporal wrapper. Cancelling an already-terminal workflow is a no-op on the Temporal side. A run no worker ever picked up is terminated instead, since a cancel request is itself a workflow task nobody would process. When Temporal no longer has the run, or it was terminated here, a document version still showing it running is settled as cancelled (needs ``can_write``) so it can be re-run.
184
279
  * Cancel Temporal Workflow Handler
185
280
  */
186
281
  cancelTemporalWorkflow(requestParameters: CancelTemporalWorkflowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowCancelResponse>;
@@ -189,12 +284,12 @@ export declare class SystemJobsApi extends runtime.BaseAPI implements SystemJobs
189
284
  */
190
285
  dvWorkflowRerunRequestOpts(requestParameters: DvWorkflowRerunRequest): Promise<runtime.RequestOpts>;
191
286
  /**
192
- * Rerun a workflow. USER role requires ``can_write`` on the document path. ``s3_client`` is injected because ``DocumentIngestionService.__init__`` requires it, even though the re-ingestion path reuses the existing S3 source.
287
+ * Rerun a workflow. USER role requires ``can_write`` on the document path. A version that a newer live version supersedes is refused with 409. ``s3_client`` is injected because ``DocumentIngestionService.__init__`` requires it, even though the re-ingestion path reuses the existing S3 source.
193
288
  * Dv Workflow Rerun Handler
194
289
  */
195
290
  dvWorkflowRerunRaw(requestParameters: DvWorkflowRerunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowActionResponse>>;
196
291
  /**
197
- * Rerun a workflow. USER role requires ``can_write`` on the document path. ``s3_client`` is injected because ``DocumentIngestionService.__init__`` requires it, even though the re-ingestion path reuses the existing S3 source.
292
+ * Rerun a workflow. USER role requires ``can_write`` on the document path. A version that a newer live version supersedes is refused with 409. ``s3_client`` is injected because ``DocumentIngestionService.__init__`` requires it, even though the re-ingestion path reuses the existing S3 source.
198
293
  * Dv Workflow Rerun Handler
199
294
  */
200
295
  dvWorkflowRerun(requestParameters: DvWorkflowRerunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowActionResponse>;
@@ -231,26 +326,40 @@ export declare class SystemJobsApi extends runtime.BaseAPI implements SystemJobs
231
326
  */
232
327
  getZipIngestionStatusRequestOpts(requestParameters: GetZipIngestionStatusRequest): Promise<runtime.RequestOpts>;
233
328
  /**
234
- * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
329
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s. Any other workflow type has no ``results`` query and is a 404, not a 500.
235
330
  * Get Zip Ingestion Status Handler
236
331
  */
237
332
  getZipIngestionStatusRaw(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZipIngestionStatusResponse>>;
238
333
  /**
239
- * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s.
334
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute (no per-path can_read check — intentionally consistent with the sibling generic Temporal endpoints below; the opaque workflow_id is only handed to the uploader, who had can_write on the target). The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this 404s. Any other workflow type has no ``results`` query and is a 404, not a 500.
240
335
  * Get Zip Ingestion Status Handler
241
336
  */
242
337
  getZipIngestionStatus(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZipIngestionStatusResponse>;
338
+ /**
339
+ * Creates request options for listDvWorkflowUploaders without sending the request
340
+ */
341
+ listDvWorkflowUploadersRequestOpts(requestParameters: ListDvWorkflowUploadersRequest): Promise<runtime.RequestOpts>;
342
+ /**
343
+ * People who uploaded a version the caller can list, for the uploader filter. Scoped like ``list_dv_workflows``: USER only counts versions under readable paths.
344
+ * List Dv Workflow Uploaders Handler
345
+ */
346
+ listDvWorkflowUploadersRaw(requestParameters: ListDvWorkflowUploadersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseUserInfo>>;
347
+ /**
348
+ * People who uploaded a version the caller can list, for the uploader filter. Scoped like ``list_dv_workflows``: USER only counts versions under readable paths.
349
+ * List Dv Workflow Uploaders Handler
350
+ */
351
+ listDvWorkflowUploaders(requestParameters?: ListDvWorkflowUploadersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseUserInfo>;
243
352
  /**
244
353
  * Creates request options for listDvWorkflows without sending the request
245
354
  */
246
355
  listDvWorkflowsRequestOpts(requestParameters: ListDvWorkflowsRequest): Promise<runtime.RequestOpts>;
247
356
  /**
248
- * List all workflows for the current tenant (paginated, DB-backed). ADMIN/OWNER see all workflows; USER sees only those under permitted paths.
357
+ * List ingestions of live documents in the current tenant, newest upload first. ADMIN/OWNER see every version; USER only versions under readable paths. ``sort_dir=ASC`` lists the oldest upload first.
249
358
  * List Dv Workflows Handler
250
359
  */
251
360
  listDvWorkflowsRaw(requestParameters: ListDvWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseWorkflowSummaryResponse>>;
252
361
  /**
253
- * List all workflows for the current tenant (paginated, DB-backed). ADMIN/OWNER see all workflows; USER sees only those under permitted paths.
362
+ * List ingestions of live documents in the current tenant, newest upload first. ADMIN/OWNER see every version; USER only versions under readable paths. ``sort_dir=ASC`` lists the oldest upload first.
254
363
  * List Dv Workflows Handler
255
364
  */
256
365
  listDvWorkflows(requestParameters?: ListDvWorkflowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseWorkflowSummaryResponse>;