@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
@@ -30,7 +30,81 @@ const index_1 = require("../models/index");
30
30
  */
31
31
  class PathPartsApi extends runtime.BaseAPI {
32
32
  /**
33
- * Get a path part by its ID. Returns the path part if it exists and belongs to the user\'s tenant.
33
+ * Bulk add tags to a path part. Idempotent already-attached tags are skipped. Returns 400 if any tag_id doesn\'t exist (FK violation). Requires write permission on the target path part.
34
+ * Bulk Add Path Part Tags Handler
35
+ */
36
+ bulkAddPathPartTagsRaw(requestParameters, initOverrides) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['pathPartId'] == null) {
39
+ throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling bulkAddPathPartTags().');
40
+ }
41
+ if (requestParameters['bulkTagRequest'] == null) {
42
+ throw new runtime.RequiredError('bulkTagRequest', 'Required parameter "bulkTagRequest" was null or undefined when calling bulkAddPathPartTags().');
43
+ }
44
+ const queryParameters = {};
45
+ const headerParameters = {};
46
+ headerParameters['Content-Type'] = 'application/json';
47
+ let urlPath = `/v1/path-parts/{path_part_id}/tags`;
48
+ urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
49
+ const response = yield this.request({
50
+ path: urlPath,
51
+ method: 'POST',
52
+ headers: headerParameters,
53
+ query: queryParameters,
54
+ body: (0, index_1.BulkTagRequestToJSON)(requestParameters['bulkTagRequest']),
55
+ }, initOverrides);
56
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PathPartTagsResponseFromJSON)(jsonValue));
57
+ });
58
+ }
59
+ /**
60
+ * Bulk add tags to a path part. Idempotent — already-attached tags are skipped. Returns 400 if any tag_id doesn\'t exist (FK violation). Requires write permission on the target path part.
61
+ * Bulk Add Path Part Tags Handler
62
+ */
63
+ bulkAddPathPartTags(requestParameters, initOverrides) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ const response = yield this.bulkAddPathPartTagsRaw(requestParameters, initOverrides);
66
+ return yield response.value();
67
+ });
68
+ }
69
+ /**
70
+ * Bulk remove tags from a path part. Silently ignores tags that aren\'t attached. Requires write permission on the target path part.
71
+ * Bulk Remove Path Part Tags Handler
72
+ */
73
+ bulkRemovePathPartTagsRaw(requestParameters, initOverrides) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ if (requestParameters['pathPartId'] == null) {
76
+ throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling bulkRemovePathPartTags().');
77
+ }
78
+ if (requestParameters['bulkTagRequest'] == null) {
79
+ throw new runtime.RequiredError('bulkTagRequest', 'Required parameter "bulkTagRequest" was null or undefined when calling bulkRemovePathPartTags().');
80
+ }
81
+ const queryParameters = {};
82
+ const headerParameters = {};
83
+ headerParameters['Content-Type'] = 'application/json';
84
+ let urlPath = `/v1/path-parts/{path_part_id}/tags`;
85
+ urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
86
+ const response = yield this.request({
87
+ path: urlPath,
88
+ method: 'DELETE',
89
+ headers: headerParameters,
90
+ query: queryParameters,
91
+ body: (0, index_1.BulkTagRequestToJSON)(requestParameters['bulkTagRequest']),
92
+ }, initOverrides);
93
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PathPartTagsResponseFromJSON)(jsonValue));
94
+ });
95
+ }
96
+ /**
97
+ * Bulk remove tags from a path part. Silently ignores tags that aren\'t attached. Requires write permission on the target path part.
98
+ * Bulk Remove Path Part Tags Handler
99
+ */
100
+ bulkRemovePathPartTags(requestParameters, initOverrides) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ const response = yield this.bulkRemovePathPartTagsRaw(requestParameters, initOverrides);
103
+ return yield response.value();
104
+ });
105
+ }
106
+ /**
107
+ * Get a path part by its ID. Returns the path part with its attached tag IDs.
34
108
  * Get Path Part Handler
35
109
  */
36
110
  getPathPartRaw(requestParameters, initOverrides) {
@@ -52,7 +126,7 @@ class PathPartsApi extends runtime.BaseAPI {
52
126
  });
53
127
  }
54
128
  /**
55
- * Get a path part by its ID. Returns the path part if it exists and belongs to the user\'s tenant.
129
+ * Get a path part by its ID. Returns the path part with its attached tag IDs.
56
130
  * Get Path Part Handler
57
131
  */
58
132
  getPathPart(requestParameters, initOverrides) {
@@ -13,20 +13,20 @@ import * as runtime from '../runtime';
13
13
  import type { CreateSectionRequest, SectionResponse, UpdateSectionRequest } from '../models/index';
14
14
  export interface CreateSectionOperationRequest {
15
15
  createSectionRequest: CreateSectionRequest;
16
- ksUat?: string;
16
+ ksUat?: string | null;
17
17
  }
18
18
  export interface DeleteSectionRequest {
19
19
  sectionId: string;
20
- ksUat?: string;
20
+ ksUat?: string | null;
21
21
  }
22
22
  export interface GetSectionRequest {
23
23
  sectionId: string;
24
- ksUat?: string;
24
+ ksUat?: string | null;
25
25
  }
26
26
  export interface UpdateSectionOperationRequest {
27
27
  sectionId: string;
28
28
  updateSectionRequest: UpdateSectionRequest;
29
- ksUat?: string;
29
+ ksUat?: string | null;
30
30
  }
31
31
  /**
32
32
  * SectionsApi - interface
@@ -10,38 +10,28 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateTagRequest, PaginatedResponseTagResponse, TagPathPartRequest, TagResponse, UpdateTagRequest } from '../models/index';
14
- export interface AttachTagToPathPartRequest {
15
- tagId: string;
16
- tagPathPartRequest: TagPathPartRequest;
17
- ksUat?: string;
18
- }
13
+ import type { CreateTagRequest, PaginatedResponseTagResponse, TagResponse, UpdateTagRequest } from '../models/index';
19
14
  export interface CreateTagOperationRequest {
20
15
  createTagRequest: CreateTagRequest;
21
- ksUat?: string;
16
+ ksUat?: string | null;
22
17
  }
23
18
  export interface DeleteTagRequest {
24
19
  tagId: string;
25
- ksUat?: string;
26
- }
27
- export interface DetachTagFromPathPartRequest {
28
- tagId: string;
29
- pathPartId: string;
30
- ksUat?: string;
20
+ ksUat?: string | null;
31
21
  }
32
22
  export interface GetTagRequest {
33
23
  tagId: string;
34
- ksUat?: string;
24
+ ksUat?: string | null;
35
25
  }
36
26
  export interface ListTagsRequest {
37
27
  limit?: number;
38
28
  offset?: number;
39
- ksUat?: string;
29
+ ksUat?: string | null;
40
30
  }
41
31
  export interface UpdateTagOperationRequest {
42
32
  tagId: string;
43
33
  updateTagRequest: UpdateTagRequest;
44
- ksUat?: string;
34
+ ksUat?: string | null;
45
35
  }
46
36
  /**
47
37
  * TagsApi - interface
@@ -50,22 +40,6 @@ export interface UpdateTagOperationRequest {
50
40
  * @interface TagsApiInterface
51
41
  */
52
42
  export interface TagsApiInterface {
53
- /**
54
- * Attach a tag to a path part. Requires ADMIN or OWNER role.
55
- * @summary Attach Tag Handler
56
- * @param {string} tagId
57
- * @param {TagPathPartRequest} tagPathPartRequest
58
- * @param {string} [ksUat]
59
- * @param {*} [options] Override http request option.
60
- * @throws {RequiredError}
61
- * @memberof TagsApiInterface
62
- */
63
- attachTagToPathPartRaw(requestParameters: AttachTagToPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>>;
64
- /**
65
- * Attach a tag to a path part. Requires ADMIN or OWNER role.
66
- * Attach Tag Handler
67
- */
68
- attachTagToPathPart(requestParameters: AttachTagToPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
69
43
  /**
70
44
  * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
71
45
  * @summary Create Tag Handler
@@ -96,22 +70,6 @@ export interface TagsApiInterface {
96
70
  * Delete Tag Handler
97
71
  */
98
72
  deleteTag(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
99
- /**
100
- * Detach a tag from a path part. Requires ADMIN or OWNER role.
101
- * @summary Detach Tag Handler
102
- * @param {string} tagId
103
- * @param {string} pathPartId
104
- * @param {string} [ksUat]
105
- * @param {*} [options] Override http request option.
106
- * @throws {RequiredError}
107
- * @memberof TagsApiInterface
108
- */
109
- detachTagFromPathPartRaw(requestParameters: DetachTagFromPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
110
- /**
111
- * Detach a tag from a path part. Requires ADMIN or OWNER role.
112
- * Detach Tag Handler
113
- */
114
- detachTagFromPathPart(requestParameters: DetachTagFromPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
115
73
  /**
116
74
  * Get a tag by its ID.
117
75
  * @summary Get Tag Handler
@@ -164,16 +122,6 @@ export interface TagsApiInterface {
164
122
  *
165
123
  */
166
124
  export declare class TagsApi extends runtime.BaseAPI implements TagsApiInterface {
167
- /**
168
- * Attach a tag to a path part. Requires ADMIN or OWNER role.
169
- * Attach Tag Handler
170
- */
171
- attachTagToPathPartRaw(requestParameters: AttachTagToPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TagResponse>>;
172
- /**
173
- * Attach a tag to a path part. Requires ADMIN or OWNER role.
174
- * Attach Tag Handler
175
- */
176
- attachTagToPathPart(requestParameters: AttachTagToPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TagResponse>;
177
125
  /**
178
126
  * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
179
127
  * Create Tag Handler
@@ -194,16 +142,6 @@ export declare class TagsApi extends runtime.BaseAPI implements TagsApiInterface
194
142
  * Delete Tag Handler
195
143
  */
196
144
  deleteTag(requestParameters: DeleteTagRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
197
- /**
198
- * Detach a tag from a path part. Requires ADMIN or OWNER role.
199
- * Detach Tag Handler
200
- */
201
- detachTagFromPathPartRaw(requestParameters: DetachTagFromPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
202
- /**
203
- * Detach a tag from a path part. Requires ADMIN or OWNER role.
204
- * Detach Tag Handler
205
- */
206
- detachTagFromPathPart(requestParameters: DetachTagFromPathPartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
207
145
  /**
208
146
  * Get a tag by its ID.
209
147
  * Get Tag Handler
@@ -29,43 +29,6 @@ const index_1 = require("../models/index");
29
29
  *
30
30
  */
31
31
  class TagsApi extends runtime.BaseAPI {
32
- /**
33
- * Attach a tag to a path part. Requires ADMIN or OWNER role.
34
- * Attach Tag Handler
35
- */
36
- attachTagToPathPartRaw(requestParameters, initOverrides) {
37
- return __awaiter(this, void 0, void 0, function* () {
38
- if (requestParameters['tagId'] == null) {
39
- throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling attachTagToPathPart().');
40
- }
41
- if (requestParameters['tagPathPartRequest'] == null) {
42
- throw new runtime.RequiredError('tagPathPartRequest', 'Required parameter "tagPathPartRequest" was null or undefined when calling attachTagToPathPart().');
43
- }
44
- const queryParameters = {};
45
- const headerParameters = {};
46
- headerParameters['Content-Type'] = 'application/json';
47
- let urlPath = `/v1/tags/{tag_id}/path-parts`;
48
- urlPath = urlPath.replace(`{${"tag_id"}}`, encodeURIComponent(String(requestParameters['tagId'])));
49
- const response = yield this.request({
50
- path: urlPath,
51
- method: 'POST',
52
- headers: headerParameters,
53
- query: queryParameters,
54
- body: (0, index_1.TagPathPartRequestToJSON)(requestParameters['tagPathPartRequest']),
55
- }, initOverrides);
56
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TagResponseFromJSON)(jsonValue));
57
- });
58
- }
59
- /**
60
- * Attach a tag to a path part. Requires ADMIN or OWNER role.
61
- * Attach Tag Handler
62
- */
63
- attachTagToPathPart(requestParameters, initOverrides) {
64
- return __awaiter(this, void 0, void 0, function* () {
65
- const response = yield this.attachTagToPathPartRaw(requestParameters, initOverrides);
66
- return yield response.value();
67
- });
68
- }
69
32
  /**
70
33
  * Create a new tag for the current tenant. Requires ADMIN or OWNER role.
71
34
  * Create Tag Handler
@@ -130,41 +93,6 @@ class TagsApi extends runtime.BaseAPI {
130
93
  yield this.deleteTagRaw(requestParameters, initOverrides);
131
94
  });
132
95
  }
133
- /**
134
- * Detach a tag from a path part. Requires ADMIN or OWNER role.
135
- * Detach Tag Handler
136
- */
137
- detachTagFromPathPartRaw(requestParameters, initOverrides) {
138
- return __awaiter(this, void 0, void 0, function* () {
139
- if (requestParameters['tagId'] == null) {
140
- throw new runtime.RequiredError('tagId', 'Required parameter "tagId" was null or undefined when calling detachTagFromPathPart().');
141
- }
142
- if (requestParameters['pathPartId'] == null) {
143
- throw new runtime.RequiredError('pathPartId', 'Required parameter "pathPartId" was null or undefined when calling detachTagFromPathPart().');
144
- }
145
- const queryParameters = {};
146
- const headerParameters = {};
147
- let urlPath = `/v1/tags/{tag_id}/path-parts/{path_part_id}`;
148
- urlPath = urlPath.replace(`{${"tag_id"}}`, encodeURIComponent(String(requestParameters['tagId'])));
149
- urlPath = urlPath.replace(`{${"path_part_id"}}`, encodeURIComponent(String(requestParameters['pathPartId'])));
150
- const response = yield this.request({
151
- path: urlPath,
152
- method: 'DELETE',
153
- headers: headerParameters,
154
- query: queryParameters,
155
- }, initOverrides);
156
- return new runtime.VoidApiResponse(response);
157
- });
158
- }
159
- /**
160
- * Detach a tag from a path part. Requires ADMIN or OWNER role.
161
- * Detach Tag Handler
162
- */
163
- detachTagFromPathPart(requestParameters, initOverrides) {
164
- return __awaiter(this, void 0, void 0, function* () {
165
- yield this.detachTagFromPathPartRaw(requestParameters, initOverrides);
166
- });
167
- }
168
96
  /**
169
97
  * Get a tag by its ID.
170
98
  * Get Tag Handler
@@ -13,31 +13,31 @@ import * as runtime from '../runtime';
13
13
  import type { CreateTenantRequest, PaginatedResponseTenantResponse, PaginatedResponseTenantUserInTenantResponse, TenantResponse, UpdateTenantRequest } from '../models/index';
14
14
  export interface CreateTenantOperationRequest {
15
15
  createTenantRequest: CreateTenantRequest;
16
- ksUat?: string;
16
+ ksUat?: string | null;
17
17
  }
18
18
  export interface DeleteTenantRequest {
19
19
  tenantId: string;
20
- ksUat?: string;
20
+ ksUat?: string | null;
21
21
  }
22
22
  export interface GetTenantRequest {
23
23
  tenantId: string;
24
- ksUat?: string;
24
+ ksUat?: string | null;
25
25
  }
26
26
  export interface ListTenantUsersRequest {
27
27
  tenantId: string;
28
28
  limit?: number;
29
29
  offset?: number;
30
- ksUat?: string;
30
+ ksUat?: string | null;
31
31
  }
32
32
  export interface ListTenantsRequest {
33
33
  limit?: number;
34
34
  offset?: number;
35
- ksUat?: string;
35
+ ksUat?: string | null;
36
36
  }
37
37
  export interface UpdateTenantOperationRequest {
38
38
  tenantId: string;
39
39
  updateTenantRequest: UpdateTenantRequest;
40
- ksUat?: string;
40
+ ksUat?: string | null;
41
41
  }
42
42
  /**
43
43
  * TenantsApi - interface
@@ -14,19 +14,19 @@ import type { CreateThreadMessageRequest, PaginatedResponseThreadMessageResponse
14
14
  export interface CreateThreadMessageOperationRequest {
15
15
  threadId: string;
16
16
  createThreadMessageRequest: CreateThreadMessageRequest;
17
- ksUat?: string;
17
+ ksUat?: string | null;
18
18
  }
19
19
  export interface GetThreadMessageRequest {
20
20
  threadId: string;
21
21
  messageId: string;
22
- ksUat?: string;
22
+ ksUat?: string | null;
23
23
  }
24
24
  export interface ListThreadMessagesRequest {
25
25
  threadId: string;
26
- before?: Date;
26
+ before?: Date | null;
27
27
  limit?: number;
28
28
  offset?: number;
29
- ksUat?: string;
29
+ ksUat?: string | null;
30
30
  }
31
31
  /**
32
32
  * ThreadMessagesApi - interface
@@ -13,26 +13,26 @@ import * as runtime from '../runtime';
13
13
  import type { CreateThreadRequest, PaginatedResponseThreadResponse, ThreadResponse, UpdateThreadRequest } from '../models/index';
14
14
  export interface CreateThreadOperationRequest {
15
15
  createThreadRequest: CreateThreadRequest;
16
- ksUat?: string;
16
+ ksUat?: string | null;
17
17
  }
18
18
  export interface DeleteThreadRequest {
19
19
  threadId: string;
20
- ksUat?: string;
20
+ ksUat?: string | null;
21
21
  }
22
22
  export interface GetThreadRequest {
23
23
  threadId: string;
24
- ksUat?: string;
24
+ ksUat?: string | null;
25
25
  }
26
26
  export interface ListThreadsRequest {
27
- parentPathPartId?: string;
27
+ parentPathPartId?: string | null;
28
28
  limit?: number;
29
29
  offset?: number;
30
- ksUat?: string;
30
+ ksUat?: string | null;
31
31
  }
32
32
  export interface UpdateThreadOperationRequest {
33
33
  threadId: string;
34
34
  updateThreadRequest: UpdateThreadRequest;
35
- ksUat?: string;
35
+ ksUat?: string | null;
36
36
  }
37
37
  /**
38
38
  * ThreadsApi - interface
@@ -13,25 +13,25 @@ import * as runtime from '../runtime';
13
13
  import type { CreatePermissionRequest, PaginatedResponsePermissionResponse, PermissionResponse, UpdatePermissionRequest } from '../models/index';
14
14
  export interface CreateUserPermissionRequest {
15
15
  createPermissionRequest: CreatePermissionRequest;
16
- ksUat?: string;
16
+ ksUat?: string | null;
17
17
  }
18
18
  export interface DeleteUserPermissionRequest {
19
19
  permissionId: string;
20
20
  tenantId: string;
21
- ksUat?: string;
21
+ ksUat?: string | null;
22
22
  }
23
23
  export interface ListUserPermissionsRequest {
24
24
  tenantId: string;
25
25
  userId: string;
26
26
  limit?: number;
27
27
  offset?: number;
28
- ksUat?: string;
28
+ ksUat?: string | null;
29
29
  }
30
30
  export interface UpdateUserPermissionRequest {
31
31
  permissionId: string;
32
32
  tenantId: string;
33
33
  updatePermissionRequest: UpdatePermissionRequest;
34
- ksUat?: string;
34
+ ksUat?: string | null;
35
35
  }
36
36
  /**
37
37
  * UserPermissionsApi - interface
@@ -12,11 +12,11 @@
12
12
  import * as runtime from '../runtime';
13
13
  import type { UpdateUserRequest, UserResponse } from '../models/index';
14
14
  export interface GetMeRequest {
15
- ksUat?: string;
15
+ ksUat?: string | null;
16
16
  }
17
17
  export interface UpdateMeRequest {
18
18
  updateUserRequest: UpdateUserRequest;
19
- ksUat?: string;
19
+ ksUat?: string | null;
20
20
  }
21
21
  /**
22
22
  * UsersApi - interface
@@ -13,17 +13,17 @@ import * as runtime from '../runtime';
13
13
  import type { PaginatedResponseWorkflowSummaryResponse, WorkflowAction, WorkflowActionResponse, WorkflowDetailResponse } from '../models/index';
14
14
  export interface GetWorkflowRequest {
15
15
  workflowId: string;
16
- ksUat?: string;
16
+ ksUat?: string | null;
17
17
  }
18
18
  export interface ListWorkflowsRequest {
19
19
  limit?: number;
20
20
  offset?: number;
21
- ksUat?: string;
21
+ ksUat?: string | null;
22
22
  }
23
23
  export interface WorkflowActionRequest {
24
24
  workflowId: string;
25
25
  action: WorkflowAction;
26
- ksUat?: string;
26
+ ksUat?: string | null;
27
27
  }
28
28
  /**
29
29
  * WorkflowsApi - interface
@@ -16,15 +16,15 @@ export interface CreatePasswordUserOperationRequest {
16
16
  }
17
17
  export interface InitiateSsoRequest {
18
18
  provider: IdpType;
19
- tenantId?: string;
19
+ tenantId?: string | null;
20
20
  }
21
21
  export interface Oauth2CallbackRequest {
22
22
  provider: IdpType;
23
- code?: string;
24
- state?: string;
25
- error?: string;
26
- errorDescription?: string;
27
- tenantId?: string;
23
+ code?: string | null;
24
+ state?: string | null;
25
+ error?: string | null;
26
+ errorDescription?: string | null;
27
+ tenantId?: string | null;
28
28
  }
29
29
  export interface PwEmailVerificationRequest {
30
30
  emailVerificationRequest: EmailVerificationRequest;
@@ -33,12 +33,12 @@ export interface PwSigninRequest {
33
33
  signInRequest: SignInRequest;
34
34
  }
35
35
  export interface RefreshUatRequest {
36
- tenantId?: string;
37
- ksUat?: string;
36
+ tenantId?: string | null;
37
+ ksUat?: string | null;
38
38
  }
39
39
  export interface ResetPasswordRequest {
40
40
  passwordResetRequest: PasswordResetRequest;
41
- ksUat?: string;
41
+ ksUat?: string | null;
42
42
  }
43
43
  export interface ResetPasswordWithTokenRequest {
44
44
  passwordResetWithTokenRequest: PasswordResetWithTokenRequest;
@@ -13,17 +13,17 @@ import * as runtime from '../runtime';
13
13
  import type { ChunkLineageResponse, CreateChunkLineageRequest, LineageGraphResponse } from '../models/index';
14
14
  export interface CreateChunkLineageOperationRequest {
15
15
  createChunkLineageRequest: CreateChunkLineageRequest;
16
- ksUat?: string;
16
+ ksUat?: string | null;
17
17
  }
18
18
  export interface DeleteChunkLineageRequest {
19
19
  parentChunkId: string;
20
20
  chunkId: string;
21
- ksUat?: string;
21
+ ksUat?: string | null;
22
22
  }
23
23
  export interface GetChunkLineageRequest {
24
24
  chunkId: string;
25
25
  maxDepth?: number;
26
- ksUat?: string;
26
+ ksUat?: string | null;
27
27
  }
28
28
  /**
29
29
  * ChunkLineagesApi - interface
@@ -13,29 +13,29 @@ import * as runtime from '../runtime';
13
13
  import type { ChunkResponse, ChunkSearchRequest, CreateChunkRequest, ScoredChunkResponse, UpdateChunkContentRequest, UpdateChunkMetadataRequest } from '../models/index';
14
14
  export interface CreateChunkOperationRequest {
15
15
  createChunkRequest: CreateChunkRequest;
16
- ksUat?: string;
16
+ ksUat?: string | null;
17
17
  }
18
18
  export interface DeleteChunkRequest {
19
19
  chunkId: string;
20
- ksUat?: string;
20
+ ksUat?: string | null;
21
21
  }
22
22
  export interface GetChunkRequest {
23
23
  chunkId: string;
24
- ksUat?: string;
24
+ ksUat?: string | null;
25
25
  }
26
26
  export interface SearchChunksRequest {
27
27
  chunkSearchRequest: ChunkSearchRequest;
28
- ksUat?: string;
28
+ ksUat?: string | null;
29
29
  }
30
30
  export interface UpdateChunkContentOperationRequest {
31
31
  chunkId: string;
32
32
  updateChunkContentRequest: UpdateChunkContentRequest;
33
- ksUat?: string;
33
+ ksUat?: string | null;
34
34
  }
35
35
  export interface UpdateChunkMetadataOperationRequest {
36
36
  chunkId: string;
37
37
  updateChunkMetadataRequest: UpdateChunkMetadataRequest;
38
- ksUat?: string;
38
+ ksUat?: string | null;
39
39
  }
40
40
  /**
41
41
  * ChunksApi - interface
@@ -13,37 +13,37 @@ import * as runtime from '../runtime';
13
13
  import type { ClearVersionContentsResponse, DocumentVersionMetadataUpdate, DocumentVersionResponse, PaginatedResponseDocumentContentPathPart, PaginatedResponseDocumentVersionResponse } from '../models/index';
14
14
  export interface ClearDocumentVersionContentsRequest {
15
15
  versionId: string;
16
- ksUat?: string;
16
+ ksUat?: string | null;
17
17
  }
18
18
  export interface CreateDocumentVersionRequest {
19
19
  documentId: string;
20
- ksUat?: string;
20
+ ksUat?: string | null;
21
21
  }
22
22
  export interface DeleteDocumentVersionRequest {
23
23
  versionId: string;
24
- ksUat?: string;
24
+ ksUat?: string | null;
25
25
  }
26
26
  export interface GetDocumentVersionRequest {
27
27
  versionId: string;
28
- ksUat?: string;
28
+ ksUat?: string | null;
29
29
  }
30
30
  export interface GetDocumentVersionContentsRequest {
31
31
  versionId: string;
32
- sectionId?: string;
32
+ sectionId?: string | null;
33
33
  limit?: number;
34
34
  offset?: number;
35
- ksUat?: string;
35
+ ksUat?: string | null;
36
36
  }
37
37
  export interface ListDocumentVersionsRequest {
38
38
  documentId: string;
39
39
  limit?: number;
40
40
  offset?: number;
41
- ksUat?: string;
41
+ ksUat?: string | null;
42
42
  }
43
43
  export interface UpdateDocumentVersionMetadataRequest {
44
44
  versionId: string;
45
45
  documentVersionMetadataUpdate: DocumentVersionMetadataUpdate;
46
- ksUat?: string;
46
+ ksUat?: string | null;
47
47
  }
48
48
  /**
49
49
  * DocumentVersionsApi - interface