@knowledge-stack/ksapi 1.49.0 → 1.51.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 +6 -2
- package/README.md +7 -3
- package/dist/apis/TenantsApi.d.ts +98 -1
- package/dist/apis/TenantsApi.js +116 -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/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 +3 -1
- package/dist/esm/models/index.js +3 -1
- package/dist/models/BrandingLogoType.d.ts +26 -0
- package/dist/models/BrandingLogoType.js +52 -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 +3 -1
- package/dist/models/index.js +3 -1
- package/docs/BrandingLogoType.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/TenantsApi.ts +218 -0
- package/src/models/BrandingLogoType.ts +54 -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 +3 -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
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* Types of branding logos that can be uploaded.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const BrandingLogoType = {
|
|
19
|
+
Logo: 'logo',
|
|
20
|
+
LogoDark: 'logo_dark',
|
|
21
|
+
Favicon: 'favicon'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfBrandingLogoType(value) {
|
|
24
|
+
for (const key in BrandingLogoType) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(BrandingLogoType, key)) {
|
|
26
|
+
if (BrandingLogoType[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function BrandingLogoTypeFromJSON(json) {
|
|
34
|
+
return BrandingLogoTypeFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function BrandingLogoTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function BrandingLogoTypeToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function BrandingLogoTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -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,52 @@
|
|
|
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
|
+
* Check if a given object implements the TenantBrandingResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTenantBrandingResponse(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function TenantBrandingResponseFromJSON(json) {
|
|
21
|
+
return TenantBrandingResponseFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function TenantBrandingResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'brandName': json['brand_name'] == null ? undefined : json['brand_name'],
|
|
29
|
+
'brandColor': json['brand_color'] == null ? undefined : json['brand_color'],
|
|
30
|
+
'logoUrl': json['logo_url'] == null ? undefined : json['logo_url'],
|
|
31
|
+
'logoDarkUrl': json['logo_dark_url'] == null ? undefined : json['logo_dark_url'],
|
|
32
|
+
'faviconUrl': json['favicon_url'] == null ? undefined : json['favicon_url'],
|
|
33
|
+
'themeOverrides': json['theme_overrides'] == null ? undefined : json['theme_overrides'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function TenantBrandingResponseToJSON(json) {
|
|
37
|
+
return TenantBrandingResponseToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function TenantBrandingResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'brand_name': value['brandName'],
|
|
45
|
+
'brand_color': value['brandColor'],
|
|
46
|
+
'logo_url': value['logoUrl'],
|
|
47
|
+
'logo_dark_url': value['logoDarkUrl'],
|
|
48
|
+
'favicon_url': value['faviconUrl'],
|
|
49
|
+
'theme_overrides': value['themeOverrides'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export const 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.
|
|
@@ -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';
|
|
@@ -97,8 +98,9 @@ export * from './SubtreeChunkGroup';
|
|
|
97
98
|
export * from './SubtreeChunksResponse';
|
|
98
99
|
export * from './SupportedLanguage';
|
|
99
100
|
export * from './TagResponse';
|
|
101
|
+
export * from './TenantBrandingResponse';
|
|
100
102
|
export * from './TenantResponse';
|
|
101
|
-
export * from './
|
|
103
|
+
export * from './TenantSettingsResponse';
|
|
102
104
|
export * from './TenantSettingsUpdate';
|
|
103
105
|
export * from './TenantUserEditRequest';
|
|
104
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';
|
|
@@ -99,8 +100,9 @@ export * from './SubtreeChunkGroup';
|
|
|
99
100
|
export * from './SubtreeChunksResponse';
|
|
100
101
|
export * from './SupportedLanguage';
|
|
101
102
|
export * from './TagResponse';
|
|
103
|
+
export * from './TenantBrandingResponse';
|
|
102
104
|
export * from './TenantResponse';
|
|
103
|
-
export * from './
|
|
105
|
+
export * from './TenantSettingsResponse';
|
|
104
106
|
export * from './TenantSettingsUpdate';
|
|
105
107
|
export * from './TenantUserEditRequest';
|
|
106
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
|
+
}
|
|
@@ -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.
|