@knowledge-stack/ksapi 1.45.0 → 1.46.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 (31) hide show
  1. package/README.md +2 -2
  2. package/dist/esm/models/ChunkMetadataInput.d.ts +62 -0
  3. package/dist/esm/models/ChunkMetadataInput.js +18 -0
  4. package/dist/esm/models/ChunkMetadataOutput.d.ts +62 -0
  5. package/dist/esm/models/ChunkMetadataOutput.js +18 -0
  6. package/dist/esm/models/DocumentType.d.ts +1 -0
  7. package/dist/esm/models/DocumentType.js +1 -0
  8. package/dist/esm/models/DocumentVersionMetadata.d.ts +28 -5
  9. package/dist/esm/models/DocumentVersionMetadata.js +28 -3
  10. package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +28 -0
  11. package/dist/esm/models/DocumentVersionMetadataUpdate.js +8 -0
  12. package/dist/models/ChunkMetadataInput.d.ts +62 -0
  13. package/dist/models/ChunkMetadataInput.js +18 -0
  14. package/dist/models/ChunkMetadataOutput.d.ts +62 -0
  15. package/dist/models/ChunkMetadataOutput.js +18 -0
  16. package/dist/models/DocumentType.d.ts +1 -0
  17. package/dist/models/DocumentType.js +1 -0
  18. package/dist/models/DocumentVersionMetadata.d.ts +28 -5
  19. package/dist/models/DocumentVersionMetadata.js +29 -4
  20. package/dist/models/DocumentVersionMetadataUpdate.d.ts +28 -0
  21. package/dist/models/DocumentVersionMetadataUpdate.js +8 -0
  22. package/docs/ChunkMetadataInput.md +18 -0
  23. package/docs/ChunkMetadataOutput.md +18 -0
  24. package/docs/DocumentVersionMetadata.md +8 -0
  25. package/docs/DocumentVersionMetadataUpdate.md +8 -0
  26. package/package.json +1 -1
  27. package/src/models/ChunkMetadataInput.ts +72 -0
  28. package/src/models/ChunkMetadataOutput.ts +72 -0
  29. package/src/models/DocumentType.ts +1 -0
  30. package/src/models/DocumentVersionMetadata.ts +32 -6
  31. package/src/models/DocumentVersionMetadataUpdate.ts +32 -0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.45.0
1
+ # @knowledge-stack/ksapi@1.46.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -287,7 +287,7 @@ and is automatically generated by the
287
287
  [OpenAPI Generator](https://openapi-generator.tech) project:
288
288
 
289
289
  - API version: `0.1.0`
290
- - Package version: `1.45.0`
290
+ - Package version: `1.46.0`
291
291
  - Generator version: `7.20.0`
292
292
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
293
293
 
@@ -47,6 +47,68 @@ export interface ChunkMetadataInput {
47
47
  * @memberof ChunkMetadataInput
48
48
  */
49
49
  extractedTextS3Uri?: string | null;
50
+ /**
51
+ * Worksheet name this chunk was extracted from (XLSX only)
52
+ * @type {string}
53
+ * @memberof ChunkMetadataInput
54
+ */
55
+ sheetName?: string | null;
56
+ /**
57
+ * XLSXParser block type (e.g. table, calculation_block, chart_anchor)
58
+ * @type {string}
59
+ * @memberof ChunkMetadataInput
60
+ */
61
+ blockType?: string | null;
62
+ /**
63
+ * Cell range URI reference in the source workbook (XLSX only)
64
+ * @type {string}
65
+ * @memberof ChunkMetadataInput
66
+ */
67
+ sourceUri?: string | null;
68
+ /**
69
+ * Rendered HTML for non-table XLSX chunks (tables use render_html as content)
70
+ * @type {string}
71
+ * @memberof ChunkMetadataInput
72
+ */
73
+ enrichedHtml?: string | null;
74
+ /**
75
+ * Cell address range, e.g. 'A1:D10' (XLSX only)
76
+ * @type {string}
77
+ * @memberof ChunkMetadataInput
78
+ */
79
+ cellRange?: string | null;
80
+ /**
81
+ * Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)
82
+ * @type {{ [key: string]: any; }}
83
+ * @memberof ChunkMetadataInput
84
+ */
85
+ dependencySummary?: {
86
+ [key: string]: any;
87
+ } | null;
88
+ /**
89
+ * Formula cells in this chunk as [{address, formula, value}] (XLSX only)
90
+ * @type {Array<{ [key: string]: string; }>}
91
+ * @memberof ChunkMetadataInput
92
+ */
93
+ formulas?: Array<{
94
+ [key: string]: string;
95
+ }> | null;
96
+ /**
97
+ * Notable output/header cells for quick identification (XLSX only)
98
+ * @type {Array<{ [key: string]: any; }>}
99
+ * @memberof ChunkMetadataInput
100
+ */
101
+ keyCells?: Array<{
102
+ [key: string]: any;
103
+ }> | null;
104
+ /**
105
+ * Named ranges overlapping this chunk (XLSX only)
106
+ * @type {Array<{ [key: string]: any; }>}
107
+ * @memberof ChunkMetadataInput
108
+ */
109
+ namedRanges?: Array<{
110
+ [key: string]: any;
111
+ }> | null;
50
112
  }
51
113
  /**
52
114
  * Check if a given object implements the ChunkMetadataInput interface.
@@ -32,6 +32,15 @@ export function ChunkMetadataInputFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'summary': json['summary'] == null ? undefined : json['summary'],
33
33
  'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
34
34
  'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
35
+ 'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
36
+ 'blockType': json['block_type'] == null ? undefined : json['block_type'],
37
+ 'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
38
+ 'enrichedHtml': json['enriched_html'] == null ? undefined : json['enriched_html'],
39
+ 'cellRange': json['cell_range'] == null ? undefined : json['cell_range'],
40
+ 'dependencySummary': json['dependency_summary'] == null ? undefined : json['dependency_summary'],
41
+ 'formulas': json['formulas'] == null ? undefined : json['formulas'],
42
+ 'keyCells': json['key_cells'] == null ? undefined : json['key_cells'],
43
+ 'namedRanges': json['named_ranges'] == null ? undefined : json['named_ranges'],
35
44
  };
36
45
  }
37
46
  export function ChunkMetadataInputToJSON(json) {
@@ -47,6 +56,15 @@ export function ChunkMetadataInputToJSONTyped(value, ignoreDiscriminator = false
47
56
  'summary': value['summary'],
48
57
  'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
49
58
  'extracted_text_s3_uri': value['extractedTextS3Uri'],
59
+ 'sheet_name': value['sheetName'],
60
+ 'block_type': value['blockType'],
61
+ 'source_uri': value['sourceUri'],
62
+ 'enriched_html': value['enrichedHtml'],
63
+ 'cell_range': value['cellRange'],
64
+ 'dependency_summary': value['dependencySummary'],
65
+ 'formulas': value['formulas'],
66
+ 'key_cells': value['keyCells'],
67
+ 'named_ranges': value['namedRanges'],
50
68
  };
51
69
  }
52
70
  export const ChunkMetadataInputPropertyValidationAttributesMap = {};
@@ -47,6 +47,68 @@ export interface ChunkMetadataOutput {
47
47
  * @memberof ChunkMetadataOutput
48
48
  */
49
49
  extractedTextS3Uri?: string | null;
50
+ /**
51
+ * Worksheet name this chunk was extracted from (XLSX only)
52
+ * @type {string}
53
+ * @memberof ChunkMetadataOutput
54
+ */
55
+ sheetName?: string | null;
56
+ /**
57
+ * XLSXParser block type (e.g. table, calculation_block, chart_anchor)
58
+ * @type {string}
59
+ * @memberof ChunkMetadataOutput
60
+ */
61
+ blockType?: string | null;
62
+ /**
63
+ * Cell range URI reference in the source workbook (XLSX only)
64
+ * @type {string}
65
+ * @memberof ChunkMetadataOutput
66
+ */
67
+ sourceUri?: string | null;
68
+ /**
69
+ * Rendered HTML for non-table XLSX chunks (tables use render_html as content)
70
+ * @type {string}
71
+ * @memberof ChunkMetadataOutput
72
+ */
73
+ enrichedHtml?: string | null;
74
+ /**
75
+ * Cell address range, e.g. 'A1:D10' (XLSX only)
76
+ * @type {string}
77
+ * @memberof ChunkMetadataOutput
78
+ */
79
+ cellRange?: string | null;
80
+ /**
81
+ * Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)
82
+ * @type {{ [key: string]: any; }}
83
+ * @memberof ChunkMetadataOutput
84
+ */
85
+ dependencySummary?: {
86
+ [key: string]: any;
87
+ } | null;
88
+ /**
89
+ * Formula cells in this chunk as [{address, formula, value}] (XLSX only)
90
+ * @type {Array<{ [key: string]: string; }>}
91
+ * @memberof ChunkMetadataOutput
92
+ */
93
+ formulas?: Array<{
94
+ [key: string]: string;
95
+ }> | null;
96
+ /**
97
+ * Notable output/header cells for quick identification (XLSX only)
98
+ * @type {Array<{ [key: string]: any; }>}
99
+ * @memberof ChunkMetadataOutput
100
+ */
101
+ keyCells?: Array<{
102
+ [key: string]: any;
103
+ }> | null;
104
+ /**
105
+ * Named ranges overlapping this chunk (XLSX only)
106
+ * @type {Array<{ [key: string]: any; }>}
107
+ * @memberof ChunkMetadataOutput
108
+ */
109
+ namedRanges?: Array<{
110
+ [key: string]: any;
111
+ }> | null;
50
112
  }
51
113
  /**
52
114
  * Check if a given object implements the ChunkMetadataOutput interface.
@@ -32,6 +32,15 @@ export function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
32
32
  'summary': json['summary'] == null ? undefined : json['summary'],
33
33
  'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
34
34
  'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
35
+ 'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
36
+ 'blockType': json['block_type'] == null ? undefined : json['block_type'],
37
+ 'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
38
+ 'enrichedHtml': json['enriched_html'] == null ? undefined : json['enriched_html'],
39
+ 'cellRange': json['cell_range'] == null ? undefined : json['cell_range'],
40
+ 'dependencySummary': json['dependency_summary'] == null ? undefined : json['dependency_summary'],
41
+ 'formulas': json['formulas'] == null ? undefined : json['formulas'],
42
+ 'keyCells': json['key_cells'] == null ? undefined : json['key_cells'],
43
+ 'namedRanges': json['named_ranges'] == null ? undefined : json['named_ranges'],
35
44
  };
36
45
  }
37
46
  export function ChunkMetadataOutputToJSON(json) {
@@ -47,6 +56,15 @@ export function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = fals
47
56
  'summary': value['summary'],
48
57
  'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
49
58
  'extracted_text_s3_uri': value['extractedTextS3Uri'],
59
+ 'sheet_name': value['sheetName'],
60
+ 'block_type': value['blockType'],
61
+ 'source_uri': value['sourceUri'],
62
+ 'enriched_html': value['enrichedHtml'],
63
+ 'cell_range': value['cellRange'],
64
+ 'dependency_summary': value['dependencySummary'],
65
+ 'formulas': value['formulas'],
66
+ 'key_cells': value['keyCells'],
67
+ 'named_ranges': value['namedRanges'],
50
68
  };
51
69
  }
52
70
  export const ChunkMetadataOutputPropertyValidationAttributesMap = {};
@@ -18,6 +18,7 @@ export declare const DocumentType: {
18
18
  readonly Docx: "DOCX";
19
19
  readonly Md: "MD";
20
20
  readonly Image: "IMAGE";
21
+ readonly Xlsx: "XLSX";
21
22
  readonly Unknown: "UNKNOWN";
22
23
  };
23
24
  export type DocumentType = typeof DocumentType[keyof typeof DocumentType];
@@ -20,6 +20,7 @@ export const DocumentType = {
20
20
  Docx: 'DOCX',
21
21
  Md: 'MD',
22
22
  Image: 'IMAGE',
23
+ Xlsx: 'XLSX',
23
24
  Unknown: 'UNKNOWN'
24
25
  };
25
26
  export function instanceOfDocumentType(value) {
@@ -21,7 +21,6 @@ import type { PipelineState } from './PipelineState';
21
21
  * @interface DocumentVersionMetadata
22
22
  */
23
23
  export interface DocumentVersionMetadata {
24
- [key: string]: any | any;
25
24
  /**
26
25
  * S3 URL to the source document (set by API on upload)
27
26
  * @type {string}
@@ -70,6 +69,34 @@ export interface DocumentVersionMetadata {
70
69
  * @memberof DocumentVersionMetadata
71
70
  */
72
71
  totalChunks?: number | null;
72
+ /**
73
+ * Total formula cells in the workbook (XLSX only)
74
+ * @type {number}
75
+ * @memberof DocumentVersionMetadata
76
+ */
77
+ totalFormulas?: number | null;
78
+ /**
79
+ * S3 URI to the full XLSX parse result JSON containing dependency graph, named ranges, and KPI catalog
80
+ * @type {string}
81
+ * @memberof DocumentVersionMetadata
82
+ */
83
+ xlsxParseResultS3?: string | null;
84
+ /**
85
+ * Named ranges defined in the workbook (name, ref_string, scope)
86
+ * @type {Array<{ [key: string]: any; }>}
87
+ * @memberof DocumentVersionMetadata
88
+ */
89
+ xlsxNamedRanges?: Array<{
90
+ [key: string]: any;
91
+ }> | null;
92
+ /**
93
+ * KPI (Key Performance Indicator) cells detected by the XLSX parser. Each entry contains a label, computed value, cell address, and driver cell references. Applicable to financial models and operational spreadsheets; not populated for template spreadsheets that lack computed KPI cells.
94
+ * @type {Array<{ [key: string]: any; }>}
95
+ * @memberof DocumentVersionMetadata
96
+ */
97
+ xlsxKpiCatalog?: Array<{
98
+ [key: string]: any;
99
+ }> | null;
73
100
  }
74
101
  /**
75
102
  * Check if a given object implements the DocumentVersionMetadata interface.
@@ -94,7 +121,3 @@ export declare const DocumentVersionMetadataPropertyValidationAttributesMap: {
94
121
  uniqueItems?: boolean;
95
122
  };
96
123
  };
97
- export declare const DocumentVersionMetadataAdditionalPropertiesValidationAttributes: {
98
- maxProperties?: number;
99
- minProperties?: number;
100
- };
@@ -25,7 +25,20 @@ export function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator)
25
25
  if (json == null) {
26
26
  return json;
27
27
  }
28
- return Object.assign(Object.assign({}, json), { 'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'], 'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'], 'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'], 'hash': json['hash'] == null ? undefined : json['hash'], 'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']), 'totalPages': json['total_pages'] == null ? undefined : json['total_pages'], 'totalSections': json['total_sections'] == null ? undefined : json['total_sections'], 'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'] });
28
+ return {
29
+ 'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
30
+ 'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
31
+ 'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
32
+ 'hash': json['hash'] == null ? undefined : json['hash'],
33
+ 'pipelineState': json['pipeline_state'] == null ? undefined : PipelineStateFromJSON(json['pipeline_state']),
34
+ 'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
35
+ 'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
36
+ 'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'],
37
+ 'totalFormulas': json['total_formulas'] == null ? undefined : json['total_formulas'],
38
+ 'xlsxParseResultS3': json['xlsx_parse_result_s3'] == null ? undefined : json['xlsx_parse_result_s3'],
39
+ 'xlsxNamedRanges': json['xlsx_named_ranges'] == null ? undefined : json['xlsx_named_ranges'],
40
+ 'xlsxKpiCatalog': json['xlsx_kpi_catalog'] == null ? undefined : json['xlsx_kpi_catalog'],
41
+ };
29
42
  }
30
43
  export function DocumentVersionMetadataToJSON(json) {
31
44
  return DocumentVersionMetadataToJSONTyped(json, false);
@@ -34,7 +47,19 @@ export function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator =
34
47
  if (value == null) {
35
48
  return value;
36
49
  }
37
- return Object.assign(Object.assign({}, value), { 'source_s3': value['sourceS3'], 'cleaned_source_s3': value['cleanedSourceS3'], 'docling_json_s3': value['doclingJsonS3'], 'hash': value['hash'], 'pipeline_state': PipelineStateToJSON(value['pipelineState']), 'total_pages': value['totalPages'], 'total_sections': value['totalSections'], 'total_chunks': value['totalChunks'] });
50
+ return {
51
+ 'source_s3': value['sourceS3'],
52
+ 'cleaned_source_s3': value['cleanedSourceS3'],
53
+ 'docling_json_s3': value['doclingJsonS3'],
54
+ 'hash': value['hash'],
55
+ 'pipeline_state': PipelineStateToJSON(value['pipelineState']),
56
+ 'total_pages': value['totalPages'],
57
+ 'total_sections': value['totalSections'],
58
+ 'total_chunks': value['totalChunks'],
59
+ 'total_formulas': value['totalFormulas'],
60
+ 'xlsx_parse_result_s3': value['xlsxParseResultS3'],
61
+ 'xlsx_named_ranges': value['xlsxNamedRanges'],
62
+ 'xlsx_kpi_catalog': value['xlsxKpiCatalog'],
63
+ };
38
64
  }
39
65
  export const DocumentVersionMetadataPropertyValidationAttributesMap = {};
40
- export const DocumentVersionMetadataAdditionalPropertiesValidationAttributes = {};
@@ -67,6 +67,34 @@ export interface DocumentVersionMetadataUpdate {
67
67
  * @memberof DocumentVersionMetadataUpdate
68
68
  */
69
69
  totalChunks?: number | null;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof DocumentVersionMetadataUpdate
74
+ */
75
+ totalFormulas?: number | null;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof DocumentVersionMetadataUpdate
80
+ */
81
+ xlsxParseResultS3?: string | null;
82
+ /**
83
+ *
84
+ * @type {Array<{ [key: string]: any; }>}
85
+ * @memberof DocumentVersionMetadataUpdate
86
+ */
87
+ xlsxNamedRanges?: Array<{
88
+ [key: string]: any;
89
+ }> | null;
90
+ /**
91
+ *
92
+ * @type {Array<{ [key: string]: any; }>}
93
+ * @memberof DocumentVersionMetadataUpdate
94
+ */
95
+ xlsxKpiCatalog?: Array<{
96
+ [key: string]: any;
97
+ }> | null;
70
98
  }
71
99
  /**
72
100
  * Check if a given object implements the DocumentVersionMetadataUpdate interface.
@@ -34,6 +34,10 @@ export function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscrimin
34
34
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
35
35
  'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
36
36
  'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'],
37
+ 'totalFormulas': json['total_formulas'] == null ? undefined : json['total_formulas'],
38
+ 'xlsxParseResultS3': json['xlsx_parse_result_s3'] == null ? undefined : json['xlsx_parse_result_s3'],
39
+ 'xlsxNamedRanges': json['xlsx_named_ranges'] == null ? undefined : json['xlsx_named_ranges'],
40
+ 'xlsxKpiCatalog': json['xlsx_kpi_catalog'] == null ? undefined : json['xlsx_kpi_catalog'],
37
41
  };
38
42
  }
39
43
  export function DocumentVersionMetadataUpdateToJSON(json) {
@@ -52,6 +56,10 @@ export function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscrimina
52
56
  'total_pages': value['totalPages'],
53
57
  'total_sections': value['totalSections'],
54
58
  'total_chunks': value['totalChunks'],
59
+ 'total_formulas': value['totalFormulas'],
60
+ 'xlsx_parse_result_s3': value['xlsxParseResultS3'],
61
+ 'xlsx_named_ranges': value['xlsxNamedRanges'],
62
+ 'xlsx_kpi_catalog': value['xlsxKpiCatalog'],
55
63
  };
56
64
  }
57
65
  export const DocumentVersionMetadataUpdatePropertyValidationAttributesMap = {};
@@ -47,6 +47,68 @@ export interface ChunkMetadataInput {
47
47
  * @memberof ChunkMetadataInput
48
48
  */
49
49
  extractedTextS3Uri?: string | null;
50
+ /**
51
+ * Worksheet name this chunk was extracted from (XLSX only)
52
+ * @type {string}
53
+ * @memberof ChunkMetadataInput
54
+ */
55
+ sheetName?: string | null;
56
+ /**
57
+ * XLSXParser block type (e.g. table, calculation_block, chart_anchor)
58
+ * @type {string}
59
+ * @memberof ChunkMetadataInput
60
+ */
61
+ blockType?: string | null;
62
+ /**
63
+ * Cell range URI reference in the source workbook (XLSX only)
64
+ * @type {string}
65
+ * @memberof ChunkMetadataInput
66
+ */
67
+ sourceUri?: string | null;
68
+ /**
69
+ * Rendered HTML for non-table XLSX chunks (tables use render_html as content)
70
+ * @type {string}
71
+ * @memberof ChunkMetadataInput
72
+ */
73
+ enrichedHtml?: string | null;
74
+ /**
75
+ * Cell address range, e.g. 'A1:D10' (XLSX only)
76
+ * @type {string}
77
+ * @memberof ChunkMetadataInput
78
+ */
79
+ cellRange?: string | null;
80
+ /**
81
+ * Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)
82
+ * @type {{ [key: string]: any; }}
83
+ * @memberof ChunkMetadataInput
84
+ */
85
+ dependencySummary?: {
86
+ [key: string]: any;
87
+ } | null;
88
+ /**
89
+ * Formula cells in this chunk as [{address, formula, value}] (XLSX only)
90
+ * @type {Array<{ [key: string]: string; }>}
91
+ * @memberof ChunkMetadataInput
92
+ */
93
+ formulas?: Array<{
94
+ [key: string]: string;
95
+ }> | null;
96
+ /**
97
+ * Notable output/header cells for quick identification (XLSX only)
98
+ * @type {Array<{ [key: string]: any; }>}
99
+ * @memberof ChunkMetadataInput
100
+ */
101
+ keyCells?: Array<{
102
+ [key: string]: any;
103
+ }> | null;
104
+ /**
105
+ * Named ranges overlapping this chunk (XLSX only)
106
+ * @type {Array<{ [key: string]: any; }>}
107
+ * @memberof ChunkMetadataInput
108
+ */
109
+ namedRanges?: Array<{
110
+ [key: string]: any;
111
+ }> | null;
50
112
  }
51
113
  /**
52
114
  * Check if a given object implements the ChunkMetadataInput interface.
@@ -40,6 +40,15 @@ function ChunkMetadataInputFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'summary': json['summary'] == null ? undefined : json['summary'],
41
41
  'ingestionMode': json['ingestion_mode'] == null ? undefined : (0, IngestionMode_1.IngestionModeFromJSON)(json['ingestion_mode']),
42
42
  'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
43
+ 'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
44
+ 'blockType': json['block_type'] == null ? undefined : json['block_type'],
45
+ 'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
46
+ 'enrichedHtml': json['enriched_html'] == null ? undefined : json['enriched_html'],
47
+ 'cellRange': json['cell_range'] == null ? undefined : json['cell_range'],
48
+ 'dependencySummary': json['dependency_summary'] == null ? undefined : json['dependency_summary'],
49
+ 'formulas': json['formulas'] == null ? undefined : json['formulas'],
50
+ 'keyCells': json['key_cells'] == null ? undefined : json['key_cells'],
51
+ 'namedRanges': json['named_ranges'] == null ? undefined : json['named_ranges'],
43
52
  };
44
53
  }
45
54
  function ChunkMetadataInputToJSON(json) {
@@ -55,6 +64,15 @@ function ChunkMetadataInputToJSONTyped(value, ignoreDiscriminator = false) {
55
64
  'summary': value['summary'],
56
65
  'ingestion_mode': (0, IngestionMode_1.IngestionModeToJSON)(value['ingestionMode']),
57
66
  'extracted_text_s3_uri': value['extractedTextS3Uri'],
67
+ 'sheet_name': value['sheetName'],
68
+ 'block_type': value['blockType'],
69
+ 'source_uri': value['sourceUri'],
70
+ 'enriched_html': value['enrichedHtml'],
71
+ 'cell_range': value['cellRange'],
72
+ 'dependency_summary': value['dependencySummary'],
73
+ 'formulas': value['formulas'],
74
+ 'key_cells': value['keyCells'],
75
+ 'named_ranges': value['namedRanges'],
58
76
  };
59
77
  }
60
78
  exports.ChunkMetadataInputPropertyValidationAttributesMap = {};
@@ -47,6 +47,68 @@ export interface ChunkMetadataOutput {
47
47
  * @memberof ChunkMetadataOutput
48
48
  */
49
49
  extractedTextS3Uri?: string | null;
50
+ /**
51
+ * Worksheet name this chunk was extracted from (XLSX only)
52
+ * @type {string}
53
+ * @memberof ChunkMetadataOutput
54
+ */
55
+ sheetName?: string | null;
56
+ /**
57
+ * XLSXParser block type (e.g. table, calculation_block, chart_anchor)
58
+ * @type {string}
59
+ * @memberof ChunkMetadataOutput
60
+ */
61
+ blockType?: string | null;
62
+ /**
63
+ * Cell range URI reference in the source workbook (XLSX only)
64
+ * @type {string}
65
+ * @memberof ChunkMetadataOutput
66
+ */
67
+ sourceUri?: string | null;
68
+ /**
69
+ * Rendered HTML for non-table XLSX chunks (tables use render_html as content)
70
+ * @type {string}
71
+ * @memberof ChunkMetadataOutput
72
+ */
73
+ enrichedHtml?: string | null;
74
+ /**
75
+ * Cell address range, e.g. 'A1:D10' (XLSX only)
76
+ * @type {string}
77
+ * @memberof ChunkMetadataOutput
78
+ */
79
+ cellRange?: string | null;
80
+ /**
81
+ * Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)
82
+ * @type {{ [key: string]: any; }}
83
+ * @memberof ChunkMetadataOutput
84
+ */
85
+ dependencySummary?: {
86
+ [key: string]: any;
87
+ } | null;
88
+ /**
89
+ * Formula cells in this chunk as [{address, formula, value}] (XLSX only)
90
+ * @type {Array<{ [key: string]: string; }>}
91
+ * @memberof ChunkMetadataOutput
92
+ */
93
+ formulas?: Array<{
94
+ [key: string]: string;
95
+ }> | null;
96
+ /**
97
+ * Notable output/header cells for quick identification (XLSX only)
98
+ * @type {Array<{ [key: string]: any; }>}
99
+ * @memberof ChunkMetadataOutput
100
+ */
101
+ keyCells?: Array<{
102
+ [key: string]: any;
103
+ }> | null;
104
+ /**
105
+ * Named ranges overlapping this chunk (XLSX only)
106
+ * @type {Array<{ [key: string]: any; }>}
107
+ * @memberof ChunkMetadataOutput
108
+ */
109
+ namedRanges?: Array<{
110
+ [key: string]: any;
111
+ }> | null;
50
112
  }
51
113
  /**
52
114
  * Check if a given object implements the ChunkMetadataOutput interface.
@@ -40,6 +40,15 @@ function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'summary': json['summary'] == null ? undefined : json['summary'],
41
41
  'ingestionMode': json['ingestion_mode'] == null ? undefined : (0, IngestionMode_1.IngestionModeFromJSON)(json['ingestion_mode']),
42
42
  'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
43
+ 'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
44
+ 'blockType': json['block_type'] == null ? undefined : json['block_type'],
45
+ 'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
46
+ 'enrichedHtml': json['enriched_html'] == null ? undefined : json['enriched_html'],
47
+ 'cellRange': json['cell_range'] == null ? undefined : json['cell_range'],
48
+ 'dependencySummary': json['dependency_summary'] == null ? undefined : json['dependency_summary'],
49
+ 'formulas': json['formulas'] == null ? undefined : json['formulas'],
50
+ 'keyCells': json['key_cells'] == null ? undefined : json['key_cells'],
51
+ 'namedRanges': json['named_ranges'] == null ? undefined : json['named_ranges'],
43
52
  };
44
53
  }
45
54
  function ChunkMetadataOutputToJSON(json) {
@@ -55,6 +64,15 @@ function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = false) {
55
64
  'summary': value['summary'],
56
65
  'ingestion_mode': (0, IngestionMode_1.IngestionModeToJSON)(value['ingestionMode']),
57
66
  'extracted_text_s3_uri': value['extractedTextS3Uri'],
67
+ 'sheet_name': value['sheetName'],
68
+ 'block_type': value['blockType'],
69
+ 'source_uri': value['sourceUri'],
70
+ 'enriched_html': value['enrichedHtml'],
71
+ 'cell_range': value['cellRange'],
72
+ 'dependency_summary': value['dependencySummary'],
73
+ 'formulas': value['formulas'],
74
+ 'key_cells': value['keyCells'],
75
+ 'named_ranges': value['namedRanges'],
58
76
  };
59
77
  }
60
78
  exports.ChunkMetadataOutputPropertyValidationAttributesMap = {};
@@ -18,6 +18,7 @@ export declare const DocumentType: {
18
18
  readonly Docx: "DOCX";
19
19
  readonly Md: "MD";
20
20
  readonly Image: "IMAGE";
21
+ readonly Xlsx: "XLSX";
21
22
  readonly Unknown: "UNKNOWN";
22
23
  };
23
24
  export type DocumentType = typeof DocumentType[keyof typeof DocumentType];
@@ -28,6 +28,7 @@ exports.DocumentType = {
28
28
  Docx: 'DOCX',
29
29
  Md: 'MD',
30
30
  Image: 'IMAGE',
31
+ Xlsx: 'XLSX',
31
32
  Unknown: 'UNKNOWN'
32
33
  };
33
34
  function instanceOfDocumentType(value) {
@@ -21,7 +21,6 @@ import type { PipelineState } from './PipelineState';
21
21
  * @interface DocumentVersionMetadata
22
22
  */
23
23
  export interface DocumentVersionMetadata {
24
- [key: string]: any | any;
25
24
  /**
26
25
  * S3 URL to the source document (set by API on upload)
27
26
  * @type {string}
@@ -70,6 +69,34 @@ export interface DocumentVersionMetadata {
70
69
  * @memberof DocumentVersionMetadata
71
70
  */
72
71
  totalChunks?: number | null;
72
+ /**
73
+ * Total formula cells in the workbook (XLSX only)
74
+ * @type {number}
75
+ * @memberof DocumentVersionMetadata
76
+ */
77
+ totalFormulas?: number | null;
78
+ /**
79
+ * S3 URI to the full XLSX parse result JSON containing dependency graph, named ranges, and KPI catalog
80
+ * @type {string}
81
+ * @memberof DocumentVersionMetadata
82
+ */
83
+ xlsxParseResultS3?: string | null;
84
+ /**
85
+ * Named ranges defined in the workbook (name, ref_string, scope)
86
+ * @type {Array<{ [key: string]: any; }>}
87
+ * @memberof DocumentVersionMetadata
88
+ */
89
+ xlsxNamedRanges?: Array<{
90
+ [key: string]: any;
91
+ }> | null;
92
+ /**
93
+ * KPI (Key Performance Indicator) cells detected by the XLSX parser. Each entry contains a label, computed value, cell address, and driver cell references. Applicable to financial models and operational spreadsheets; not populated for template spreadsheets that lack computed KPI cells.
94
+ * @type {Array<{ [key: string]: any; }>}
95
+ * @memberof DocumentVersionMetadata
96
+ */
97
+ xlsxKpiCatalog?: Array<{
98
+ [key: string]: any;
99
+ }> | null;
73
100
  }
74
101
  /**
75
102
  * Check if a given object implements the DocumentVersionMetadata interface.
@@ -94,7 +121,3 @@ export declare const DocumentVersionMetadataPropertyValidationAttributesMap: {
94
121
  uniqueItems?: boolean;
95
122
  };
96
123
  };
97
- export declare const DocumentVersionMetadataAdditionalPropertiesValidationAttributes: {
98
- maxProperties?: number;
99
- minProperties?: number;
100
- };
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.DocumentVersionMetadataAdditionalPropertiesValidationAttributes = exports.DocumentVersionMetadataPropertyValidationAttributesMap = void 0;
16
+ exports.DocumentVersionMetadataPropertyValidationAttributesMap = void 0;
17
17
  exports.instanceOfDocumentVersionMetadata = instanceOfDocumentVersionMetadata;
18
18
  exports.DocumentVersionMetadataFromJSON = DocumentVersionMetadataFromJSON;
19
19
  exports.DocumentVersionMetadataFromJSONTyped = DocumentVersionMetadataFromJSONTyped;
@@ -33,7 +33,20 @@ function DocumentVersionMetadataFromJSONTyped(json, ignoreDiscriminator) {
33
33
  if (json == null) {
34
34
  return json;
35
35
  }
36
- return Object.assign(Object.assign({}, json), { 'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'], 'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'], 'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'], 'hash': json['hash'] == null ? undefined : json['hash'], 'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']), 'totalPages': json['total_pages'] == null ? undefined : json['total_pages'], 'totalSections': json['total_sections'] == null ? undefined : json['total_sections'], 'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'] });
36
+ return {
37
+ 'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
38
+ 'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
39
+ 'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
40
+ 'hash': json['hash'] == null ? undefined : json['hash'],
41
+ 'pipelineState': json['pipeline_state'] == null ? undefined : (0, PipelineState_1.PipelineStateFromJSON)(json['pipeline_state']),
42
+ 'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
43
+ 'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
44
+ 'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'],
45
+ 'totalFormulas': json['total_formulas'] == null ? undefined : json['total_formulas'],
46
+ 'xlsxParseResultS3': json['xlsx_parse_result_s3'] == null ? undefined : json['xlsx_parse_result_s3'],
47
+ 'xlsxNamedRanges': json['xlsx_named_ranges'] == null ? undefined : json['xlsx_named_ranges'],
48
+ 'xlsxKpiCatalog': json['xlsx_kpi_catalog'] == null ? undefined : json['xlsx_kpi_catalog'],
49
+ };
37
50
  }
38
51
  function DocumentVersionMetadataToJSON(json) {
39
52
  return DocumentVersionMetadataToJSONTyped(json, false);
@@ -42,7 +55,19 @@ function DocumentVersionMetadataToJSONTyped(value, ignoreDiscriminator = false)
42
55
  if (value == null) {
43
56
  return value;
44
57
  }
45
- return Object.assign(Object.assign({}, value), { 'source_s3': value['sourceS3'], 'cleaned_source_s3': value['cleanedSourceS3'], 'docling_json_s3': value['doclingJsonS3'], 'hash': value['hash'], 'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']), 'total_pages': value['totalPages'], 'total_sections': value['totalSections'], 'total_chunks': value['totalChunks'] });
58
+ return {
59
+ 'source_s3': value['sourceS3'],
60
+ 'cleaned_source_s3': value['cleanedSourceS3'],
61
+ 'docling_json_s3': value['doclingJsonS3'],
62
+ 'hash': value['hash'],
63
+ 'pipeline_state': (0, PipelineState_1.PipelineStateToJSON)(value['pipelineState']),
64
+ 'total_pages': value['totalPages'],
65
+ 'total_sections': value['totalSections'],
66
+ 'total_chunks': value['totalChunks'],
67
+ 'total_formulas': value['totalFormulas'],
68
+ 'xlsx_parse_result_s3': value['xlsxParseResultS3'],
69
+ 'xlsx_named_ranges': value['xlsxNamedRanges'],
70
+ 'xlsx_kpi_catalog': value['xlsxKpiCatalog'],
71
+ };
46
72
  }
47
73
  exports.DocumentVersionMetadataPropertyValidationAttributesMap = {};
48
- exports.DocumentVersionMetadataAdditionalPropertiesValidationAttributes = {};
@@ -67,6 +67,34 @@ export interface DocumentVersionMetadataUpdate {
67
67
  * @memberof DocumentVersionMetadataUpdate
68
68
  */
69
69
  totalChunks?: number | null;
70
+ /**
71
+ *
72
+ * @type {number}
73
+ * @memberof DocumentVersionMetadataUpdate
74
+ */
75
+ totalFormulas?: number | null;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof DocumentVersionMetadataUpdate
80
+ */
81
+ xlsxParseResultS3?: string | null;
82
+ /**
83
+ *
84
+ * @type {Array<{ [key: string]: any; }>}
85
+ * @memberof DocumentVersionMetadataUpdate
86
+ */
87
+ xlsxNamedRanges?: Array<{
88
+ [key: string]: any;
89
+ }> | null;
90
+ /**
91
+ *
92
+ * @type {Array<{ [key: string]: any; }>}
93
+ * @memberof DocumentVersionMetadataUpdate
94
+ */
95
+ xlsxKpiCatalog?: Array<{
96
+ [key: string]: any;
97
+ }> | null;
70
98
  }
71
99
  /**
72
100
  * Check if a given object implements the DocumentVersionMetadataUpdate interface.
@@ -42,6 +42,10 @@ function DocumentVersionMetadataUpdateFromJSONTyped(json, ignoreDiscriminator) {
42
42
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
43
43
  'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
44
44
  'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'],
45
+ 'totalFormulas': json['total_formulas'] == null ? undefined : json['total_formulas'],
46
+ 'xlsxParseResultS3': json['xlsx_parse_result_s3'] == null ? undefined : json['xlsx_parse_result_s3'],
47
+ 'xlsxNamedRanges': json['xlsx_named_ranges'] == null ? undefined : json['xlsx_named_ranges'],
48
+ 'xlsxKpiCatalog': json['xlsx_kpi_catalog'] == null ? undefined : json['xlsx_kpi_catalog'],
45
49
  };
46
50
  }
47
51
  function DocumentVersionMetadataUpdateToJSON(json) {
@@ -60,6 +64,10 @@ function DocumentVersionMetadataUpdateToJSONTyped(value, ignoreDiscriminator = f
60
64
  'total_pages': value['totalPages'],
61
65
  'total_sections': value['totalSections'],
62
66
  'total_chunks': value['totalChunks'],
67
+ 'total_formulas': value['totalFormulas'],
68
+ 'xlsx_parse_result_s3': value['xlsxParseResultS3'],
69
+ 'xlsx_named_ranges': value['xlsxNamedRanges'],
70
+ 'xlsx_kpi_catalog': value['xlsxKpiCatalog'],
63
71
  };
64
72
  }
65
73
  exports.DocumentVersionMetadataUpdatePropertyValidationAttributesMap = {};
@@ -12,6 +12,15 @@ Name | Type
12
12
  `summary` | string
13
13
  `ingestionMode` | [IngestionMode](IngestionMode.md)
14
14
  `extractedTextS3Uri` | string
15
+ `sheetName` | string
16
+ `blockType` | string
17
+ `sourceUri` | string
18
+ `enrichedHtml` | string
19
+ `cellRange` | string
20
+ `dependencySummary` | { [key: string]: any; }
21
+ `formulas` | Array&lt;{ [key: string]: string; }&gt;
22
+ `keyCells` | Array&lt;{ [key: string]: any; }&gt;
23
+ `namedRanges` | Array&lt;{ [key: string]: any; }&gt;
15
24
 
16
25
  ## Example
17
26
 
@@ -25,6 +34,15 @@ const example = {
25
34
  "summary": null,
26
35
  "ingestionMode": null,
27
36
  "extractedTextS3Uri": null,
37
+ "sheetName": null,
38
+ "blockType": null,
39
+ "sourceUri": null,
40
+ "enrichedHtml": null,
41
+ "cellRange": null,
42
+ "dependencySummary": null,
43
+ "formulas": null,
44
+ "keyCells": null,
45
+ "namedRanges": null,
28
46
  } satisfies ChunkMetadataInput
29
47
 
30
48
  console.log(example)
@@ -12,6 +12,15 @@ Name | Type
12
12
  `summary` | string
13
13
  `ingestionMode` | [IngestionMode](IngestionMode.md)
14
14
  `extractedTextS3Uri` | string
15
+ `sheetName` | string
16
+ `blockType` | string
17
+ `sourceUri` | string
18
+ `enrichedHtml` | string
19
+ `cellRange` | string
20
+ `dependencySummary` | { [key: string]: any; }
21
+ `formulas` | Array&lt;{ [key: string]: string; }&gt;
22
+ `keyCells` | Array&lt;{ [key: string]: any; }&gt;
23
+ `namedRanges` | Array&lt;{ [key: string]: any; }&gt;
15
24
 
16
25
  ## Example
17
26
 
@@ -25,6 +34,15 @@ const example = {
25
34
  "summary": null,
26
35
  "ingestionMode": null,
27
36
  "extractedTextS3Uri": null,
37
+ "sheetName": null,
38
+ "blockType": null,
39
+ "sourceUri": null,
40
+ "enrichedHtml": null,
41
+ "cellRange": null,
42
+ "dependencySummary": null,
43
+ "formulas": null,
44
+ "keyCells": null,
45
+ "namedRanges": null,
28
46
  } satisfies ChunkMetadataOutput
29
47
 
30
48
  console.log(example)
@@ -15,6 +15,10 @@ Name | Type
15
15
  `totalPages` | number
16
16
  `totalSections` | number
17
17
  `totalChunks` | number
18
+ `totalFormulas` | number
19
+ `xlsxParseResultS3` | string
20
+ `xlsxNamedRanges` | Array&lt;{ [key: string]: any; }&gt;
21
+ `xlsxKpiCatalog` | Array&lt;{ [key: string]: any; }&gt;
18
22
 
19
23
  ## Example
20
24
 
@@ -31,6 +35,10 @@ const example = {
31
35
  "totalPages": null,
32
36
  "totalSections": null,
33
37
  "totalChunks": null,
38
+ "totalFormulas": null,
39
+ "xlsxParseResultS3": null,
40
+ "xlsxNamedRanges": null,
41
+ "xlsxKpiCatalog": null,
34
42
  } satisfies DocumentVersionMetadata
35
43
 
36
44
  console.log(example)
@@ -15,6 +15,10 @@ Name | Type
15
15
  `totalPages` | number
16
16
  `totalSections` | number
17
17
  `totalChunks` | number
18
+ `totalFormulas` | number
19
+ `xlsxParseResultS3` | string
20
+ `xlsxNamedRanges` | Array&lt;{ [key: string]: any; }&gt;
21
+ `xlsxKpiCatalog` | Array&lt;{ [key: string]: any; }&gt;
18
22
 
19
23
  ## Example
20
24
 
@@ -31,6 +35,10 @@ const example = {
31
35
  "totalPages": null,
32
36
  "totalSections": null,
33
37
  "totalChunks": null,
38
+ "totalFormulas": null,
39
+ "xlsxParseResultS3": null,
40
+ "xlsxNamedRanges": null,
41
+ "xlsxKpiCatalog": null,
34
42
  } satisfies DocumentVersionMetadataUpdate
35
43
 
36
44
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.45.0",
3
+ "version": "1.46.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -64,6 +64,60 @@ export interface ChunkMetadataInput {
64
64
  * @memberof ChunkMetadataInput
65
65
  */
66
66
  extractedTextS3Uri?: string | null;
67
+ /**
68
+ * Worksheet name this chunk was extracted from (XLSX only)
69
+ * @type {string}
70
+ * @memberof ChunkMetadataInput
71
+ */
72
+ sheetName?: string | null;
73
+ /**
74
+ * XLSXParser block type (e.g. table, calculation_block, chart_anchor)
75
+ * @type {string}
76
+ * @memberof ChunkMetadataInput
77
+ */
78
+ blockType?: string | null;
79
+ /**
80
+ * Cell range URI reference in the source workbook (XLSX only)
81
+ * @type {string}
82
+ * @memberof ChunkMetadataInput
83
+ */
84
+ sourceUri?: string | null;
85
+ /**
86
+ * Rendered HTML for non-table XLSX chunks (tables use render_html as content)
87
+ * @type {string}
88
+ * @memberof ChunkMetadataInput
89
+ */
90
+ enrichedHtml?: string | null;
91
+ /**
92
+ * Cell address range, e.g. 'A1:D10' (XLSX only)
93
+ * @type {string}
94
+ * @memberof ChunkMetadataInput
95
+ */
96
+ cellRange?: string | null;
97
+ /**
98
+ * Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)
99
+ * @type {{ [key: string]: any; }}
100
+ * @memberof ChunkMetadataInput
101
+ */
102
+ dependencySummary?: { [key: string]: any; } | null;
103
+ /**
104
+ * Formula cells in this chunk as [{address, formula, value}] (XLSX only)
105
+ * @type {Array<{ [key: string]: string; }>}
106
+ * @memberof ChunkMetadataInput
107
+ */
108
+ formulas?: Array<{ [key: string]: string; }> | null;
109
+ /**
110
+ * Notable output/header cells for quick identification (XLSX only)
111
+ * @type {Array<{ [key: string]: any; }>}
112
+ * @memberof ChunkMetadataInput
113
+ */
114
+ keyCells?: Array<{ [key: string]: any; }> | null;
115
+ /**
116
+ * Named ranges overlapping this chunk (XLSX only)
117
+ * @type {Array<{ [key: string]: any; }>}
118
+ * @memberof ChunkMetadataInput
119
+ */
120
+ namedRanges?: Array<{ [key: string]: any; }> | null;
67
121
  }
68
122
 
69
123
 
@@ -90,6 +144,15 @@ export function ChunkMetadataInputFromJSONTyped(json: any, ignoreDiscriminator:
90
144
  'summary': json['summary'] == null ? undefined : json['summary'],
91
145
  'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
92
146
  'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
147
+ 'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
148
+ 'blockType': json['block_type'] == null ? undefined : json['block_type'],
149
+ 'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
150
+ 'enrichedHtml': json['enriched_html'] == null ? undefined : json['enriched_html'],
151
+ 'cellRange': json['cell_range'] == null ? undefined : json['cell_range'],
152
+ 'dependencySummary': json['dependency_summary'] == null ? undefined : json['dependency_summary'],
153
+ 'formulas': json['formulas'] == null ? undefined : json['formulas'],
154
+ 'keyCells': json['key_cells'] == null ? undefined : json['key_cells'],
155
+ 'namedRanges': json['named_ranges'] == null ? undefined : json['named_ranges'],
93
156
  };
94
157
  }
95
158
 
@@ -109,6 +172,15 @@ export function ChunkMetadataInputToJSONTyped(value?: ChunkMetadataInput | null,
109
172
  'summary': value['summary'],
110
173
  'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
111
174
  'extracted_text_s3_uri': value['extractedTextS3Uri'],
175
+ 'sheet_name': value['sheetName'],
176
+ 'block_type': value['blockType'],
177
+ 'source_uri': value['sourceUri'],
178
+ 'enriched_html': value['enrichedHtml'],
179
+ 'cell_range': value['cellRange'],
180
+ 'dependency_summary': value['dependencySummary'],
181
+ 'formulas': value['formulas'],
182
+ 'key_cells': value['keyCells'],
183
+ 'named_ranges': value['namedRanges'],
112
184
  };
113
185
  }
114
186
 
@@ -64,6 +64,60 @@ export interface ChunkMetadataOutput {
64
64
  * @memberof ChunkMetadataOutput
65
65
  */
66
66
  extractedTextS3Uri?: string | null;
67
+ /**
68
+ * Worksheet name this chunk was extracted from (XLSX only)
69
+ * @type {string}
70
+ * @memberof ChunkMetadataOutput
71
+ */
72
+ sheetName?: string | null;
73
+ /**
74
+ * XLSXParser block type (e.g. table, calculation_block, chart_anchor)
75
+ * @type {string}
76
+ * @memberof ChunkMetadataOutput
77
+ */
78
+ blockType?: string | null;
79
+ /**
80
+ * Cell range URI reference in the source workbook (XLSX only)
81
+ * @type {string}
82
+ * @memberof ChunkMetadataOutput
83
+ */
84
+ sourceUri?: string | null;
85
+ /**
86
+ * Rendered HTML for non-table XLSX chunks (tables use render_html as content)
87
+ * @type {string}
88
+ * @memberof ChunkMetadataOutput
89
+ */
90
+ enrichedHtml?: string | null;
91
+ /**
92
+ * Cell address range, e.g. 'A1:D10' (XLSX only)
93
+ * @type {string}
94
+ * @memberof ChunkMetadataOutput
95
+ */
96
+ cellRange?: string | null;
97
+ /**
98
+ * Upstream/downstream/cross-sheet cell references for audit reasoning (XLSX only)
99
+ * @type {{ [key: string]: any; }}
100
+ * @memberof ChunkMetadataOutput
101
+ */
102
+ dependencySummary?: { [key: string]: any; } | null;
103
+ /**
104
+ * Formula cells in this chunk as [{address, formula, value}] (XLSX only)
105
+ * @type {Array<{ [key: string]: string; }>}
106
+ * @memberof ChunkMetadataOutput
107
+ */
108
+ formulas?: Array<{ [key: string]: string; }> | null;
109
+ /**
110
+ * Notable output/header cells for quick identification (XLSX only)
111
+ * @type {Array<{ [key: string]: any; }>}
112
+ * @memberof ChunkMetadataOutput
113
+ */
114
+ keyCells?: Array<{ [key: string]: any; }> | null;
115
+ /**
116
+ * Named ranges overlapping this chunk (XLSX only)
117
+ * @type {Array<{ [key: string]: any; }>}
118
+ * @memberof ChunkMetadataOutput
119
+ */
120
+ namedRanges?: Array<{ [key: string]: any; }> | null;
67
121
  }
68
122
 
69
123
 
@@ -90,6 +144,15 @@ export function ChunkMetadataOutputFromJSONTyped(json: any, ignoreDiscriminator:
90
144
  'summary': json['summary'] == null ? undefined : json['summary'],
91
145
  'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
92
146
  'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
147
+ 'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
148
+ 'blockType': json['block_type'] == null ? undefined : json['block_type'],
149
+ 'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
150
+ 'enrichedHtml': json['enriched_html'] == null ? undefined : json['enriched_html'],
151
+ 'cellRange': json['cell_range'] == null ? undefined : json['cell_range'],
152
+ 'dependencySummary': json['dependency_summary'] == null ? undefined : json['dependency_summary'],
153
+ 'formulas': json['formulas'] == null ? undefined : json['formulas'],
154
+ 'keyCells': json['key_cells'] == null ? undefined : json['key_cells'],
155
+ 'namedRanges': json['named_ranges'] == null ? undefined : json['named_ranges'],
93
156
  };
94
157
  }
95
158
 
@@ -109,6 +172,15 @@ export function ChunkMetadataOutputToJSONTyped(value?: ChunkMetadataOutput | nul
109
172
  'summary': value['summary'],
110
173
  'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
111
174
  'extracted_text_s3_uri': value['extractedTextS3Uri'],
175
+ 'sheet_name': value['sheetName'],
176
+ 'block_type': value['blockType'],
177
+ 'source_uri': value['sourceUri'],
178
+ 'enriched_html': value['enrichedHtml'],
179
+ 'cell_range': value['cellRange'],
180
+ 'dependency_summary': value['dependencySummary'],
181
+ 'formulas': value['formulas'],
182
+ 'key_cells': value['keyCells'],
183
+ 'named_ranges': value['namedRanges'],
112
184
  };
113
185
  }
114
186
 
@@ -22,6 +22,7 @@ export const DocumentType = {
22
22
  Docx: 'DOCX',
23
23
  Md: 'MD',
24
24
  Image: 'IMAGE',
25
+ Xlsx: 'XLSX',
25
26
  Unknown: 'UNKNOWN'
26
27
  } as const;
27
28
  export type DocumentType = typeof DocumentType[keyof typeof DocumentType];
@@ -32,7 +32,6 @@ import {
32
32
  * @interface DocumentVersionMetadata
33
33
  */
34
34
  export interface DocumentVersionMetadata {
35
- [key: string]: any | any;
36
35
  /**
37
36
  * S3 URL to the source document (set by API on upload)
38
37
  * @type {string}
@@ -81,6 +80,30 @@ export interface DocumentVersionMetadata {
81
80
  * @memberof DocumentVersionMetadata
82
81
  */
83
82
  totalChunks?: number | null;
83
+ /**
84
+ * Total formula cells in the workbook (XLSX only)
85
+ * @type {number}
86
+ * @memberof DocumentVersionMetadata
87
+ */
88
+ totalFormulas?: number | null;
89
+ /**
90
+ * S3 URI to the full XLSX parse result JSON containing dependency graph, named ranges, and KPI catalog
91
+ * @type {string}
92
+ * @memberof DocumentVersionMetadata
93
+ */
94
+ xlsxParseResultS3?: string | null;
95
+ /**
96
+ * Named ranges defined in the workbook (name, ref_string, scope)
97
+ * @type {Array<{ [key: string]: any; }>}
98
+ * @memberof DocumentVersionMetadata
99
+ */
100
+ xlsxNamedRanges?: Array<{ [key: string]: any; }> | null;
101
+ /**
102
+ * KPI (Key Performance Indicator) cells detected by the XLSX parser. Each entry contains a label, computed value, cell address, and driver cell references. Applicable to financial models and operational spreadsheets; not populated for template spreadsheets that lack computed KPI cells.
103
+ * @type {Array<{ [key: string]: any; }>}
104
+ * @memberof DocumentVersionMetadata
105
+ */
106
+ xlsxKpiCatalog?: Array<{ [key: string]: any; }> | null;
84
107
  }
85
108
 
86
109
  /**
@@ -100,7 +123,6 @@ export function DocumentVersionMetadataFromJSONTyped(json: any, ignoreDiscrimina
100
123
  }
101
124
  return {
102
125
 
103
- ...json,
104
126
  'sourceS3': json['source_s3'] == null ? undefined : json['source_s3'],
105
127
  'cleanedSourceS3': json['cleaned_source_s3'] == null ? undefined : json['cleaned_source_s3'],
106
128
  'doclingJsonS3': json['docling_json_s3'] == null ? undefined : json['docling_json_s3'],
@@ -109,6 +131,10 @@ export function DocumentVersionMetadataFromJSONTyped(json: any, ignoreDiscrimina
109
131
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
110
132
  'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
111
133
  'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'],
134
+ 'totalFormulas': json['total_formulas'] == null ? undefined : json['total_formulas'],
135
+ 'xlsxParseResultS3': json['xlsx_parse_result_s3'] == null ? undefined : json['xlsx_parse_result_s3'],
136
+ 'xlsxNamedRanges': json['xlsx_named_ranges'] == null ? undefined : json['xlsx_named_ranges'],
137
+ 'xlsxKpiCatalog': json['xlsx_kpi_catalog'] == null ? undefined : json['xlsx_kpi_catalog'],
112
138
  };
113
139
  }
114
140
 
@@ -123,7 +149,6 @@ export function DocumentVersionMetadataToJSONTyped(value?: DocumentVersionMetada
123
149
 
124
150
  return {
125
151
 
126
- ...value,
127
152
  'source_s3': value['sourceS3'],
128
153
  'cleaned_source_s3': value['cleanedSourceS3'],
129
154
  'docling_json_s3': value['doclingJsonS3'],
@@ -132,6 +157,10 @@ export function DocumentVersionMetadataToJSONTyped(value?: DocumentVersionMetada
132
157
  'total_pages': value['totalPages'],
133
158
  'total_sections': value['totalSections'],
134
159
  'total_chunks': value['totalChunks'],
160
+ 'total_formulas': value['totalFormulas'],
161
+ 'xlsx_parse_result_s3': value['xlsxParseResultS3'],
162
+ 'xlsx_named_ranges': value['xlsxNamedRanges'],
163
+ 'xlsx_kpi_catalog': value['xlsxKpiCatalog'],
135
164
  };
136
165
  }
137
166
 
@@ -152,6 +181,3 @@ export const DocumentVersionMetadataPropertyValidationAttributesMap: {
152
181
  } = {
153
182
  }
154
183
 
155
- export const DocumentVersionMetadataAdditionalPropertiesValidationAttributes: { maxProperties?: number, minProperties?: number } = {
156
- }
157
-
@@ -78,6 +78,30 @@ export interface DocumentVersionMetadataUpdate {
78
78
  * @memberof DocumentVersionMetadataUpdate
79
79
  */
80
80
  totalChunks?: number | null;
81
+ /**
82
+ *
83
+ * @type {number}
84
+ * @memberof DocumentVersionMetadataUpdate
85
+ */
86
+ totalFormulas?: number | null;
87
+ /**
88
+ *
89
+ * @type {string}
90
+ * @memberof DocumentVersionMetadataUpdate
91
+ */
92
+ xlsxParseResultS3?: string | null;
93
+ /**
94
+ *
95
+ * @type {Array<{ [key: string]: any; }>}
96
+ * @memberof DocumentVersionMetadataUpdate
97
+ */
98
+ xlsxNamedRanges?: Array<{ [key: string]: any; }> | null;
99
+ /**
100
+ *
101
+ * @type {Array<{ [key: string]: any; }>}
102
+ * @memberof DocumentVersionMetadataUpdate
103
+ */
104
+ xlsxKpiCatalog?: Array<{ [key: string]: any; }> | null;
81
105
  }
82
106
 
83
107
  /**
@@ -105,6 +129,10 @@ export function DocumentVersionMetadataUpdateFromJSONTyped(json: any, ignoreDisc
105
129
  'totalPages': json['total_pages'] == null ? undefined : json['total_pages'],
106
130
  'totalSections': json['total_sections'] == null ? undefined : json['total_sections'],
107
131
  'totalChunks': json['total_chunks'] == null ? undefined : json['total_chunks'],
132
+ 'totalFormulas': json['total_formulas'] == null ? undefined : json['total_formulas'],
133
+ 'xlsxParseResultS3': json['xlsx_parse_result_s3'] == null ? undefined : json['xlsx_parse_result_s3'],
134
+ 'xlsxNamedRanges': json['xlsx_named_ranges'] == null ? undefined : json['xlsx_named_ranges'],
135
+ 'xlsxKpiCatalog': json['xlsx_kpi_catalog'] == null ? undefined : json['xlsx_kpi_catalog'],
108
136
  };
109
137
  }
110
138
 
@@ -127,6 +155,10 @@ export function DocumentVersionMetadataUpdateToJSONTyped(value?: DocumentVersion
127
155
  'total_pages': value['totalPages'],
128
156
  'total_sections': value['totalSections'],
129
157
  'total_chunks': value['totalChunks'],
158
+ 'total_formulas': value['totalFormulas'],
159
+ 'xlsx_parse_result_s3': value['xlsxParseResultS3'],
160
+ 'xlsx_named_ranges': value['xlsxNamedRanges'],
161
+ 'xlsx_kpi_catalog': value['xlsxKpiCatalog'],
130
162
  };
131
163
  }
132
164