@knowledge-stack/ksapi 1.7.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 +10 -0
- package/README.md +2 -2
- package/dist/apis/ChunksApi.d.ts +175 -0
- package/dist/apis/ChunksApi.js +203 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ChunksApi.d.ts +175 -0
- package/dist/esm/apis/ChunksApi.js +199 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -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/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/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/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -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/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/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/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/package.json +1 -1
- package/src/apis/ChunksApi.ts +381 -0
- package/src/apis/index.ts +1 -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/PasswordResetWithTokenRequest.ts +5 -14
- package/src/models/Polygon.ts +110 -0
- package/src/models/PolygonReference.ts +100 -0
- package/src/models/UpdateChunkContentRequest.ts +104 -0
- package/src/models/UpdateChunkMetadataRequest.ts +91 -0
- package/src/models/index.ts +9 -0
|
@@ -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,64 @@
|
|
|
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 { ChunkMetadataInputFromJSON, ChunkMetadataInputToJSON, } from './ChunkMetadataInput';
|
|
15
|
+
import { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
|
|
16
|
+
/**
|
|
17
|
+
* Check if a given object implements the CreateChunkRequest interface.
|
|
18
|
+
*/
|
|
19
|
+
export function instanceOfCreateChunkRequest(value) {
|
|
20
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('chunkType' in value) || value['chunkType'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function CreateChunkRequestFromJSON(json) {
|
|
31
|
+
return CreateChunkRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function CreateChunkRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'parentPathId': json['parent_path_id'],
|
|
39
|
+
'content': json['content'],
|
|
40
|
+
'chunkType': ChunkTypeFromJSON(json['chunk_type']),
|
|
41
|
+
'chunkMetadata': ChunkMetadataInputFromJSON(json['chunk_metadata']),
|
|
42
|
+
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function CreateChunkRequestToJSON(json) {
|
|
46
|
+
return CreateChunkRequestToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function CreateChunkRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'parent_path_id': value['parentPathId'],
|
|
54
|
+
'content': value['content'],
|
|
55
|
+
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
56
|
+
'chunk_metadata': ChunkMetadataInputToJSON(value['chunkMetadata']),
|
|
57
|
+
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export const CreateChunkRequestPropertyValidationAttributesMap = {
|
|
61
|
+
content: {
|
|
62
|
+
minLength: 1,
|
|
63
|
+
},
|
|
64
|
+
};
|
|
@@ -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.
|
|
@@ -15,12 +15,10 @@
|
|
|
15
15
|
* Check if a given object implements the PasswordResetWithTokenRequest interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfPasswordResetWithTokenRequest(value) {
|
|
18
|
-
if (!('
|
|
18
|
+
if (!('emailToken' in value) || value['emailToken'] === undefined)
|
|
19
19
|
return false;
|
|
20
20
|
if (!('newPassword' in value) || value['newPassword'] === undefined)
|
|
21
21
|
return false;
|
|
22
|
-
if (!('emailToken' in value) || value['emailToken'] === undefined)
|
|
23
|
-
return false;
|
|
24
22
|
return true;
|
|
25
23
|
}
|
|
26
24
|
export function PasswordResetWithTokenRequestFromJSON(json) {
|
|
@@ -31,9 +29,8 @@ export function PasswordResetWithTokenRequestFromJSONTyped(json, ignoreDiscrimin
|
|
|
31
29
|
return json;
|
|
32
30
|
}
|
|
33
31
|
return {
|
|
34
|
-
'oldPassword': json['old_password'],
|
|
35
|
-
'newPassword': json['new_password'],
|
|
36
32
|
'emailToken': json['email_token'],
|
|
33
|
+
'newPassword': json['new_password'],
|
|
37
34
|
};
|
|
38
35
|
}
|
|
39
36
|
export function PasswordResetWithTokenRequestToJSON(json) {
|
|
@@ -44,9 +41,8 @@ export function PasswordResetWithTokenRequestToJSONTyped(value, ignoreDiscrimina
|
|
|
44
41
|
return value;
|
|
45
42
|
}
|
|
46
43
|
return {
|
|
47
|
-
'old_password': value['oldPassword'],
|
|
48
|
-
'new_password': value['newPassword'],
|
|
49
44
|
'email_token': value['emailToken'],
|
|
45
|
+
'new_password': value['newPassword'],
|
|
50
46
|
};
|
|
51
47
|
}
|
|
52
48
|
export const 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,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Check if a given object implements the Polygon interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPolygon(value) {
|
|
18
|
+
if (!('x' in value) || value['x'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('y' in value) || value['y'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('width' in value) || value['width'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('height' in value) || value['height'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
export function PolygonFromJSON(json) {
|
|
29
|
+
return PolygonFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
export function PolygonFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'x': json['x'],
|
|
37
|
+
'y': json['y'],
|
|
38
|
+
'width': json['width'],
|
|
39
|
+
'height': json['height'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export function PolygonToJSON(json) {
|
|
43
|
+
return PolygonToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
export function PolygonToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'x': value['x'],
|
|
51
|
+
'y': value['y'],
|
|
52
|
+
'width': value['width'],
|
|
53
|
+
'height': value['height'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export const 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,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 { PolygonFromJSON, PolygonToJSON, } from './Polygon';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PolygonReference interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPolygonReference(value) {
|
|
19
|
+
if (!('page' in value) || value['page'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('polygon' in value) || value['polygon'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function PolygonReferenceFromJSON(json) {
|
|
26
|
+
return PolygonReferenceFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function PolygonReferenceFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'page': json['page'],
|
|
34
|
+
'polygon': PolygonFromJSON(json['polygon']),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function PolygonReferenceToJSON(json) {
|
|
38
|
+
return PolygonReferenceToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function PolygonReferenceToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'page': value['page'],
|
|
46
|
+
'polygon': PolygonToJSON(value['polygon']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export const PolygonReferencePropertyValidationAttributesMap = {};
|
|
@@ -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,51 @@
|
|
|
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 { ChunkTypeFromJSON, ChunkTypeToJSON, } from './ChunkType';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the UpdateChunkContentRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfUpdateChunkContentRequest(value) {
|
|
19
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function UpdateChunkContentRequestFromJSON(json) {
|
|
24
|
+
return UpdateChunkContentRequestFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function UpdateChunkContentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'content': json['content'],
|
|
32
|
+
'chunkType': json['chunk_type'] == null ? undefined : ChunkTypeFromJSON(json['chunk_type']),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function UpdateChunkContentRequestToJSON(json) {
|
|
36
|
+
return UpdateChunkContentRequestToJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function UpdateChunkContentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
39
|
+
if (value == null) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'content': value['content'],
|
|
44
|
+
'chunk_type': ChunkTypeToJSON(value['chunkType']),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export const UpdateChunkContentRequestPropertyValidationAttributesMap = {
|
|
48
|
+
content: {
|
|
49
|
+
minLength: 1,
|
|
50
|
+
},
|
|
51
|
+
};
|
|
@@ -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,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ChunkMetadataInputFromJSON, ChunkMetadataInputToJSON, } from './ChunkMetadataInput';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the UpdateChunkMetadataRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfUpdateChunkMetadataRequest(value) {
|
|
19
|
+
if (!('chunkMetadata' in value) || value['chunkMetadata'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function UpdateChunkMetadataRequestFromJSON(json) {
|
|
24
|
+
return UpdateChunkMetadataRequestFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function UpdateChunkMetadataRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'chunkMetadata': ChunkMetadataInputFromJSON(json['chunk_metadata']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function UpdateChunkMetadataRequestToJSON(json) {
|
|
35
|
+
return UpdateChunkMetadataRequestToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function UpdateChunkMetadataRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'chunk_metadata': ChunkMetadataInputToJSON(value['chunkMetadata']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export const UpdateChunkMetadataRequestPropertyValidationAttributesMap = {};
|
|
@@ -1,3 +1,8 @@
|
|
|
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';
|
|
@@ -29,12 +34,16 @@ export * from './PasswordResetRequest';
|
|
|
29
34
|
export * from './PasswordResetWithTokenRequest';
|
|
30
35
|
export * from './PathOrder';
|
|
31
36
|
export * from './PathPartResponse';
|
|
37
|
+
export * from './Polygon';
|
|
38
|
+
export * from './PolygonReference';
|
|
32
39
|
export * from './RootResponse';
|
|
33
40
|
export * from './SectionResponse';
|
|
34
41
|
export * from './SignInRequest';
|
|
35
42
|
export * from './TenantResponse';
|
|
36
43
|
export * from './TenantUserInTenantResponse';
|
|
37
44
|
export * from './TenantUserRole';
|
|
45
|
+
export * from './UpdateChunkContentRequest';
|
|
46
|
+
export * from './UpdateChunkMetadataRequest';
|
|
38
47
|
export * from './UpdateDocumentRequest';
|
|
39
48
|
export * from './UpdateFolderRequest';
|
|
40
49
|
export * from './UpdateSectionRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './ChunkMetadataInput';
|
|
4
|
+
export * from './ChunkMetadataOutput';
|
|
5
|
+
export * from './ChunkResponse';
|
|
6
|
+
export * from './ChunkType';
|
|
7
|
+
export * from './CreateChunkRequest';
|
|
3
8
|
export * from './CreateDocumentRequest';
|
|
4
9
|
export * from './CreateFolderRequest';
|
|
5
10
|
export * from './CreatePasswordUserRequest';
|
|
@@ -31,12 +36,16 @@ export * from './PasswordResetRequest';
|
|
|
31
36
|
export * from './PasswordResetWithTokenRequest';
|
|
32
37
|
export * from './PathOrder';
|
|
33
38
|
export * from './PathPartResponse';
|
|
39
|
+
export * from './Polygon';
|
|
40
|
+
export * from './PolygonReference';
|
|
34
41
|
export * from './RootResponse';
|
|
35
42
|
export * from './SectionResponse';
|
|
36
43
|
export * from './SignInRequest';
|
|
37
44
|
export * from './TenantResponse';
|
|
38
45
|
export * from './TenantUserInTenantResponse';
|
|
39
46
|
export * from './TenantUserRole';
|
|
47
|
+
export * from './UpdateChunkContentRequest';
|
|
48
|
+
export * from './UpdateChunkMetadataRequest';
|
|
40
49
|
export * from './UpdateDocumentRequest';
|
|
41
50
|
export * from './UpdateFolderRequest';
|
|
42
51
|
export * from './UpdateSectionRequest';
|