@knowledge-stack/ksapi 1.20.0 → 1.21.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 (240) hide show
  1. package/.openapi-generator/FILES +3 -2
  2. package/README.md +2 -2
  3. package/dist/apis/AuthApi.d.ts +9 -9
  4. package/dist/apis/ChunkLineagesApi.d.ts +3 -3
  5. package/dist/apis/ChunksApi.d.ts +6 -6
  6. package/dist/apis/DocumentVersionsApi.d.ts +8 -8
  7. package/dist/apis/DocumentsApi.d.ts +12 -12
  8. package/dist/apis/DocumentsApi.js +2 -2
  9. package/dist/apis/FoldersApi.d.ts +17 -15
  10. package/dist/apis/FoldersApi.js +7 -4
  11. package/dist/apis/InvitesApi.d.ts +5 -5
  12. package/dist/apis/PathPartsApi.d.ts +70 -8
  13. package/dist/apis/PathPartsApi.js +76 -2
  14. package/dist/apis/SectionsApi.d.ts +4 -4
  15. package/dist/apis/TagsApi.d.ts +6 -68
  16. package/dist/apis/TagsApi.js +0 -72
  17. package/dist/apis/TenantsApi.d.ts +6 -6
  18. package/dist/apis/ThreadMessagesApi.d.ts +4 -4
  19. package/dist/apis/ThreadsApi.d.ts +6 -6
  20. package/dist/apis/UserPermissionsApi.d.ts +4 -4
  21. package/dist/apis/UsersApi.d.ts +2 -2
  22. package/dist/apis/WorkflowsApi.d.ts +3 -3
  23. package/dist/esm/apis/AuthApi.d.ts +9 -9
  24. package/dist/esm/apis/ChunkLineagesApi.d.ts +3 -3
  25. package/dist/esm/apis/ChunksApi.d.ts +6 -6
  26. package/dist/esm/apis/DocumentVersionsApi.d.ts +8 -8
  27. package/dist/esm/apis/DocumentsApi.d.ts +12 -12
  28. package/dist/esm/apis/DocumentsApi.js +2 -2
  29. package/dist/esm/apis/FoldersApi.d.ts +17 -15
  30. package/dist/esm/apis/FoldersApi.js +7 -4
  31. package/dist/esm/apis/InvitesApi.d.ts +5 -5
  32. package/dist/esm/apis/PathPartsApi.d.ts +70 -8
  33. package/dist/esm/apis/PathPartsApi.js +77 -3
  34. package/dist/esm/apis/SectionsApi.d.ts +4 -4
  35. package/dist/esm/apis/TagsApi.d.ts +6 -68
  36. package/dist/esm/apis/TagsApi.js +1 -73
  37. package/dist/esm/apis/TenantsApi.d.ts +6 -6
  38. package/dist/esm/apis/ThreadMessagesApi.d.ts +4 -4
  39. package/dist/esm/apis/ThreadsApi.d.ts +6 -6
  40. package/dist/esm/apis/UserPermissionsApi.d.ts +4 -4
  41. package/dist/esm/apis/UsersApi.d.ts +2 -2
  42. package/dist/esm/apis/WorkflowsApi.d.ts +3 -3
  43. package/dist/esm/models/BulkTagRequest.d.ts +47 -0
  44. package/dist/esm/models/BulkTagRequest.js +49 -0
  45. package/dist/esm/models/ChunkMetadataInput.d.ts +1 -1
  46. package/dist/esm/models/ChunkMetadataOutput.d.ts +1 -1
  47. package/dist/esm/models/ChunkResponse.d.ts +4 -4
  48. package/dist/esm/models/ChunkSearchRequest.d.ts +5 -9
  49. package/dist/esm/models/ChunkSearchRequest.js +0 -1
  50. package/dist/esm/models/CreateChunkRequest.d.ts +3 -3
  51. package/dist/esm/models/CreateDocumentRequest.d.ts +2 -2
  52. package/dist/esm/models/CreateSectionRequest.d.ts +2 -2
  53. package/dist/esm/models/CreateTagRequest.d.ts +1 -1
  54. package/dist/esm/models/CreateTenantRequest.d.ts +1 -1
  55. package/dist/esm/models/CreateThreadMessageRequest.d.ts +5 -7
  56. package/dist/esm/models/CreateThreadMessageRequest.js +0 -1
  57. package/dist/esm/models/CreateThreadRequest.d.ts +1 -1
  58. package/dist/esm/models/DocumentContentPathPart.d.ts +5 -5
  59. package/dist/esm/models/DocumentResponse.d.ts +4 -4
  60. package/dist/esm/models/DocumentVersionMetadata.d.ts +12 -7
  61. package/dist/esm/models/DocumentVersionMetadata.js +3 -18
  62. package/dist/esm/models/DocumentVersionMetadataUpdate.d.ts +6 -6
  63. package/dist/esm/models/DocumentVersionResponse.d.ts +3 -3
  64. package/dist/esm/models/FolderDocumentResponse.d.ts +16 -9
  65. package/dist/esm/models/FolderDocumentResponse.js +3 -0
  66. package/dist/esm/models/FolderResponse.d.ts +1 -1
  67. package/dist/esm/models/InviteResponse.d.ts +2 -2
  68. package/dist/esm/models/LineageNodeResponse.d.ts +2 -2
  69. package/dist/esm/models/LocationInner.d.ts +41 -0
  70. package/dist/esm/models/LocationInner.js +32 -0
  71. package/dist/esm/models/OAuth2Config.d.ts +5 -0
  72. package/dist/esm/models/OAuth2Config.js +3 -12
  73. package/dist/esm/models/PathPartResponse.d.ts +10 -3
  74. package/dist/esm/models/PathPartResponse.js +3 -0
  75. package/dist/esm/models/PathPartTagsResponse.d.ts +48 -0
  76. package/dist/esm/models/PathPartTagsResponse.js +45 -0
  77. package/dist/esm/models/PipelineState.d.ts +5 -5
  78. package/dist/esm/models/PolygonReference.d.ts +1 -1
  79. package/dist/esm/models/ScoredChunkResponse.d.ts +4 -4
  80. package/dist/esm/models/SectionResponse.d.ts +3 -3
  81. package/dist/esm/models/SignInRequest.d.ts +1 -1
  82. package/dist/esm/models/TagResponse.d.ts +1 -1
  83. package/dist/esm/models/TenantResponse.d.ts +1 -1
  84. package/dist/esm/models/TenantUserInTenantResponse.d.ts +2 -2
  85. package/dist/esm/models/ThreadMessageResponse.d.ts +5 -7
  86. package/dist/esm/models/ThreadMessageResponse.js +0 -1
  87. package/dist/esm/models/ThreadResponse.d.ts +1 -1
  88. package/dist/esm/models/UpdateChunkContentRequest.d.ts +1 -1
  89. package/dist/esm/models/UpdateChunkMetadataRequest.d.ts +1 -1
  90. package/dist/esm/models/UpdateDocumentRequest.d.ts +3 -3
  91. package/dist/esm/models/UpdateFolderRequest.d.ts +2 -2
  92. package/dist/esm/models/UpdatePermissionRequest.d.ts +1 -1
  93. package/dist/esm/models/UpdateSectionRequest.d.ts +3 -3
  94. package/dist/esm/models/UpdateTagRequest.d.ts +3 -3
  95. package/dist/esm/models/UpdateTenantRequest.d.ts +2 -2
  96. package/dist/esm/models/UpdateThreadRequest.d.ts +2 -2
  97. package/dist/esm/models/UserResponse.d.ts +3 -3
  98. package/dist/esm/models/ValidationError.d.ts +3 -3
  99. package/dist/esm/models/ValidationError.js +3 -3
  100. package/dist/esm/models/WorkflowDetailResponse.d.ts +4 -4
  101. package/dist/esm/models/WorkflowSummaryResponse.d.ts +2 -2
  102. package/dist/esm/models/index.d.ts +3 -2
  103. package/dist/esm/models/index.js +3 -2
  104. package/dist/models/BulkTagRequest.d.ts +47 -0
  105. package/dist/models/BulkTagRequest.js +57 -0
  106. package/dist/models/ChunkMetadataInput.d.ts +1 -1
  107. package/dist/models/ChunkMetadataOutput.d.ts +1 -1
  108. package/dist/models/ChunkResponse.d.ts +4 -4
  109. package/dist/models/ChunkSearchRequest.d.ts +5 -9
  110. package/dist/models/ChunkSearchRequest.js +1 -2
  111. package/dist/models/CreateChunkRequest.d.ts +3 -3
  112. package/dist/models/CreateDocumentRequest.d.ts +2 -2
  113. package/dist/models/CreateSectionRequest.d.ts +2 -2
  114. package/dist/models/CreateTagRequest.d.ts +1 -1
  115. package/dist/models/CreateTenantRequest.d.ts +1 -1
  116. package/dist/models/CreateThreadMessageRequest.d.ts +5 -7
  117. package/dist/models/CreateThreadMessageRequest.js +1 -2
  118. package/dist/models/CreateThreadRequest.d.ts +1 -1
  119. package/dist/models/DocumentContentPathPart.d.ts +5 -5
  120. package/dist/models/DocumentResponse.d.ts +4 -4
  121. package/dist/models/DocumentVersionMetadata.d.ts +12 -7
  122. package/dist/models/DocumentVersionMetadata.js +4 -19
  123. package/dist/models/DocumentVersionMetadataUpdate.d.ts +6 -6
  124. package/dist/models/DocumentVersionResponse.d.ts +3 -3
  125. package/dist/models/FolderDocumentResponse.d.ts +16 -9
  126. package/dist/models/FolderDocumentResponse.js +3 -0
  127. package/dist/models/FolderResponse.d.ts +1 -1
  128. package/dist/models/InviteResponse.d.ts +2 -2
  129. package/dist/models/LineageNodeResponse.d.ts +2 -2
  130. package/dist/models/LocationInner.d.ts +41 -0
  131. package/dist/models/LocationInner.js +40 -0
  132. package/dist/models/OAuth2Config.d.ts +5 -0
  133. package/dist/models/OAuth2Config.js +4 -13
  134. package/dist/models/PathPartResponse.d.ts +10 -3
  135. package/dist/models/PathPartResponse.js +3 -0
  136. package/dist/models/PathPartTagsResponse.d.ts +48 -0
  137. package/dist/models/PathPartTagsResponse.js +53 -0
  138. package/dist/models/PipelineState.d.ts +5 -5
  139. package/dist/models/PolygonReference.d.ts +1 -1
  140. package/dist/models/ScoredChunkResponse.d.ts +4 -4
  141. package/dist/models/SectionResponse.d.ts +3 -3
  142. package/dist/models/SignInRequest.d.ts +1 -1
  143. package/dist/models/TagResponse.d.ts +1 -1
  144. package/dist/models/TenantResponse.d.ts +1 -1
  145. package/dist/models/TenantUserInTenantResponse.d.ts +2 -2
  146. package/dist/models/ThreadMessageResponse.d.ts +5 -7
  147. package/dist/models/ThreadMessageResponse.js +1 -2
  148. package/dist/models/ThreadResponse.d.ts +1 -1
  149. package/dist/models/UpdateChunkContentRequest.d.ts +1 -1
  150. package/dist/models/UpdateChunkMetadataRequest.d.ts +1 -1
  151. package/dist/models/UpdateDocumentRequest.d.ts +3 -3
  152. package/dist/models/UpdateFolderRequest.d.ts +2 -2
  153. package/dist/models/UpdatePermissionRequest.d.ts +1 -1
  154. package/dist/models/UpdateSectionRequest.d.ts +3 -3
  155. package/dist/models/UpdateTagRequest.d.ts +3 -3
  156. package/dist/models/UpdateTenantRequest.d.ts +2 -2
  157. package/dist/models/UpdateThreadRequest.d.ts +2 -2
  158. package/dist/models/UserResponse.d.ts +3 -3
  159. package/dist/models/ValidationError.d.ts +3 -3
  160. package/dist/models/ValidationError.js +3 -3
  161. package/dist/models/WorkflowDetailResponse.d.ts +4 -4
  162. package/dist/models/WorkflowSummaryResponse.d.ts +2 -2
  163. package/dist/models/index.d.ts +3 -2
  164. package/dist/models/index.js +3 -2
  165. package/package.json +1 -1
  166. package/src/apis/AuthApi.ts +9 -9
  167. package/src/apis/ChunkLineagesApi.ts +3 -3
  168. package/src/apis/ChunksApi.ts +6 -6
  169. package/src/apis/DocumentVersionsApi.ts +8 -8
  170. package/src/apis/DocumentsApi.ts +12 -12
  171. package/src/apis/FoldersApi.ts +21 -15
  172. package/src/apis/InvitesApi.ts +5 -5
  173. package/src/apis/PathPartsApi.ts +159 -7
  174. package/src/apis/SectionsApi.ts +4 -4
  175. package/src/apis/TagsApi.ts +5 -151
  176. package/src/apis/TenantsApi.ts +6 -6
  177. package/src/apis/ThreadMessagesApi.ts +4 -4
  178. package/src/apis/ThreadsApi.ts +6 -6
  179. package/src/apis/UserPermissionsApi.ts +4 -4
  180. package/src/apis/UsersApi.ts +2 -2
  181. package/src/apis/WorkflowsApi.ts +3 -3
  182. package/src/models/BulkTagRequest.ts +87 -0
  183. package/src/models/ChunkMetadataInput.ts +1 -1
  184. package/src/models/ChunkMetadataOutput.ts +1 -1
  185. package/src/models/ChunkResponse.ts +4 -4
  186. package/src/models/ChunkSearchRequest.ts +5 -8
  187. package/src/models/CreateChunkRequest.ts +3 -3
  188. package/src/models/CreateDocumentRequest.ts +2 -2
  189. package/src/models/CreateSectionRequest.ts +2 -2
  190. package/src/models/CreateTagRequest.ts +1 -1
  191. package/src/models/CreateTenantRequest.ts +1 -1
  192. package/src/models/CreateThreadMessageRequest.ts +3 -6
  193. package/src/models/CreateThreadRequest.ts +1 -1
  194. package/src/models/DocumentContentPathPart.ts +5 -5
  195. package/src/models/DocumentResponse.ts +4 -4
  196. package/src/models/DocumentVersionMetadata.ts +13 -7
  197. package/src/models/DocumentVersionMetadataUpdate.ts +6 -6
  198. package/src/models/DocumentVersionResponse.ts +3 -3
  199. package/src/models/FolderDocumentResponse.ts +24 -9
  200. package/src/models/FolderResponse.ts +1 -1
  201. package/src/models/InviteResponse.ts +2 -2
  202. package/src/models/LineageNodeResponse.ts +2 -2
  203. package/src/models/LocationInner.ts +63 -0
  204. package/src/models/OAuth2Config.ts +6 -0
  205. package/src/models/PathPartResponse.ts +18 -3
  206. package/src/models/PathPartTagsResponse.ts +91 -0
  207. package/src/models/PipelineState.ts +5 -5
  208. package/src/models/PolygonReference.ts +1 -1
  209. package/src/models/ScoredChunkResponse.ts +4 -4
  210. package/src/models/SectionResponse.ts +3 -3
  211. package/src/models/SignInRequest.ts +1 -1
  212. package/src/models/TagResponse.ts +1 -1
  213. package/src/models/TenantResponse.ts +1 -1
  214. package/src/models/TenantUserInTenantResponse.ts +2 -2
  215. package/src/models/ThreadMessageResponse.ts +3 -6
  216. package/src/models/ThreadResponse.ts +1 -1
  217. package/src/models/UpdateChunkContentRequest.ts +1 -1
  218. package/src/models/UpdateChunkMetadataRequest.ts +1 -1
  219. package/src/models/UpdateDocumentRequest.ts +3 -3
  220. package/src/models/UpdateFolderRequest.ts +2 -2
  221. package/src/models/UpdatePermissionRequest.ts +1 -1
  222. package/src/models/UpdateSectionRequest.ts +3 -3
  223. package/src/models/UpdateTagRequest.ts +3 -3
  224. package/src/models/UpdateTenantRequest.ts +2 -2
  225. package/src/models/UpdateThreadRequest.ts +2 -2
  226. package/src/models/UserResponse.ts +3 -3
  227. package/src/models/ValidationError.ts +10 -10
  228. package/src/models/WorkflowDetailResponse.ts +4 -4
  229. package/src/models/WorkflowSummaryResponse.ts +2 -2
  230. package/src/models/index.ts +3 -2
  231. package/dist/esm/models/TagPathPartRequest.d.ts +0 -47
  232. package/dist/esm/models/TagPathPartRequest.js +0 -44
  233. package/dist/esm/models/ValidationErrorLocInner.d.ts +0 -41
  234. package/dist/esm/models/ValidationErrorLocInner.js +0 -32
  235. package/dist/models/TagPathPartRequest.d.ts +0 -47
  236. package/dist/models/TagPathPartRequest.js +0 -52
  237. package/dist/models/ValidationErrorLocInner.d.ts +0 -41
  238. package/dist/models/ValidationErrorLocInner.js +0 -40
  239. package/src/models/TagPathPartRequest.ts +0 -83
  240. package/src/models/ValidationErrorLocInner.ts +0 -63
@@ -15,6 +15,7 @@
15
15
  * @interface OAuth2Config
16
16
  */
17
17
  export interface OAuth2Config {
18
+ [key: string]: any | any;
18
19
  /**
19
20
  * OAuth2 client ID
20
21
  * @type {string}
@@ -63,3 +64,7 @@ export declare const OAuth2ConfigPropertyValidationAttributesMap: {
63
64
  uniqueItems?: boolean;
64
65
  };
65
66
  };
67
+ export declare const OAuth2ConfigAdditionalPropertiesValidationAttributes: {
68
+ maxProperties?: number;
69
+ minProperties?: number;
70
+ };
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.OAuth2ConfigPropertyValidationAttributesMap = void 0;
16
+ exports.OAuth2ConfigAdditionalPropertiesValidationAttributes = exports.OAuth2ConfigPropertyValidationAttributesMap = void 0;
17
17
  exports.instanceOfOAuth2Config = instanceOfOAuth2Config;
18
18
  exports.OAuth2ConfigFromJSON = OAuth2ConfigFromJSON;
19
19
  exports.OAuth2ConfigFromJSONTyped = OAuth2ConfigFromJSONTyped;
@@ -40,12 +40,7 @@ function OAuth2ConfigFromJSONTyped(json, ignoreDiscriminator) {
40
40
  if (json == null) {
41
41
  return json;
42
42
  }
43
- return {
44
- 'clientId': json['client_id'],
45
- 'clientSecret': json['client_secret'],
46
- 'serverMetadataUrl': json['server_metadata_url'],
47
- 'scope': json['scope'],
48
- };
43
+ return Object.assign(Object.assign({}, json), { 'clientId': json['client_id'], 'clientSecret': json['client_secret'], 'serverMetadataUrl': json['server_metadata_url'], 'scope': json['scope'] });
49
44
  }
50
45
  function OAuth2ConfigToJSON(json) {
51
46
  return OAuth2ConfigToJSONTyped(json, false);
@@ -54,11 +49,7 @@ function OAuth2ConfigToJSONTyped(value, ignoreDiscriminator = false) {
54
49
  if (value == null) {
55
50
  return value;
56
51
  }
57
- return {
58
- 'client_id': value['clientId'],
59
- 'client_secret': value['clientSecret'],
60
- 'server_metadata_url': value['serverMetadataUrl'],
61
- 'scope': value['scope'],
62
- };
52
+ return Object.assign(Object.assign({}, value), { 'client_id': value['clientId'], 'client_secret': value['clientSecret'], 'server_metadata_url': value['serverMetadataUrl'], 'scope': value['scope'] });
63
53
  }
64
54
  exports.OAuth2ConfigPropertyValidationAttributesMap = {};
55
+ exports.OAuth2ConfigAdditionalPropertiesValidationAttributes = {};
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { PartType } from './PartType';
13
+ import type { TagResponse } from './TagResponse';
13
14
  /**
14
15
  * Generic path part response model.
15
16
  * @export
@@ -29,7 +30,7 @@ export interface PathPartResponse {
29
30
  */
30
31
  name: string;
31
32
  /**
32
- * Type (FOLDER, DOCUMENT, etc.)
33
+ *
33
34
  * @type {PartType}
34
35
  * @memberof PathPartResponse
35
36
  */
@@ -39,13 +40,13 @@ export interface PathPartResponse {
39
40
  * @type {string}
40
41
  * @memberof PathPartResponse
41
42
  */
42
- parentPathId: string;
43
+ parentPathId: string | null;
43
44
  /**
44
45
  * ID of the underlying object
45
46
  * @type {string}
46
47
  * @memberof PathPartResponse
47
48
  */
48
- metadataObjId: string;
49
+ metadataObjId: string | null;
49
50
  /**
50
51
  * Full materialized path from root
51
52
  * @type {string}
@@ -58,6 +59,12 @@ export interface PathPartResponse {
58
59
  * @memberof PathPartResponse
59
60
  */
60
61
  systemManaged: boolean;
62
+ /**
63
+ * Tags attached to this path part
64
+ * @type {Array<TagResponse>}
65
+ * @memberof PathPartResponse
66
+ */
67
+ tags?: Array<TagResponse> | null;
61
68
  /**
62
69
  * Creation timestamp
63
70
  * @type {Date}
@@ -20,6 +20,7 @@ exports.PathPartResponseFromJSONTyped = PathPartResponseFromJSONTyped;
20
20
  exports.PathPartResponseToJSON = PathPartResponseToJSON;
21
21
  exports.PathPartResponseToJSONTyped = PathPartResponseToJSONTyped;
22
22
  const PartType_1 = require("./PartType");
23
+ const TagResponse_1 = require("./TagResponse");
23
24
  /**
24
25
  * Check if a given object implements the PathPartResponse interface.
25
26
  */
@@ -59,6 +60,7 @@ function PathPartResponseFromJSONTyped(json, ignoreDiscriminator) {
59
60
  'metadataObjId': json['metadata_obj_id'],
60
61
  'materializedPath': json['materialized_path'],
61
62
  'systemManaged': json['system_managed'],
63
+ 'tags': json['tags'] == null ? undefined : (json['tags'].map(TagResponse_1.TagResponseFromJSON)),
62
64
  'createdAt': (new Date(json['created_at'])),
63
65
  'updatedAt': (new Date(json['updated_at'])),
64
66
  };
@@ -78,6 +80,7 @@ function PathPartResponseToJSONTyped(value, ignoreDiscriminator = false) {
78
80
  'metadata_obj_id': value['metadataObjId'],
79
81
  'materialized_path': value['materializedPath'],
80
82
  'system_managed': value['systemManaged'],
83
+ 'tags': value['tags'] == null ? undefined : (value['tags'].map(TagResponse_1.TagResponseToJSON)),
81
84
  'created_at': value['createdAt'].toISOString(),
82
85
  'updated_at': value['updatedAt'].toISOString(),
83
86
  };
@@ -0,0 +1,48 @@
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
+ * Response containing the current tags for a path part.
15
+ * @export
16
+ * @interface PathPartTagsResponse
17
+ */
18
+ export interface PathPartTagsResponse {
19
+ /**
20
+ * Tags attached to the path part
21
+ * @type {Array<TagResponse>}
22
+ * @memberof PathPartTagsResponse
23
+ */
24
+ tags: Array<TagResponse>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the PathPartTagsResponse interface.
28
+ */
29
+ export declare function instanceOfPathPartTagsResponse(value: object): value is PathPartTagsResponse;
30
+ export declare function PathPartTagsResponseFromJSON(json: any): PathPartTagsResponse;
31
+ export declare function PathPartTagsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartTagsResponse;
32
+ export declare function PathPartTagsResponseToJSON(json: any): PathPartTagsResponse;
33
+ export declare function PathPartTagsResponseToJSONTyped(value?: PathPartTagsResponse | null, ignoreDiscriminator?: boolean): any;
34
+ export declare const PathPartTagsResponsePropertyValidationAttributesMap: {
35
+ [property: string]: {
36
+ maxLength?: number;
37
+ minLength?: number;
38
+ pattern?: string;
39
+ maximum?: number;
40
+ exclusiveMaximum?: boolean;
41
+ minimum?: number;
42
+ exclusiveMinimum?: boolean;
43
+ multipleOf?: number;
44
+ maxItems?: number;
45
+ minItems?: number;
46
+ uniqueItems?: boolean;
47
+ };
48
+ };
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PathPartTagsResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPathPartTagsResponse = instanceOfPathPartTagsResponse;
18
+ exports.PathPartTagsResponseFromJSON = PathPartTagsResponseFromJSON;
19
+ exports.PathPartTagsResponseFromJSONTyped = PathPartTagsResponseFromJSONTyped;
20
+ exports.PathPartTagsResponseToJSON = PathPartTagsResponseToJSON;
21
+ exports.PathPartTagsResponseToJSONTyped = PathPartTagsResponseToJSONTyped;
22
+ const TagResponse_1 = require("./TagResponse");
23
+ /**
24
+ * Check if a given object implements the PathPartTagsResponse interface.
25
+ */
26
+ function instanceOfPathPartTagsResponse(value) {
27
+ if (!('tags' in value) || value['tags'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function PathPartTagsResponseFromJSON(json) {
32
+ return PathPartTagsResponseFromJSONTyped(json, false);
33
+ }
34
+ function PathPartTagsResponseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'tags': (json['tags'].map(TagResponse_1.TagResponseFromJSON)),
40
+ };
41
+ }
42
+ function PathPartTagsResponseToJSON(json) {
43
+ return PathPartTagsResponseToJSONTyped(json, false);
44
+ }
45
+ function PathPartTagsResponseToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'tags': (value['tags'].map(TagResponse_1.TagResponseToJSON)),
51
+ };
52
+ }
53
+ exports.PathPartTagsResponsePropertyValidationAttributesMap = {};
@@ -17,7 +17,7 @@ import type { PipelineStatus } from './PipelineStatus';
17
17
  */
18
18
  export interface PipelineState {
19
19
  /**
20
- * Current status of the ingestion pipeline
20
+ *
21
21
  * @type {PipelineStatus}
22
22
  * @memberof PipelineState
23
23
  */
@@ -33,25 +33,25 @@ export interface PipelineState {
33
33
  * @type {string}
34
34
  * @memberof PipelineState
35
35
  */
36
- lastActivity?: string;
36
+ lastActivity?: string | null;
37
37
  /**
38
38
  * Error message if pipeline failed
39
39
  * @type {string}
40
40
  * @memberof PipelineState
41
41
  */
42
- error?: string;
42
+ error?: string | null;
43
43
  /**
44
44
  * Temporal workflow ID for tracking the ingestion run
45
45
  * @type {string}
46
46
  * @memberof PipelineState
47
47
  */
48
- temporalWorkflowId?: string;
48
+ temporalWorkflowId?: string | null;
49
49
  /**
50
50
  * Number of chunks processed (for progress tracking)
51
51
  * @type {number}
52
52
  * @memberof PipelineState
53
53
  */
54
- chunksProcessed?: number;
54
+ chunksProcessed?: number | null;
55
55
  }
56
56
  /**
57
57
  * Check if a given object implements the PipelineState interface.
@@ -23,7 +23,7 @@ export interface PolygonReference {
23
23
  */
24
24
  page: number;
25
25
  /**
26
- * The bounding box of the polygon.
26
+ *
27
27
  * @type {Polygon}
28
28
  * @memberof PolygonReference
29
29
  */
@@ -42,13 +42,13 @@ export interface ScoredChunkResponse {
42
42
  */
43
43
  content: string;
44
44
  /**
45
- * Type of chunk content
45
+ *
46
46
  * @type {ChunkType}
47
47
  * @memberof ScoredChunkResponse
48
48
  */
49
49
  chunkType: ChunkType;
50
50
  /**
51
- * Chunk metadata
51
+ *
52
52
  * @type {ChunkMetadataOutput}
53
53
  * @memberof ScoredChunkResponse
54
54
  */
@@ -64,13 +64,13 @@ export interface ScoredChunkResponse {
64
64
  * @type {string}
65
65
  * @memberof ScoredChunkResponse
66
66
  */
67
- prevSiblingPathId?: string;
67
+ prevSiblingPathId?: string | null;
68
68
  /**
69
69
  * Next sibling PathPart ID
70
70
  * @type {string}
71
71
  * @memberof ScoredChunkResponse
72
72
  */
73
- nextSiblingPathId?: string;
73
+ nextSiblingPathId?: string | null;
74
74
  /**
75
75
  * Full materialized path from root
76
76
  * @type {string}
@@ -38,7 +38,7 @@ export interface SectionResponse {
38
38
  * @type {number}
39
39
  * @memberof SectionResponse
40
40
  */
41
- pageNumber?: number;
41
+ pageNumber?: number | null;
42
42
  /**
43
43
  * Parent PathPart ID
44
44
  * @type {string}
@@ -50,13 +50,13 @@ export interface SectionResponse {
50
50
  * @type {string}
51
51
  * @memberof SectionResponse
52
52
  */
53
- prevSiblingPathId?: string;
53
+ prevSiblingPathId?: string | null;
54
54
  /**
55
55
  * Next sibling PathPart ID
56
56
  * @type {string}
57
57
  * @memberof SectionResponse
58
58
  */
59
- nextSiblingPathId?: string;
59
+ nextSiblingPathId?: string | null;
60
60
  /**
61
61
  * Full materialized path from root
62
62
  * @type {string}
@@ -32,7 +32,7 @@ export interface SignInRequest {
32
32
  * @type {string}
33
33
  * @memberof SignInRequest
34
34
  */
35
- tenantId?: string;
35
+ tenantId?: string | null;
36
36
  }
37
37
  /**
38
38
  * Check if a given object implements the SignInRequest interface.
@@ -38,7 +38,7 @@ export interface TagResponse {
38
38
  * @type {string}
39
39
  * @memberof TagResponse
40
40
  */
41
- description?: string;
41
+ description?: string | null;
42
42
  /**
43
43
  * Tenant ID
44
44
  * @type {string}
@@ -34,7 +34,7 @@ export interface TenantResponse {
34
34
  */
35
35
  idpConfig?: {
36
36
  [key: string]: string;
37
- };
37
+ } | null;
38
38
  }
39
39
  /**
40
40
  * Check if a given object implements the TenantResponse interface.
@@ -27,9 +27,9 @@ export interface TenantUserInTenantResponse {
27
27
  * @type {string}
28
28
  * @memberof TenantUserInTenantResponse
29
29
  */
30
- email?: string;
30
+ email?: string | null;
31
31
  /**
32
- * User role within the tenant
32
+ *
33
33
  * @type {TenantUserRole}
34
34
  * @memberof TenantUserInTenantResponse
35
35
  */
@@ -35,17 +35,19 @@ export interface ThreadMessageResponse {
35
35
  */
36
36
  sequence: number;
37
37
  /**
38
- * Message role
38
+ *
39
39
  * @type {MessageRole}
40
40
  * @memberof ThreadMessageResponse
41
41
  */
42
42
  role: MessageRole;
43
43
  /**
44
44
  * Structured message content
45
- * @type {object}
45
+ * @type {{ [key: string]: any; }}
46
46
  * @memberof ThreadMessageResponse
47
47
  */
48
- content: object;
48
+ content: {
49
+ [key: string]: any;
50
+ };
49
51
  /**
50
52
  * Thread's PathPart ID
51
53
  * @type {string}
@@ -100,7 +102,3 @@ export declare const ThreadMessageResponsePropertyValidationAttributesMap: {
100
102
  uniqueItems?: boolean;
101
103
  };
102
104
  };
103
- export declare const ThreadMessageResponseAdditionalPropertiesValidationAttributes: {
104
- maxProperties?: number;
105
- minProperties?: number;
106
- };
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ThreadMessageResponseAdditionalPropertiesValidationAttributes = exports.ThreadMessageResponsePropertyValidationAttributesMap = void 0;
16
+ exports.ThreadMessageResponsePropertyValidationAttributesMap = void 0;
17
17
  exports.instanceOfThreadMessageResponse = instanceOfThreadMessageResponse;
18
18
  exports.ThreadMessageResponseFromJSON = ThreadMessageResponseFromJSON;
19
19
  exports.ThreadMessageResponseFromJSONTyped = ThreadMessageResponseFromJSONTyped;
@@ -87,4 +87,3 @@ function ThreadMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
87
87
  };
88
88
  }
89
89
  exports.ThreadMessageResponsePropertyValidationAttributesMap = {};
90
- exports.ThreadMessageResponseAdditionalPropertiesValidationAttributes = {};
@@ -38,7 +38,7 @@ export interface ThreadResponse {
38
38
  * @type {string}
39
39
  * @memberof ThreadResponse
40
40
  */
41
- parentThreadId?: string;
41
+ parentThreadId?: string | null;
42
42
  /**
43
43
  * Full materialized path from root
44
44
  * @type {string}
@@ -23,7 +23,7 @@ export interface UpdateChunkContentRequest {
23
23
  */
24
24
  content: string;
25
25
  /**
26
- * New chunk type (null = keep existing type)
26
+ *
27
27
  * @type {ChunkType}
28
28
  * @memberof UpdateChunkContentRequest
29
29
  */
@@ -17,7 +17,7 @@ import type { ChunkMetadataInput } from './ChunkMetadataInput';
17
17
  */
18
18
  export interface UpdateChunkMetadataRequest {
19
19
  /**
20
- * Metadata to merge into existing chunk_metadata
20
+ *
21
21
  * @type {ChunkMetadataInput}
22
22
  * @memberof UpdateChunkMetadataRequest
23
23
  */
@@ -20,19 +20,19 @@ export interface UpdateDocumentRequest {
20
20
  * @type {string}
21
21
  * @memberof UpdateDocumentRequest
22
22
  */
23
- name?: string;
23
+ name?: string | null;
24
24
  /**
25
25
  * New parent PathPart ID for move (must be a FOLDER type)
26
26
  * @type {string}
27
27
  * @memberof UpdateDocumentRequest
28
28
  */
29
- parentPathPartId?: string;
29
+ parentPathPartId?: string | null;
30
30
  /**
31
31
  * New active version ID
32
32
  * @type {string}
33
33
  * @memberof UpdateDocumentRequest
34
34
  */
35
- activeVersionId?: string;
35
+ activeVersionId?: string | null;
36
36
  }
37
37
  /**
38
38
  * Check if a given object implements the UpdateDocumentRequest interface.
@@ -20,13 +20,13 @@ export interface UpdateFolderRequest {
20
20
  * @type {string}
21
21
  * @memberof UpdateFolderRequest
22
22
  */
23
- name?: string;
23
+ name?: string | null;
24
24
  /**
25
25
  * New parent PathPart ID for move (must be a FOLDER type)
26
26
  * @type {string}
27
27
  * @memberof UpdateFolderRequest
28
28
  */
29
- parentPathPartId?: string;
29
+ parentPathPartId?: string | null;
30
30
  }
31
31
  /**
32
32
  * Check if a given object implements the UpdateFolderRequest interface.
@@ -21,7 +21,7 @@ export interface UpdatePermissionRequest {
21
21
  * @type {string}
22
22
  * @memberof UpdatePermissionRequest
23
23
  */
24
- pathPartId?: string;
24
+ pathPartId?: string | null;
25
25
  /**
26
26
  *
27
27
  * @type {PermissionCapability}
@@ -20,19 +20,19 @@ export interface UpdateSectionRequest {
20
20
  * @type {string}
21
21
  * @memberof UpdateSectionRequest
22
22
  */
23
- name?: string;
23
+ name?: string | null;
24
24
  /**
25
25
  * New page number (must be > 0)
26
26
  * @type {number}
27
27
  * @memberof UpdateSectionRequest
28
28
  */
29
- pageNumber?: number;
29
+ pageNumber?: number | null;
30
30
  /**
31
31
  * Move after this sibling PathPart ID
32
32
  * @type {string}
33
33
  * @memberof UpdateSectionRequest
34
34
  */
35
- prevSiblingPathId?: string;
35
+ prevSiblingPathId?: string | null;
36
36
  /**
37
37
  * Set to true to move to head of sibling list. This is needed since prev_sibling_path_id = None means no update
38
38
  * @type {boolean}
@@ -20,19 +20,19 @@ export interface UpdateTagRequest {
20
20
  * @type {string}
21
21
  * @memberof UpdateTagRequest
22
22
  */
23
- name?: string;
23
+ name?: string | null;
24
24
  /**
25
25
  * New tag color as 6-character hex string
26
26
  * @type {string}
27
27
  * @memberof UpdateTagRequest
28
28
  */
29
- color?: string;
29
+ color?: string | null;
30
30
  /**
31
31
  * New tag description (empty string to clear)
32
32
  * @type {string}
33
33
  * @memberof UpdateTagRequest
34
34
  */
35
- description?: string;
35
+ description?: string | null;
36
36
  }
37
37
  /**
38
38
  * Check if a given object implements the UpdateTagRequest interface.
@@ -21,9 +21,9 @@ export interface UpdateTenantRequest {
21
21
  * @type {string}
22
22
  * @memberof UpdateTenantRequest
23
23
  */
24
- name?: string;
24
+ name?: string | null;
25
25
  /**
26
- * Optional external IdP configuration to update
26
+ *
27
27
  * @type {OAuth2Config}
28
28
  * @memberof UpdateTenantRequest
29
29
  */
@@ -20,13 +20,13 @@ export interface UpdateThreadRequest {
20
20
  * @type {string}
21
21
  * @memberof UpdateThreadRequest
22
22
  */
23
- title?: string;
23
+ title?: string | null;
24
24
  /**
25
25
  * Parent thread ID. Set to a UUID to link, or null to clear.
26
26
  * @type {string}
27
27
  * @memberof UpdateThreadRequest
28
28
  */
29
- parentThreadId?: string;
29
+ parentThreadId?: string | null;
30
30
  }
31
31
  /**
32
32
  * Check if a given object implements the UpdateThreadRequest interface.
@@ -28,9 +28,9 @@ export interface UserResponse {
28
28
  * @type {string}
29
29
  * @memberof UserResponse
30
30
  */
31
- email: string;
31
+ email: string | null;
32
32
  /**
33
- * Identity provider type of the user
33
+ *
34
34
  * @type {IdpType}
35
35
  * @memberof UserResponse
36
36
  */
@@ -42,7 +42,7 @@ export interface UserResponse {
42
42
  */
43
43
  currentTenantId: string;
44
44
  /**
45
- * Current tenant role of the user
45
+ *
46
46
  * @type {TenantUserRole}
47
47
  * @memberof UserResponse
48
48
  */
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { ValidationErrorLocInner } from './ValidationErrorLocInner';
12
+ import type { LocationInner } from './LocationInner';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,10 +18,10 @@ import type { ValidationErrorLocInner } from './ValidationErrorLocInner';
18
18
  export interface ValidationError {
19
19
  /**
20
20
  *
21
- * @type {Array<ValidationErrorLocInner>}
21
+ * @type {Array<LocationInner>}
22
22
  * @memberof ValidationError
23
23
  */
24
- loc: Array<ValidationErrorLocInner>;
24
+ loc: Array<LocationInner>;
25
25
  /**
26
26
  *
27
27
  * @type {string}
@@ -19,7 +19,7 @@ exports.ValidationErrorFromJSON = ValidationErrorFromJSON;
19
19
  exports.ValidationErrorFromJSONTyped = ValidationErrorFromJSONTyped;
20
20
  exports.ValidationErrorToJSON = ValidationErrorToJSON;
21
21
  exports.ValidationErrorToJSONTyped = ValidationErrorToJSONTyped;
22
- const ValidationErrorLocInner_1 = require("./ValidationErrorLocInner");
22
+ const LocationInner_1 = require("./LocationInner");
23
23
  /**
24
24
  * Check if a given object implements the ValidationError interface.
25
25
  */
@@ -40,7 +40,7 @@ function ValidationErrorFromJSONTyped(json, ignoreDiscriminator) {
40
40
  return json;
41
41
  }
42
42
  return {
43
- 'loc': (json['loc'].map(ValidationErrorLocInner_1.ValidationErrorLocInnerFromJSON)),
43
+ 'loc': (json['loc'].map(LocationInner_1.LocationInnerFromJSON)),
44
44
  'msg': json['msg'],
45
45
  'type': json['type'],
46
46
  'input': json['input'] == null ? undefined : json['input'],
@@ -55,7 +55,7 @@ function ValidationErrorToJSONTyped(value, ignoreDiscriminator = false) {
55
55
  return value;
56
56
  }
57
57
  return {
58
- 'loc': (value['loc'].map(ValidationErrorLocInner_1.ValidationErrorLocInnerToJSON)),
58
+ 'loc': (value['loc'].map(LocationInner_1.LocationInnerToJSON)),
59
59
  'msg': value['msg'],
60
60
  'type': value['type'],
61
61
  'input': value['input'],