@knowledge-stack/ksapi 2.9.2 → 2.9.4
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.
- package/README.md +2 -2
- package/dist/esm/models/ChunkMetadata.d.ts +6 -0
- package/dist/esm/models/ChunkMetadata.js +2 -0
- package/dist/models/ChunkMetadata.d.ts +6 -0
- package/dist/models/ChunkMetadata.js +2 -0
- package/docs/ChunkMetadata.md +2 -0
- package/package.json +1 -1
- package/src/models/ChunkMetadata.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@2.9.
|
|
1
|
+
# @knowledge-stack/ksapi@2.9.4
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -722,7 +722,7 @@ and is automatically generated by the
|
|
|
722
722
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
723
723
|
|
|
724
724
|
- API version: `0.1.0`
|
|
725
|
-
- Package version: `2.9.
|
|
725
|
+
- Package version: `2.9.4`
|
|
726
726
|
- Generator version: `7.21.0`
|
|
727
727
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
728
728
|
|
|
@@ -48,6 +48,12 @@ export interface ChunkMetadata {
|
|
|
48
48
|
* @memberof ChunkMetadata
|
|
49
49
|
*/
|
|
50
50
|
extractedTextS3Uri?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Caption and footnote lines MinerU extracted next to a visual, joined by newlines. IMAGE chunks only: their content is a generated description that enrichment overwrites, so the caption cannot live there — enrichment appends it to the description it writes. TABLE captions are appended to table_body directly, because a table's content is extracted text rather than generated.
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof ChunkMetadata
|
|
55
|
+
*/
|
|
56
|
+
caption?: string | null;
|
|
51
57
|
/**
|
|
52
58
|
*
|
|
53
59
|
* @type {ImageTaxonomy}
|
|
@@ -34,6 +34,7 @@ export function ChunkMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
35
35
|
'summarizeForEmbedding': json['summarize_for_embedding'] == null ? undefined : json['summarize_for_embedding'],
|
|
36
36
|
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
37
|
+
'caption': json['caption'] == null ? undefined : json['caption'],
|
|
37
38
|
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
|
|
38
39
|
'startMs': json['start_ms'] == null ? undefined : json['start_ms'],
|
|
39
40
|
'endMs': json['end_ms'] == null ? undefined : json['end_ms'],
|
|
@@ -64,6 +65,7 @@ export function ChunkMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
65
|
'summary': value['summary'],
|
|
65
66
|
'summarize_for_embedding': value['summarizeForEmbedding'],
|
|
66
67
|
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
68
|
+
'caption': value['caption'],
|
|
67
69
|
'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
|
|
68
70
|
'start_ms': value['startMs'],
|
|
69
71
|
'end_ms': value['endMs'],
|
|
@@ -48,6 +48,12 @@ export interface ChunkMetadata {
|
|
|
48
48
|
* @memberof ChunkMetadata
|
|
49
49
|
*/
|
|
50
50
|
extractedTextS3Uri?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Caption and footnote lines MinerU extracted next to a visual, joined by newlines. IMAGE chunks only: their content is a generated description that enrichment overwrites, so the caption cannot live there — enrichment appends it to the description it writes. TABLE captions are appended to table_body directly, because a table's content is extracted text rather than generated.
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof ChunkMetadata
|
|
55
|
+
*/
|
|
56
|
+
caption?: string | null;
|
|
51
57
|
/**
|
|
52
58
|
*
|
|
53
59
|
* @type {ImageTaxonomy}
|
|
@@ -42,6 +42,7 @@ function ChunkMetadataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
43
43
|
'summarizeForEmbedding': json['summarize_for_embedding'] == null ? undefined : json['summarize_for_embedding'],
|
|
44
44
|
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
45
|
+
'caption': json['caption'] == null ? undefined : json['caption'],
|
|
45
46
|
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : (0, ImageTaxonomy_1.ImageTaxonomyFromJSON)(json['secondary_taxonomy']),
|
|
46
47
|
'startMs': json['start_ms'] == null ? undefined : json['start_ms'],
|
|
47
48
|
'endMs': json['end_ms'] == null ? undefined : json['end_ms'],
|
|
@@ -72,6 +73,7 @@ function ChunkMetadataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
72
73
|
'summary': value['summary'],
|
|
73
74
|
'summarize_for_embedding': value['summarizeForEmbedding'],
|
|
74
75
|
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
76
|
+
'caption': value['caption'],
|
|
75
77
|
'secondary_taxonomy': (0, ImageTaxonomy_1.ImageTaxonomyToJSON)(value['secondaryTaxonomy']),
|
|
76
78
|
'start_ms': value['startMs'],
|
|
77
79
|
'end_ms': value['endMs'],
|
package/docs/ChunkMetadata.md
CHANGED
|
@@ -12,6 +12,7 @@ Name | Type
|
|
|
12
12
|
`summary` | string
|
|
13
13
|
`summarizeForEmbedding` | boolean
|
|
14
14
|
`extractedTextS3Uri` | string
|
|
15
|
+
`caption` | string
|
|
15
16
|
`secondaryTaxonomy` | [ImageTaxonomy](ImageTaxonomy.md)
|
|
16
17
|
`startMs` | number
|
|
17
18
|
`endMs` | number
|
|
@@ -40,6 +41,7 @@ const example = {
|
|
|
40
41
|
"summary": null,
|
|
41
42
|
"summarizeForEmbedding": null,
|
|
42
43
|
"extractedTextS3Uri": null,
|
|
44
|
+
"caption": null,
|
|
43
45
|
"secondaryTaxonomy": null,
|
|
44
46
|
"startMs": null,
|
|
45
47
|
"endMs": null,
|
package/package.json
CHANGED
|
@@ -71,6 +71,12 @@ export interface ChunkMetadata {
|
|
|
71
71
|
* @memberof ChunkMetadata
|
|
72
72
|
*/
|
|
73
73
|
extractedTextS3Uri?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Caption and footnote lines MinerU extracted next to a visual, joined by newlines. IMAGE chunks only: their content is a generated description that enrichment overwrites, so the caption cannot live there — enrichment appends it to the description it writes. TABLE captions are appended to table_body directly, because a table's content is extracted text rather than generated.
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof ChunkMetadata
|
|
78
|
+
*/
|
|
79
|
+
caption?: string | null;
|
|
74
80
|
/**
|
|
75
81
|
*
|
|
76
82
|
* @type {ImageTaxonomy}
|
|
@@ -204,6 +210,7 @@ export function ChunkMetadataFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
204
210
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
205
211
|
'summarizeForEmbedding': json['summarize_for_embedding'] == null ? undefined : json['summarize_for_embedding'],
|
|
206
212
|
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
213
|
+
'caption': json['caption'] == null ? undefined : json['caption'],
|
|
207
214
|
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
|
|
208
215
|
'startMs': json['start_ms'] == null ? undefined : json['start_ms'],
|
|
209
216
|
'endMs': json['end_ms'] == null ? undefined : json['end_ms'],
|
|
@@ -238,6 +245,7 @@ export function ChunkMetadataToJSONTyped(value?: ChunkMetadata | null, ignoreDis
|
|
|
238
245
|
'summary': value['summary'],
|
|
239
246
|
'summarize_for_embedding': value['summarizeForEmbedding'],
|
|
240
247
|
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
248
|
+
'caption': value['caption'],
|
|
241
249
|
'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
|
|
242
250
|
'start_ms': value['startMs'],
|
|
243
251
|
'end_ms': value['endMs'],
|