@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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateTenantRequest, PaginatedResponseTenantResponse, PaginatedResponseTenantUserResponse, TenantResponse, TenantUserEditRequest, TenantUserResponse, UpdateTenantRequest } from '../models/index';
|
|
13
|
+
import type { BrandingLogoType, CreateTenantRequest, PaginatedResponseTenantResponse, PaginatedResponseTenantUserResponse, TenantResponse, TenantUserEditRequest, TenantUserResponse, UpdateTenantRequest } from '../models/index';
|
|
14
14
|
export interface CreateTenantOperationRequest {
|
|
15
15
|
createTenantRequest: CreateTenantRequest;
|
|
16
16
|
authorization?: string | null;
|
|
@@ -21,6 +21,12 @@ export interface DeleteTenantRequest {
|
|
|
21
21
|
authorization?: string | null;
|
|
22
22
|
ksUat?: string | null;
|
|
23
23
|
}
|
|
24
|
+
export interface DeleteTenantLogoRequest {
|
|
25
|
+
tenantId: string;
|
|
26
|
+
logoType?: BrandingLogoType;
|
|
27
|
+
authorization?: string | null;
|
|
28
|
+
ksUat?: string | null;
|
|
29
|
+
}
|
|
24
30
|
export interface DeleteTenantUserRequest {
|
|
25
31
|
tenantId: string;
|
|
26
32
|
userId: string;
|
|
@@ -58,6 +64,13 @@ export interface UpdateTenantUserRequest {
|
|
|
58
64
|
authorization?: string | null;
|
|
59
65
|
ksUat?: string | null;
|
|
60
66
|
}
|
|
67
|
+
export interface UploadTenantLogoRequest {
|
|
68
|
+
tenantId: string;
|
|
69
|
+
file: Blob;
|
|
70
|
+
authorization?: string | null;
|
|
71
|
+
ksUat?: string | null;
|
|
72
|
+
logoType?: BrandingLogoType;
|
|
73
|
+
}
|
|
61
74
|
/**
|
|
62
75
|
* TenantsApi - interface
|
|
63
76
|
*
|
|
@@ -115,6 +128,33 @@ export interface TenantsApiInterface {
|
|
|
115
128
|
* Delete Tenant
|
|
116
129
|
*/
|
|
117
130
|
deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
131
|
+
/**
|
|
132
|
+
* Creates request options for deleteTenantLogo without sending the request
|
|
133
|
+
* @param {string} tenantId
|
|
134
|
+
* @param {BrandingLogoType} [logoType]
|
|
135
|
+
* @param {string} [authorization]
|
|
136
|
+
* @param {string} [ksUat]
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
* @memberof TenantsApiInterface
|
|
139
|
+
*/
|
|
140
|
+
deleteTenantLogoRequestOpts(requestParameters: DeleteTenantLogoRequest): Promise<runtime.RequestOpts>;
|
|
141
|
+
/**
|
|
142
|
+
* Delete a branding logo. Requires OWNER or ADMIN role.
|
|
143
|
+
* @summary Delete Tenant Logo
|
|
144
|
+
* @param {string} tenantId
|
|
145
|
+
* @param {BrandingLogoType} [logoType]
|
|
146
|
+
* @param {string} [authorization]
|
|
147
|
+
* @param {string} [ksUat]
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
* @memberof TenantsApiInterface
|
|
151
|
+
*/
|
|
152
|
+
deleteTenantLogoRaw(requestParameters: DeleteTenantLogoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenantResponse>>;
|
|
153
|
+
/**
|
|
154
|
+
* Delete a branding logo. Requires OWNER or ADMIN role.
|
|
155
|
+
* Delete Tenant Logo
|
|
156
|
+
*/
|
|
157
|
+
deleteTenantLogo(requestParameters: DeleteTenantLogoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenantResponse>;
|
|
118
158
|
/**
|
|
119
159
|
* Creates request options for deleteTenantUser without sending the request
|
|
120
160
|
* @param {string} tenantId
|
|
@@ -279,6 +319,35 @@ export interface TenantsApiInterface {
|
|
|
279
319
|
* Update Tenant User
|
|
280
320
|
*/
|
|
281
321
|
updateTenantUser(requestParameters: UpdateTenantUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenantUserResponse>;
|
|
322
|
+
/**
|
|
323
|
+
* Creates request options for uploadTenantLogo without sending the request
|
|
324
|
+
* @param {string} tenantId
|
|
325
|
+
* @param {Blob} file
|
|
326
|
+
* @param {string} [authorization]
|
|
327
|
+
* @param {string} [ksUat]
|
|
328
|
+
* @param {BrandingLogoType} [logoType]
|
|
329
|
+
* @throws {RequiredError}
|
|
330
|
+
* @memberof TenantsApiInterface
|
|
331
|
+
*/
|
|
332
|
+
uploadTenantLogoRequestOpts(requestParameters: UploadTenantLogoRequest): Promise<runtime.RequestOpts>;
|
|
333
|
+
/**
|
|
334
|
+
* Upload a branding logo (primary, dark-mode variant, or favicon). Requires OWNER or ADMIN role. Accepted image types: PNG, JPEG, SVG, WebP, ICO. Max 2 MB.
|
|
335
|
+
* @summary Upload Tenant Logo
|
|
336
|
+
* @param {string} tenantId
|
|
337
|
+
* @param {Blob} file
|
|
338
|
+
* @param {string} [authorization]
|
|
339
|
+
* @param {string} [ksUat]
|
|
340
|
+
* @param {BrandingLogoType} [logoType]
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
* @memberof TenantsApiInterface
|
|
344
|
+
*/
|
|
345
|
+
uploadTenantLogoRaw(requestParameters: UploadTenantLogoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenantResponse>>;
|
|
346
|
+
/**
|
|
347
|
+
* Upload a branding logo (primary, dark-mode variant, or favicon). Requires OWNER or ADMIN role. Accepted image types: PNG, JPEG, SVG, WebP, ICO. Max 2 MB.
|
|
348
|
+
* Upload Tenant Logo
|
|
349
|
+
*/
|
|
350
|
+
uploadTenantLogo(requestParameters: UploadTenantLogoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenantResponse>;
|
|
282
351
|
}
|
|
283
352
|
/**
|
|
284
353
|
*
|
|
@@ -312,6 +381,20 @@ export declare class TenantsApi extends runtime.BaseAPI implements TenantsApiInt
|
|
|
312
381
|
* Delete Tenant
|
|
313
382
|
*/
|
|
314
383
|
deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
384
|
+
/**
|
|
385
|
+
* Creates request options for deleteTenantLogo without sending the request
|
|
386
|
+
*/
|
|
387
|
+
deleteTenantLogoRequestOpts(requestParameters: DeleteTenantLogoRequest): Promise<runtime.RequestOpts>;
|
|
388
|
+
/**
|
|
389
|
+
* Delete a branding logo. Requires OWNER or ADMIN role.
|
|
390
|
+
* Delete Tenant Logo
|
|
391
|
+
*/
|
|
392
|
+
deleteTenantLogoRaw(requestParameters: DeleteTenantLogoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenantResponse>>;
|
|
393
|
+
/**
|
|
394
|
+
* Delete a branding logo. Requires OWNER or ADMIN role.
|
|
395
|
+
* Delete Tenant Logo
|
|
396
|
+
*/
|
|
397
|
+
deleteTenantLogo(requestParameters: DeleteTenantLogoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenantResponse>;
|
|
315
398
|
/**
|
|
316
399
|
* Creates request options for deleteTenantUser without sending the request
|
|
317
400
|
*/
|
|
@@ -396,4 +479,18 @@ export declare class TenantsApi extends runtime.BaseAPI implements TenantsApiInt
|
|
|
396
479
|
* Update Tenant User
|
|
397
480
|
*/
|
|
398
481
|
updateTenantUser(requestParameters: UpdateTenantUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenantUserResponse>;
|
|
482
|
+
/**
|
|
483
|
+
* Creates request options for uploadTenantLogo without sending the request
|
|
484
|
+
*/
|
|
485
|
+
uploadTenantLogoRequestOpts(requestParameters: UploadTenantLogoRequest): Promise<runtime.RequestOpts>;
|
|
486
|
+
/**
|
|
487
|
+
* Upload a branding logo (primary, dark-mode variant, or favicon). Requires OWNER or ADMIN role. Accepted image types: PNG, JPEG, SVG, WebP, ICO. Max 2 MB.
|
|
488
|
+
* Upload Tenant Logo
|
|
489
|
+
*/
|
|
490
|
+
uploadTenantLogoRaw(requestParameters: UploadTenantLogoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TenantResponse>>;
|
|
491
|
+
/**
|
|
492
|
+
* Upload a branding logo (primary, dark-mode variant, or favicon). Requires OWNER or ADMIN role. Accepted image types: PNG, JPEG, SVG, WebP, ICO. Max 2 MB.
|
|
493
|
+
* Upload Tenant Logo
|
|
494
|
+
*/
|
|
495
|
+
uploadTenantLogo(requestParameters: UploadTenantLogoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TenantResponse>;
|
|
399
496
|
}
|
|
@@ -114,6 +114,53 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
114
114
|
yield this.deleteTenantRaw(requestParameters, initOverrides);
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Creates request options for deleteTenantLogo without sending the request
|
|
119
|
+
*/
|
|
120
|
+
deleteTenantLogoRequestOpts(requestParameters) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
if (requestParameters['tenantId'] == null) {
|
|
123
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter "tenantId" was null or undefined when calling deleteTenantLogo().');
|
|
124
|
+
}
|
|
125
|
+
const queryParameters = {};
|
|
126
|
+
if (requestParameters['logoType'] != null) {
|
|
127
|
+
queryParameters['logo_type'] = requestParameters['logoType'];
|
|
128
|
+
}
|
|
129
|
+
const headerParameters = {};
|
|
130
|
+
if (requestParameters['authorization'] != null) {
|
|
131
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
132
|
+
}
|
|
133
|
+
let urlPath = `/v1/tenants/{tenant_id}/branding/logo`;
|
|
134
|
+
urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
|
|
135
|
+
return {
|
|
136
|
+
path: urlPath,
|
|
137
|
+
method: 'DELETE',
|
|
138
|
+
headers: headerParameters,
|
|
139
|
+
query: queryParameters,
|
|
140
|
+
};
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Delete a branding logo. Requires OWNER or ADMIN role.
|
|
145
|
+
* Delete Tenant Logo
|
|
146
|
+
*/
|
|
147
|
+
deleteTenantLogoRaw(requestParameters, initOverrides) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
const requestOptions = yield this.deleteTenantLogoRequestOpts(requestParameters);
|
|
150
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
151
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TenantResponseFromJSON(jsonValue));
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Delete a branding logo. Requires OWNER or ADMIN role.
|
|
156
|
+
* Delete Tenant Logo
|
|
157
|
+
*/
|
|
158
|
+
deleteTenantLogo(requestParameters, initOverrides) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
const response = yield this.deleteTenantLogoRaw(requestParameters, initOverrides);
|
|
161
|
+
return yield response.value();
|
|
162
|
+
});
|
|
163
|
+
}
|
|
117
164
|
/**
|
|
118
165
|
* Creates request options for deleteTenantUser without sending the request
|
|
119
166
|
*/
|
|
@@ -403,4 +450,73 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
403
450
|
return yield response.value();
|
|
404
451
|
});
|
|
405
452
|
}
|
|
453
|
+
/**
|
|
454
|
+
* Creates request options for uploadTenantLogo without sending the request
|
|
455
|
+
*/
|
|
456
|
+
uploadTenantLogoRequestOpts(requestParameters) {
|
|
457
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
+
if (requestParameters['tenantId'] == null) {
|
|
459
|
+
throw new runtime.RequiredError('tenantId', 'Required parameter "tenantId" was null or undefined when calling uploadTenantLogo().');
|
|
460
|
+
}
|
|
461
|
+
if (requestParameters['file'] == null) {
|
|
462
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling uploadTenantLogo().');
|
|
463
|
+
}
|
|
464
|
+
const queryParameters = {};
|
|
465
|
+
const headerParameters = {};
|
|
466
|
+
if (requestParameters['authorization'] != null) {
|
|
467
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
468
|
+
}
|
|
469
|
+
const consumes = [
|
|
470
|
+
{ contentType: 'multipart/form-data' },
|
|
471
|
+
];
|
|
472
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
473
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
474
|
+
let formParams;
|
|
475
|
+
let useForm = false;
|
|
476
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
477
|
+
useForm = canConsumeForm;
|
|
478
|
+
if (useForm) {
|
|
479
|
+
formParams = new FormData();
|
|
480
|
+
}
|
|
481
|
+
else {
|
|
482
|
+
formParams = new URLSearchParams();
|
|
483
|
+
}
|
|
484
|
+
if (requestParameters['file'] != null) {
|
|
485
|
+
formParams.append('file', requestParameters['file']);
|
|
486
|
+
}
|
|
487
|
+
if (requestParameters['logoType'] != null) {
|
|
488
|
+
formParams.append('logo_type', requestParameters['logoType']);
|
|
489
|
+
}
|
|
490
|
+
let urlPath = `/v1/tenants/{tenant_id}/branding/logo`;
|
|
491
|
+
urlPath = urlPath.replace(`{${"tenant_id"}}`, encodeURIComponent(String(requestParameters['tenantId'])));
|
|
492
|
+
return {
|
|
493
|
+
path: urlPath,
|
|
494
|
+
method: 'POST',
|
|
495
|
+
headers: headerParameters,
|
|
496
|
+
query: queryParameters,
|
|
497
|
+
body: formParams,
|
|
498
|
+
};
|
|
499
|
+
});
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* Upload a branding logo (primary, dark-mode variant, or favicon). Requires OWNER or ADMIN role. Accepted image types: PNG, JPEG, SVG, WebP, ICO. Max 2 MB.
|
|
503
|
+
* Upload Tenant Logo
|
|
504
|
+
*/
|
|
505
|
+
uploadTenantLogoRaw(requestParameters, initOverrides) {
|
|
506
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
507
|
+
const requestOptions = yield this.uploadTenantLogoRequestOpts(requestParameters);
|
|
508
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
509
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => TenantResponseFromJSON(jsonValue));
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* Upload a branding logo (primary, dark-mode variant, or favicon). Requires OWNER or ADMIN role. Accepted image types: PNG, JPEG, SVG, WebP, ICO. Max 2 MB.
|
|
514
|
+
* Upload Tenant Logo
|
|
515
|
+
*/
|
|
516
|
+
uploadTenantLogo(requestParameters, initOverrides) {
|
|
517
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
518
|
+
const response = yield this.uploadTenantLogoRaw(requestParameters, initOverrides);
|
|
519
|
+
return yield response.value();
|
|
520
|
+
});
|
|
521
|
+
}
|
|
406
522
|
}
|
|
@@ -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,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
|
+
}
|
|
@@ -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}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ImageTaxonomyFromJSON, ImageTaxonomyToJSON, } from './ImageTaxonomy';
|
|
14
15
|
import { IngestionModeFromJSON, IngestionModeToJSON, } from './IngestionMode';
|
|
15
16
|
import { PolygonReferenceFromJSON, PolygonReferenceToJSON, } from './PolygonReference';
|
|
16
17
|
/**
|
|
@@ -32,6 +33,7 @@ export function ChunkMetadataInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
33
34
|
'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
|
|
34
35
|
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
36
|
+
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
|
|
35
37
|
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
36
38
|
'blockType': json['block_type'] == null ? undefined : json['block_type'],
|
|
37
39
|
'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
|
|
@@ -56,6 +58,7 @@ export function ChunkMetadataInputToJSONTyped(value, ignoreDiscriminator = false
|
|
|
56
58
|
'summary': value['summary'],
|
|
57
59
|
'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
|
|
58
60
|
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
61
|
+
'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
|
|
59
62
|
'sheet_name': value['sheetName'],
|
|
60
63
|
'block_type': value['blockType'],
|
|
61
64
|
'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}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ImageTaxonomyFromJSON, ImageTaxonomyToJSON, } from './ImageTaxonomy';
|
|
14
15
|
import { IngestionModeFromJSON, IngestionModeToJSON, } from './IngestionMode';
|
|
15
16
|
import { PolygonReferenceFromJSON, PolygonReferenceToJSON, } from './PolygonReference';
|
|
16
17
|
/**
|
|
@@ -32,6 +33,7 @@ export function ChunkMetadataOutputFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
33
34
|
'ingestionMode': json['ingestion_mode'] == null ? undefined : IngestionModeFromJSON(json['ingestion_mode']),
|
|
34
35
|
'extractedTextS3Uri': json['extracted_text_s3_uri'] == null ? undefined : json['extracted_text_s3_uri'],
|
|
36
|
+
'secondaryTaxonomy': json['secondary_taxonomy'] == null ? undefined : ImageTaxonomyFromJSON(json['secondary_taxonomy']),
|
|
35
37
|
'sheetName': json['sheet_name'] == null ? undefined : json['sheet_name'],
|
|
36
38
|
'blockType': json['block_type'] == null ? undefined : json['block_type'],
|
|
37
39
|
'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
|
|
@@ -56,6 +58,7 @@ export function ChunkMetadataOutputToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
56
58
|
'summary': value['summary'],
|
|
57
59
|
'ingestion_mode': IngestionModeToJSON(value['ingestionMode']),
|
|
58
60
|
'extracted_text_s3_uri': value['extractedTextS3Uri'],
|
|
61
|
+
'secondary_taxonomy': ImageTaxonomyToJSON(value['secondaryTaxonomy']),
|
|
59
62
|
'sheet_name': value['sheetName'],
|
|
60
63
|
'block_type': value['blockType'],
|
|
61
64
|
'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,43 @@
|
|
|
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
|
+
* Image classification taxonomy with prompt descriptions.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const ImageTaxonomy = {
|
|
19
|
+
Picture: 'picture',
|
|
20
|
+
Flowchart: 'flowchart'
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfImageTaxonomy(value) {
|
|
23
|
+
for (const key in ImageTaxonomy) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(ImageTaxonomy, key)) {
|
|
25
|
+
if (ImageTaxonomy[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
export function ImageTaxonomyFromJSON(json) {
|
|
33
|
+
return ImageTaxonomyFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function ImageTaxonomyFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
export function ImageTaxonomyToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
export function ImageTaxonomyToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
@@ -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.
|