@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.
Files changed (43) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/dist/apis/TagsApi.d.ts +237 -0
  4. package/dist/apis/TagsApi.js +272 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/TagsApi.d.ts +237 -0
  8. package/dist/esm/apis/TagsApi.js +268 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/CreateTagRequest.d.ts +59 -0
  12. package/dist/esm/models/CreateTagRequest.js +61 -0
  13. package/dist/esm/models/PaginatedResponseTagResponse.d.ts +66 -0
  14. package/dist/esm/models/PaginatedResponseTagResponse.js +70 -0
  15. package/dist/esm/models/TagPathPartRequest.d.ts +47 -0
  16. package/dist/esm/models/TagPathPartRequest.js +44 -0
  17. package/dist/esm/models/TagResponse.d.ts +83 -0
  18. package/dist/esm/models/TagResponse.js +66 -0
  19. package/dist/esm/models/UpdateTagRequest.d.ts +59 -0
  20. package/dist/esm/models/UpdateTagRequest.js +59 -0
  21. package/dist/esm/models/index.d.ts +5 -0
  22. package/dist/esm/models/index.js +5 -0
  23. package/dist/models/CreateTagRequest.d.ts +59 -0
  24. package/dist/models/CreateTagRequest.js +69 -0
  25. package/dist/models/PaginatedResponseTagResponse.d.ts +66 -0
  26. package/dist/models/PaginatedResponseTagResponse.js +78 -0
  27. package/dist/models/TagPathPartRequest.d.ts +47 -0
  28. package/dist/models/TagPathPartRequest.js +52 -0
  29. package/dist/models/TagResponse.d.ts +83 -0
  30. package/dist/models/TagResponse.js +74 -0
  31. package/dist/models/UpdateTagRequest.d.ts +59 -0
  32. package/dist/models/UpdateTagRequest.js +67 -0
  33. package/dist/models/index.d.ts +5 -0
  34. package/dist/models/index.js +5 -0
  35. package/package.json +1 -1
  36. package/src/apis/TagsApi.ts +517 -0
  37. package/src/apis/index.ts +1 -0
  38. package/src/models/CreateTagRequest.ts +111 -0
  39. package/src/models/PaginatedResponseTagResponse.ts +130 -0
  40. package/src/models/TagPathPartRequest.ts +83 -0
  41. package/src/models/TagResponse.ts +136 -0
  42. package/src/models/UpdateTagRequest.ts +110 -0
  43. 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,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { TagResponseFromJSON, TagResponseToJSON, } from './TagResponse';
15
+ /**
16
+ * Check if a given object implements the PaginatedResponseTagResponse interface.
17
+ */
18
+ export function instanceOfPaginatedResponseTagResponse(value) {
19
+ if (!('items' in value) || value['items'] === undefined)
20
+ return false;
21
+ if (!('total' in value) || value['total'] === undefined)
22
+ return false;
23
+ if (!('limit' in value) || value['limit'] === undefined)
24
+ return false;
25
+ if (!('offset' in value) || value['offset'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function PaginatedResponseTagResponseFromJSON(json) {
30
+ return PaginatedResponseTagResponseFromJSONTyped(json, false);
31
+ }
32
+ export function PaginatedResponseTagResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'items': (json['items'].map(TagResponseFromJSON)),
38
+ 'total': json['total'],
39
+ 'limit': json['limit'],
40
+ 'offset': json['offset'],
41
+ };
42
+ }
43
+ export function PaginatedResponseTagResponseToJSON(json) {
44
+ return PaginatedResponseTagResponseToJSONTyped(json, false);
45
+ }
46
+ export function PaginatedResponseTagResponseToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'items': (value['items'].map(TagResponseToJSON)),
52
+ 'total': value['total'],
53
+ 'limit': value['limit'],
54
+ 'offset': value['offset'],
55
+ };
56
+ }
57
+ export const PaginatedResponseTagResponsePropertyValidationAttributesMap = {
58
+ total: {
59
+ minimum: 0,
60
+ exclusiveMinimum: false,
61
+ },
62
+ limit: {
63
+ minimum: 1,
64
+ exclusiveMinimum: false,
65
+ },
66
+ offset: {
67
+ minimum: 0,
68
+ exclusiveMinimum: false,
69
+ },
70
+ };
@@ -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,44 @@
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 TagPathPartRequest interface.
16
+ */
17
+ export function instanceOfTagPathPartRequest(value) {
18
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function TagPathPartRequestFromJSON(json) {
23
+ return TagPathPartRequestFromJSONTyped(json, false);
24
+ }
25
+ export function TagPathPartRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'pathPartId': json['path_part_id'],
31
+ };
32
+ }
33
+ export function TagPathPartRequestToJSON(json) {
34
+ return TagPathPartRequestToJSONTyped(json, false);
35
+ }
36
+ export function TagPathPartRequestToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'path_part_id': value['pathPartId'],
42
+ };
43
+ }
44
+ export const 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,66 @@
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 TagResponse interface.
16
+ */
17
+ export function instanceOfTagResponse(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('color' in value) || value['color'] === undefined)
23
+ return false;
24
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
25
+ return false;
26
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
27
+ return false;
28
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function TagResponseFromJSON(json) {
33
+ return TagResponseFromJSONTyped(json, false);
34
+ }
35
+ export function TagResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'],
41
+ 'name': json['name'],
42
+ 'color': json['color'],
43
+ 'description': json['description'] == null ? undefined : json['description'],
44
+ 'tenantId': json['tenant_id'],
45
+ 'createdAt': (new Date(json['created_at'])),
46
+ 'updatedAt': (new Date(json['updated_at'])),
47
+ };
48
+ }
49
+ export function TagResponseToJSON(json) {
50
+ return TagResponseToJSONTyped(json, false);
51
+ }
52
+ export function TagResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'name': value['name'],
59
+ 'color': value['color'],
60
+ 'description': value['description'],
61
+ 'tenant_id': value['tenantId'],
62
+ 'created_at': value['createdAt'].toISOString(),
63
+ 'updated_at': value['updatedAt'].toISOString(),
64
+ };
65
+ }
66
+ export const 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,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
+ };
@@ -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';
@@ -11,6 +11,7 @@ export * from './CreateDocumentRequest';
11
11
  export * from './CreateFolderRequest';
12
12
  export * from './CreatePasswordUserRequest';
13
13
  export * from './CreateSectionRequest';
14
+ export * from './CreateTagRequest';
14
15
  export * from './CreateTenantRequest';
15
16
  export * from './CreateThreadMessageRequest';
16
17
  export * from './CreateThreadRequest';
@@ -41,6 +42,7 @@ export * from './PaginatedResponseFolderDocumentResponse';
41
42
  export * from './PaginatedResponseFolderResponse';
42
43
  export * from './PaginatedResponseInviteResponse';
43
44
  export * from './PaginatedResponsePathPartResponse';
45
+ export * from './PaginatedResponseTagResponse';
44
46
  export * from './PaginatedResponseTenantResponse';
45
47
  export * from './PaginatedResponseTenantUserInTenantResponse';
46
48
  export * from './PaginatedResponseThreadMessageResponse';
@@ -55,6 +57,8 @@ export * from './PolygonReference';
55
57
  export * from './RootResponse';
56
58
  export * from './SectionResponse';
57
59
  export * from './SignInRequest';
60
+ export * from './TagPathPartRequest';
61
+ export * from './TagResponse';
58
62
  export * from './TenantResponse';
59
63
  export * from './TenantUserInTenantResponse';
60
64
  export * from './TenantUserRole';
@@ -65,6 +69,7 @@ export * from './UpdateChunkMetadataRequest';
65
69
  export * from './UpdateDocumentRequest';
66
70
  export * from './UpdateFolderRequest';
67
71
  export * from './UpdateSectionRequest';
72
+ export * from './UpdateTagRequest';
68
73
  export * from './UpdateTenantRequest';
69
74
  export * from './UpdateThreadRequest';
70
75
  export * from './UpdateUserRequest';
@@ -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
+ };
@@ -0,0 +1,69 @@
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.CreateTagRequestPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfCreateTagRequest = instanceOfCreateTagRequest;
18
+ exports.CreateTagRequestFromJSON = CreateTagRequestFromJSON;
19
+ exports.CreateTagRequestFromJSONTyped = CreateTagRequestFromJSONTyped;
20
+ exports.CreateTagRequestToJSON = CreateTagRequestToJSON;
21
+ exports.CreateTagRequestToJSONTyped = CreateTagRequestToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the CreateTagRequest interface.
24
+ */
25
+ function instanceOfCreateTagRequest(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function CreateTagRequestFromJSON(json) {
31
+ return CreateTagRequestFromJSONTyped(json, false);
32
+ }
33
+ function CreateTagRequestFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'color': json['color'] == null ? undefined : json['color'],
40
+ 'description': json['description'] == null ? undefined : json['description'],
41
+ };
42
+ }
43
+ function CreateTagRequestToJSON(json) {
44
+ return CreateTagRequestToJSONTyped(json, false);
45
+ }
46
+ function CreateTagRequestToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'name': value['name'],
52
+ 'color': value['color'],
53
+ 'description': value['description'],
54
+ };
55
+ }
56
+ exports.CreateTagRequestPropertyValidationAttributesMap = {
57
+ name: {
58
+ maxLength: 100,
59
+ minLength: 1,
60
+ },
61
+ color: {
62
+ maxLength: 6,
63
+ minLength: 6,
64
+ pattern: '/^[0-9A-Fa-f]{6}$/',
65
+ },
66
+ description: {
67
+ maxLength: 500,
68
+ },
69
+ };