@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,83 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Request to attach/detach a tag to/from a path part.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TagPathPartRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface TagPathPartRequest {
|
|
22
|
+
/**
|
|
23
|
+
* PathPart ID to attach the tag to
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TagPathPartRequest
|
|
26
|
+
*/
|
|
27
|
+
pathPartId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the TagPathPartRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfTagPathPartRequest(value: object): value is TagPathPartRequest {
|
|
34
|
+
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function TagPathPartRequestFromJSON(json: any): TagPathPartRequest {
|
|
39
|
+
return TagPathPartRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function TagPathPartRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagPathPartRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'pathPartId': json['path_part_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function TagPathPartRequestToJSON(json: any): TagPathPartRequest {
|
|
53
|
+
return TagPathPartRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function TagPathPartRequestToJSONTyped(value?: TagPathPartRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'path_part_id': value['pathPartId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const TagPathPartRequestPropertyValidationAttributesMap: {
|
|
68
|
+
[property: string]: {
|
|
69
|
+
maxLength?: number,
|
|
70
|
+
minLength?: number,
|
|
71
|
+
pattern?: string,
|
|
72
|
+
maximum?: number,
|
|
73
|
+
exclusiveMaximum?: boolean,
|
|
74
|
+
minimum?: number,
|
|
75
|
+
exclusiveMinimum?: boolean,
|
|
76
|
+
multipleOf?: number,
|
|
77
|
+
maxItems?: number,
|
|
78
|
+
minItems?: number,
|
|
79
|
+
uniqueItems?: boolean
|
|
80
|
+
}
|
|
81
|
+
} = {
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Tag response model.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface TagResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface TagResponse {
|
|
22
|
+
/**
|
|
23
|
+
* Tag ID
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof TagResponse
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Tag name
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof TagResponse
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* Tag color hex
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof TagResponse
|
|
38
|
+
*/
|
|
39
|
+
color: string;
|
|
40
|
+
/**
|
|
41
|
+
* Tag description
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof TagResponse
|
|
44
|
+
*/
|
|
45
|
+
description?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Tenant ID
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof TagResponse
|
|
50
|
+
*/
|
|
51
|
+
tenantId: string;
|
|
52
|
+
/**
|
|
53
|
+
* Creation timestamp
|
|
54
|
+
* @type {Date}
|
|
55
|
+
* @memberof TagResponse
|
|
56
|
+
*/
|
|
57
|
+
createdAt: Date;
|
|
58
|
+
/**
|
|
59
|
+
* Last update timestamp
|
|
60
|
+
* @type {Date}
|
|
61
|
+
* @memberof TagResponse
|
|
62
|
+
*/
|
|
63
|
+
updatedAt: Date;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Check if a given object implements the TagResponse interface.
|
|
68
|
+
*/
|
|
69
|
+
export function instanceOfTagResponse(value: object): value is TagResponse {
|
|
70
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
72
|
+
if (!('color' in value) || value['color'] === undefined) return false;
|
|
73
|
+
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
74
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
75
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function TagResponseFromJSON(json: any): TagResponse {
|
|
80
|
+
return TagResponseFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function TagResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TagResponse {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'id': json['id'],
|
|
90
|
+
'name': json['name'],
|
|
91
|
+
'color': json['color'],
|
|
92
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
93
|
+
'tenantId': json['tenant_id'],
|
|
94
|
+
'createdAt': (new Date(json['created_at'])),
|
|
95
|
+
'updatedAt': (new Date(json['updated_at'])),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function TagResponseToJSON(json: any): TagResponse {
|
|
100
|
+
return TagResponseToJSONTyped(json, false);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function TagResponseToJSONTyped(value?: TagResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'id': value['id'],
|
|
111
|
+
'name': value['name'],
|
|
112
|
+
'color': value['color'],
|
|
113
|
+
'description': value['description'],
|
|
114
|
+
'tenant_id': value['tenantId'],
|
|
115
|
+
'created_at': value['createdAt'].toISOString(),
|
|
116
|
+
'updated_at': value['updatedAt'].toISOString(),
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export const TagResponsePropertyValidationAttributesMap: {
|
|
121
|
+
[property: string]: {
|
|
122
|
+
maxLength?: number,
|
|
123
|
+
minLength?: number,
|
|
124
|
+
pattern?: string,
|
|
125
|
+
maximum?: number,
|
|
126
|
+
exclusiveMaximum?: boolean,
|
|
127
|
+
minimum?: number,
|
|
128
|
+
exclusiveMinimum?: boolean,
|
|
129
|
+
multipleOf?: number,
|
|
130
|
+
maxItems?: number,
|
|
131
|
+
minItems?: number,
|
|
132
|
+
uniqueItems?: boolean
|
|
133
|
+
}
|
|
134
|
+
} = {
|
|
135
|
+
}
|
|
136
|
+
|
|
@@ -63,6 +63,12 @@ export interface ThreadMessageResponse {
|
|
|
63
63
|
* @memberof ThreadMessageResponse
|
|
64
64
|
*/
|
|
65
65
|
parentId: string;
|
|
66
|
+
/**
|
|
67
|
+
* Full materialized path from root
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ThreadMessageResponse
|
|
70
|
+
*/
|
|
71
|
+
materializedPath: string;
|
|
66
72
|
/**
|
|
67
73
|
* Tenant ID
|
|
68
74
|
* @type {string}
|
|
@@ -95,6 +101,7 @@ export function instanceOfThreadMessageResponse(value: object): value is ThreadM
|
|
|
95
101
|
if (!('role' in value) || value['role'] === undefined) return false;
|
|
96
102
|
if (!('content' in value) || value['content'] === undefined) return false;
|
|
97
103
|
if (!('parentId' in value) || value['parentId'] === undefined) return false;
|
|
104
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
98
105
|
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
99
106
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
100
107
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
@@ -117,6 +124,7 @@ export function ThreadMessageResponseFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
117
124
|
'role': MessageRoleFromJSON(json['role']),
|
|
118
125
|
'content': json['content'],
|
|
119
126
|
'parentId': json['parent_id'],
|
|
127
|
+
'materializedPath': json['materialized_path'],
|
|
120
128
|
'tenantId': json['tenant_id'],
|
|
121
129
|
'createdAt': (new Date(json['created_at'])),
|
|
122
130
|
'updatedAt': (new Date(json['updated_at'])),
|
|
@@ -140,6 +148,7 @@ export function ThreadMessageResponseToJSONTyped(value?: ThreadMessageResponse |
|
|
|
140
148
|
'role': MessageRoleToJSON(value['role']),
|
|
141
149
|
'content': value['content'],
|
|
142
150
|
'parent_id': value['parentId'],
|
|
151
|
+
'materialized_path': value['materializedPath'],
|
|
143
152
|
'tenant_id': value['tenantId'],
|
|
144
153
|
'created_at': value['createdAt'].toISOString(),
|
|
145
154
|
'updated_at': value['updatedAt'].toISOString(),
|
|
@@ -43,6 +43,12 @@ export interface ThreadResponse {
|
|
|
43
43
|
* @memberof ThreadResponse
|
|
44
44
|
*/
|
|
45
45
|
parentThreadId?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Full materialized path from root
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ThreadResponse
|
|
50
|
+
*/
|
|
51
|
+
materializedPath: string;
|
|
46
52
|
/**
|
|
47
53
|
* Tenant ID
|
|
48
54
|
* @type {string}
|
|
@@ -70,6 +76,7 @@ export function instanceOfThreadResponse(value: object): value is ThreadResponse
|
|
|
70
76
|
if (!('id' in value) || value['id'] === undefined) return false;
|
|
71
77
|
if (!('pathPartId' in value) || value['pathPartId'] === undefined) return false;
|
|
72
78
|
if (!('title' in value) || value['title'] === undefined) return false;
|
|
79
|
+
if (!('materializedPath' in value) || value['materializedPath'] === undefined) return false;
|
|
73
80
|
if (!('tenantId' in value) || value['tenantId'] === undefined) return false;
|
|
74
81
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
75
82
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
@@ -90,6 +97,7 @@ export function ThreadResponseFromJSONTyped(json: any, ignoreDiscriminator: bool
|
|
|
90
97
|
'pathPartId': json['path_part_id'],
|
|
91
98
|
'title': json['title'],
|
|
92
99
|
'parentThreadId': json['parent_thread_id'] == null ? undefined : json['parent_thread_id'],
|
|
100
|
+
'materializedPath': json['materialized_path'],
|
|
93
101
|
'tenantId': json['tenant_id'],
|
|
94
102
|
'createdAt': (new Date(json['created_at'])),
|
|
95
103
|
'updatedAt': (new Date(json['updated_at'])),
|
|
@@ -111,6 +119,7 @@ export function ThreadResponseToJSONTyped(value?: ThreadResponse | null, ignoreD
|
|
|
111
119
|
'path_part_id': value['pathPartId'],
|
|
112
120
|
'title': value['title'],
|
|
113
121
|
'parent_thread_id': value['parentThreadId'],
|
|
122
|
+
'materialized_path': value['materializedPath'],
|
|
114
123
|
'tenant_id': value['tenantId'],
|
|
115
124
|
'created_at': value['createdAt'].toISOString(),
|
|
116
125
|
'updated_at': value['updatedAt'].toISOString(),
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { PermissionCapability } from './PermissionCapability';
|
|
17
|
+
import {
|
|
18
|
+
PermissionCapabilityFromJSON,
|
|
19
|
+
PermissionCapabilityFromJSONTyped,
|
|
20
|
+
PermissionCapabilityToJSON,
|
|
21
|
+
PermissionCapabilityToJSONTyped,
|
|
22
|
+
} from './PermissionCapability';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdatePermissionRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdatePermissionRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdatePermissionRequest
|
|
34
|
+
*/
|
|
35
|
+
path?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {PermissionCapability}
|
|
39
|
+
* @memberof UpdatePermissionRequest
|
|
40
|
+
*/
|
|
41
|
+
capability?: PermissionCapability;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the UpdatePermissionRequest interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfUpdatePermissionRequest(value: object): value is UpdatePermissionRequest {
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function UpdatePermissionRequestFromJSON(json: any): UpdatePermissionRequest {
|
|
54
|
+
return UpdatePermissionRequestFromJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function UpdatePermissionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePermissionRequest {
|
|
58
|
+
if (json == null) {
|
|
59
|
+
return json;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'path': json['path'] == null ? undefined : json['path'],
|
|
64
|
+
'capability': json['capability'] == null ? undefined : PermissionCapabilityFromJSON(json['capability']),
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function UpdatePermissionRequestToJSON(json: any): UpdatePermissionRequest {
|
|
69
|
+
return UpdatePermissionRequestToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function UpdatePermissionRequestToJSONTyped(value?: UpdatePermissionRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'path': value['path'],
|
|
80
|
+
'capability': PermissionCapabilityToJSON(value['capability']),
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export const UpdatePermissionRequestPropertyValidationAttributesMap: {
|
|
85
|
+
[property: string]: {
|
|
86
|
+
maxLength?: number,
|
|
87
|
+
minLength?: number,
|
|
88
|
+
pattern?: string,
|
|
89
|
+
maximum?: number,
|
|
90
|
+
exclusiveMaximum?: boolean,
|
|
91
|
+
minimum?: number,
|
|
92
|
+
exclusiveMinimum?: boolean,
|
|
93
|
+
multipleOf?: number,
|
|
94
|
+
maxItems?: number,
|
|
95
|
+
minItems?: number,
|
|
96
|
+
uniqueItems?: boolean
|
|
97
|
+
}
|
|
98
|
+
} = {
|
|
99
|
+
}
|
|
100
|
+
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Request to update a tag.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateTagRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateTagRequest {
|
|
22
|
+
/**
|
|
23
|
+
* New tag name
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateTagRequest
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
* New tag color as 6-character hex string
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpdateTagRequest
|
|
32
|
+
*/
|
|
33
|
+
color?: string;
|
|
34
|
+
/**
|
|
35
|
+
* New tag description (empty string to clear)
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof UpdateTagRequest
|
|
38
|
+
*/
|
|
39
|
+
description?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the UpdateTagRequest interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfUpdateTagRequest(value: object): value is UpdateTagRequest {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function UpdateTagRequestFromJSON(json: any): UpdateTagRequest {
|
|
50
|
+
return UpdateTagRequestFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function UpdateTagRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTagRequest {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
60
|
+
'color': json['color'] == null ? undefined : json['color'],
|
|
61
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function UpdateTagRequestToJSON(json: any): UpdateTagRequest {
|
|
66
|
+
return UpdateTagRequestToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function UpdateTagRequestToJSONTyped(value?: UpdateTagRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'name': value['name'],
|
|
77
|
+
'color': value['color'],
|
|
78
|
+
'description': value['description'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const UpdateTagRequestPropertyValidationAttributesMap: {
|
|
83
|
+
[property: string]: {
|
|
84
|
+
maxLength?: number,
|
|
85
|
+
minLength?: number,
|
|
86
|
+
pattern?: string,
|
|
87
|
+
maximum?: number,
|
|
88
|
+
exclusiveMaximum?: boolean,
|
|
89
|
+
minimum?: number,
|
|
90
|
+
exclusiveMinimum?: boolean,
|
|
91
|
+
multipleOf?: number,
|
|
92
|
+
maxItems?: number,
|
|
93
|
+
minItems?: number,
|
|
94
|
+
uniqueItems?: boolean
|
|
95
|
+
}
|
|
96
|
+
} = {
|
|
97
|
+
name: {
|
|
98
|
+
maxLength: 100,
|
|
99
|
+
minLength: 1,
|
|
100
|
+
},
|
|
101
|
+
color: {
|
|
102
|
+
maxLength: 6,
|
|
103
|
+
minLength: 6,
|
|
104
|
+
pattern: '/^[0-9A-Fa-f]{6}$/',
|
|
105
|
+
},
|
|
106
|
+
description: {
|
|
107
|
+
maxLength: 500,
|
|
108
|
+
},
|
|
109
|
+
}
|
|
110
|
+
|
package/src/models/index.ts
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';
|