@knowledge-stack/ksapi 1.25.1 → 1.26.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.25.1
1
+ # @knowledge-stack/ksapi@1.26.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -257,7 +257,7 @@ and is automatically generated by the
257
257
  [OpenAPI Generator](https://openapi-generator.tech) project:
258
258
 
259
259
  - API version: `0.1.0`
260
- - Package version: `1.25.1`
260
+ - Package version: `1.26.0`
261
261
  - Generator version: `7.20.0`
262
262
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
263
263
 
@@ -28,6 +28,12 @@ export interface ChunkMetadataInput {
28
28
  * @memberof ChunkMetadataInput
29
29
  */
30
30
  s3Url?: string | null;
31
+ /**
32
+ * LLM-generated summary of the chunk content. Used for TABLE chunks to enrich embedding text.
33
+ * @type {string}
34
+ * @memberof ChunkMetadataInput
35
+ */
36
+ summary?: string | null;
31
37
  }
32
38
  /**
33
39
  * Check if a given object implements the ChunkMetadataInput interface.
@@ -28,6 +28,7 @@ export function ChunkMetadataInputFromJSONTyped(json, ignoreDiscriminator) {
28
28
  return {
29
29
  'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReferenceFromJSON)),
30
30
  's3Url': json['s3_url'] == null ? undefined : json['s3_url'],
31
+ 'summary': json['summary'] == null ? undefined : json['summary'],
31
32
  };
32
33
  }
33
34
  export function ChunkMetadataInputToJSON(json) {
@@ -40,6 +41,7 @@ export function ChunkMetadataInputToJSONTyped(value, ignoreDiscriminator = false
40
41
  return {
41
42
  'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReferenceToJSON)),
42
43
  's3_url': value['s3Url'],
44
+ 'summary': value['summary'],
43
45
  };
44
46
  }
45
47
  export const ChunkMetadataInputPropertyValidationAttributesMap = {};
@@ -28,6 +28,12 @@ export interface ChunkMetadataOutput {
28
28
  * @memberof ChunkMetadataOutput
29
29
  */
30
30
  s3Url?: string | null;
31
+ /**
32
+ * LLM-generated summary of the chunk content. Used for TABLE chunks to enrich embedding text.
33
+ * @type {string}
34
+ * @memberof ChunkMetadataOutput
35
+ */
36
+ summary?: string | null;
31
37
  }
32
38
  /**
33
39
  * Check if a given object implements the ChunkMetadataOutput interface.
@@ -28,6 +28,7 @@ export function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
28
28
  return {
29
29
  'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReferenceFromJSON)),
30
30
  's3Url': json['s3_url'] == null ? undefined : json['s3_url'],
31
+ 'summary': json['summary'] == null ? undefined : json['summary'],
31
32
  };
32
33
  }
33
34
  export function ChunkMetadataOutputToJSON(json) {
@@ -40,6 +41,7 @@ export function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = fals
40
41
  return {
41
42
  'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReferenceToJSON)),
42
43
  's3_url': value['s3Url'],
44
+ 'summary': value['summary'],
43
45
  };
44
46
  }
45
47
  export const ChunkMetadataOutputPropertyValidationAttributesMap = {};
@@ -28,6 +28,12 @@ export interface ChunkMetadataInput {
28
28
  * @memberof ChunkMetadataInput
29
29
  */
30
30
  s3Url?: string | null;
31
+ /**
32
+ * LLM-generated summary of the chunk content. Used for TABLE chunks to enrich embedding text.
33
+ * @type {string}
34
+ * @memberof ChunkMetadataInput
35
+ */
36
+ summary?: string | null;
31
37
  }
32
38
  /**
33
39
  * Check if a given object implements the ChunkMetadataInput interface.
@@ -36,6 +36,7 @@ function ChunkMetadataInputFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return {
37
37
  'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReference_1.PolygonReferenceFromJSON)),
38
38
  's3Url': json['s3_url'] == null ? undefined : json['s3_url'],
39
+ 'summary': json['summary'] == null ? undefined : json['summary'],
39
40
  };
40
41
  }
41
42
  function ChunkMetadataInputToJSON(json) {
@@ -48,6 +49,7 @@ function ChunkMetadataInputToJSONTyped(value, ignoreDiscriminator = false) {
48
49
  return {
49
50
  'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReference_1.PolygonReferenceToJSON)),
50
51
  's3_url': value['s3Url'],
52
+ 'summary': value['summary'],
51
53
  };
52
54
  }
53
55
  exports.ChunkMetadataInputPropertyValidationAttributesMap = {};
@@ -28,6 +28,12 @@ export interface ChunkMetadataOutput {
28
28
  * @memberof ChunkMetadataOutput
29
29
  */
30
30
  s3Url?: string | null;
31
+ /**
32
+ * LLM-generated summary of the chunk content. Used for TABLE chunks to enrich embedding text.
33
+ * @type {string}
34
+ * @memberof ChunkMetadataOutput
35
+ */
36
+ summary?: string | null;
31
37
  }
32
38
  /**
33
39
  * Check if a given object implements the ChunkMetadataOutput interface.
@@ -36,6 +36,7 @@ function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return {
37
37
  'polygons': json['polygons'] == null ? undefined : (json['polygons'].map(PolygonReference_1.PolygonReferenceFromJSON)),
38
38
  's3Url': json['s3_url'] == null ? undefined : json['s3_url'],
39
+ 'summary': json['summary'] == null ? undefined : json['summary'],
39
40
  };
40
41
  }
41
42
  function ChunkMetadataOutputToJSON(json) {
@@ -48,6 +49,7 @@ function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = false) {
48
49
  return {
49
50
  'polygons': value['polygons'] == null ? undefined : (value['polygons'].map(PolygonReference_1.PolygonReferenceToJSON)),
50
51
  's3_url': value['s3Url'],
52
+ 'summary': value['summary'],
51
53
  };
52
54
  }
53
55
  exports.ChunkMetadataOutputPropertyValidationAttributesMap = {};
@@ -9,6 +9,7 @@ Name | Type
9
9
  ------------ | -------------
10
10
  `polygons` | [Array<PolygonReference>](PolygonReference.md)
11
11
  `s3Url` | string
12
+ `summary` | string
12
13
 
13
14
  ## Example
14
15
 
@@ -19,6 +20,7 @@ import type { ChunkMetadataInput } from '@knowledge-stack/ksapi'
19
20
  const example = {
20
21
  "polygons": null,
21
22
  "s3Url": null,
23
+ "summary": null,
22
24
  } satisfies ChunkMetadataInput
23
25
 
24
26
  console.log(example)
@@ -9,6 +9,7 @@ Name | Type
9
9
  ------------ | -------------
10
10
  `polygons` | [Array<PolygonReference>](PolygonReference.md)
11
11
  `s3Url` | string
12
+ `summary` | string
12
13
 
13
14
  ## Example
14
15
 
@@ -19,6 +20,7 @@ import type { ChunkMetadataOutput } from '@knowledge-stack/ksapi'
19
20
  const example = {
20
21
  "polygons": null,
21
22
  "s3Url": null,
23
+ "summary": null,
22
24
  } satisfies ChunkMetadataOutput
23
25
 
24
26
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.25.1",
3
+ "version": "1.26.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -39,6 +39,12 @@ export interface ChunkMetadataInput {
39
39
  * @memberof ChunkMetadataInput
40
40
  */
41
41
  s3Url?: string | null;
42
+ /**
43
+ * LLM-generated summary of the chunk content. Used for TABLE chunks to enrich embedding text.
44
+ * @type {string}
45
+ * @memberof ChunkMetadataInput
46
+ */
47
+ summary?: string | null;
42
48
  }
43
49
 
44
50
  /**
@@ -60,6 +66,7 @@ export function ChunkMetadataInputFromJSONTyped(json: any, ignoreDiscriminator:
60
66
 
61
67
  'polygons': json['polygons'] == null ? undefined : ((json['polygons'] as Array<any>).map(PolygonReferenceFromJSON)),
62
68
  's3Url': json['s3_url'] == null ? undefined : json['s3_url'],
69
+ 'summary': json['summary'] == null ? undefined : json['summary'],
63
70
  };
64
71
  }
65
72
 
@@ -76,6 +83,7 @@ export function ChunkMetadataInputToJSONTyped(value?: ChunkMetadataInput | null,
76
83
 
77
84
  'polygons': value['polygons'] == null ? undefined : ((value['polygons'] as Array<any>).map(PolygonReferenceToJSON)),
78
85
  's3_url': value['s3Url'],
86
+ 'summary': value['summary'],
79
87
  };
80
88
  }
81
89
 
@@ -39,6 +39,12 @@ export interface ChunkMetadataOutput {
39
39
  * @memberof ChunkMetadataOutput
40
40
  */
41
41
  s3Url?: string | null;
42
+ /**
43
+ * LLM-generated summary of the chunk content. Used for TABLE chunks to enrich embedding text.
44
+ * @type {string}
45
+ * @memberof ChunkMetadataOutput
46
+ */
47
+ summary?: string | null;
42
48
  }
43
49
 
44
50
  /**
@@ -60,6 +66,7 @@ export function ChunkMetadataOutputFromJSONTyped(json: any, ignoreDiscriminator:
60
66
 
61
67
  'polygons': json['polygons'] == null ? undefined : ((json['polygons'] as Array<any>).map(PolygonReferenceFromJSON)),
62
68
  's3Url': json['s3_url'] == null ? undefined : json['s3_url'],
69
+ 'summary': json['summary'] == null ? undefined : json['summary'],
63
70
  };
64
71
  }
65
72
 
@@ -76,6 +83,7 @@ export function ChunkMetadataOutputToJSONTyped(value?: ChunkMetadataOutput | nul
76
83
 
77
84
  'polygons': value['polygons'] == null ? undefined : ((value['polygons'] as Array<any>).map(PolygonReferenceToJSON)),
78
85
  's3_url': value['s3Url'],
86
+ 'summary': value['summary'],
79
87
  };
80
88
  }
81
89