@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
|
@@ -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,77 @@
|
|
|
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.PermissionResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPermissionResponse = instanceOfPermissionResponse;
|
|
18
|
+
exports.PermissionResponseFromJSON = PermissionResponseFromJSON;
|
|
19
|
+
exports.PermissionResponseFromJSONTyped = PermissionResponseFromJSONTyped;
|
|
20
|
+
exports.PermissionResponseToJSON = PermissionResponseToJSON;
|
|
21
|
+
exports.PermissionResponseToJSONTyped = PermissionResponseToJSONTyped;
|
|
22
|
+
const PermissionCapability_1 = require("./PermissionCapability");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PermissionResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPermissionResponse(value) {
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('path' in value) || value['path'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('capability' in value) || value['capability'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function PermissionResponseFromJSON(json) {
|
|
44
|
+
return PermissionResponseFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PermissionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
47
|
+
if (json == null) {
|
|
48
|
+
return json;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'id': json['id'],
|
|
52
|
+
'tenantId': json['tenant_id'],
|
|
53
|
+
'userId': json['user_id'],
|
|
54
|
+
'path': json['path'],
|
|
55
|
+
'capability': (0, PermissionCapability_1.PermissionCapabilityFromJSON)(json['capability']),
|
|
56
|
+
'createdAt': (new Date(json['created_at'])),
|
|
57
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
function PermissionResponseToJSON(json) {
|
|
61
|
+
return PermissionResponseToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
function PermissionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
'id': value['id'],
|
|
69
|
+
'tenant_id': value['tenantId'],
|
|
70
|
+
'user_id': value['userId'],
|
|
71
|
+
'path': value['path'],
|
|
72
|
+
'capability': (0, PermissionCapability_1.PermissionCapabilityToJSON)(value['capability']),
|
|
73
|
+
'created_at': value['createdAt'].toISOString(),
|
|
74
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
exports.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}
|
|
@@ -31,6 +31,8 @@ function instanceOfSectionResponse(value) {
|
|
|
31
31
|
return false;
|
|
32
32
|
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
33
33
|
return false;
|
|
34
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
35
|
+
return false;
|
|
34
36
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
35
37
|
return false;
|
|
36
38
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -54,6 +56,7 @@ function SectionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
54
56
|
'parentId': json['parent_id'],
|
|
55
57
|
'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
|
|
56
58
|
'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
|
|
59
|
+
'materializedPath': json['materialized_path'],
|
|
57
60
|
'tenantId': json['tenant_id'],
|
|
58
61
|
'createdAt': (new Date(json['created_at'])),
|
|
59
62
|
'updatedAt': (new Date(json['updated_at'])),
|
|
@@ -74,6 +77,7 @@ function SectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
74
77
|
'parent_id': value['parentId'],
|
|
75
78
|
'prev_sibling_path_id': value['prevSiblingPathId'],
|
|
76
79
|
'next_sibling_id': value['nextSiblingId'],
|
|
80
|
+
'materialized_path': value['materializedPath'],
|
|
77
81
|
'tenant_id': value['tenantId'],
|
|
78
82
|
'created_at': value['createdAt'].toISOString(),
|
|
79
83
|
'updated_at': value['updatedAt'].toISOString(),
|
|
@@ -0,0 +1,47 @@
|
|
|
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 attach/detach a tag to/from a path part.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TagPathPartRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface TagPathPartRequest {
|
|
18
|
+
/**
|
|
19
|
+
* PathPart ID to attach the tag to
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TagPathPartRequest
|
|
22
|
+
*/
|
|
23
|
+
pathPartId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the TagPathPartRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfTagPathPartRequest(value: object): value is TagPathPartRequest;
|
|
29
|
+
export declare function TagPathPartRequestFromJSON(json: any): TagPathPartRequest;
|
|
30
|
+
export declare function TagPathPartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagPathPartRequest;
|
|
31
|
+
export declare function TagPathPartRequestToJSON(json: any): TagPathPartRequest;
|
|
32
|
+
export declare function TagPathPartRequestToJSONTyped(value?: TagPathPartRequest | null, ignoreDiscriminator?: boolean): any;
|
|
33
|
+
export declare const TagPathPartRequestPropertyValidationAttributesMap: {
|
|
34
|
+
[property: string]: {
|
|
35
|
+
maxLength?: number;
|
|
36
|
+
minLength?: number;
|
|
37
|
+
pattern?: string;
|
|
38
|
+
maximum?: number;
|
|
39
|
+
exclusiveMaximum?: boolean;
|
|
40
|
+
minimum?: number;
|
|
41
|
+
exclusiveMinimum?: boolean;
|
|
42
|
+
multipleOf?: number;
|
|
43
|
+
maxItems?: number;
|
|
44
|
+
minItems?: number;
|
|
45
|
+
uniqueItems?: boolean;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
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.TagPathPartRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfTagPathPartRequest = instanceOfTagPathPartRequest;
|
|
18
|
+
exports.TagPathPartRequestFromJSON = TagPathPartRequestFromJSON;
|
|
19
|
+
exports.TagPathPartRequestFromJSONTyped = TagPathPartRequestFromJSONTyped;
|
|
20
|
+
exports.TagPathPartRequestToJSON = TagPathPartRequestToJSON;
|
|
21
|
+
exports.TagPathPartRequestToJSONTyped = TagPathPartRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TagPathPartRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTagPathPartRequest(value) {
|
|
26
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function TagPathPartRequestFromJSON(json) {
|
|
31
|
+
return TagPathPartRequestFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function TagPathPartRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'pathPartId': json['path_part_id'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function TagPathPartRequestToJSON(json) {
|
|
42
|
+
return TagPathPartRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function TagPathPartRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'path_part_id': value['pathPartId'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.TagPathPartRequestPropertyValidationAttributesMap = {};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Knowledge Stack API
|
|
3
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Tag response model.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface TagResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface TagResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Tag ID
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TagResponse
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Tag name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TagResponse
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Tag color hex
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof TagResponse
|
|
34
|
+
*/
|
|
35
|
+
color: string;
|
|
36
|
+
/**
|
|
37
|
+
* Tag description
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof TagResponse
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Tenant ID
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof TagResponse
|
|
46
|
+
*/
|
|
47
|
+
tenantId: string;
|
|
48
|
+
/**
|
|
49
|
+
* Creation timestamp
|
|
50
|
+
* @type {Date}
|
|
51
|
+
* @memberof TagResponse
|
|
52
|
+
*/
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
/**
|
|
55
|
+
* Last update timestamp
|
|
56
|
+
* @type {Date}
|
|
57
|
+
* @memberof TagResponse
|
|
58
|
+
*/
|
|
59
|
+
updatedAt: Date;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the TagResponse interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfTagResponse(value: object): value is TagResponse;
|
|
65
|
+
export declare function TagResponseFromJSON(json: any): TagResponse;
|
|
66
|
+
export declare function TagResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagResponse;
|
|
67
|
+
export declare function TagResponseToJSON(json: any): TagResponse;
|
|
68
|
+
export declare function TagResponseToJSONTyped(value?: TagResponse | null, ignoreDiscriminator?: boolean): any;
|
|
69
|
+
export declare const TagResponsePropertyValidationAttributesMap: {
|
|
70
|
+
[property: string]: {
|
|
71
|
+
maxLength?: number;
|
|
72
|
+
minLength?: number;
|
|
73
|
+
pattern?: string;
|
|
74
|
+
maximum?: number;
|
|
75
|
+
exclusiveMaximum?: boolean;
|
|
76
|
+
minimum?: number;
|
|
77
|
+
exclusiveMinimum?: boolean;
|
|
78
|
+
multipleOf?: number;
|
|
79
|
+
maxItems?: number;
|
|
80
|
+
minItems?: number;
|
|
81
|
+
uniqueItems?: boolean;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
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.TagResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfTagResponse = instanceOfTagResponse;
|
|
18
|
+
exports.TagResponseFromJSON = TagResponseFromJSON;
|
|
19
|
+
exports.TagResponseFromJSONTyped = TagResponseFromJSONTyped;
|
|
20
|
+
exports.TagResponseToJSON = TagResponseToJSON;
|
|
21
|
+
exports.TagResponseToJSONTyped = TagResponseToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the TagResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfTagResponse(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('color' in value) || value['color'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function TagResponseFromJSON(json) {
|
|
41
|
+
return TagResponseFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function TagResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': json['id'],
|
|
49
|
+
'name': json['name'],
|
|
50
|
+
'color': json['color'],
|
|
51
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
52
|
+
'tenantId': json['tenant_id'],
|
|
53
|
+
'createdAt': (new Date(json['created_at'])),
|
|
54
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function TagResponseToJSON(json) {
|
|
58
|
+
return TagResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function TagResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'name': value['name'],
|
|
67
|
+
'color': value['color'],
|
|
68
|
+
'description': value['description'],
|
|
69
|
+
'tenant_id': value['tenantId'],
|
|
70
|
+
'created_at': value['createdAt'].toISOString(),
|
|
71
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
exports.TagResponsePropertyValidationAttributesMap = {};
|
|
@@ -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}
|
|
@@ -36,6 +36,8 @@ function instanceOfThreadMessageResponse(value) {
|
|
|
36
36
|
return false;
|
|
37
37
|
if (!('parentId' in value) || value['parentId'] === undefined)
|
|
38
38
|
return false;
|
|
39
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
40
|
+
return false;
|
|
39
41
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
40
42
|
return false;
|
|
41
43
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -58,6 +60,7 @@ function ThreadMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
58
60
|
'role': (0, MessageRole_1.MessageRoleFromJSON)(json['role']),
|
|
59
61
|
'content': json['content'],
|
|
60
62
|
'parentId': json['parent_id'],
|
|
63
|
+
'materializedPath': json['materialized_path'],
|
|
61
64
|
'tenantId': json['tenant_id'],
|
|
62
65
|
'createdAt': (new Date(json['created_at'])),
|
|
63
66
|
'updatedAt': (new Date(json['updated_at'])),
|
|
@@ -77,6 +80,7 @@ function ThreadMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
80
|
'role': (0, MessageRole_1.MessageRoleToJSON)(value['role']),
|
|
78
81
|
'content': value['content'],
|
|
79
82
|
'parent_id': value['parentId'],
|
|
83
|
+
'materialized_path': value['materializedPath'],
|
|
80
84
|
'tenant_id': value['tenantId'],
|
|
81
85
|
'created_at': value['createdAt'].toISOString(),
|
|
82
86
|
'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}
|
|
@@ -29,6 +29,8 @@ function instanceOfThreadResponse(value) {
|
|
|
29
29
|
return false;
|
|
30
30
|
if (!('title' in value) || value['title'] === undefined)
|
|
31
31
|
return false;
|
|
32
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined)
|
|
33
|
+
return false;
|
|
32
34
|
if (!('tenantId' in value) || value['tenantId'] === undefined)
|
|
33
35
|
return false;
|
|
34
36
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
@@ -49,6 +51,7 @@ function ThreadResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
51
|
'pathPartId': json['path_part_id'],
|
|
50
52
|
'title': json['title'],
|
|
51
53
|
'parentThreadId': json['parent_thread_id'] == null ? undefined : json['parent_thread_id'],
|
|
54
|
+
'materializedPath': json['materialized_path'],
|
|
52
55
|
'tenantId': json['tenant_id'],
|
|
53
56
|
'createdAt': (new Date(json['created_at'])),
|
|
54
57
|
'updatedAt': (new Date(json['updated_at'])),
|
|
@@ -66,6 +69,7 @@ function ThreadResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
69
|
'path_part_id': value['pathPartId'],
|
|
67
70
|
'title': value['title'],
|
|
68
71
|
'parent_thread_id': value['parentThreadId'],
|
|
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(),
|
|
@@ -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,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.UpdatePermissionRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfUpdatePermissionRequest = instanceOfUpdatePermissionRequest;
|
|
18
|
+
exports.UpdatePermissionRequestFromJSON = UpdatePermissionRequestFromJSON;
|
|
19
|
+
exports.UpdatePermissionRequestFromJSONTyped = UpdatePermissionRequestFromJSONTyped;
|
|
20
|
+
exports.UpdatePermissionRequestToJSON = UpdatePermissionRequestToJSON;
|
|
21
|
+
exports.UpdatePermissionRequestToJSONTyped = UpdatePermissionRequestToJSONTyped;
|
|
22
|
+
const PermissionCapability_1 = require("./PermissionCapability");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the UpdatePermissionRequest interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfUpdatePermissionRequest(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdatePermissionRequestFromJSON(json) {
|
|
30
|
+
return UpdatePermissionRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdatePermissionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'path': json['path'] == null ? undefined : json['path'],
|
|
38
|
+
'capability': json['capability'] == null ? undefined : (0, PermissionCapability_1.PermissionCapabilityFromJSON)(json['capability']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function UpdatePermissionRequestToJSON(json) {
|
|
42
|
+
return UpdatePermissionRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UpdatePermissionRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'path': value['path'],
|
|
50
|
+
'capability': (0, PermissionCapability_1.PermissionCapabilityToJSON)(value['capability']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.UpdatePermissionRequestPropertyValidationAttributesMap = {};
|