@knowledge-stack/ksapi 1.11.1 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -0
- package/README.md +2 -2
- package/dist/apis/TagsApi.d.ts +237 -0
- package/dist/apis/TagsApi.js +272 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/TagsApi.d.ts +237 -0
- package/dist/esm/apis/TagsApi.js +268 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/CreateTagRequest.d.ts +59 -0
- package/dist/esm/models/CreateTagRequest.js +61 -0
- package/dist/esm/models/PaginatedResponseTagResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseTagResponse.js +70 -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/UpdateTagRequest.d.ts +59 -0
- package/dist/esm/models/UpdateTagRequest.js +59 -0
- package/dist/esm/models/index.d.ts +5 -0
- package/dist/esm/models/index.js +5 -0
- package/dist/models/CreateTagRequest.d.ts +59 -0
- package/dist/models/CreateTagRequest.js +69 -0
- package/dist/models/PaginatedResponseTagResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseTagResponse.js +78 -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/UpdateTagRequest.d.ts +59 -0
- package/dist/models/UpdateTagRequest.js +67 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/apis/TagsApi.ts +517 -0
- package/src/apis/index.ts +1 -0
- package/src/models/CreateTagRequest.ts +111 -0
- package/src/models/PaginatedResponseTagResponse.ts +130 -0
- package/src/models/TagPathPartRequest.ts +83 -0
- package/src/models/TagResponse.ts +136 -0
- package/src/models/UpdateTagRequest.ts +110 -0
- package/src/models/index.ts +5 -0
|
@@ -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 { TagResponse } from './TagResponse';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PaginatedResponseTagResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface PaginatedResponseTagResponse {
|
|
19
|
+
/**
|
|
20
|
+
* List of items
|
|
21
|
+
* @type {Array<TagResponse>}
|
|
22
|
+
* @memberof PaginatedResponseTagResponse
|
|
23
|
+
*/
|
|
24
|
+
items: Array<TagResponse>;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of items
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof PaginatedResponseTagResponse
|
|
29
|
+
*/
|
|
30
|
+
total: number;
|
|
31
|
+
/**
|
|
32
|
+
* Number of items per page
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof PaginatedResponseTagResponse
|
|
35
|
+
*/
|
|
36
|
+
limit: number;
|
|
37
|
+
/**
|
|
38
|
+
* Number of items to skip
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PaginatedResponseTagResponse
|
|
41
|
+
*/
|
|
42
|
+
offset: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the PaginatedResponseTagResponse interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfPaginatedResponseTagResponse(value: object): value is PaginatedResponseTagResponse;
|
|
48
|
+
export declare function PaginatedResponseTagResponseFromJSON(json: any): PaginatedResponseTagResponse;
|
|
49
|
+
export declare function PaginatedResponseTagResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseTagResponse;
|
|
50
|
+
export declare function PaginatedResponseTagResponseToJSON(json: any): PaginatedResponseTagResponse;
|
|
51
|
+
export declare function PaginatedResponseTagResponseToJSONTyped(value?: PaginatedResponseTagResponse | null, ignoreDiscriminator?: boolean): any;
|
|
52
|
+
export declare const PaginatedResponseTagResponsePropertyValidationAttributesMap: {
|
|
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,78 @@
|
|
|
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.PaginatedResponseTagResponsePropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfPaginatedResponseTagResponse = instanceOfPaginatedResponseTagResponse;
|
|
18
|
+
exports.PaginatedResponseTagResponseFromJSON = PaginatedResponseTagResponseFromJSON;
|
|
19
|
+
exports.PaginatedResponseTagResponseFromJSONTyped = PaginatedResponseTagResponseFromJSONTyped;
|
|
20
|
+
exports.PaginatedResponseTagResponseToJSON = PaginatedResponseTagResponseToJSON;
|
|
21
|
+
exports.PaginatedResponseTagResponseToJSONTyped = PaginatedResponseTagResponseToJSONTyped;
|
|
22
|
+
const TagResponse_1 = require("./TagResponse");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PaginatedResponseTagResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPaginatedResponseTagResponse(value) {
|
|
27
|
+
if (!('items' in value) || value['items'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('limit' in value) || value['limit'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('offset' in value) || value['offset'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function PaginatedResponseTagResponseFromJSON(json) {
|
|
38
|
+
return PaginatedResponseTagResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function PaginatedResponseTagResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'items': (json['items'].map(TagResponse_1.TagResponseFromJSON)),
|
|
46
|
+
'total': json['total'],
|
|
47
|
+
'limit': json['limit'],
|
|
48
|
+
'offset': json['offset'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function PaginatedResponseTagResponseToJSON(json) {
|
|
52
|
+
return PaginatedResponseTagResponseToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function PaginatedResponseTagResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'items': (value['items'].map(TagResponse_1.TagResponseToJSON)),
|
|
60
|
+
'total': value['total'],
|
|
61
|
+
'limit': value['limit'],
|
|
62
|
+
'offset': value['offset'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
exports.PaginatedResponseTagResponsePropertyValidationAttributesMap = {
|
|
66
|
+
total: {
|
|
67
|
+
minimum: 0,
|
|
68
|
+
exclusiveMinimum: false,
|
|
69
|
+
},
|
|
70
|
+
limit: {
|
|
71
|
+
minimum: 1,
|
|
72
|
+
exclusiveMinimum: false,
|
|
73
|
+
},
|
|
74
|
+
offset: {
|
|
75
|
+
minimum: 0,
|
|
76
|
+
exclusiveMinimum: false,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
@@ -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 = {};
|
|
@@ -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,67 @@
|
|
|
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.UpdateTagRequestPropertyValidationAttributesMap = void 0;
|
|
17
|
+
exports.instanceOfUpdateTagRequest = instanceOfUpdateTagRequest;
|
|
18
|
+
exports.UpdateTagRequestFromJSON = UpdateTagRequestFromJSON;
|
|
19
|
+
exports.UpdateTagRequestFromJSONTyped = UpdateTagRequestFromJSONTyped;
|
|
20
|
+
exports.UpdateTagRequestToJSON = UpdateTagRequestToJSON;
|
|
21
|
+
exports.UpdateTagRequestToJSONTyped = UpdateTagRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the UpdateTagRequest interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfUpdateTagRequest(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function UpdateTagRequestFromJSON(json) {
|
|
29
|
+
return UpdateTagRequestFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function UpdateTagRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
37
|
+
'color': json['color'] == null ? undefined : json['color'],
|
|
38
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function UpdateTagRequestToJSON(json) {
|
|
42
|
+
return UpdateTagRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UpdateTagRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'color': value['color'],
|
|
51
|
+
'description': value['description'],
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
exports.UpdateTagRequestPropertyValidationAttributesMap = {
|
|
55
|
+
name: {
|
|
56
|
+
maxLength: 100,
|
|
57
|
+
minLength: 1,
|
|
58
|
+
},
|
|
59
|
+
color: {
|
|
60
|
+
maxLength: 6,
|
|
61
|
+
minLength: 6,
|
|
62
|
+
pattern: '/^[0-9A-Fa-f]{6}$/',
|
|
63
|
+
},
|
|
64
|
+
description: {
|
|
65
|
+
maxLength: 500,
|
|
66
|
+
},
|
|
67
|
+
};
|
package/dist/models/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './CreateDocumentRequest';
|
|
|
9
9
|
export * from './CreateFolderRequest';
|
|
10
10
|
export * from './CreatePasswordUserRequest';
|
|
11
11
|
export * from './CreateSectionRequest';
|
|
12
|
+
export * from './CreateTagRequest';
|
|
12
13
|
export * from './CreateTenantRequest';
|
|
13
14
|
export * from './CreateThreadMessageRequest';
|
|
14
15
|
export * from './CreateThreadRequest';
|
|
@@ -39,6 +40,7 @@ export * from './PaginatedResponseFolderDocumentResponse';
|
|
|
39
40
|
export * from './PaginatedResponseFolderResponse';
|
|
40
41
|
export * from './PaginatedResponseInviteResponse';
|
|
41
42
|
export * from './PaginatedResponsePathPartResponse';
|
|
43
|
+
export * from './PaginatedResponseTagResponse';
|
|
42
44
|
export * from './PaginatedResponseTenantResponse';
|
|
43
45
|
export * from './PaginatedResponseTenantUserInTenantResponse';
|
|
44
46
|
export * from './PaginatedResponseThreadMessageResponse';
|
|
@@ -53,6 +55,8 @@ export * from './PolygonReference';
|
|
|
53
55
|
export * from './RootResponse';
|
|
54
56
|
export * from './SectionResponse';
|
|
55
57
|
export * from './SignInRequest';
|
|
58
|
+
export * from './TagPathPartRequest';
|
|
59
|
+
export * from './TagResponse';
|
|
56
60
|
export * from './TenantResponse';
|
|
57
61
|
export * from './TenantUserInTenantResponse';
|
|
58
62
|
export * from './TenantUserRole';
|
|
@@ -63,6 +67,7 @@ export * from './UpdateChunkMetadataRequest';
|
|
|
63
67
|
export * from './UpdateDocumentRequest';
|
|
64
68
|
export * from './UpdateFolderRequest';
|
|
65
69
|
export * from './UpdateSectionRequest';
|
|
70
|
+
export * from './UpdateTagRequest';
|
|
66
71
|
export * from './UpdateTenantRequest';
|
|
67
72
|
export * from './UpdateThreadRequest';
|
|
68
73
|
export * from './UpdateUserRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -27,6 +27,7 @@ __exportStar(require("./CreateDocumentRequest"), exports);
|
|
|
27
27
|
__exportStar(require("./CreateFolderRequest"), exports);
|
|
28
28
|
__exportStar(require("./CreatePasswordUserRequest"), exports);
|
|
29
29
|
__exportStar(require("./CreateSectionRequest"), exports);
|
|
30
|
+
__exportStar(require("./CreateTagRequest"), exports);
|
|
30
31
|
__exportStar(require("./CreateTenantRequest"), exports);
|
|
31
32
|
__exportStar(require("./CreateThreadMessageRequest"), exports);
|
|
32
33
|
__exportStar(require("./CreateThreadRequest"), exports);
|
|
@@ -57,6 +58,7 @@ __exportStar(require("./PaginatedResponseFolderDocumentResponse"), exports);
|
|
|
57
58
|
__exportStar(require("./PaginatedResponseFolderResponse"), exports);
|
|
58
59
|
__exportStar(require("./PaginatedResponseInviteResponse"), exports);
|
|
59
60
|
__exportStar(require("./PaginatedResponsePathPartResponse"), exports);
|
|
61
|
+
__exportStar(require("./PaginatedResponseTagResponse"), exports);
|
|
60
62
|
__exportStar(require("./PaginatedResponseTenantResponse"), exports);
|
|
61
63
|
__exportStar(require("./PaginatedResponseTenantUserInTenantResponse"), exports);
|
|
62
64
|
__exportStar(require("./PaginatedResponseThreadMessageResponse"), exports);
|
|
@@ -71,6 +73,8 @@ __exportStar(require("./PolygonReference"), exports);
|
|
|
71
73
|
__exportStar(require("./RootResponse"), exports);
|
|
72
74
|
__exportStar(require("./SectionResponse"), exports);
|
|
73
75
|
__exportStar(require("./SignInRequest"), exports);
|
|
76
|
+
__exportStar(require("./TagPathPartRequest"), exports);
|
|
77
|
+
__exportStar(require("./TagResponse"), exports);
|
|
74
78
|
__exportStar(require("./TenantResponse"), exports);
|
|
75
79
|
__exportStar(require("./TenantUserInTenantResponse"), exports);
|
|
76
80
|
__exportStar(require("./TenantUserRole"), exports);
|
|
@@ -81,6 +85,7 @@ __exportStar(require("./UpdateChunkMetadataRequest"), exports);
|
|
|
81
85
|
__exportStar(require("./UpdateDocumentRequest"), exports);
|
|
82
86
|
__exportStar(require("./UpdateFolderRequest"), exports);
|
|
83
87
|
__exportStar(require("./UpdateSectionRequest"), exports);
|
|
88
|
+
__exportStar(require("./UpdateTagRequest"), exports);
|
|
84
89
|
__exportStar(require("./UpdateTenantRequest"), exports);
|
|
85
90
|
__exportStar(require("./UpdateThreadRequest"), exports);
|
|
86
91
|
__exportStar(require("./UpdateUserRequest"), exports);
|