@knowledge-stack/ksapi 1.11.2 → 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 +12 -0
- package/README.md +2 -2
- package/dist/apis/ChunksApi.js +1 -1
- package/dist/apis/TagsApi.d.ts +237 -0
- package/dist/apis/TagsApi.js +272 -0
- 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 +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/ChunksApi.js +1 -1
- package/dist/esm/apis/TagsApi.d.ts +237 -0
- package/dist/esm/apis/TagsApi.js +268 -0
- 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 +2 -0
- package/dist/esm/apis/index.js +2 -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/CreateTagRequest.d.ts +59 -0
- package/dist/esm/models/CreateTagRequest.js +61 -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/PaginatedResponseTagResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseTagResponse.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/TagPathPartRequest.d.ts +47 -0
- package/dist/esm/models/TagPathPartRequest.js +44 -0
- package/dist/esm/models/TagResponse.d.ts +83 -0
- package/dist/esm/models/TagResponse.js +66 -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/UpdateTagRequest.d.ts +59 -0
- package/dist/esm/models/UpdateTagRequest.js +59 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -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/CreateTagRequest.d.ts +59 -0
- package/dist/models/CreateTagRequest.js +69 -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/PaginatedResponseTagResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseTagResponse.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/TagPathPartRequest.d.ts +47 -0
- package/dist/models/TagPathPartRequest.js +52 -0
- package/dist/models/TagResponse.d.ts +83 -0
- package/dist/models/TagResponse.js +74 -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/UpdateTagRequest.d.ts +59 -0
- package/dist/models/UpdateTagRequest.js +67 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/package.json +1 -1
- package/src/apis/ChunksApi.ts +1 -1
- package/src/apis/TagsApi.ts +517 -0
- package/src/apis/ThreadsApi.ts +4 -4
- package/src/apis/UserPermissionsApi.ts +362 -0
- package/src/apis/index.ts +2 -0
- package/src/models/ChunkResponse.ts +9 -0
- package/src/models/CreatePermissionRequest.ts +120 -0
- package/src/models/CreateTagRequest.ts +111 -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/PaginatedResponseTagResponse.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/TagPathPartRequest.ts +83 -0
- package/src/models/TagResponse.ts +136 -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/UpdateTagRequest.ts +110 -0
- package/src/models/index.ts +10 -0
|
@@ -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 = {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Request to update a tag.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateTagRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateTagRequest {
|
|
18
|
+
/**
|
|
19
|
+
* New tag name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateTagRequest
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
* New tag color as 6-character hex string
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UpdateTagRequest
|
|
28
|
+
*/
|
|
29
|
+
color?: string;
|
|
30
|
+
/**
|
|
31
|
+
* New tag description (empty string to clear)
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateTagRequest
|
|
34
|
+
*/
|
|
35
|
+
description?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the UpdateTagRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfUpdateTagRequest(value: object): value is UpdateTagRequest;
|
|
41
|
+
export declare function UpdateTagRequestFromJSON(json: any): UpdateTagRequest;
|
|
42
|
+
export declare function UpdateTagRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTagRequest;
|
|
43
|
+
export declare function UpdateTagRequestToJSON(json: any): UpdateTagRequest;
|
|
44
|
+
export declare function UpdateTagRequestToJSONTyped(value?: UpdateTagRequest | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
export declare const UpdateTagRequestPropertyValidationAttributesMap: {
|
|
46
|
+
[property: string]: {
|
|
47
|
+
maxLength?: number;
|
|
48
|
+
minLength?: number;
|
|
49
|
+
pattern?: string;
|
|
50
|
+
maximum?: number;
|
|
51
|
+
exclusiveMaximum?: boolean;
|
|
52
|
+
minimum?: number;
|
|
53
|
+
exclusiveMinimum?: boolean;
|
|
54
|
+
multipleOf?: number;
|
|
55
|
+
maxItems?: number;
|
|
56
|
+
minItems?: number;
|
|
57
|
+
uniqueItems?: boolean;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
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 UpdateTagRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUpdateTagRequest(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function UpdateTagRequestFromJSON(json) {
|
|
21
|
+
return UpdateTagRequestFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function UpdateTagRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
+
'color': json['color'] == null ? undefined : json['color'],
|
|
30
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function UpdateTagRequestToJSON(json) {
|
|
34
|
+
return UpdateTagRequestToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function UpdateTagRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'name': value['name'],
|
|
42
|
+
'color': value['color'],
|
|
43
|
+
'description': value['description'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export const UpdateTagRequestPropertyValidationAttributesMap = {
|
|
47
|
+
name: {
|
|
48
|
+
maxLength: 100,
|
|
49
|
+
minLength: 1,
|
|
50
|
+
},
|
|
51
|
+
color: {
|
|
52
|
+
maxLength: 6,
|
|
53
|
+
minLength: 6,
|
|
54
|
+
pattern: '/^[0-9A-Fa-f]{6}$/',
|
|
55
|
+
},
|
|
56
|
+
description: {
|
|
57
|
+
maxLength: 500,
|
|
58
|
+
},
|
|
59
|
+
};
|
|
@@ -8,7 +8,9 @@ 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';
|
|
13
|
+
export * from './CreateTagRequest';
|
|
12
14
|
export * from './CreateTenantRequest';
|
|
13
15
|
export * from './CreateThreadMessageRequest';
|
|
14
16
|
export * from './CreateThreadRequest';
|
|
@@ -39,6 +41,8 @@ export * from './PaginatedResponseFolderDocumentResponse';
|
|
|
39
41
|
export * from './PaginatedResponseFolderResponse';
|
|
40
42
|
export * from './PaginatedResponseInviteResponse';
|
|
41
43
|
export * from './PaginatedResponsePathPartResponse';
|
|
44
|
+
export * from './PaginatedResponsePermissionResponse';
|
|
45
|
+
export * from './PaginatedResponseTagResponse';
|
|
42
46
|
export * from './PaginatedResponseTenantResponse';
|
|
43
47
|
export * from './PaginatedResponseTenantUserInTenantResponse';
|
|
44
48
|
export * from './PaginatedResponseThreadMessageResponse';
|
|
@@ -48,11 +52,15 @@ export * from './PasswordResetRequest';
|
|
|
48
52
|
export * from './PasswordResetWithTokenRequest';
|
|
49
53
|
export * from './PathOrder';
|
|
50
54
|
export * from './PathPartResponse';
|
|
55
|
+
export * from './PermissionCapability';
|
|
56
|
+
export * from './PermissionResponse';
|
|
51
57
|
export * from './Polygon';
|
|
52
58
|
export * from './PolygonReference';
|
|
53
59
|
export * from './RootResponse';
|
|
54
60
|
export * from './SectionResponse';
|
|
55
61
|
export * from './SignInRequest';
|
|
62
|
+
export * from './TagPathPartRequest';
|
|
63
|
+
export * from './TagResponse';
|
|
56
64
|
export * from './TenantResponse';
|
|
57
65
|
export * from './TenantUserInTenantResponse';
|
|
58
66
|
export * from './TenantUserRole';
|
|
@@ -62,7 +70,9 @@ export * from './UpdateChunkContentRequest';
|
|
|
62
70
|
export * from './UpdateChunkMetadataRequest';
|
|
63
71
|
export * from './UpdateDocumentRequest';
|
|
64
72
|
export * from './UpdateFolderRequest';
|
|
73
|
+
export * from './UpdatePermissionRequest';
|
|
65
74
|
export * from './UpdateSectionRequest';
|
|
75
|
+
export * from './UpdateTagRequest';
|
|
66
76
|
export * from './UpdateTenantRequest';
|
|
67
77
|
export * from './UpdateThreadRequest';
|
|
68
78
|
export * from './UpdateUserRequest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -10,7 +10,9 @@ 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';
|
|
15
|
+
export * from './CreateTagRequest';
|
|
14
16
|
export * from './CreateTenantRequest';
|
|
15
17
|
export * from './CreateThreadMessageRequest';
|
|
16
18
|
export * from './CreateThreadRequest';
|
|
@@ -41,6 +43,8 @@ export * from './PaginatedResponseFolderDocumentResponse';
|
|
|
41
43
|
export * from './PaginatedResponseFolderResponse';
|
|
42
44
|
export * from './PaginatedResponseInviteResponse';
|
|
43
45
|
export * from './PaginatedResponsePathPartResponse';
|
|
46
|
+
export * from './PaginatedResponsePermissionResponse';
|
|
47
|
+
export * from './PaginatedResponseTagResponse';
|
|
44
48
|
export * from './PaginatedResponseTenantResponse';
|
|
45
49
|
export * from './PaginatedResponseTenantUserInTenantResponse';
|
|
46
50
|
export * from './PaginatedResponseThreadMessageResponse';
|
|
@@ -50,11 +54,15 @@ export * from './PasswordResetRequest';
|
|
|
50
54
|
export * from './PasswordResetWithTokenRequest';
|
|
51
55
|
export * from './PathOrder';
|
|
52
56
|
export * from './PathPartResponse';
|
|
57
|
+
export * from './PermissionCapability';
|
|
58
|
+
export * from './PermissionResponse';
|
|
53
59
|
export * from './Polygon';
|
|
54
60
|
export * from './PolygonReference';
|
|
55
61
|
export * from './RootResponse';
|
|
56
62
|
export * from './SectionResponse';
|
|
57
63
|
export * from './SignInRequest';
|
|
64
|
+
export * from './TagPathPartRequest';
|
|
65
|
+
export * from './TagResponse';
|
|
58
66
|
export * from './TenantResponse';
|
|
59
67
|
export * from './TenantUserInTenantResponse';
|
|
60
68
|
export * from './TenantUserRole';
|
|
@@ -64,7 +72,9 @@ export * from './UpdateChunkContentRequest';
|
|
|
64
72
|
export * from './UpdateChunkMetadataRequest';
|
|
65
73
|
export * from './UpdateDocumentRequest';
|
|
66
74
|
export * from './UpdateFolderRequest';
|
|
75
|
+
export * from './UpdatePermissionRequest';
|
|
67
76
|
export * from './UpdateSectionRequest';
|
|
77
|
+
export * from './UpdateTagRequest';
|
|
68
78
|
export * from './UpdateTenantRequest';
|
|
69
79
|
export * from './UpdateThreadRequest';
|
|
70
80
|
export * from './UpdateUserRequest';
|
|
@@ -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(),
|
|
@@ -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 { PermissionCapability } from './PermissionCapability';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreatePermissionRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface CreatePermissionRequest {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof CreatePermissionRequest
|
|
23
|
+
*/
|
|
24
|
+
tenantId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof CreatePermissionRequest
|
|
29
|
+
*/
|
|
30
|
+
userId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CreatePermissionRequest
|
|
35
|
+
*/
|
|
36
|
+
path: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {PermissionCapability}
|
|
40
|
+
* @memberof CreatePermissionRequest
|
|
41
|
+
*/
|
|
42
|
+
capability: PermissionCapability;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the CreatePermissionRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfCreatePermissionRequest(value: object): value is CreatePermissionRequest;
|
|
48
|
+
export declare function CreatePermissionRequestFromJSON(json: any): CreatePermissionRequest;
|
|
49
|
+
export declare function CreatePermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePermissionRequest;
|
|
50
|
+
export declare function CreatePermissionRequestToJSON(json: any): CreatePermissionRequest;
|
|
51
|
+
export declare function CreatePermissionRequestToJSONTyped(value?: CreatePermissionRequest | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const CreatePermissionRequestPropertyValidationAttributesMap: {
|
|
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,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Knowledge Stack API
|
|
6
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreatePermissionRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfCreatePermissionRequest = instanceOfCreatePermissionRequest;
|
|
18
|
+
exports.CreatePermissionRequestFromJSON = CreatePermissionRequestFromJSON;
|
|
19
|
+
exports.CreatePermissionRequestFromJSONTyped = CreatePermissionRequestFromJSONTyped;
|
|
20
|
+
exports.CreatePermissionRequestToJSON = CreatePermissionRequestToJSON;
|
|
21
|
+
exports.CreatePermissionRequestToJSONTyped = CreatePermissionRequestToJSONTyped;
|
|
22
|
+
const PermissionCapability_1 = require("./PermissionCapability");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the CreatePermissionRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfCreatePermissionRequest(value) {
|
|
27
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('capability' in value) || value['capability'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function CreatePermissionRequestFromJSON(json) {
|
|
38
|
+
return CreatePermissionRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function CreatePermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'tenantId': json['tenant_id'],
|
|
46
|
+
'userId': json['user_id'],
|
|
47
|
+
'path': json['path'],
|
|
48
|
+
'capability': (0, PermissionCapability_1.PermissionCapabilityFromJSON)(json['capability']),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function CreatePermissionRequestToJSON(json) {
|
|
52
|
+
return CreatePermissionRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function CreatePermissionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'tenant_id': value['tenantId'],
|
|
60
|
+
'user_id': value['userId'],
|
|
61
|
+
'path': value['path'],
|
|
62
|
+
'capability': (0, PermissionCapability_1.PermissionCapabilityToJSON)(value['capability']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.CreatePermissionRequestPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Request to create a new tag.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateTagRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateTagRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Tag name
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateTagRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Tag color as 6-character hex string (e.g. 'FF5733')
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateTagRequest
|
|
28
|
+
*/
|
|
29
|
+
color?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional tag description
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CreateTagRequest
|
|
34
|
+
*/
|
|
35
|
+
description?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the CreateTagRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfCreateTagRequest(value: object): value is CreateTagRequest;
|
|
41
|
+
export declare function CreateTagRequestFromJSON(json: any): CreateTagRequest;
|
|
42
|
+
export declare function CreateTagRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateTagRequest;
|
|
43
|
+
export declare function CreateTagRequestToJSON(json: any): CreateTagRequest;
|
|
44
|
+
export declare function CreateTagRequestToJSONTyped(value?: CreateTagRequest | null, ignoreDiscriminator?: boolean): any;
|
|
45
|
+
export declare const CreateTagRequestPropertyValidationAttributesMap: {
|
|
46
|
+
[property: string]: {
|
|
47
|
+
maxLength?: number;
|
|
48
|
+
minLength?: number;
|
|
49
|
+
pattern?: string;
|
|
50
|
+
maximum?: number;
|
|
51
|
+
exclusiveMaximum?: boolean;
|
|
52
|
+
minimum?: number;
|
|
53
|
+
exclusiveMinimum?: boolean;
|
|
54
|
+
multipleOf?: number;
|
|
55
|
+
maxItems?: number;
|
|
56
|
+
minItems?: number;
|
|
57
|
+
uniqueItems?: boolean;
|
|
58
|
+
};
|
|
59
|
+
};
|