@knowledge-stack/ksapi 1.12.0 → 1.13.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 +6 -0
- package/README.md +2 -2
- package/dist/apis/ChunksApi.js +1 -1
- package/dist/apis/TagsApi.d.ts +20 -20
- package/dist/apis/TagsApi.js +10 -10
- package/dist/apis/ThreadsApi.d.ts +4 -4
- package/dist/apis/ThreadsApi.js +2 -2
- package/dist/apis/UserPermissionsApi.d.ts +154 -0
- package/dist/apis/UserPermissionsApi.js +192 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ChunksApi.js +1 -1
- package/dist/esm/apis/TagsApi.d.ts +20 -20
- package/dist/esm/apis/TagsApi.js +10 -10
- package/dist/esm/apis/ThreadsApi.d.ts +4 -4
- package/dist/esm/apis/ThreadsApi.js +2 -2
- package/dist/esm/apis/UserPermissionsApi.d.ts +154 -0
- package/dist/esm/apis/UserPermissionsApi.js +188 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/ChunkResponse.d.ts +6 -0
- package/dist/esm/models/ChunkResponse.js +4 -0
- package/dist/esm/models/CreatePermissionRequest.d.ts +66 -0
- package/dist/esm/models/CreatePermissionRequest.js +57 -0
- package/dist/esm/models/DocumentContentPathPart.d.ts +6 -0
- package/dist/esm/models/DocumentContentPathPart.js +4 -0
- package/dist/esm/models/DocumentResponse.d.ts +6 -0
- package/dist/esm/models/DocumentResponse.js +4 -0
- package/dist/esm/models/DocumentVersionResponse.d.ts +6 -0
- package/dist/esm/models/DocumentVersionResponse.js +4 -0
- package/dist/esm/models/FolderDocumentResponse.d.ts +6 -0
- package/dist/esm/models/FolderDocumentResponse.js +4 -0
- package/dist/esm/models/FolderResponse.d.ts +6 -0
- package/dist/esm/models/FolderResponse.js +4 -0
- package/dist/esm/models/PaginatedResponsePermissionResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponsePermissionResponse.js +70 -0
- package/dist/esm/models/PathPartResponse.d.ts +6 -0
- package/dist/esm/models/PathPartResponse.js +4 -0
- package/dist/esm/models/PermissionCapability.d.ts +25 -0
- package/dist/esm/models/PermissionCapability.js +43 -0
- package/dist/esm/models/PermissionResponse.d.ts +84 -0
- package/dist/esm/models/PermissionResponse.js +69 -0
- package/dist/esm/models/SectionResponse.d.ts +6 -0
- package/dist/esm/models/SectionResponse.js +4 -0
- package/dist/esm/models/ThreadMessageResponse.d.ts +6 -0
- package/dist/esm/models/ThreadMessageResponse.js +4 -0
- package/dist/esm/models/ThreadResponse.d.ts +6 -0
- package/dist/esm/models/ThreadResponse.js +4 -0
- package/dist/esm/models/UpdatePermissionRequest.d.ts +54 -0
- package/dist/esm/models/UpdatePermissionRequest.js +45 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/ChunkResponse.d.ts +6 -0
- package/dist/models/ChunkResponse.js +4 -0
- package/dist/models/CreatePermissionRequest.d.ts +66 -0
- package/dist/models/CreatePermissionRequest.js +65 -0
- package/dist/models/DocumentContentPathPart.d.ts +6 -0
- package/dist/models/DocumentContentPathPart.js +4 -0
- package/dist/models/DocumentResponse.d.ts +6 -0
- package/dist/models/DocumentResponse.js +4 -0
- package/dist/models/DocumentVersionResponse.d.ts +6 -0
- package/dist/models/DocumentVersionResponse.js +4 -0
- package/dist/models/FolderDocumentResponse.d.ts +6 -0
- package/dist/models/FolderDocumentResponse.js +4 -0
- package/dist/models/FolderResponse.d.ts +6 -0
- package/dist/models/FolderResponse.js +4 -0
- package/dist/models/PaginatedResponsePermissionResponse.d.ts +66 -0
- package/dist/models/PaginatedResponsePermissionResponse.js +78 -0
- package/dist/models/PathPartResponse.d.ts +6 -0
- package/dist/models/PathPartResponse.js +4 -0
- package/dist/models/PermissionCapability.d.ts +25 -0
- package/dist/models/PermissionCapability.js +51 -0
- package/dist/models/PermissionResponse.d.ts +84 -0
- package/dist/models/PermissionResponse.js +77 -0
- package/dist/models/SectionResponse.d.ts +6 -0
- package/dist/models/SectionResponse.js +4 -0
- package/dist/models/ThreadMessageResponse.d.ts +6 -0
- package/dist/models/ThreadMessageResponse.js +4 -0
- package/dist/models/ThreadResponse.d.ts +6 -0
- package/dist/models/ThreadResponse.js +4 -0
- package/dist/models/UpdatePermissionRequest.d.ts +54 -0
- package/dist/models/UpdatePermissionRequest.js +53 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/ChunksApi.ts +1 -1
- package/src/apis/TagsApi.ts +20 -20
- package/src/apis/ThreadsApi.ts +4 -4
- package/src/apis/UserPermissionsApi.ts +362 -0
- package/src/apis/index.ts +1 -0
- package/src/models/ChunkResponse.ts +9 -0
- package/src/models/CreatePermissionRequest.ts +120 -0
- package/src/models/DocumentContentPathPart.ts +9 -0
- package/src/models/DocumentResponse.ts +9 -0
- package/src/models/DocumentVersionResponse.ts +9 -0
- package/src/models/FolderDocumentResponse.ts +9 -0
- package/src/models/FolderResponse.ts +9 -0
- package/src/models/PaginatedResponsePermissionResponse.ts +130 -0
- package/src/models/PathPartResponse.ts +9 -0
- package/src/models/PermissionCapability.ts +53 -0
- package/src/models/PermissionResponse.ts +147 -0
- package/src/models/SectionResponse.ts +9 -0
- package/src/models/ThreadMessageResponse.ts +9 -0
- package/src/models/ThreadResponse.ts +9 -0
- package/src/models/UpdatePermissionRequest.ts +100 -0
- package/src/models/index.ts +5 -0
|
@@ -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 { PermissionResponseFromJSON, PermissionResponseToJSON, } from './PermissionResponse';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PaginatedResponsePermissionResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPaginatedResponsePermissionResponse(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 PaginatedResponsePermissionResponseFromJSON(json) {
|
|
30
|
+
return PaginatedResponsePermissionResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
export function PaginatedResponsePermissionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'items': (json['items'].map(PermissionResponseFromJSON)),
|
|
38
|
+
'total': json['total'],
|
|
39
|
+
'limit': json['limit'],
|
|
40
|
+
'offset': json['offset'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function PaginatedResponsePermissionResponseToJSON(json) {
|
|
44
|
+
return PaginatedResponsePermissionResponseToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function PaginatedResponsePermissionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'items': (value['items'].map(PermissionResponseToJSON)),
|
|
52
|
+
'total': value['total'],
|
|
53
|
+
'limit': value['limit'],
|
|
54
|
+
'offset': value['offset'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
export const PaginatedResponsePermissionResponsePropertyValidationAttributesMap = {
|
|
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
|
+
};
|
|
@@ -46,6 +46,12 @@ export interface PathPartResponse {
|
|
|
46
46
|
* @memberof PathPartResponse
|
|
47
47
|
*/
|
|
48
48
|
metadataObjId: string;
|
|
49
|
+
/**
|
|
50
|
+
* Full materialized path from root
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PathPartResponse
|
|
53
|
+
*/
|
|
54
|
+
materializedPath: string;
|
|
49
55
|
/**
|
|
50
56
|
* Creation timestamp
|
|
51
57
|
* @type {Date}
|
|
@@ -26,6 +26,8 @@ export function instanceOfPathPartResponse(value) {
|
|
|
26
26
|
return false;
|
|
27
27
|
if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
|
|
28
28
|
return false;
|
|
29
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
30
|
+
return false;
|
|
29
31
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
30
32
|
return false;
|
|
31
33
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -45,6 +47,7 @@ export function PathPartResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
47
|
'partType': PartTypeFromJSON(json['part_type']),
|
|
46
48
|
'parentId': json['parent_id'],
|
|
47
49
|
'metadataObjId': json['metadata_obj_id'],
|
|
50
|
+
'materializedPath': json['materialized_path'],
|
|
48
51
|
'createdAt': (new Date(json['created_at'])),
|
|
49
52
|
'updatedAt': (new Date(json['updated_at'])),
|
|
50
53
|
};
|
|
@@ -62,6 +65,7 @@ export function PathPartResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
62
65
|
'part_type': PartTypeToJSON(value['partType']),
|
|
63
66
|
'parent_id': value['parentId'],
|
|
64
67
|
'metadata_obj_id': value['metadataObjId'],
|
|
68
|
+
'materialized_path': value['materializedPath'],
|
|
65
69
|
'created_at': value['createdAt'].toISOString(),
|
|
66
70
|
'updated_at': value['updatedAt'].toISOString(),
|
|
67
71
|
};
|
|
@@ -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
|
+
* Permission capability.
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const PermissionCapability: {
|
|
17
|
+
readonly ReadOnly: "READ_ONLY";
|
|
18
|
+
readonly ReadWrite: "READ_WRITE";
|
|
19
|
+
};
|
|
20
|
+
export type PermissionCapability = typeof PermissionCapability[keyof typeof PermissionCapability];
|
|
21
|
+
export declare function instanceOfPermissionCapability(value: any): boolean;
|
|
22
|
+
export declare function PermissionCapabilityFromJSON(json: any): PermissionCapability;
|
|
23
|
+
export declare function PermissionCapabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionCapability;
|
|
24
|
+
export declare function PermissionCapabilityToJSON(value?: PermissionCapability | null): any;
|
|
25
|
+
export declare function PermissionCapabilityToJSONTyped(value: any, ignoreDiscriminator: boolean): PermissionCapability;
|
|
@@ -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
|
+
* Permission capability.
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const PermissionCapability = {
|
|
19
|
+
ReadOnly: 'READ_ONLY',
|
|
20
|
+
ReadWrite: 'READ_WRITE'
|
|
21
|
+
};
|
|
22
|
+
export function instanceOfPermissionCapability(value) {
|
|
23
|
+
for (const key in PermissionCapability) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(PermissionCapability, key)) {
|
|
25
|
+
if (PermissionCapability[key] === value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
export function PermissionCapabilityFromJSON(json) {
|
|
33
|
+
return PermissionCapabilityFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function PermissionCapabilityFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
export function PermissionCapabilityToJSON(value) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
export function PermissionCapabilityToJSONTyped(value, ignoreDiscriminator) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
@@ -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 { PermissionCapability } from './PermissionCapability';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PermissionResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PermissionResponse {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PermissionResponse
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PermissionResponse
|
|
29
|
+
*/
|
|
30
|
+
tenantId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PermissionResponse
|
|
35
|
+
*/
|
|
36
|
+
userId: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PermissionResponse
|
|
41
|
+
*/
|
|
42
|
+
path: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {PermissionCapability}
|
|
46
|
+
* @memberof PermissionResponse
|
|
47
|
+
*/
|
|
48
|
+
capability: PermissionCapability;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof PermissionResponse
|
|
53
|
+
*/
|
|
54
|
+
createdAt: Date;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof PermissionResponse
|
|
59
|
+
*/
|
|
60
|
+
updatedAt: Date;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the PermissionResponse interface.
|
|
64
|
+
*/
|
|
65
|
+
export declare function instanceOfPermissionResponse(value: object): value is PermissionResponse;
|
|
66
|
+
export declare function PermissionResponseFromJSON(json: any): PermissionResponse;
|
|
67
|
+
export declare function PermissionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionResponse;
|
|
68
|
+
export declare function PermissionResponseToJSON(json: any): PermissionResponse;
|
|
69
|
+
export declare function PermissionResponseToJSONTyped(value?: PermissionResponse | null, ignoreDiscriminator?: boolean): any;
|
|
70
|
+
export declare const PermissionResponsePropertyValidationAttributesMap: {
|
|
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
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { PermissionCapabilityFromJSON, PermissionCapabilityToJSON, } from './PermissionCapability';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PermissionResponse interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPermissionResponse(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('capability' in value) || value['capability'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
export function PermissionResponseFromJSON(json) {
|
|
36
|
+
return PermissionResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
export function PermissionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'],
|
|
44
|
+
'tenantId': json['tenant_id'],
|
|
45
|
+
'userId': json['user_id'],
|
|
46
|
+
'path': json['path'],
|
|
47
|
+
'capability': PermissionCapabilityFromJSON(json['capability']),
|
|
48
|
+
'createdAt': (new Date(json['created_at'])),
|
|
49
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export function PermissionResponseToJSON(json) {
|
|
53
|
+
return PermissionResponseToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
export function PermissionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
'id': value['id'],
|
|
61
|
+
'tenant_id': value['tenantId'],
|
|
62
|
+
'user_id': value['userId'],
|
|
63
|
+
'path': value['path'],
|
|
64
|
+
'capability': PermissionCapabilityToJSON(value['capability']),
|
|
65
|
+
'created_at': value['createdAt'].toISOString(),
|
|
66
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export const PermissionResponsePropertyValidationAttributesMap = {};
|
|
@@ -57,6 +57,12 @@ export interface SectionResponse {
|
|
|
57
57
|
* @memberof SectionResponse
|
|
58
58
|
*/
|
|
59
59
|
nextSiblingId?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Full materialized path from root
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof SectionResponse
|
|
64
|
+
*/
|
|
65
|
+
materializedPath: string;
|
|
60
66
|
/**
|
|
61
67
|
* Tenant ID
|
|
62
68
|
* @type {string}
|
|
@@ -23,6 +23,8 @@ export function instanceOfSectionResponse(value) {
|
|
|
23
23
|
return false;
|
|
24
24
|
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
25
25
|
return false;
|
|
26
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
27
|
+
return false;
|
|
26
28
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
27
29
|
return false;
|
|
28
30
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -46,6 +48,7 @@ export function SectionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
48
|
'parentId': json['parent_id'],
|
|
47
49
|
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
48
50
|
'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
|
|
51
|
+
'materializedPath': json['materialized_path'],
|
|
49
52
|
'tenantId': json['tenant_id'],
|
|
50
53
|
'createdAt': (new Date(json['created_at'])),
|
|
51
54
|
'updatedAt': (new Date(json['updated_at'])),
|
|
@@ -66,6 +69,7 @@ export function SectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
69
|
'parent_id': value['parentId'],
|
|
67
70
|
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
68
71
|
'next_sibling_id': value['nextSiblingId'],
|
|
72
|
+
'materialized_path': value['materializedPath'],
|
|
69
73
|
'tenant_id': value['tenantId'],
|
|
70
74
|
'created_at': value['createdAt'].toISOString(),
|
|
71
75
|
'updated_at': value['updatedAt'].toISOString(),
|
|
@@ -52,6 +52,12 @@ export interface ThreadMessageResponse {
|
|
|
52
52
|
* @memberof ThreadMessageResponse
|
|
53
53
|
*/
|
|
54
54
|
parentId: string;
|
|
55
|
+
/**
|
|
56
|
+
* Full materialized path from root
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ThreadMessageResponse
|
|
59
|
+
*/
|
|
60
|
+
materializedPath: string;
|
|
55
61
|
/**
|
|
56
62
|
* Tenant ID
|
|
57
63
|
* @type {string}
|
|
@@ -28,6 +28,8 @@ export function instanceOfThreadMessageResponse(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
30
30
|
return false;
|
|
31
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
32
|
+
return false;
|
|
31
33
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
32
34
|
return false;
|
|
33
35
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -50,6 +52,7 @@ export function ThreadMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
52
|
'role': MessageRoleFromJSON(json['role']),
|
|
51
53
|
'content': json['content'],
|
|
52
54
|
'parentId': json['parent_id'],
|
|
55
|
+
'materializedPath': json['materialized_path'],
|
|
53
56
|
'tenantId': json['tenant_id'],
|
|
54
57
|
'createdAt': (new Date(json['created_at'])),
|
|
55
58
|
'updatedAt': (new Date(json['updated_at'])),
|
|
@@ -69,6 +72,7 @@ export function ThreadMessageResponseToJSONTyped(value, ignoreDiscriminator = fa
|
|
|
69
72
|
'role': MessageRoleToJSON(value['role']),
|
|
70
73
|
'content': value['content'],
|
|
71
74
|
'parent_id': value['parentId'],
|
|
75
|
+
'materialized_path': value['materializedPath'],
|
|
72
76
|
'tenant_id': value['tenantId'],
|
|
73
77
|
'created_at': value['createdAt'].toISOString(),
|
|
74
78
|
'updated_at': value['updatedAt'].toISOString(),
|
|
@@ -39,6 +39,12 @@ export interface ThreadResponse {
|
|
|
39
39
|
* @memberof ThreadResponse
|
|
40
40
|
*/
|
|
41
41
|
parentThreadId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Full materialized path from root
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ThreadResponse
|
|
46
|
+
*/
|
|
47
|
+
materializedPath: string;
|
|
42
48
|
/**
|
|
43
49
|
* Tenant ID
|
|
44
50
|
* @type {string}
|
|
@@ -21,6 +21,8 @@ export function instanceOfThreadResponse(value) {
|
|
|
21
21
|
return false;
|
|
22
22
|
if (!('title' in value) || value['title'] === undefined)
|
|
23
23
|
return false;
|
|
24
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
25
|
+
return false;
|
|
24
26
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
25
27
|
return false;
|
|
26
28
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -41,6 +43,7 @@ export function ThreadResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
43
|
'pathPartId': json['path_part_id'],
|
|
42
44
|
'title': json['title'],
|
|
43
45
|
'parentThreadId': json['parent_thread_id'] == null ? undefined : json['parent_thread_id'],
|
|
46
|
+
'materializedPath': json['materialized_path'],
|
|
44
47
|
'tenantId': json['tenant_id'],
|
|
45
48
|
'createdAt': (new Date(json['created_at'])),
|
|
46
49
|
'updatedAt': (new Date(json['updated_at'])),
|
|
@@ -58,6 +61,7 @@ export function ThreadResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
61
|
'path_part_id': value['pathPartId'],
|
|
59
62
|
'title': value['title'],
|
|
60
63
|
'parent_thread_id': value['parentThreadId'],
|
|
64
|
+
'materialized_path': value['materializedPath'],
|
|
61
65
|
'tenant_id': value['tenantId'],
|
|
62
66
|
'created_at': value['createdAt'].toISOString(),
|
|
63
67
|
'updated_at': value['updatedAt'].toISOString(),
|
|
@@ -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 { PermissionCapability } from './PermissionCapability';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdatePermissionRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdatePermissionRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdatePermissionRequest
|
|
23
|
+
*/
|
|
24
|
+
path?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {PermissionCapability}
|
|
28
|
+
* @memberof UpdatePermissionRequest
|
|
29
|
+
*/
|
|
30
|
+
capability?: PermissionCapability;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the UpdatePermissionRequest interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfUpdatePermissionRequest(value: object): value is UpdatePermissionRequest;
|
|
36
|
+
export declare function UpdatePermissionRequestFromJSON(json: any): UpdatePermissionRequest;
|
|
37
|
+
export declare function UpdatePermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePermissionRequest;
|
|
38
|
+
export declare function UpdatePermissionRequestToJSON(json: any): UpdatePermissionRequest;
|
|
39
|
+
export declare function UpdatePermissionRequestToJSONTyped(value?: UpdatePermissionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
40
|
+
export declare const UpdatePermissionRequestPropertyValidationAttributesMap: {
|
|
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,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 { PermissionCapabilityFromJSON, PermissionCapabilityToJSON, } from './PermissionCapability';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the UpdatePermissionRequest interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfUpdatePermissionRequest(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function UpdatePermissionRequestFromJSON(json) {
|
|
22
|
+
return UpdatePermissionRequestFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function UpdatePermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'path': json['path'] == null ? undefined : json['path'],
|
|
30
|
+
'capability': json['capability'] == null ? undefined : PermissionCapabilityFromJSON(json['capability']),
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function UpdatePermissionRequestToJSON(json) {
|
|
34
|
+
return UpdatePermissionRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function UpdatePermissionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'path': value['path'],
|
|
42
|
+
'capability': PermissionCapabilityToJSON(value['capability']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export const UpdatePermissionRequestPropertyValidationAttributesMap = {};
|
|
@@ -8,6 +8,7 @@ export * from './CreateChunkRequest';
|
|
|
8
8
|
export * from './CreateDocumentRequest';
|
|
9
9
|
export * from './CreateFolderRequest';
|
|
10
10
|
export * from './CreatePasswordUserRequest';
|
|
11
|
+
export * from './CreatePermissionRequest';
|
|
11
12
|
export * from './CreateSectionRequest';
|
|
12
13
|
export * from './CreateTagRequest';
|
|
13
14
|
export * from './CreateTenantRequest';
|
|
@@ -40,6 +41,7 @@ export * from './PaginatedResponseFolderDocumentResponse';
|
|
|
40
41
|
export * from './PaginatedResponseFolderResponse';
|
|
41
42
|
export * from './PaginatedResponseInviteResponse';
|
|
42
43
|
export * from './PaginatedResponsePathPartResponse';
|
|
44
|
+
export * from './PaginatedResponsePermissionResponse';
|
|
43
45
|
export * from './PaginatedResponseTagResponse';
|
|
44
46
|
export * from './PaginatedResponseTenantResponse';
|
|
45
47
|
export * from './PaginatedResponseTenantUserInTenantResponse';
|
|
@@ -50,6 +52,8 @@ export * from './PasswordResetRequest';
|
|
|
50
52
|
export * from './PasswordResetWithTokenRequest';
|
|
51
53
|
export * from './PathOrder';
|
|
52
54
|
export * from './PathPartResponse';
|
|
55
|
+
export * from './PermissionCapability';
|
|
56
|
+
export * from './PermissionResponse';
|
|
53
57
|
export * from './Polygon';
|
|
54
58
|
export * from './PolygonReference';
|
|
55
59
|
export * from './RootResponse';
|
|
@@ -66,6 +70,7 @@ export * from './UpdateChunkContentRequest';
|
|
|
66
70
|
export * from './UpdateChunkMetadataRequest';
|
|
67
71
|
export * from './UpdateDocumentRequest';
|
|
68
72
|
export * from './UpdateFolderRequest';
|
|
73
|
+
export * from './UpdatePermissionRequest';
|
|
69
74
|
export * from './UpdateSectionRequest';
|
|
70
75
|
export * from './UpdateTagRequest';
|
|
71
76
|
export * from './UpdateTenantRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -10,6 +10,7 @@ export * from './CreateChunkRequest';
|
|
|
10
10
|
export * from './CreateDocumentRequest';
|
|
11
11
|
export * from './CreateFolderRequest';
|
|
12
12
|
export * from './CreatePasswordUserRequest';
|
|
13
|
+
export * from './CreatePermissionRequest';
|
|
13
14
|
export * from './CreateSectionRequest';
|
|
14
15
|
export * from './CreateTagRequest';
|
|
15
16
|
export * from './CreateTenantRequest';
|
|
@@ -42,6 +43,7 @@ export * from './PaginatedResponseFolderDocumentResponse';
|
|
|
42
43
|
export * from './PaginatedResponseFolderResponse';
|
|
43
44
|
export * from './PaginatedResponseInviteResponse';
|
|
44
45
|
export * from './PaginatedResponsePathPartResponse';
|
|
46
|
+
export * from './PaginatedResponsePermissionResponse';
|
|
45
47
|
export * from './PaginatedResponseTagResponse';
|
|
46
48
|
export * from './PaginatedResponseTenantResponse';
|
|
47
49
|
export * from './PaginatedResponseTenantUserInTenantResponse';
|
|
@@ -52,6 +54,8 @@ export * from './PasswordResetRequest';
|
|
|
52
54
|
export * from './PasswordResetWithTokenRequest';
|
|
53
55
|
export * from './PathOrder';
|
|
54
56
|
export * from './PathPartResponse';
|
|
57
|
+
export * from './PermissionCapability';
|
|
58
|
+
export * from './PermissionResponse';
|
|
55
59
|
export * from './Polygon';
|
|
56
60
|
export * from './PolygonReference';
|
|
57
61
|
export * from './RootResponse';
|
|
@@ -68,6 +72,7 @@ export * from './UpdateChunkContentRequest';
|
|
|
68
72
|
export * from './UpdateChunkMetadataRequest';
|
|
69
73
|
export * from './UpdateDocumentRequest';
|
|
70
74
|
export * from './UpdateFolderRequest';
|
|
75
|
+
export * from './UpdatePermissionRequest';
|
|
71
76
|
export * from './UpdateSectionRequest';
|
|
72
77
|
export * from './UpdateTagRequest';
|
|
73
78
|
export * from './UpdateTenantRequest';
|
|
@@ -71,6 +71,12 @@ export interface ChunkResponse {
|
|
|
71
71
|
* @memberof ChunkResponse
|
|
72
72
|
*/
|
|
73
73
|
nextSiblingId?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Full materialized path from root
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof ChunkResponse
|
|
78
|
+
*/
|
|
79
|
+
materializedPath: string;
|
|
74
80
|
/**
|
|
75
81
|
* Tenant ID
|
|
76
82
|
* @type {string}
|
|
@@ -39,6 +39,8 @@ function instanceOfChunkResponse(value) {
|
|
|
39
39
|
return false;
|
|
40
40
|
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
41
41
|
return false;
|
|
42
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
43
|
+
return false;
|
|
42
44
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
43
45
|
return false;
|
|
44
46
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -64,6 +66,7 @@ function ChunkResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
66
|
'parentId': json['parent_id'],
|
|
65
67
|
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
66
68
|
'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
|
|
69
|
+
'materializedPath': json['materialized_path'],
|
|
67
70
|
'tenantId': json['tenant_id'],
|
|
68
71
|
'createdAt': (new Date(json['created_at'])),
|
|
69
72
|
'updatedAt': (new Date(json['updated_at'])),
|
|
@@ -86,6 +89,7 @@ function ChunkResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
89
|
'parent_id': value['parentId'],
|
|
87
90
|
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
88
91
|
'next_sibling_id': value['nextSiblingId'],
|
|
92
|
+
'materialized_path': value['materializedPath'],
|
|
89
93
|
'tenant_id': value['tenantId'],
|
|
90
94
|
'created_at': value['createdAt'].toISOString(),
|
|
91
95
|
'updated_at': value['updatedAt'].toISOString(),
|