@knowledge-stack/ksapi 1.48.1 → 1.50.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/.openapi-generator/FILES +8 -2
- package/README.md +8 -3
- package/dist/apis/DocumentsApi.d.ts +7 -1
- package/dist/apis/DocumentsApi.js +6 -0
- package/dist/apis/TenantsApi.d.ts +98 -1
- package/dist/apis/TenantsApi.js +116 -0
- package/dist/esm/apis/DocumentsApi.d.ts +7 -1
- package/dist/esm/apis/DocumentsApi.js +6 -0
- package/dist/esm/apis/TenantsApi.d.ts +98 -1
- package/dist/esm/apis/TenantsApi.js +116 -0
- package/dist/esm/models/BrandingLogoType.d.ts +26 -0
- package/dist/esm/models/BrandingLogoType.js +44 -0
- package/dist/esm/models/ChunkMetadataInput.d.ts +7 -0
- package/dist/esm/models/ChunkMetadataInput.js +3 -0
- package/dist/esm/models/ChunkMetadataOutput.d.ts +7 -0
- package/dist/esm/models/ChunkMetadataOutput.js +3 -0
- package/dist/esm/models/ImageTaxonomy.d.ts +25 -0
- package/dist/esm/models/ImageTaxonomy.js +43 -0
- package/dist/esm/models/TenantBrandingResponse.d.ts +79 -0
- package/dist/esm/models/TenantBrandingResponse.js +52 -0
- package/dist/esm/models/TenantResponse.d.ts +10 -3
- package/dist/esm/models/TenantResponse.js +6 -3
- package/dist/esm/models/TenantSettingsResponse.d.ts +54 -0
- package/dist/esm/models/TenantSettingsResponse.js +49 -0
- package/dist/esm/models/TenantSettingsUpdate.d.ts +20 -0
- package/dist/esm/models/TenantSettingsUpdate.js +6 -0
- package/dist/esm/models/index.d.ts +4 -1
- package/dist/esm/models/index.js +4 -1
- package/dist/models/BrandingLogoType.d.ts +26 -0
- package/dist/models/BrandingLogoType.js +52 -0
- package/dist/models/ChunkMetadataInput.d.ts +7 -0
- package/dist/models/ChunkMetadataInput.js +3 -0
- package/dist/models/ChunkMetadataOutput.d.ts +7 -0
- package/dist/models/ChunkMetadataOutput.js +3 -0
- package/dist/models/ImageTaxonomy.d.ts +25 -0
- package/dist/models/ImageTaxonomy.js +51 -0
- package/dist/models/TenantBrandingResponse.d.ts +79 -0
- package/dist/models/TenantBrandingResponse.js +60 -0
- package/dist/models/TenantResponse.d.ts +10 -3
- package/dist/models/TenantResponse.js +6 -3
- package/dist/models/TenantSettingsResponse.d.ts +54 -0
- package/dist/models/TenantSettingsResponse.js +57 -0
- package/dist/models/TenantSettingsUpdate.d.ts +20 -0
- package/dist/models/TenantSettingsUpdate.js +6 -0
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/docs/BrandingLogoType.md +33 -0
- package/docs/ChunkMetadataInput.md +2 -0
- package/docs/ChunkMetadataOutput.md +2 -0
- package/docs/DocumentsApi.md +8 -2
- package/docs/ImageTaxonomy.md +33 -0
- package/docs/TenantBrandingResponse.md +45 -0
- package/docs/TenantResponse.md +3 -1
- package/docs/{TenantSettings.md → TenantSettingsResponse.md} +5 -4
- package/docs/TenantSettingsUpdate.md +6 -0
- package/docs/TenantsApi.md +159 -0
- package/package.json +1 -1
- package/src/apis/DocumentsApi.ts +17 -0
- package/src/apis/TenantsApi.ts +218 -0
- package/src/models/BrandingLogoType.ts +54 -0
- package/src/models/ChunkMetadataInput.ts +15 -0
- package/src/models/ChunkMetadataOutput.ts +15 -0
- package/src/models/ImageTaxonomy.ts +53 -0
- package/src/models/TenantBrandingResponse.ts +122 -0
- package/src/models/TenantResponse.ts +25 -10
- package/src/models/{TenantSettings.ts → TenantSettingsResponse.ts} +20 -18
- package/src/models/TenantSettingsUpdate.ts +24 -0
- package/src/models/index.ts +4 -1
- package/dist/esm/models/TenantSettings.d.ts +0 -54
- package/dist/esm/models/TenantSettings.js +0 -45
- package/dist/models/TenantSettings.d.ts +0 -54
- package/dist/models/TenantSettings.js +0 -53
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import {
|
|
14
|
+
import { TenantBrandingResponseFromJSON, TenantBrandingResponseToJSON, } from './TenantBrandingResponse';
|
|
15
|
+
import { TenantSettingsResponseFromJSON, TenantSettingsResponseToJSON, } from './TenantSettingsResponse';
|
|
15
16
|
/**
|
|
16
17
|
* Check if a given object implements the TenantResponse interface.
|
|
17
18
|
*/
|
|
@@ -35,7 +36,8 @@ export function TenantResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
36
|
'id': json['id'],
|
|
36
37
|
'name': json['name'],
|
|
37
38
|
'idpConfig': json['idp_config'] == null ? undefined : json['idp_config'],
|
|
38
|
-
'settings':
|
|
39
|
+
'settings': TenantSettingsResponseFromJSON(json['settings']),
|
|
40
|
+
'branding': json['branding'] == null ? undefined : TenantBrandingResponseFromJSON(json['branding']),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
export function TenantResponseToJSON(json) {
|
|
@@ -49,7 +51,8 @@ export function TenantResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
49
51
|
'id': value['id'],
|
|
50
52
|
'name': value['name'],
|
|
51
53
|
'idp_config': value['idpConfig'],
|
|
52
|
-
'settings':
|
|
54
|
+
'settings': TenantSettingsResponseToJSON(value['settings']),
|
|
55
|
+
'branding': TenantBrandingResponseToJSON(value['branding']),
|
|
53
56
|
};
|
|
54
57
|
}
|
|
55
58
|
export const TenantResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
* Tenant settings as exposed via API (no internal S3 URIs).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface TenantSettingsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface TenantSettingsResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {SupportedLanguage}
|
|
22
|
+
* @memberof TenantSettingsResponse
|
|
23
|
+
*/
|
|
24
|
+
language: SupportedLanguage;
|
|
25
|
+
/**
|
|
26
|
+
* Tenant description
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TenantSettingsResponse
|
|
29
|
+
*/
|
|
30
|
+
description: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the TenantSettingsResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfTenantSettingsResponse(value: object): value is TenantSettingsResponse;
|
|
36
|
+
export declare function TenantSettingsResponseFromJSON(json: any): TenantSettingsResponse;
|
|
37
|
+
export declare function TenantSettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantSettingsResponse;
|
|
38
|
+
export declare function TenantSettingsResponseToJSON(json: any): TenantSettingsResponse;
|
|
39
|
+
export declare function TenantSettingsResponseToJSONTyped(value?: TenantSettingsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
+
export declare const TenantSettingsResponsePropertyValidationAttributesMap: {
|
|
41
|
+
[property: string]: {
|
|
42
|
+
maxLength?: number;
|
|
43
|
+
minLength?: number;
|
|
44
|
+
pattern?: string;
|
|
45
|
+
maximum?: number;
|
|
46
|
+
exclusiveMaximum?: boolean;
|
|
47
|
+
minimum?: number;
|
|
48
|
+
exclusiveMinimum?: boolean;
|
|
49
|
+
multipleOf?: number;
|
|
50
|
+
maxItems?: number;
|
|
51
|
+
minItems?: number;
|
|
52
|
+
uniqueItems?: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
import { SupportedLanguageFromJSON, SupportedLanguageToJSON, } from './SupportedLanguage';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the TenantSettingsResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfTenantSettingsResponse(value) {
|
|
19
|
+
if (!('language' in value) || value['language'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('description' in value) || value['description'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function TenantSettingsResponseFromJSON(json) {
|
|
26
|
+
return TenantSettingsResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function TenantSettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'language': SupportedLanguageFromJSON(json['language']),
|
|
34
|
+
'description': json['description'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function TenantSettingsResponseToJSON(json) {
|
|
38
|
+
return TenantSettingsResponseToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function TenantSettingsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'language': SupportedLanguageToJSON(value['language']),
|
|
46
|
+
'description': value['description'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export const TenantSettingsResponsePropertyValidationAttributesMap = {};
|
|
@@ -28,6 +28,26 @@ export interface TenantSettingsUpdate {
|
|
|
28
28
|
* @memberof TenantSettingsUpdate
|
|
29
29
|
*/
|
|
30
30
|
description?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Custom brand name for logo
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof TenantSettingsUpdate
|
|
35
|
+
*/
|
|
36
|
+
brandName?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Primary brand hex color (e.g. '#2563eb')
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof TenantSettingsUpdate
|
|
41
|
+
*/
|
|
42
|
+
brandColor?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* Custom CSS variable overrides
|
|
45
|
+
* @type {{ [key: string]: string; }}
|
|
46
|
+
* @memberof TenantSettingsUpdate
|
|
47
|
+
*/
|
|
48
|
+
themeOverrides?: {
|
|
49
|
+
[key: string]: string;
|
|
50
|
+
} | null;
|
|
31
51
|
}
|
|
32
52
|
/**
|
|
33
53
|
* Check if a given object implements the TenantSettingsUpdate interface.
|
|
@@ -28,6 +28,9 @@ export function TenantSettingsUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
28
|
return {
|
|
29
29
|
'language': json['language'] == null ? undefined : SupportedLanguageFromJSON(json['language']),
|
|
30
30
|
'description': json['description'] == null ? undefined : json['description'],
|
|
31
|
+
'brandName': json['brand_name'] == null ? undefined : json['brand_name'],
|
|
32
|
+
'brandColor': json['brand_color'] == null ? undefined : json['brand_color'],
|
|
33
|
+
'themeOverrides': json['theme_overrides'] == null ? undefined : json['theme_overrides'],
|
|
31
34
|
};
|
|
32
35
|
}
|
|
33
36
|
export function TenantSettingsUpdateToJSON(json) {
|
|
@@ -40,6 +43,9 @@ export function TenantSettingsUpdateToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
40
43
|
return {
|
|
41
44
|
'language': SupportedLanguageToJSON(value['language']),
|
|
42
45
|
'description': value['description'],
|
|
46
|
+
'brand_name': value['brandName'],
|
|
47
|
+
'brand_color': value['brandColor'],
|
|
48
|
+
'theme_overrides': value['themeOverrides'],
|
|
43
49
|
};
|
|
44
50
|
}
|
|
45
51
|
export const TenantSettingsUpdatePropertyValidationAttributesMap = {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './AcceptInviteResponse';
|
|
2
2
|
export * from './ApiKeyResponse';
|
|
3
3
|
export * from './Args';
|
|
4
|
+
export * from './BrandingLogoType';
|
|
4
5
|
export * from './BulkTagRequest';
|
|
5
6
|
export * from './ChunkBulkResponse';
|
|
6
7
|
export * from './ChunkContentItem';
|
|
@@ -44,6 +45,7 @@ export * from './FolderResponseOrDocumentResponse';
|
|
|
44
45
|
export * from './HTTPValidationError';
|
|
45
46
|
export * from './HealthCheckResponse';
|
|
46
47
|
export * from './IdpType';
|
|
48
|
+
export * from './ImageTaxonomy';
|
|
47
49
|
export * from './IngestDocumentResponse';
|
|
48
50
|
export * from './IngestionMode';
|
|
49
51
|
export * from './InviteResponse';
|
|
@@ -96,8 +98,9 @@ export * from './SubtreeChunkGroup';
|
|
|
96
98
|
export * from './SubtreeChunksResponse';
|
|
97
99
|
export * from './SupportedLanguage';
|
|
98
100
|
export * from './TagResponse';
|
|
101
|
+
export * from './TenantBrandingResponse';
|
|
99
102
|
export * from './TenantResponse';
|
|
100
|
-
export * from './
|
|
103
|
+
export * from './TenantSettingsResponse';
|
|
101
104
|
export * from './TenantSettingsUpdate';
|
|
102
105
|
export * from './TenantUserEditRequest';
|
|
103
106
|
export * from './TenantUserResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
export * from './AcceptInviteResponse';
|
|
4
4
|
export * from './ApiKeyResponse';
|
|
5
5
|
export * from './Args';
|
|
6
|
+
export * from './BrandingLogoType';
|
|
6
7
|
export * from './BulkTagRequest';
|
|
7
8
|
export * from './ChunkBulkResponse';
|
|
8
9
|
export * from './ChunkContentItem';
|
|
@@ -46,6 +47,7 @@ export * from './FolderResponseOrDocumentResponse';
|
|
|
46
47
|
export * from './HTTPValidationError';
|
|
47
48
|
export * from './HealthCheckResponse';
|
|
48
49
|
export * from './IdpType';
|
|
50
|
+
export * from './ImageTaxonomy';
|
|
49
51
|
export * from './IngestDocumentResponse';
|
|
50
52
|
export * from './IngestionMode';
|
|
51
53
|
export * from './InviteResponse';
|
|
@@ -98,8 +100,9 @@ export * from './SubtreeChunkGroup';
|
|
|
98
100
|
export * from './SubtreeChunksResponse';
|
|
99
101
|
export * from './SupportedLanguage';
|
|
100
102
|
export * from './TagResponse';
|
|
103
|
+
export * from './TenantBrandingResponse';
|
|
101
104
|
export * from './TenantResponse';
|
|
102
|
-
export * from './
|
|
105
|
+
export * from './TenantSettingsResponse';
|
|
103
106
|
export * from './TenantSettingsUpdate';
|
|
104
107
|
export * from './TenantUserEditRequest';
|
|
105
108
|
export * from './TenantUserResponse';
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Types of branding logos that can be uploaded.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const BrandingLogoType: {
|
|
17
|
+
readonly Logo: "logo";
|
|
18
|
+
readonly LogoDark: "logo_dark";
|
|
19
|
+
readonly Favicon: "favicon";
|
|
20
|
+
};
|
|
21
|
+
export type BrandingLogoType = typeof BrandingLogoType[keyof typeof BrandingLogoType];
|
|
22
|
+
export declare function instanceOfBrandingLogoType(value: any): boolean;
|
|
23
|
+
export declare function BrandingLogoTypeFromJSON(json: any): BrandingLogoType;
|
|
24
|
+
export declare function BrandingLogoTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): BrandingLogoType;
|
|
25
|
+
export declare function BrandingLogoTypeToJSON(value?: BrandingLogoType | null): any;
|
|
26
|
+
export declare function BrandingLogoTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): BrandingLogoType;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.BrandingLogoType = void 0;
|
|
17
|
+
exports.instanceOfBrandingLogoType = instanceOfBrandingLogoType;
|
|
18
|
+
exports.BrandingLogoTypeFromJSON = BrandingLogoTypeFromJSON;
|
|
19
|
+
exports.BrandingLogoTypeFromJSONTyped = BrandingLogoTypeFromJSONTyped;
|
|
20
|
+
exports.BrandingLogoTypeToJSON = BrandingLogoTypeToJSON;
|
|
21
|
+
exports.BrandingLogoTypeToJSONTyped = BrandingLogoTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Types of branding logos that can be uploaded.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.BrandingLogoType = {
|
|
27
|
+
Logo: 'logo',
|
|
28
|
+
LogoDark: 'logo_dark',
|
|
29
|
+
Favicon: 'favicon'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfBrandingLogoType(value) {
|
|
32
|
+
for (const key in exports.BrandingLogoType) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.BrandingLogoType, key)) {
|
|
34
|
+
if (exports.BrandingLogoType[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function BrandingLogoTypeFromJSON(json) {
|
|
42
|
+
return BrandingLogoTypeFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function BrandingLogoTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function BrandingLogoTypeToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function BrandingLogoTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ImageTaxonomy } from './ImageTaxonomy';
|
|
12
13
|
import type { IngestionMode } from './IngestionMode';
|
|
13
14
|
import type { PolygonReference } from './PolygonReference';
|
|
14
15
|
/**
|
|
@@ -47,6 +48,12 @@ export interface ChunkMetadataInput {
|
|
|
47
48
|
* @memberof ChunkMetadataInput
|
|
48
49
|
*/
|
|
49
50
|
extractedTextS3Uri?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {ImageTaxonomy}
|
|
54
|
+
* @memberof ChunkMetadataInput
|
|
55
|
+
*/
|
|
56
|
+
secondaryTaxonomy?: ImageTaxonomy;
|
|
50
57
|
/**
|
|
51
58
|
* Worksheet name this chunk was extracted from (XLSX only)
|
|
52
59
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.ChunkMetadataInputFromJSON = ChunkMetadataInputFromJSON;
|
|
|
19
19
|
exports.ChunkMetadataInputFromJSONTyped = ChunkMetadataInputFromJSONTyped;
|
|
20
20
|
exports.ChunkMetadataInputToJSON = ChunkMetadataInputToJSON;
|
|
21
21
|
exports.ChunkMetadataInputToJSONTyped = ChunkMetadataInputToJSONTyped;
|
|
22
|
+
const ImageTaxonomy_1 = require("./ImageTaxonomy");
|
|
22
23
|
const IngestionMode_1 = require("./IngestionMode");
|
|
23
24
|
const PolygonReference_1 = require("./PolygonReference");
|
|
24
25
|
/**
|
|
@@ -40,6 +41,7 @@ function ChunkMetadataInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
41
42
|
'ingestionMode': json['ingestion_mode'] == null ? undefined : (0, IngestionMode_1.IngestionModeFromJSON)(json['ingestion_mode']),
|
|
42
43
|
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
44
|
+
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : (0, ImageTaxonomy_1.ImageTaxonomyFromJSON)(json['secondary_taxonomy']),
|
|
43
45
|
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
44
46
|
'blockType': json['block_type'] == null ? undefined : json['block_type'],
|
|
45
47
|
'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
|
|
@@ -64,6 +66,7 @@ function ChunkMetadataInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
66
|
'summary': value['summary'],
|
|
65
67
|
'ingestion_mode': (0, IngestionMode_1.IngestionModeToJSON)(value['ingestionMode']),
|
|
66
68
|
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
69
|
+
'secondary_taxonomy': (0, ImageTaxonomy_1.ImageTaxonomyToJSON)(value['secondaryTaxonomy']),
|
|
67
70
|
'sheet_name': value['sheetName'],
|
|
68
71
|
'block_type': value['blockType'],
|
|
69
72
|
'source_uri': value['sourceUri'],
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ImageTaxonomy } from './ImageTaxonomy';
|
|
12
13
|
import type { IngestionMode } from './IngestionMode';
|
|
13
14
|
import type { PolygonReference } from './PolygonReference';
|
|
14
15
|
/**
|
|
@@ -47,6 +48,12 @@ export interface ChunkMetadataOutput {
|
|
|
47
48
|
* @memberof ChunkMetadataOutput
|
|
48
49
|
*/
|
|
49
50
|
extractedTextS3Uri?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @type {ImageTaxonomy}
|
|
54
|
+
* @memberof ChunkMetadataOutput
|
|
55
|
+
*/
|
|
56
|
+
secondaryTaxonomy?: ImageTaxonomy;
|
|
50
57
|
/**
|
|
51
58
|
* Worksheet name this chunk was extracted from (XLSX only)
|
|
52
59
|
* @type {string}
|
|
@@ -19,6 +19,7 @@ exports.ChunkMetadataOutputFromJSON = ChunkMetadataOutputFromJSON;
|
|
|
19
19
|
exports.ChunkMetadataOutputFromJSONTyped = ChunkMetadataOutputFromJSONTyped;
|
|
20
20
|
exports.ChunkMetadataOutputToJSON = ChunkMetadataOutputToJSON;
|
|
21
21
|
exports.ChunkMetadataOutputToJSONTyped = ChunkMetadataOutputToJSONTyped;
|
|
22
|
+
const ImageTaxonomy_1 = require("./ImageTaxonomy");
|
|
22
23
|
const IngestionMode_1 = require("./IngestionMode");
|
|
23
24
|
const PolygonReference_1 = require("./PolygonReference");
|
|
24
25
|
/**
|
|
@@ -40,6 +41,7 @@ function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
41
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
41
42
|
'ingestionMode': json['ingestion_mode'] == null ? undefined : (0, IngestionMode_1.IngestionModeFromJSON)(json['ingestion_mode']),
|
|
42
43
|
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
44
|
+
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : (0, ImageTaxonomy_1.ImageTaxonomyFromJSON)(json['secondary_taxonomy']),
|
|
43
45
|
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
44
46
|
'blockType': json['block_type'] == null ? undefined : json['block_type'],
|
|
45
47
|
'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
|
|
@@ -64,6 +66,7 @@ function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
66
|
'summary': value['summary'],
|
|
65
67
|
'ingestion_mode': (0, IngestionMode_1.IngestionModeToJSON)(value['ingestionMode']),
|
|
66
68
|
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
69
|
+
'secondary_taxonomy': (0, ImageTaxonomy_1.ImageTaxonomyToJSON)(value['secondaryTaxonomy']),
|
|
67
70
|
'sheet_name': value['sheetName'],
|
|
68
71
|
'block_type': value['blockType'],
|
|
69
72
|
'source_uri': value['sourceUri'],
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Image classification taxonomy with prompt descriptions.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const ImageTaxonomy: {
|
|
17
|
+
readonly Picture: "picture";
|
|
18
|
+
readonly Flowchart: "flowchart";
|
|
19
|
+
};
|
|
20
|
+
export type ImageTaxonomy = typeof ImageTaxonomy[keyof typeof ImageTaxonomy];
|
|
21
|
+
export declare function instanceOfImageTaxonomy(value: any): boolean;
|
|
22
|
+
export declare function ImageTaxonomyFromJSON(json: any): ImageTaxonomy;
|
|
23
|
+
export declare function ImageTaxonomyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageTaxonomy;
|
|
24
|
+
export declare function ImageTaxonomyToJSON(value?: ImageTaxonomy | null): any;
|
|
25
|
+
export declare function ImageTaxonomyToJSONTyped(value: any, ignoreDiscriminator: boolean): ImageTaxonomy;
|
|
@@ -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.ImageTaxonomy = void 0;
|
|
17
|
+
exports.instanceOfImageTaxonomy = instanceOfImageTaxonomy;
|
|
18
|
+
exports.ImageTaxonomyFromJSON = ImageTaxonomyFromJSON;
|
|
19
|
+
exports.ImageTaxonomyFromJSONTyped = ImageTaxonomyFromJSONTyped;
|
|
20
|
+
exports.ImageTaxonomyToJSON = ImageTaxonomyToJSON;
|
|
21
|
+
exports.ImageTaxonomyToJSONTyped = ImageTaxonomyToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Image classification taxonomy with prompt descriptions.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ImageTaxonomy = {
|
|
27
|
+
Picture: 'picture',
|
|
28
|
+
Flowchart: 'flowchart'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfImageTaxonomy(value) {
|
|
31
|
+
for (const key in exports.ImageTaxonomy) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.ImageTaxonomy, key)) {
|
|
33
|
+
if (exports.ImageTaxonomy[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function ImageTaxonomyFromJSON(json) {
|
|
41
|
+
return ImageTaxonomyFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function ImageTaxonomyFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function ImageTaxonomyToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function ImageTaxonomyToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* Resolved branding with presigned URLs instead of internal S3 URIs.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TenantBrandingResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface TenantBrandingResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Custom brand name for logo
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TenantBrandingResponse
|
|
22
|
+
*/
|
|
23
|
+
brandName?: string | null;
|
|
24
|
+
/**
|
|
25
|
+
* Primary brand hex color
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TenantBrandingResponse
|
|
28
|
+
*/
|
|
29
|
+
brandColor?: string | null;
|
|
30
|
+
/**
|
|
31
|
+
* Presigned URL for primary logo
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TenantBrandingResponse
|
|
34
|
+
*/
|
|
35
|
+
logoUrl?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Presigned URL for dark-mode logo
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TenantBrandingResponse
|
|
40
|
+
*/
|
|
41
|
+
logoDarkUrl?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Presigned URL for favicon
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TenantBrandingResponse
|
|
46
|
+
*/
|
|
47
|
+
faviconUrl?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Custom CSS variable overrides
|
|
50
|
+
* @type {{ [key: string]: string; }}
|
|
51
|
+
* @memberof TenantBrandingResponse
|
|
52
|
+
*/
|
|
53
|
+
themeOverrides?: {
|
|
54
|
+
[key: string]: string;
|
|
55
|
+
} | null;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if a given object implements the TenantBrandingResponse interface.
|
|
59
|
+
*/
|
|
60
|
+
export declare function instanceOfTenantBrandingResponse(value: object): value is TenantBrandingResponse;
|
|
61
|
+
export declare function TenantBrandingResponseFromJSON(json: any): TenantBrandingResponse;
|
|
62
|
+
export declare function TenantBrandingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantBrandingResponse;
|
|
63
|
+
export declare function TenantBrandingResponseToJSON(json: any): TenantBrandingResponse;
|
|
64
|
+
export declare function TenantBrandingResponseToJSONTyped(value?: TenantBrandingResponse | null, ignoreDiscriminator?: boolean): any;
|
|
65
|
+
export declare const TenantBrandingResponsePropertyValidationAttributesMap: {
|
|
66
|
+
[property: string]: {
|
|
67
|
+
maxLength?: number;
|
|
68
|
+
minLength?: number;
|
|
69
|
+
pattern?: string;
|
|
70
|
+
maximum?: number;
|
|
71
|
+
exclusiveMaximum?: boolean;
|
|
72
|
+
minimum?: number;
|
|
73
|
+
exclusiveMinimum?: boolean;
|
|
74
|
+
multipleOf?: number;
|
|
75
|
+
maxItems?: number;
|
|
76
|
+
minItems?: number;
|
|
77
|
+
uniqueItems?: boolean;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
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.TenantBrandingResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfTenantBrandingResponse = instanceOfTenantBrandingResponse;
|
|
18
|
+
exports.TenantBrandingResponseFromJSON = TenantBrandingResponseFromJSON;
|
|
19
|
+
exports.TenantBrandingResponseFromJSONTyped = TenantBrandingResponseFromJSONTyped;
|
|
20
|
+
exports.TenantBrandingResponseToJSON = TenantBrandingResponseToJSON;
|
|
21
|
+
exports.TenantBrandingResponseToJSONTyped = TenantBrandingResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TenantBrandingResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTenantBrandingResponse(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function TenantBrandingResponseFromJSON(json) {
|
|
29
|
+
return TenantBrandingResponseFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function TenantBrandingResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'brandName': json['brand_name'] == null ? undefined : json['brand_name'],
|
|
37
|
+
'brandColor': json['brand_color'] == null ? undefined : json['brand_color'],
|
|
38
|
+
'logoUrl': json['logo_url'] == null ? undefined : json['logo_url'],
|
|
39
|
+
'logoDarkUrl': json['logo_dark_url'] == null ? undefined : json['logo_dark_url'],
|
|
40
|
+
'faviconUrl': json['favicon_url'] == null ? undefined : json['favicon_url'],
|
|
41
|
+
'themeOverrides': json['theme_overrides'] == null ? undefined : json['theme_overrides'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function TenantBrandingResponseToJSON(json) {
|
|
45
|
+
return TenantBrandingResponseToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function TenantBrandingResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'brand_name': value['brandName'],
|
|
53
|
+
'brand_color': value['brandColor'],
|
|
54
|
+
'logo_url': value['logoUrl'],
|
|
55
|
+
'logo_dark_url': value['logoDarkUrl'],
|
|
56
|
+
'favicon_url': value['faviconUrl'],
|
|
57
|
+
'theme_overrides': value['themeOverrides'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.TenantBrandingResponsePropertyValidationAttributesMap = {};
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { TenantBrandingResponse } from './TenantBrandingResponse';
|
|
13
|
+
import type { TenantSettingsResponse } from './TenantSettingsResponse';
|
|
13
14
|
/**
|
|
14
15
|
* Tenant response model.
|
|
15
16
|
* @export
|
|
@@ -38,10 +39,16 @@ export interface TenantResponse {
|
|
|
38
39
|
} | null;
|
|
39
40
|
/**
|
|
40
41
|
*
|
|
41
|
-
* @type {
|
|
42
|
+
* @type {TenantSettingsResponse}
|
|
42
43
|
* @memberof TenantResponse
|
|
43
44
|
*/
|
|
44
|
-
settings:
|
|
45
|
+
settings: TenantSettingsResponse;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {TenantBrandingResponse}
|
|
49
|
+
* @memberof TenantResponse
|
|
50
|
+
*/
|
|
51
|
+
branding?: TenantBrandingResponse;
|
|
45
52
|
}
|
|
46
53
|
/**
|
|
47
54
|
* Check if a given object implements the TenantResponse interface.
|