@knowledge-stack/ksapi 1.58.0 → 1.59.1
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 -0
- package/README.md +9 -2
- package/dist/apis/FoldersApi.d.ts +63 -4
- package/dist/apis/FoldersApi.js +64 -3
- package/dist/apis/PathPartsApi.d.ts +45 -1
- package/dist/apis/PathPartsApi.js +44 -0
- package/dist/apis/SectionsApi.d.ts +44 -0
- package/dist/apis/SectionsApi.js +43 -0
- package/dist/apis/TenantsApi.d.ts +4 -4
- package/dist/apis/TenantsApi.js +2 -2
- package/dist/esm/apis/FoldersApi.d.ts +63 -4
- package/dist/esm/apis/FoldersApi.js +64 -3
- package/dist/esm/apis/PathPartsApi.d.ts +45 -1
- package/dist/esm/apis/PathPartsApi.js +45 -1
- package/dist/esm/apis/SectionsApi.d.ts +44 -0
- package/dist/esm/apis/SectionsApi.js +43 -0
- package/dist/esm/apis/TenantsApi.d.ts +4 -4
- package/dist/esm/apis/TenantsApi.js +2 -2
- package/dist/esm/models/AncestryResponse.d.ts +48 -0
- package/dist/esm/models/AncestryResponse.js +45 -0
- package/dist/esm/models/PathPartAncestorItem.d.ts +96 -0
- package/dist/esm/models/PathPartAncestorItem.js +77 -0
- package/dist/esm/models/SearchSortOrder.d.ts +26 -0
- package/dist/esm/models/SearchSortOrder.js +44 -0
- package/dist/esm/models/SearchablePartType.d.ts +25 -0
- package/dist/esm/models/SearchablePartType.js +43 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/AncestryResponse.d.ts +48 -0
- package/dist/models/AncestryResponse.js +53 -0
- package/dist/models/PathPartAncestorItem.d.ts +96 -0
- package/dist/models/PathPartAncestorItem.js +85 -0
- package/dist/models/SearchSortOrder.d.ts +26 -0
- package/dist/models/SearchSortOrder.js +52 -0
- package/dist/models/SearchablePartType.d.ts +25 -0
- package/dist/models/SearchablePartType.js +51 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/AncestryResponse.md +35 -0
- package/docs/FoldersApi.md +94 -4
- package/docs/PathPartAncestorItem.md +51 -0
- package/docs/PathPartsApi.md +75 -0
- package/docs/SearchSortOrder.md +33 -0
- package/docs/SearchablePartType.md +33 -0
- package/docs/SectionsApi.md +75 -0
- package/docs/TenantsApi.md +1 -1
- package/package.json +1 -1
- package/src/apis/FoldersApi.ts +136 -7
- package/src/apis/PathPartsApi.ts +88 -0
- package/src/apis/SectionsApi.ts +81 -0
- package/src/apis/TenantsApi.ts +4 -4
- package/src/models/AncestryResponse.ts +91 -0
- package/src/models/PathPartAncestorItem.ts +165 -0
- package/src/models/SearchSortOrder.ts +54 -0
- package/src/models/SearchablePartType.ts +53 -0
- package/src/models/index.ts +4 -0
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateFolderRequest, FolderAction, FolderActionResponse, FolderResponse, PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator, PaginatedResponseFolderResponse, PathOrder, UpdateFolderRequest } from '../models/index';
|
|
13
|
+
import type { CreateFolderRequest, FolderAction, FolderActionResponse, FolderResponse, PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator, PaginatedResponseFolderResponse, PathOrder, SearchSortOrder, SearchablePartType, UpdateFolderRequest } from '../models/index';
|
|
14
14
|
export interface CreateFolderOperationRequest {
|
|
15
15
|
createFolderRequest: CreateFolderRequest;
|
|
16
16
|
authorization?: string | null;
|
|
@@ -38,7 +38,6 @@ export interface ListFolderContentsRequest {
|
|
|
38
38
|
maxDepth?: number;
|
|
39
39
|
sortOrder?: PathOrder;
|
|
40
40
|
withTags?: boolean;
|
|
41
|
-
nameLike?: string | null;
|
|
42
41
|
limit?: number;
|
|
43
42
|
offset?: number;
|
|
44
43
|
authorization?: string | null;
|
|
@@ -53,6 +52,17 @@ export interface ListFoldersRequest {
|
|
|
53
52
|
authorization?: string | null;
|
|
54
53
|
ksUat?: string | null;
|
|
55
54
|
}
|
|
55
|
+
export interface SearchItemsRequest {
|
|
56
|
+
nameLike: string;
|
|
57
|
+
sortOrder?: SearchSortOrder;
|
|
58
|
+
partType?: SearchablePartType;
|
|
59
|
+
withTags?: boolean;
|
|
60
|
+
parentPathPartId?: string | null;
|
|
61
|
+
limit?: number;
|
|
62
|
+
offset?: number;
|
|
63
|
+
authorization?: string | null;
|
|
64
|
+
ksUat?: string | null;
|
|
65
|
+
}
|
|
56
66
|
export interface UpdateFolderOperationRequest {
|
|
57
67
|
folderId: string;
|
|
58
68
|
updateFolderRequest: UpdateFolderRequest;
|
|
@@ -176,7 +186,6 @@ export interface FoldersApiInterface {
|
|
|
176
186
|
* @param {number} [maxDepth] Maximum depth to traverse (1=direct children, default: 1)
|
|
177
187
|
* @param {PathOrder} [sortOrder] Sort order for results (default: LOGICAL)
|
|
178
188
|
* @param {boolean} [withTags] Include tag IDs for each item (default: false)
|
|
179
|
-
* @param {string} [nameLike] Case-insensitive partial name search filter
|
|
180
189
|
* @param {number} [limit] Number of items per page
|
|
181
190
|
* @param {number} [offset] Number of items to skip
|
|
182
191
|
* @param {string} [authorization]
|
|
@@ -192,7 +201,6 @@ export interface FoldersApiInterface {
|
|
|
192
201
|
* @param {number} [maxDepth] Maximum depth to traverse (1=direct children, default: 1)
|
|
193
202
|
* @param {PathOrder} [sortOrder] Sort order for results (default: LOGICAL)
|
|
194
203
|
* @param {boolean} [withTags] Include tag IDs for each item (default: false)
|
|
195
|
-
* @param {string} [nameLike] Case-insensitive partial name search filter
|
|
196
204
|
* @param {number} [limit] Number of items per page
|
|
197
205
|
* @param {number} [offset] Number of items to skip
|
|
198
206
|
* @param {string} [authorization]
|
|
@@ -240,6 +248,43 @@ export interface FoldersApiInterface {
|
|
|
240
248
|
* List Folders Handler
|
|
241
249
|
*/
|
|
242
250
|
listFolders(requestParameters: ListFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseFolderResponse>;
|
|
251
|
+
/**
|
|
252
|
+
* Creates request options for searchItems without sending the request
|
|
253
|
+
* @param {string} nameLike Case-insensitive partial name search
|
|
254
|
+
* @param {SearchSortOrder} [sortOrder] Sort order for results (default: NAME)
|
|
255
|
+
* @param {SearchablePartType} [partType] Filter by item type (default: both folders and documents)
|
|
256
|
+
* @param {boolean} [withTags] Include tags in the response (default: false)
|
|
257
|
+
* @param {string} [parentPathPartId] Scope search to descendants of this folder\'s path part
|
|
258
|
+
* @param {number} [limit] Number of items per page
|
|
259
|
+
* @param {number} [offset] Number of items to skip
|
|
260
|
+
* @param {string} [authorization]
|
|
261
|
+
* @param {string} [ksUat]
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
* @memberof FoldersApiInterface
|
|
264
|
+
*/
|
|
265
|
+
searchItemsRequestOpts(requestParameters: SearchItemsRequest): Promise<runtime.RequestOpts>;
|
|
266
|
+
/**
|
|
267
|
+
* Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
|
|
268
|
+
* @summary Search Items Handler
|
|
269
|
+
* @param {string} nameLike Case-insensitive partial name search
|
|
270
|
+
* @param {SearchSortOrder} [sortOrder] Sort order for results (default: NAME)
|
|
271
|
+
* @param {SearchablePartType} [partType] Filter by item type (default: both folders and documents)
|
|
272
|
+
* @param {boolean} [withTags] Include tags in the response (default: false)
|
|
273
|
+
* @param {string} [parentPathPartId] Scope search to descendants of this folder\'s path part
|
|
274
|
+
* @param {number} [limit] Number of items per page
|
|
275
|
+
* @param {number} [offset] Number of items to skip
|
|
276
|
+
* @param {string} [authorization]
|
|
277
|
+
* @param {string} [ksUat]
|
|
278
|
+
* @param {*} [options] Override http request option.
|
|
279
|
+
* @throws {RequiredError}
|
|
280
|
+
* @memberof FoldersApiInterface
|
|
281
|
+
*/
|
|
282
|
+
searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator>>;
|
|
283
|
+
/**
|
|
284
|
+
* Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
|
|
285
|
+
* Search Items Handler
|
|
286
|
+
*/
|
|
287
|
+
searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator>;
|
|
243
288
|
/**
|
|
244
289
|
* Creates request options for updateFolder without sending the request
|
|
245
290
|
* @param {string} folderId
|
|
@@ -356,6 +401,20 @@ export declare class FoldersApi extends runtime.BaseAPI implements FoldersApiInt
|
|
|
356
401
|
* List Folders Handler
|
|
357
402
|
*/
|
|
358
403
|
listFolders(requestParameters?: ListFoldersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseFolderResponse>;
|
|
404
|
+
/**
|
|
405
|
+
* Creates request options for searchItems without sending the request
|
|
406
|
+
*/
|
|
407
|
+
searchItemsRequestOpts(requestParameters: SearchItemsRequest): Promise<runtime.RequestOpts>;
|
|
408
|
+
/**
|
|
409
|
+
* Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
|
|
410
|
+
* Search Items Handler
|
|
411
|
+
*/
|
|
412
|
+
searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator>>;
|
|
413
|
+
/**
|
|
414
|
+
* Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
|
|
415
|
+
* Search Items Handler
|
|
416
|
+
*/
|
|
417
|
+
searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator>;
|
|
359
418
|
/**
|
|
360
419
|
* Creates request options for updateFolder without sending the request
|
|
361
420
|
*/
|
|
@@ -229,9 +229,6 @@ export class FoldersApi extends runtime.BaseAPI {
|
|
|
229
229
|
if (requestParameters['withTags'] != null) {
|
|
230
230
|
queryParameters['with_tags'] = requestParameters['withTags'];
|
|
231
231
|
}
|
|
232
|
-
if (requestParameters['nameLike'] != null) {
|
|
233
|
-
queryParameters['name_like'] = requestParameters['nameLike'];
|
|
234
|
-
}
|
|
235
232
|
if (requestParameters['limit'] != null) {
|
|
236
233
|
queryParameters['limit'] = requestParameters['limit'];
|
|
237
234
|
}
|
|
@@ -328,6 +325,70 @@ export class FoldersApi extends runtime.BaseAPI {
|
|
|
328
325
|
return yield response.value();
|
|
329
326
|
});
|
|
330
327
|
}
|
|
328
|
+
/**
|
|
329
|
+
* Creates request options for searchItems without sending the request
|
|
330
|
+
*/
|
|
331
|
+
searchItemsRequestOpts(requestParameters) {
|
|
332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
333
|
+
if (requestParameters['nameLike'] == null) {
|
|
334
|
+
throw new runtime.RequiredError('nameLike', 'Required parameter "nameLike" was null or undefined when calling searchItems().');
|
|
335
|
+
}
|
|
336
|
+
const queryParameters = {};
|
|
337
|
+
if (requestParameters['nameLike'] != null) {
|
|
338
|
+
queryParameters['name_like'] = requestParameters['nameLike'];
|
|
339
|
+
}
|
|
340
|
+
if (requestParameters['sortOrder'] != null) {
|
|
341
|
+
queryParameters['sort_order'] = requestParameters['sortOrder'];
|
|
342
|
+
}
|
|
343
|
+
if (requestParameters['partType'] != null) {
|
|
344
|
+
queryParameters['part_type'] = requestParameters['partType'];
|
|
345
|
+
}
|
|
346
|
+
if (requestParameters['withTags'] != null) {
|
|
347
|
+
queryParameters['with_tags'] = requestParameters['withTags'];
|
|
348
|
+
}
|
|
349
|
+
if (requestParameters['parentPathPartId'] != null) {
|
|
350
|
+
queryParameters['parent_path_part_id'] = requestParameters['parentPathPartId'];
|
|
351
|
+
}
|
|
352
|
+
if (requestParameters['limit'] != null) {
|
|
353
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
354
|
+
}
|
|
355
|
+
if (requestParameters['offset'] != null) {
|
|
356
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
357
|
+
}
|
|
358
|
+
const headerParameters = {};
|
|
359
|
+
if (requestParameters['authorization'] != null) {
|
|
360
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
361
|
+
}
|
|
362
|
+
let urlPath = `/v1/folders/search`;
|
|
363
|
+
return {
|
|
364
|
+
path: urlPath,
|
|
365
|
+
method: 'GET',
|
|
366
|
+
headers: headerParameters,
|
|
367
|
+
query: queryParameters,
|
|
368
|
+
};
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
|
|
373
|
+
* Search Items Handler
|
|
374
|
+
*/
|
|
375
|
+
searchItemsRaw(requestParameters, initOverrides) {
|
|
376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
377
|
+
const requestOptions = yield this.searchItemsRequestOpts(requestParameters);
|
|
378
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
379
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminatorFromJSON(jsonValue));
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Search for folders and documents by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
|
|
384
|
+
* Search Items Handler
|
|
385
|
+
*/
|
|
386
|
+
searchItems(requestParameters, initOverrides) {
|
|
387
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
388
|
+
const response = yield this.searchItemsRaw(requestParameters, initOverrides);
|
|
389
|
+
return yield response.value();
|
|
390
|
+
});
|
|
391
|
+
}
|
|
331
392
|
/**
|
|
332
393
|
* Creates request options for updateFolder without sending the request
|
|
333
394
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { BulkTagRequest, PaginatedResponsePathPartResponse, PathOrder, PathPartResponse, PathPartTagsResponse, SubtreeChunksResponse } from '../models/index';
|
|
13
|
+
import type { AncestryResponse, BulkTagRequest, PaginatedResponsePathPartResponse, PathOrder, PathPartResponse, PathPartTagsResponse, SubtreeChunksResponse } from '../models/index';
|
|
14
14
|
export interface BulkAddPathPartTagsRequest {
|
|
15
15
|
pathPartId: string;
|
|
16
16
|
bulkTagRequest: BulkTagRequest;
|
|
@@ -28,6 +28,11 @@ export interface GetPathPartRequest {
|
|
|
28
28
|
authorization?: string | null;
|
|
29
29
|
ksUat?: string | null;
|
|
30
30
|
}
|
|
31
|
+
export interface GetPathPartAncestryRequest {
|
|
32
|
+
pathPartId: string;
|
|
33
|
+
authorization?: string | null;
|
|
34
|
+
ksUat?: string | null;
|
|
35
|
+
}
|
|
31
36
|
export interface GetPathPartSubtreeChunksRequest {
|
|
32
37
|
pathPartId: string;
|
|
33
38
|
authorization?: string | null;
|
|
@@ -134,6 +139,31 @@ export interface PathPartsApiInterface {
|
|
|
134
139
|
* Get Path Part Handler
|
|
135
140
|
*/
|
|
136
141
|
getPathPart(requestParameters: GetPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartResponse>;
|
|
142
|
+
/**
|
|
143
|
+
* Creates request options for getPathPartAncestry without sending the request
|
|
144
|
+
* @param {string} pathPartId
|
|
145
|
+
* @param {string} [authorization]
|
|
146
|
+
* @param {string} [ksUat]
|
|
147
|
+
* @throws {RequiredError}
|
|
148
|
+
* @memberof PathPartsApiInterface
|
|
149
|
+
*/
|
|
150
|
+
getPathPartAncestryRequestOpts(requestParameters: GetPathPartAncestryRequest): Promise<runtime.RequestOpts>;
|
|
151
|
+
/**
|
|
152
|
+
* Get the full ancestry chain for a path part (root to leaf, inclusive). Returns all ancestors from the root down to and including the target path part. Authorization is checked on the leaf — if the user can read the leaf, they can navigate its ancestors.
|
|
153
|
+
* @summary Get Path Part Ancestry Handler
|
|
154
|
+
* @param {string} pathPartId
|
|
155
|
+
* @param {string} [authorization]
|
|
156
|
+
* @param {string} [ksUat]
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
* @memberof PathPartsApiInterface
|
|
160
|
+
*/
|
|
161
|
+
getPathPartAncestryRaw(requestParameters: GetPathPartAncestryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AncestryResponse>>;
|
|
162
|
+
/**
|
|
163
|
+
* Get the full ancestry chain for a path part (root to leaf, inclusive). Returns all ancestors from the root down to and including the target path part. Authorization is checked on the leaf — if the user can read the leaf, they can navigate its ancestors.
|
|
164
|
+
* Get Path Part Ancestry Handler
|
|
165
|
+
*/
|
|
166
|
+
getPathPartAncestry(requestParameters: GetPathPartAncestryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AncestryResponse>;
|
|
137
167
|
/**
|
|
138
168
|
* Creates request options for getPathPartSubtreeChunks without sending the request
|
|
139
169
|
* @param {string} pathPartId
|
|
@@ -266,6 +296,20 @@ export declare class PathPartsApi extends runtime.BaseAPI implements PathPartsAp
|
|
|
266
296
|
* Get Path Part Handler
|
|
267
297
|
*/
|
|
268
298
|
getPathPart(requestParameters: GetPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PathPartResponse>;
|
|
299
|
+
/**
|
|
300
|
+
* Creates request options for getPathPartAncestry without sending the request
|
|
301
|
+
*/
|
|
302
|
+
getPathPartAncestryRequestOpts(requestParameters: GetPathPartAncestryRequest): Promise<runtime.RequestOpts>;
|
|
303
|
+
/**
|
|
304
|
+
* Get the full ancestry chain for a path part (root to leaf, inclusive). Returns all ancestors from the root down to and including the target path part. Authorization is checked on the leaf — if the user can read the leaf, they can navigate its ancestors.
|
|
305
|
+
* Get Path Part Ancestry Handler
|
|
306
|
+
*/
|
|
307
|
+
getPathPartAncestryRaw(requestParameters: GetPathPartAncestryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AncestryResponse>>;
|
|
308
|
+
/**
|
|
309
|
+
* Get the full ancestry chain for a path part (root to leaf, inclusive). Returns all ancestors from the root down to and including the target path part. Authorization is checked on the leaf — if the user can read the leaf, they can navigate its ancestors.
|
|
310
|
+
* Get Path Part Ancestry Handler
|
|
311
|
+
*/
|
|
312
|
+
getPathPartAncestry(requestParameters: GetPathPartAncestryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AncestryResponse>;
|
|
269
313
|
/**
|
|
270
314
|
* Creates request options for getPathPartSubtreeChunks without sending the request
|
|
271
315
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { BulkTagRequestToJSON, PaginatedResponsePathPartResponseFromJSON, PathPartResponseFromJSON, PathPartTagsResponseFromJSON, SubtreeChunksResponseFromJSON, } from '../models/index';
|
|
24
|
+
import { AncestryResponseFromJSON, BulkTagRequestToJSON, PaginatedResponsePathPartResponseFromJSON, PathPartResponseFromJSON, PathPartTagsResponseFromJSON, SubtreeChunksResponseFromJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -168,6 +168,50 @@ export class PathPartsApi extends runtime.BaseAPI {
|
|
|
168
168
|
return yield response.value();
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* Creates request options for getPathPartAncestry without sending the request
|
|
173
|
+
*/
|
|
174
|
+
getPathPartAncestryRequestOpts(requestParameters) {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
+
if (requestParameters['pathPartId'] == null) {
|
|
177
|
+
throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling getPathPartAncestry().');
|
|
178
|
+
}
|
|
179
|
+
const queryParameters = {};
|
|
180
|
+
const headerParameters = {};
|
|
181
|
+
if (requestParameters['authorization'] != null) {
|
|
182
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
183
|
+
}
|
|
184
|
+
let urlPath = `/v1/path-parts/{path_part_id}/ancestry`;
|
|
185
|
+
urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
|
|
186
|
+
return {
|
|
187
|
+
path: urlPath,
|
|
188
|
+
method: 'GET',
|
|
189
|
+
headers: headerParameters,
|
|
190
|
+
query: queryParameters,
|
|
191
|
+
};
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Get the full ancestry chain for a path part (root to leaf, inclusive). Returns all ancestors from the root down to and including the target path part. Authorization is checked on the leaf — if the user can read the leaf, they can navigate its ancestors.
|
|
196
|
+
* Get Path Part Ancestry Handler
|
|
197
|
+
*/
|
|
198
|
+
getPathPartAncestryRaw(requestParameters, initOverrides) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
const requestOptions = yield this.getPathPartAncestryRequestOpts(requestParameters);
|
|
201
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
202
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AncestryResponseFromJSON(jsonValue));
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Get the full ancestry chain for a path part (root to leaf, inclusive). Returns all ancestors from the root down to and including the target path part. Authorization is checked on the leaf — if the user can read the leaf, they can navigate its ancestors.
|
|
207
|
+
* Get Path Part Ancestry Handler
|
|
208
|
+
*/
|
|
209
|
+
getPathPartAncestry(requestParameters, initOverrides) {
|
|
210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
211
|
+
const response = yield this.getPathPartAncestryRaw(requestParameters, initOverrides);
|
|
212
|
+
return yield response.value();
|
|
213
|
+
});
|
|
214
|
+
}
|
|
171
215
|
/**
|
|
172
216
|
* Creates request options for getPathPartSubtreeChunks without sending the request
|
|
173
217
|
*/
|
|
@@ -26,6 +26,11 @@ export interface GetSectionRequest {
|
|
|
26
26
|
authorization?: string | null;
|
|
27
27
|
ksUat?: string | null;
|
|
28
28
|
}
|
|
29
|
+
export interface GetSectionsBulkRequest {
|
|
30
|
+
sectionIds?: Array<string> | null;
|
|
31
|
+
authorization?: string | null;
|
|
32
|
+
ksUat?: string | null;
|
|
33
|
+
}
|
|
29
34
|
export interface UpdateSectionOperationRequest {
|
|
30
35
|
sectionId: string;
|
|
31
36
|
updateSectionRequest: UpdateSectionRequest;
|
|
@@ -114,6 +119,31 @@ export interface SectionsApiInterface {
|
|
|
114
119
|
* Get Section Handler
|
|
115
120
|
*/
|
|
116
121
|
getSection(requestParameters: GetSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
|
|
122
|
+
/**
|
|
123
|
+
* Creates request options for getSectionsBulk without sending the request
|
|
124
|
+
* @param {Array<string>} [sectionIds] Section IDs to fetch (max 200)
|
|
125
|
+
* @param {string} [authorization]
|
|
126
|
+
* @param {string} [ksUat]
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
* @memberof SectionsApiInterface
|
|
129
|
+
*/
|
|
130
|
+
getSectionsBulkRequestOpts(requestParameters: GetSectionsBulkRequest): Promise<runtime.RequestOpts>;
|
|
131
|
+
/**
|
|
132
|
+
* Batch-fetch sections by ID. Returns sections with system_metadata. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
|
|
133
|
+
* @summary Get Sections Bulk Handler
|
|
134
|
+
* @param {Array<string>} [sectionIds] Section IDs to fetch (max 200)
|
|
135
|
+
* @param {string} [authorization]
|
|
136
|
+
* @param {string} [ksUat]
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
* @memberof SectionsApiInterface
|
|
140
|
+
*/
|
|
141
|
+
getSectionsBulkRaw(requestParameters: GetSectionsBulkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SectionResponse>>>;
|
|
142
|
+
/**
|
|
143
|
+
* Batch-fetch sections by ID. Returns sections with system_metadata. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
|
|
144
|
+
* Get Sections Bulk Handler
|
|
145
|
+
*/
|
|
146
|
+
getSectionsBulk(requestParameters: GetSectionsBulkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SectionResponse>>;
|
|
117
147
|
/**
|
|
118
148
|
* Creates request options for updateSection without sending the request
|
|
119
149
|
* @param {string} sectionId
|
|
@@ -188,6 +218,20 @@ export declare class SectionsApi extends runtime.BaseAPI implements SectionsApiI
|
|
|
188
218
|
* Get Section Handler
|
|
189
219
|
*/
|
|
190
220
|
getSection(requestParameters: GetSectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SectionResponse>;
|
|
221
|
+
/**
|
|
222
|
+
* Creates request options for getSectionsBulk without sending the request
|
|
223
|
+
*/
|
|
224
|
+
getSectionsBulkRequestOpts(requestParameters: GetSectionsBulkRequest): Promise<runtime.RequestOpts>;
|
|
225
|
+
/**
|
|
226
|
+
* Batch-fetch sections by ID. Returns sections with system_metadata. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
|
|
227
|
+
* Get Sections Bulk Handler
|
|
228
|
+
*/
|
|
229
|
+
getSectionsBulkRaw(requestParameters: GetSectionsBulkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SectionResponse>>>;
|
|
230
|
+
/**
|
|
231
|
+
* Batch-fetch sections by ID. Returns sections with system_metadata. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
|
|
232
|
+
* Get Sections Bulk Handler
|
|
233
|
+
*/
|
|
234
|
+
getSectionsBulk(requestParameters?: GetSectionsBulkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SectionResponse>>;
|
|
191
235
|
/**
|
|
192
236
|
* Creates request options for updateSection without sending the request
|
|
193
237
|
*/
|
|
@@ -158,6 +158,49 @@ export class SectionsApi extends runtime.BaseAPI {
|
|
|
158
158
|
return yield response.value();
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Creates request options for getSectionsBulk without sending the request
|
|
163
|
+
*/
|
|
164
|
+
getSectionsBulkRequestOpts(requestParameters) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
+
const queryParameters = {};
|
|
167
|
+
if (requestParameters['sectionIds'] != null) {
|
|
168
|
+
queryParameters['section_ids'] = requestParameters['sectionIds'];
|
|
169
|
+
}
|
|
170
|
+
const headerParameters = {};
|
|
171
|
+
if (requestParameters['authorization'] != null) {
|
|
172
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
173
|
+
}
|
|
174
|
+
let urlPath = `/v1/sections/bulk`;
|
|
175
|
+
return {
|
|
176
|
+
path: urlPath,
|
|
177
|
+
method: 'GET',
|
|
178
|
+
headers: headerParameters,
|
|
179
|
+
query: queryParameters,
|
|
180
|
+
};
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Batch-fetch sections by ID. Returns sections with system_metadata. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
|
|
185
|
+
* Get Sections Bulk Handler
|
|
186
|
+
*/
|
|
187
|
+
getSectionsBulkRaw(requestParameters, initOverrides) {
|
|
188
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
189
|
+
const requestOptions = yield this.getSectionsBulkRequestOpts(requestParameters);
|
|
190
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
191
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SectionResponseFromJSON));
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Batch-fetch sections by ID. Returns sections with system_metadata. Non-existent IDs are silently skipped. Limited to 200 IDs per call.
|
|
196
|
+
* Get Sections Bulk Handler
|
|
197
|
+
*/
|
|
198
|
+
getSectionsBulk() {
|
|
199
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
200
|
+
const response = yield this.getSectionsBulkRaw(requestParameters, initOverrides);
|
|
201
|
+
return yield response.value();
|
|
202
|
+
});
|
|
203
|
+
}
|
|
161
204
|
/**
|
|
162
205
|
* Creates request options for updateSection without sending the request
|
|
163
206
|
*/
|
|
@@ -113,7 +113,7 @@ export interface TenantsApiInterface {
|
|
|
113
113
|
*/
|
|
114
114
|
deleteTenantRequestOpts(requestParameters: DeleteTenantRequest): Promise<runtime.RequestOpts>;
|
|
115
115
|
/**
|
|
116
|
-
* Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
|
|
116
|
+
* Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
117
117
|
* @summary Delete Tenant
|
|
118
118
|
* @param {string} tenantId
|
|
119
119
|
* @param {string} [authorization]
|
|
@@ -124,7 +124,7 @@ export interface TenantsApiInterface {
|
|
|
124
124
|
*/
|
|
125
125
|
deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
126
126
|
/**
|
|
127
|
-
* Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
|
|
127
|
+
* Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
128
128
|
* Delete Tenant
|
|
129
129
|
*/
|
|
130
130
|
deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -372,12 +372,12 @@ export declare class TenantsApi extends runtime.BaseAPI implements TenantsApiInt
|
|
|
372
372
|
*/
|
|
373
373
|
deleteTenantRequestOpts(requestParameters: DeleteTenantRequest): Promise<runtime.RequestOpts>;
|
|
374
374
|
/**
|
|
375
|
-
* Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
|
|
375
|
+
* Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
376
376
|
* Delete Tenant
|
|
377
377
|
*/
|
|
378
378
|
deleteTenantRaw(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
379
379
|
/**
|
|
380
|
-
* Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
|
|
380
|
+
* Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
381
381
|
* Delete Tenant
|
|
382
382
|
*/
|
|
383
383
|
deleteTenant(requestParameters: DeleteTenantRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -95,7 +95,7 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
* Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
|
|
98
|
+
* Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
99
99
|
* Delete Tenant
|
|
100
100
|
*/
|
|
101
101
|
deleteTenantRaw(requestParameters, initOverrides) {
|
|
@@ -106,7 +106,7 @@ export class TenantsApi extends runtime.BaseAPI {
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
|
-
* Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s S3 bucket after the DB transaction commits.
|
|
109
|
+
* Delete a tenant. Requires OWNER role in the tenant. Deletes the tenant\'s LiteLLM team/keys and S3 bucket after the DB transaction commits.
|
|
110
110
|
* Delete Tenant
|
|
111
111
|
*/
|
|
112
112
|
deleteTenant(requestParameters, initOverrides) {
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { PathPartAncestorItem } from './PathPartAncestorItem';
|
|
13
|
+
/**
|
|
14
|
+
* Response containing the ancestry chain from root to target (inclusive).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AncestryResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AncestryResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Ancestors ordered root-to-leaf
|
|
21
|
+
* @type {Array<PathPartAncestorItem>}
|
|
22
|
+
* @memberof AncestryResponse
|
|
23
|
+
*/
|
|
24
|
+
ancestors: Array<PathPartAncestorItem>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AncestryResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAncestryResponse(value: object): value is AncestryResponse;
|
|
30
|
+
export declare function AncestryResponseFromJSON(json: any): AncestryResponse;
|
|
31
|
+
export declare function AncestryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AncestryResponse;
|
|
32
|
+
export declare function AncestryResponseToJSON(json: any): AncestryResponse;
|
|
33
|
+
export declare function AncestryResponseToJSONTyped(value?: AncestryResponse | null, ignoreDiscriminator?: boolean): any;
|
|
34
|
+
export declare const AncestryResponsePropertyValidationAttributesMap: {
|
|
35
|
+
[property: string]: {
|
|
36
|
+
maxLength?: number;
|
|
37
|
+
minLength?: number;
|
|
38
|
+
pattern?: string;
|
|
39
|
+
maximum?: number;
|
|
40
|
+
exclusiveMaximum?: boolean;
|
|
41
|
+
minimum?: number;
|
|
42
|
+
exclusiveMinimum?: boolean;
|
|
43
|
+
multipleOf?: number;
|
|
44
|
+
maxItems?: number;
|
|
45
|
+
minItems?: number;
|
|
46
|
+
uniqueItems?: boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { PathPartAncestorItemFromJSON, PathPartAncestorItemToJSON, } from './PathPartAncestorItem';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AncestryResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAncestryResponse(value) {
|
|
19
|
+
if (!('ancestors' in value) || value['ancestors'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function AncestryResponseFromJSON(json) {
|
|
24
|
+
return AncestryResponseFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function AncestryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'ancestors': (json['ancestors'].map(PathPartAncestorItemFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function AncestryResponseToJSON(json) {
|
|
35
|
+
return AncestryResponseToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function AncestryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'ancestors': (value['ancestors'].map(PathPartAncestorItemToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export const AncestryResponsePropertyValidationAttributesMap = {};
|