@knowledge-stack/ksapi 1.2.0 → 1.4.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/FoldersApi.d.ts +179 -0
- package/dist/apis/FoldersApi.js +206 -0
- package/dist/apis/PathPartsApi.d.ts +65 -0
- package/dist/apis/PathPartsApi.js +79 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/FoldersApi.d.ts +179 -0
- package/dist/esm/apis/FoldersApi.js +202 -0
- package/dist/esm/apis/PathPartsApi.d.ts +65 -0
- package/dist/esm/apis/PathPartsApi.js +75 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/CreateFolderRequest.d.ts +53 -0
- package/dist/esm/models/CreateFolderRequest.js +53 -0
- package/dist/esm/models/FolderResponse.d.ts +83 -0
- package/dist/esm/models/FolderResponse.js +68 -0
- package/dist/esm/models/PaginatedResponseFolderResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseFolderResponse.js +70 -0
- package/dist/esm/models/PaginatedResponsePathPartResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponsePathPartResponse.js +70 -0
- package/dist/esm/models/PartType.d.ts +30 -0
- package/dist/esm/models/PartType.js +48 -0
- package/dist/esm/models/PathOrder.d.ts +32 -0
- package/dist/esm/models/PathOrder.js +50 -0
- package/dist/esm/models/PathPartResponse.d.ts +84 -0
- package/dist/esm/models/PathPartResponse.js +69 -0
- package/dist/esm/models/UpdateFolderRequest.d.ts +53 -0
- package/dist/esm/models/UpdateFolderRequest.js +49 -0
- package/dist/esm/models/ValidationError.d.ts +12 -0
- package/dist/esm/models/ValidationError.js +4 -0
- package/dist/esm/models/index.d.ts +8 -0
- package/dist/esm/models/index.js +8 -0
- package/dist/models/CreateFolderRequest.d.ts +53 -0
- package/dist/models/CreateFolderRequest.js +61 -0
- package/dist/models/FolderResponse.d.ts +83 -0
- package/dist/models/FolderResponse.js +76 -0
- package/dist/models/PaginatedResponseFolderResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseFolderResponse.js +78 -0
- package/dist/models/PaginatedResponsePathPartResponse.d.ts +66 -0
- package/dist/models/PaginatedResponsePathPartResponse.js +78 -0
- package/dist/models/PartType.d.ts +30 -0
- package/dist/models/PartType.js +56 -0
- package/dist/models/PathOrder.d.ts +32 -0
- package/dist/models/PathOrder.js +58 -0
- package/dist/models/PathPartResponse.d.ts +84 -0
- package/dist/models/PathPartResponse.js +77 -0
- package/dist/models/UpdateFolderRequest.d.ts +53 -0
- package/dist/models/UpdateFolderRequest.js +57 -0
- package/dist/models/ValidationError.d.ts +12 -0
- package/dist/models/ValidationError.js +4 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/package.json +1 -1
- package/src/apis/FoldersApi.ts +386 -0
- package/src/apis/PathPartsApi.ts +132 -0
- package/src/apis/index.ts +2 -0
- package/src/models/CreateFolderRequest.ts +96 -0
- package/src/models/FolderResponse.ts +137 -0
- package/src/models/PaginatedResponseFolderResponse.ts +130 -0
- package/src/models/PaginatedResponsePathPartResponse.ts +130 -0
- package/src/models/PartType.ts +58 -0
- package/src/models/PathOrder.ts +60 -0
- package/src/models/PathPartResponse.ts +147 -0
- package/src/models/UpdateFolderRequest.ts +94 -0
- package/src/models/ValidationError.ts +16 -0
- package/src/models/index.ts +8 -0
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
* Folder response model.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface FolderResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface FolderResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Folder ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof FolderResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* PathPart ID
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof FolderResponse
|
|
28
|
+
*/
|
|
29
|
+
pathPartId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Folder name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof FolderResponse
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Parent PathPart ID
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof FolderResponse
|
|
40
|
+
*/
|
|
41
|
+
parentId: string;
|
|
42
|
+
/**
|
|
43
|
+
* Tenant ID
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof FolderResponse
|
|
46
|
+
*/
|
|
47
|
+
tenantId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Creation timestamp
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof FolderResponse
|
|
52
|
+
*/
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
/**
|
|
55
|
+
* Last update timestamp
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof FolderResponse
|
|
58
|
+
*/
|
|
59
|
+
updatedAt: Date;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the FolderResponse interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfFolderResponse(value: object): value is FolderResponse;
|
|
65
|
+
export declare function FolderResponseFromJSON(json: any): FolderResponse;
|
|
66
|
+
export declare function FolderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FolderResponse;
|
|
67
|
+
export declare function FolderResponseToJSON(json: any): FolderResponse;
|
|
68
|
+
export declare function FolderResponseToJSONTyped(value?: FolderResponse | null, ignoreDiscriminator?: boolean): any;
|
|
69
|
+
export declare const FolderResponsePropertyValidationAttributesMap: {
|
|
70
|
+
[property: string]: {
|
|
71
|
+
maxLength?: number;
|
|
72
|
+
minLength?: number;
|
|
73
|
+
pattern?: string;
|
|
74
|
+
maximum?: number;
|
|
75
|
+
exclusiveMaximum?: boolean;
|
|
76
|
+
minimum?: number;
|
|
77
|
+
exclusiveMinimum?: boolean;
|
|
78
|
+
multipleOf?: number;
|
|
79
|
+
maxItems?: number;
|
|
80
|
+
minItems?: number;
|
|
81
|
+
uniqueItems?: boolean;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
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 FolderResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfFolderResponse(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function FolderResponseFromJSON(json) {
|
|
35
|
+
return FolderResponseFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function FolderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'pathPartId': json['path_part_id'],
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'parentId': json['parent_id'],
|
|
46
|
+
'tenantId': json['tenant_id'],
|
|
47
|
+
'createdAt': (new Date(json['created_at'])),
|
|
48
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function FolderResponseToJSON(json) {
|
|
52
|
+
return FolderResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function FolderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'id': value['id'],
|
|
60
|
+
'path_part_id': value['pathPartId'],
|
|
61
|
+
'name': value['name'],
|
|
62
|
+
'parent_id': value['parentId'],
|
|
63
|
+
'tenant_id': value['tenantId'],
|
|
64
|
+
'created_at': value['createdAt'].toISOString(),
|
|
65
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export const FolderResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { FolderResponse } from './FolderResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseFolderResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseFolderResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<FolderResponse>}
|
|
22
|
+
* @memberof PaginatedResponseFolderResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<FolderResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponseFolderResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponseFolderResponse
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponseFolderResponse
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaginatedResponseFolderResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaginatedResponseFolderResponse(value: object): value is PaginatedResponseFolderResponse;
|
|
48
|
+
export declare function PaginatedResponseFolderResponseFromJSON(json: any): PaginatedResponseFolderResponse;
|
|
49
|
+
export declare function PaginatedResponseFolderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseFolderResponse;
|
|
50
|
+
export declare function PaginatedResponseFolderResponseToJSON(json: any): PaginatedResponseFolderResponse;
|
|
51
|
+
export declare function PaginatedResponseFolderResponseToJSONTyped(value?: PaginatedResponseFolderResponse | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const PaginatedResponseFolderResponsePropertyValidationAttributesMap: {
|
|
53
|
+
[property: string]: {
|
|
54
|
+
maxLength?: number;
|
|
55
|
+
minLength?: number;
|
|
56
|
+
pattern?: string;
|
|
57
|
+
maximum?: number;
|
|
58
|
+
exclusiveMaximum?: boolean;
|
|
59
|
+
minimum?: number;
|
|
60
|
+
exclusiveMinimum?: boolean;
|
|
61
|
+
multipleOf?: number;
|
|
62
|
+
maxItems?: number;
|
|
63
|
+
minItems?: number;
|
|
64
|
+
uniqueItems?: boolean;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { FolderResponseFromJSON, FolderResponseToJSON, } from './FolderResponse';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PaginatedResponseFolderResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPaginatedResponseFolderResponse(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function PaginatedResponseFolderResponseFromJSON(json) {
|
|
30
|
+
return PaginatedResponseFolderResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function PaginatedResponseFolderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'items': (json['items'].map(FolderResponseFromJSON)),
|
|
38
|
+
'total': json['total'],
|
|
39
|
+
'limit': json['limit'],
|
|
40
|
+
'offset': json['offset'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function PaginatedResponseFolderResponseToJSON(json) {
|
|
44
|
+
return PaginatedResponseFolderResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function PaginatedResponseFolderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'items': (value['items'].map(FolderResponseToJSON)),
|
|
52
|
+
'total': value['total'],
|
|
53
|
+
'limit': value['limit'],
|
|
54
|
+
'offset': value['offset'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export const PaginatedResponseFolderResponsePropertyValidationAttributesMap = {
|
|
58
|
+
total: {
|
|
59
|
+
minimum: 0,
|
|
60
|
+
exclusiveMinimum: false,
|
|
61
|
+
},
|
|
62
|
+
limit: {
|
|
63
|
+
minimum: 1,
|
|
64
|
+
exclusiveMinimum: false,
|
|
65
|
+
},
|
|
66
|
+
offset: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { PathPartResponse } from './PathPartResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponsePathPartResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponsePathPartResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<PathPartResponse>}
|
|
22
|
+
* @memberof PaginatedResponsePathPartResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<PathPartResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponsePathPartResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponsePathPartResponse
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponsePathPartResponse
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaginatedResponsePathPartResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaginatedResponsePathPartResponse(value: object): value is PaginatedResponsePathPartResponse;
|
|
48
|
+
export declare function PaginatedResponsePathPartResponseFromJSON(json: any): PaginatedResponsePathPartResponse;
|
|
49
|
+
export declare function PaginatedResponsePathPartResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponsePathPartResponse;
|
|
50
|
+
export declare function PaginatedResponsePathPartResponseToJSON(json: any): PaginatedResponsePathPartResponse;
|
|
51
|
+
export declare function PaginatedResponsePathPartResponseToJSONTyped(value?: PaginatedResponsePathPartResponse | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const PaginatedResponsePathPartResponsePropertyValidationAttributesMap: {
|
|
53
|
+
[property: string]: {
|
|
54
|
+
maxLength?: number;
|
|
55
|
+
minLength?: number;
|
|
56
|
+
pattern?: string;
|
|
57
|
+
maximum?: number;
|
|
58
|
+
exclusiveMaximum?: boolean;
|
|
59
|
+
minimum?: number;
|
|
60
|
+
exclusiveMinimum?: boolean;
|
|
61
|
+
multipleOf?: number;
|
|
62
|
+
maxItems?: number;
|
|
63
|
+
minItems?: number;
|
|
64
|
+
uniqueItems?: boolean;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
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 { PathPartResponseFromJSON, PathPartResponseToJSON, } from './PathPartResponse';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PaginatedResponsePathPartResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPaginatedResponsePathPartResponse(value) {
|
|
19
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
export function PaginatedResponsePathPartResponseFromJSON(json) {
|
|
30
|
+
return PaginatedResponsePathPartResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function PaginatedResponsePathPartResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'items': (json['items'].map(PathPartResponseFromJSON)),
|
|
38
|
+
'total': json['total'],
|
|
39
|
+
'limit': json['limit'],
|
|
40
|
+
'offset': json['offset'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function PaginatedResponsePathPartResponseToJSON(json) {
|
|
44
|
+
return PaginatedResponsePathPartResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function PaginatedResponsePathPartResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'items': (value['items'].map(PathPartResponseToJSON)),
|
|
52
|
+
'total': value['total'],
|
|
53
|
+
'limit': value['limit'],
|
|
54
|
+
'offset': value['offset'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export const PaginatedResponsePathPartResponsePropertyValidationAttributesMap = {
|
|
58
|
+
total: {
|
|
59
|
+
minimum: 0,
|
|
60
|
+
exclusiveMinimum: false,
|
|
61
|
+
},
|
|
62
|
+
limit: {
|
|
63
|
+
minimum: 1,
|
|
64
|
+
exclusiveMinimum: false,
|
|
65
|
+
},
|
|
66
|
+
offset: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* Type of path part in the filesystem.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const PartType: {
|
|
17
|
+
readonly Folder: "FOLDER";
|
|
18
|
+
readonly Document: "DOCUMENT";
|
|
19
|
+
readonly DocumentVersion: "DOCUMENT_VERSION";
|
|
20
|
+
readonly Section: "SECTION";
|
|
21
|
+
readonly Chunk: "CHUNK";
|
|
22
|
+
readonly Thread: "THREAD";
|
|
23
|
+
readonly ThreadMessage: "THREAD_MESSAGE";
|
|
24
|
+
};
|
|
25
|
+
export type PartType = typeof PartType[keyof typeof PartType];
|
|
26
|
+
export declare function instanceOfPartType(value: any): boolean;
|
|
27
|
+
export declare function PartTypeFromJSON(json: any): PartType;
|
|
28
|
+
export declare function PartTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PartType;
|
|
29
|
+
export declare function PartTypeToJSON(value?: PartType | null): any;
|
|
30
|
+
export declare function PartTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): PartType;
|
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
* Type of path part in the filesystem.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const PartType = {
|
|
19
|
+
Folder: 'FOLDER',
|
|
20
|
+
Document: 'DOCUMENT',
|
|
21
|
+
DocumentVersion: 'DOCUMENT_VERSION',
|
|
22
|
+
Section: 'SECTION',
|
|
23
|
+
Chunk: 'CHUNK',
|
|
24
|
+
Thread: 'THREAD',
|
|
25
|
+
ThreadMessage: 'THREAD_MESSAGE'
|
|
26
|
+
};
|
|
27
|
+
export function instanceOfPartType(value) {
|
|
28
|
+
for (const key in PartType) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(PartType, key)) {
|
|
30
|
+
if (PartType[key] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
export function PartTypeFromJSON(json) {
|
|
38
|
+
return PartTypeFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function PartTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
export function PartTypeToJSON(value) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
export function PartTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
* Ordering strategy for path traversal results.
|
|
14
|
+
*
|
|
15
|
+
* - LOGICAL: Use prev/next_sibling_path_part_id linked list order per depth level
|
|
16
|
+
* - NAME: Alphabetical by path_part.name (DEFAULT)
|
|
17
|
+
* - UPDATED_AT: By updated_at timestamp (most recent first)
|
|
18
|
+
* - CREATED_AT: By created_at timestamp (oldest first)
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const PathOrder: {
|
|
22
|
+
readonly Logical: "LOGICAL";
|
|
23
|
+
readonly Name: "NAME";
|
|
24
|
+
readonly UpdatedAt: "UPDATED_AT";
|
|
25
|
+
readonly CreatedAt: "CREATED_AT";
|
|
26
|
+
};
|
|
27
|
+
export type PathOrder = typeof PathOrder[keyof typeof PathOrder];
|
|
28
|
+
export declare function instanceOfPathOrder(value: any): boolean;
|
|
29
|
+
export declare function PathOrderFromJSON(json: any): PathOrder;
|
|
30
|
+
export declare function PathOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathOrder;
|
|
31
|
+
export declare function PathOrderToJSON(value?: PathOrder | null): any;
|
|
32
|
+
export declare function PathOrderToJSONTyped(value: any, ignoreDiscriminator: boolean): PathOrder;
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
* Ordering strategy for path traversal results.
|
|
16
|
+
*
|
|
17
|
+
* - LOGICAL: Use prev/next_sibling_path_part_id linked list order per depth level
|
|
18
|
+
* - NAME: Alphabetical by path_part.name (DEFAULT)
|
|
19
|
+
* - UPDATED_AT: By updated_at timestamp (most recent first)
|
|
20
|
+
* - CREATED_AT: By created_at timestamp (oldest first)
|
|
21
|
+
* @export
|
|
22
|
+
*/
|
|
23
|
+
export const PathOrder = {
|
|
24
|
+
Logical: 'LOGICAL',
|
|
25
|
+
Name: 'NAME',
|
|
26
|
+
UpdatedAt: 'UPDATED_AT',
|
|
27
|
+
CreatedAt: 'CREATED_AT'
|
|
28
|
+
};
|
|
29
|
+
export function instanceOfPathOrder(value) {
|
|
30
|
+
for (const key in PathOrder) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(PathOrder, key)) {
|
|
32
|
+
if (PathOrder[key] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
export function PathOrderFromJSON(json) {
|
|
40
|
+
return PathOrderFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function PathOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
export function PathOrderToJSON(value) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
export function PathOrderToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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 { PartType } from './PartType';
|
|
13
|
+
/**
|
|
14
|
+
* Generic path part response model.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PathPartResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PathPartResponse {
|
|
19
|
+
/**
|
|
20
|
+
* PathPart ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PathPartResponse
|
|
23
|
+
*/
|
|
24
|
+
pathPartId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Item name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PathPartResponse
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Type (FOLDER, DOCUMENT, etc.)
|
|
33
|
+
* @type {PartType}
|
|
34
|
+
* @memberof PathPartResponse
|
|
35
|
+
*/
|
|
36
|
+
partType: PartType;
|
|
37
|
+
/**
|
|
38
|
+
* Parent PathPart ID
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PathPartResponse
|
|
41
|
+
*/
|
|
42
|
+
parentId: string;
|
|
43
|
+
/**
|
|
44
|
+
* ID of the underlying object
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PathPartResponse
|
|
47
|
+
*/
|
|
48
|
+
metadataObjId: string;
|
|
49
|
+
/**
|
|
50
|
+
* Creation timestamp
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof PathPartResponse
|
|
53
|
+
*/
|
|
54
|
+
createdAt: Date;
|
|
55
|
+
/**
|
|
56
|
+
* Last update timestamp
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof PathPartResponse
|
|
59
|
+
*/
|
|
60
|
+
updatedAt: Date;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the PathPartResponse interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfPathPartResponse(value: object): value is PathPartResponse;
|
|
66
|
+
export declare function PathPartResponseFromJSON(json: any): PathPartResponse;
|
|
67
|
+
export declare function PathPartResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartResponse;
|
|
68
|
+
export declare function PathPartResponseToJSON(json: any): PathPartResponse;
|
|
69
|
+
export declare function PathPartResponseToJSONTyped(value?: PathPartResponse | null, ignoreDiscriminator?: boolean): any;
|
|
70
|
+
export declare const PathPartResponsePropertyValidationAttributesMap: {
|
|
71
|
+
[property: string]: {
|
|
72
|
+
maxLength?: number;
|
|
73
|
+
minLength?: number;
|
|
74
|
+
pattern?: string;
|
|
75
|
+
maximum?: number;
|
|
76
|
+
exclusiveMaximum?: boolean;
|
|
77
|
+
minimum?: number;
|
|
78
|
+
exclusiveMinimum?: boolean;
|
|
79
|
+
multipleOf?: number;
|
|
80
|
+
maxItems?: number;
|
|
81
|
+
minItems?: number;
|
|
82
|
+
uniqueItems?: boolean;
|
|
83
|
+
};
|
|
84
|
+
};
|