@knowledge-stack/ksapi 1.6.0 → 1.8.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 +14 -0
- package/README.md +2 -2
- package/dist/apis/ChunksApi.d.ts +175 -0
- package/dist/apis/ChunksApi.js +203 -0
- package/dist/apis/PathPartsApi.d.ts +30 -1
- package/dist/apis/PathPartsApi.js +32 -0
- package/dist/apis/SectionsApi.d.ts +144 -0
- package/dist/apis/SectionsApi.js +166 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/ChunksApi.d.ts +175 -0
- package/dist/esm/apis/ChunksApi.js +199 -0
- package/dist/esm/apis/PathPartsApi.d.ts +30 -1
- package/dist/esm/apis/PathPartsApi.js +33 -1
- package/dist/esm/apis/SectionsApi.d.ts +144 -0
- package/dist/esm/apis/SectionsApi.js +162 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/ChunkMetadataInput.d.ts +48 -0
- package/dist/esm/models/ChunkMetadataInput.js +43 -0
- package/dist/esm/models/ChunkMetadataOutput.d.ts +48 -0
- package/dist/esm/models/ChunkMetadataOutput.js +43 -0
- package/dist/esm/models/ChunkResponse.d.ts +115 -0
- package/dist/esm/models/ChunkResponse.js +86 -0
- package/dist/esm/models/ChunkType.d.ts +27 -0
- package/dist/esm/models/ChunkType.js +45 -0
- package/dist/esm/models/CreateChunkRequest.d.ts +73 -0
- package/dist/esm/models/CreateChunkRequest.js +64 -0
- package/dist/esm/models/CreateSectionRequest.d.ts +65 -0
- package/dist/esm/models/CreateSectionRequest.js +57 -0
- package/dist/esm/models/PasswordResetWithTokenRequest.d.ts +2 -8
- package/dist/esm/models/PasswordResetWithTokenRequest.js +3 -7
- package/dist/esm/models/Polygon.d.ts +65 -0
- package/dist/esm/models/Polygon.js +56 -0
- package/dist/esm/models/PolygonReference.d.ts +54 -0
- package/dist/esm/models/PolygonReference.js +49 -0
- package/dist/esm/models/SectionResponse.d.ts +101 -0
- package/dist/esm/models/SectionResponse.js +74 -0
- package/dist/esm/models/UpdateChunkContentRequest.d.ts +54 -0
- package/dist/esm/models/UpdateChunkContentRequest.js +51 -0
- package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +48 -0
- package/dist/esm/models/UpdateChunkMetadataRequest.js +45 -0
- package/dist/esm/models/UpdateSectionRequest.d.ts +65 -0
- package/dist/esm/models/UpdateSectionRequest.js +53 -0
- package/dist/esm/models/index.d.ts +12 -0
- package/dist/esm/models/index.js +12 -0
- package/dist/models/ChunkMetadataInput.d.ts +48 -0
- package/dist/models/ChunkMetadataInput.js +51 -0
- package/dist/models/ChunkMetadataOutput.d.ts +48 -0
- package/dist/models/ChunkMetadataOutput.js +51 -0
- package/dist/models/ChunkResponse.d.ts +115 -0
- package/dist/models/ChunkResponse.js +94 -0
- package/dist/models/ChunkType.d.ts +27 -0
- package/dist/models/ChunkType.js +53 -0
- package/dist/models/CreateChunkRequest.d.ts +73 -0
- package/dist/models/CreateChunkRequest.js +72 -0
- package/dist/models/CreateSectionRequest.d.ts +65 -0
- package/dist/models/CreateSectionRequest.js +65 -0
- package/dist/models/PasswordResetWithTokenRequest.d.ts +2 -8
- package/dist/models/PasswordResetWithTokenRequest.js +3 -7
- package/dist/models/Polygon.d.ts +65 -0
- package/dist/models/Polygon.js +64 -0
- package/dist/models/PolygonReference.d.ts +54 -0
- package/dist/models/PolygonReference.js +57 -0
- package/dist/models/SectionResponse.d.ts +101 -0
- package/dist/models/SectionResponse.js +82 -0
- package/dist/models/UpdateChunkContentRequest.d.ts +54 -0
- package/dist/models/UpdateChunkContentRequest.js +59 -0
- package/dist/models/UpdateChunkMetadataRequest.d.ts +48 -0
- package/dist/models/UpdateChunkMetadataRequest.js +53 -0
- package/dist/models/UpdateSectionRequest.d.ts +65 -0
- package/dist/models/UpdateSectionRequest.js +61 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +1 -1
- package/src/apis/ChunksApi.ts +381 -0
- package/src/apis/PathPartsApi.ts +64 -0
- package/src/apis/SectionsApi.ts +305 -0
- package/src/apis/index.ts +2 -0
- package/src/models/ChunkMetadataInput.ts +90 -0
- package/src/models/ChunkMetadataOutput.ts +90 -0
- package/src/models/ChunkResponse.ts +197 -0
- package/src/models/ChunkType.ts +55 -0
- package/src/models/CreateChunkRequest.ts +138 -0
- package/src/models/CreateSectionRequest.ts +112 -0
- package/src/models/PasswordResetWithTokenRequest.ts +5 -14
- package/src/models/Polygon.ts +110 -0
- package/src/models/PolygonReference.ts +100 -0
- package/src/models/SectionResponse.ts +161 -0
- package/src/models/UpdateChunkContentRequest.ts +104 -0
- package/src/models/UpdateChunkMetadataRequest.ts +91 -0
- package/src/models/UpdateSectionRequest.ts +110 -0
- package/src/models/index.ts +12 -0
|
@@ -0,0 +1,101 @@
|
|
|
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
|
+
* Section response model.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface SectionResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface SectionResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Section ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SectionResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* PathPart ID
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SectionResponse
|
|
28
|
+
*/
|
|
29
|
+
pathPartId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Section name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SectionResponse
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Page number in source document
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof SectionResponse
|
|
40
|
+
*/
|
|
41
|
+
pageNumber?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Parent PathPart ID
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof SectionResponse
|
|
46
|
+
*/
|
|
47
|
+
parentId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Previous sibling PathPart ID
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof SectionResponse
|
|
52
|
+
*/
|
|
53
|
+
prevSiblingPathId?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Next sibling PathPart ID
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof SectionResponse
|
|
58
|
+
*/
|
|
59
|
+
nextSiblingId?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Tenant ID
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SectionResponse
|
|
64
|
+
*/
|
|
65
|
+
tenantId: string;
|
|
66
|
+
/**
|
|
67
|
+
* Creation timestamp
|
|
68
|
+
* @type {Date}
|
|
69
|
+
* @memberof SectionResponse
|
|
70
|
+
*/
|
|
71
|
+
createdAt: Date;
|
|
72
|
+
/**
|
|
73
|
+
* Last update timestamp
|
|
74
|
+
* @type {Date}
|
|
75
|
+
* @memberof SectionResponse
|
|
76
|
+
*/
|
|
77
|
+
updatedAt: Date;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the SectionResponse interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfSectionResponse(value: object): value is SectionResponse;
|
|
83
|
+
export declare function SectionResponseFromJSON(json: any): SectionResponse;
|
|
84
|
+
export declare function SectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SectionResponse;
|
|
85
|
+
export declare function SectionResponseToJSON(json: any): SectionResponse;
|
|
86
|
+
export declare function SectionResponseToJSONTyped(value?: SectionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
87
|
+
export declare const SectionResponsePropertyValidationAttributesMap: {
|
|
88
|
+
[property: string]: {
|
|
89
|
+
maxLength?: number;
|
|
90
|
+
minLength?: number;
|
|
91
|
+
pattern?: string;
|
|
92
|
+
maximum?: number;
|
|
93
|
+
exclusiveMaximum?: boolean;
|
|
94
|
+
minimum?: number;
|
|
95
|
+
exclusiveMinimum?: boolean;
|
|
96
|
+
multipleOf?: number;
|
|
97
|
+
maxItems?: number;
|
|
98
|
+
minItems?: number;
|
|
99
|
+
uniqueItems?: boolean;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.SectionResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfSectionResponse = instanceOfSectionResponse;
|
|
18
|
+
exports.SectionResponseFromJSON = SectionResponseFromJSON;
|
|
19
|
+
exports.SectionResponseFromJSONTyped = SectionResponseFromJSONTyped;
|
|
20
|
+
exports.SectionResponseToJSON = SectionResponseToJSON;
|
|
21
|
+
exports.SectionResponseToJSONTyped = SectionResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the SectionResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfSectionResponse(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
function SectionResponseFromJSON(json) {
|
|
43
|
+
return SectionResponseFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function SectionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'pathPartId': json['path_part_id'],
|
|
52
|
+
'name': json['name'],
|
|
53
|
+
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
54
|
+
'parentId': json['parent_id'],
|
|
55
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
56
|
+
'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
|
|
57
|
+
'tenantId': json['tenant_id'],
|
|
58
|
+
'createdAt': (new Date(json['created_at'])),
|
|
59
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function SectionResponseToJSON(json) {
|
|
63
|
+
return SectionResponseToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
function SectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'id': value['id'],
|
|
71
|
+
'path_part_id': value['pathPartId'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
'page_number': value['pageNumber'],
|
|
74
|
+
'parent_id': value['parentId'],
|
|
75
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
76
|
+
'next_sibling_id': value['nextSiblingId'],
|
|
77
|
+
'tenant_id': value['tenantId'],
|
|
78
|
+
'created_at': value['createdAt'].toISOString(),
|
|
79
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
exports.SectionResponsePropertyValidationAttributesMap = {};
|
|
@@ -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 { ChunkType } from './ChunkType';
|
|
13
|
+
/**
|
|
14
|
+
* Request to update chunk content (creates new content row).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateChunkContentRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateChunkContentRequest {
|
|
19
|
+
/**
|
|
20
|
+
* New chunk text content
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateChunkContentRequest
|
|
23
|
+
*/
|
|
24
|
+
content: string;
|
|
25
|
+
/**
|
|
26
|
+
* New chunk type (null = keep existing type)
|
|
27
|
+
* @type {ChunkType}
|
|
28
|
+
* @memberof UpdateChunkContentRequest
|
|
29
|
+
*/
|
|
30
|
+
chunkType?: ChunkType;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UpdateChunkContentRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUpdateChunkContentRequest(value: object): value is UpdateChunkContentRequest;
|
|
36
|
+
export declare function UpdateChunkContentRequestFromJSON(json: any): UpdateChunkContentRequest;
|
|
37
|
+
export declare function UpdateChunkContentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateChunkContentRequest;
|
|
38
|
+
export declare function UpdateChunkContentRequestToJSON(json: any): UpdateChunkContentRequest;
|
|
39
|
+
export declare function UpdateChunkContentRequestToJSONTyped(value?: UpdateChunkContentRequest | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
+
export declare const UpdateChunkContentRequestPropertyValidationAttributesMap: {
|
|
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,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateChunkContentRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfUpdateChunkContentRequest = instanceOfUpdateChunkContentRequest;
|
|
18
|
+
exports.UpdateChunkContentRequestFromJSON = UpdateChunkContentRequestFromJSON;
|
|
19
|
+
exports.UpdateChunkContentRequestFromJSONTyped = UpdateChunkContentRequestFromJSONTyped;
|
|
20
|
+
exports.UpdateChunkContentRequestToJSON = UpdateChunkContentRequestToJSON;
|
|
21
|
+
exports.UpdateChunkContentRequestToJSONTyped = UpdateChunkContentRequestToJSONTyped;
|
|
22
|
+
const ChunkType_1 = require("./ChunkType");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the UpdateChunkContentRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfUpdateChunkContentRequest(value) {
|
|
27
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function UpdateChunkContentRequestFromJSON(json) {
|
|
32
|
+
return UpdateChunkContentRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function UpdateChunkContentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'content': json['content'],
|
|
40
|
+
'chunkType': json['chunk_type'] == null ? undefined : (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function UpdateChunkContentRequestToJSON(json) {
|
|
44
|
+
return UpdateChunkContentRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function UpdateChunkContentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'content': value['content'],
|
|
52
|
+
'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
exports.UpdateChunkContentRequestPropertyValidationAttributesMap = {
|
|
56
|
+
content: {
|
|
57
|
+
minLength: 1,
|
|
58
|
+
},
|
|
59
|
+
};
|
|
@@ -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 { ChunkMetadataInput } from './ChunkMetadataInput';
|
|
13
|
+
/**
|
|
14
|
+
* Request to update chunk metadata (merge).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateChunkMetadataRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateChunkMetadataRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Metadata to merge into existing chunk_metadata
|
|
21
|
+
* @type {ChunkMetadataInput}
|
|
22
|
+
* @memberof UpdateChunkMetadataRequest
|
|
23
|
+
*/
|
|
24
|
+
chunkMetadata: ChunkMetadataInput;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the UpdateChunkMetadataRequest interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfUpdateChunkMetadataRequest(value: object): value is UpdateChunkMetadataRequest;
|
|
30
|
+
export declare function UpdateChunkMetadataRequestFromJSON(json: any): UpdateChunkMetadataRequest;
|
|
31
|
+
export declare function UpdateChunkMetadataRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateChunkMetadataRequest;
|
|
32
|
+
export declare function UpdateChunkMetadataRequestToJSON(json: any): UpdateChunkMetadataRequest;
|
|
33
|
+
export declare function UpdateChunkMetadataRequestToJSONTyped(value?: UpdateChunkMetadataRequest | null, ignoreDiscriminator?: boolean): any;
|
|
34
|
+
export declare const UpdateChunkMetadataRequestPropertyValidationAttributesMap: {
|
|
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,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateChunkMetadataRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfUpdateChunkMetadataRequest = instanceOfUpdateChunkMetadataRequest;
|
|
18
|
+
exports.UpdateChunkMetadataRequestFromJSON = UpdateChunkMetadataRequestFromJSON;
|
|
19
|
+
exports.UpdateChunkMetadataRequestFromJSONTyped = UpdateChunkMetadataRequestFromJSONTyped;
|
|
20
|
+
exports.UpdateChunkMetadataRequestToJSON = UpdateChunkMetadataRequestToJSON;
|
|
21
|
+
exports.UpdateChunkMetadataRequestToJSONTyped = UpdateChunkMetadataRequestToJSONTyped;
|
|
22
|
+
const ChunkMetadataInput_1 = require("./ChunkMetadataInput");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the UpdateChunkMetadataRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfUpdateChunkMetadataRequest(value) {
|
|
27
|
+
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function UpdateChunkMetadataRequestFromJSON(json) {
|
|
32
|
+
return UpdateChunkMetadataRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function UpdateChunkMetadataRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'chunkMetadata': (0, ChunkMetadataInput_1.ChunkMetadataInputFromJSON)(json['chunk_metadata']),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function UpdateChunkMetadataRequestToJSON(json) {
|
|
43
|
+
return UpdateChunkMetadataRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function UpdateChunkMetadataRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'chunk_metadata': (0, ChunkMetadataInput_1.ChunkMetadataInputToJSON)(value['chunkMetadata']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.UpdateChunkMetadataRequestPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,65 @@
|
|
|
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
|
+
* Request to update a section.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateSectionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateSectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
* New section name (can contain any characters)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateSectionRequest
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* New page number (must be > 0)
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UpdateSectionRequest
|
|
28
|
+
*/
|
|
29
|
+
pageNumber?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Move after this sibling PathPart ID
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateSectionRequest
|
|
34
|
+
*/
|
|
35
|
+
prevSiblingPathId?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Set to true to move to head of sibling list. This is needed since prev_sibling_path_id = None means no update
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof UpdateSectionRequest
|
|
40
|
+
*/
|
|
41
|
+
moveToHead?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the UpdateSectionRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfUpdateSectionRequest(value: object): value is UpdateSectionRequest;
|
|
47
|
+
export declare function UpdateSectionRequestFromJSON(json: any): UpdateSectionRequest;
|
|
48
|
+
export declare function UpdateSectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateSectionRequest;
|
|
49
|
+
export declare function UpdateSectionRequestToJSON(json: any): UpdateSectionRequest;
|
|
50
|
+
export declare function UpdateSectionRequestToJSONTyped(value?: UpdateSectionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
51
|
+
export declare const UpdateSectionRequestPropertyValidationAttributesMap: {
|
|
52
|
+
[property: string]: {
|
|
53
|
+
maxLength?: number;
|
|
54
|
+
minLength?: number;
|
|
55
|
+
pattern?: string;
|
|
56
|
+
maximum?: number;
|
|
57
|
+
exclusiveMaximum?: boolean;
|
|
58
|
+
minimum?: number;
|
|
59
|
+
exclusiveMinimum?: boolean;
|
|
60
|
+
multipleOf?: number;
|
|
61
|
+
maxItems?: number;
|
|
62
|
+
minItems?: number;
|
|
63
|
+
uniqueItems?: boolean;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateSectionRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfUpdateSectionRequest = instanceOfUpdateSectionRequest;
|
|
18
|
+
exports.UpdateSectionRequestFromJSON = UpdateSectionRequestFromJSON;
|
|
19
|
+
exports.UpdateSectionRequestFromJSONTyped = UpdateSectionRequestFromJSONTyped;
|
|
20
|
+
exports.UpdateSectionRequestToJSON = UpdateSectionRequestToJSON;
|
|
21
|
+
exports.UpdateSectionRequestToJSONTyped = UpdateSectionRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateSectionRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateSectionRequest(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function UpdateSectionRequestFromJSON(json) {
|
|
29
|
+
return UpdateSectionRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function UpdateSectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
38
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
39
|
+
'moveToHead': json['move_to_head'] == null ? undefined : json['move_to_head'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function UpdateSectionRequestToJSON(json) {
|
|
43
|
+
return UpdateSectionRequestToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function UpdateSectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'name': value['name'],
|
|
51
|
+
'page_number': value['pageNumber'],
|
|
52
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
53
|
+
'move_to_head': value['moveToHead'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
exports.UpdateSectionRequestPropertyValidationAttributesMap = {
|
|
57
|
+
name: {
|
|
58
|
+
maxLength: 255,
|
|
59
|
+
minLength: 1,
|
|
60
|
+
},
|
|
61
|
+
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
+
export * from './ChunkMetadataInput';
|
|
2
|
+
export * from './ChunkMetadataOutput';
|
|
3
|
+
export * from './ChunkResponse';
|
|
4
|
+
export * from './ChunkType';
|
|
5
|
+
export * from './CreateChunkRequest';
|
|
1
6
|
export * from './CreateDocumentRequest';
|
|
2
7
|
export * from './CreateFolderRequest';
|
|
3
8
|
export * from './CreatePasswordUserRequest';
|
|
9
|
+
export * from './CreateSectionRequest';
|
|
4
10
|
export * from './CreateTenantRequest';
|
|
5
11
|
export * from './DocumentOrigin';
|
|
6
12
|
export * from './DocumentResponse';
|
|
@@ -28,13 +34,19 @@ export * from './PasswordResetRequest';
|
|
|
28
34
|
export * from './PasswordResetWithTokenRequest';
|
|
29
35
|
export * from './PathOrder';
|
|
30
36
|
export * from './PathPartResponse';
|
|
37
|
+
export * from './Polygon';
|
|
38
|
+
export * from './PolygonReference';
|
|
31
39
|
export * from './RootResponse';
|
|
40
|
+
export * from './SectionResponse';
|
|
32
41
|
export * from './SignInRequest';
|
|
33
42
|
export * from './TenantResponse';
|
|
34
43
|
export * from './TenantUserInTenantResponse';
|
|
35
44
|
export * from './TenantUserRole';
|
|
45
|
+
export * from './UpdateChunkContentRequest';
|
|
46
|
+
export * from './UpdateChunkMetadataRequest';
|
|
36
47
|
export * from './UpdateDocumentRequest';
|
|
37
48
|
export * from './UpdateFolderRequest';
|
|
49
|
+
export * from './UpdateSectionRequest';
|
|
38
50
|
export * from './UpdateTenantRequest';
|
|
39
51
|
export * from './UpdateUserRequest';
|
|
40
52
|
export * from './UserResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -16,9 +16,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
+
__exportStar(require("./ChunkMetadataInput"), exports);
|
|
20
|
+
__exportStar(require("./ChunkMetadataOutput"), exports);
|
|
21
|
+
__exportStar(require("./ChunkResponse"), exports);
|
|
22
|
+
__exportStar(require("./ChunkType"), exports);
|
|
23
|
+
__exportStar(require("./CreateChunkRequest"), exports);
|
|
19
24
|
__exportStar(require("./CreateDocumentRequest"), exports);
|
|
20
25
|
__exportStar(require("./CreateFolderRequest"), exports);
|
|
21
26
|
__exportStar(require("./CreatePasswordUserRequest"), exports);
|
|
27
|
+
__exportStar(require("./CreateSectionRequest"), exports);
|
|
22
28
|
__exportStar(require("./CreateTenantRequest"), exports);
|
|
23
29
|
__exportStar(require("./DocumentOrigin"), exports);
|
|
24
30
|
__exportStar(require("./DocumentResponse"), exports);
|
|
@@ -46,13 +52,19 @@ __exportStar(require("./PasswordResetRequest"), exports);
|
|
|
46
52
|
__exportStar(require("./PasswordResetWithTokenRequest"), exports);
|
|
47
53
|
__exportStar(require("./PathOrder"), exports);
|
|
48
54
|
__exportStar(require("./PathPartResponse"), exports);
|
|
55
|
+
__exportStar(require("./Polygon"), exports);
|
|
56
|
+
__exportStar(require("./PolygonReference"), exports);
|
|
49
57
|
__exportStar(require("./RootResponse"), exports);
|
|
58
|
+
__exportStar(require("./SectionResponse"), exports);
|
|
50
59
|
__exportStar(require("./SignInRequest"), exports);
|
|
51
60
|
__exportStar(require("./TenantResponse"), exports);
|
|
52
61
|
__exportStar(require("./TenantUserInTenantResponse"), exports);
|
|
53
62
|
__exportStar(require("./TenantUserRole"), exports);
|
|
63
|
+
__exportStar(require("./UpdateChunkContentRequest"), exports);
|
|
64
|
+
__exportStar(require("./UpdateChunkMetadataRequest"), exports);
|
|
54
65
|
__exportStar(require("./UpdateDocumentRequest"), exports);
|
|
55
66
|
__exportStar(require("./UpdateFolderRequest"), exports);
|
|
67
|
+
__exportStar(require("./UpdateSectionRequest"), exports);
|
|
56
68
|
__exportStar(require("./UpdateTenantRequest"), exports);
|
|
57
69
|
__exportStar(require("./UpdateUserRequest"), exports);
|
|
58
70
|
__exportStar(require("./UserResponse"), exports);
|