@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,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.ChunkType = void 0;
|
|
17
|
+
exports.instanceOfChunkType = instanceOfChunkType;
|
|
18
|
+
exports.ChunkTypeFromJSON = ChunkTypeFromJSON;
|
|
19
|
+
exports.ChunkTypeFromJSONTyped = ChunkTypeFromJSONTyped;
|
|
20
|
+
exports.ChunkTypeToJSON = ChunkTypeToJSON;
|
|
21
|
+
exports.ChunkTypeToJSONTyped = ChunkTypeToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Type of chunk content.
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.ChunkType = {
|
|
27
|
+
Text: 'TEXT',
|
|
28
|
+
Table: 'TABLE',
|
|
29
|
+
Image: 'IMAGE',
|
|
30
|
+
Unknown: 'UNKNOWN'
|
|
31
|
+
};
|
|
32
|
+
function instanceOfChunkType(value) {
|
|
33
|
+
for (const key in exports.ChunkType) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(exports.ChunkType, key)) {
|
|
35
|
+
if (exports.ChunkType[key] === value) {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
function ChunkTypeFromJSON(json) {
|
|
43
|
+
return ChunkTypeFromJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function ChunkTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
function ChunkTypeToJSON(value) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
function ChunkTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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
|
+
import type { ChunkType } from './ChunkType';
|
|
14
|
+
/**
|
|
15
|
+
* Request to create a new chunk.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CreateChunkRequest
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateChunkRequest {
|
|
20
|
+
/**
|
|
21
|
+
* Parent PathPart ID (must be DOCUMENT_VERSION or SECTION)
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CreateChunkRequest
|
|
24
|
+
*/
|
|
25
|
+
parentPathId: string;
|
|
26
|
+
/**
|
|
27
|
+
* Chunk text content
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CreateChunkRequest
|
|
30
|
+
*/
|
|
31
|
+
content: string;
|
|
32
|
+
/**
|
|
33
|
+
* Type of chunk content (TEXT, TABLE, IMAGE, UNKNOWN)
|
|
34
|
+
* @type {ChunkType}
|
|
35
|
+
* @memberof CreateChunkRequest
|
|
36
|
+
*/
|
|
37
|
+
chunkType: ChunkType;
|
|
38
|
+
/**
|
|
39
|
+
* Chunk metadata as JSON (title, description, etc.)
|
|
40
|
+
* @type {ChunkMetadataInput}
|
|
41
|
+
* @memberof CreateChunkRequest
|
|
42
|
+
*/
|
|
43
|
+
chunkMetadata: ChunkMetadataInput;
|
|
44
|
+
/**
|
|
45
|
+
* PathPart ID to insert after (null = append to tail)
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof CreateChunkRequest
|
|
48
|
+
*/
|
|
49
|
+
prevSiblingPathId?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Check if a given object implements the CreateChunkRequest interface.
|
|
53
|
+
*/
|
|
54
|
+
export declare function instanceOfCreateChunkRequest(value: object): value is CreateChunkRequest;
|
|
55
|
+
export declare function CreateChunkRequestFromJSON(json: any): CreateChunkRequest;
|
|
56
|
+
export declare function CreateChunkRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateChunkRequest;
|
|
57
|
+
export declare function CreateChunkRequestToJSON(json: any): CreateChunkRequest;
|
|
58
|
+
export declare function CreateChunkRequestToJSONTyped(value?: CreateChunkRequest | null, ignoreDiscriminator?: boolean): any;
|
|
59
|
+
export declare const CreateChunkRequestPropertyValidationAttributesMap: {
|
|
60
|
+
[property: string]: {
|
|
61
|
+
maxLength?: number;
|
|
62
|
+
minLength?: number;
|
|
63
|
+
pattern?: string;
|
|
64
|
+
maximum?: number;
|
|
65
|
+
exclusiveMaximum?: boolean;
|
|
66
|
+
minimum?: number;
|
|
67
|
+
exclusiveMinimum?: boolean;
|
|
68
|
+
multipleOf?: number;
|
|
69
|
+
maxItems?: number;
|
|
70
|
+
minItems?: number;
|
|
71
|
+
uniqueItems?: boolean;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
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.CreateChunkRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfCreateChunkRequest = instanceOfCreateChunkRequest;
|
|
18
|
+
exports.CreateChunkRequestFromJSON = CreateChunkRequestFromJSON;
|
|
19
|
+
exports.CreateChunkRequestFromJSONTyped = CreateChunkRequestFromJSONTyped;
|
|
20
|
+
exports.CreateChunkRequestToJSON = CreateChunkRequestToJSON;
|
|
21
|
+
exports.CreateChunkRequestToJSONTyped = CreateChunkRequestToJSONTyped;
|
|
22
|
+
const ChunkMetadataInput_1 = require("./ChunkMetadataInput");
|
|
23
|
+
const ChunkType_1 = require("./ChunkType");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the CreateChunkRequest interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfCreateChunkRequest(value) {
|
|
28
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('chunkType' in value) || value['chunkType'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function CreateChunkRequestFromJSON(json) {
|
|
39
|
+
return CreateChunkRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function CreateChunkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'parentPathId': json['parent_path_id'],
|
|
47
|
+
'content': json['content'],
|
|
48
|
+
'chunkType': (0, ChunkType_1.ChunkTypeFromJSON)(json['chunk_type']),
|
|
49
|
+
'chunkMetadata': (0, ChunkMetadataInput_1.ChunkMetadataInputFromJSON)(json['chunk_metadata']),
|
|
50
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function CreateChunkRequestToJSON(json) {
|
|
54
|
+
return CreateChunkRequestToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function CreateChunkRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'parent_path_id': value['parentPathId'],
|
|
62
|
+
'content': value['content'],
|
|
63
|
+
'chunk_type': (0, ChunkType_1.ChunkTypeToJSON)(value['chunkType']),
|
|
64
|
+
'chunk_metadata': (0, ChunkMetadataInput_1.ChunkMetadataInputToJSON)(value['chunkMetadata']),
|
|
65
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
exports.CreateChunkRequestPropertyValidationAttributesMap = {
|
|
69
|
+
content: {
|
|
70
|
+
minLength: 1,
|
|
71
|
+
},
|
|
72
|
+
};
|
|
@@ -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 create a new section.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateSectionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateSectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Section name (can contain any characters)
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateSectionRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Parent PathPart ID (must be DOCUMENT_VERSION or SECTION)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateSectionRequest
|
|
28
|
+
*/
|
|
29
|
+
parentPathId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Page number in source document (must be > 0)
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CreateSectionRequest
|
|
34
|
+
*/
|
|
35
|
+
pageNumber?: number;
|
|
36
|
+
/**
|
|
37
|
+
* PathPart ID to insert after (null = append to tail)
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateSectionRequest
|
|
40
|
+
*/
|
|
41
|
+
prevSiblingPathId?: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the CreateSectionRequest interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfCreateSectionRequest(value: object): value is CreateSectionRequest;
|
|
47
|
+
export declare function CreateSectionRequestFromJSON(json: any): CreateSectionRequest;
|
|
48
|
+
export declare function CreateSectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateSectionRequest;
|
|
49
|
+
export declare function CreateSectionRequestToJSON(json: any): CreateSectionRequest;
|
|
50
|
+
export declare function CreateSectionRequestToJSONTyped(value?: CreateSectionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
51
|
+
export declare const CreateSectionRequestPropertyValidationAttributesMap: {
|
|
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,65 @@
|
|
|
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.CreateSectionRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfCreateSectionRequest = instanceOfCreateSectionRequest;
|
|
18
|
+
exports.CreateSectionRequestFromJSON = CreateSectionRequestFromJSON;
|
|
19
|
+
exports.CreateSectionRequestFromJSONTyped = CreateSectionRequestFromJSONTyped;
|
|
20
|
+
exports.CreateSectionRequestToJSON = CreateSectionRequestToJSON;
|
|
21
|
+
exports.CreateSectionRequestToJSONTyped = CreateSectionRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CreateSectionRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCreateSectionRequest(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
function CreateSectionRequestFromJSON(json) {
|
|
33
|
+
return CreateSectionRequestFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
function CreateSectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'name': json['name'],
|
|
41
|
+
'parentPathId': json['parent_path_id'],
|
|
42
|
+
'pageNumber': json['page_number'] == null ? undefined : json['page_number'],
|
|
43
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function CreateSectionRequestToJSON(json) {
|
|
47
|
+
return CreateSectionRequestToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function CreateSectionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'name': value['name'],
|
|
55
|
+
'parent_path_id': value['parentPathId'],
|
|
56
|
+
'page_number': value['pageNumber'],
|
|
57
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
exports.CreateSectionRequestPropertyValidationAttributesMap = {
|
|
61
|
+
name: {
|
|
62
|
+
maxLength: 255,
|
|
63
|
+
minLength: 1,
|
|
64
|
+
},
|
|
65
|
+
};
|
|
@@ -16,23 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface PasswordResetWithTokenRequest {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Email verification token
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof PasswordResetWithTokenRequest
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
emailToken: string;
|
|
24
24
|
/**
|
|
25
25
|
* New password
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof PasswordResetWithTokenRequest
|
|
28
28
|
*/
|
|
29
29
|
newPassword: string;
|
|
30
|
-
/**
|
|
31
|
-
* Email verification token
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof PasswordResetWithTokenRequest
|
|
34
|
-
*/
|
|
35
|
-
emailToken: string;
|
|
36
30
|
}
|
|
37
31
|
/**
|
|
38
32
|
* Check if a given object implements the PasswordResetWithTokenRequest interface.
|
|
@@ -23,12 +23,10 @@ exports.PasswordResetWithTokenRequestToJSONTyped = PasswordResetWithTokenRequest
|
|
|
23
23
|
* Check if a given object implements the PasswordResetWithTokenRequest interface.
|
|
24
24
|
*/
|
|
25
25
|
function instanceOfPasswordResetWithTokenRequest(value) {
|
|
26
|
-
if (!('
|
|
26
|
+
if (!('emailToken' in value) || value['emailToken'] === undefined)
|
|
27
27
|
return false;
|
|
28
28
|
if (!('newPassword' in value) || value['newPassword'] === undefined)
|
|
29
29
|
return false;
|
|
30
|
-
if (!('emailToken' in value) || value['emailToken'] === undefined)
|
|
31
|
-
return false;
|
|
32
30
|
return true;
|
|
33
31
|
}
|
|
34
32
|
function PasswordResetWithTokenRequestFromJSON(json) {
|
|
@@ -39,9 +37,8 @@ function PasswordResetWithTokenRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
37
|
return json;
|
|
40
38
|
}
|
|
41
39
|
return {
|
|
42
|
-
'oldPassword': json['old_password'],
|
|
43
|
-
'newPassword': json['new_password'],
|
|
44
40
|
'emailToken': json['email_token'],
|
|
41
|
+
'newPassword': json['new_password'],
|
|
45
42
|
};
|
|
46
43
|
}
|
|
47
44
|
function PasswordResetWithTokenRequestToJSON(json) {
|
|
@@ -52,9 +49,8 @@ function PasswordResetWithTokenRequestToJSONTyped(value, ignoreDiscriminator = f
|
|
|
52
49
|
return value;
|
|
53
50
|
}
|
|
54
51
|
return {
|
|
55
|
-
'old_password': value['oldPassword'],
|
|
56
|
-
'new_password': value['newPassword'],
|
|
57
52
|
'email_token': value['emailToken'],
|
|
53
|
+
'new_password': value['newPassword'],
|
|
58
54
|
};
|
|
59
55
|
}
|
|
60
56
|
exports.PasswordResetWithTokenRequestPropertyValidationAttributesMap = {
|
|
@@ -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
|
+
* Bounding box polygon.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Polygon
|
|
16
|
+
*/
|
|
17
|
+
export interface Polygon {
|
|
18
|
+
/**
|
|
19
|
+
* The x-coordinate of the top-left corner of the bounding box.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof Polygon
|
|
22
|
+
*/
|
|
23
|
+
x: number;
|
|
24
|
+
/**
|
|
25
|
+
* The y-coordinate of the top-left corner of the bounding box.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof Polygon
|
|
28
|
+
*/
|
|
29
|
+
y: number;
|
|
30
|
+
/**
|
|
31
|
+
* The width of the bounding box.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof Polygon
|
|
34
|
+
*/
|
|
35
|
+
width: number;
|
|
36
|
+
/**
|
|
37
|
+
* The height of the bounding box.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof Polygon
|
|
40
|
+
*/
|
|
41
|
+
height: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the Polygon interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPolygon(value: object): value is Polygon;
|
|
47
|
+
export declare function PolygonFromJSON(json: any): Polygon;
|
|
48
|
+
export declare function PolygonFromJSONTyped(json: any, ignoreDiscriminator: boolean): Polygon;
|
|
49
|
+
export declare function PolygonToJSON(json: any): Polygon;
|
|
50
|
+
export declare function PolygonToJSONTyped(value?: Polygon | null, ignoreDiscriminator?: boolean): any;
|
|
51
|
+
export declare const PolygonPropertyValidationAttributesMap: {
|
|
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,64 @@
|
|
|
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.PolygonPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPolygon = instanceOfPolygon;
|
|
18
|
+
exports.PolygonFromJSON = PolygonFromJSON;
|
|
19
|
+
exports.PolygonFromJSONTyped = PolygonFromJSONTyped;
|
|
20
|
+
exports.PolygonToJSON = PolygonToJSON;
|
|
21
|
+
exports.PolygonToJSONTyped = PolygonToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the Polygon interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPolygon(value) {
|
|
26
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('width' in value) || value['width'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('height' in value) || value['height'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
function PolygonFromJSON(json) {
|
|
37
|
+
return PolygonFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
function PolygonFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'x': json['x'],
|
|
45
|
+
'y': json['y'],
|
|
46
|
+
'width': json['width'],
|
|
47
|
+
'height': json['height'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function PolygonToJSON(json) {
|
|
51
|
+
return PolygonToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function PolygonToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'x': value['x'],
|
|
59
|
+
'y': value['y'],
|
|
60
|
+
'width': value['width'],
|
|
61
|
+
'height': value['height'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
exports.PolygonPropertyValidationAttributesMap = {};
|
|
@@ -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 { Polygon } from './Polygon';
|
|
13
|
+
/**
|
|
14
|
+
* Reference to a polygon on a specific page.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PolygonReference
|
|
17
|
+
*/
|
|
18
|
+
export interface PolygonReference {
|
|
19
|
+
/**
|
|
20
|
+
* The page number of the source document where the polygon is located.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof PolygonReference
|
|
23
|
+
*/
|
|
24
|
+
page: number;
|
|
25
|
+
/**
|
|
26
|
+
* The bounding box of the polygon.
|
|
27
|
+
* @type {Polygon}
|
|
28
|
+
* @memberof PolygonReference
|
|
29
|
+
*/
|
|
30
|
+
polygon: Polygon;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the PolygonReference interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfPolygonReference(value: object): value is PolygonReference;
|
|
36
|
+
export declare function PolygonReferenceFromJSON(json: any): PolygonReference;
|
|
37
|
+
export declare function PolygonReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PolygonReference;
|
|
38
|
+
export declare function PolygonReferenceToJSON(json: any): PolygonReference;
|
|
39
|
+
export declare function PolygonReferenceToJSONTyped(value?: PolygonReference | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
+
export declare const PolygonReferencePropertyValidationAttributesMap: {
|
|
41
|
+
[property: string]: {
|
|
42
|
+
maxLength?: number;
|
|
43
|
+
minLength?: number;
|
|
44
|
+
pattern?: string;
|
|
45
|
+
maximum?: number;
|
|
46
|
+
exclusiveMaximum?: boolean;
|
|
47
|
+
minimum?: number;
|
|
48
|
+
exclusiveMinimum?: boolean;
|
|
49
|
+
multipleOf?: number;
|
|
50
|
+
maxItems?: number;
|
|
51
|
+
minItems?: number;
|
|
52
|
+
uniqueItems?: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.PolygonReferencePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPolygonReference = instanceOfPolygonReference;
|
|
18
|
+
exports.PolygonReferenceFromJSON = PolygonReferenceFromJSON;
|
|
19
|
+
exports.PolygonReferenceFromJSONTyped = PolygonReferenceFromJSONTyped;
|
|
20
|
+
exports.PolygonReferenceToJSON = PolygonReferenceToJSON;
|
|
21
|
+
exports.PolygonReferenceToJSONTyped = PolygonReferenceToJSONTyped;
|
|
22
|
+
const Polygon_1 = require("./Polygon");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PolygonReference interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPolygonReference(value) {
|
|
27
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('polygon' in value) || value['polygon'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function PolygonReferenceFromJSON(json) {
|
|
34
|
+
return PolygonReferenceFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function PolygonReferenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'page': json['page'],
|
|
42
|
+
'polygon': (0, Polygon_1.PolygonFromJSON)(json['polygon']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PolygonReferenceToJSON(json) {
|
|
46
|
+
return PolygonReferenceToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PolygonReferenceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'page': value['page'],
|
|
54
|
+
'polygon': (0, Polygon_1.PolygonToJSON)(value['polygon']),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.PolygonReferencePropertyValidationAttributesMap = {};
|