@knowledge-stack/ksapi 1.117.0 → 1.119.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 (229) hide show
  1. package/.openapi-generator/FILES +40 -4
  2. package/README.md +27 -4
  3. package/dist/apis/DataSourcesApi.d.ts +211 -9
  4. package/dist/apis/DataSourcesApi.js +260 -4
  5. package/dist/apis/DocumentVersionsApi.d.ts +4 -4
  6. package/dist/apis/DocumentVersionsApi.js +2 -2
  7. package/dist/apis/FoldersApi.d.ts +9 -9
  8. package/dist/apis/FoldersApi.js +2 -2
  9. package/dist/esm/apis/DataSourcesApi.d.ts +211 -9
  10. package/dist/esm/apis/DataSourcesApi.js +261 -5
  11. package/dist/esm/apis/DocumentVersionsApi.d.ts +4 -4
  12. package/dist/esm/apis/DocumentVersionsApi.js +2 -2
  13. package/dist/esm/apis/FoldersApi.d.ts +9 -9
  14. package/dist/esm/apis/FoldersApi.js +3 -3
  15. package/dist/esm/models/BlockChangeType.d.ts +26 -0
  16. package/dist/esm/models/BlockChangeType.js +44 -0
  17. package/dist/esm/models/BlockKind.d.ts +28 -0
  18. package/dist/esm/models/BlockKind.js +46 -0
  19. package/dist/esm/models/BulkModelTablesRequest.d.ts +48 -0
  20. package/dist/esm/models/BulkModelTablesRequest.js +50 -0
  21. package/dist/esm/models/BulkModelTablesResponse.d.ts +48 -0
  22. package/dist/esm/models/BulkModelTablesResponse.js +45 -0
  23. package/dist/esm/models/CellChange.d.ts +47 -0
  24. package/dist/esm/models/CellChange.js +14 -0
  25. package/dist/esm/models/CellDiff.d.ts +7 -0
  26. package/dist/esm/models/CellDiff.js +5 -0
  27. package/dist/esm/models/ChangeClass.d.ts +29 -0
  28. package/dist/esm/models/ChangeClass.js +47 -0
  29. package/dist/esm/models/CloneWorkflowRunRequest.d.ts +1 -1
  30. package/dist/esm/models/DataSourceDescriptionResponse.d.ts +53 -0
  31. package/dist/esm/models/DataSourceDescriptionResponse.js +48 -0
  32. package/dist/esm/models/DataSourceDetailResponse.d.ts +13 -4
  33. package/dist/esm/models/DataSourceDetailResponse.js +6 -4
  34. package/dist/esm/models/DataSourceSchemaListItem.d.ts +53 -0
  35. package/dist/esm/models/DataSourceSchemaListItem.js +48 -0
  36. package/dist/esm/models/DataSourceSchemaListResponse.d.ts +3 -3
  37. package/dist/esm/models/DataSourceSchemaListResponse.js +3 -3
  38. package/dist/esm/models/DataSourceSchemaResponse.d.ts +95 -1
  39. package/dist/esm/models/DataSourceSchemaResponse.js +61 -0
  40. package/dist/esm/models/DataSourceTableResponse.d.ts +8 -5
  41. package/dist/esm/models/DataSourceTableResponse.js +4 -2
  42. package/dist/esm/models/DiffFormat.d.ts +2 -0
  43. package/dist/esm/models/DiffFormat.js +3 -1
  44. package/dist/esm/models/DocumentBlockChange.d.ts +174 -0
  45. package/dist/esm/models/DocumentBlockChange.js +97 -0
  46. package/dist/esm/models/DocumentDiff.d.ts +102 -0
  47. package/dist/esm/models/DocumentDiff.js +77 -0
  48. package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts} +9 -6
  49. package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.js} +11 -6
  50. package/dist/esm/models/InputSnapshot.d.ts +10 -3
  51. package/dist/esm/models/InputSnapshot.js +3 -1
  52. package/dist/esm/models/ModelTableResult.d.ts +81 -0
  53. package/dist/esm/models/ModelTableResult.js +63 -0
  54. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +66 -0
  55. package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js} +12 -12
  56. package/dist/esm/models/PartType.d.ts +1 -0
  57. package/dist/esm/models/PartType.js +1 -0
  58. package/dist/esm/models/PixelRegion.d.ts +65 -0
  59. package/dist/esm/models/PixelRegion.js +56 -0
  60. package/dist/esm/models/ReferenceType.d.ts +1 -0
  61. package/dist/esm/models/ReferenceType.js +1 -0
  62. package/dist/esm/models/RevisionEdit.d.ts +71 -0
  63. package/dist/esm/models/RevisionEdit.js +57 -0
  64. package/dist/esm/models/SearchablePartType.d.ts +2 -0
  65. package/dist/esm/models/SearchablePartType.js +2 -0
  66. package/dist/esm/models/SheetVisibilityChange.d.ts +63 -0
  67. package/dist/esm/models/SheetVisibilityChange.js +52 -0
  68. package/dist/esm/models/StructuredChange.d.ts +69 -0
  69. package/dist/esm/models/StructuredChange.js +57 -0
  70. package/dist/esm/models/StructuredChangeType.d.ts +26 -0
  71. package/dist/esm/models/StructuredChangeType.js +44 -0
  72. package/dist/esm/models/StructuredDiff.d.ts +82 -0
  73. package/dist/esm/models/StructuredDiff.js +65 -0
  74. package/dist/esm/models/TableCellChange.d.ts +72 -0
  75. package/dist/esm/models/TableCellChange.js +61 -0
  76. package/dist/esm/models/UpdateApiConnectionRequest.d.ts +16 -0
  77. package/dist/esm/models/UpdateApiConnectionRequest.js +8 -0
  78. package/dist/esm/models/UpdateDataSourceRequest.d.ts +58 -0
  79. package/dist/esm/models/UpdateDataSourceRequest.js +49 -0
  80. package/dist/esm/models/UpdateWorkflowRunRequest.d.ts +1 -1
  81. package/dist/esm/models/VersionDiffResponse.d.ts +72 -1
  82. package/dist/esm/models/VersionDiffResponse.js +25 -0
  83. package/dist/esm/models/index.d.ts +20 -2
  84. package/dist/esm/models/index.js +20 -2
  85. package/dist/models/BlockChangeType.d.ts +26 -0
  86. package/dist/models/BlockChangeType.js +52 -0
  87. package/dist/models/BlockKind.d.ts +28 -0
  88. package/dist/models/BlockKind.js +54 -0
  89. package/dist/models/BulkModelTablesRequest.d.ts +48 -0
  90. package/dist/models/BulkModelTablesRequest.js +58 -0
  91. package/dist/models/BulkModelTablesResponse.d.ts +48 -0
  92. package/dist/models/BulkModelTablesResponse.js +53 -0
  93. package/dist/models/CellChange.d.ts +47 -0
  94. package/dist/models/CellChange.js +14 -0
  95. package/dist/models/CellDiff.d.ts +7 -0
  96. package/dist/models/CellDiff.js +5 -0
  97. package/dist/models/ChangeClass.d.ts +29 -0
  98. package/dist/models/ChangeClass.js +55 -0
  99. package/dist/models/CloneWorkflowRunRequest.d.ts +1 -1
  100. package/dist/models/DataSourceDescriptionResponse.d.ts +53 -0
  101. package/dist/models/DataSourceDescriptionResponse.js +56 -0
  102. package/dist/models/DataSourceDetailResponse.d.ts +13 -4
  103. package/dist/models/DataSourceDetailResponse.js +6 -4
  104. package/dist/models/DataSourceSchemaListItem.d.ts +53 -0
  105. package/dist/models/DataSourceSchemaListItem.js +56 -0
  106. package/dist/models/DataSourceSchemaListResponse.d.ts +3 -3
  107. package/dist/models/DataSourceSchemaListResponse.js +3 -3
  108. package/dist/models/DataSourceSchemaResponse.d.ts +95 -1
  109. package/dist/models/DataSourceSchemaResponse.js +62 -1
  110. package/dist/models/DataSourceTableResponse.d.ts +8 -5
  111. package/dist/models/DataSourceTableResponse.js +4 -2
  112. package/dist/models/DiffFormat.d.ts +2 -0
  113. package/dist/models/DiffFormat.js +3 -1
  114. package/dist/models/DocumentBlockChange.d.ts +174 -0
  115. package/dist/models/DocumentBlockChange.js +105 -0
  116. package/dist/models/DocumentDiff.d.ts +102 -0
  117. package/dist/models/DocumentDiff.js +85 -0
  118. package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts} +9 -6
  119. package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.js} +15 -10
  120. package/dist/models/InputSnapshot.d.ts +10 -3
  121. package/dist/models/InputSnapshot.js +3 -1
  122. package/dist/models/ModelTableResult.d.ts +81 -0
  123. package/dist/models/ModelTableResult.js +71 -0
  124. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +66 -0
  125. package/dist/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js} +18 -18
  126. package/dist/models/PartType.d.ts +1 -0
  127. package/dist/models/PartType.js +1 -0
  128. package/dist/models/PixelRegion.d.ts +65 -0
  129. package/dist/models/PixelRegion.js +64 -0
  130. package/dist/models/ReferenceType.d.ts +1 -0
  131. package/dist/models/ReferenceType.js +1 -0
  132. package/dist/models/RevisionEdit.d.ts +71 -0
  133. package/dist/models/RevisionEdit.js +65 -0
  134. package/dist/models/SearchablePartType.d.ts +2 -0
  135. package/dist/models/SearchablePartType.js +2 -0
  136. package/dist/models/SheetVisibilityChange.d.ts +63 -0
  137. package/dist/models/SheetVisibilityChange.js +60 -0
  138. package/dist/models/StructuredChange.d.ts +69 -0
  139. package/dist/models/StructuredChange.js +65 -0
  140. package/dist/models/StructuredChangeType.d.ts +26 -0
  141. package/dist/models/StructuredChangeType.js +52 -0
  142. package/dist/models/StructuredDiff.d.ts +82 -0
  143. package/dist/models/StructuredDiff.js +73 -0
  144. package/dist/models/TableCellChange.d.ts +72 -0
  145. package/dist/models/TableCellChange.js +69 -0
  146. package/dist/models/UpdateApiConnectionRequest.d.ts +16 -0
  147. package/dist/models/UpdateApiConnectionRequest.js +8 -0
  148. package/dist/models/UpdateDataSourceRequest.d.ts +58 -0
  149. package/dist/models/UpdateDataSourceRequest.js +57 -0
  150. package/dist/models/UpdateWorkflowRunRequest.d.ts +1 -1
  151. package/dist/models/VersionDiffResponse.d.ts +72 -1
  152. package/dist/models/VersionDiffResponse.js +25 -0
  153. package/dist/models/index.d.ts +20 -2
  154. package/dist/models/index.js +20 -2
  155. package/docs/BlockChangeType.md +32 -0
  156. package/docs/BlockKind.md +32 -0
  157. package/docs/BulkModelTablesRequest.md +35 -0
  158. package/docs/BulkModelTablesResponse.md +35 -0
  159. package/docs/CellChange.md +15 -1
  160. package/docs/CellDiff.md +2 -0
  161. package/docs/ChangeClass.md +33 -0
  162. package/docs/ChunksApi.md +1 -1
  163. package/docs/DataSourceDescriptionResponse.md +37 -0
  164. package/docs/DataSourceDetailResponse.md +5 -3
  165. package/docs/DataSourceSchemaListItem.md +37 -0
  166. package/docs/DataSourceSchemaListResponse.md +1 -1
  167. package/docs/DataSourceSchemaResponse.md +29 -0
  168. package/docs/DataSourceTableResponse.md +3 -3
  169. package/docs/DataSourcesApi.md +394 -2
  170. package/docs/DocumentBlockChange.md +73 -0
  171. package/docs/DocumentDiff.md +51 -0
  172. package/docs/DocumentVersionsApi.md +1 -1
  173. package/docs/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.md → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.md} +12 -6
  174. package/docs/FoldersApi.md +5 -5
  175. package/docs/InputSnapshot.md +1 -1
  176. package/docs/ModelTableResult.md +43 -0
  177. package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.md → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.md} +5 -5
  178. package/docs/PixelRegion.md +41 -0
  179. package/docs/RevisionEdit.md +41 -0
  180. package/docs/SheetVisibilityChange.md +39 -0
  181. package/docs/StructuredChange.md +41 -0
  182. package/docs/StructuredChangeType.md +32 -0
  183. package/docs/StructuredDiff.md +45 -0
  184. package/docs/TableCellChange.md +43 -0
  185. package/docs/UpdateApiConnectionRequest.md +5 -1
  186. package/docs/UpdateDataSourceRequest.md +37 -0
  187. package/docs/VersionDiffResponse.md +23 -1
  188. package/package.json +1 -1
  189. package/src/apis/DataSourcesApi.ts +481 -8
  190. package/src/apis/DocumentVersionsApi.ts +4 -4
  191. package/src/apis/FoldersApi.ts +13 -13
  192. package/src/models/BlockChangeType.ts +54 -0
  193. package/src/models/BlockKind.ts +56 -0
  194. package/src/models/BulkModelTablesRequest.ts +95 -0
  195. package/src/models/BulkModelTablesResponse.ts +91 -0
  196. package/src/models/CellChange.ts +61 -0
  197. package/src/models/CellDiff.ts +16 -0
  198. package/src/models/ChangeClass.ts +57 -0
  199. package/src/models/CloneWorkflowRunRequest.ts +1 -1
  200. package/src/models/DataSourceDescriptionResponse.ts +92 -0
  201. package/src/models/DataSourceDetailResponse.ts +24 -13
  202. package/src/models/DataSourceSchemaListItem.ts +92 -0
  203. package/src/models/DataSourceSchemaListResponse.ts +10 -10
  204. package/src/models/DataSourceSchemaResponse.ts +157 -1
  205. package/src/models/DataSourceTableResponse.ts +11 -7
  206. package/src/models/DiffFormat.ts +3 -1
  207. package/src/models/DocumentBlockChange.ts +297 -0
  208. package/src/models/DocumentDiff.ts +169 -0
  209. package/src/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.ts} +19 -8
  210. package/src/models/InputSnapshot.ts +11 -4
  211. package/src/models/ModelTableResult.ts +136 -0
  212. package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.ts} +25 -25
  213. package/src/models/PartType.ts +1 -0
  214. package/src/models/PixelRegion.ts +110 -0
  215. package/src/models/ReferenceType.ts +1 -0
  216. package/src/models/RevisionEdit.ts +125 -0
  217. package/src/models/SearchablePartType.ts +2 -0
  218. package/src/models/SheetVisibilityChange.ts +105 -0
  219. package/src/models/StructuredChange.ts +123 -0
  220. package/src/models/StructuredChangeType.ts +54 -0
  221. package/src/models/StructuredDiff.ts +140 -0
  222. package/src/models/TableCellChange.ts +129 -0
  223. package/src/models/UpdateApiConnectionRequest.ts +24 -0
  224. package/src/models/UpdateDataSourceRequest.ts +99 -0
  225. package/src/models/UpdateWorkflowRunRequest.ts +1 -1
  226. package/src/models/VersionDiffResponse.ts +112 -1
  227. package/src/models/index.ts +20 -2
  228. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +0 -66
  229. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +0 -66
@@ -235,7 +235,7 @@ export interface DocumentVersionsApiInterface {
235
235
  */
236
236
  getDocumentVersionDiffRequestOpts(requestParameters: GetDocumentVersionDiffRequest): Promise<runtime.RequestOpts>;
237
237
  /**
238
- * Side-by-side diff of a version against a previous one of the same document. Diffs the two versions\' plaintext on the fly (no stored diff), so any pair of versions can be compared. ``from_version_id`` defaults to the immediate predecessor; the first version diffs against empty (all additions). Requires read permission on the document.
238
+ * Side-by-side diff of a version against a previous one of the same document. Diffs the two versions on the fly (no stored diff), so any pair of versions can be compared. ``from_version_id`` defaults to the immediate predecessor; the first version diffs against empty (all additions). Requires read permission on both versions. Viewing a diff is a sensitive read, so it emits a ``document.diff.viewed`` audit event (a durable write on this GET, by design — like a download).
239
239
  * @summary Get Document Version Diff Handler
240
240
  * @param {string} versionId The new (right) version ID
241
241
  * @param {string} [fromVersionId] The old (left) version; defaults to the predecessor
@@ -245,7 +245,7 @@ export interface DocumentVersionsApiInterface {
245
245
  */
246
246
  getDocumentVersionDiffRaw(requestParameters: GetDocumentVersionDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionDiffResponse>>;
247
247
  /**
248
- * Side-by-side diff of a version against a previous one of the same document. Diffs the two versions\' plaintext on the fly (no stored diff), so any pair of versions can be compared. ``from_version_id`` defaults to the immediate predecessor; the first version diffs against empty (all additions). Requires read permission on the document.
248
+ * Side-by-side diff of a version against a previous one of the same document. Diffs the two versions on the fly (no stored diff), so any pair of versions can be compared. ``from_version_id`` defaults to the immediate predecessor; the first version diffs against empty (all additions). Requires read permission on both versions. Viewing a diff is a sensitive read, so it emits a ``document.diff.viewed`` audit event (a durable write on this GET, by design — like a download).
249
249
  * Get Document Version Diff Handler
250
250
  */
251
251
  getDocumentVersionDiff(requestParameters: GetDocumentVersionDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionDiffResponse>;
@@ -417,12 +417,12 @@ export declare class DocumentVersionsApi extends runtime.BaseAPI implements Docu
417
417
  */
418
418
  getDocumentVersionDiffRequestOpts(requestParameters: GetDocumentVersionDiffRequest): Promise<runtime.RequestOpts>;
419
419
  /**
420
- * Side-by-side diff of a version against a previous one of the same document. Diffs the two versions\' plaintext on the fly (no stored diff), so any pair of versions can be compared. ``from_version_id`` defaults to the immediate predecessor; the first version diffs against empty (all additions). Requires read permission on the document.
420
+ * Side-by-side diff of a version against a previous one of the same document. Diffs the two versions on the fly (no stored diff), so any pair of versions can be compared. ``from_version_id`` defaults to the immediate predecessor; the first version diffs against empty (all additions). Requires read permission on both versions. Viewing a diff is a sensitive read, so it emits a ``document.diff.viewed`` audit event (a durable write on this GET, by design — like a download).
421
421
  * Get Document Version Diff Handler
422
422
  */
423
423
  getDocumentVersionDiffRaw(requestParameters: GetDocumentVersionDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionDiffResponse>>;
424
424
  /**
425
- * Side-by-side diff of a version against a previous one of the same document. Diffs the two versions\' plaintext on the fly (no stored diff), so any pair of versions can be compared. ``from_version_id`` defaults to the immediate predecessor; the first version diffs against empty (all additions). Requires read permission on the document.
425
+ * Side-by-side diff of a version against a previous one of the same document. Diffs the two versions on the fly (no stored diff), so any pair of versions can be compared. ``from_version_id`` defaults to the immediate predecessor; the first version diffs against empty (all additions). Requires read permission on both versions. Viewing a diff is a sensitive read, so it emits a ``document.diff.viewed`` audit event (a durable write on this GET, by design — like a download).
426
426
  * Get Document Version Diff Handler
427
427
  */
428
428
  getDocumentVersionDiff(requestParameters: GetDocumentVersionDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionDiffResponse>;
@@ -450,7 +450,7 @@ class DocumentVersionsApi extends runtime.BaseAPI {
450
450
  });
451
451
  }
452
452
  /**
453
- * Side-by-side diff of a version against a previous one of the same document. Diffs the two versions\' plaintext on the fly (no stored diff), so any pair of versions can be compared. ``from_version_id`` defaults to the immediate predecessor; the first version diffs against empty (all additions). Requires read permission on the document.
453
+ * Side-by-side diff of a version against a previous one of the same document. Diffs the two versions on the fly (no stored diff), so any pair of versions can be compared. ``from_version_id`` defaults to the immediate predecessor; the first version diffs against empty (all additions). Requires read permission on both versions. Viewing a diff is a sensitive read, so it emits a ``document.diff.viewed`` audit event (a durable write on this GET, by design — like a download).
454
454
  * Get Document Version Diff Handler
455
455
  */
456
456
  getDocumentVersionDiffRaw(requestParameters, initOverrides) {
@@ -461,7 +461,7 @@ class DocumentVersionsApi extends runtime.BaseAPI {
461
461
  });
462
462
  }
463
463
  /**
464
- * Side-by-side diff of a version against a previous one of the same document. Diffs the two versions\' plaintext on the fly (no stored diff), so any pair of versions can be compared. ``from_version_id`` defaults to the immediate predecessor; the first version diffs against empty (all additions). Requires read permission on the document.
464
+ * Side-by-side diff of a version against a previous one of the same document. Diffs the two versions on the fly (no stored diff), so any pair of versions can be compared. ``from_version_id`` defaults to the immediate predecessor; the first version diffs against empty (all additions). Requires read permission on both versions. Viewing a diff is a sensitive read, so it emits a ``document.diff.viewed`` audit event (a durable write on this GET, by design — like a download).
465
465
  * Get Document Version Diff Handler
466
466
  */
467
467
  getDocumentVersionDiff(requestParameters, initOverrides) {
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateFolderRequest, FolderAction, FolderActionResponse, FolderResponse, PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator, PaginatedResponseFolderResponse, PathOrder, SearchSortOrder, SearchablePartType, SortDirection, UpdateFolderRequest } from '../models/index';
13
+ import type { CreateFolderRequest, FolderAction, FolderActionResponse, FolderResponse, PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator, PaginatedResponseFolderResponse, PathOrder, SearchSortOrder, SearchablePartType, SortDirection, UpdateFolderRequest } from '../models/index';
14
14
  export interface CreateFolderOperationRequest {
15
15
  createFolderRequest: CreateFolderRequest;
16
16
  }
@@ -178,12 +178,12 @@ export interface FoldersApiInterface {
178
178
  * @throws {RequiredError}
179
179
  * @memberof FoldersApiInterface
180
180
  */
181
- listFolderContentsRaw(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
181
+ listFolderContentsRaw(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
182
182
  /**
183
183
  * List all contents (folders and documents) under a folder. Returns a discriminated union of FolderResponse and DocumentResponse items, distinguished by the `part_type` field (\"FOLDER\" or \"DOCUMENT\"). When with_tags=true, each item includes a tags field with the full tag objects. This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
184
184
  * List Folder Contents Handler
185
185
  */
186
- listFolderContents(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
186
+ listFolderContents(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
187
187
  /**
188
188
  * Creates request options for listFolders without sending the request
189
189
  * @param {string} [parentPathPartId] Parent PathPart ID (defaults to root)
@@ -252,12 +252,12 @@ export interface FoldersApiInterface {
252
252
  * @throws {RequiredError}
253
253
  * @memberof FoldersApiInterface
254
254
  */
255
- searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
255
+ searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
256
256
  /**
257
257
  * Search for folders, documents, and connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
258
258
  * Search Items Handler
259
259
  */
260
- searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
260
+ searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
261
261
  /**
262
262
  * Creates request options for updateFolder without sending the request
263
263
  * @param {string} folderId
@@ -348,12 +348,12 @@ export declare class FoldersApi extends runtime.BaseAPI implements FoldersApiInt
348
348
  * List all contents (folders and documents) under a folder. Returns a discriminated union of FolderResponse and DocumentResponse items, distinguished by the `part_type` field (\"FOLDER\" or \"DOCUMENT\"). When with_tags=true, each item includes a tags field with the full tag objects. This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
349
349
  * List Folder Contents Handler
350
350
  */
351
- listFolderContentsRaw(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
351
+ listFolderContentsRaw(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
352
352
  /**
353
353
  * List all contents (folders and documents) under a folder. Returns a discriminated union of FolderResponse and DocumentResponse items, distinguished by the `part_type` field (\"FOLDER\" or \"DOCUMENT\"). When with_tags=true, each item includes a tags field with the full tag objects. This is the preferred way to list folder contents when you need document metadata. For generic path traversal of folders only, use GET /path-parts.
354
354
  * List Folder Contents Handler
355
355
  */
356
- listFolderContents(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
356
+ listFolderContents(requestParameters: ListFolderContentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
357
357
  /**
358
358
  * Creates request options for listFolders without sending the request
359
359
  */
@@ -376,12 +376,12 @@ export declare class FoldersApi extends runtime.BaseAPI implements FoldersApiInt
376
376
  * Search for folders, documents, and connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
377
377
  * Search Items Handler
378
378
  */
379
- searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
379
+ searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
380
380
  /**
381
381
  * Search for folders, documents, and connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
382
382
  * Search Items Handler
383
383
  */
384
- searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
384
+ searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
385
385
  /**
386
386
  * Creates request options for updateFolder without sending the request
387
387
  */
@@ -311,7 +311,7 @@ class FoldersApi extends runtime.BaseAPI {
311
311
  return __awaiter(this, void 0, void 0, function* () {
312
312
  const requestOptions = yield this.listFolderContentsRequestOpts(requestParameters);
313
313
  const response = yield this.request(requestOptions, initOverrides);
314
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminatorFromJSON)(jsonValue));
314
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminatorFromJSON)(jsonValue));
315
315
  });
316
316
  }
317
317
  /**
@@ -456,7 +456,7 @@ class FoldersApi extends runtime.BaseAPI {
456
456
  return __awaiter(this, void 0, void 0, function* () {
457
457
  const requestOptions = yield this.searchItemsRequestOpts(requestParameters);
458
458
  const response = yield this.request(requestOptions, initOverrides);
459
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminatorFromJSON)(jsonValue));
459
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminatorFromJSON)(jsonValue));
460
460
  });
461
461
  }
462
462
  /**
@@ -10,13 +10,24 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateDataSourceRequest, DataSourceCatalogResponse, DataSourceDetailResponse, DataSourceQueryRequest, DataSourceQueryResponse, DataSourceResponse, DataSourceSchemaListResponse, DataSourceTableResponse, ModelTableRequest, UpdateTableRequest } from '../models/index';
13
+ import type { BulkModelTablesRequest, BulkModelTablesResponse, CreateDataSourceRequest, DataSourceCatalogResponse, DataSourceDescriptionResponse, DataSourceDetailResponse, DataSourceQueryRequest, DataSourceQueryResponse, DataSourceResponse, DataSourceSchemaListResponse, DataSourceTableResponse, ModelTableRequest, UpdateDataSourceRequest, UpdateTableRequest } from '../models/index';
14
14
  export interface CreateDataSourceOperationRequest {
15
15
  createDataSourceRequest: CreateDataSourceRequest;
16
16
  }
17
17
  export interface DeleteDataSourceRequest {
18
18
  dataSourceId: string;
19
19
  }
20
+ export interface DeleteDataSourceSchemaRequest {
21
+ dataSourceId: string;
22
+ schemaId: string;
23
+ }
24
+ export interface DeleteDataSourceTableRequest {
25
+ dataSourceId: string;
26
+ tableId: string;
27
+ }
28
+ export interface GenerateDataSourceDescriptionRequest {
29
+ dataSourceId: string;
30
+ }
20
31
  export interface GetDataSourceRequest {
21
32
  dataSourceId: string;
22
33
  }
@@ -31,6 +42,10 @@ export interface ModelDataSourceTableRequest {
31
42
  dataSourceId: string;
32
43
  modelTableRequest: ModelTableRequest;
33
44
  }
45
+ export interface ModelDataSourceTablesRequest {
46
+ dataSourceId: string;
47
+ bulkModelTablesRequest: BulkModelTablesRequest;
48
+ }
34
49
  export interface QueryDataSourceRequest {
35
50
  dataSourceId: string;
36
51
  dataSourceQueryRequest: DataSourceQueryRequest;
@@ -38,6 +53,10 @@ export interface QueryDataSourceRequest {
38
53
  export interface TestDataSourceConnectionRequest {
39
54
  dataSourceId: string;
40
55
  }
56
+ export interface UpdateDataSourceOperationRequest {
57
+ dataSourceId: string;
58
+ updateDataSourceRequest: UpdateDataSourceRequest;
59
+ }
41
60
  export interface UpdateDataSourceTableRequest {
42
61
  dataSourceId: string;
43
62
  tableId: string;
@@ -79,7 +98,7 @@ export interface DataSourcesApiInterface {
79
98
  */
80
99
  deleteDataSourceRequestOpts(requestParameters: DeleteDataSourceRequest): Promise<runtime.RequestOpts>;
81
100
  /**
82
- * Move a connector and its modeled tables to trash. Soft-delete via the path_part subtree (the tables are children, so they trash with it). Connectors carry no Qdrant vectors, so there is no trash-sync workflow.
101
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). The connector\'s generated ``.overview`` description Document IS ingested, so its Qdrant points are flipped to trashed via the set-trashed workflow (best-effort, mirrors the document delete path).
83
102
  * @summary Delete Data Source Handler
84
103
  * @param {string} dataSourceId
85
104
  * @param {*} [options] Override http request option.
@@ -88,10 +107,77 @@ export interface DataSourcesApiInterface {
88
107
  */
89
108
  deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
90
109
  /**
91
- * Move a connector and its modeled tables to trash. Soft-delete via the path_part subtree (the tables are children, so they trash with it). Connectors carry no Qdrant vectors, so there is no trash-sync workflow.
110
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). The connector\'s generated ``.overview`` description Document IS ingested, so its Qdrant points are flipped to trashed via the set-trashed workflow (best-effort, mirrors the document delete path).
92
111
  * Delete Data Source Handler
93
112
  */
94
113
  deleteDataSource(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
114
+ /**
115
+ * Creates request options for deleteDataSourceSchema without sending the request
116
+ * @param {string} dataSourceId
117
+ * @param {string} schemaId
118
+ * @throws {RequiredError}
119
+ * @memberof DataSourcesApiInterface
120
+ */
121
+ deleteDataSourceSchemaRequestOpts(requestParameters: DeleteDataSourceSchemaRequest): Promise<runtime.RequestOpts>;
122
+ /**
123
+ * Un-model a schema and the tables under it (hard-delete the namespace).
124
+ * @summary Delete Data Source Schema Handler
125
+ * @param {string} dataSourceId
126
+ * @param {string} schemaId
127
+ * @param {*} [options] Override http request option.
128
+ * @throws {RequiredError}
129
+ * @memberof DataSourcesApiInterface
130
+ */
131
+ deleteDataSourceSchemaRaw(requestParameters: DeleteDataSourceSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
132
+ /**
133
+ * Un-model a schema and the tables under it (hard-delete the namespace).
134
+ * Delete Data Source Schema Handler
135
+ */
136
+ deleteDataSourceSchema(requestParameters: DeleteDataSourceSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
137
+ /**
138
+ * Creates request options for deleteDataSourceTable without sending the request
139
+ * @param {string} dataSourceId
140
+ * @param {string} tableId
141
+ * @throws {RequiredError}
142
+ * @memberof DataSourcesApiInterface
143
+ */
144
+ deleteDataSourceTableRequestOpts(requestParameters: DeleteDataSourceTableRequest): Promise<runtime.RequestOpts>;
145
+ /**
146
+ * Un-model a single table (hard-delete it from its schema).
147
+ * @summary Delete Data Source Table Handler
148
+ * @param {string} dataSourceId
149
+ * @param {string} tableId
150
+ * @param {*} [options] Override http request option.
151
+ * @throws {RequiredError}
152
+ * @memberof DataSourcesApiInterface
153
+ */
154
+ deleteDataSourceTableRaw(requestParameters: DeleteDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
155
+ /**
156
+ * Un-model a single table (hard-delete it from its schema).
157
+ * Delete Data Source Table Handler
158
+ */
159
+ deleteDataSourceTable(requestParameters: DeleteDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
160
+ /**
161
+ * Creates request options for generateDataSourceDescription without sending the request
162
+ * @param {string} dataSourceId
163
+ * @throws {RequiredError}
164
+ * @memberof DataSourcesApiInterface
165
+ */
166
+ generateDataSourceDescriptionRequestOpts(requestParameters: GenerateDataSourceDescriptionRequest): Promise<runtime.RequestOpts>;
167
+ /**
168
+ * (Re)generate the connector\'s hidden, searchable \'Database overview\' Document. Requires ``can_write`` on the connector. The structural overview is deterministic; an LLM prose summary is prepended best-effort. The document ingests through the normal pipeline so the agent\'s semantic search finds it.
169
+ * @summary Generate Data Source Description Handler
170
+ * @param {string} dataSourceId
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ * @memberof DataSourcesApiInterface
174
+ */
175
+ generateDataSourceDescriptionRaw(requestParameters: GenerateDataSourceDescriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceDescriptionResponse>>;
176
+ /**
177
+ * (Re)generate the connector\'s hidden, searchable \'Database overview\' Document. Requires ``can_write`` on the connector. The structural overview is deterministic; an LLM prose summary is prepended best-effort. The document ingests through the normal pipeline so the agent\'s semantic search finds it.
178
+ * Generate Data Source Description Handler
179
+ */
180
+ generateDataSourceDescription(requestParameters: GenerateDataSourceDescriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceDescriptionResponse>;
95
181
  /**
96
182
  * Creates request options for getDataSource without sending the request
97
183
  * @param {string} dataSourceId
@@ -166,7 +252,7 @@ export interface DataSourcesApiInterface {
166
252
  */
167
253
  modelDataSourceTableRequestOpts(requestParameters: ModelDataSourceTableRequest): Promise<runtime.RequestOpts>;
168
254
  /**
169
- * Model a table as a queryable PathPart child; auto-introspect columns.
255
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
170
256
  * @summary Model Data Source Table Handler
171
257
  * @param {string} dataSourceId
172
258
  * @param {ModelTableRequest} modelTableRequest
@@ -176,10 +262,33 @@ export interface DataSourcesApiInterface {
176
262
  */
177
263
  modelDataSourceTableRaw(requestParameters: ModelDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceTableResponse>>;
178
264
  /**
179
- * Model a table as a queryable PathPart child; auto-introspect columns.
265
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
180
266
  * Model Data Source Table Handler
181
267
  */
182
268
  modelDataSourceTable(requestParameters: ModelDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceTableResponse>;
269
+ /**
270
+ * Creates request options for modelDataSourceTables without sending the request
271
+ * @param {string} dataSourceId
272
+ * @param {BulkModelTablesRequest} bulkModelTablesRequest
273
+ * @throws {RequiredError}
274
+ * @memberof DataSourcesApiInterface
275
+ */
276
+ modelDataSourceTablesRequestOpts(requestParameters: ModelDataSourceTablesRequest): Promise<runtime.RequestOpts>;
277
+ /**
278
+ * Import several tables across one or more schemas; per-item results. Schemas are auto find-or-created. Duplicates are pre-checked against the already-modeled tables and earlier items in the same batch (so a conflict never triggers a failed INSERT, which would otherwise roll back the batch\'s prior writes); introspection failures are reported per item. One bad item never aborts the batch.
279
+ * @summary Model Data Source Tables Handler
280
+ * @param {string} dataSourceId
281
+ * @param {BulkModelTablesRequest} bulkModelTablesRequest
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ * @memberof DataSourcesApiInterface
285
+ */
286
+ modelDataSourceTablesRaw(requestParameters: ModelDataSourceTablesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkModelTablesResponse>>;
287
+ /**
288
+ * Import several tables across one or more schemas; per-item results. Schemas are auto find-or-created. Duplicates are pre-checked against the already-modeled tables and earlier items in the same batch (so a conflict never triggers a failed INSERT, which would otherwise roll back the batch\'s prior writes); introspection failures are reported per item. One bad item never aborts the batch.
289
+ * Model Data Source Tables Handler
290
+ */
291
+ modelDataSourceTables(requestParameters: ModelDataSourceTablesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkModelTablesResponse>;
183
292
  /**
184
293
  * Creates request options for queryDataSource without sending the request
185
294
  * @param {string} dataSourceId
@@ -224,6 +333,29 @@ export interface DataSourcesApiInterface {
224
333
  * Test Data Source Connection Handler
225
334
  */
226
335
  testDataSourceConnection(requestParameters: TestDataSourceConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
336
+ /**
337
+ * Creates request options for updateDataSource without sending the request
338
+ * @param {string} dataSourceId
339
+ * @param {UpdateDataSourceRequest} updateDataSourceRequest
340
+ * @throws {RequiredError}
341
+ * @memberof DataSourcesApiInterface
342
+ */
343
+ updateDataSourceRequestOpts(requestParameters: UpdateDataSourceOperationRequest): Promise<runtime.RequestOpts>;
344
+ /**
345
+ * Rename and/or move a connector. Requires ``can_write`` on the connector (and on the destination folder for a move).
346
+ * @summary Update Data Source Handler
347
+ * @param {string} dataSourceId
348
+ * @param {UpdateDataSourceRequest} updateDataSourceRequest
349
+ * @param {*} [options] Override http request option.
350
+ * @throws {RequiredError}
351
+ * @memberof DataSourcesApiInterface
352
+ */
353
+ updateDataSourceRaw(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceResponse>>;
354
+ /**
355
+ * Rename and/or move a connector. Requires ``can_write`` on the connector (and on the destination folder for a move).
356
+ * Update Data Source Handler
357
+ */
358
+ updateDataSource(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
227
359
  /**
228
360
  * Creates request options for updateDataSourceTable without sending the request
229
361
  * @param {string} dataSourceId
@@ -273,15 +405,57 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
273
405
  */
274
406
  deleteDataSourceRequestOpts(requestParameters: DeleteDataSourceRequest): Promise<runtime.RequestOpts>;
275
407
  /**
276
- * Move a connector and its modeled tables to trash. Soft-delete via the path_part subtree (the tables are children, so they trash with it). Connectors carry no Qdrant vectors, so there is no trash-sync workflow.
408
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). The connector\'s generated ``.overview`` description Document IS ingested, so its Qdrant points are flipped to trashed via the set-trashed workflow (best-effort, mirrors the document delete path).
277
409
  * Delete Data Source Handler
278
410
  */
279
411
  deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
280
412
  /**
281
- * Move a connector and its modeled tables to trash. Soft-delete via the path_part subtree (the tables are children, so they trash with it). Connectors carry no Qdrant vectors, so there is no trash-sync workflow.
413
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). The connector\'s generated ``.overview`` description Document IS ingested, so its Qdrant points are flipped to trashed via the set-trashed workflow (best-effort, mirrors the document delete path).
282
414
  * Delete Data Source Handler
283
415
  */
284
416
  deleteDataSource(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
417
+ /**
418
+ * Creates request options for deleteDataSourceSchema without sending the request
419
+ */
420
+ deleteDataSourceSchemaRequestOpts(requestParameters: DeleteDataSourceSchemaRequest): Promise<runtime.RequestOpts>;
421
+ /**
422
+ * Un-model a schema and the tables under it (hard-delete the namespace).
423
+ * Delete Data Source Schema Handler
424
+ */
425
+ deleteDataSourceSchemaRaw(requestParameters: DeleteDataSourceSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
426
+ /**
427
+ * Un-model a schema and the tables under it (hard-delete the namespace).
428
+ * Delete Data Source Schema Handler
429
+ */
430
+ deleteDataSourceSchema(requestParameters: DeleteDataSourceSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
431
+ /**
432
+ * Creates request options for deleteDataSourceTable without sending the request
433
+ */
434
+ deleteDataSourceTableRequestOpts(requestParameters: DeleteDataSourceTableRequest): Promise<runtime.RequestOpts>;
435
+ /**
436
+ * Un-model a single table (hard-delete it from its schema).
437
+ * Delete Data Source Table Handler
438
+ */
439
+ deleteDataSourceTableRaw(requestParameters: DeleteDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
440
+ /**
441
+ * Un-model a single table (hard-delete it from its schema).
442
+ * Delete Data Source Table Handler
443
+ */
444
+ deleteDataSourceTable(requestParameters: DeleteDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
445
+ /**
446
+ * Creates request options for generateDataSourceDescription without sending the request
447
+ */
448
+ generateDataSourceDescriptionRequestOpts(requestParameters: GenerateDataSourceDescriptionRequest): Promise<runtime.RequestOpts>;
449
+ /**
450
+ * (Re)generate the connector\'s hidden, searchable \'Database overview\' Document. Requires ``can_write`` on the connector. The structural overview is deterministic; an LLM prose summary is prepended best-effort. The document ingests through the normal pipeline so the agent\'s semantic search finds it.
451
+ * Generate Data Source Description Handler
452
+ */
453
+ generateDataSourceDescriptionRaw(requestParameters: GenerateDataSourceDescriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceDescriptionResponse>>;
454
+ /**
455
+ * (Re)generate the connector\'s hidden, searchable \'Database overview\' Document. Requires ``can_write`` on the connector. The structural overview is deterministic; an LLM prose summary is prepended best-effort. The document ingests through the normal pipeline so the agent\'s semantic search finds it.
456
+ * Generate Data Source Description Handler
457
+ */
458
+ generateDataSourceDescription(requestParameters: GenerateDataSourceDescriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceDescriptionResponse>;
285
459
  /**
286
460
  * Creates request options for getDataSource without sending the request
287
461
  */
@@ -329,15 +503,29 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
329
503
  */
330
504
  modelDataSourceTableRequestOpts(requestParameters: ModelDataSourceTableRequest): Promise<runtime.RequestOpts>;
331
505
  /**
332
- * Model a table as a queryable PathPart child; auto-introspect columns.
506
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
333
507
  * Model Data Source Table Handler
334
508
  */
335
509
  modelDataSourceTableRaw(requestParameters: ModelDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceTableResponse>>;
336
510
  /**
337
- * Model a table as a queryable PathPart child; auto-introspect columns.
511
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
338
512
  * Model Data Source Table Handler
339
513
  */
340
514
  modelDataSourceTable(requestParameters: ModelDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceTableResponse>;
515
+ /**
516
+ * Creates request options for modelDataSourceTables without sending the request
517
+ */
518
+ modelDataSourceTablesRequestOpts(requestParameters: ModelDataSourceTablesRequest): Promise<runtime.RequestOpts>;
519
+ /**
520
+ * Import several tables across one or more schemas; per-item results. Schemas are auto find-or-created. Duplicates are pre-checked against the already-modeled tables and earlier items in the same batch (so a conflict never triggers a failed INSERT, which would otherwise roll back the batch\'s prior writes); introspection failures are reported per item. One bad item never aborts the batch.
521
+ * Model Data Source Tables Handler
522
+ */
523
+ modelDataSourceTablesRaw(requestParameters: ModelDataSourceTablesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkModelTablesResponse>>;
524
+ /**
525
+ * Import several tables across one or more schemas; per-item results. Schemas are auto find-or-created. Duplicates are pre-checked against the already-modeled tables and earlier items in the same batch (so a conflict never triggers a failed INSERT, which would otherwise roll back the batch\'s prior writes); introspection failures are reported per item. One bad item never aborts the batch.
526
+ * Model Data Source Tables Handler
527
+ */
528
+ modelDataSourceTables(requestParameters: ModelDataSourceTablesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkModelTablesResponse>;
341
529
  /**
342
530
  * Creates request options for queryDataSource without sending the request
343
531
  */
@@ -366,6 +554,20 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
366
554
  * Test Data Source Connection Handler
367
555
  */
368
556
  testDataSourceConnection(requestParameters: TestDataSourceConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
557
+ /**
558
+ * Creates request options for updateDataSource without sending the request
559
+ */
560
+ updateDataSourceRequestOpts(requestParameters: UpdateDataSourceOperationRequest): Promise<runtime.RequestOpts>;
561
+ /**
562
+ * Rename and/or move a connector. Requires ``can_write`` on the connector (and on the destination folder for a move).
563
+ * Update Data Source Handler
564
+ */
565
+ updateDataSourceRaw(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceResponse>>;
566
+ /**
567
+ * Rename and/or move a connector. Requires ``can_write`` on the connector (and on the destination folder for a move).
568
+ * Update Data Source Handler
569
+ */
570
+ updateDataSource(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
369
571
  /**
370
572
  * Creates request options for updateDataSourceTable without sending the request
371
573
  */