@knowledge-stack/ksapi 1.25.0 → 1.25.1

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.0
1
+ # @knowledge-stack/ksapi@1.25.1
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.0`
260
+ - Package version: `1.25.1`
261
261
  - Generator version: `7.20.0`
262
262
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
263
263
 
@@ -42,11 +42,11 @@ export interface ChunkSearchRequest {
42
42
  */
43
43
  tagIds?: Array<string> | null;
44
44
  /**
45
- *
46
- * @type {ChunkType}
45
+ * Filter by chunk types (TEXT, TABLE, IMAGE, UNKNOWN). Only chunks matching one of the listed types are returned.
46
+ * @type {Array<ChunkType>}
47
47
  * @memberof ChunkSearchRequest
48
48
  */
49
- chunkType?: ChunkType;
49
+ chunkTypes?: Array<ChunkType> | null;
50
50
  /**
51
51
  * Only chunks ingested after this timestamp
52
52
  * @type {Date}
@@ -33,7 +33,7 @@ export function ChunkSearchRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  'model': json['model'] == null ? undefined : EmbeddingModelFromJSON(json['model']),
34
34
  'parentPathIds': json['parent_path_ids'] == null ? undefined : json['parent_path_ids'],
35
35
  'tagIds': json['tag_ids'] == null ? undefined : json['tag_ids'],
36
- 'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
36
+ 'chunkTypes': json['chunk_types'] == null ? undefined : (json['chunk_types'].map(ChunkTypeFromJSON)),
37
37
  'ingestionTimeAfter': json['ingestion_time_after'] == null ? undefined : (new Date(json['ingestion_time_after'])),
38
38
  'activeVersionOnly': json['active_version_only'] == null ? undefined : json['active_version_only'],
39
39
  'topK': json['top_k'] == null ? undefined : json['top_k'],
@@ -52,7 +52,7 @@ export function ChunkSearchRequestToJSONTyped(value, ignoreDiscriminator = false
52
52
  'model': EmbeddingModelToJSON(value['model']),
53
53
  'parent_path_ids': value['parentPathIds'],
54
54
  'tag_ids': value['tagIds'],
55
- 'chunk_type': ChunkTypeToJSON(value['chunkType']),
55
+ 'chunk_types': value['chunkTypes'] == null ? undefined : (value['chunkTypes'].map(ChunkTypeToJSON)),
56
56
  'ingestion_time_after': value['ingestionTimeAfter'] == null ? value['ingestionTimeAfter'] : value['ingestionTimeAfter'].toISOString(),
57
57
  'active_version_only': value['activeVersionOnly'],
58
58
  'top_k': value['topK'],
@@ -63,6 +63,10 @@ export const ChunkSearchRequestPropertyValidationAttributesMap = {
63
63
  query: {
64
64
  minLength: 1,
65
65
  },
66
+ chunkTypes: {
67
+ minItems: 1,
68
+ uniqueItems: false,
69
+ },
66
70
  topK: {
67
71
  maximum: 50,
68
72
  exclusiveMaximum: false,
@@ -42,11 +42,11 @@ export interface ChunkSearchRequest {
42
42
  */
43
43
  tagIds?: Array<string> | null;
44
44
  /**
45
- *
46
- * @type {ChunkType}
45
+ * Filter by chunk types (TEXT, TABLE, IMAGE, UNKNOWN). Only chunks matching one of the listed types are returned.
46
+ * @type {Array<ChunkType>}
47
47
  * @memberof ChunkSearchRequest
48
48
  */
49
- chunkType?: ChunkType;
49
+ chunkTypes?: Array<ChunkType> | null;
50
50
  /**
51
51
  * Only chunks ingested after this timestamp
52
52
  * @type {Date}
@@ -41,7 +41,7 @@ function ChunkSearchRequestFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'model': json['model'] == null ? undefined : (0, EmbeddingModel_1.EmbeddingModelFromJSON)(json['model']),
42
42
  'parentPathIds': json['parent_path_ids'] == null ? undefined : json['parent_path_ids'],
43
43
  'tagIds': json['tag_ids'] == null ? undefined : json['tag_ids'],
44
- 'chunkType': json['chunk_type'] == null ? undefined : (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
44
+ 'chunkTypes': json['chunk_types'] == null ? undefined : (json['chunk_types'].map(ChunkType_1.ChunkTypeFromJSON)),
45
45
  'ingestionTimeAfter': json['ingestion_time_after'] == null ? undefined : (new Date(json['ingestion_time_after'])),
46
46
  'activeVersionOnly': json['active_version_only'] == null ? undefined : json['active_version_only'],
47
47
  'topK': json['top_k'] == null ? undefined : json['top_k'],
@@ -60,7 +60,7 @@ function ChunkSearchRequestToJSONTyped(value, ignoreDiscriminator = false) {
60
60
  'model': (0, EmbeddingModel_1.EmbeddingModelToJSON)(value['model']),
61
61
  'parent_path_ids': value['parentPathIds'],
62
62
  'tag_ids': value['tagIds'],
63
- 'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
63
+ 'chunk_types': value['chunkTypes'] == null ? undefined : (value['chunkTypes'].map(ChunkType_1.ChunkTypeToJSON)),
64
64
  'ingestion_time_after': value['ingestionTimeAfter'] == null ? value['ingestionTimeAfter'] : value['ingestionTimeAfter'].toISOString(),
65
65
  'active_version_only': value['activeVersionOnly'],
66
66
  'top_k': value['topK'],
@@ -71,6 +71,10 @@ exports.ChunkSearchRequestPropertyValidationAttributesMap = {
71
71
  query: {
72
72
  minLength: 1,
73
73
  },
74
+ chunkTypes: {
75
+ minItems: 1,
76
+ uniqueItems: false,
77
+ },
74
78
  topK: {
75
79
  maximum: 50,
76
80
  exclusiveMaximum: false,
@@ -11,7 +11,7 @@ Name | Type
11
11
  `model` | [EmbeddingModel](EmbeddingModel.md)
12
12
  `parentPathIds` | Array&lt;string&gt;
13
13
  `tagIds` | Array&lt;string&gt;
14
- `chunkType` | [ChunkType](ChunkType.md)
14
+ `chunkTypes` | [Array&lt;ChunkType&gt;](ChunkType.md)
15
15
  `ingestionTimeAfter` | Date
16
16
  `activeVersionOnly` | boolean
17
17
  `topK` | number
@@ -28,7 +28,7 @@ const example = {
28
28
  "model": null,
29
29
  "parentPathIds": null,
30
30
  "tagIds": null,
31
- "chunkType": null,
31
+ "chunkTypes": null,
32
32
  "ingestionTimeAfter": null,
33
33
  "activeVersionOnly": null,
34
34
  "topK": null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knowledge-stack/ksapi",
3
- "version": "1.25.0",
3
+ "version": "1.25.1",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -59,11 +59,11 @@ export interface ChunkSearchRequest {
59
59
  */
60
60
  tagIds?: Array<string> | null;
61
61
  /**
62
- *
63
- * @type {ChunkType}
62
+ * Filter by chunk types (TEXT, TABLE, IMAGE, UNKNOWN). Only chunks matching one of the listed types are returned.
63
+ * @type {Array<ChunkType>}
64
64
  * @memberof ChunkSearchRequest
65
65
  */
66
- chunkType?: ChunkType;
66
+ chunkTypes?: Array<ChunkType> | null;
67
67
  /**
68
68
  * Only chunks ingested after this timestamp
69
69
  * @type {Date}
@@ -114,7 +114,7 @@ export function ChunkSearchRequestFromJSONTyped(json: any, ignoreDiscriminator:
114
114
  'model': json['model'] == null ? undefined : EmbeddingModelFromJSON(json['model']),
115
115
  'parentPathIds': json['parent_path_ids'] == null ? undefined : json['parent_path_ids'],
116
116
  'tagIds': json['tag_ids'] == null ? undefined : json['tag_ids'],
117
- 'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
117
+ 'chunkTypes': json['chunk_types'] == null ? undefined : ((json['chunk_types'] as Array<any>).map(ChunkTypeFromJSON)),
118
118
  'ingestionTimeAfter': json['ingestion_time_after'] == null ? undefined : (new Date(json['ingestion_time_after'])),
119
119
  'activeVersionOnly': json['active_version_only'] == null ? undefined : json['active_version_only'],
120
120
  'topK': json['top_k'] == null ? undefined : json['top_k'],
@@ -137,7 +137,7 @@ export function ChunkSearchRequestToJSONTyped(value?: ChunkSearchRequest | null,
137
137
  'model': EmbeddingModelToJSON(value['model']),
138
138
  'parent_path_ids': value['parentPathIds'],
139
139
  'tag_ids': value['tagIds'],
140
- 'chunk_type': ChunkTypeToJSON(value['chunkType']),
140
+ 'chunk_types': value['chunkTypes'] == null ? undefined : ((value['chunkTypes'] as Array<any>).map(ChunkTypeToJSON)),
141
141
  'ingestion_time_after': value['ingestionTimeAfter'] == null ? value['ingestionTimeAfter'] : value['ingestionTimeAfter'].toISOString(),
142
142
  'active_version_only': value['activeVersionOnly'],
143
143
  'top_k': value['topK'],
@@ -163,6 +163,10 @@ export const ChunkSearchRequestPropertyValidationAttributesMap: {
163
163
  query: {
164
164
  minLength: 1,
165
165
  },
166
+ chunkTypes: {
167
+ minItems: 1,
168
+ uniqueItems: false,
169
+ },
166
170
  topK: {
167
171
  maximum: 50,
168
172
  exclusiveMaximum: false,