@knowledge-stack/ksapi 1.42.5 → 1.44.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 (53) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +5 -2
  3. package/dist/esm/models/ChunkMetadataInput.d.ts +2 -2
  4. package/dist/esm/models/ChunkMetadataOutput.d.ts +2 -2
  5. package/dist/esm/models/ChunkSearchRequest.d.ts +1 -1
  6. package/dist/esm/models/ChunkType.d.ts +1 -0
  7. package/dist/esm/models/ChunkType.js +1 -0
  8. package/dist/esm/models/SupportedLanguage.d.ts +25 -0
  9. package/dist/esm/models/SupportedLanguage.js +43 -0
  10. package/dist/esm/models/TenantResponse.d.ts +7 -0
  11. package/dist/esm/models/TenantResponse.js +5 -0
  12. package/dist/esm/models/TenantSettings.d.ts +48 -0
  13. package/dist/esm/models/TenantSettings.js +43 -0
  14. package/dist/esm/models/TenantSettingsUpdate.d.ts +48 -0
  15. package/dist/esm/models/TenantSettingsUpdate.js +43 -0
  16. package/dist/esm/models/UpdateTenantRequest.d.ts +7 -0
  17. package/dist/esm/models/UpdateTenantRequest.js +3 -0
  18. package/dist/esm/models/index.d.ts +3 -0
  19. package/dist/esm/models/index.js +3 -0
  20. package/dist/models/ChunkMetadataInput.d.ts +2 -2
  21. package/dist/models/ChunkMetadataOutput.d.ts +2 -2
  22. package/dist/models/ChunkSearchRequest.d.ts +1 -1
  23. package/dist/models/ChunkType.d.ts +1 -0
  24. package/dist/models/ChunkType.js +1 -0
  25. package/dist/models/SupportedLanguage.d.ts +25 -0
  26. package/dist/models/SupportedLanguage.js +51 -0
  27. package/dist/models/TenantResponse.d.ts +7 -0
  28. package/dist/models/TenantResponse.js +5 -0
  29. package/dist/models/TenantSettings.d.ts +48 -0
  30. package/dist/models/TenantSettings.js +51 -0
  31. package/dist/models/TenantSettingsUpdate.d.ts +48 -0
  32. package/dist/models/TenantSettingsUpdate.js +51 -0
  33. package/dist/models/UpdateTenantRequest.d.ts +7 -0
  34. package/dist/models/UpdateTenantRequest.js +3 -0
  35. package/dist/models/index.d.ts +3 -0
  36. package/dist/models/index.js +3 -0
  37. package/docs/DocumentsApi.md +2 -2
  38. package/docs/SupportedLanguage.md +32 -0
  39. package/docs/TenantResponse.md +2 -0
  40. package/docs/TenantSettings.md +34 -0
  41. package/docs/TenantSettingsUpdate.md +35 -0
  42. package/docs/UpdateTenantRequest.md +2 -0
  43. package/package.json +1 -1
  44. package/src/models/ChunkMetadataInput.ts +2 -2
  45. package/src/models/ChunkMetadataOutput.ts +2 -2
  46. package/src/models/ChunkSearchRequest.ts +1 -1
  47. package/src/models/ChunkType.ts +1 -0
  48. package/src/models/SupportedLanguage.ts +53 -0
  49. package/src/models/TenantResponse.ts +17 -0
  50. package/src/models/TenantSettings.ts +92 -0
  51. package/src/models/TenantSettingsUpdate.ts +92 -0
  52. package/src/models/UpdateTenantRequest.ts +15 -0
  53. package/src/models/index.ts +3 -0
@@ -19,6 +19,7 @@ exports.TenantResponseFromJSON = TenantResponseFromJSON;
19
19
  exports.TenantResponseFromJSONTyped = TenantResponseFromJSONTyped;
20
20
  exports.TenantResponseToJSON = TenantResponseToJSON;
21
21
  exports.TenantResponseToJSONTyped = TenantResponseToJSONTyped;
22
+ const TenantSettings_1 = require("./TenantSettings");
22
23
  /**
23
24
  * Check if a given object implements the TenantResponse interface.
24
25
  */
@@ -27,6 +28,8 @@ function instanceOfTenantResponse(value) {
27
28
  return false;
28
29
  if (!('name' in value) || value['name'] === undefined)
29
30
  return false;
31
+ if (!('settings' in value) || value['settings'] === undefined)
32
+ return false;
30
33
  return true;
31
34
  }
32
35
  function TenantResponseFromJSON(json) {
@@ -40,6 +43,7 @@ function TenantResponseFromJSONTyped(json, ignoreDiscriminator) {
40
43
  'id': json['id'],
41
44
  'name': json['name'],
42
45
  'idpConfig': json['idp_config'] == null ? undefined : json['idp_config'],
46
+ 'settings': (0, TenantSettings_1.TenantSettingsFromJSON)(json['settings']),
43
47
  };
44
48
  }
45
49
  function TenantResponseToJSON(json) {
@@ -53,6 +57,7 @@ function TenantResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
57
  'id': value['id'],
54
58
  'name': value['name'],
55
59
  'idp_config': value['idpConfig'],
60
+ 'settings': (0, TenantSettings_1.TenantSettingsToJSON)(value['settings']),
56
61
  };
57
62
  }
58
63
  exports.TenantResponsePropertyValidationAttributesMap = {};
@@ -0,0 +1,48 @@
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
+ import type { SupportedLanguage } from './SupportedLanguage';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TenantSettings
17
+ */
18
+ export interface TenantSettings {
19
+ /**
20
+ *
21
+ * @type {SupportedLanguage}
22
+ * @memberof TenantSettings
23
+ */
24
+ language?: SupportedLanguage;
25
+ }
26
+ /**
27
+ * Check if a given object implements the TenantSettings interface.
28
+ */
29
+ export declare function instanceOfTenantSettings(value: object): value is TenantSettings;
30
+ export declare function TenantSettingsFromJSON(json: any): TenantSettings;
31
+ export declare function TenantSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantSettings;
32
+ export declare function TenantSettingsToJSON(json: any): TenantSettings;
33
+ export declare function TenantSettingsToJSONTyped(value?: TenantSettings | null, ignoreDiscriminator?: boolean): any;
34
+ export declare const TenantSettingsPropertyValidationAttributesMap: {
35
+ [property: string]: {
36
+ maxLength?: number;
37
+ minLength?: number;
38
+ pattern?: string;
39
+ maximum?: number;
40
+ exclusiveMaximum?: boolean;
41
+ minimum?: number;
42
+ exclusiveMinimum?: boolean;
43
+ multipleOf?: number;
44
+ maxItems?: number;
45
+ minItems?: number;
46
+ uniqueItems?: boolean;
47
+ };
48
+ };
@@ -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.TenantSettingsPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfTenantSettings = instanceOfTenantSettings;
18
+ exports.TenantSettingsFromJSON = TenantSettingsFromJSON;
19
+ exports.TenantSettingsFromJSONTyped = TenantSettingsFromJSONTyped;
20
+ exports.TenantSettingsToJSON = TenantSettingsToJSON;
21
+ exports.TenantSettingsToJSONTyped = TenantSettingsToJSONTyped;
22
+ const SupportedLanguage_1 = require("./SupportedLanguage");
23
+ /**
24
+ * Check if a given object implements the TenantSettings interface.
25
+ */
26
+ function instanceOfTenantSettings(value) {
27
+ return true;
28
+ }
29
+ function TenantSettingsFromJSON(json) {
30
+ return TenantSettingsFromJSONTyped(json, false);
31
+ }
32
+ function TenantSettingsFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'language': json['language'] == null ? undefined : (0, SupportedLanguage_1.SupportedLanguageFromJSON)(json['language']),
38
+ };
39
+ }
40
+ function TenantSettingsToJSON(json) {
41
+ return TenantSettingsToJSONTyped(json, false);
42
+ }
43
+ function TenantSettingsToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'language': (0, SupportedLanguage_1.SupportedLanguageToJSON)(value['language']),
49
+ };
50
+ }
51
+ exports.TenantSettingsPropertyValidationAttributesMap = {};
@@ -0,0 +1,48 @@
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
+ import type { SupportedLanguage } from './SupportedLanguage';
13
+ /**
14
+ * Partial tenant settings update.
15
+ * @export
16
+ * @interface TenantSettingsUpdate
17
+ */
18
+ export interface TenantSettingsUpdate {
19
+ /**
20
+ *
21
+ * @type {SupportedLanguage}
22
+ * @memberof TenantSettingsUpdate
23
+ */
24
+ language?: SupportedLanguage;
25
+ }
26
+ /**
27
+ * Check if a given object implements the TenantSettingsUpdate interface.
28
+ */
29
+ export declare function instanceOfTenantSettingsUpdate(value: object): value is TenantSettingsUpdate;
30
+ export declare function TenantSettingsUpdateFromJSON(json: any): TenantSettingsUpdate;
31
+ export declare function TenantSettingsUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantSettingsUpdate;
32
+ export declare function TenantSettingsUpdateToJSON(json: any): TenantSettingsUpdate;
33
+ export declare function TenantSettingsUpdateToJSONTyped(value?: TenantSettingsUpdate | null, ignoreDiscriminator?: boolean): any;
34
+ export declare const TenantSettingsUpdatePropertyValidationAttributesMap: {
35
+ [property: string]: {
36
+ maxLength?: number;
37
+ minLength?: number;
38
+ pattern?: string;
39
+ maximum?: number;
40
+ exclusiveMaximum?: boolean;
41
+ minimum?: number;
42
+ exclusiveMinimum?: boolean;
43
+ multipleOf?: number;
44
+ maxItems?: number;
45
+ minItems?: number;
46
+ uniqueItems?: boolean;
47
+ };
48
+ };
@@ -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.TenantSettingsUpdatePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfTenantSettingsUpdate = instanceOfTenantSettingsUpdate;
18
+ exports.TenantSettingsUpdateFromJSON = TenantSettingsUpdateFromJSON;
19
+ exports.TenantSettingsUpdateFromJSONTyped = TenantSettingsUpdateFromJSONTyped;
20
+ exports.TenantSettingsUpdateToJSON = TenantSettingsUpdateToJSON;
21
+ exports.TenantSettingsUpdateToJSONTyped = TenantSettingsUpdateToJSONTyped;
22
+ const SupportedLanguage_1 = require("./SupportedLanguage");
23
+ /**
24
+ * Check if a given object implements the TenantSettingsUpdate interface.
25
+ */
26
+ function instanceOfTenantSettingsUpdate(value) {
27
+ return true;
28
+ }
29
+ function TenantSettingsUpdateFromJSON(json) {
30
+ return TenantSettingsUpdateFromJSONTyped(json, false);
31
+ }
32
+ function TenantSettingsUpdateFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'language': json['language'] == null ? undefined : (0, SupportedLanguage_1.SupportedLanguageFromJSON)(json['language']),
38
+ };
39
+ }
40
+ function TenantSettingsUpdateToJSON(json) {
41
+ return TenantSettingsUpdateToJSONTyped(json, false);
42
+ }
43
+ function TenantSettingsUpdateToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'language': (0, SupportedLanguage_1.SupportedLanguageToJSON)(value['language']),
49
+ };
50
+ }
51
+ exports.TenantSettingsUpdatePropertyValidationAttributesMap = {};
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { OAuth2Config } from './OAuth2Config';
13
+ import type { TenantSettingsUpdate } from './TenantSettingsUpdate';
13
14
  /**
14
15
  * Update tenant request model.
15
16
  * @export
@@ -28,6 +29,12 @@ export interface UpdateTenantRequest {
28
29
  * @memberof UpdateTenantRequest
29
30
  */
30
31
  idpConfig?: OAuth2Config;
32
+ /**
33
+ *
34
+ * @type {TenantSettingsUpdate}
35
+ * @memberof UpdateTenantRequest
36
+ */
37
+ settings?: TenantSettingsUpdate;
31
38
  }
32
39
  /**
33
40
  * Check if a given object implements the UpdateTenantRequest interface.
@@ -20,6 +20,7 @@ exports.UpdateTenantRequestFromJSONTyped = UpdateTenantRequestFromJSONTyped;
20
20
  exports.UpdateTenantRequestToJSON = UpdateTenantRequestToJSON;
21
21
  exports.UpdateTenantRequestToJSONTyped = UpdateTenantRequestToJSONTyped;
22
22
  const OAuth2Config_1 = require("./OAuth2Config");
23
+ const TenantSettingsUpdate_1 = require("./TenantSettingsUpdate");
23
24
  /**
24
25
  * Check if a given object implements the UpdateTenantRequest interface.
25
26
  */
@@ -36,6 +37,7 @@ function UpdateTenantRequestFromJSONTyped(json, ignoreDiscriminator) {
36
37
  return {
37
38
  'name': json['name'] == null ? undefined : json['name'],
38
39
  'idpConfig': json['idp_config'] == null ? undefined : (0, OAuth2Config_1.OAuth2ConfigFromJSON)(json['idp_config']),
40
+ 'settings': json['settings'] == null ? undefined : (0, TenantSettingsUpdate_1.TenantSettingsUpdateFromJSON)(json['settings']),
39
41
  };
40
42
  }
41
43
  function UpdateTenantRequestToJSON(json) {
@@ -48,6 +50,7 @@ function UpdateTenantRequestToJSONTyped(value, ignoreDiscriminator = false) {
48
50
  return {
49
51
  'name': value['name'],
50
52
  'idp_config': (0, OAuth2Config_1.OAuth2ConfigToJSON)(value['idpConfig']),
53
+ 'settings': (0, TenantSettingsUpdate_1.TenantSettingsUpdateToJSON)(value['settings']),
51
54
  };
52
55
  }
53
56
  exports.UpdateTenantRequestPropertyValidationAttributesMap = {};
@@ -90,8 +90,11 @@ export * from './StepKind';
90
90
  export * from './StepOutput';
91
91
  export * from './SubtreeChunkGroup';
92
92
  export * from './SubtreeChunksResponse';
93
+ export * from './SupportedLanguage';
93
94
  export * from './TagResponse';
94
95
  export * from './TenantResponse';
96
+ export * from './TenantSettings';
97
+ export * from './TenantSettingsUpdate';
95
98
  export * from './TenantUserEditRequest';
96
99
  export * from './TenantUserResponse';
97
100
  export * from './TenantUserRole';
@@ -108,8 +108,11 @@ __exportStar(require("./StepKind"), exports);
108
108
  __exportStar(require("./StepOutput"), exports);
109
109
  __exportStar(require("./SubtreeChunkGroup"), exports);
110
110
  __exportStar(require("./SubtreeChunksResponse"), exports);
111
+ __exportStar(require("./SupportedLanguage"), exports);
111
112
  __exportStar(require("./TagResponse"), exports);
112
113
  __exportStar(require("./TenantResponse"), exports);
114
+ __exportStar(require("./TenantSettings"), exports);
115
+ __exportStar(require("./TenantSettingsUpdate"), exports);
113
116
  __exportStar(require("./TenantUserEditRequest"), exports);
114
117
  __exportStar(require("./TenantUserResponse"), exports);
115
118
  __exportStar(require("./TenantUserRole"), exports);
@@ -302,7 +302,7 @@ example().catch(console.error);
302
302
  | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
303
303
  | **name** | `string` | Document name (defaults to filename) | [Optional] [Defaults to `undefined`] |
304
304
  | **ingestionMode** | `IngestionMode` | | [Optional] [Defaults to `undefined`] [Enum: document, single_chunk] |
305
- | **chunkType** | `ChunkType` | | [Optional] [Defaults to `undefined`] [Enum: TEXT, TABLE, IMAGE, UNKNOWN] |
305
+ | **chunkType** | `ChunkType` | | [Optional] [Defaults to `undefined`] [Enum: TEXT, TABLE, IMAGE, HTML, UNKNOWN] |
306
306
  | **pageDpi** | `number` | DPI for PDF page screenshots (default 72, min 36, max 216). | [Optional] [Defaults to `72`] |
307
307
 
308
308
  ### Return type
@@ -388,7 +388,7 @@ example().catch(console.error);
388
388
  | **authorization** | `string` | | [Optional] [Defaults to `undefined`] |
389
389
  | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
390
390
  | **ingestionMode** | `IngestionMode` | | [Optional] [Defaults to `undefined`] [Enum: document, single_chunk] |
391
- | **chunkType** | `ChunkType` | | [Optional] [Defaults to `undefined`] [Enum: TEXT, TABLE, IMAGE, UNKNOWN] |
391
+ | **chunkType** | `ChunkType` | | [Optional] [Defaults to `undefined`] [Enum: TEXT, TABLE, IMAGE, HTML, UNKNOWN] |
392
392
  | **pageDpi** | `number` | DPI for PDF page screenshots (default 72, min 36, max 216). | [Optional] [Defaults to `72`] |
393
393
 
394
394
  ### Return type
@@ -0,0 +1,32 @@
1
+
2
+ # SupportedLanguage
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import type { SupportedLanguage } from '@knowledge-stack/ksapi'
14
+
15
+ // TODO: Update the object below with actual values
16
+ const example = {
17
+ } satisfies SupportedLanguage
18
+
19
+ console.log(example)
20
+
21
+ // Convert the instance to a JSON string
22
+ const exampleJSON: string = JSON.stringify(example)
23
+ console.log(exampleJSON)
24
+
25
+ // Parse the JSON string back to an object
26
+ const exampleParsed = JSON.parse(exampleJSON) as SupportedLanguage
27
+ console.log(exampleParsed)
28
+ ```
29
+
30
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
31
+
32
+
@@ -10,6 +10,7 @@ Name | Type
10
10
  `id` | string
11
11
  `name` | string
12
12
  `idpConfig` | { [key: string]: string; }
13
+ `settings` | [TenantSettings](TenantSettings.md)
13
14
 
14
15
  ## Example
15
16
 
@@ -21,6 +22,7 @@ const example = {
21
22
  "id": null,
22
23
  "name": null,
23
24
  "idpConfig": null,
25
+ "settings": null,
24
26
  } satisfies TenantResponse
25
27
 
26
28
  console.log(example)
@@ -0,0 +1,34 @@
1
+
2
+ # TenantSettings
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `language` | [SupportedLanguage](SupportedLanguage.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { TenantSettings } from '@knowledge-stack/ksapi'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "language": null,
19
+ } satisfies TenantSettings
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as TenantSettings
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,35 @@
1
+
2
+ # TenantSettingsUpdate
3
+
4
+ Partial tenant settings update.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `language` | [SupportedLanguage](SupportedLanguage.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { TenantSettingsUpdate } from '@knowledge-stack/ksapi'
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "language": null,
20
+ } satisfies TenantSettingsUpdate
21
+
22
+ console.log(example)
23
+
24
+ // Convert the instance to a JSON string
25
+ const exampleJSON: string = JSON.stringify(example)
26
+ console.log(exampleJSON)
27
+
28
+ // Parse the JSON string back to an object
29
+ const exampleParsed = JSON.parse(exampleJSON) as TenantSettingsUpdate
30
+ console.log(exampleParsed)
31
+ ```
32
+
33
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
34
+
35
+
@@ -9,6 +9,7 @@ Name | Type
9
9
  ------------ | -------------
10
10
  `name` | string
11
11
  `idpConfig` | [OAuth2Config](OAuth2Config.md)
12
+ `settings` | [TenantSettingsUpdate](TenantSettingsUpdate.md)
12
13
 
13
14
  ## Example
14
15
 
@@ -19,6 +20,7 @@ import type { UpdateTenantRequest } from '@knowledge-stack/ksapi'
19
20
  const example = {
20
21
  "name": null,
21
22
  "idpConfig": null,
23
+ "settings": null,
22
24
  } satisfies UpdateTenantRequest
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.42.5",
3
+ "version": "1.44.0",
4
4
  "description": "OpenAPI client for @knowledge-stack/ksapi",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -41,13 +41,13 @@ export interface ChunkMetadataInput {
41
41
  */
42
42
  polygons?: Array<PolygonReference>;
43
43
  /**
44
- * Ordered s3:// URIs to visual assets for this chunk. Single-element for standard IMAGE/TABLE chunks, multi-element for multi-page single-chunk ingestion.
44
+ * Ordered s3:// URIs to visual assets for this chunk. Single-element for standard IMAGE/TABLE/HTML chunks, multi-element for multi-page single-chunk ingestion.
45
45
  * @type {Array<string>}
46
46
  * @memberof ChunkMetadataInput
47
47
  */
48
48
  s3Urls?: Array<string>;
49
49
  /**
50
- * LLM-generated summary of the chunk content. Used for TABLE chunks to enrich embedding text.
50
+ * LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text.
51
51
  * @type {string}
52
52
  * @memberof ChunkMetadataInput
53
53
  */
@@ -41,13 +41,13 @@ export interface ChunkMetadataOutput {
41
41
  */
42
42
  polygons?: Array<PolygonReference>;
43
43
  /**
44
- * Ordered s3:// URIs to visual assets for this chunk. Single-element for standard IMAGE/TABLE chunks, multi-element for multi-page single-chunk ingestion.
44
+ * Ordered s3:// URIs to visual assets for this chunk. Single-element for standard IMAGE/TABLE/HTML chunks, multi-element for multi-page single-chunk ingestion.
45
45
  * @type {Array<string>}
46
46
  * @memberof ChunkMetadataOutput
47
47
  */
48
48
  s3Urls?: Array<string>;
49
49
  /**
50
- * LLM-generated summary of the chunk content. Used for TABLE chunks to enrich embedding text.
50
+ * LLM-generated summary of the chunk content. Used for TABLE and HTML chunks to enrich embedding text.
51
51
  * @type {string}
52
52
  * @memberof ChunkMetadataOutput
53
53
  */
@@ -59,7 +59,7 @@ export interface ChunkSearchRequest {
59
59
  */
60
60
  tagIds?: Array<string> | null;
61
61
  /**
62
- * Filter by chunk types (TEXT, TABLE, IMAGE, UNKNOWN). Only chunks matching one of the listed types are returned.
62
+ * Filter by chunk types (TEXT, TABLE, IMAGE, HTML, UNKNOWN). Only chunks matching one of the listed types are returned.
63
63
  * @type {Array<ChunkType>}
64
64
  * @memberof ChunkSearchRequest
65
65
  */
@@ -21,6 +21,7 @@ export const ChunkType = {
21
21
  Text: 'TEXT',
22
22
  Table: 'TABLE',
23
23
  Image: 'IMAGE',
24
+ Html: 'HTML',
24
25
  Unknown: 'UNKNOWN'
25
26
  } as const;
26
27
  export type ChunkType = typeof ChunkType[keyof typeof ChunkType];
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const SupportedLanguage = {
21
+ En: 'en',
22
+ Zh: 'zh'
23
+ } as const;
24
+ export type SupportedLanguage = typeof SupportedLanguage[keyof typeof SupportedLanguage];
25
+
26
+
27
+ export function instanceOfSupportedLanguage(value: any): boolean {
28
+ for (const key in SupportedLanguage) {
29
+ if (Object.prototype.hasOwnProperty.call(SupportedLanguage, key)) {
30
+ if (SupportedLanguage[key as keyof typeof SupportedLanguage] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function SupportedLanguageFromJSON(json: any): SupportedLanguage {
39
+ return SupportedLanguageFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function SupportedLanguageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupportedLanguage {
43
+ return json as SupportedLanguage;
44
+ }
45
+
46
+ export function SupportedLanguageToJSON(value?: SupportedLanguage | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function SupportedLanguageToJSONTyped(value: any, ignoreDiscriminator: boolean): SupportedLanguage {
51
+ return value as SupportedLanguage;
52
+ }
53
+
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { TenantSettings } from './TenantSettings';
17
+ import {
18
+ TenantSettingsFromJSON,
19
+ TenantSettingsFromJSONTyped,
20
+ TenantSettingsToJSON,
21
+ TenantSettingsToJSONTyped,
22
+ } from './TenantSettings';
23
+
16
24
  /**
17
25
  * Tenant response model.
18
26
  * @export
@@ -37,6 +45,12 @@ export interface TenantResponse {
37
45
  * @memberof TenantResponse
38
46
  */
39
47
  idpConfig?: { [key: string]: string; } | null;
48
+ /**
49
+ *
50
+ * @type {TenantSettings}
51
+ * @memberof TenantResponse
52
+ */
53
+ settings: TenantSettings;
40
54
  }
41
55
 
42
56
  /**
@@ -45,6 +59,7 @@ export interface TenantResponse {
45
59
  export function instanceOfTenantResponse(value: object): value is TenantResponse {
46
60
  if (!('id' in value) || value['id'] === undefined) return false;
47
61
  if (!('name' in value) || value['name'] === undefined) return false;
62
+ if (!('settings' in value) || value['settings'] === undefined) return false;
48
63
  return true;
49
64
  }
50
65
 
@@ -61,6 +76,7 @@ export function TenantResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
61
76
  'id': json['id'],
62
77
  'name': json['name'],
63
78
  'idpConfig': json['idp_config'] == null ? undefined : json['idp_config'],
79
+ 'settings': TenantSettingsFromJSON(json['settings']),
64
80
  };
65
81
  }
66
82
 
@@ -78,6 +94,7 @@ export function TenantResponseToJSONTyped(value?: TenantResponse | null, ignoreD
78
94
  'id': value['id'],
79
95
  'name': value['name'],
80
96
  'idp_config': value['idpConfig'],
97
+ 'settings': TenantSettingsToJSON(value['settings']),
81
98
  };
82
99
  }
83
100