@knowledge-stack/ksapi 1.149.1 → 1.151.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 (52) hide show
  1. package/.openapi-generator/FILES +4 -2
  2. package/README.md +5 -3
  3. package/dist/apis/DocumentsApi.d.ts +13 -4
  4. package/dist/apis/DocumentsApi.js +11 -2
  5. package/dist/apis/MemoryApi.d.ts +5 -5
  6. package/dist/apis/MemoryApi.js +1 -1
  7. package/dist/apis/SystemJobsApi.d.ts +39 -1
  8. package/dist/apis/SystemJobsApi.js +48 -0
  9. package/dist/esm/apis/DocumentsApi.d.ts +13 -4
  10. package/dist/esm/apis/DocumentsApi.js +11 -2
  11. package/dist/esm/apis/MemoryApi.d.ts +5 -5
  12. package/dist/esm/apis/MemoryApi.js +2 -2
  13. package/dist/esm/apis/SystemJobsApi.d.ts +39 -1
  14. package/dist/esm/apis/SystemJobsApi.js +49 -1
  15. package/dist/esm/models/DocumentVersionMetadata.d.ts +6 -0
  16. package/dist/esm/models/DocumentVersionMetadata.js +2 -0
  17. package/dist/esm/models/IngestZipResponse.d.ts +10 -23
  18. package/dist/esm/models/IngestZipResponse.js +5 -17
  19. package/dist/esm/models/ZipIngestionStatusResponse.d.ts +64 -0
  20. package/dist/esm/models/{ProposedMemoryChunkResponse.js → ZipIngestionStatusResponse.js} +19 -40
  21. package/dist/esm/models/{ProposedMemoryChunkResponse.d.ts → ZipMemberStatusResponse.d.ts} +23 -37
  22. package/dist/esm/models/ZipMemberStatusResponse.js +54 -0
  23. package/dist/esm/models/index.d.ts +2 -1
  24. package/dist/esm/models/index.js +2 -1
  25. package/dist/models/DocumentVersionMetadata.d.ts +6 -0
  26. package/dist/models/DocumentVersionMetadata.js +2 -0
  27. package/dist/models/IngestZipResponse.d.ts +10 -23
  28. package/dist/models/IngestZipResponse.js +5 -17
  29. package/dist/models/ZipIngestionStatusResponse.d.ts +64 -0
  30. package/dist/models/{ProposedMemoryChunkResponse.js → ZipIngestionStatusResponse.js} +25 -46
  31. package/dist/models/{ProposedMemoryChunkResponse.d.ts → ZipMemberStatusResponse.d.ts} +23 -37
  32. package/dist/models/ZipMemberStatusResponse.js +62 -0
  33. package/dist/models/index.d.ts +2 -1
  34. package/dist/models/index.js +2 -1
  35. package/docs/DocumentVersionMetadata.md +2 -0
  36. package/docs/DocumentsApi.md +12 -3
  37. package/docs/IngestZipResponse.md +4 -10
  38. package/docs/MemoryApi.md +2 -2
  39. package/docs/SystemJobsApi.md +76 -0
  40. package/docs/ZipIngestionStatusResponse.md +39 -0
  41. package/docs/ZipMemberStatusResponse.md +45 -0
  42. package/package.json +1 -1
  43. package/src/apis/DocumentsApi.ts +25 -4
  44. package/src/apis/MemoryApi.ts +8 -8
  45. package/src/apis/SystemJobsApi.ts +86 -0
  46. package/src/models/DocumentVersionMetadata.ts +8 -0
  47. package/src/models/IngestZipResponse.ts +15 -37
  48. package/src/models/ZipIngestionStatusResponse.ts +113 -0
  49. package/src/models/ZipMemberStatusResponse.ts +123 -0
  50. package/src/models/index.ts +2 -1
  51. package/docs/ProposedMemoryChunkResponse.md +0 -48
  52. package/src/models/ProposedMemoryChunkResponse.ts +0 -163
@@ -249,7 +249,6 @@ docs/PixelRegion.md
249
249
  docs/Polygon.md
250
250
  docs/PolygonReference.md
251
251
  docs/ProposeMemoryChunkRequest.md
252
- docs/ProposedMemoryChunkResponse.md
253
252
  docs/PublicApi.md
254
253
  docs/ReasoningPart.md
255
254
  docs/ReferenceType.md
@@ -403,6 +402,8 @@ docs/XlsxCellAnchorInputOrDocxParagraphAnchorInput.md
403
402
  docs/XlsxCellAnchorOutput.md
404
403
  docs/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.md
405
404
  docs/ZipFileResult.md
405
+ docs/ZipIngestionStatusResponse.md
406
+ docs/ZipMemberStatusResponse.md
406
407
  package.json
407
408
  src/apis/AdminKbApi.ts
408
409
  src/apis/AdminWorkflowsApi.ts
@@ -669,7 +670,6 @@ src/models/PixelRegion.ts
669
670
  src/models/Polygon.ts
670
671
  src/models/PolygonReference.ts
671
672
  src/models/ProposeMemoryChunkRequest.ts
672
- src/models/ProposedMemoryChunkResponse.ts
673
673
  src/models/ReasoningPart.ts
674
674
  src/models/ReferenceType.ts
675
675
  src/models/ReorderPathPartRequest.ts
@@ -807,6 +807,8 @@ src/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.ts
807
807
  src/models/XlsxCellAnchorOutput.ts
808
808
  src/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.ts
809
809
  src/models/ZipFileResult.ts
810
+ src/models/ZipIngestionStatusResponse.ts
811
+ src/models/ZipMemberStatusResponse.ts
810
812
  src/models/index.ts
811
813
  src/runtime.ts
812
814
  tsconfig.esm.json
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.149.1
1
+ # @knowledge-stack/ksapi@1.151.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
@@ -515,7 +516,6 @@ All URIs are relative to *http://localhost:8000*
515
516
  - [Polygon](docs/Polygon.md)
516
517
  - [PolygonReference](docs/PolygonReference.md)
517
518
  - [ProposeMemoryChunkRequest](docs/ProposeMemoryChunkRequest.md)
518
- - [ProposedMemoryChunkResponse](docs/ProposedMemoryChunkResponse.md)
519
519
  - [ReasoningPart](docs/ReasoningPart.md)
520
520
  - [ReferenceType](docs/ReferenceType.md)
521
521
  - [ReorderPathPartRequest](docs/ReorderPathPartRequest.md)
@@ -653,6 +653,8 @@ All URIs are relative to *http://localhost:8000*
653
653
  - [XlsxCellAnchorOutput](docs/XlsxCellAnchorOutput.md)
654
654
  - [XlsxCellAnchorOutputOrDocxParagraphAnchorOutput](docs/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.md)
655
655
  - [ZipFileResult](docs/ZipFileResult.md)
656
+ - [ZipIngestionStatusResponse](docs/ZipIngestionStatusResponse.md)
657
+ - [ZipMemberStatusResponse](docs/ZipMemberStatusResponse.md)
656
658
 
657
659
  ### Authorization
658
660
 
@@ -678,7 +680,7 @@ and is automatically generated by the
678
680
  [OpenAPI Generator](https://openapi-generator.tech) project:
679
681
 
680
682
  - API version: `0.1.0`
681
- - Package version: `1.149.1`
683
+ - Package version: `1.151.0`
682
684
  - Generator version: `7.21.0`
683
685
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
684
686
 
@@ -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 { MemoryBodyResponse, MemoryChunkResponse, MemoryScope, PaginatedResponsePendingMemoryChunkResponse, ProposeMemoryChunkRequest, ProposedMemoryChunkResponse } from '../models/index';
13
+ import type { MemoryBodyResponse, MemoryChunkResponse, MemoryScope, PaginatedResponsePendingMemoryChunkResponse, PendingMemoryChunkResponse, ProposeMemoryChunkRequest } from '../models/index';
14
14
  export interface ApproveMemoryProposalRequest {
15
15
  chunkId: string;
16
16
  }
@@ -114,11 +114,11 @@ export interface MemoryApiInterface {
114
114
  * @throws {RequiredError}
115
115
  * @memberof MemoryApiInterface
116
116
  */
117
- proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProposedMemoryChunkResponse>>;
117
+ proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PendingMemoryChunkResponse>>;
118
118
  /**
119
119
  * Propose Memory Chunk Handler
120
120
  */
121
- proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProposedMemoryChunkResponse>;
121
+ proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PendingMemoryChunkResponse>;
122
122
  /**
123
123
  * Creates request options for rejectMemoryProposal without sending the request
124
124
  * @param {string} chunkId
@@ -187,11 +187,11 @@ export declare class MemoryApi extends runtime.BaseAPI implements MemoryApiInter
187
187
  /**
188
188
  * Propose Memory Chunk Handler
189
189
  */
190
- proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProposedMemoryChunkResponse>>;
190
+ proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PendingMemoryChunkResponse>>;
191
191
  /**
192
192
  * Propose Memory Chunk Handler
193
193
  */
194
- proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProposedMemoryChunkResponse>;
194
+ proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PendingMemoryChunkResponse>;
195
195
  /**
196
196
  * Creates request options for rejectMemoryProposal without sending the request
197
197
  */
@@ -245,7 +245,7 @@ class MemoryApi extends runtime.BaseAPI {
245
245
  return __awaiter(this, void 0, void 0, function* () {
246
246
  const requestOptions = yield this.proposeMemoryChunkRequestOpts(requestParameters);
247
247
  const response = yield this.request(requestOptions, initOverrides);
248
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProposedMemoryChunkResponseFromJSON)(jsonValue));
248
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PendingMemoryChunkResponseFromJSON)(jsonValue));
249
249
  });
250
250
  }
251
251
  /**
@@ -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 (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.
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 (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.
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 (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.
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 (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.
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 (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.
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 (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.
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 { MemoryBodyResponse, MemoryChunkResponse, MemoryScope, PaginatedResponsePendingMemoryChunkResponse, ProposeMemoryChunkRequest, ProposedMemoryChunkResponse } from '../models/index';
13
+ import type { MemoryBodyResponse, MemoryChunkResponse, MemoryScope, PaginatedResponsePendingMemoryChunkResponse, PendingMemoryChunkResponse, ProposeMemoryChunkRequest } from '../models/index';
14
14
  export interface ApproveMemoryProposalRequest {
15
15
  chunkId: string;
16
16
  }
@@ -114,11 +114,11 @@ export interface MemoryApiInterface {
114
114
  * @throws {RequiredError}
115
115
  * @memberof MemoryApiInterface
116
116
  */
117
- proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProposedMemoryChunkResponse>>;
117
+ proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PendingMemoryChunkResponse>>;
118
118
  /**
119
119
  * Propose Memory Chunk Handler
120
120
  */
121
- proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProposedMemoryChunkResponse>;
121
+ proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PendingMemoryChunkResponse>;
122
122
  /**
123
123
  * Creates request options for rejectMemoryProposal without sending the request
124
124
  * @param {string} chunkId
@@ -187,11 +187,11 @@ export declare class MemoryApi extends runtime.BaseAPI implements MemoryApiInter
187
187
  /**
188
188
  * Propose Memory Chunk Handler
189
189
  */
190
- proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProposedMemoryChunkResponse>>;
190
+ proposeMemoryChunkRaw(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PendingMemoryChunkResponse>>;
191
191
  /**
192
192
  * Propose Memory Chunk Handler
193
193
  */
194
- proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProposedMemoryChunkResponse>;
194
+ proposeMemoryChunk(requestParameters: ProposeMemoryChunkOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PendingMemoryChunkResponse>;
195
195
  /**
196
196
  * Creates request options for rejectMemoryProposal without sending the request
197
197
  */
@@ -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 { MemoryBodyResponseFromJSON, MemoryChunkResponseFromJSON, PaginatedResponsePendingMemoryChunkResponseFromJSON, ProposeMemoryChunkRequestToJSON, ProposedMemoryChunkResponseFromJSON, } from '../models/index';
24
+ import { MemoryBodyResponseFromJSON, MemoryChunkResponseFromJSON, PaginatedResponsePendingMemoryChunkResponseFromJSON, PendingMemoryChunkResponseFromJSON, ProposeMemoryChunkRequestToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -209,7 +209,7 @@ export class MemoryApi extends runtime.BaseAPI {
209
209
  return __awaiter(this, void 0, void 0, function* () {
210
210
  const requestOptions = yield this.proposeMemoryChunkRequestOpts(requestParameters);
211
211
  const response = yield this.request(requestOptions, initOverrides);
212
- return new runtime.JSONApiResponse(response, (jsonValue) => ProposedMemoryChunkResponseFromJSON(jsonValue));
212
+ return new runtime.JSONApiResponse(response, (jsonValue) => PendingMemoryChunkResponseFromJSON(jsonValue));
213
213
  });
214
214
  }
215
215
  /**