@knowledge-stack/ksapi 1.51.0 → 1.52.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 +4 -0
- package/README.md +4 -2
- package/dist/apis/ChunksApi.d.ts +4 -4
- package/dist/apis/ChunksApi.js +2 -2
- package/dist/apis/FeaturesApi.d.ts +59 -0
- package/dist/apis/FeaturesApi.js +70 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ChunksApi.d.ts +4 -4
- package/dist/esm/apis/ChunksApi.js +2 -2
- package/dist/esm/apis/FeaturesApi.d.ts +59 -0
- package/dist/esm/apis/FeaturesApi.js +66 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/FeaturesResponse.d.ts +54 -0
- package/dist/esm/models/FeaturesResponse.js +49 -0
- package/dist/esm/models/UpdateChunkContentRequest.d.ts +0 -7
- package/dist/esm/models/UpdateChunkContentRequest.js +0 -3
- package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +20 -2
- package/dist/esm/models/UpdateChunkMetadataRequest.js +7 -3
- package/dist/esm/models/UpdateSectionRequest.d.ts +6 -0
- package/dist/esm/models/UpdateSectionRequest.js +2 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/FeaturesResponse.d.ts +54 -0
- package/dist/models/FeaturesResponse.js +57 -0
- package/dist/models/UpdateChunkContentRequest.d.ts +0 -7
- package/dist/models/UpdateChunkContentRequest.js +0 -3
- package/dist/models/UpdateChunkMetadataRequest.d.ts +20 -2
- package/dist/models/UpdateChunkMetadataRequest.js +7 -3
- package/dist/models/UpdateSectionRequest.d.ts +6 -0
- package/dist/models/UpdateSectionRequest.js +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/ChunksApi.md +1 -1
- package/docs/FeaturesApi.md +68 -0
- package/docs/FeaturesResponse.md +36 -0
- package/docs/UpdateChunkContentRequest.md +0 -2
- package/docs/UpdateChunkMetadataRequest.md +7 -1
- package/docs/UpdateSectionRequest.md +2 -0
- package/package.json +1 -1
- package/src/apis/ChunksApi.ts +4 -4
- package/src/apis/FeaturesApi.ts +100 -0
- package/src/apis/index.ts +1 -0
- package/src/models/FeaturesResponse.ts +102 -0
- package/src/models/UpdateChunkContentRequest.ts +0 -18
- package/src/models/UpdateChunkMetadataRequest.ts +27 -4
- package/src/models/UpdateSectionRequest.ts +8 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -49,6 +49,8 @@ docs/EmailSentResponse.md
|
|
|
49
49
|
docs/EmailVerificationRequest.md
|
|
50
50
|
docs/EnrichedCitation.md
|
|
51
51
|
docs/EnrichedThreadMessageContent.md
|
|
52
|
+
docs/FeaturesApi.md
|
|
53
|
+
docs/FeaturesResponse.md
|
|
52
54
|
docs/FolderAction.md
|
|
53
55
|
docs/FolderActionResponse.md
|
|
54
56
|
docs/FolderResponse.md
|
|
@@ -159,6 +161,7 @@ src/apis/ChunksApi.ts
|
|
|
159
161
|
src/apis/DefaultApi.ts
|
|
160
162
|
src/apis/DocumentVersionsApi.ts
|
|
161
163
|
src/apis/DocumentsApi.ts
|
|
164
|
+
src/apis/FeaturesApi.ts
|
|
162
165
|
src/apis/FoldersApi.ts
|
|
163
166
|
src/apis/InvitesApi.ts
|
|
164
167
|
src/apis/PathPartsApi.ts
|
|
@@ -212,6 +215,7 @@ src/models/EmailSentResponse.ts
|
|
|
212
215
|
src/models/EmailVerificationRequest.ts
|
|
213
216
|
src/models/EnrichedCitation.ts
|
|
214
217
|
src/models/EnrichedThreadMessageContent.ts
|
|
218
|
+
src/models/FeaturesResponse.ts
|
|
215
219
|
src/models/FolderAction.ts
|
|
216
220
|
src/models/FolderActionResponse.ts
|
|
217
221
|
src/models/FolderResponse.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.
|
|
1
|
+
# @knowledge-stack/ksapi@1.52.1
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the localhost API.
|
|
4
4
|
|
|
@@ -93,6 +93,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
93
93
|
*DocumentsApi* | [**ingestDocumentVersion**](docs/DocumentsApi.md#ingestdocumentversion) | **POST** /v1/documents/{document_id}/ingest | Ingest Document Version Handler
|
|
94
94
|
*DocumentsApi* | [**listDocuments**](docs/DocumentsApi.md#listdocuments) | **GET** /v1/documents | List Documents Handler
|
|
95
95
|
*DocumentsApi* | [**updateDocument**](docs/DocumentsApi.md#updatedocumentoperation) | **PATCH** /v1/documents/{document_id} | Update Document Handler
|
|
96
|
+
*FeaturesApi* | [**getFeatures**](docs/FeaturesApi.md#getfeatures) | **GET** /v1/features | Get Features Handler
|
|
96
97
|
*FoldersApi* | [**createFolder**](docs/FoldersApi.md#createfolderoperation) | **POST** /v1/folders | Create Folder Handler
|
|
97
98
|
*FoldersApi* | [**deleteFolder**](docs/FoldersApi.md#deletefolder) | **DELETE** /v1/folders/{folder_id} | Delete Folder Handler
|
|
98
99
|
*FoldersApi* | [**folderAction**](docs/FoldersApi.md#folderaction) | **POST** /v1/folders/{folder_id} | Folder Action Handler
|
|
@@ -192,6 +193,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
192
193
|
- [EmailVerificationRequest](docs/EmailVerificationRequest.md)
|
|
193
194
|
- [EnrichedCitation](docs/EnrichedCitation.md)
|
|
194
195
|
- [EnrichedThreadMessageContent](docs/EnrichedThreadMessageContent.md)
|
|
196
|
+
- [FeaturesResponse](docs/FeaturesResponse.md)
|
|
195
197
|
- [FolderAction](docs/FolderAction.md)
|
|
196
198
|
- [FolderActionResponse](docs/FolderActionResponse.md)
|
|
197
199
|
- [FolderResponse](docs/FolderResponse.md)
|
|
@@ -296,7 +298,7 @@ and is automatically generated by the
|
|
|
296
298
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
297
299
|
|
|
298
300
|
- API version: `0.1.0`
|
|
299
|
-
- Package version: `1.
|
|
301
|
+
- Package version: `1.52.1`
|
|
300
302
|
- Generator version: `7.20.0`
|
|
301
303
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
302
304
|
|
package/dist/apis/ChunksApi.d.ts
CHANGED
|
@@ -251,7 +251,7 @@ export interface ChunksApiInterface {
|
|
|
251
251
|
*/
|
|
252
252
|
updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
|
|
253
253
|
/**
|
|
254
|
-
* Update chunk metadata
|
|
254
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
255
255
|
* @summary Update Chunk Metadata Handler
|
|
256
256
|
* @param {string} chunkId
|
|
257
257
|
* @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
|
|
@@ -263,7 +263,7 @@ export interface ChunksApiInterface {
|
|
|
263
263
|
*/
|
|
264
264
|
updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
|
|
265
265
|
/**
|
|
266
|
-
* Update chunk metadata
|
|
266
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
267
267
|
* Update Chunk Metadata Handler
|
|
268
268
|
*/
|
|
269
269
|
updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
@@ -375,12 +375,12 @@ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInter
|
|
|
375
375
|
*/
|
|
376
376
|
updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
|
|
377
377
|
/**
|
|
378
|
-
* Update chunk metadata
|
|
378
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
379
379
|
* Update Chunk Metadata Handler
|
|
380
380
|
*/
|
|
381
381
|
updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
|
|
382
382
|
/**
|
|
383
|
-
* Update chunk metadata
|
|
383
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
384
384
|
* Update Chunk Metadata Handler
|
|
385
385
|
*/
|
|
386
386
|
updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
package/dist/apis/ChunksApi.js
CHANGED
|
@@ -376,7 +376,7 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
376
376
|
});
|
|
377
377
|
}
|
|
378
378
|
/**
|
|
379
|
-
* Update chunk metadata
|
|
379
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
380
380
|
* Update Chunk Metadata Handler
|
|
381
381
|
*/
|
|
382
382
|
updateChunkMetadataRaw(requestParameters, initOverrides) {
|
|
@@ -387,7 +387,7 @@ class ChunksApi extends runtime.BaseAPI {
|
|
|
387
387
|
});
|
|
388
388
|
}
|
|
389
389
|
/**
|
|
390
|
-
* Update chunk metadata
|
|
390
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
391
391
|
* Update Chunk Metadata Handler
|
|
392
392
|
*/
|
|
393
393
|
updateChunkMetadata(requestParameters, initOverrides) {
|
|
@@ -0,0 +1,59 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { FeaturesResponse } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
* FeaturesApi - interface
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface FeaturesApiInterface
|
|
19
|
+
*/
|
|
20
|
+
export interface FeaturesApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for getFeatures without sending the request
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
* @memberof FeaturesApiInterface
|
|
25
|
+
*/
|
|
26
|
+
getFeaturesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
27
|
+
/**
|
|
28
|
+
* Return public feature flags for the frontend.
|
|
29
|
+
* @summary Get Features Handler
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
* @memberof FeaturesApiInterface
|
|
33
|
+
*/
|
|
34
|
+
getFeaturesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FeaturesResponse>>;
|
|
35
|
+
/**
|
|
36
|
+
* Return public feature flags for the frontend.
|
|
37
|
+
* Get Features Handler
|
|
38
|
+
*/
|
|
39
|
+
getFeatures(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FeaturesResponse>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
export declare class FeaturesApi extends runtime.BaseAPI implements FeaturesApiInterface {
|
|
45
|
+
/**
|
|
46
|
+
* Creates request options for getFeatures without sending the request
|
|
47
|
+
*/
|
|
48
|
+
getFeaturesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
49
|
+
/**
|
|
50
|
+
* Return public feature flags for the frontend.
|
|
51
|
+
* Get Features Handler
|
|
52
|
+
*/
|
|
53
|
+
getFeaturesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FeaturesResponse>>;
|
|
54
|
+
/**
|
|
55
|
+
* Return public feature flags for the frontend.
|
|
56
|
+
* Get Features Handler
|
|
57
|
+
*/
|
|
58
|
+
getFeatures(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FeaturesResponse>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.FeaturesApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class FeaturesApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for getFeatures without sending the request
|
|
34
|
+
*/
|
|
35
|
+
getFeaturesRequestOpts() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
let urlPath = `/v1/features`;
|
|
40
|
+
return {
|
|
41
|
+
path: urlPath,
|
|
42
|
+
method: 'GET',
|
|
43
|
+
headers: headerParameters,
|
|
44
|
+
query: queryParameters,
|
|
45
|
+
};
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Return public feature flags for the frontend.
|
|
50
|
+
* Get Features Handler
|
|
51
|
+
*/
|
|
52
|
+
getFeaturesRaw(initOverrides) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const requestOptions = yield this.getFeaturesRequestOpts();
|
|
55
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
56
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FeaturesResponseFromJSON)(jsonValue));
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Return public feature flags for the frontend.
|
|
61
|
+
* Get Features Handler
|
|
62
|
+
*/
|
|
63
|
+
getFeatures(initOverrides) {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const response = yield this.getFeaturesRaw(initOverrides);
|
|
66
|
+
return yield response.value();
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.FeaturesApi = FeaturesApi;
|
package/dist/apis/index.d.ts
CHANGED
package/dist/apis/index.js
CHANGED
|
@@ -23,6 +23,7 @@ __exportStar(require("./ChunksApi"), exports);
|
|
|
23
23
|
__exportStar(require("./DefaultApi"), exports);
|
|
24
24
|
__exportStar(require("./DocumentVersionsApi"), exports);
|
|
25
25
|
__exportStar(require("./DocumentsApi"), exports);
|
|
26
|
+
__exportStar(require("./FeaturesApi"), exports);
|
|
26
27
|
__exportStar(require("./FoldersApi"), exports);
|
|
27
28
|
__exportStar(require("./InvitesApi"), exports);
|
|
28
29
|
__exportStar(require("./PathPartsApi"), exports);
|
|
@@ -251,7 +251,7 @@ export interface ChunksApiInterface {
|
|
|
251
251
|
*/
|
|
252
252
|
updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
|
|
253
253
|
/**
|
|
254
|
-
* Update chunk metadata
|
|
254
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
255
255
|
* @summary Update Chunk Metadata Handler
|
|
256
256
|
* @param {string} chunkId
|
|
257
257
|
* @param {UpdateChunkMetadataRequest} updateChunkMetadataRequest
|
|
@@ -263,7 +263,7 @@ export interface ChunksApiInterface {
|
|
|
263
263
|
*/
|
|
264
264
|
updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
|
|
265
265
|
/**
|
|
266
|
-
* Update chunk metadata
|
|
266
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
267
267
|
* Update Chunk Metadata Handler
|
|
268
268
|
*/
|
|
269
269
|
updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
@@ -375,12 +375,12 @@ export declare class ChunksApi extends runtime.BaseAPI implements ChunksApiInter
|
|
|
375
375
|
*/
|
|
376
376
|
updateChunkMetadataRequestOpts(requestParameters: UpdateChunkMetadataOperationRequest): Promise<runtime.RequestOpts>;
|
|
377
377
|
/**
|
|
378
|
-
* Update chunk metadata
|
|
378
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
379
379
|
* Update Chunk Metadata Handler
|
|
380
380
|
*/
|
|
381
381
|
updateChunkMetadataRaw(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ChunkResponse>>;
|
|
382
382
|
/**
|
|
383
|
-
* Update chunk metadata
|
|
383
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
384
384
|
* Update Chunk Metadata Handler
|
|
385
385
|
*/
|
|
386
386
|
updateChunkMetadata(requestParameters: UpdateChunkMetadataOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ChunkResponse>;
|
|
@@ -373,7 +373,7 @@ export class ChunksApi extends runtime.BaseAPI {
|
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
/**
|
|
376
|
-
* Update chunk metadata
|
|
376
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
377
377
|
* Update Chunk Metadata Handler
|
|
378
378
|
*/
|
|
379
379
|
updateChunkMetadataRaw(requestParameters, initOverrides) {
|
|
@@ -384,7 +384,7 @@ export class ChunksApi extends runtime.BaseAPI {
|
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
/**
|
|
387
|
-
* Update chunk metadata
|
|
387
|
+
* Update chunk metadata and/or move the chunk. The provided metadata is shallow-merged into the existing chunk_metadata. Move params (parent_path_part_id, prev_sibling_path_id, move_to_head) allow reparenting or reordering the chunk within the same document version.
|
|
388
388
|
* Update Chunk Metadata Handler
|
|
389
389
|
*/
|
|
390
390
|
updateChunkMetadata(requestParameters, initOverrides) {
|
|
@@ -0,0 +1,59 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { FeaturesResponse } from '../models/index';
|
|
14
|
+
/**
|
|
15
|
+
* FeaturesApi - interface
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface FeaturesApiInterface
|
|
19
|
+
*/
|
|
20
|
+
export interface FeaturesApiInterface {
|
|
21
|
+
/**
|
|
22
|
+
* Creates request options for getFeatures without sending the request
|
|
23
|
+
* @throws {RequiredError}
|
|
24
|
+
* @memberof FeaturesApiInterface
|
|
25
|
+
*/
|
|
26
|
+
getFeaturesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
27
|
+
/**
|
|
28
|
+
* Return public feature flags for the frontend.
|
|
29
|
+
* @summary Get Features Handler
|
|
30
|
+
* @param {*} [options] Override http request option.
|
|
31
|
+
* @throws {RequiredError}
|
|
32
|
+
* @memberof FeaturesApiInterface
|
|
33
|
+
*/
|
|
34
|
+
getFeaturesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FeaturesResponse>>;
|
|
35
|
+
/**
|
|
36
|
+
* Return public feature flags for the frontend.
|
|
37
|
+
* Get Features Handler
|
|
38
|
+
*/
|
|
39
|
+
getFeatures(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FeaturesResponse>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
export declare class FeaturesApi extends runtime.BaseAPI implements FeaturesApiInterface {
|
|
45
|
+
/**
|
|
46
|
+
* Creates request options for getFeatures without sending the request
|
|
47
|
+
*/
|
|
48
|
+
getFeaturesRequestOpts(): Promise<runtime.RequestOpts>;
|
|
49
|
+
/**
|
|
50
|
+
* Return public feature flags for the frontend.
|
|
51
|
+
* Get Features Handler
|
|
52
|
+
*/
|
|
53
|
+
getFeaturesRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FeaturesResponse>>;
|
|
54
|
+
/**
|
|
55
|
+
* Return public feature flags for the frontend.
|
|
56
|
+
* Get Features Handler
|
|
57
|
+
*/
|
|
58
|
+
getFeatures(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FeaturesResponse>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
import { FeaturesResponseFromJSON, } from '../models/index';
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
export class FeaturesApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for getFeatures without sending the request
|
|
31
|
+
*/
|
|
32
|
+
getFeaturesRequestOpts() {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
const queryParameters = {};
|
|
35
|
+
const headerParameters = {};
|
|
36
|
+
let urlPath = `/v1/features`;
|
|
37
|
+
return {
|
|
38
|
+
path: urlPath,
|
|
39
|
+
method: 'GET',
|
|
40
|
+
headers: headerParameters,
|
|
41
|
+
query: queryParameters,
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Return public feature flags for the frontend.
|
|
47
|
+
* Get Features Handler
|
|
48
|
+
*/
|
|
49
|
+
getFeaturesRaw(initOverrides) {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
const requestOptions = yield this.getFeaturesRequestOpts();
|
|
52
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
53
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FeaturesResponseFromJSON(jsonValue));
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Return public feature flags for the frontend.
|
|
58
|
+
* Get Features Handler
|
|
59
|
+
*/
|
|
60
|
+
getFeatures(initOverrides) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
const response = yield this.getFeaturesRaw(initOverrides);
|
|
63
|
+
return yield response.value();
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
package/dist/esm/apis/index.d.ts
CHANGED
package/dist/esm/apis/index.js
CHANGED
|
@@ -7,6 +7,7 @@ export * from './ChunksApi';
|
|
|
7
7
|
export * from './DefaultApi';
|
|
8
8
|
export * from './DocumentVersionsApi';
|
|
9
9
|
export * from './DocumentsApi';
|
|
10
|
+
export * from './FeaturesApi';
|
|
10
11
|
export * from './FoldersApi';
|
|
11
12
|
export * from './InvitesApi';
|
|
12
13
|
export * from './PathPartsApi';
|
|
@@ -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
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FeaturesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface FeaturesResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof FeaturesResponse
|
|
23
|
+
*/
|
|
24
|
+
googleLoginEnabled: boolean;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SupportedLanguage}
|
|
28
|
+
* @memberof FeaturesResponse
|
|
29
|
+
*/
|
|
30
|
+
defaultFrontendLanguage: SupportedLanguage;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the FeaturesResponse interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfFeaturesResponse(value: object): value is FeaturesResponse;
|
|
36
|
+
export declare function FeaturesResponseFromJSON(json: any): FeaturesResponse;
|
|
37
|
+
export declare function FeaturesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeaturesResponse;
|
|
38
|
+
export declare function FeaturesResponseToJSON(json: any): FeaturesResponse;
|
|
39
|
+
export declare function FeaturesResponseToJSONTyped(value?: FeaturesResponse | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
+
export declare const FeaturesResponsePropertyValidationAttributesMap: {
|
|
41
|
+
[property: string]: {
|
|
42
|
+
maxLength?: number;
|
|
43
|
+
minLength?: number;
|
|
44
|
+
pattern?: string;
|
|
45
|
+
maximum?: number;
|
|
46
|
+
exclusiveMaximum?: boolean;
|
|
47
|
+
minimum?: number;
|
|
48
|
+
exclusiveMinimum?: boolean;
|
|
49
|
+
multipleOf?: number;
|
|
50
|
+
maxItems?: number;
|
|
51
|
+
minItems?: number;
|
|
52
|
+
uniqueItems?: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { SupportedLanguageFromJSON, SupportedLanguageToJSON, } from './SupportedLanguage';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the FeaturesResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfFeaturesResponse(value) {
|
|
19
|
+
if (!('googleLoginEnabled' in value) || value['googleLoginEnabled'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('defaultFrontendLanguage' in value) || value['defaultFrontendLanguage'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function FeaturesResponseFromJSON(json) {
|
|
26
|
+
return FeaturesResponseFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function FeaturesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'googleLoginEnabled': json['google_login_enabled'],
|
|
34
|
+
'defaultFrontendLanguage': SupportedLanguageFromJSON(json['default_frontend_language']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function FeaturesResponseToJSON(json) {
|
|
38
|
+
return FeaturesResponseToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function FeaturesResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'google_login_enabled': value['googleLoginEnabled'],
|
|
46
|
+
'default_frontend_language': SupportedLanguageToJSON(value['defaultFrontendLanguage']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export const FeaturesResponsePropertyValidationAttributesMap = {};
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type { ChunkType } from './ChunkType';
|
|
13
12
|
/**
|
|
14
13
|
* Request to update chunk content (creates new content row).
|
|
15
14
|
* @export
|
|
@@ -22,12 +21,6 @@ export interface UpdateChunkContentRequest {
|
|
|
22
21
|
* @memberof UpdateChunkContentRequest
|
|
23
22
|
*/
|
|
24
23
|
content: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {ChunkType}
|
|
28
|
-
* @memberof UpdateChunkContentRequest
|
|
29
|
-
*/
|
|
30
|
-
chunkType?: ChunkType;
|
|
31
24
|
}
|
|
32
25
|
/**
|
|
33
26
|
* Check if a given object implements the UpdateChunkContentRequest interface.
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
-
import { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
|
|
15
14
|
/**
|
|
16
15
|
* Check if a given object implements the UpdateChunkContentRequest interface.
|
|
17
16
|
*/
|
|
@@ -29,7 +28,6 @@ export function UpdateChunkContentRequestFromJSONTyped(json, ignoreDiscriminator
|
|
|
29
28
|
}
|
|
30
29
|
return {
|
|
31
30
|
'content': json['content'],
|
|
32
|
-
'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
|
|
33
31
|
};
|
|
34
32
|
}
|
|
35
33
|
export function UpdateChunkContentRequestToJSON(json) {
|
|
@@ -41,7 +39,6 @@ export function UpdateChunkContentRequestToJSONTyped(value, ignoreDiscriminator
|
|
|
41
39
|
}
|
|
42
40
|
return {
|
|
43
41
|
'content': value['content'],
|
|
44
|
-
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
45
42
|
};
|
|
46
43
|
}
|
|
47
44
|
export const UpdateChunkContentRequestPropertyValidationAttributesMap = {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { ChunkMetadataInput } from './ChunkMetadataInput';
|
|
13
13
|
/**
|
|
14
|
-
* Request to update chunk metadata
|
|
14
|
+
* Request to update chunk metadata and/or move the chunk.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface UpdateChunkMetadataRequest
|
|
17
17
|
*/
|
|
@@ -21,7 +21,25 @@ export interface UpdateChunkMetadataRequest {
|
|
|
21
21
|
* @type {ChunkMetadataInput}
|
|
22
22
|
* @memberof UpdateChunkMetadataRequest
|
|
23
23
|
*/
|
|
24
|
-
chunkMetadata
|
|
24
|
+
chunkMetadata?: ChunkMetadataInput;
|
|
25
|
+
/**
|
|
26
|
+
* Reparent to this PathPart ID (must be DOCUMENT_VERSION or SECTION in the same document version)
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateChunkMetadataRequest
|
|
29
|
+
*/
|
|
30
|
+
parentPathPartId?: string | null;
|
|
31
|
+
/**
|
|
32
|
+
* Move after this sibling PathPart ID (within new or current parent)
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateChunkMetadataRequest
|
|
35
|
+
*/
|
|
36
|
+
prevSiblingPathId?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Set to true to move to head of sibling list
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof UpdateChunkMetadataRequest
|
|
41
|
+
*/
|
|
42
|
+
moveToHead?: boolean;
|
|
25
43
|
}
|
|
26
44
|
/**
|
|
27
45
|
* Check if a given object implements the UpdateChunkMetadataRequest interface.
|