@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.
Files changed (72) hide show
  1. package/.openapi-generator/FILES +8 -2
  2. package/README.md +8 -3
  3. package/dist/apis/DocumentsApi.d.ts +7 -1
  4. package/dist/apis/DocumentsApi.js +6 -0
  5. package/dist/apis/TenantsApi.d.ts +98 -1
  6. package/dist/apis/TenantsApi.js +116 -0
  7. package/dist/esm/apis/DocumentsApi.d.ts +7 -1
  8. package/dist/esm/apis/DocumentsApi.js +6 -0
  9. package/dist/esm/apis/TenantsApi.d.ts +98 -1
  10. package/dist/esm/apis/TenantsApi.js +116 -0
  11. package/dist/esm/models/BrandingLogoType.d.ts +26 -0
  12. package/dist/esm/models/BrandingLogoType.js +44 -0
  13. package/dist/esm/models/ChunkMetadataInput.d.ts +7 -0
  14. package/dist/esm/models/ChunkMetadataInput.js +3 -0
  15. package/dist/esm/models/ChunkMetadataOutput.d.ts +7 -0
  16. package/dist/esm/models/ChunkMetadataOutput.js +3 -0
  17. package/dist/esm/models/ImageTaxonomy.d.ts +25 -0
  18. package/dist/esm/models/ImageTaxonomy.js +43 -0
  19. package/dist/esm/models/TenantBrandingResponse.d.ts +79 -0
  20. package/dist/esm/models/TenantBrandingResponse.js +52 -0
  21. package/dist/esm/models/TenantResponse.d.ts +10 -3
  22. package/dist/esm/models/TenantResponse.js +6 -3
  23. package/dist/esm/models/TenantSettingsResponse.d.ts +54 -0
  24. package/dist/esm/models/TenantSettingsResponse.js +49 -0
  25. package/dist/esm/models/TenantSettingsUpdate.d.ts +20 -0
  26. package/dist/esm/models/TenantSettingsUpdate.js +6 -0
  27. package/dist/esm/models/index.d.ts +4 -1
  28. package/dist/esm/models/index.js +4 -1
  29. package/dist/models/BrandingLogoType.d.ts +26 -0
  30. package/dist/models/BrandingLogoType.js +52 -0
  31. package/dist/models/ChunkMetadataInput.d.ts +7 -0
  32. package/dist/models/ChunkMetadataInput.js +3 -0
  33. package/dist/models/ChunkMetadataOutput.d.ts +7 -0
  34. package/dist/models/ChunkMetadataOutput.js +3 -0
  35. package/dist/models/ImageTaxonomy.d.ts +25 -0
  36. package/dist/models/ImageTaxonomy.js +51 -0
  37. package/dist/models/TenantBrandingResponse.d.ts +79 -0
  38. package/dist/models/TenantBrandingResponse.js +60 -0
  39. package/dist/models/TenantResponse.d.ts +10 -3
  40. package/dist/models/TenantResponse.js +6 -3
  41. package/dist/models/TenantSettingsResponse.d.ts +54 -0
  42. package/dist/models/TenantSettingsResponse.js +57 -0
  43. package/dist/models/TenantSettingsUpdate.d.ts +20 -0
  44. package/dist/models/TenantSettingsUpdate.js +6 -0
  45. package/dist/models/index.d.ts +4 -1
  46. package/dist/models/index.js +4 -1
  47. package/docs/BrandingLogoType.md +33 -0
  48. package/docs/ChunkMetadataInput.md +2 -0
  49. package/docs/ChunkMetadataOutput.md +2 -0
  50. package/docs/DocumentsApi.md +8 -2
  51. package/docs/ImageTaxonomy.md +33 -0
  52. package/docs/TenantBrandingResponse.md +45 -0
  53. package/docs/TenantResponse.md +3 -1
  54. package/docs/{TenantSettings.md → TenantSettingsResponse.md} +5 -4
  55. package/docs/TenantSettingsUpdate.md +6 -0
  56. package/docs/TenantsApi.md +159 -0
  57. package/package.json +1 -1
  58. package/src/apis/DocumentsApi.ts +17 -0
  59. package/src/apis/TenantsApi.ts +218 -0
  60. package/src/models/BrandingLogoType.ts +54 -0
  61. package/src/models/ChunkMetadataInput.ts +15 -0
  62. package/src/models/ChunkMetadataOutput.ts +15 -0
  63. package/src/models/ImageTaxonomy.ts +53 -0
  64. package/src/models/TenantBrandingResponse.ts +122 -0
  65. package/src/models/TenantResponse.ts +25 -10
  66. package/src/models/{TenantSettings.ts → TenantSettingsResponse.ts} +20 -18
  67. package/src/models/TenantSettingsUpdate.ts +24 -0
  68. package/src/models/index.ts +4 -1
  69. package/dist/esm/models/TenantSettings.d.ts +0 -54
  70. package/dist/esm/models/TenantSettings.js +0 -45
  71. package/dist/models/TenantSettings.d.ts +0 -54
  72. package/dist/models/TenantSettings.js +0 -53
@@ -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
+ * Image classification taxonomy with prompt descriptions.
18
+ * @export
19
+ */
20
+ export const ImageTaxonomy = {
21
+ Picture: 'picture',
22
+ Flowchart: 'flowchart'
23
+ } as const;
24
+ export type ImageTaxonomy = typeof ImageTaxonomy[keyof typeof ImageTaxonomy];
25
+
26
+
27
+ export function instanceOfImageTaxonomy(value: any): boolean {
28
+ for (const key in ImageTaxonomy) {
29
+ if (Object.prototype.hasOwnProperty.call(ImageTaxonomy, key)) {
30
+ if (ImageTaxonomy[key as keyof typeof ImageTaxonomy] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function ImageTaxonomyFromJSON(json: any): ImageTaxonomy {
39
+ return ImageTaxonomyFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ImageTaxonomyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageTaxonomy {
43
+ return json as ImageTaxonomy;
44
+ }
45
+
46
+ export function ImageTaxonomyToJSON(value?: ImageTaxonomy | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function ImageTaxonomyToJSONTyped(value: any, ignoreDiscriminator: boolean): ImageTaxonomy {
51
+ return value as ImageTaxonomy;
52
+ }
53
+
@@ -0,0 +1,122 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Resolved branding with presigned URLs instead of internal S3 URIs.
18
+ * @export
19
+ * @interface TenantBrandingResponse
20
+ */
21
+ export interface TenantBrandingResponse {
22
+ /**
23
+ * Custom brand name for logo
24
+ * @type {string}
25
+ * @memberof TenantBrandingResponse
26
+ */
27
+ brandName?: string | null;
28
+ /**
29
+ * Primary brand hex color
30
+ * @type {string}
31
+ * @memberof TenantBrandingResponse
32
+ */
33
+ brandColor?: string | null;
34
+ /**
35
+ * Presigned URL for primary logo
36
+ * @type {string}
37
+ * @memberof TenantBrandingResponse
38
+ */
39
+ logoUrl?: string | null;
40
+ /**
41
+ * Presigned URL for dark-mode logo
42
+ * @type {string}
43
+ * @memberof TenantBrandingResponse
44
+ */
45
+ logoDarkUrl?: string | null;
46
+ /**
47
+ * Presigned URL for favicon
48
+ * @type {string}
49
+ * @memberof TenantBrandingResponse
50
+ */
51
+ faviconUrl?: string | null;
52
+ /**
53
+ * Custom CSS variable overrides
54
+ * @type {{ [key: string]: string; }}
55
+ * @memberof TenantBrandingResponse
56
+ */
57
+ themeOverrides?: { [key: string]: string; } | null;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the TenantBrandingResponse interface.
62
+ */
63
+ export function instanceOfTenantBrandingResponse(value: object): value is TenantBrandingResponse {
64
+ return true;
65
+ }
66
+
67
+ export function TenantBrandingResponseFromJSON(json: any): TenantBrandingResponse {
68
+ return TenantBrandingResponseFromJSONTyped(json, false);
69
+ }
70
+
71
+ export function TenantBrandingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantBrandingResponse {
72
+ if (json == null) {
73
+ return json;
74
+ }
75
+ return {
76
+
77
+ 'brandName': json['brand_name'] == null ? undefined : json['brand_name'],
78
+ 'brandColor': json['brand_color'] == null ? undefined : json['brand_color'],
79
+ 'logoUrl': json['logo_url'] == null ? undefined : json['logo_url'],
80
+ 'logoDarkUrl': json['logo_dark_url'] == null ? undefined : json['logo_dark_url'],
81
+ 'faviconUrl': json['favicon_url'] == null ? undefined : json['favicon_url'],
82
+ 'themeOverrides': json['theme_overrides'] == null ? undefined : json['theme_overrides'],
83
+ };
84
+ }
85
+
86
+ export function TenantBrandingResponseToJSON(json: any): TenantBrandingResponse {
87
+ return TenantBrandingResponseToJSONTyped(json, false);
88
+ }
89
+
90
+ export function TenantBrandingResponseToJSONTyped(value?: TenantBrandingResponse | null, ignoreDiscriminator: boolean = false): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+
95
+ return {
96
+
97
+ 'brand_name': value['brandName'],
98
+ 'brand_color': value['brandColor'],
99
+ 'logo_url': value['logoUrl'],
100
+ 'logo_dark_url': value['logoDarkUrl'],
101
+ 'favicon_url': value['faviconUrl'],
102
+ 'theme_overrides': value['themeOverrides'],
103
+ };
104
+ }
105
+
106
+ export const TenantBrandingResponsePropertyValidationAttributesMap: {
107
+ [property: string]: {
108
+ maxLength?: number,
109
+ minLength?: number,
110
+ pattern?: string,
111
+ maximum?: number,
112
+ exclusiveMaximum?: boolean,
113
+ minimum?: number,
114
+ exclusiveMinimum?: boolean,
115
+ multipleOf?: number,
116
+ maxItems?: number,
117
+ minItems?: number,
118
+ uniqueItems?: boolean
119
+ }
120
+ } = {
121
+ }
122
+
@@ -13,13 +13,20 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
- import type { TenantSettings } from './TenantSettings';
16
+ import type { TenantBrandingResponse } from './TenantBrandingResponse';
17
17
  import {
18
- TenantSettingsFromJSON,
19
- TenantSettingsFromJSONTyped,
20
- TenantSettingsToJSON,
21
- TenantSettingsToJSONTyped,
22
- } from './TenantSettings';
18
+ TenantBrandingResponseFromJSON,
19
+ TenantBrandingResponseFromJSONTyped,
20
+ TenantBrandingResponseToJSON,
21
+ TenantBrandingResponseToJSONTyped,
22
+ } from './TenantBrandingResponse';
23
+ import type { TenantSettingsResponse } from './TenantSettingsResponse';
24
+ import {
25
+ TenantSettingsResponseFromJSON,
26
+ TenantSettingsResponseFromJSONTyped,
27
+ TenantSettingsResponseToJSON,
28
+ TenantSettingsResponseToJSONTyped,
29
+ } from './TenantSettingsResponse';
23
30
 
24
31
  /**
25
32
  * Tenant response model.
@@ -47,10 +54,16 @@ export interface TenantResponse {
47
54
  idpConfig?: { [key: string]: string; } | null;
48
55
  /**
49
56
  *
50
- * @type {TenantSettings}
57
+ * @type {TenantSettingsResponse}
58
+ * @memberof TenantResponse
59
+ */
60
+ settings: TenantSettingsResponse;
61
+ /**
62
+ *
63
+ * @type {TenantBrandingResponse}
51
64
  * @memberof TenantResponse
52
65
  */
53
- settings: TenantSettings;
66
+ branding?: TenantBrandingResponse;
54
67
  }
55
68
 
56
69
  /**
@@ -76,7 +89,8 @@ export function TenantResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
76
89
  'id': json['id'],
77
90
  'name': json['name'],
78
91
  'idpConfig': json['idp_config'] == null ? undefined : json['idp_config'],
79
- 'settings': TenantSettingsFromJSON(json['settings']),
92
+ 'settings': TenantSettingsResponseFromJSON(json['settings']),
93
+ 'branding': json['branding'] == null ? undefined : TenantBrandingResponseFromJSON(json['branding']),
80
94
  };
81
95
  }
82
96
 
@@ -94,7 +108,8 @@ export function TenantResponseToJSONTyped(value?: TenantResponse | null, ignoreD
94
108
  'id': value['id'],
95
109
  'name': value['name'],
96
110
  'idp_config': value['idpConfig'],
97
- 'settings': TenantSettingsToJSON(value['settings']),
111
+ 'settings': TenantSettingsResponseToJSON(value['settings']),
112
+ 'branding': TenantBrandingResponseToJSON(value['branding']),
98
113
  };
99
114
  }
100
115
 
@@ -22,54 +22,56 @@ import {
22
22
  } from './SupportedLanguage';
23
23
 
24
24
  /**
25
- *
25
+ * Tenant settings as exposed via API (no internal S3 URIs).
26
26
  * @export
27
- * @interface TenantSettings
27
+ * @interface TenantSettingsResponse
28
28
  */
29
- export interface TenantSettings {
29
+ export interface TenantSettingsResponse {
30
30
  /**
31
31
  *
32
32
  * @type {SupportedLanguage}
33
- * @memberof TenantSettings
33
+ * @memberof TenantSettingsResponse
34
34
  */
35
- language?: SupportedLanguage;
35
+ language: SupportedLanguage;
36
36
  /**
37
37
  * Tenant description
38
38
  * @type {string}
39
- * @memberof TenantSettings
39
+ * @memberof TenantSettingsResponse
40
40
  */
41
- description?: string;
41
+ description: string;
42
42
  }
43
43
 
44
44
 
45
45
 
46
46
  /**
47
- * Check if a given object implements the TenantSettings interface.
47
+ * Check if a given object implements the TenantSettingsResponse interface.
48
48
  */
49
- export function instanceOfTenantSettings(value: object): value is TenantSettings {
49
+ export function instanceOfTenantSettingsResponse(value: object): value is TenantSettingsResponse {
50
+ if (!('language' in value) || value['language'] === undefined) return false;
51
+ if (!('description' in value) || value['description'] === undefined) return false;
50
52
  return true;
51
53
  }
52
54
 
53
- export function TenantSettingsFromJSON(json: any): TenantSettings {
54
- return TenantSettingsFromJSONTyped(json, false);
55
+ export function TenantSettingsResponseFromJSON(json: any): TenantSettingsResponse {
56
+ return TenantSettingsResponseFromJSONTyped(json, false);
55
57
  }
56
58
 
57
- export function TenantSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantSettings {
59
+ export function TenantSettingsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantSettingsResponse {
58
60
  if (json == null) {
59
61
  return json;
60
62
  }
61
63
  return {
62
64
 
63
- 'language': json['language'] == null ? undefined : SupportedLanguageFromJSON(json['language']),
64
- 'description': json['description'] == null ? undefined : json['description'],
65
+ 'language': SupportedLanguageFromJSON(json['language']),
66
+ 'description': json['description'],
65
67
  };
66
68
  }
67
69
 
68
- export function TenantSettingsToJSON(json: any): TenantSettings {
69
- return TenantSettingsToJSONTyped(json, false);
70
+ export function TenantSettingsResponseToJSON(json: any): TenantSettingsResponse {
71
+ return TenantSettingsResponseToJSONTyped(json, false);
70
72
  }
71
73
 
72
- export function TenantSettingsToJSONTyped(value?: TenantSettings | null, ignoreDiscriminator: boolean = false): any {
74
+ export function TenantSettingsResponseToJSONTyped(value?: TenantSettingsResponse | null, ignoreDiscriminator: boolean = false): any {
73
75
  if (value == null) {
74
76
  return value;
75
77
  }
@@ -81,7 +83,7 @@ export function TenantSettingsToJSONTyped(value?: TenantSettings | null, ignoreD
81
83
  };
82
84
  }
83
85
 
84
- export const TenantSettingsPropertyValidationAttributesMap: {
86
+ export const TenantSettingsResponsePropertyValidationAttributesMap: {
85
87
  [property: string]: {
86
88
  maxLength?: number,
87
89
  minLength?: number,
@@ -39,6 +39,24 @@ export interface TenantSettingsUpdate {
39
39
  * @memberof TenantSettingsUpdate
40
40
  */
41
41
  description?: string | null;
42
+ /**
43
+ * Custom brand name for logo
44
+ * @type {string}
45
+ * @memberof TenantSettingsUpdate
46
+ */
47
+ brandName?: string | null;
48
+ /**
49
+ * Primary brand hex color (e.g. '#2563eb')
50
+ * @type {string}
51
+ * @memberof TenantSettingsUpdate
52
+ */
53
+ brandColor?: string | null;
54
+ /**
55
+ * Custom CSS variable overrides
56
+ * @type {{ [key: string]: string; }}
57
+ * @memberof TenantSettingsUpdate
58
+ */
59
+ themeOverrides?: { [key: string]: string; } | null;
42
60
  }
43
61
 
44
62
 
@@ -62,6 +80,9 @@ export function TenantSettingsUpdateFromJSONTyped(json: any, ignoreDiscriminator
62
80
 
63
81
  'language': json['language'] == null ? undefined : SupportedLanguageFromJSON(json['language']),
64
82
  'description': json['description'] == null ? undefined : json['description'],
83
+ 'brandName': json['brand_name'] == null ? undefined : json['brand_name'],
84
+ 'brandColor': json['brand_color'] == null ? undefined : json['brand_color'],
85
+ 'themeOverrides': json['theme_overrides'] == null ? undefined : json['theme_overrides'],
65
86
  };
66
87
  }
67
88
 
@@ -78,6 +99,9 @@ export function TenantSettingsUpdateToJSONTyped(value?: TenantSettingsUpdate | n
78
99
 
79
100
  'language': SupportedLanguageToJSON(value['language']),
80
101
  'description': value['description'],
102
+ 'brand_name': value['brandName'],
103
+ 'brand_color': value['brandColor'],
104
+ 'theme_overrides': value['themeOverrides'],
81
105
  };
82
106
  }
83
107
 
@@ -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 './TenantSettings';
105
+ export * from './TenantSettingsResponse';
103
106
  export * from './TenantSettingsUpdate';
104
107
  export * from './TenantUserEditRequest';
105
108
  export * from './TenantUserResponse';
@@ -1,54 +0,0 @@
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
- * Tenant description
27
- * @type {string}
28
- * @memberof TenantSettings
29
- */
30
- description?: string;
31
- }
32
- /**
33
- * Check if a given object implements the TenantSettings interface.
34
- */
35
- export declare function instanceOfTenantSettings(value: object): value is TenantSettings;
36
- export declare function TenantSettingsFromJSON(json: any): TenantSettings;
37
- export declare function TenantSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantSettings;
38
- export declare function TenantSettingsToJSON(json: any): TenantSettings;
39
- export declare function TenantSettingsToJSONTyped(value?: TenantSettings | null, ignoreDiscriminator?: boolean): any;
40
- export declare const TenantSettingsPropertyValidationAttributesMap: {
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
- };
@@ -1,45 +0,0 @@
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 TenantSettings interface.
17
- */
18
- export function instanceOfTenantSettings(value) {
19
- return true;
20
- }
21
- export function TenantSettingsFromJSON(json) {
22
- return TenantSettingsFromJSONTyped(json, false);
23
- }
24
- export function TenantSettingsFromJSONTyped(json, ignoreDiscriminator) {
25
- if (json == null) {
26
- return json;
27
- }
28
- return {
29
- 'language': json['language'] == null ? undefined : SupportedLanguageFromJSON(json['language']),
30
- 'description': json['description'] == null ? undefined : json['description'],
31
- };
32
- }
33
- export function TenantSettingsToJSON(json) {
34
- return TenantSettingsToJSONTyped(json, false);
35
- }
36
- export function TenantSettingsToJSONTyped(value, ignoreDiscriminator = false) {
37
- if (value == null) {
38
- return value;
39
- }
40
- return {
41
- 'language': SupportedLanguageToJSON(value['language']),
42
- 'description': value['description'],
43
- };
44
- }
45
- export const TenantSettingsPropertyValidationAttributesMap = {};
@@ -1,54 +0,0 @@
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
- * Tenant description
27
- * @type {string}
28
- * @memberof TenantSettings
29
- */
30
- description?: string;
31
- }
32
- /**
33
- * Check if a given object implements the TenantSettings interface.
34
- */
35
- export declare function instanceOfTenantSettings(value: object): value is TenantSettings;
36
- export declare function TenantSettingsFromJSON(json: any): TenantSettings;
37
- export declare function TenantSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantSettings;
38
- export declare function TenantSettingsToJSON(json: any): TenantSettings;
39
- export declare function TenantSettingsToJSONTyped(value?: TenantSettings | null, ignoreDiscriminator?: boolean): any;
40
- export declare const TenantSettingsPropertyValidationAttributesMap: {
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
- };
@@ -1,53 +0,0 @@
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
- 'description': json['description'] == null ? undefined : json['description'],
39
- };
40
- }
41
- function TenantSettingsToJSON(json) {
42
- return TenantSettingsToJSONTyped(json, false);
43
- }
44
- function TenantSettingsToJSONTyped(value, ignoreDiscriminator = false) {
45
- if (value == null) {
46
- return value;
47
- }
48
- return {
49
- 'language': (0, SupportedLanguage_1.SupportedLanguageToJSON)(value['language']),
50
- 'description': value['description'],
51
- };
52
- }
53
- exports.TenantSettingsPropertyValidationAttributesMap = {};