@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
@@ -0,0 +1,40 @@
1
+
2
+ # PaginatedResponseUserInfo
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `items` | [Array<UserInfo>](UserInfo.md)
10
+ `total` | number
11
+ `limit` | number
12
+ `offset` | number
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { PaginatedResponseUserInfo } from '@knowledge-stack/ksapi'
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "items": null,
22
+ "total": null,
23
+ "limit": null,
24
+ "offset": null,
25
+ } satisfies PaginatedResponseUserInfo
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as PaginatedResponseUserInfo
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -4,22 +4,99 @@ All URIs are relative to *http://localhost:8000*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
+ | [**bulkRerunDvWorkflows**](SystemJobsApi.md#bulkrerundvworkflows) | **POST** /v1/system-jobs/document_versions/bulk-rerun | Bulk Rerun Dv Workflows Handler |
7
8
  | [**cancelTemporalWorkflow**](SystemJobsApi.md#canceltemporalworkflow) | **DELETE** /v1/system-jobs/{workflow_id} | Cancel Temporal Workflow Handler |
8
9
  | [**dvWorkflowRerun**](SystemJobsApi.md#dvworkflowrerun) | **POST** /v1/system-jobs/document_versions/{workflow_id} | Dv Workflow Rerun Handler |
9
10
  | [**getDvWorkflow**](SystemJobsApi.md#getdvworkflow) | **GET** /v1/system-jobs/document_versions/{workflow_id} | Get Dv Workflow Handler |
10
11
  | [**getTemporalWorkflowStatus**](SystemJobsApi.md#gettemporalworkflowstatus) | **GET** /v1/system-jobs/{workflow_id} | Get Temporal Workflow Status Handler |
11
12
  | [**getZipIngestionStatus**](SystemJobsApi.md#getzipingestionstatus) | **GET** /v1/system-jobs/zip-ingestions/{workflow_id} | Get Zip Ingestion Status Handler |
13
+ | [**listDvWorkflowUploaders**](SystemJobsApi.md#listdvworkflowuploaders) | **GET** /v1/system-jobs/document_versions/uploaders | List Dv Workflow Uploaders Handler |
12
14
  | [**listDvWorkflows**](SystemJobsApi.md#listdvworkflows) | **GET** /v1/system-jobs/document_versions | List Dv Workflows Handler |
13
15
 
14
16
 
15
17
 
18
+ ## bulkRerunDvWorkflows
19
+
20
+ > BulkOperationResponse bulkRerunDvWorkflows(bulkRerunRequest)
21
+
22
+ Bulk Rerun Dv Workflows Handler
23
+
24
+ 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.
25
+
26
+ ### Example
27
+
28
+ ```ts
29
+ import {
30
+ Configuration,
31
+ SystemJobsApi,
32
+ } from '@knowledge-stack/ksapi';
33
+ import type { BulkRerunDvWorkflowsRequest } from '@knowledge-stack/ksapi';
34
+
35
+ async function example() {
36
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
37
+ const config = new Configuration({
38
+ // To configure API key authorization: cookieAuth
39
+ apiKey: "YOUR API KEY",
40
+ // Configure HTTP bearer authorization: bearerAuth
41
+ accessToken: "YOUR BEARER TOKEN",
42
+ });
43
+ const api = new SystemJobsApi(config);
44
+
45
+ const body = {
46
+ // BulkRerunRequest
47
+ bulkRerunRequest: ...,
48
+ } satisfies BulkRerunDvWorkflowsRequest;
49
+
50
+ try {
51
+ const data = await api.bulkRerunDvWorkflows(body);
52
+ console.log(data);
53
+ } catch (error) {
54
+ console.error(error);
55
+ }
56
+ }
57
+
58
+ // Run the test
59
+ example().catch(console.error);
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+
65
+ | Name | Type | Description | Notes |
66
+ |------------- | ------------- | ------------- | -------------|
67
+ | **bulkRerunRequest** | [BulkRerunRequest](BulkRerunRequest.md) | | |
68
+
69
+ ### Return type
70
+
71
+ [**BulkOperationResponse**](BulkOperationResponse.md)
72
+
73
+ ### Authorization
74
+
75
+ [cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
76
+
77
+ ### HTTP request headers
78
+
79
+ - **Content-Type**: `application/json`
80
+ - **Accept**: `application/json`
81
+
82
+
83
+ ### HTTP response details
84
+ | Status code | Description | Response headers |
85
+ |-------------|-------------|------------------|
86
+ | **200** | Successful Response | - |
87
+ | **422** | Validation Error | - |
88
+ | **0** | Error response. | - |
89
+
90
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
91
+
92
+
16
93
  ## cancelTemporalWorkflow
17
94
 
18
95
  > WorkflowCancelResponse cancelTemporalWorkflow(workflowId)
19
96
 
20
97
  Cancel Temporal Workflow Handler
21
98
 
22
- 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.
99
+ 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.
23
100
 
24
101
  ### Example
25
102
 
@@ -94,7 +171,7 @@ example().catch(console.error);
94
171
 
95
172
  Dv Workflow Rerun Handler
96
173
 
97
- 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.
174
+ 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.
98
175
 
99
176
  ### Example
100
177
 
@@ -319,7 +396,7 @@ example().catch(console.error);
319
396
 
320
397
  Get Zip Ingestion Status Handler
321
398
 
322
- 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.
399
+ 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.
323
400
 
324
401
  ### Example
325
402
 
@@ -388,13 +465,94 @@ example().catch(console.error);
388
465
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
389
466
 
390
467
 
468
+ ## listDvWorkflowUploaders
469
+
470
+ > PaginatedResponseUserInfo listDvWorkflowUploaders(usernameLike, limit, offset)
471
+
472
+ List Dv Workflow Uploaders Handler
473
+
474
+ 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.
475
+
476
+ ### Example
477
+
478
+ ```ts
479
+ import {
480
+ Configuration,
481
+ SystemJobsApi,
482
+ } from '@knowledge-stack/ksapi';
483
+ import type { ListDvWorkflowUploadersRequest } from '@knowledge-stack/ksapi';
484
+
485
+ async function example() {
486
+ console.log("🚀 Testing @knowledge-stack/ksapi SDK...");
487
+ const config = new Configuration({
488
+ // To configure API key authorization: cookieAuth
489
+ apiKey: "YOUR API KEY",
490
+ // Configure HTTP bearer authorization: bearerAuth
491
+ accessToken: "YOUR BEARER TOKEN",
492
+ });
493
+ const api = new SystemJobsApi(config);
494
+
495
+ const body = {
496
+ // string | Case-insensitive substring of the first or last name (optional)
497
+ usernameLike: usernameLike_example,
498
+ // number | Number of items per page (optional)
499
+ limit: 56,
500
+ // number | Number of items to skip (optional)
501
+ offset: 56,
502
+ } satisfies ListDvWorkflowUploadersRequest;
503
+
504
+ try {
505
+ const data = await api.listDvWorkflowUploaders(body);
506
+ console.log(data);
507
+ } catch (error) {
508
+ console.error(error);
509
+ }
510
+ }
511
+
512
+ // Run the test
513
+ example().catch(console.error);
514
+ ```
515
+
516
+ ### Parameters
517
+
518
+
519
+ | Name | Type | Description | Notes |
520
+ |------------- | ------------- | ------------- | -------------|
521
+ | **usernameLike** | `string` | Case-insensitive substring of the first or last name | [Optional] [Defaults to `undefined`] |
522
+ | **limit** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
523
+ | **offset** | `number` | Number of items to skip | [Optional] [Defaults to `0`] |
524
+
525
+ ### Return type
526
+
527
+ [**PaginatedResponseUserInfo**](PaginatedResponseUserInfo.md)
528
+
529
+ ### Authorization
530
+
531
+ [cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
532
+
533
+ ### HTTP request headers
534
+
535
+ - **Content-Type**: Not defined
536
+ - **Accept**: `application/json`
537
+
538
+
539
+ ### HTTP response details
540
+ | Status code | Description | Response headers |
541
+ |-------------|-------------|------------------|
542
+ | **200** | Successful Response | - |
543
+ | **422** | Validation Error | - |
544
+ | **0** | Error response. | - |
545
+
546
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
547
+
548
+
391
549
  ## listDvWorkflows
392
550
 
393
- > PaginatedResponseWorkflowSummaryResponse listDvWorkflows(limit, offset)
551
+ > PaginatedResponseWorkflowSummaryResponse listDvWorkflows(limit, offset, sortDir, status, nameLike, latestVersionOnly, uploaderUserId, createdAfter, createdBefore, updatedAfter, updatedBefore)
394
552
 
395
553
  List Dv Workflows Handler
396
554
 
397
- List all workflows for the current tenant (paginated, DB-backed). ADMIN/OWNER see all workflows; USER sees only those under permitted paths.
555
+ 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.
398
556
 
399
557
  ### Example
400
558
 
@@ -420,6 +578,24 @@ async function example() {
420
578
  limit: 56,
421
579
  // number | Number of items to skip (optional)
422
580
  offset: 56,
581
+ // SortDirection | Sort direction (ASC or DESC); overrides the field\'s natural default. Every sort field supports both directions. (optional)
582
+ sortDir: ...,
583
+ // Array<PipelineStatus> | Only versions in one of these pipeline statuses (optional)
584
+ status: ...,
585
+ // string | Case-insensitive substring filter on document name (optional)
586
+ nameLike: nameLike_example,
587
+ // boolean | Skip versions superseded by a newer version (optional)
588
+ latestVersionOnly: true,
589
+ // string | Filter to versions uploaded by this user (optional)
590
+ uploaderUserId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
591
+ // Date | Only items created at or after this timestamp (inclusive) (optional)
592
+ createdAfter: 2013-10-20T19:20:30+01:00,
593
+ // Date | Only items created strictly before this timestamp (optional)
594
+ createdBefore: 2013-10-20T19:20:30+01:00,
595
+ // Date | Only items updated at or after this timestamp (inclusive) (optional)
596
+ updatedAfter: 2013-10-20T19:20:30+01:00,
597
+ // Date | Only items updated strictly before this timestamp (optional)
598
+ updatedBefore: 2013-10-20T19:20:30+01:00,
423
599
  } satisfies ListDvWorkflowsRequest;
424
600
 
425
601
  try {
@@ -441,6 +617,15 @@ example().catch(console.error);
441
617
  |------------- | ------------- | ------------- | -------------|
442
618
  | **limit** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
443
619
  | **offset** | `number` | Number of items to skip | [Optional] [Defaults to `0`] |
620
+ | **sortDir** | `SortDirection` | Sort direction (ASC or DESC); overrides the field\&#39;s natural default. Every sort field supports both directions. | [Optional] [Defaults to `undefined`] [Enum: ASC, DESC] |
621
+ | **status** | `Array<PipelineStatus>` | Only versions in one of these pipeline statuses | [Optional] |
622
+ | **nameLike** | `string` | Case-insensitive substring filter on document name | [Optional] [Defaults to `undefined`] |
623
+ | **latestVersionOnly** | `boolean` | Skip versions superseded by a newer version | [Optional] [Defaults to `false`] |
624
+ | **uploaderUserId** | `string` | Filter to versions uploaded by this user | [Optional] [Defaults to `undefined`] |
625
+ | **createdAfter** | `Date` | Only items created at or after this timestamp (inclusive) | [Optional] [Defaults to `undefined`] |
626
+ | **createdBefore** | `Date` | Only items created strictly before this timestamp | [Optional] [Defaults to `undefined`] |
627
+ | **updatedAfter** | `Date` | Only items updated at or after this timestamp (inclusive) | [Optional] [Defaults to `undefined`] |
628
+ | **updatedBefore** | `Date` | Only items updated strictly before this timestamp | [Optional] [Defaults to `undefined`] |
444
629
 
445
630
  ### Return type
446
631
 
@@ -9,7 +9,11 @@ Name | Type
9
9
  ------------ | -------------
10
10
  `workflowId` | string
11
11
  `documentId` | string
12
+ `documentName` | string
13
+ `materializedPath` | string
12
14
  `documentVersionId` | string
15
+ `isActiveVersion` | boolean
16
+ `uploader` | [UserInfo](UserInfo.md)
13
17
  `status` | [PipelineStatus](PipelineStatus.md)
14
18
  `lastActivity` | string
15
19
  `error` | string
@@ -33,7 +37,11 @@ import type { WorkflowDetailResponse } from '@knowledge-stack/ksapi'
33
37
  const example = {
34
38
  "workflowId": null,
35
39
  "documentId": null,
40
+ "documentName": null,
41
+ "materializedPath": null,
36
42
  "documentVersionId": null,
43
+ "isActiveVersion": null,
44
+ "uploader": null,
37
45
  "status": null,
38
46
  "lastActivity": null,
39
47
  "error": null,
@@ -9,7 +9,11 @@ Name | Type
9
9
  ------------ | -------------
10
10
  `workflowId` | string
11
11
  `documentId` | string
12
+ `documentName` | string
13
+ `materializedPath` | string
12
14
  `documentVersionId` | string
15
+ `isActiveVersion` | boolean
16
+ `uploader` | [UserInfo](UserInfo.md)
13
17
  `status` | [PipelineStatus](PipelineStatus.md)
14
18
  `lastActivity` | string
15
19
  `error` | string
@@ -26,7 +30,11 @@ import type { WorkflowSummaryResponse } from '@knowledge-stack/ksapi'
26
30
  const example = {
27
31
  "workflowId": null,
28
32
  "documentId": null,
33
+ "documentName": null,
34
+ "materializedPath": null,
29
35
  "documentVersionId": null,
36
+ "isActiveVersion": null,
37
+ "uploader": null,
30
38
  "status": null,
31
39
  "lastActivity": null,
32
40
  "error": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "3.13.1",
3
+ "version": "3.14.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -419,7 +419,7 @@ export interface DocumentVersionsApiInterface {
419
419
  updateDocumentVersionMetadataRequestOpts(requestParameters: UpdateDocumentVersionMetadataRequest): Promise<runtime.RequestOpts>;
420
420
 
421
421
  /**
422
- * 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``).
422
+ * 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.
423
423
  * @summary Update Document Version Metadata Handler
424
424
  * @param {string} versionId DocumentVersion ID
425
425
  * @param {DocumentVersionMetadataUpdate} documentVersionMetadataUpdate
@@ -430,7 +430,7 @@ export interface DocumentVersionsApiInterface {
430
430
  updateDocumentVersionMetadataRaw(requestParameters: UpdateDocumentVersionMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentVersionResponse>>;
431
431
 
432
432
  /**
433
- * 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``).
433
+ * 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.
434
434
  * Update Document Version Metadata Handler
435
435
  */
436
436
  updateDocumentVersionMetadata(requestParameters: UpdateDocumentVersionMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentVersionResponse>;
@@ -1140,7 +1140,7 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
1140
1140
  }
1141
1141
 
1142
1142
  /**
1143
- * 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``).
1143
+ * 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.
1144
1144
  * Update Document Version Metadata Handler
1145
1145
  */
1146
1146
  async updateDocumentVersionMetadataRaw(requestParameters: UpdateDocumentVersionMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DocumentVersionResponse>> {
@@ -1151,7 +1151,7 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
1151
1151
  }
1152
1152
 
1153
1153
  /**
1154
- * 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``).
1154
+ * 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.
1155
1155
  * Update Document Version Metadata Handler
1156
1156
  */
1157
1157
  async updateDocumentVersionMetadata(requestParameters: UpdateDocumentVersionMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DocumentVersionResponse> {