@knowledge-stack/ksapi 1.149.1 → 1.150.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 (44) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +5 -2
  3. package/dist/apis/DocumentsApi.d.ts +13 -4
  4. package/dist/apis/DocumentsApi.js +11 -2
  5. package/dist/apis/SystemJobsApi.d.ts +39 -1
  6. package/dist/apis/SystemJobsApi.js +48 -0
  7. package/dist/esm/apis/DocumentsApi.d.ts +13 -4
  8. package/dist/esm/apis/DocumentsApi.js +11 -2
  9. package/dist/esm/apis/SystemJobsApi.d.ts +39 -1
  10. package/dist/esm/apis/SystemJobsApi.js +49 -1
  11. package/dist/esm/models/DocumentVersionMetadata.d.ts +6 -0
  12. package/dist/esm/models/DocumentVersionMetadata.js +2 -0
  13. package/dist/esm/models/IngestZipResponse.d.ts +10 -23
  14. package/dist/esm/models/IngestZipResponse.js +5 -17
  15. package/dist/esm/models/ZipIngestionStatusResponse.d.ts +64 -0
  16. package/dist/esm/models/ZipIngestionStatusResponse.js +53 -0
  17. package/dist/esm/models/ZipMemberStatusResponse.d.ts +77 -0
  18. package/dist/esm/models/ZipMemberStatusResponse.js +54 -0
  19. package/dist/esm/models/index.d.ts +2 -0
  20. package/dist/esm/models/index.js +2 -0
  21. package/dist/models/DocumentVersionMetadata.d.ts +6 -0
  22. package/dist/models/DocumentVersionMetadata.js +2 -0
  23. package/dist/models/IngestZipResponse.d.ts +10 -23
  24. package/dist/models/IngestZipResponse.js +5 -17
  25. package/dist/models/ZipIngestionStatusResponse.d.ts +64 -0
  26. package/dist/models/ZipIngestionStatusResponse.js +61 -0
  27. package/dist/models/ZipMemberStatusResponse.d.ts +77 -0
  28. package/dist/models/ZipMemberStatusResponse.js +62 -0
  29. package/dist/models/index.d.ts +2 -0
  30. package/dist/models/index.js +2 -0
  31. package/docs/DocumentVersionMetadata.md +2 -0
  32. package/docs/DocumentsApi.md +12 -3
  33. package/docs/IngestZipResponse.md +4 -10
  34. package/docs/SystemJobsApi.md +76 -0
  35. package/docs/ZipIngestionStatusResponse.md +39 -0
  36. package/docs/ZipMemberStatusResponse.md +45 -0
  37. package/package.json +1 -1
  38. package/src/apis/DocumentsApi.ts +25 -4
  39. package/src/apis/SystemJobsApi.ts +86 -0
  40. package/src/models/DocumentVersionMetadata.ts +8 -0
  41. package/src/models/IngestZipResponse.ts +15 -37
  42. package/src/models/ZipIngestionStatusResponse.ts +113 -0
  43. package/src/models/ZipMemberStatusResponse.ts +123 -0
  44. package/src/models/index.ts +2 -0
@@ -403,6 +403,8 @@ docs/XlsxCellAnchorInputOrDocxParagraphAnchorInput.md
403
403
  docs/XlsxCellAnchorOutput.md
404
404
  docs/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.md
405
405
  docs/ZipFileResult.md
406
+ docs/ZipIngestionStatusResponse.md
407
+ docs/ZipMemberStatusResponse.md
406
408
  package.json
407
409
  src/apis/AdminKbApi.ts
408
410
  src/apis/AdminWorkflowsApi.ts
@@ -807,6 +809,8 @@ src/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.ts
807
809
  src/models/XlsxCellAnchorOutput.ts
808
810
  src/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.ts
809
811
  src/models/ZipFileResult.ts
812
+ src/models/ZipIngestionStatusResponse.ts
813
+ src/models/ZipMemberStatusResponse.ts
810
814
  src/models/index.ts
811
815
  src/runtime.ts
812
816
  tsconfig.esm.json
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.149.1
1
+ # @knowledge-stack/ksapi@1.150.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -208,6 +208,7 @@ All URIs are relative to *http://localhost:8000*
208
208
  *SystemJobsApi* | [**dvWorkflowRerun**](docs/SystemJobsApi.md#dvworkflowrerun) | **POST** /v1/system-jobs/document_versions/{workflow_id} | Dv Workflow Rerun Handler
209
209
  *SystemJobsApi* | [**getDvWorkflow**](docs/SystemJobsApi.md#getdvworkflow) | **GET** /v1/system-jobs/document_versions/{workflow_id} | Get Dv Workflow Handler
210
210
  *SystemJobsApi* | [**getTemporalWorkflowStatus**](docs/SystemJobsApi.md#gettemporalworkflowstatus) | **GET** /v1/system-jobs/{workflow_id} | Get Temporal Workflow Status Handler
211
+ *SystemJobsApi* | [**getZipIngestionStatus**](docs/SystemJobsApi.md#getzipingestionstatus) | **GET** /v1/system-jobs/zip-ingestions/{workflow_id} | Get Zip Ingestion Status Handler
211
212
  *SystemJobsApi* | [**listDvWorkflows**](docs/SystemJobsApi.md#listdvworkflows) | **GET** /v1/system-jobs/document_versions | List Dv Workflows Handler
212
213
  *TagsApi* | [**createTag**](docs/TagsApi.md#createtagoperation) | **POST** /v1/tags | Create Tag Handler
213
214
  *TagsApi* | [**deleteTag**](docs/TagsApi.md#deletetag) | **DELETE** /v1/tags/{tag_id} | Delete Tag Handler
@@ -653,6 +654,8 @@ All URIs are relative to *http://localhost:8000*
653
654
  - [XlsxCellAnchorOutput](docs/XlsxCellAnchorOutput.md)
654
655
  - [XlsxCellAnchorOutputOrDocxParagraphAnchorOutput](docs/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.md)
655
656
  - [ZipFileResult](docs/ZipFileResult.md)
657
+ - [ZipIngestionStatusResponse](docs/ZipIngestionStatusResponse.md)
658
+ - [ZipMemberStatusResponse](docs/ZipMemberStatusResponse.md)
656
659
 
657
660
  ### Authorization
658
661
 
@@ -678,7 +681,7 @@ and is automatically generated by the
678
681
  [OpenAPI Generator](https://openapi-generator.tech) project:
679
682
 
680
683
  - API version: `0.1.0`
681
- - Package version: `1.149.1`
684
+ - Package version: `1.150.0`
682
685
  - Generator version: `7.21.0`
683
686
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
684
687
 
@@ -34,6 +34,8 @@ export interface IngestDocumentRequest {
34
34
  secondaryTaxonomy?: ImageTaxonomy;
35
35
  pageDpi?: number;
36
36
  workflowRunId?: string | null;
37
+ tagIds?: Array<string>;
38
+ idempotencyKey?: string | null;
37
39
  workflowDefinitionId?: string | null;
38
40
  }
39
41
  export interface IngestDocumentVersionRequest {
@@ -50,6 +52,7 @@ export interface IngestZipRequest {
50
52
  file: Blob;
51
53
  pathPartId: string;
52
54
  ingestionMode?: IngestionMode;
55
+ tagIds?: Array<string>;
53
56
  }
54
57
  export interface ListDocumentsRequest {
55
58
  parentPathPartId?: string | null;
@@ -173,6 +176,8 @@ export interface DocumentsApiInterface {
173
176
  * @param {ImageTaxonomy} [secondaryTaxonomy]
174
177
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
175
178
  * @param {string} [workflowRunId] Workflow run context for assumed agent uploads.
179
+ * @param {Array<string>} [tagIds] Tag IDs applied to the created document.
180
+ * @param {string} [idempotencyKey] Opt-in key: a repeat with the same key at the same (parent, name) replays the existing document instead of a 409.
176
181
  * @param {string} [workflowDefinitionId] Workflow definition context for assumed agent uploads.
177
182
  * @throws {RequiredError}
178
183
  * @memberof DocumentsApiInterface
@@ -189,6 +194,8 @@ export interface DocumentsApiInterface {
189
194
  * @param {ImageTaxonomy} [secondaryTaxonomy]
190
195
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
191
196
  * @param {string} [workflowRunId] Workflow run context for assumed agent uploads.
197
+ * @param {Array<string>} [tagIds] Tag IDs applied to the created document.
198
+ * @param {string} [idempotencyKey] Opt-in key: a repeat with the same key at the same (parent, name) replays the existing document instead of a 409.
192
199
  * @param {string} [workflowDefinitionId] Workflow definition context for assumed agent uploads.
193
200
  * @param {*} [options] Override http request option.
194
201
  * @throws {RequiredError}
@@ -240,23 +247,25 @@ export interface DocumentsApiInterface {
240
247
  * @param {Blob} file
241
248
  * @param {string} pathPartId Parent path part ID (must be a FOLDER type)
242
249
  * @param {IngestionMode} [ingestionMode]
250
+ * @param {Array<string>} [tagIds] Tag IDs applied to every ingested member document.
243
251
  * @throws {RequiredError}
244
252
  * @memberof DocumentsApiInterface
245
253
  */
246
254
  ingestZipRequestOpts(requestParameters: IngestZipRequest): Promise<runtime.RequestOpts>;
247
255
  /**
248
- * Upload a ZIP archive and ingest each member file individually. Directory structure inside the ZIP is preserved as FOLDER PathParts under the target folder. Returns 202 with per-file outcomes each file that ingests successfully has its own Temporal workflow ID to poll for status. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes. Per-file failures (unsupported type, oversized) are included in the response with ``error`` set; other files continue processing.
256
+ * Upload a ZIP archive; ingest each member asynchronously via a fan-out. The whole archive nests under a single FOLDER named after the ZIP file (``report.zip`` -> ``report/``), with the ZIP\'s directory structure mirrored beneath it as FOLDER PathParts all created synchronously. Returns 202 with the fan-out ``workflow_id`` (poll ``GET /v1/system-jobs/zip-ingestions/{workflow_id}`` for per-member outcomes) plus the artifacts ``skipped`` during classification. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes; a re-upload whose ZIP-named folder already exists returns 409. Per-member failures (unsupported type, oversized) surface in the polled workflow results, not in this response. Each member reuses the single-file ingest path, so run-enrollment and completion events fire per member there.
249
257
  * @summary Ingest Zip Handler
250
258
  * @param {Blob} file
251
259
  * @param {string} pathPartId Parent path part ID (must be a FOLDER type)
252
260
  * @param {IngestionMode} [ingestionMode]
261
+ * @param {Array<string>} [tagIds] Tag IDs applied to every ingested member document.
253
262
  * @param {*} [options] Override http request option.
254
263
  * @throws {RequiredError}
255
264
  * @memberof DocumentsApiInterface
256
265
  */
257
266
  ingestZipRaw(requestParameters: IngestZipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IngestZipResponse>>;
258
267
  /**
259
- * Upload a ZIP archive and ingest each member file individually. Directory structure inside the ZIP is preserved as FOLDER PathParts under the target folder. Returns 202 with per-file outcomes each file that ingests successfully has its own Temporal workflow ID to poll for status. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes. Per-file failures (unsupported type, oversized) are included in the response with ``error`` set; other files continue processing.
268
+ * Upload a ZIP archive; ingest each member asynchronously via a fan-out. The whole archive nests under a single FOLDER named after the ZIP file (``report.zip`` -> ``report/``), with the ZIP\'s directory structure mirrored beneath it as FOLDER PathParts all created synchronously. Returns 202 with the fan-out ``workflow_id`` (poll ``GET /v1/system-jobs/zip-ingestions/{workflow_id}`` for per-member outcomes) plus the artifacts ``skipped`` during classification. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes; a re-upload whose ZIP-named folder already exists returns 409. Per-member failures (unsupported type, oversized) surface in the polled workflow results, not in this response. Each member reuses the single-file ingest path, so run-enrollment and completion events fire per member there.
260
269
  * Ingest Zip Handler
261
270
  */
262
271
  ingestZip(requestParameters: IngestZipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IngestZipResponse>;
@@ -418,12 +427,12 @@ export declare class DocumentsApi extends runtime.BaseAPI implements DocumentsAp
418
427
  */
419
428
  ingestZipRequestOpts(requestParameters: IngestZipRequest): Promise<runtime.RequestOpts>;
420
429
  /**
421
- * Upload a ZIP archive and ingest each member file individually. Directory structure inside the ZIP is preserved as FOLDER PathParts under the target folder. Returns 202 with per-file outcomes each file that ingests successfully has its own Temporal workflow ID to poll for status. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes. Per-file failures (unsupported type, oversized) are included in the response with ``error`` set; other files continue processing.
430
+ * Upload a ZIP archive; ingest each member asynchronously via a fan-out. The whole archive nests under a single FOLDER named after the ZIP file (``report.zip`` -> ``report/``), with the ZIP\'s directory structure mirrored beneath it as FOLDER PathParts all created synchronously. Returns 202 with the fan-out ``workflow_id`` (poll ``GET /v1/system-jobs/zip-ingestions/{workflow_id}`` for per-member outcomes) plus the artifacts ``skipped`` during classification. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes; a re-upload whose ZIP-named folder already exists returns 409. Per-member failures (unsupported type, oversized) surface in the polled workflow results, not in this response. Each member reuses the single-file ingest path, so run-enrollment and completion events fire per member there.
422
431
  * Ingest Zip Handler
423
432
  */
424
433
  ingestZipRaw(requestParameters: IngestZipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IngestZipResponse>>;
425
434
  /**
426
- * Upload a ZIP archive and ingest each member file individually. Directory structure inside the ZIP is preserved as FOLDER PathParts under the target folder. Returns 202 with per-file outcomes each file that ingests successfully has its own Temporal workflow ID to poll for status. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes. Per-file failures (unsupported type, oversized) are included in the response with ``error`` set; other files continue processing.
435
+ * Upload a ZIP archive; ingest each member asynchronously via a fan-out. The whole archive nests under a single FOLDER named after the ZIP file (``report.zip`` -> ``report/``), with the ZIP\'s directory structure mirrored beneath it as FOLDER PathParts all created synchronously. Returns 202 with the fan-out ``workflow_id`` (poll ``GET /v1/system-jobs/zip-ingestions/{workflow_id}`` for per-member outcomes) plus the artifacts ``skipped`` during classification. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes; a re-upload whose ZIP-named folder already exists returns 409. Per-member failures (unsupported type, oversized) surface in the polled workflow results, not in this response. Each member reuses the single-file ingest path, so run-enrollment and completion events fire per member there.
427
436
  * Ingest Zip Handler
428
437
  */
429
438
  ingestZip(requestParameters: IngestZipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IngestZipResponse>;
@@ -317,6 +317,12 @@ class DocumentsApi extends runtime.BaseAPI {
317
317
  if (requestParameters['workflowRunId'] != null) {
318
318
  formParams.append('workflow_run_id', requestParameters['workflowRunId']);
319
319
  }
320
+ if (requestParameters['tagIds'] != null) {
321
+ formParams.append('tag_ids', requestParameters['tagIds'].join(runtime.COLLECTION_FORMATS["csv"]));
322
+ }
323
+ if (requestParameters['idempotencyKey'] != null) {
324
+ formParams.append('idempotency_key', requestParameters['idempotencyKey']);
325
+ }
320
326
  if (requestParameters['workflowDefinitionId'] != null) {
321
327
  formParams.append('workflow_definition_id', requestParameters['workflowDefinitionId']);
322
328
  }
@@ -483,6 +489,9 @@ class DocumentsApi extends runtime.BaseAPI {
483
489
  if (requestParameters['ingestionMode'] != null) {
484
490
  formParams.append('ingestion_mode', requestParameters['ingestionMode']);
485
491
  }
492
+ if (requestParameters['tagIds'] != null) {
493
+ formParams.append('tag_ids', requestParameters['tagIds'].join(runtime.COLLECTION_FORMATS["csv"]));
494
+ }
486
495
  let urlPath = `/v1/documents/ingest-zip`;
487
496
  return {
488
497
  path: urlPath,
@@ -494,7 +503,7 @@ class DocumentsApi extends runtime.BaseAPI {
494
503
  });
495
504
  }
496
505
  /**
497
- * Upload a ZIP archive and ingest each member file individually. Directory structure inside the ZIP is preserved as FOLDER PathParts under the target folder. Returns 202 with per-file outcomes each file that ingests successfully has its own Temporal workflow ID to poll for status. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes. Per-file failures (unsupported type, oversized) are included in the response with ``error`` set; other files continue processing.
506
+ * Upload a ZIP archive; ingest each member asynchronously via a fan-out. The whole archive nests under a single FOLDER named after the ZIP file (``report.zip`` -> ``report/``), with the ZIP\'s directory structure mirrored beneath it as FOLDER PathParts all created synchronously. Returns 202 with the fan-out ``workflow_id`` (poll ``GET /v1/system-jobs/zip-ingestions/{workflow_id}`` for per-member outcomes) plus the artifacts ``skipped`` during classification. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes; a re-upload whose ZIP-named folder already exists returns 409. Per-member failures (unsupported type, oversized) surface in the polled workflow results, not in this response. Each member reuses the single-file ingest path, so run-enrollment and completion events fire per member there.
498
507
  * Ingest Zip Handler
499
508
  */
500
509
  ingestZipRaw(requestParameters, initOverrides) {
@@ -505,7 +514,7 @@ class DocumentsApi extends runtime.BaseAPI {
505
514
  });
506
515
  }
507
516
  /**
508
- * Upload a ZIP archive and ingest each member file individually. Directory structure inside the ZIP is preserved as FOLDER PathParts under the target folder. Returns 202 with per-file outcomes each file that ingests successfully has its own Temporal workflow ID to poll for status. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes. Per-file failures (unsupported type, oversized) are included in the response with ``error`` set; other files continue processing.
517
+ * Upload a ZIP archive; ingest each member asynchronously via a fan-out. The whole archive nests under a single FOLDER named after the ZIP file (``report.zip`` -> ``report/``), with the ZIP\'s directory structure mirrored beneath it as FOLDER PathParts all created synchronously. Returns 202 with the fan-out ``workflow_id`` (poll ``GET /v1/system-jobs/zip-ingestions/{workflow_id}`` for per-member outcomes) plus the artifacts ``skipped`` during classification. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes; a re-upload whose ZIP-named folder already exists returns 409. Per-member failures (unsupported type, oversized) surface in the polled workflow results, not in this response. Each member reuses the single-file ingest path, so run-enrollment and completion events fire per member there.
509
518
  * Ingest Zip Handler
510
519
  */
511
520
  ingestZip(requestParameters, initOverrides) {
@@ -10,7 +10,7 @@
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 } from '../models/index';
13
+ import type { PaginatedResponseWorkflowSummaryResponse, TemporalWorkflowStatusResponse, WorkflowActionResponse, WorkflowCancelResponse, WorkflowDetailResponse, ZipIngestionStatusResponse } from '../models/index';
14
14
  export interface CancelTemporalWorkflowRequest {
15
15
  workflowId: string;
16
16
  }
@@ -23,6 +23,9 @@ export interface GetDvWorkflowRequest {
23
23
  export interface GetTemporalWorkflowStatusRequest {
24
24
  workflowId: string;
25
25
  }
26
+ export interface GetZipIngestionStatusRequest {
27
+ workflowId: string;
28
+ }
26
29
  export interface ListDvWorkflowsRequest {
27
30
  limit?: number;
28
31
  offset?: number;
@@ -118,6 +121,27 @@ export interface SystemJobsApiInterface {
118
121
  * Get Temporal Workflow Status Handler
119
122
  */
120
123
  getTemporalWorkflowStatus(requestParameters: GetTemporalWorkflowStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TemporalWorkflowStatusResponse>;
124
+ /**
125
+ * Creates request options for getZipIngestionStatus without sending the request
126
+ * @param {string} workflowId
127
+ * @throws {RequiredError}
128
+ * @memberof SystemJobsApiInterface
129
+ */
130
+ getZipIngestionStatusRequestOpts(requestParameters: GetZipIngestionStatusRequest): Promise<runtime.RequestOpts>;
131
+ /**
132
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this returns 404.
133
+ * @summary Get Zip Ingestion Status Handler
134
+ * @param {string} workflowId
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ * @memberof SystemJobsApiInterface
138
+ */
139
+ getZipIngestionStatusRaw(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZipIngestionStatusResponse>>;
140
+ /**
141
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this returns 404.
142
+ * Get Zip Ingestion Status Handler
143
+ */
144
+ getZipIngestionStatus(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZipIngestionStatusResponse>;
121
145
  /**
122
146
  * Creates request options for listDvWorkflows without sending the request
123
147
  * @param {number} [limit] Number of items per page
@@ -202,6 +226,20 @@ export declare class SystemJobsApi extends runtime.BaseAPI implements SystemJobs
202
226
  * Get Temporal Workflow Status Handler
203
227
  */
204
228
  getTemporalWorkflowStatus(requestParameters: GetTemporalWorkflowStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TemporalWorkflowStatusResponse>;
229
+ /**
230
+ * Creates request options for getZipIngestionStatus without sending the request
231
+ */
232
+ getZipIngestionStatusRequestOpts(requestParameters: GetZipIngestionStatusRequest): Promise<runtime.RequestOpts>;
233
+ /**
234
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this returns 404.
235
+ * Get Zip Ingestion Status Handler
236
+ */
237
+ getZipIngestionStatusRaw(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZipIngestionStatusResponse>>;
238
+ /**
239
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this returns 404.
240
+ * Get Zip Ingestion Status Handler
241
+ */
242
+ getZipIngestionStatus(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZipIngestionStatusResponse>;
205
243
  /**
206
244
  * Creates request options for listDvWorkflows without sending the request
207
245
  */
@@ -254,6 +254,54 @@ class SystemJobsApi extends runtime.BaseAPI {
254
254
  return yield response.value();
255
255
  });
256
256
  }
257
+ /**
258
+ * Creates request options for getZipIngestionStatus without sending the request
259
+ */
260
+ getZipIngestionStatusRequestOpts(requestParameters) {
261
+ return __awaiter(this, void 0, void 0, function* () {
262
+ if (requestParameters['workflowId'] == null) {
263
+ throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling getZipIngestionStatus().');
264
+ }
265
+ const queryParameters = {};
266
+ const headerParameters = {};
267
+ if (this.configuration && this.configuration.accessToken) {
268
+ const token = this.configuration.accessToken;
269
+ const tokenString = yield token("bearerAuth", []);
270
+ if (tokenString) {
271
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
272
+ }
273
+ }
274
+ let urlPath = `/v1/system-jobs/zip-ingestions/{workflow_id}`;
275
+ urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
276
+ return {
277
+ path: urlPath,
278
+ method: 'GET',
279
+ headers: headerParameters,
280
+ query: queryParameters,
281
+ };
282
+ });
283
+ }
284
+ /**
285
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this returns 404.
286
+ * Get Zip Ingestion Status Handler
287
+ */
288
+ getZipIngestionStatusRaw(requestParameters, initOverrides) {
289
+ return __awaiter(this, void 0, void 0, function* () {
290
+ const requestOptions = yield this.getZipIngestionStatusRequestOpts(requestParameters);
291
+ const response = yield this.request(requestOptions, initOverrides);
292
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ZipIngestionStatusResponseFromJSON)(jsonValue));
293
+ });
294
+ }
295
+ /**
296
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this returns 404.
297
+ * Get Zip Ingestion Status Handler
298
+ */
299
+ getZipIngestionStatus(requestParameters, initOverrides) {
300
+ return __awaiter(this, void 0, void 0, function* () {
301
+ const response = yield this.getZipIngestionStatusRaw(requestParameters, initOverrides);
302
+ return yield response.value();
303
+ });
304
+ }
257
305
  /**
258
306
  * Creates request options for listDvWorkflows without sending the request
259
307
  */
@@ -34,6 +34,8 @@ export interface IngestDocumentRequest {
34
34
  secondaryTaxonomy?: ImageTaxonomy;
35
35
  pageDpi?: number;
36
36
  workflowRunId?: string | null;
37
+ tagIds?: Array<string>;
38
+ idempotencyKey?: string | null;
37
39
  workflowDefinitionId?: string | null;
38
40
  }
39
41
  export interface IngestDocumentVersionRequest {
@@ -50,6 +52,7 @@ export interface IngestZipRequest {
50
52
  file: Blob;
51
53
  pathPartId: string;
52
54
  ingestionMode?: IngestionMode;
55
+ tagIds?: Array<string>;
53
56
  }
54
57
  export interface ListDocumentsRequest {
55
58
  parentPathPartId?: string | null;
@@ -173,6 +176,8 @@ export interface DocumentsApiInterface {
173
176
  * @param {ImageTaxonomy} [secondaryTaxonomy]
174
177
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
175
178
  * @param {string} [workflowRunId] Workflow run context for assumed agent uploads.
179
+ * @param {Array<string>} [tagIds] Tag IDs applied to the created document.
180
+ * @param {string} [idempotencyKey] Opt-in key: a repeat with the same key at the same (parent, name) replays the existing document instead of a 409.
176
181
  * @param {string} [workflowDefinitionId] Workflow definition context for assumed agent uploads.
177
182
  * @throws {RequiredError}
178
183
  * @memberof DocumentsApiInterface
@@ -189,6 +194,8 @@ export interface DocumentsApiInterface {
189
194
  * @param {ImageTaxonomy} [secondaryTaxonomy]
190
195
  * @param {number} [pageDpi] DPI for PDF page screenshots (default 72, min 36, max 216).
191
196
  * @param {string} [workflowRunId] Workflow run context for assumed agent uploads.
197
+ * @param {Array<string>} [tagIds] Tag IDs applied to the created document.
198
+ * @param {string} [idempotencyKey] Opt-in key: a repeat with the same key at the same (parent, name) replays the existing document instead of a 409.
192
199
  * @param {string} [workflowDefinitionId] Workflow definition context for assumed agent uploads.
193
200
  * @param {*} [options] Override http request option.
194
201
  * @throws {RequiredError}
@@ -240,23 +247,25 @@ export interface DocumentsApiInterface {
240
247
  * @param {Blob} file
241
248
  * @param {string} pathPartId Parent path part ID (must be a FOLDER type)
242
249
  * @param {IngestionMode} [ingestionMode]
250
+ * @param {Array<string>} [tagIds] Tag IDs applied to every ingested member document.
243
251
  * @throws {RequiredError}
244
252
  * @memberof DocumentsApiInterface
245
253
  */
246
254
  ingestZipRequestOpts(requestParameters: IngestZipRequest): Promise<runtime.RequestOpts>;
247
255
  /**
248
- * Upload a ZIP archive and ingest each member file individually. Directory structure inside the ZIP is preserved as FOLDER PathParts under the target folder. Returns 202 with per-file outcomes each file that ingests successfully has its own Temporal workflow ID to poll for status. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes. Per-file failures (unsupported type, oversized) are included in the response with ``error`` set; other files continue processing.
256
+ * Upload a ZIP archive; ingest each member asynchronously via a fan-out. The whole archive nests under a single FOLDER named after the ZIP file (``report.zip`` -> ``report/``), with the ZIP\'s directory structure mirrored beneath it as FOLDER PathParts all created synchronously. Returns 202 with the fan-out ``workflow_id`` (poll ``GET /v1/system-jobs/zip-ingestions/{workflow_id}`` for per-member outcomes) plus the artifacts ``skipped`` during classification. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes; a re-upload whose ZIP-named folder already exists returns 409. Per-member failures (unsupported type, oversized) surface in the polled workflow results, not in this response. Each member reuses the single-file ingest path, so run-enrollment and completion events fire per member there.
249
257
  * @summary Ingest Zip Handler
250
258
  * @param {Blob} file
251
259
  * @param {string} pathPartId Parent path part ID (must be a FOLDER type)
252
260
  * @param {IngestionMode} [ingestionMode]
261
+ * @param {Array<string>} [tagIds] Tag IDs applied to every ingested member document.
253
262
  * @param {*} [options] Override http request option.
254
263
  * @throws {RequiredError}
255
264
  * @memberof DocumentsApiInterface
256
265
  */
257
266
  ingestZipRaw(requestParameters: IngestZipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IngestZipResponse>>;
258
267
  /**
259
- * Upload a ZIP archive and ingest each member file individually. Directory structure inside the ZIP is preserved as FOLDER PathParts under the target folder. Returns 202 with per-file outcomes each file that ingests successfully has its own Temporal workflow ID to poll for status. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes. Per-file failures (unsupported type, oversized) are included in the response with ``error`` set; other files continue processing.
268
+ * Upload a ZIP archive; ingest each member asynchronously via a fan-out. The whole archive nests under a single FOLDER named after the ZIP file (``report.zip`` -> ``report/``), with the ZIP\'s directory structure mirrored beneath it as FOLDER PathParts all created synchronously. Returns 202 with the fan-out ``workflow_id`` (poll ``GET /v1/system-jobs/zip-ingestions/{workflow_id}`` for per-member outcomes) plus the artifacts ``skipped`` during classification. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes; a re-upload whose ZIP-named folder already exists returns 409. Per-member failures (unsupported type, oversized) surface in the polled workflow results, not in this response. Each member reuses the single-file ingest path, so run-enrollment and completion events fire per member there.
260
269
  * Ingest Zip Handler
261
270
  */
262
271
  ingestZip(requestParameters: IngestZipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IngestZipResponse>;
@@ -418,12 +427,12 @@ export declare class DocumentsApi extends runtime.BaseAPI implements DocumentsAp
418
427
  */
419
428
  ingestZipRequestOpts(requestParameters: IngestZipRequest): Promise<runtime.RequestOpts>;
420
429
  /**
421
- * Upload a ZIP archive and ingest each member file individually. Directory structure inside the ZIP is preserved as FOLDER PathParts under the target folder. Returns 202 with per-file outcomes each file that ingests successfully has its own Temporal workflow ID to poll for status. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes. Per-file failures (unsupported type, oversized) are included in the response with ``error`` set; other files continue processing.
430
+ * Upload a ZIP archive; ingest each member asynchronously via a fan-out. The whole archive nests under a single FOLDER named after the ZIP file (``report.zip`` -> ``report/``), with the ZIP\'s directory structure mirrored beneath it as FOLDER PathParts all created synchronously. Returns 202 with the fan-out ``workflow_id`` (poll ``GET /v1/system-jobs/zip-ingestions/{workflow_id}`` for per-member outcomes) plus the artifacts ``skipped`` during classification. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes; a re-upload whose ZIP-named folder already exists returns 409. Per-member failures (unsupported type, oversized) surface in the polled workflow results, not in this response. Each member reuses the single-file ingest path, so run-enrollment and completion events fire per member there.
422
431
  * Ingest Zip Handler
423
432
  */
424
433
  ingestZipRaw(requestParameters: IngestZipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IngestZipResponse>>;
425
434
  /**
426
- * Upload a ZIP archive and ingest each member file individually. Directory structure inside the ZIP is preserved as FOLDER PathParts under the target folder. Returns 202 with per-file outcomes each file that ingests successfully has its own Temporal workflow ID to poll for status. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes. Per-file failures (unsupported type, oversized) are included in the response with ``error`` set; other files continue processing.
435
+ * Upload a ZIP archive; ingest each member asynchronously via a fan-out. The whole archive nests under a single FOLDER named after the ZIP file (``report.zip`` -> ``report/``), with the ZIP\'s directory structure mirrored beneath it as FOLDER PathParts all created synchronously. Returns 202 with the fan-out ``workflow_id`` (poll ``GET /v1/system-jobs/zip-ingestions/{workflow_id}`` for per-member outcomes) plus the artifacts ``skipped`` during classification. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes; a re-upload whose ZIP-named folder already exists returns 409. Per-member failures (unsupported type, oversized) surface in the polled workflow results, not in this response. Each member reuses the single-file ingest path, so run-enrollment and completion events fire per member there.
427
436
  * Ingest Zip Handler
428
437
  */
429
438
  ingestZip(requestParameters: IngestZipRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IngestZipResponse>;
@@ -281,6 +281,12 @@ export class DocumentsApi extends runtime.BaseAPI {
281
281
  if (requestParameters['workflowRunId'] != null) {
282
282
  formParams.append('workflow_run_id', requestParameters['workflowRunId']);
283
283
  }
284
+ if (requestParameters['tagIds'] != null) {
285
+ formParams.append('tag_ids', requestParameters['tagIds'].join(runtime.COLLECTION_FORMATS["csv"]));
286
+ }
287
+ if (requestParameters['idempotencyKey'] != null) {
288
+ formParams.append('idempotency_key', requestParameters['idempotencyKey']);
289
+ }
284
290
  if (requestParameters['workflowDefinitionId'] != null) {
285
291
  formParams.append('workflow_definition_id', requestParameters['workflowDefinitionId']);
286
292
  }
@@ -447,6 +453,9 @@ export class DocumentsApi extends runtime.BaseAPI {
447
453
  if (requestParameters['ingestionMode'] != null) {
448
454
  formParams.append('ingestion_mode', requestParameters['ingestionMode']);
449
455
  }
456
+ if (requestParameters['tagIds'] != null) {
457
+ formParams.append('tag_ids', requestParameters['tagIds'].join(runtime.COLLECTION_FORMATS["csv"]));
458
+ }
450
459
  let urlPath = `/v1/documents/ingest-zip`;
451
460
  return {
452
461
  path: urlPath,
@@ -458,7 +467,7 @@ export class DocumentsApi extends runtime.BaseAPI {
458
467
  });
459
468
  }
460
469
  /**
461
- * Upload a ZIP archive and ingest each member file individually. Directory structure inside the ZIP is preserved as FOLDER PathParts under the target folder. Returns 202 with per-file outcomes each file that ingests successfully has its own Temporal workflow ID to poll for status. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes. Per-file failures (unsupported type, oversized) are included in the response with ``error`` set; other files continue processing.
470
+ * Upload a ZIP archive; ingest each member asynchronously via a fan-out. The whole archive nests under a single FOLDER named after the ZIP file (``report.zip`` -> ``report/``), with the ZIP\'s directory structure mirrored beneath it as FOLDER PathParts all created synchronously. Returns 202 with the fan-out ``workflow_id`` (poll ``GET /v1/system-jobs/zip-ingestions/{workflow_id}`` for per-member outcomes) plus the artifacts ``skipped`` during classification. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes; a re-upload whose ZIP-named folder already exists returns 409. Per-member failures (unsupported type, oversized) surface in the polled workflow results, not in this response. Each member reuses the single-file ingest path, so run-enrollment and completion events fire per member there.
462
471
  * Ingest Zip Handler
463
472
  */
464
473
  ingestZipRaw(requestParameters, initOverrides) {
@@ -469,7 +478,7 @@ export class DocumentsApi extends runtime.BaseAPI {
469
478
  });
470
479
  }
471
480
  /**
472
- * Upload a ZIP archive and ingest each member file individually. Directory structure inside the ZIP is preserved as FOLDER PathParts under the target folder. Returns 202 with per-file outcomes each file that ingests successfully has its own Temporal workflow ID to poll for status. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes. Per-file failures (unsupported type, oversized) are included in the response with ``error`` set; other files continue processing.
481
+ * Upload a ZIP archive; ingest each member asynchronously via a fan-out. The whole archive nests under a single FOLDER named after the ZIP file (``report.zip`` -> ``report/``), with the ZIP\'s directory structure mirrored beneath it as FOLDER PathParts all created synchronously. Returns 202 with the fan-out ``workflow_id`` (poll ``GET /v1/system-jobs/zip-ingestions/{workflow_id}`` for per-member outcomes) plus the artifacts ``skipped`` during classification. Whole-archive failures (not a ZIP, zip-bomb, >500 files) return 400 before any DB writes; a re-upload whose ZIP-named folder already exists returns 409. Per-member failures (unsupported type, oversized) surface in the polled workflow results, not in this response. Each member reuses the single-file ingest path, so run-enrollment and completion events fire per member there.
473
482
  * Ingest Zip Handler
474
483
  */
475
484
  ingestZip(requestParameters, initOverrides) {
@@ -10,7 +10,7 @@
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 } from '../models/index';
13
+ import type { PaginatedResponseWorkflowSummaryResponse, TemporalWorkflowStatusResponse, WorkflowActionResponse, WorkflowCancelResponse, WorkflowDetailResponse, ZipIngestionStatusResponse } from '../models/index';
14
14
  export interface CancelTemporalWorkflowRequest {
15
15
  workflowId: string;
16
16
  }
@@ -23,6 +23,9 @@ export interface GetDvWorkflowRequest {
23
23
  export interface GetTemporalWorkflowStatusRequest {
24
24
  workflowId: string;
25
25
  }
26
+ export interface GetZipIngestionStatusRequest {
27
+ workflowId: string;
28
+ }
26
29
  export interface ListDvWorkflowsRequest {
27
30
  limit?: number;
28
31
  offset?: number;
@@ -118,6 +121,27 @@ export interface SystemJobsApiInterface {
118
121
  * Get Temporal Workflow Status Handler
119
122
  */
120
123
  getTemporalWorkflowStatus(requestParameters: GetTemporalWorkflowStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TemporalWorkflowStatusResponse>;
124
+ /**
125
+ * Creates request options for getZipIngestionStatus without sending the request
126
+ * @param {string} workflowId
127
+ * @throws {RequiredError}
128
+ * @memberof SystemJobsApiInterface
129
+ */
130
+ getZipIngestionStatusRequestOpts(requestParameters: GetZipIngestionStatusRequest): Promise<runtime.RequestOpts>;
131
+ /**
132
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this returns 404.
133
+ * @summary Get Zip Ingestion Status Handler
134
+ * @param {string} workflowId
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ * @memberof SystemJobsApiInterface
138
+ */
139
+ getZipIngestionStatusRaw(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZipIngestionStatusResponse>>;
140
+ /**
141
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this returns 404.
142
+ * Get Zip Ingestion Status Handler
143
+ */
144
+ getZipIngestionStatus(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZipIngestionStatusResponse>;
121
145
  /**
122
146
  * Creates request options for listDvWorkflows without sending the request
123
147
  * @param {number} [limit] Number of items per page
@@ -202,6 +226,20 @@ export declare class SystemJobsApi extends runtime.BaseAPI implements SystemJobs
202
226
  * Get Temporal Workflow Status Handler
203
227
  */
204
228
  getTemporalWorkflowStatus(requestParameters: GetTemporalWorkflowStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TemporalWorkflowStatusResponse>;
229
+ /**
230
+ * Creates request options for getZipIngestionStatus without sending the request
231
+ */
232
+ getZipIngestionStatusRequestOpts(requestParameters: GetZipIngestionStatusRequest): Promise<runtime.RequestOpts>;
233
+ /**
234
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this returns 404.
235
+ * Get Zip Ingestion Status Handler
236
+ */
237
+ getZipIngestionStatusRaw(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ZipIngestionStatusResponse>>;
238
+ /**
239
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this returns 404.
240
+ * Get Zip Ingestion Status Handler
241
+ */
242
+ getZipIngestionStatus(requestParameters: GetZipIngestionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ZipIngestionStatusResponse>;
205
243
  /**
206
244
  * Creates request options for listDvWorkflows without sending the request
207
245
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { PaginatedResponseWorkflowSummaryResponseFromJSON, TemporalWorkflowStatusResponseFromJSON, WorkflowActionResponseFromJSON, WorkflowCancelResponseFromJSON, WorkflowDetailResponseFromJSON, } from '../models/index';
24
+ import { PaginatedResponseWorkflowSummaryResponseFromJSON, TemporalWorkflowStatusResponseFromJSON, WorkflowActionResponseFromJSON, WorkflowCancelResponseFromJSON, WorkflowDetailResponseFromJSON, ZipIngestionStatusResponseFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -218,6 +218,54 @@ export class SystemJobsApi extends runtime.BaseAPI {
218
218
  return yield response.value();
219
219
  });
220
220
  }
221
+ /**
222
+ * Creates request options for getZipIngestionStatus without sending the request
223
+ */
224
+ getZipIngestionStatusRequestOpts(requestParameters) {
225
+ return __awaiter(this, void 0, void 0, function* () {
226
+ if (requestParameters['workflowId'] == null) {
227
+ throw new runtime.RequiredError('workflowId', 'Required parameter "workflowId" was null or undefined when calling getZipIngestionStatus().');
228
+ }
229
+ const queryParameters = {};
230
+ const headerParameters = {};
231
+ if (this.configuration && this.configuration.accessToken) {
232
+ const token = this.configuration.accessToken;
233
+ const tokenString = yield token("bearerAuth", []);
234
+ if (tokenString) {
235
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
236
+ }
237
+ }
238
+ let urlPath = `/v1/system-jobs/zip-ingestions/{workflow_id}`;
239
+ urlPath = urlPath.replace(`{${"workflow_id"}}`, encodeURIComponent(String(requestParameters['workflowId'])));
240
+ return {
241
+ path: urlPath,
242
+ method: 'GET',
243
+ headers: headerParameters,
244
+ query: queryParameters,
245
+ };
246
+ });
247
+ }
248
+ /**
249
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this returns 404.
250
+ * Get Zip Ingestion Status Handler
251
+ */
252
+ getZipIngestionStatusRaw(requestParameters, initOverrides) {
253
+ return __awaiter(this, void 0, void 0, function* () {
254
+ const requestOptions = yield this.getZipIngestionStatusRequestOpts(requestParameters);
255
+ const response = yield this.request(requestOptions, initOverrides);
256
+ return new runtime.JSONApiResponse(response, (jsonValue) => ZipIngestionStatusResponseFromJSON(jsonValue));
257
+ });
258
+ }
259
+ /**
260
+ * Get a ZIP fan-out\'s live status + per-member outcomes. Tenant-scoped via the TenantId search attribute. The per-member results come from the workflow\'s ``results`` query (served from retained history), so once Temporal retention expires this returns 404.
261
+ * Get Zip Ingestion Status Handler
262
+ */
263
+ getZipIngestionStatus(requestParameters, initOverrides) {
264
+ return __awaiter(this, void 0, void 0, function* () {
265
+ const response = yield this.getZipIngestionStatusRaw(requestParameters, initOverrides);
266
+ return yield response.value();
267
+ });
268
+ }
221
269
  /**
222
270
  * Creates request options for listDvWorkflows without sending the request
223
271
  */
@@ -151,6 +151,12 @@ export interface DocumentVersionMetadata {
151
151
  * @memberof DocumentVersionMetadata
152
152
  */
153
153
  fileMd5?: string;
154
+ /**
155
+ * Opt-in create key. A repeat ingest with the same key at the same (parent, name) replays this document instead of colliding — makes a ZIP fan-out member retry idempotent.
156
+ * @type {string}
157
+ * @memberof DocumentVersionMetadata
158
+ */
159
+ idempotencyKey?: string | null;
154
160
  }
155
161
  export declare const DocumentVersionMetadataPropertyValidationAttributesMap: {
156
162
  [property: string]: {
@@ -49,6 +49,7 @@ export function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator)
49
49
  'quotaPageCount': json['quota_page_count'] == null ? undefined : json['quota_page_count'],
50
50
  'quotaIdempotencyKey': json['quota_idempotency_key'] == null ? undefined : json['quota_idempotency_key'],
51
51
  'fileMd5': json['file_md5'] == null ? undefined : json['file_md5'],
52
+ 'idempotencyKey': json['idempotency_key'] == null ? undefined : json['idempotency_key'],
52
53
  };
53
54
  }
54
55
  export function DocumentVersionMetadataToJSON(json) {
@@ -79,5 +80,6 @@ export function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator =
79
80
  'quota_page_count': value['quotaPageCount'],
80
81
  'quota_idempotency_key': value['quotaIdempotencyKey'],
81
82
  'file_md5': value['fileMd5'],
83
+ 'idempotency_key': value['idempotencyKey'],
82
84
  };
83
85
  }