@knowledge-stack/ksapi 1.59.1 → 1.61.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 (61) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +5 -2
  3. package/dist/apis/DocumentsApi.d.ts +7 -1
  4. package/dist/apis/DocumentsApi.js +6 -0
  5. package/dist/apis/SectionsApi.d.ts +45 -1
  6. package/dist/apis/SectionsApi.js +44 -0
  7. package/dist/esm/apis/DocumentsApi.d.ts +7 -1
  8. package/dist/esm/apis/DocumentsApi.js +6 -0
  9. package/dist/esm/apis/SectionsApi.d.ts +45 -1
  10. package/dist/esm/apis/SectionsApi.js +45 -1
  11. package/dist/esm/models/ConversionEngine.d.ts +25 -0
  12. package/dist/esm/models/ConversionEngine.js +43 -0
  13. package/dist/esm/models/DissolveSectionResponse.d.ts +53 -0
  14. package/dist/esm/models/DissolveSectionResponse.js +48 -0
  15. package/dist/esm/models/DocumentType.d.ts +2 -1
  16. package/dist/esm/models/DocumentType.js +2 -1
  17. package/dist/esm/models/DocumentVersionMetadata.d.ts +6 -2
  18. package/dist/esm/models/DocumentVersionMetadata.js +2 -2
  19. package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +19 -1
  20. package/dist/esm/models/DocumentVersionMetadataUpdate.js +8 -2
  21. package/dist/esm/models/DocumentVersionResponse.d.ts +6 -0
  22. package/dist/esm/models/DocumentVersionResponse.js +2 -0
  23. package/dist/esm/models/PipelineState.d.ts +7 -0
  24. package/dist/esm/models/PipelineState.js +3 -0
  25. package/dist/esm/models/index.d.ts +2 -0
  26. package/dist/esm/models/index.js +2 -0
  27. package/dist/models/ConversionEngine.d.ts +25 -0
  28. package/dist/models/ConversionEngine.js +51 -0
  29. package/dist/models/DissolveSectionResponse.d.ts +53 -0
  30. package/dist/models/DissolveSectionResponse.js +56 -0
  31. package/dist/models/DocumentType.d.ts +2 -1
  32. package/dist/models/DocumentType.js +2 -1
  33. package/dist/models/DocumentVersionMetadata.d.ts +6 -2
  34. package/dist/models/DocumentVersionMetadata.js +2 -2
  35. package/dist/models/DocumentVersionMetadataUpdate.d.ts +19 -1
  36. package/dist/models/DocumentVersionMetadataUpdate.js +8 -2
  37. package/dist/models/DocumentVersionResponse.d.ts +6 -0
  38. package/dist/models/DocumentVersionResponse.js +2 -0
  39. package/dist/models/PipelineState.d.ts +7 -0
  40. package/dist/models/PipelineState.js +3 -0
  41. package/dist/models/index.d.ts +2 -0
  42. package/dist/models/index.js +2 -0
  43. package/docs/ConversionEngine.md +33 -0
  44. package/docs/DissolveSectionResponse.md +37 -0
  45. package/docs/DocumentVersionMetadata.md +3 -3
  46. package/docs/DocumentVersionMetadataUpdate.md +8 -2
  47. package/docs/DocumentVersionResponse.md +2 -0
  48. package/docs/DocumentsApi.md +8 -2
  49. package/docs/PipelineState.md +2 -0
  50. package/docs/SectionsApi.md +75 -0
  51. package/package.json +1 -1
  52. package/src/apis/DocumentsApi.ts +17 -0
  53. package/src/apis/SectionsApi.ts +88 -0
  54. package/src/models/ConversionEngine.ts +53 -0
  55. package/src/models/DissolveSectionResponse.ts +92 -0
  56. package/src/models/DocumentType.ts +2 -1
  57. package/src/models/DocumentVersionMetadata.ts +8 -4
  58. package/src/models/DocumentVersionMetadataUpdate.ts +27 -3
  59. package/src/models/DocumentVersionResponse.ts +8 -0
  60. package/src/models/PipelineState.ts +15 -0
  61. package/src/models/index.ts +2 -0
@@ -16,9 +16,10 @@
16
16
  export declare const DocumentType: {
17
17
  readonly Pdf: "PDF";
18
18
  readonly Docx: "DOCX";
19
- readonly Md: "MD";
19
+ readonly Plaintext: "PLAINTEXT";
20
20
  readonly Image: "IMAGE";
21
21
  readonly Xlsx: "XLSX";
22
+ readonly Csv: "CSV";
22
23
  readonly Pptx: "PPTX";
23
24
  readonly Unknown: "UNKNOWN";
24
25
  };
@@ -18,9 +18,10 @@
18
18
  export const DocumentType = {
19
19
  Pdf: 'PDF',
20
20
  Docx: 'DOCX',
21
- Md: 'MD',
21
+ Plaintext: 'PLAINTEXT',
22
22
  Image: 'IMAGE',
23
23
  Xlsx: 'XLSX',
24
+ Csv: 'CSV',
24
25
  Pptx: 'PPTX',
25
26
  Unknown: 'UNKNOWN'
26
27
  };
@@ -18,6 +18,10 @@ import type { InformationStatistics } from './InformationStatistics';
18
18
  * and document statistics. Convention-based paths (images, page screenshots)
19
19
  * are derived from document_id/document_version_id via s3_paths helpers,
20
20
  * using a flat S3 layout: documents/{document_id}/{document_version_id}/...
21
+ *
22
+ * Internal conversion artifact paths (standard_pipeline_json_s3, high_accuracy_*_s3) are
23
+ * excluded from API responses via ``Field(exclude=True)`` so we don't
24
+ * expose underlying technology names to external consumers.
21
25
  * @export
22
26
  * @interface DocumentVersionMetadata
23
27
  */
@@ -35,11 +39,11 @@ export interface DocumentVersionMetadata {
35
39
  */
36
40
  cleanedSourceS3?: string | null;
37
41
  /**
38
- * S3 URL to the Docling JSON conversion output
42
+ * S3 URL to the fast plaintext export of the document
39
43
  * @type {string}
40
44
  * @memberof DocumentVersionMetadata
41
45
  */
42
- doclingJsonS3?: string | null;
46
+ fastPlaintextS3?: string | null;
43
47
  /**
44
48
  * Base64-encoded SHA256 hash of the uploaded source file
45
49
  * @type {string}
@@ -29,7 +29,7 @@ export function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator)
29
29
  return {
30
30
  'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
31
31
  'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
32
- 'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
32
+ 'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
33
33
  'hash': json['hash'] == null ? undefined : json['hash'],
34
34
  'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
35
35
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
@@ -52,7 +52,7 @@ export function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator =
52
52
  return {
53
53
  'source_s3': value['sourceS3'],
54
54
  'cleaned_source_s3': value['cleanedSourceS3'],
55
- 'docling_json_s3': value['doclingJsonS3'],
55
+ 'fast_plaintext_s3': value['fastPlaintextS3'],
56
56
  'hash': value['hash'],
57
57
  'pipeline_state': PipelineStateToJSON(value['pipelineState']),
58
58
  'total_pages': value['totalPages'],
@@ -37,7 +37,25 @@ export interface DocumentVersionMetadataUpdate {
37
37
  * @type {string}
38
38
  * @memberof DocumentVersionMetadataUpdate
39
39
  */
40
- doclingJsonS3?: string | null;
40
+ standardPipelineJsonS3?: string | null;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof DocumentVersionMetadataUpdate
45
+ */
46
+ fastPlaintextS3?: string | null;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof DocumentVersionMetadataUpdate
51
+ */
52
+ highAccuracyContentListS3?: string | null;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof DocumentVersionMetadataUpdate
57
+ */
58
+ highAccuracyMiddleS3?: string | null;
41
59
  /**
42
60
  *
43
61
  * @type {string}
@@ -29,7 +29,10 @@ export function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscrimin
29
29
  return {
30
30
  'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
31
31
  'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
32
- 'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
32
+ 'standardPipelineJsonS3': json['standard_pipeline_json_s3'] == null ? undefined : json['standard_pipeline_json_s3'],
33
+ 'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
34
+ 'highAccuracyContentListS3': json['high_accuracy_content_list_s3'] == null ? undefined : json['high_accuracy_content_list_s3'],
35
+ 'highAccuracyMiddleS3': json['high_accuracy_middle_s3'] == null ? undefined : json['high_accuracy_middle_s3'],
33
36
  'hash': json['hash'] == null ? undefined : json['hash'],
34
37
  'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
35
38
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
@@ -52,7 +55,10 @@ export function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscrimina
52
55
  return {
53
56
  'source_s3': value['sourceS3'],
54
57
  'cleaned_source_s3': value['cleanedSourceS3'],
55
- 'docling_json_s3': value['doclingJsonS3'],
58
+ 'standard_pipeline_json_s3': value['standardPipelineJsonS3'],
59
+ 'fast_plaintext_s3': value['fastPlaintextS3'],
60
+ 'high_accuracy_content_list_s3': value['highAccuracyContentListS3'],
61
+ 'high_accuracy_middle_s3': value['highAccuracyMiddleS3'],
56
62
  'hash': value['hash'],
57
63
  'pipeline_state': PipelineStateToJSON(value['pipelineState']),
58
64
  'total_pages': value['totalPages'],
@@ -85,6 +85,12 @@ export interface DocumentVersionResponse {
85
85
  * @memberof DocumentVersionResponse
86
86
  */
87
87
  assetS3Url?: string | null;
88
+ /**
89
+ * Presigned URL to download the fast plaintext export (6-hour validity)
90
+ * @type {string}
91
+ * @memberof DocumentVersionResponse
92
+ */
93
+ fastPlaintextUrl?: string | null;
88
94
  /**
89
95
  *
90
96
  * @type {DocumentVersionMetadata}
@@ -57,6 +57,7 @@ export function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator)
57
57
  'createdAt': (new Date(json['created_at'])),
58
58
  'updatedAt': (new Date(json['updated_at'])),
59
59
  'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
60
+ 'fastPlaintextUrl': json['fast_plaintext_url'] == null ? undefined : json['fast_plaintext_url'],
60
61
  'systemMetadata': json['system_metadata'] == null ? undefined : DocumentVersionMetadataFromJSON(json['system_metadata']),
61
62
  };
62
63
  }
@@ -79,6 +80,7 @@ export function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator =
79
80
  'created_at': value['createdAt'].toISOString(),
80
81
  'updated_at': value['updatedAt'].toISOString(),
81
82
  'asset_s3_url': value['assetS3Url'],
83
+ 'fast_plaintext_url': value['fastPlaintextUrl'],
82
84
  'system_metadata': DocumentVersionMetadataToJSON(value['systemMetadata']),
83
85
  };
84
86
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PipelineStatus } from './PipelineStatus';
13
+ import type { ConversionEngine } from './ConversionEngine';
13
14
  import type { IngestionMode } from './IngestionMode';
14
15
  import type { ChunkType } from './ChunkType';
15
16
  /**
@@ -78,6 +79,12 @@ export interface PipelineState {
78
79
  * @memberof PipelineState
79
80
  */
80
81
  chunkType?: ChunkType;
82
+ /**
83
+ *
84
+ * @type {ConversionEngine}
85
+ * @memberof PipelineState
86
+ */
87
+ conversionEngine?: ConversionEngine;
81
88
  }
82
89
  /**
83
90
  * Check if a given object implements the PipelineState interface.
@@ -12,6 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { PipelineStatusFromJSON, PipelineStatusToJSON, } from './PipelineStatus';
15
+ import { ConversionEngineFromJSON, ConversionEngineToJSON, } from './ConversionEngine';
15
16
  import { IngestionModeFromJSON, IngestionModeToJSON, } from './IngestionMode';
16
17
  import { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
17
18
  /**
@@ -40,6 +41,7 @@ export function PipelineStateFromJSONTyped(json, ignoreDiscriminator) {
40
41
  'pageDpi': json['page_dpi'] == null ? undefined : json['page_dpi'],
41
42
  'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
42
43
  'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
44
+ 'conversionEngine': json['conversion_engine'] == null ? undefined : ConversionEngineFromJSON(json['conversion_engine']),
43
45
  };
44
46
  }
45
47
  export function PipelineStateToJSON(json) {
@@ -60,6 +62,7 @@ export function PipelineStateToJSONTyped(value, ignoreDiscriminator = false) {
60
62
  'page_dpi': value['pageDpi'],
61
63
  'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
62
64
  'chunk_type': ChunkTypeToJSON(value['chunkType']),
65
+ 'conversion_engine': ConversionEngineToJSON(value['conversionEngine']),
63
66
  };
64
67
  }
65
68
  export const PipelineStatePropertyValidationAttributesMap = {};
@@ -16,6 +16,7 @@ export * from './ChunkSearchRequest';
16
16
  export * from './ChunkType';
17
17
  export * from './Citation';
18
18
  export * from './ClearVersionContentsResponse';
19
+ export * from './ConversionEngine';
19
20
  export * from './CreateApiKeyRequest';
20
21
  export * from './CreateApiKeyResponse';
21
22
  export * from './CreateChunkLineageRequest';
@@ -29,6 +30,7 @@ export * from './CreateTagRequest';
29
30
  export * from './CreateTenantRequest';
30
31
  export * from './CreateThreadMessageRequest';
31
32
  export * from './CreateThreadRequest';
33
+ export * from './DissolveSectionResponse';
32
34
  export * from './DocumentOrigin';
33
35
  export * from './DocumentResponse';
34
36
  export * from './DocumentType';
@@ -18,6 +18,7 @@ export * from './ChunkSearchRequest';
18
18
  export * from './ChunkType';
19
19
  export * from './Citation';
20
20
  export * from './ClearVersionContentsResponse';
21
+ export * from './ConversionEngine';
21
22
  export * from './CreateApiKeyRequest';
22
23
  export * from './CreateApiKeyResponse';
23
24
  export * from './CreateChunkLineageRequest';
@@ -31,6 +32,7 @@ export * from './CreateTagRequest';
31
32
  export * from './CreateTenantRequest';
32
33
  export * from './CreateThreadMessageRequest';
33
34
  export * from './CreateThreadRequest';
35
+ export * from './DissolveSectionResponse';
34
36
  export * from './DocumentOrigin';
35
37
  export * from './DocumentResponse';
36
38
  export * from './DocumentType';
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Document conversion engine selection.
14
+ * @export
15
+ */
16
+ export declare const ConversionEngine: {
17
+ readonly Standard: "standard";
18
+ readonly HighAccuracy: "high_accuracy";
19
+ };
20
+ export type ConversionEngine = typeof ConversionEngine[keyof typeof ConversionEngine];
21
+ export declare function instanceOfConversionEngine(value: any): boolean;
22
+ export declare function ConversionEngineFromJSON(json: any): ConversionEngine;
23
+ export declare function ConversionEngineFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConversionEngine;
24
+ export declare function ConversionEngineToJSON(value?: ConversionEngine | null): any;
25
+ export declare function ConversionEngineToJSONTyped(value: any, ignoreDiscriminator: boolean): ConversionEngine;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ConversionEngine = void 0;
17
+ exports.instanceOfConversionEngine = instanceOfConversionEngine;
18
+ exports.ConversionEngineFromJSON = ConversionEngineFromJSON;
19
+ exports.ConversionEngineFromJSONTyped = ConversionEngineFromJSONTyped;
20
+ exports.ConversionEngineToJSON = ConversionEngineToJSON;
21
+ exports.ConversionEngineToJSONTyped = ConversionEngineToJSONTyped;
22
+ /**
23
+ * Document conversion engine selection.
24
+ * @export
25
+ */
26
+ exports.ConversionEngine = {
27
+ Standard: 'standard',
28
+ HighAccuracy: 'high_accuracy'
29
+ };
30
+ function instanceOfConversionEngine(value) {
31
+ for (const key in exports.ConversionEngine) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.ConversionEngine, key)) {
33
+ if (exports.ConversionEngine[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function ConversionEngineFromJSON(json) {
41
+ return ConversionEngineFromJSONTyped(json, false);
42
+ }
43
+ function ConversionEngineFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function ConversionEngineToJSON(value) {
47
+ return value;
48
+ }
49
+ function ConversionEngineToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Response from dissolving a section into a text chunk.
14
+ * @export
15
+ * @interface DissolveSectionResponse
16
+ */
17
+ export interface DissolveSectionResponse {
18
+ /**
19
+ * ID of the created text chunk
20
+ * @type {string}
21
+ * @memberof DissolveSectionResponse
22
+ */
23
+ textChunkId: string;
24
+ /**
25
+ * Number of children reparented to the parent
26
+ * @type {number}
27
+ * @memberof DissolveSectionResponse
28
+ */
29
+ reparentedChildren: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the DissolveSectionResponse interface.
33
+ */
34
+ export declare function instanceOfDissolveSectionResponse(value: object): value is DissolveSectionResponse;
35
+ export declare function DissolveSectionResponseFromJSON(json: any): DissolveSectionResponse;
36
+ export declare function DissolveSectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DissolveSectionResponse;
37
+ export declare function DissolveSectionResponseToJSON(json: any): DissolveSectionResponse;
38
+ export declare function DissolveSectionResponseToJSONTyped(value?: DissolveSectionResponse | null, ignoreDiscriminator?: boolean): any;
39
+ export declare const DissolveSectionResponsePropertyValidationAttributesMap: {
40
+ [property: string]: {
41
+ maxLength?: number;
42
+ minLength?: number;
43
+ pattern?: string;
44
+ maximum?: number;
45
+ exclusiveMaximum?: boolean;
46
+ minimum?: number;
47
+ exclusiveMinimum?: boolean;
48
+ multipleOf?: number;
49
+ maxItems?: number;
50
+ minItems?: number;
51
+ uniqueItems?: boolean;
52
+ };
53
+ };
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DissolveSectionResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfDissolveSectionResponse = instanceOfDissolveSectionResponse;
18
+ exports.DissolveSectionResponseFromJSON = DissolveSectionResponseFromJSON;
19
+ exports.DissolveSectionResponseFromJSONTyped = DissolveSectionResponseFromJSONTyped;
20
+ exports.DissolveSectionResponseToJSON = DissolveSectionResponseToJSON;
21
+ exports.DissolveSectionResponseToJSONTyped = DissolveSectionResponseToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the DissolveSectionResponse interface.
24
+ */
25
+ function instanceOfDissolveSectionResponse(value) {
26
+ if (!('textChunkId' in value) || value['textChunkId'] === undefined)
27
+ return false;
28
+ if (!('reparentedChildren' in value) || value['reparentedChildren'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function DissolveSectionResponseFromJSON(json) {
33
+ return DissolveSectionResponseFromJSONTyped(json, false);
34
+ }
35
+ function DissolveSectionResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'textChunkId': json['text_chunk_id'],
41
+ 'reparentedChildren': json['reparented_children'],
42
+ };
43
+ }
44
+ function DissolveSectionResponseToJSON(json) {
45
+ return DissolveSectionResponseToJSONTyped(json, false);
46
+ }
47
+ function DissolveSectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'text_chunk_id': value['textChunkId'],
53
+ 'reparented_children': value['reparentedChildren'],
54
+ };
55
+ }
56
+ exports.DissolveSectionResponsePropertyValidationAttributesMap = {};
@@ -16,9 +16,10 @@
16
16
  export declare const DocumentType: {
17
17
  readonly Pdf: "PDF";
18
18
  readonly Docx: "DOCX";
19
- readonly Md: "MD";
19
+ readonly Plaintext: "PLAINTEXT";
20
20
  readonly Image: "IMAGE";
21
21
  readonly Xlsx: "XLSX";
22
+ readonly Csv: "CSV";
22
23
  readonly Pptx: "PPTX";
23
24
  readonly Unknown: "UNKNOWN";
24
25
  };
@@ -26,9 +26,10 @@ exports.DocumentTypeToJSONTyped = DocumentTypeToJSONTyped;
26
26
  exports.DocumentType = {
27
27
  Pdf: 'PDF',
28
28
  Docx: 'DOCX',
29
- Md: 'MD',
29
+ Plaintext: 'PLAINTEXT',
30
30
  Image: 'IMAGE',
31
31
  Xlsx: 'XLSX',
32
+ Csv: 'CSV',
32
33
  Pptx: 'PPTX',
33
34
  Unknown: 'UNKNOWN'
34
35
  };
@@ -18,6 +18,10 @@ import type { InformationStatistics } from './InformationStatistics';
18
18
  * and document statistics. Convention-based paths (images, page screenshots)
19
19
  * are derived from document_id/document_version_id via s3_paths helpers,
20
20
  * using a flat S3 layout: documents/{document_id}/{document_version_id}/...
21
+ *
22
+ * Internal conversion artifact paths (standard_pipeline_json_s3, high_accuracy_*_s3) are
23
+ * excluded from API responses via ``Field(exclude=True)`` so we don't
24
+ * expose underlying technology names to external consumers.
21
25
  * @export
22
26
  * @interface DocumentVersionMetadata
23
27
  */
@@ -35,11 +39,11 @@ export interface DocumentVersionMetadata {
35
39
  */
36
40
  cleanedSourceS3?: string | null;
37
41
  /**
38
- * S3 URL to the Docling JSON conversion output
42
+ * S3 URL to the fast plaintext export of the document
39
43
  * @type {string}
40
44
  * @memberof DocumentVersionMetadata
41
45
  */
42
- doclingJsonS3?: string | null;
46
+ fastPlaintextS3?: string | null;
43
47
  /**
44
48
  * Base64-encoded SHA256 hash of the uploaded source file
45
49
  * @type {string}
@@ -37,7 +37,7 @@ function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator) {
37
37
  return {
38
38
  'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
39
39
  'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
40
- 'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
40
+ 'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
41
41
  'hash': json['hash'] == null ? undefined : json['hash'],
42
42
  'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']),
43
43
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
@@ -60,7 +60,7 @@ function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator = false)
60
60
  return {
61
61
  'source_s3': value['sourceS3'],
62
62
  'cleaned_source_s3': value['cleanedSourceS3'],
63
- 'docling_json_s3': value['doclingJsonS3'],
63
+ 'fast_plaintext_s3': value['fastPlaintextS3'],
64
64
  'hash': value['hash'],
65
65
  'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']),
66
66
  'total_pages': value['totalPages'],
@@ -37,7 +37,25 @@ export interface DocumentVersionMetadataUpdate {
37
37
  * @type {string}
38
38
  * @memberof DocumentVersionMetadataUpdate
39
39
  */
40
- doclingJsonS3?: string | null;
40
+ standardPipelineJsonS3?: string | null;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof DocumentVersionMetadataUpdate
45
+ */
46
+ fastPlaintextS3?: string | null;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof DocumentVersionMetadataUpdate
51
+ */
52
+ highAccuracyContentListS3?: string | null;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof DocumentVersionMetadataUpdate
57
+ */
58
+ highAccuracyMiddleS3?: string | null;
41
59
  /**
42
60
  *
43
61
  * @type {string}
@@ -37,7 +37,10 @@ function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscriminator) {
37
37
  return {
38
38
  'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
39
39
  'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
40
- 'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
40
+ 'standardPipelineJsonS3': json['standard_pipeline_json_s3'] == null ? undefined : json['standard_pipeline_json_s3'],
41
+ 'fastPlaintextS3': json['fast_plaintext_s3'] == null ? undefined : json['fast_plaintext_s3'],
42
+ 'highAccuracyContentListS3': json['high_accuracy_content_list_s3'] == null ? undefined : json['high_accuracy_content_list_s3'],
43
+ 'highAccuracyMiddleS3': json['high_accuracy_middle_s3'] == null ? undefined : json['high_accuracy_middle_s3'],
41
44
  'hash': json['hash'] == null ? undefined : json['hash'],
42
45
  'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']),
43
46
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
@@ -60,7 +63,10 @@ function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscriminator = f
60
63
  return {
61
64
  'source_s3': value['sourceS3'],
62
65
  'cleaned_source_s3': value['cleanedSourceS3'],
63
- 'docling_json_s3': value['doclingJsonS3'],
66
+ 'standard_pipeline_json_s3': value['standardPipelineJsonS3'],
67
+ 'fast_plaintext_s3': value['fastPlaintextS3'],
68
+ 'high_accuracy_content_list_s3': value['highAccuracyContentListS3'],
69
+ 'high_accuracy_middle_s3': value['highAccuracyMiddleS3'],
64
70
  'hash': value['hash'],
65
71
  'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']),
66
72
  'total_pages': value['totalPages'],
@@ -85,6 +85,12 @@ export interface DocumentVersionResponse {
85
85
  * @memberof DocumentVersionResponse
86
86
  */
87
87
  assetS3Url?: string | null;
88
+ /**
89
+ * Presigned URL to download the fast plaintext export (6-hour validity)
90
+ * @type {string}
91
+ * @memberof DocumentVersionResponse
92
+ */
93
+ fastPlaintextUrl?: string | null;
88
94
  /**
89
95
  *
90
96
  * @type {DocumentVersionMetadata}
@@ -65,6 +65,7 @@ function DocumentVersionResponseFromJSONTyped(json, ignoreDiscriminator) {
65
65
  'createdAt': (new Date(json['created_at'])),
66
66
  'updatedAt': (new Date(json['updated_at'])),
67
67
  'assetS3Url': json['asset_s3_url'] == null ? undefined : json['asset_s3_url'],
68
+ 'fastPlaintextUrl': json['fast_plaintext_url'] == null ? undefined : json['fast_plaintext_url'],
68
69
  'systemMetadata': json['system_metadata'] == null ? undefined : (0, DocumentVersionMetadata_1.DocumentVersionMetadataFromJSON)(json['system_metadata']),
69
70
  };
70
71
  }
@@ -87,6 +88,7 @@ function DocumentVersionResponseToJSONTyped(value, ignoreDiscriminator = false)
87
88
  'created_at': value['createdAt'].toISOString(),
88
89
  'updated_at': value['updatedAt'].toISOString(),
89
90
  'asset_s3_url': value['assetS3Url'],
91
+ 'fast_plaintext_url': value['fastPlaintextUrl'],
90
92
  'system_metadata': (0, DocumentVersionMetadata_1.DocumentVersionMetadataToJSON)(value['systemMetadata']),
91
93
  };
92
94
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PipelineStatus } from './PipelineStatus';
13
+ import type { ConversionEngine } from './ConversionEngine';
13
14
  import type { IngestionMode } from './IngestionMode';
14
15
  import type { ChunkType } from './ChunkType';
15
16
  /**
@@ -78,6 +79,12 @@ export interface PipelineState {
78
79
  * @memberof PipelineState
79
80
  */
80
81
  chunkType?: ChunkType;
82
+ /**
83
+ *
84
+ * @type {ConversionEngine}
85
+ * @memberof PipelineState
86
+ */
87
+ conversionEngine?: ConversionEngine;
81
88
  }
82
89
  /**
83
90
  * Check if a given object implements the PipelineState interface.
@@ -20,6 +20,7 @@ exports.PipelineStateFromJSONTyped = PipelineStateFromJSONTyped;
20
20
  exports.PipelineStateToJSON = PipelineStateToJSON;
21
21
  exports.PipelineStateToJSONTyped = PipelineStateToJSONTyped;
22
22
  const PipelineStatus_1 = require("./PipelineStatus");
23
+ const ConversionEngine_1 = require("./ConversionEngine");
23
24
  const IngestionMode_1 = require("./IngestionMode");
24
25
  const ChunkType_1 = require("./ChunkType");
25
26
  /**
@@ -48,6 +49,7 @@ function PipelineStateFromJSONTyped(json, ignoreDiscriminator) {
48
49
  'pageDpi': json['page_dpi'] == null ? undefined : json['page_dpi'],
49
50
  'ingestionMode': json['ingestion_mode'] == null ? undefined : (0, IngestionMode_1.IngestionModeFromJSON)(json['ingestion_mode']),
50
51
  'chunkType': json['chunk_type'] == null ? undefined : (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
52
+ 'conversionEngine': json['conversion_engine'] == null ? undefined : (0, ConversionEngine_1.ConversionEngineFromJSON)(json['conversion_engine']),
51
53
  };
52
54
  }
53
55
  function PipelineStateToJSON(json) {
@@ -68,6 +70,7 @@ function PipelineStateToJSONTyped(value, ignoreDiscriminator = false) {
68
70
  'page_dpi': value['pageDpi'],
69
71
  'ingestion_mode': (0, IngestionMode_1.IngestionModeToJSON)(value['ingestionMode']),
70
72
  'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
73
+ 'conversion_engine': (0, ConversionEngine_1.ConversionEngineToJSON)(value['conversionEngine']),
71
74
  };
72
75
  }
73
76
  exports.PipelineStatePropertyValidationAttributesMap = {};
@@ -16,6 +16,7 @@ export * from './ChunkSearchRequest';
16
16
  export * from './ChunkType';
17
17
  export * from './Citation';
18
18
  export * from './ClearVersionContentsResponse';
19
+ export * from './ConversionEngine';
19
20
  export * from './CreateApiKeyRequest';
20
21
  export * from './CreateApiKeyResponse';
21
22
  export * from './CreateChunkLineageRequest';
@@ -29,6 +30,7 @@ export * from './CreateTagRequest';
29
30
  export * from './CreateTenantRequest';
30
31
  export * from './CreateThreadMessageRequest';
31
32
  export * from './CreateThreadRequest';
33
+ export * from './DissolveSectionResponse';
32
34
  export * from './DocumentOrigin';
33
35
  export * from './DocumentResponse';
34
36
  export * from './DocumentType';