@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.
Files changed (131) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +2 -2
  3. package/dist/apis/ChunksApi.js +1 -1
  4. package/dist/apis/TagsApi.d.ts +237 -0
  5. package/dist/apis/TagsApi.js +272 -0
  6. package/dist/apis/ThreadsApi.d.ts +4 -4
  7. package/dist/apis/ThreadsApi.js +2 -2
  8. package/dist/apis/UserPermissionsApi.d.ts +154 -0
  9. package/dist/apis/UserPermissionsApi.js +192 -0
  10. package/dist/apis/index.d.ts +2 -0
  11. package/dist/apis/index.js +2 -0
  12. package/dist/esm/apis/ChunksApi.js +1 -1
  13. package/dist/esm/apis/TagsApi.d.ts +237 -0
  14. package/dist/esm/apis/TagsApi.js +268 -0
  15. package/dist/esm/apis/ThreadsApi.d.ts +4 -4
  16. package/dist/esm/apis/ThreadsApi.js +2 -2
  17. package/dist/esm/apis/UserPermissionsApi.d.ts +154 -0
  18. package/dist/esm/apis/UserPermissionsApi.js +188 -0
  19. package/dist/esm/apis/index.d.ts +2 -0
  20. package/dist/esm/apis/index.js +2 -0
  21. package/dist/esm/models/ChunkResponse.d.ts +6 -0
  22. package/dist/esm/models/ChunkResponse.js +4 -0
  23. package/dist/esm/models/CreatePermissionRequest.d.ts +66 -0
  24. package/dist/esm/models/CreatePermissionRequest.js +57 -0
  25. package/dist/esm/models/CreateTagRequest.d.ts +59 -0
  26. package/dist/esm/models/CreateTagRequest.js +61 -0
  27. package/dist/esm/models/DocumentContentPathPart.d.ts +6 -0
  28. package/dist/esm/models/DocumentContentPathPart.js +4 -0
  29. package/dist/esm/models/DocumentResponse.d.ts +6 -0
  30. package/dist/esm/models/DocumentResponse.js +4 -0
  31. package/dist/esm/models/DocumentVersionResponse.d.ts +6 -0
  32. package/dist/esm/models/DocumentVersionResponse.js +4 -0
  33. package/dist/esm/models/FolderDocumentResponse.d.ts +6 -0
  34. package/dist/esm/models/FolderDocumentResponse.js +4 -0
  35. package/dist/esm/models/FolderResponse.d.ts +6 -0
  36. package/dist/esm/models/FolderResponse.js +4 -0
  37. package/dist/esm/models/PaginatedResponsePermissionResponse.d.ts +66 -0
  38. package/dist/esm/models/PaginatedResponsePermissionResponse.js +70 -0
  39. package/dist/esm/models/PaginatedResponseTagResponse.d.ts +66 -0
  40. package/dist/esm/models/PaginatedResponseTagResponse.js +70 -0
  41. package/dist/esm/models/PathPartResponse.d.ts +6 -0
  42. package/dist/esm/models/PathPartResponse.js +4 -0
  43. package/dist/esm/models/PermissionCapability.d.ts +25 -0
  44. package/dist/esm/models/PermissionCapability.js +43 -0
  45. package/dist/esm/models/PermissionResponse.d.ts +84 -0
  46. package/dist/esm/models/PermissionResponse.js +69 -0
  47. package/dist/esm/models/SectionResponse.d.ts +6 -0
  48. package/dist/esm/models/SectionResponse.js +4 -0
  49. package/dist/esm/models/TagPathPartRequest.d.ts +47 -0
  50. package/dist/esm/models/TagPathPartRequest.js +44 -0
  51. package/dist/esm/models/TagResponse.d.ts +83 -0
  52. package/dist/esm/models/TagResponse.js +66 -0
  53. package/dist/esm/models/ThreadMessageResponse.d.ts +6 -0
  54. package/dist/esm/models/ThreadMessageResponse.js +4 -0
  55. package/dist/esm/models/ThreadResponse.d.ts +6 -0
  56. package/dist/esm/models/ThreadResponse.js +4 -0
  57. package/dist/esm/models/UpdatePermissionRequest.d.ts +54 -0
  58. package/dist/esm/models/UpdatePermissionRequest.js +45 -0
  59. package/dist/esm/models/UpdateTagRequest.d.ts +59 -0
  60. package/dist/esm/models/UpdateTagRequest.js +59 -0
  61. package/dist/esm/models/index.d.ts +10 -0
  62. package/dist/esm/models/index.js +10 -0
  63. package/dist/models/ChunkResponse.d.ts +6 -0
  64. package/dist/models/ChunkResponse.js +4 -0
  65. package/dist/models/CreatePermissionRequest.d.ts +66 -0
  66. package/dist/models/CreatePermissionRequest.js +65 -0
  67. package/dist/models/CreateTagRequest.d.ts +59 -0
  68. package/dist/models/CreateTagRequest.js +69 -0
  69. package/dist/models/DocumentContentPathPart.d.ts +6 -0
  70. package/dist/models/DocumentContentPathPart.js +4 -0
  71. package/dist/models/DocumentResponse.d.ts +6 -0
  72. package/dist/models/DocumentResponse.js +4 -0
  73. package/dist/models/DocumentVersionResponse.d.ts +6 -0
  74. package/dist/models/DocumentVersionResponse.js +4 -0
  75. package/dist/models/FolderDocumentResponse.d.ts +6 -0
  76. package/dist/models/FolderDocumentResponse.js +4 -0
  77. package/dist/models/FolderResponse.d.ts +6 -0
  78. package/dist/models/FolderResponse.js +4 -0
  79. package/dist/models/PaginatedResponsePermissionResponse.d.ts +66 -0
  80. package/dist/models/PaginatedResponsePermissionResponse.js +78 -0
  81. package/dist/models/PaginatedResponseTagResponse.d.ts +66 -0
  82. package/dist/models/PaginatedResponseTagResponse.js +78 -0
  83. package/dist/models/PathPartResponse.d.ts +6 -0
  84. package/dist/models/PathPartResponse.js +4 -0
  85. package/dist/models/PermissionCapability.d.ts +25 -0
  86. package/dist/models/PermissionCapability.js +51 -0
  87. package/dist/models/PermissionResponse.d.ts +84 -0
  88. package/dist/models/PermissionResponse.js +77 -0
  89. package/dist/models/SectionResponse.d.ts +6 -0
  90. package/dist/models/SectionResponse.js +4 -0
  91. package/dist/models/TagPathPartRequest.d.ts +47 -0
  92. package/dist/models/TagPathPartRequest.js +52 -0
  93. package/dist/models/TagResponse.d.ts +83 -0
  94. package/dist/models/TagResponse.js +74 -0
  95. package/dist/models/ThreadMessageResponse.d.ts +6 -0
  96. package/dist/models/ThreadMessageResponse.js +4 -0
  97. package/dist/models/ThreadResponse.d.ts +6 -0
  98. package/dist/models/ThreadResponse.js +4 -0
  99. package/dist/models/UpdatePermissionRequest.d.ts +54 -0
  100. package/dist/models/UpdatePermissionRequest.js +53 -0
  101. package/dist/models/UpdateTagRequest.d.ts +59 -0
  102. package/dist/models/UpdateTagRequest.js +67 -0
  103. package/dist/models/index.d.ts +10 -0
  104. package/dist/models/index.js +10 -0
  105. package/package.json +1 -1
  106. package/src/apis/ChunksApi.ts +1 -1
  107. package/src/apis/TagsApi.ts +517 -0
  108. package/src/apis/ThreadsApi.ts +4 -4
  109. package/src/apis/UserPermissionsApi.ts +362 -0
  110. package/src/apis/index.ts +2 -0
  111. package/src/models/ChunkResponse.ts +9 -0
  112. package/src/models/CreatePermissionRequest.ts +120 -0
  113. package/src/models/CreateTagRequest.ts +111 -0
  114. package/src/models/DocumentContentPathPart.ts +9 -0
  115. package/src/models/DocumentResponse.ts +9 -0
  116. package/src/models/DocumentVersionResponse.ts +9 -0
  117. package/src/models/FolderDocumentResponse.ts +9 -0
  118. package/src/models/FolderResponse.ts +9 -0
  119. package/src/models/PaginatedResponsePermissionResponse.ts +130 -0
  120. package/src/models/PaginatedResponseTagResponse.ts +130 -0
  121. package/src/models/PathPartResponse.ts +9 -0
  122. package/src/models/PermissionCapability.ts +53 -0
  123. package/src/models/PermissionResponse.ts +147 -0
  124. package/src/models/SectionResponse.ts +9 -0
  125. package/src/models/TagPathPartRequest.ts +83 -0
  126. package/src/models/TagResponse.ts +136 -0
  127. package/src/models/ThreadMessageResponse.ts +9 -0
  128. package/src/models/ThreadResponse.ts +9 -0
  129. package/src/models/UpdatePermissionRequest.ts +100 -0
  130. package/src/models/UpdateTagRequest.ts +110 -0
  131. package/src/models/index.ts +10 -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
+ };
@@ -46,6 +46,12 @@ export interface PathPartResponse {
46
46
  * @memberof PathPartResponse
47
47
  */
48
48
  metadataObjId: string;
49
+ /**
50
+ * Full materialized path from root
51
+ * @type {string}
52
+ * @memberof PathPartResponse
53
+ */
54
+ materializedPath: string;
49
55
  /**
50
56
  * Creation timestamp
51
57
  * @type {Date}
@@ -26,6 +26,8 @@ export function instanceOfPathPartResponse(value) {
26
26
  return false;
27
27
  if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
28
28
  return false;
29
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
30
+ return false;
29
31
  if (!('createdAt' in value) || value['createdAt'] === undefined)
30
32
  return false;
31
33
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -45,6 +47,7 @@ export function PathPartResponseFromJSONTyped(json, ignoreDiscriminator) {
45
47
  'partType': PartTypeFromJSON(json['part_type']),
46
48
  'parentId': json['parent_id'],
47
49
  'metadataObjId': json['metadata_obj_id'],
50
+ 'materializedPath': json['materialized_path'],
48
51
  'createdAt': (new Date(json['created_at'])),
49
52
  'updatedAt': (new Date(json['updated_at'])),
50
53
  };
@@ -62,6 +65,7 @@ export function PathPartResponseToJSONTyped(value, ignoreDiscriminator = false)
62
65
  'part_type': PartTypeToJSON(value['partType']),
63
66
  'parent_id': value['parentId'],
64
67
  'metadata_obj_id': value['metadataObjId'],
68
+ 'materialized_path': value['materializedPath'],
65
69
  'created_at': value['createdAt'].toISOString(),
66
70
  'updated_at': value['updatedAt'].toISOString(),
67
71
  };
@@ -0,0 +1,25 @@
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
+ * Permission capability.
14
+ * @export
15
+ */
16
+ export declare const PermissionCapability: {
17
+ readonly ReadOnly: "READ_ONLY";
18
+ readonly ReadWrite: "READ_WRITE";
19
+ };
20
+ export type PermissionCapability = typeof PermissionCapability[keyof typeof PermissionCapability];
21
+ export declare function instanceOfPermissionCapability(value: any): boolean;
22
+ export declare function PermissionCapabilityFromJSON(json: any): PermissionCapability;
23
+ export declare function PermissionCapabilityFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermissionCapability;
24
+ export declare function PermissionCapabilityToJSON(value?: PermissionCapability | null): any;
25
+ export declare function PermissionCapabilityToJSONTyped(value: any, ignoreDiscriminator: boolean): PermissionCapability;
@@ -0,0 +1,43 @@
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
+ * Permission capability.
16
+ * @export
17
+ */
18
+ export const PermissionCapability = {
19
+ ReadOnly: 'READ_ONLY',
20
+ ReadWrite: 'READ_WRITE'
21
+ };
22
+ export function instanceOfPermissionCapability(value) {
23
+ for (const key in PermissionCapability) {
24
+ if (Object.prototype.hasOwnProperty.call(PermissionCapability, key)) {
25
+ if (PermissionCapability[key] === value) {
26
+ return true;
27
+ }
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+ export function PermissionCapabilityFromJSON(json) {
33
+ return PermissionCapabilityFromJSONTyped(json, false);
34
+ }
35
+ export function PermissionCapabilityFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ export function PermissionCapabilityToJSON(value) {
39
+ return value;
40
+ }
41
+ export function PermissionCapabilityToJSONTyped(value, ignoreDiscriminator) {
42
+ return value;
43
+ }
@@ -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,69 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { PermissionCapabilityFromJSON, PermissionCapabilityToJSON, } from './PermissionCapability';
15
+ /**
16
+ * Check if a given object implements the PermissionResponse interface.
17
+ */
18
+ export function instanceOfPermissionResponse(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('tenantId' in value) || value['tenantId'] === undefined)
22
+ return false;
23
+ if (!('userId' in value) || value['userId'] === undefined)
24
+ return false;
25
+ if (!('path' in value) || value['path'] === undefined)
26
+ return false;
27
+ if (!('capability' in value) || value['capability'] === undefined)
28
+ return false;
29
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
30
+ return false;
31
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ export function PermissionResponseFromJSON(json) {
36
+ return PermissionResponseFromJSONTyped(json, false);
37
+ }
38
+ export function PermissionResponseFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'tenantId': json['tenant_id'],
45
+ 'userId': json['user_id'],
46
+ 'path': json['path'],
47
+ 'capability': PermissionCapabilityFromJSON(json['capability']),
48
+ 'createdAt': (new Date(json['created_at'])),
49
+ 'updatedAt': (new Date(json['updated_at'])),
50
+ };
51
+ }
52
+ export function PermissionResponseToJSON(json) {
53
+ return PermissionResponseToJSONTyped(json, false);
54
+ }
55
+ export function PermissionResponseToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'id': value['id'],
61
+ 'tenant_id': value['tenantId'],
62
+ 'user_id': value['userId'],
63
+ 'path': value['path'],
64
+ 'capability': PermissionCapabilityToJSON(value['capability']),
65
+ 'created_at': value['createdAt'].toISOString(),
66
+ 'updated_at': value['updatedAt'].toISOString(),
67
+ };
68
+ }
69
+ export const 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}
@@ -23,6 +23,8 @@ export function instanceOfSectionResponse(value) {
23
23
  return false;
24
24
  if (!('parentId' in value) || value['parentId'] === undefined)
25
25
  return false;
26
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
27
+ return false;
26
28
  if (!('tenantId' in value) || value['tenantId'] === undefined)
27
29
  return false;
28
30
  if (!('createdAt' in value) || value['createdAt'] === undefined)
@@ -46,6 +48,7 @@ export function SectionResponseFromJSONTyped(json, ignoreDiscriminator) {
46
48
  'parentId': json['parent_id'],
47
49
  'prevSiblingPathId': json['prev_sibling_path_id'] == null ? undefined : json['prev_sibling_path_id'],
48
50
  'nextSiblingId': json['next_sibling_id'] == null ? undefined : json['next_sibling_id'],
51
+ 'materializedPath': json['materialized_path'],
49
52
  'tenantId': json['tenant_id'],
50
53
  'createdAt': (new Date(json['created_at'])),
51
54
  'updatedAt': (new Date(json['updated_at'])),
@@ -66,6 +69,7 @@ export function SectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
66
69
  'parent_id': value['parentId'],
67
70
  'prev_sibling_path_id': value['prevSiblingPathId'],
68
71
  'next_sibling_id': value['nextSiblingId'],
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,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 = {};