@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
@@ -19,7 +19,8 @@ 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
+ const TenantBrandingResponse_1 = require("./TenantBrandingResponse");
23
+ const TenantSettingsResponse_1 = require("./TenantSettingsResponse");
23
24
  /**
24
25
  * Check if a given object implements the TenantResponse interface.
25
26
  */
@@ -43,7 +44,8 @@ function TenantResponseFromJSONTyped(json, ignoreDiscriminator) {
43
44
  'id': json['id'],
44
45
  'name': json['name'],
45
46
  'idpConfig': json['idp_config'] == null ? undefined : json['idp_config'],
46
- 'settings': (0, TenantSettings_1.TenantSettingsFromJSON)(json['settings']),
47
+ 'settings': (0, TenantSettingsResponse_1.TenantSettingsResponseFromJSON)(json['settings']),
48
+ 'branding': json['branding'] == null ? undefined : (0, TenantBrandingResponse_1.TenantBrandingResponseFromJSON)(json['branding']),
47
49
  };
48
50
  }
49
51
  function TenantResponseToJSON(json) {
@@ -57,7 +59,8 @@ function TenantResponseToJSONTyped(value, ignoreDiscriminator = false) {
57
59
  'id': value['id'],
58
60
  'name': value['name'],
59
61
  'idp_config': value['idpConfig'],
60
- 'settings': (0, TenantSettings_1.TenantSettingsToJSON)(value['settings']),
62
+ 'settings': (0, TenantSettingsResponse_1.TenantSettingsResponseToJSON)(value['settings']),
63
+ 'branding': (0, TenantBrandingResponse_1.TenantBrandingResponseToJSON)(value['branding']),
61
64
  };
62
65
  }
63
66
  exports.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,57 @@
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.TenantSettingsResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfTenantSettingsResponse = instanceOfTenantSettingsResponse;
18
+ exports.TenantSettingsResponseFromJSON = TenantSettingsResponseFromJSON;
19
+ exports.TenantSettingsResponseFromJSONTyped = TenantSettingsResponseFromJSONTyped;
20
+ exports.TenantSettingsResponseToJSON = TenantSettingsResponseToJSON;
21
+ exports.TenantSettingsResponseToJSONTyped = TenantSettingsResponseToJSONTyped;
22
+ const SupportedLanguage_1 = require("./SupportedLanguage");
23
+ /**
24
+ * Check if a given object implements the TenantSettingsResponse interface.
25
+ */
26
+ function instanceOfTenantSettingsResponse(value) {
27
+ if (!('language' in value) || value['language'] === undefined)
28
+ return false;
29
+ if (!('description' in value) || value['description'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function TenantSettingsResponseFromJSON(json) {
34
+ return TenantSettingsResponseFromJSONTyped(json, false);
35
+ }
36
+ function TenantSettingsResponseFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'language': (0, SupportedLanguage_1.SupportedLanguageFromJSON)(json['language']),
42
+ 'description': json['description'],
43
+ };
44
+ }
45
+ function TenantSettingsResponseToJSON(json) {
46
+ return TenantSettingsResponseToJSONTyped(json, false);
47
+ }
48
+ function TenantSettingsResponseToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'language': (0, SupportedLanguage_1.SupportedLanguageToJSON)(value['language']),
54
+ 'description': value['description'],
55
+ };
56
+ }
57
+ exports.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.
@@ -36,6 +36,9 @@ function TenantSettingsUpdateFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return {
37
37
  'language': json['language'] == null ? undefined : (0, SupportedLanguage_1.SupportedLanguageFromJSON)(json['language']),
38
38
  'description': json['description'] == null ? undefined : json['description'],
39
+ 'brandName': json['brand_name'] == null ? undefined : json['brand_name'],
40
+ 'brandColor': json['brand_color'] == null ? undefined : json['brand_color'],
41
+ 'themeOverrides': json['theme_overrides'] == null ? undefined : json['theme_overrides'],
39
42
  };
40
43
  }
41
44
  function TenantSettingsUpdateToJSON(json) {
@@ -48,6 +51,9 @@ function TenantSettingsUpdateToJSONTyped(value, ignoreDiscriminator = false) {
48
51
  return {
49
52
  'language': (0, SupportedLanguage_1.SupportedLanguageToJSON)(value['language']),
50
53
  'description': value['description'],
54
+ 'brand_name': value['brandName'],
55
+ 'brand_color': value['brandColor'],
56
+ 'theme_overrides': value['themeOverrides'],
51
57
  };
52
58
  }
53
59
  exports.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 './TenantSettings';
103
+ export * from './TenantSettingsResponse';
101
104
  export * from './TenantSettingsUpdate';
102
105
  export * from './TenantUserEditRequest';
103
106
  export * from './TenantUserResponse';
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AcceptInviteResponse"), exports);
20
20
  __exportStar(require("./ApiKeyResponse"), exports);
21
21
  __exportStar(require("./Args"), exports);
22
+ __exportStar(require("./BrandingLogoType"), exports);
22
23
  __exportStar(require("./BulkTagRequest"), exports);
23
24
  __exportStar(require("./ChunkBulkResponse"), exports);
24
25
  __exportStar(require("./ChunkContentItem"), exports);
@@ -62,6 +63,7 @@ __exportStar(require("./FolderResponseOrDocumentResponse"), exports);
62
63
  __exportStar(require("./HTTPValidationError"), exports);
63
64
  __exportStar(require("./HealthCheckResponse"), exports);
64
65
  __exportStar(require("./IdpType"), exports);
66
+ __exportStar(require("./ImageTaxonomy"), exports);
65
67
  __exportStar(require("./IngestDocumentResponse"), exports);
66
68
  __exportStar(require("./IngestionMode"), exports);
67
69
  __exportStar(require("./InviteResponse"), exports);
@@ -114,8 +116,9 @@ __exportStar(require("./SubtreeChunkGroup"), exports);
114
116
  __exportStar(require("./SubtreeChunksResponse"), exports);
115
117
  __exportStar(require("./SupportedLanguage"), exports);
116
118
  __exportStar(require("./TagResponse"), exports);
119
+ __exportStar(require("./TenantBrandingResponse"), exports);
117
120
  __exportStar(require("./TenantResponse"), exports);
118
- __exportStar(require("./TenantSettings"), exports);
121
+ __exportStar(require("./TenantSettingsResponse"), exports);
119
122
  __exportStar(require("./TenantSettingsUpdate"), exports);
120
123
  __exportStar(require("./TenantUserEditRequest"), exports);
121
124
  __exportStar(require("./TenantUserResponse"), exports);
@@ -0,0 +1,33 @@
1
+
2
+ # BrandingLogoType
3
+
4
+ Types of branding logos that can be uploaded.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { BrandingLogoType } from '@knowledge-stack/ksapi'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies BrandingLogoType
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as BrandingLogoType
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
32
+
33
+
@@ -12,6 +12,7 @@ Name | Type
12
12
  `summary` | string
13
13
  `ingestionMode` | [IngestionMode](IngestionMode.md)
14
14
  `extractedTextS3Uri` | string
15
+ `secondaryTaxonomy` | [ImageTaxonomy](ImageTaxonomy.md)
15
16
  `sheetName` | string
16
17
  `blockType` | string
17
18
  `sourceUri` | string
@@ -34,6 +35,7 @@ const example = {
34
35
  "summary": null,
35
36
  "ingestionMode": null,
36
37
  "extractedTextS3Uri": null,
38
+ "secondaryTaxonomy": null,
37
39
  "sheetName": null,
38
40
  "blockType": null,
39
41
  "sourceUri": null,
@@ -12,6 +12,7 @@ Name | Type
12
12
  `summary` | string
13
13
  `ingestionMode` | [IngestionMode](IngestionMode.md)
14
14
  `extractedTextS3Uri` | string
15
+ `secondaryTaxonomy` | [ImageTaxonomy](ImageTaxonomy.md)
15
16
  `sheetName` | string
16
17
  `blockType` | string
17
18
  `sourceUri` | string
@@ -34,6 +35,7 @@ const example = {
34
35
  "summary": null,
35
36
  "ingestionMode": null,
36
37
  "extractedTextS3Uri": null,
38
+ "secondaryTaxonomy": null,
37
39
  "sheetName": null,
38
40
  "blockType": null,
39
41
  "sourceUri": null,
@@ -241,7 +241,7 @@ No authorization required
241
241
 
242
242
  ## ingestDocument
243
243
 
244
- > IngestDocumentResponse ingestDocument(file, pathPartId, authorization, ksUat, name, ingestionMode, chunkType, pageDpi)
244
+ > IngestDocumentResponse ingestDocument(file, pathPartId, authorization, ksUat, name, ingestionMode, chunkType, secondaryTaxonomy, pageDpi)
245
245
 
246
246
  Ingest Document Handler
247
247
 
@@ -275,6 +275,8 @@ async function example() {
275
275
  ingestionMode: ...,
276
276
  // ChunkType (optional)
277
277
  chunkType: ...,
278
+ // ImageTaxonomy (optional)
279
+ secondaryTaxonomy: ...,
278
280
  // number | DPI for PDF page screenshots (default 72, min 36, max 216). (optional)
279
281
  pageDpi: 56,
280
282
  } satisfies IngestDocumentRequest;
@@ -303,6 +305,7 @@ example().catch(console.error);
303
305
  | **name** | `string` | Document name (defaults to filename) | [Optional] [Defaults to `undefined`] |
304
306
  | **ingestionMode** | `IngestionMode` | | [Optional] [Defaults to `undefined`] [Enum: document, single_chunk] |
305
307
  | **chunkType** | `ChunkType` | | [Optional] [Defaults to `undefined`] [Enum: TEXT, TABLE, IMAGE, HTML, UNKNOWN] |
308
+ | **secondaryTaxonomy** | `ImageTaxonomy` | | [Optional] [Defaults to `undefined`] [Enum: picture, flowchart] |
306
309
  | **pageDpi** | `number` | DPI for PDF page screenshots (default 72, min 36, max 216). | [Optional] [Defaults to `72`] |
307
310
 
308
311
  ### Return type
@@ -330,7 +333,7 @@ No authorization required
330
333
 
331
334
  ## ingestDocumentVersion
332
335
 
333
- > IngestDocumentResponse ingestDocumentVersion(documentId, file, authorization, ksUat, ingestionMode, chunkType, pageDpi)
336
+ > IngestDocumentResponse ingestDocumentVersion(documentId, file, authorization, ksUat, ingestionMode, chunkType, secondaryTaxonomy, pageDpi)
334
337
 
335
338
  Ingest Document Version Handler
336
339
 
@@ -362,6 +365,8 @@ async function example() {
362
365
  ingestionMode: ...,
363
366
  // ChunkType (optional)
364
367
  chunkType: ...,
368
+ // ImageTaxonomy (optional)
369
+ secondaryTaxonomy: ...,
365
370
  // number | DPI for PDF page screenshots (default 72, min 36, max 216). (optional)
366
371
  pageDpi: 56,
367
372
  } satisfies IngestDocumentVersionRequest;
@@ -389,6 +394,7 @@ example().catch(console.error);
389
394
  | **ksUat** | `string` | | [Optional] [Defaults to `undefined`] |
390
395
  | **ingestionMode** | `IngestionMode` | | [Optional] [Defaults to `undefined`] [Enum: document, single_chunk] |
391
396
  | **chunkType** | `ChunkType` | | [Optional] [Defaults to `undefined`] [Enum: TEXT, TABLE, IMAGE, HTML, UNKNOWN] |
397
+ | **secondaryTaxonomy** | `ImageTaxonomy` | | [Optional] [Defaults to `undefined`] [Enum: picture, flowchart] |
392
398
  | **pageDpi** | `number` | DPI for PDF page screenshots (default 72, min 36, max 216). | [Optional] [Defaults to `72`] |
393
399
 
394
400
  ### Return type
@@ -0,0 +1,33 @@
1
+
2
+ # ImageTaxonomy
3
+
4
+ Image classification taxonomy with prompt descriptions.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { ImageTaxonomy } from '@knowledge-stack/ksapi'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies ImageTaxonomy
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as ImageTaxonomy
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
32
+
33
+
@@ -0,0 +1,45 @@
1
+
2
+ # TenantBrandingResponse
3
+
4
+ Resolved branding with presigned URLs instead of internal S3 URIs.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `brandName` | string
11
+ `brandColor` | string
12
+ `logoUrl` | string
13
+ `logoDarkUrl` | string
14
+ `faviconUrl` | string
15
+ `themeOverrides` | { [key: string]: string; }
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { TenantBrandingResponse } from '@knowledge-stack/ksapi'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "brandName": null,
25
+ "brandColor": null,
26
+ "logoUrl": null,
27
+ "logoDarkUrl": null,
28
+ "faviconUrl": null,
29
+ "themeOverrides": null,
30
+ } satisfies TenantBrandingResponse
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as TenantBrandingResponse
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
44
+
45
+
@@ -10,7 +10,8 @@ Name | Type
10
10
  `id` | string
11
11
  `name` | string
12
12
  `idpConfig` | { [key: string]: string; }
13
- `settings` | [TenantSettings](TenantSettings.md)
13
+ `settings` | [TenantSettingsResponse](TenantSettingsResponse.md)
14
+ `branding` | [TenantBrandingResponse](TenantBrandingResponse.md)
14
15
 
15
16
  ## Example
16
17
 
@@ -23,6 +24,7 @@ const example = {
23
24
  "name": null,
24
25
  "idpConfig": null,
25
26
  "settings": null,
27
+ "branding": null,
26
28
  } satisfies TenantResponse
27
29
 
28
30
  console.log(example)
@@ -1,6 +1,7 @@
1
1
 
2
- # TenantSettings
2
+ # TenantSettingsResponse
3
3
 
4
+ Tenant settings as exposed via API (no internal S3 URIs).
4
5
 
5
6
  ## Properties
6
7
 
@@ -12,13 +13,13 @@ Name | Type
12
13
  ## Example
13
14
 
14
15
  ```typescript
15
- import type { TenantSettings } from '@knowledge-stack/ksapi'
16
+ import type { TenantSettingsResponse } from '@knowledge-stack/ksapi'
16
17
 
17
18
  // TODO: Update the object below with actual values
18
19
  const example = {
19
20
  "language": null,
20
21
  "description": null,
21
- } satisfies TenantSettings
22
+ } satisfies TenantSettingsResponse
22
23
 
23
24
  console.log(example)
24
25
 
@@ -27,7 +28,7 @@ const exampleJSON: string = JSON.stringify(example)
27
28
  console.log(exampleJSON)
28
29
 
29
30
  // Parse the JSON string back to an object
30
- const exampleParsed = JSON.parse(exampleJSON) as TenantSettings
31
+ const exampleParsed = JSON.parse(exampleJSON) as TenantSettingsResponse
31
32
  console.log(exampleParsed)
32
33
  ```
33
34
 
@@ -9,6 +9,9 @@ Name | Type
9
9
  ------------ | -------------
10
10
  `language` | [SupportedLanguage](SupportedLanguage.md)
11
11
  `description` | string
12
+ `brandName` | string
13
+ `brandColor` | string
14
+ `themeOverrides` | { [key: string]: string; }
12
15
 
13
16
  ## Example
14
17
 
@@ -19,6 +22,9 @@ import type { TenantSettingsUpdate } from '@knowledge-stack/ksapi'
19
22
  const example = {
20
23
  "language": null,
21
24
  "description": null,
25
+ "brandName": null,
26
+ "brandColor": null,
27
+ "themeOverrides": null,
22
28
  } satisfies TenantSettingsUpdate
23
29
 
24
30
  console.log(example)