@knowledge-stack/ksapi 1.58.0 → 1.59.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +8 -0
- package/README.md +9 -2
- package/dist/apis/FoldersApi.d.ts +63 -4
- package/dist/apis/FoldersApi.js +64 -3
- package/dist/apis/PathPartsApi.d.ts +45 -1
- package/dist/apis/PathPartsApi.js +44 -0
- package/dist/apis/SectionsApi.d.ts +44 -0
- package/dist/apis/SectionsApi.js +43 -0
- package/dist/apis/TenantsApi.d.ts +4 -4
- package/dist/apis/TenantsApi.js +2 -2
- package/dist/esm/apis/FoldersApi.d.ts +63 -4
- package/dist/esm/apis/FoldersApi.js +64 -3
- package/dist/esm/apis/PathPartsApi.d.ts +45 -1
- package/dist/esm/apis/PathPartsApi.js +45 -1
- package/dist/esm/apis/SectionsApi.d.ts +44 -0
- package/dist/esm/apis/SectionsApi.js +43 -0
- package/dist/esm/apis/TenantsApi.d.ts +4 -4
- package/dist/esm/apis/TenantsApi.js +2 -2
- package/dist/esm/models/AncestryResponse.d.ts +48 -0
- package/dist/esm/models/AncestryResponse.js +45 -0
- package/dist/esm/models/PathPartAncestorItem.d.ts +96 -0
- package/dist/esm/models/PathPartAncestorItem.js +77 -0
- package/dist/esm/models/SearchSortOrder.d.ts +26 -0
- package/dist/esm/models/SearchSortOrder.js +44 -0
- package/dist/esm/models/SearchablePartType.d.ts +25 -0
- package/dist/esm/models/SearchablePartType.js +43 -0
- package/dist/esm/models/index.d.ts +4 -0
- package/dist/esm/models/index.js +4 -0
- package/dist/models/AncestryResponse.d.ts +48 -0
- package/dist/models/AncestryResponse.js +53 -0
- package/dist/models/PathPartAncestorItem.d.ts +96 -0
- package/dist/models/PathPartAncestorItem.js +85 -0
- package/dist/models/SearchSortOrder.d.ts +26 -0
- package/dist/models/SearchSortOrder.js +52 -0
- package/dist/models/SearchablePartType.d.ts +25 -0
- package/dist/models/SearchablePartType.js +51 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/docs/AncestryResponse.md +35 -0
- package/docs/FoldersApi.md +94 -4
- package/docs/PathPartAncestorItem.md +51 -0
- package/docs/PathPartsApi.md +75 -0
- package/docs/SearchSortOrder.md +33 -0
- package/docs/SearchablePartType.md +33 -0
- package/docs/SectionsApi.md +75 -0
- package/docs/TenantsApi.md +1 -1
- package/package.json +1 -1
- package/src/apis/FoldersApi.ts +136 -7
- package/src/apis/PathPartsApi.ts +88 -0
- package/src/apis/SectionsApi.ts +81 -0
- package/src/apis/TenantsApi.ts +4 -4
- package/src/models/AncestryResponse.ts +91 -0
- package/src/models/PathPartAncestorItem.ts +165 -0
- package/src/models/SearchSortOrder.ts +54 -0
- package/src/models/SearchablePartType.ts +53 -0
- package/src/models/index.ts +4 -0
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
* Single ancestor item in an ancestry chain.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PathPartAncestorItem
|
|
17
|
+
*/
|
|
18
|
+
export interface PathPartAncestorItem {
|
|
19
|
+
/**
|
|
20
|
+
* PathPart ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PathPartAncestorItem
|
|
23
|
+
*/
|
|
24
|
+
pathPartId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Item name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PathPartAncestorItem
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {PartType}
|
|
34
|
+
* @memberof PathPartAncestorItem
|
|
35
|
+
*/
|
|
36
|
+
partType: PartType;
|
|
37
|
+
/**
|
|
38
|
+
* Parent PathPart ID
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PathPartAncestorItem
|
|
41
|
+
*/
|
|
42
|
+
parentPathId: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* ID of the underlying object
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PathPartAncestorItem
|
|
47
|
+
*/
|
|
48
|
+
metadataObjId: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Full materialized path from root
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PathPartAncestorItem
|
|
53
|
+
*/
|
|
54
|
+
materializedPath: string;
|
|
55
|
+
/**
|
|
56
|
+
* Whether this path part is system-managed
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof PathPartAncestorItem
|
|
59
|
+
*/
|
|
60
|
+
systemManaged: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Creation timestamp
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof PathPartAncestorItem
|
|
65
|
+
*/
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
/**
|
|
68
|
+
* Last update timestamp
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof PathPartAncestorItem
|
|
71
|
+
*/
|
|
72
|
+
updatedAt: Date;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the PathPartAncestorItem interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfPathPartAncestorItem(value: object): value is PathPartAncestorItem;
|
|
78
|
+
export declare function PathPartAncestorItemFromJSON(json: any): PathPartAncestorItem;
|
|
79
|
+
export declare function PathPartAncestorItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartAncestorItem;
|
|
80
|
+
export declare function PathPartAncestorItemToJSON(json: any): PathPartAncestorItem;
|
|
81
|
+
export declare function PathPartAncestorItemToJSONTyped(value?: PathPartAncestorItem | null, ignoreDiscriminator?: boolean): any;
|
|
82
|
+
export declare const PathPartAncestorItemPropertyValidationAttributesMap: {
|
|
83
|
+
[property: string]: {
|
|
84
|
+
maxLength?: number;
|
|
85
|
+
minLength?: number;
|
|
86
|
+
pattern?: string;
|
|
87
|
+
maximum?: number;
|
|
88
|
+
exclusiveMaximum?: boolean;
|
|
89
|
+
minimum?: number;
|
|
90
|
+
exclusiveMinimum?: boolean;
|
|
91
|
+
multipleOf?: number;
|
|
92
|
+
maxItems?: number;
|
|
93
|
+
minItems?: number;
|
|
94
|
+
uniqueItems?: boolean;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
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 { PartTypeFromJSON, PartTypeToJSON, } from './PartType';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PathPartAncestorItem interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPathPartAncestorItem(value) {
|
|
19
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('partType' in value) || value['partType'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('systemManaged' in value) || value['systemManaged'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
export function PathPartAncestorItemFromJSON(json) {
|
|
40
|
+
return PathPartAncestorItemFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
export function PathPartAncestorItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'pathPartId': json['path_part_id'],
|
|
48
|
+
'name': json['name'],
|
|
49
|
+
'partType': PartTypeFromJSON(json['part_type']),
|
|
50
|
+
'parentPathId': json['parent_path_id'],
|
|
51
|
+
'metadataObjId': json['metadata_obj_id'],
|
|
52
|
+
'materializedPath': json['materialized_path'],
|
|
53
|
+
'systemManaged': json['system_managed'],
|
|
54
|
+
'createdAt': (new Date(json['created_at'])),
|
|
55
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
export function PathPartAncestorItemToJSON(json) {
|
|
59
|
+
return PathPartAncestorItemToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
export function PathPartAncestorItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'path_part_id': value['pathPartId'],
|
|
67
|
+
'name': value['name'],
|
|
68
|
+
'part_type': PartTypeToJSON(value['partType']),
|
|
69
|
+
'parent_path_id': value['parentPathId'],
|
|
70
|
+
'metadata_obj_id': value['metadataObjId'],
|
|
71
|
+
'materialized_path': value['materializedPath'],
|
|
72
|
+
'system_managed': value['systemManaged'],
|
|
73
|
+
'created_at': value['createdAt'].toISOString(),
|
|
74
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
export const PathPartAncestorItemPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* Sort order options for search results.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SearchSortOrder: {
|
|
17
|
+
readonly Name: "NAME";
|
|
18
|
+
readonly UpdatedAt: "UPDATED_AT";
|
|
19
|
+
readonly CreatedAt: "CREATED_AT";
|
|
20
|
+
};
|
|
21
|
+
export type SearchSortOrder = typeof SearchSortOrder[keyof typeof SearchSortOrder];
|
|
22
|
+
export declare function instanceOfSearchSortOrder(value: any): boolean;
|
|
23
|
+
export declare function SearchSortOrderFromJSON(json: any): SearchSortOrder;
|
|
24
|
+
export declare function SearchSortOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSortOrder;
|
|
25
|
+
export declare function SearchSortOrderToJSON(value?: SearchSortOrder | null): any;
|
|
26
|
+
export declare function SearchSortOrderToJSONTyped(value: any, ignoreDiscriminator: boolean): SearchSortOrder;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
* Sort order options for search results.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SearchSortOrder = {
|
|
19
|
+
Name: 'NAME',
|
|
20
|
+
UpdatedAt: 'UPDATED_AT',
|
|
21
|
+
CreatedAt: 'CREATED_AT'
|
|
22
|
+
};
|
|
23
|
+
export function instanceOfSearchSortOrder(value) {
|
|
24
|
+
for (const key in SearchSortOrder) {
|
|
25
|
+
if (Object.prototype.hasOwnProperty.call(SearchSortOrder, key)) {
|
|
26
|
+
if (SearchSortOrder[key] === value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
export function SearchSortOrderFromJSON(json) {
|
|
34
|
+
return SearchSortOrderFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function SearchSortOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
export function SearchSortOrderToJSON(value) {
|
|
40
|
+
return value;
|
|
41
|
+
}
|
|
42
|
+
export function SearchSortOrderToJSONTyped(value, ignoreDiscriminator) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
* Part types that can be searched.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SearchablePartType: {
|
|
17
|
+
readonly Folder: "FOLDER";
|
|
18
|
+
readonly Document: "DOCUMENT";
|
|
19
|
+
};
|
|
20
|
+
export type SearchablePartType = typeof SearchablePartType[keyof typeof SearchablePartType];
|
|
21
|
+
export declare function instanceOfSearchablePartType(value: any): boolean;
|
|
22
|
+
export declare function SearchablePartTypeFromJSON(json: any): SearchablePartType;
|
|
23
|
+
export declare function SearchablePartTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchablePartType;
|
|
24
|
+
export declare function SearchablePartTypeToJSON(value?: SearchablePartType | null): any;
|
|
25
|
+
export declare function SearchablePartTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SearchablePartType;
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Part types that can be searched.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const SearchablePartType = {
|
|
19
|
+
Folder: 'FOLDER',
|
|
20
|
+
Document: 'DOCUMENT'
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfSearchablePartType(value) {
|
|
23
|
+
for (const key in SearchablePartType) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(SearchablePartType, key)) {
|
|
25
|
+
if (SearchablePartType[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
export function SearchablePartTypeFromJSON(json) {
|
|
33
|
+
return SearchablePartTypeFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function SearchablePartTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
export function SearchablePartTypeToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
export function SearchablePartTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './AcceptInviteResponse';
|
|
2
|
+
export * from './AncestryResponse';
|
|
2
3
|
export * from './ApiKeyResponse';
|
|
3
4
|
export * from './Args';
|
|
4
5
|
export * from './BrandingLogoType';
|
|
@@ -81,6 +82,7 @@ export * from './PartType';
|
|
|
81
82
|
export * from './PasswordResetRequest';
|
|
82
83
|
export * from './PasswordResetWithTokenRequest';
|
|
83
84
|
export * from './PathOrder';
|
|
85
|
+
export * from './PathPartAncestorItem';
|
|
84
86
|
export * from './PathPartResponse';
|
|
85
87
|
export * from './PathPartTagsResponse';
|
|
86
88
|
export * from './PermissionCapability';
|
|
@@ -95,7 +97,9 @@ export * from './ResolvedReferenceOutput';
|
|
|
95
97
|
export * from './RootResponse';
|
|
96
98
|
export * from './SSOInitiateResponse';
|
|
97
99
|
export * from './ScoredChunkResponse';
|
|
100
|
+
export * from './SearchSortOrder';
|
|
98
101
|
export * from './SearchType';
|
|
102
|
+
export * from './SearchablePartType';
|
|
99
103
|
export * from './SectionContentItem';
|
|
100
104
|
export * from './SectionContentItemOrChunkContentItem';
|
|
101
105
|
export * from './SectionResponse';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export * from './AcceptInviteResponse';
|
|
4
|
+
export * from './AncestryResponse';
|
|
4
5
|
export * from './ApiKeyResponse';
|
|
5
6
|
export * from './Args';
|
|
6
7
|
export * from './BrandingLogoType';
|
|
@@ -83,6 +84,7 @@ export * from './PartType';
|
|
|
83
84
|
export * from './PasswordResetRequest';
|
|
84
85
|
export * from './PasswordResetWithTokenRequest';
|
|
85
86
|
export * from './PathOrder';
|
|
87
|
+
export * from './PathPartAncestorItem';
|
|
86
88
|
export * from './PathPartResponse';
|
|
87
89
|
export * from './PathPartTagsResponse';
|
|
88
90
|
export * from './PermissionCapability';
|
|
@@ -97,7 +99,9 @@ export * from './ResolvedReferenceOutput';
|
|
|
97
99
|
export * from './RootResponse';
|
|
98
100
|
export * from './SSOInitiateResponse';
|
|
99
101
|
export * from './ScoredChunkResponse';
|
|
102
|
+
export * from './SearchSortOrder';
|
|
100
103
|
export * from './SearchType';
|
|
104
|
+
export * from './SearchablePartType';
|
|
101
105
|
export * from './SectionContentItem';
|
|
102
106
|
export * from './SectionContentItemOrChunkContentItem';
|
|
103
107
|
export * from './SectionResponse';
|
|
@@ -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 { PathPartAncestorItem } from './PathPartAncestorItem';
|
|
13
|
+
/**
|
|
14
|
+
* Response containing the ancestry chain from root to target (inclusive).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AncestryResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface AncestryResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Ancestors ordered root-to-leaf
|
|
21
|
+
* @type {Array<PathPartAncestorItem>}
|
|
22
|
+
* @memberof AncestryResponse
|
|
23
|
+
*/
|
|
24
|
+
ancestors: Array<PathPartAncestorItem>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the AncestryResponse interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfAncestryResponse(value: object): value is AncestryResponse;
|
|
30
|
+
export declare function AncestryResponseFromJSON(json: any): AncestryResponse;
|
|
31
|
+
export declare function AncestryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AncestryResponse;
|
|
32
|
+
export declare function AncestryResponseToJSON(json: any): AncestryResponse;
|
|
33
|
+
export declare function AncestryResponseToJSONTyped(value?: AncestryResponse | null, ignoreDiscriminator?: boolean): any;
|
|
34
|
+
export declare const AncestryResponsePropertyValidationAttributesMap: {
|
|
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.AncestryResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfAncestryResponse = instanceOfAncestryResponse;
|
|
18
|
+
exports.AncestryResponseFromJSON = AncestryResponseFromJSON;
|
|
19
|
+
exports.AncestryResponseFromJSONTyped = AncestryResponseFromJSONTyped;
|
|
20
|
+
exports.AncestryResponseToJSON = AncestryResponseToJSON;
|
|
21
|
+
exports.AncestryResponseToJSONTyped = AncestryResponseToJSONTyped;
|
|
22
|
+
const PathPartAncestorItem_1 = require("./PathPartAncestorItem");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AncestryResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAncestryResponse(value) {
|
|
27
|
+
if (!('ancestors' in value) || value['ancestors'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AncestryResponseFromJSON(json) {
|
|
32
|
+
return AncestryResponseFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AncestryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'ancestors': (json['ancestors'].map(PathPartAncestorItem_1.PathPartAncestorItemFromJSON)),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function AncestryResponseToJSON(json) {
|
|
43
|
+
return AncestryResponseToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function AncestryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
46
|
+
if (value == null) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'ancestors': (value['ancestors'].map(PathPartAncestorItem_1.PathPartAncestorItemToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.AncestryResponsePropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
* Single ancestor item in an ancestry chain.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PathPartAncestorItem
|
|
17
|
+
*/
|
|
18
|
+
export interface PathPartAncestorItem {
|
|
19
|
+
/**
|
|
20
|
+
* PathPart ID
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PathPartAncestorItem
|
|
23
|
+
*/
|
|
24
|
+
pathPartId: string;
|
|
25
|
+
/**
|
|
26
|
+
* Item name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PathPartAncestorItem
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {PartType}
|
|
34
|
+
* @memberof PathPartAncestorItem
|
|
35
|
+
*/
|
|
36
|
+
partType: PartType;
|
|
37
|
+
/**
|
|
38
|
+
* Parent PathPart ID
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PathPartAncestorItem
|
|
41
|
+
*/
|
|
42
|
+
parentPathId: string | null;
|
|
43
|
+
/**
|
|
44
|
+
* ID of the underlying object
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PathPartAncestorItem
|
|
47
|
+
*/
|
|
48
|
+
metadataObjId: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Full materialized path from root
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PathPartAncestorItem
|
|
53
|
+
*/
|
|
54
|
+
materializedPath: string;
|
|
55
|
+
/**
|
|
56
|
+
* Whether this path part is system-managed
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof PathPartAncestorItem
|
|
59
|
+
*/
|
|
60
|
+
systemManaged: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Creation timestamp
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof PathPartAncestorItem
|
|
65
|
+
*/
|
|
66
|
+
createdAt: Date;
|
|
67
|
+
/**
|
|
68
|
+
* Last update timestamp
|
|
69
|
+
* @type {Date}
|
|
70
|
+
* @memberof PathPartAncestorItem
|
|
71
|
+
*/
|
|
72
|
+
updatedAt: Date;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the PathPartAncestorItem interface.
|
|
76
|
+
*/
|
|
77
|
+
export declare function instanceOfPathPartAncestorItem(value: object): value is PathPartAncestorItem;
|
|
78
|
+
export declare function PathPartAncestorItemFromJSON(json: any): PathPartAncestorItem;
|
|
79
|
+
export declare function PathPartAncestorItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartAncestorItem;
|
|
80
|
+
export declare function PathPartAncestorItemToJSON(json: any): PathPartAncestorItem;
|
|
81
|
+
export declare function PathPartAncestorItemToJSONTyped(value?: PathPartAncestorItem | null, ignoreDiscriminator?: boolean): any;
|
|
82
|
+
export declare const PathPartAncestorItemPropertyValidationAttributesMap: {
|
|
83
|
+
[property: string]: {
|
|
84
|
+
maxLength?: number;
|
|
85
|
+
minLength?: number;
|
|
86
|
+
pattern?: string;
|
|
87
|
+
maximum?: number;
|
|
88
|
+
exclusiveMaximum?: boolean;
|
|
89
|
+
minimum?: number;
|
|
90
|
+
exclusiveMinimum?: boolean;
|
|
91
|
+
multipleOf?: number;
|
|
92
|
+
maxItems?: number;
|
|
93
|
+
minItems?: number;
|
|
94
|
+
uniqueItems?: boolean;
|
|
95
|
+
};
|
|
96
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
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.PathPartAncestorItemPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPathPartAncestorItem = instanceOfPathPartAncestorItem;
|
|
18
|
+
exports.PathPartAncestorItemFromJSON = PathPartAncestorItemFromJSON;
|
|
19
|
+
exports.PathPartAncestorItemFromJSONTyped = PathPartAncestorItemFromJSONTyped;
|
|
20
|
+
exports.PathPartAncestorItemToJSON = PathPartAncestorItemToJSON;
|
|
21
|
+
exports.PathPartAncestorItemToJSONTyped = PathPartAncestorItemToJSONTyped;
|
|
22
|
+
const PartType_1 = require("./PartType");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PathPartAncestorItem interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPathPartAncestorItem(value) {
|
|
27
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('partType' in value) || value['partType'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('parentPathId' in value) || value['parentPathId'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('systemManaged' in value) || value['systemManaged'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
function PathPartAncestorItemFromJSON(json) {
|
|
48
|
+
return PathPartAncestorItemFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function PathPartAncestorItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'pathPartId': json['path_part_id'],
|
|
56
|
+
'name': json['name'],
|
|
57
|
+
'partType': (0, PartType_1.PartTypeFromJSON)(json['part_type']),
|
|
58
|
+
'parentPathId': json['parent_path_id'],
|
|
59
|
+
'metadataObjId': json['metadata_obj_id'],
|
|
60
|
+
'materializedPath': json['materialized_path'],
|
|
61
|
+
'systemManaged': json['system_managed'],
|
|
62
|
+
'createdAt': (new Date(json['created_at'])),
|
|
63
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function PathPartAncestorItemToJSON(json) {
|
|
67
|
+
return PathPartAncestorItemToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
function PathPartAncestorItemToJSONTyped(value, ignoreDiscriminator = false) {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
'path_part_id': value['pathPartId'],
|
|
75
|
+
'name': value['name'],
|
|
76
|
+
'part_type': (0, PartType_1.PartTypeToJSON)(value['partType']),
|
|
77
|
+
'parent_path_id': value['parentPathId'],
|
|
78
|
+
'metadata_obj_id': value['metadataObjId'],
|
|
79
|
+
'materialized_path': value['materializedPath'],
|
|
80
|
+
'system_managed': value['systemManaged'],
|
|
81
|
+
'created_at': value['createdAt'].toISOString(),
|
|
82
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
exports.PathPartAncestorItemPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
* Sort order options for search results.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const SearchSortOrder: {
|
|
17
|
+
readonly Name: "NAME";
|
|
18
|
+
readonly UpdatedAt: "UPDATED_AT";
|
|
19
|
+
readonly CreatedAt: "CREATED_AT";
|
|
20
|
+
};
|
|
21
|
+
export type SearchSortOrder = typeof SearchSortOrder[keyof typeof SearchSortOrder];
|
|
22
|
+
export declare function instanceOfSearchSortOrder(value: any): boolean;
|
|
23
|
+
export declare function SearchSortOrderFromJSON(json: any): SearchSortOrder;
|
|
24
|
+
export declare function SearchSortOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSortOrder;
|
|
25
|
+
export declare function SearchSortOrderToJSON(value?: SearchSortOrder | null): any;
|
|
26
|
+
export declare function SearchSortOrderToJSONTyped(value: any, ignoreDiscriminator: boolean): SearchSortOrder;
|