@knowledge-stack/ksapi 1.118.0 → 1.120.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 (259) hide show
  1. package/.openapi-generator/FILES +44 -4
  2. package/README.md +28 -4
  3. package/dist/apis/DataSourcesApi.d.ts +170 -9
  4. package/dist/apis/DataSourcesApi.js +207 -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 +170 -9
  10. package/dist/esm/apis/DataSourcesApi.js +208 -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/CommonFileExclusionReason.d.ts +29 -0
  30. package/dist/esm/models/CommonFileExclusionReason.js +47 -0
  31. package/dist/esm/models/CreateWorkflowDefinitionRequest.d.ts +6 -0
  32. package/dist/esm/models/CreateWorkflowDefinitionRequest.js +6 -0
  33. package/dist/esm/models/DataSourceDescriptionResponse.d.ts +53 -0
  34. package/dist/esm/models/DataSourceDescriptionResponse.js +48 -0
  35. package/dist/esm/models/DataSourceDetailResponse.d.ts +13 -4
  36. package/dist/esm/models/DataSourceDetailResponse.js +6 -4
  37. package/dist/esm/models/DataSourceSchemaListItem.d.ts +53 -0
  38. package/dist/esm/models/DataSourceSchemaListItem.js +48 -0
  39. package/dist/esm/models/DataSourceSchemaListResponse.d.ts +3 -3
  40. package/dist/esm/models/DataSourceSchemaListResponse.js +3 -3
  41. package/dist/esm/models/DataSourceSchemaResponse.d.ts +95 -1
  42. package/dist/esm/models/DataSourceSchemaResponse.js +61 -0
  43. package/dist/esm/models/DataSourceTableResponse.d.ts +8 -5
  44. package/dist/esm/models/DataSourceTableResponse.js +4 -2
  45. package/dist/esm/models/DiffFormat.d.ts +2 -0
  46. package/dist/esm/models/DiffFormat.js +3 -1
  47. package/dist/esm/models/DocumentBlockChange.d.ts +174 -0
  48. package/dist/esm/models/DocumentBlockChange.js +97 -0
  49. package/dist/esm/models/DocumentDiff.d.ts +102 -0
  50. package/dist/esm/models/DocumentDiff.js +77 -0
  51. package/dist/esm/models/ExcludedCommonFile.d.ts +58 -0
  52. package/dist/esm/models/ExcludedCommonFile.js +49 -0
  53. package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts} +9 -6
  54. package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.js} +11 -6
  55. package/dist/esm/models/InputOrigin.d.ts +30 -0
  56. package/dist/esm/models/InputOrigin.js +48 -0
  57. package/dist/esm/models/InputSnapshot.d.ts +7 -0
  58. package/dist/esm/models/InputSnapshot.js +3 -0
  59. package/dist/esm/models/ModelTableResult.d.ts +81 -0
  60. package/dist/esm/models/ModelTableResult.js +63 -0
  61. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +66 -0
  62. package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js} +12 -12
  63. package/dist/esm/models/PartType.d.ts +1 -0
  64. package/dist/esm/models/PartType.js +1 -0
  65. package/dist/esm/models/PixelRegion.d.ts +65 -0
  66. package/dist/esm/models/PixelRegion.js +56 -0
  67. package/dist/esm/models/ReferenceType.d.ts +1 -0
  68. package/dist/esm/models/ReferenceType.js +1 -0
  69. package/dist/esm/models/RevisionEdit.d.ts +71 -0
  70. package/dist/esm/models/RevisionEdit.js +57 -0
  71. package/dist/esm/models/SearchablePartType.d.ts +2 -0
  72. package/dist/esm/models/SearchablePartType.js +2 -0
  73. package/dist/esm/models/SheetVisibilityChange.d.ts +63 -0
  74. package/dist/esm/models/SheetVisibilityChange.js +52 -0
  75. package/dist/esm/models/StructuredChange.d.ts +69 -0
  76. package/dist/esm/models/StructuredChange.js +57 -0
  77. package/dist/esm/models/StructuredChangeType.d.ts +26 -0
  78. package/dist/esm/models/StructuredChangeType.js +44 -0
  79. package/dist/esm/models/StructuredDiff.d.ts +82 -0
  80. package/dist/esm/models/StructuredDiff.js +65 -0
  81. package/dist/esm/models/TableCellChange.d.ts +72 -0
  82. package/dist/esm/models/TableCellChange.js +61 -0
  83. package/dist/esm/models/UpdateWorkflowDefinitionRequest.d.ts +6 -0
  84. package/dist/esm/models/UpdateWorkflowDefinitionRequest.js +6 -0
  85. package/dist/esm/models/VersionDiffResponse.d.ts +72 -1
  86. package/dist/esm/models/VersionDiffResponse.js +25 -0
  87. package/dist/esm/models/WorkflowDefinitionResponse.d.ts +6 -0
  88. package/dist/esm/models/WorkflowDefinitionResponse.js +2 -0
  89. package/dist/esm/models/WorkflowRunResponse.d.ts +7 -0
  90. package/dist/esm/models/WorkflowRunResponse.js +3 -0
  91. package/dist/esm/models/WorkflowRunSnapshot.d.ts +7 -0
  92. package/dist/esm/models/WorkflowRunSnapshot.js +3 -0
  93. package/dist/esm/models/index.d.ts +22 -2
  94. package/dist/esm/models/index.js +22 -2
  95. package/dist/models/BlockChangeType.d.ts +26 -0
  96. package/dist/models/BlockChangeType.js +52 -0
  97. package/dist/models/BlockKind.d.ts +28 -0
  98. package/dist/models/BlockKind.js +54 -0
  99. package/dist/models/BulkModelTablesRequest.d.ts +48 -0
  100. package/dist/models/BulkModelTablesRequest.js +58 -0
  101. package/dist/models/BulkModelTablesResponse.d.ts +48 -0
  102. package/dist/models/BulkModelTablesResponse.js +53 -0
  103. package/dist/models/CellChange.d.ts +47 -0
  104. package/dist/models/CellChange.js +14 -0
  105. package/dist/models/CellDiff.d.ts +7 -0
  106. package/dist/models/CellDiff.js +5 -0
  107. package/dist/models/ChangeClass.d.ts +29 -0
  108. package/dist/models/ChangeClass.js +55 -0
  109. package/dist/models/CommonFileExclusionReason.d.ts +29 -0
  110. package/dist/models/CommonFileExclusionReason.js +55 -0
  111. package/dist/models/CreateWorkflowDefinitionRequest.d.ts +6 -0
  112. package/dist/models/CreateWorkflowDefinitionRequest.js +6 -0
  113. package/dist/models/DataSourceDescriptionResponse.d.ts +53 -0
  114. package/dist/models/DataSourceDescriptionResponse.js +56 -0
  115. package/dist/models/DataSourceDetailResponse.d.ts +13 -4
  116. package/dist/models/DataSourceDetailResponse.js +6 -4
  117. package/dist/models/DataSourceSchemaListItem.d.ts +53 -0
  118. package/dist/models/DataSourceSchemaListItem.js +56 -0
  119. package/dist/models/DataSourceSchemaListResponse.d.ts +3 -3
  120. package/dist/models/DataSourceSchemaListResponse.js +3 -3
  121. package/dist/models/DataSourceSchemaResponse.d.ts +95 -1
  122. package/dist/models/DataSourceSchemaResponse.js +62 -1
  123. package/dist/models/DataSourceTableResponse.d.ts +8 -5
  124. package/dist/models/DataSourceTableResponse.js +4 -2
  125. package/dist/models/DiffFormat.d.ts +2 -0
  126. package/dist/models/DiffFormat.js +3 -1
  127. package/dist/models/DocumentBlockChange.d.ts +174 -0
  128. package/dist/models/DocumentBlockChange.js +105 -0
  129. package/dist/models/DocumentDiff.d.ts +102 -0
  130. package/dist/models/DocumentDiff.js +85 -0
  131. package/dist/models/ExcludedCommonFile.d.ts +58 -0
  132. package/dist/models/ExcludedCommonFile.js +57 -0
  133. package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts} +9 -6
  134. package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.js} +15 -10
  135. package/dist/models/InputOrigin.d.ts +30 -0
  136. package/dist/models/InputOrigin.js +56 -0
  137. package/dist/models/InputSnapshot.d.ts +7 -0
  138. package/dist/models/InputSnapshot.js +3 -0
  139. package/dist/models/ModelTableResult.d.ts +81 -0
  140. package/dist/models/ModelTableResult.js +71 -0
  141. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +66 -0
  142. package/dist/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js} +18 -18
  143. package/dist/models/PartType.d.ts +1 -0
  144. package/dist/models/PartType.js +1 -0
  145. package/dist/models/PixelRegion.d.ts +65 -0
  146. package/dist/models/PixelRegion.js +64 -0
  147. package/dist/models/ReferenceType.d.ts +1 -0
  148. package/dist/models/ReferenceType.js +1 -0
  149. package/dist/models/RevisionEdit.d.ts +71 -0
  150. package/dist/models/RevisionEdit.js +65 -0
  151. package/dist/models/SearchablePartType.d.ts +2 -0
  152. package/dist/models/SearchablePartType.js +2 -0
  153. package/dist/models/SheetVisibilityChange.d.ts +63 -0
  154. package/dist/models/SheetVisibilityChange.js +60 -0
  155. package/dist/models/StructuredChange.d.ts +69 -0
  156. package/dist/models/StructuredChange.js +65 -0
  157. package/dist/models/StructuredChangeType.d.ts +26 -0
  158. package/dist/models/StructuredChangeType.js +52 -0
  159. package/dist/models/StructuredDiff.d.ts +82 -0
  160. package/dist/models/StructuredDiff.js +73 -0
  161. package/dist/models/TableCellChange.d.ts +72 -0
  162. package/dist/models/TableCellChange.js +69 -0
  163. package/dist/models/UpdateWorkflowDefinitionRequest.d.ts +6 -0
  164. package/dist/models/UpdateWorkflowDefinitionRequest.js +6 -0
  165. package/dist/models/VersionDiffResponse.d.ts +72 -1
  166. package/dist/models/VersionDiffResponse.js +25 -0
  167. package/dist/models/WorkflowDefinitionResponse.d.ts +6 -0
  168. package/dist/models/WorkflowDefinitionResponse.js +2 -0
  169. package/dist/models/WorkflowRunResponse.d.ts +7 -0
  170. package/dist/models/WorkflowRunResponse.js +3 -0
  171. package/dist/models/WorkflowRunSnapshot.d.ts +7 -0
  172. package/dist/models/WorkflowRunSnapshot.js +3 -0
  173. package/dist/models/index.d.ts +22 -2
  174. package/dist/models/index.js +22 -2
  175. package/docs/BlockChangeType.md +32 -0
  176. package/docs/BlockKind.md +32 -0
  177. package/docs/BulkModelTablesRequest.md +35 -0
  178. package/docs/BulkModelTablesResponse.md +35 -0
  179. package/docs/CellChange.md +15 -1
  180. package/docs/CellDiff.md +2 -0
  181. package/docs/ChangeClass.md +33 -0
  182. package/docs/ChunksApi.md +1 -1
  183. package/docs/CommonFileExclusionReason.md +33 -0
  184. package/docs/CreateWorkflowDefinitionRequest.md +2 -0
  185. package/docs/DataSourceDescriptionResponse.md +37 -0
  186. package/docs/DataSourceDetailResponse.md +5 -3
  187. package/docs/DataSourceSchemaListItem.md +37 -0
  188. package/docs/DataSourceSchemaListResponse.md +1 -1
  189. package/docs/DataSourceSchemaResponse.md +29 -0
  190. package/docs/DataSourceTableResponse.md +3 -3
  191. package/docs/DataSourcesApi.md +315 -2
  192. package/docs/DocumentBlockChange.md +73 -0
  193. package/docs/DocumentDiff.md +51 -0
  194. package/docs/DocumentVersionsApi.md +1 -1
  195. package/docs/ExcludedCommonFile.md +37 -0
  196. package/docs/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.md → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.md} +16 -6
  197. package/docs/FoldersApi.md +5 -5
  198. package/docs/InputOrigin.md +33 -0
  199. package/docs/InputSnapshot.md +2 -0
  200. package/docs/ModelTableResult.md +43 -0
  201. package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.md → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.md} +5 -5
  202. package/docs/PixelRegion.md +41 -0
  203. package/docs/RevisionEdit.md +41 -0
  204. package/docs/SheetVisibilityChange.md +39 -0
  205. package/docs/StructuredChange.md +41 -0
  206. package/docs/StructuredChangeType.md +32 -0
  207. package/docs/StructuredDiff.md +45 -0
  208. package/docs/TableCellChange.md +43 -0
  209. package/docs/UpdateWorkflowDefinitionRequest.md +2 -0
  210. package/docs/VersionDiffResponse.md +23 -1
  211. package/docs/WorkflowDefinitionResponse.md +2 -0
  212. package/docs/WorkflowRunResponse.md +2 -0
  213. package/docs/WorkflowRunSnapshot.md +2 -0
  214. package/package.json +1 -1
  215. package/src/apis/DataSourcesApi.ts +382 -8
  216. package/src/apis/DocumentVersionsApi.ts +4 -4
  217. package/src/apis/FoldersApi.ts +13 -13
  218. package/src/models/BlockChangeType.ts +54 -0
  219. package/src/models/BlockKind.ts +56 -0
  220. package/src/models/BulkModelTablesRequest.ts +95 -0
  221. package/src/models/BulkModelTablesResponse.ts +91 -0
  222. package/src/models/CellChange.ts +61 -0
  223. package/src/models/CellDiff.ts +16 -0
  224. package/src/models/ChangeClass.ts +57 -0
  225. package/src/models/CommonFileExclusionReason.ts +57 -0
  226. package/src/models/CreateWorkflowDefinitionRequest.ts +12 -0
  227. package/src/models/DataSourceDescriptionResponse.ts +92 -0
  228. package/src/models/DataSourceDetailResponse.ts +24 -13
  229. package/src/models/DataSourceSchemaListItem.ts +92 -0
  230. package/src/models/DataSourceSchemaListResponse.ts +10 -10
  231. package/src/models/DataSourceSchemaResponse.ts +157 -1
  232. package/src/models/DataSourceTableResponse.ts +11 -7
  233. package/src/models/DiffFormat.ts +3 -1
  234. package/src/models/DocumentBlockChange.ts +297 -0
  235. package/src/models/DocumentDiff.ts +169 -0
  236. package/src/models/ExcludedCommonFile.ts +106 -0
  237. package/src/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.ts} +19 -8
  238. package/src/models/InputOrigin.ts +58 -0
  239. package/src/models/InputSnapshot.ts +16 -0
  240. package/src/models/ModelTableResult.ts +136 -0
  241. package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.ts} +25 -25
  242. package/src/models/PartType.ts +1 -0
  243. package/src/models/PixelRegion.ts +110 -0
  244. package/src/models/ReferenceType.ts +1 -0
  245. package/src/models/RevisionEdit.ts +125 -0
  246. package/src/models/SearchablePartType.ts +2 -0
  247. package/src/models/SheetVisibilityChange.ts +105 -0
  248. package/src/models/StructuredChange.ts +123 -0
  249. package/src/models/StructuredChangeType.ts +54 -0
  250. package/src/models/StructuredDiff.ts +140 -0
  251. package/src/models/TableCellChange.ts +129 -0
  252. package/src/models/UpdateWorkflowDefinitionRequest.ts +12 -0
  253. package/src/models/VersionDiffResponse.ts +112 -1
  254. package/src/models/WorkflowDefinitionResponse.ts +8 -0
  255. package/src/models/WorkflowRunResponse.ts +15 -0
  256. package/src/models/WorkflowRunSnapshot.ts +15 -0
  257. package/src/models/index.ts +22 -2
  258. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +0 -66
  259. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +0 -66
@@ -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, UpdateDataSourceRequest, 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;
@@ -83,7 +98,7 @@ export interface DataSourcesApiInterface {
83
98
  */
84
99
  deleteDataSourceRequestOpts(requestParameters: DeleteDataSourceRequest): Promise<runtime.RequestOpts>;
85
100
  /**
86
- * 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).
87
102
  * @summary Delete Data Source Handler
88
103
  * @param {string} dataSourceId
89
104
  * @param {*} [options] Override http request option.
@@ -92,10 +107,77 @@ export interface DataSourcesApiInterface {
92
107
  */
93
108
  deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
94
109
  /**
95
- * 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).
96
111
  * Delete Data Source Handler
97
112
  */
98
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>;
99
181
  /**
100
182
  * Creates request options for getDataSource without sending the request
101
183
  * @param {string} dataSourceId
@@ -170,7 +252,7 @@ export interface DataSourcesApiInterface {
170
252
  */
171
253
  modelDataSourceTableRequestOpts(requestParameters: ModelDataSourceTableRequest): Promise<runtime.RequestOpts>;
172
254
  /**
173
- * Model a table as a queryable PathPart child; auto-introspect columns.
255
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
174
256
  * @summary Model Data Source Table Handler
175
257
  * @param {string} dataSourceId
176
258
  * @param {ModelTableRequest} modelTableRequest
@@ -180,10 +262,33 @@ export interface DataSourcesApiInterface {
180
262
  */
181
263
  modelDataSourceTableRaw(requestParameters: ModelDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceTableResponse>>;
182
264
  /**
183
- * Model a table as a queryable PathPart child; auto-introspect columns.
265
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
184
266
  * Model Data Source Table Handler
185
267
  */
186
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>;
187
292
  /**
188
293
  * Creates request options for queryDataSource without sending the request
189
294
  * @param {string} dataSourceId
@@ -300,15 +405,57 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
300
405
  */
301
406
  deleteDataSourceRequestOpts(requestParameters: DeleteDataSourceRequest): Promise<runtime.RequestOpts>;
302
407
  /**
303
- * 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).
304
409
  * Delete Data Source Handler
305
410
  */
306
411
  deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
307
412
  /**
308
- * 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).
309
414
  * Delete Data Source Handler
310
415
  */
311
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>;
312
459
  /**
313
460
  * Creates request options for getDataSource without sending the request
314
461
  */
@@ -356,15 +503,29 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
356
503
  */
357
504
  modelDataSourceTableRequestOpts(requestParameters: ModelDataSourceTableRequest): Promise<runtime.RequestOpts>;
358
505
  /**
359
- * Model a table as a queryable PathPart child; auto-introspect columns.
506
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
360
507
  * Model Data Source Table Handler
361
508
  */
362
509
  modelDataSourceTableRaw(requestParameters: ModelDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceTableResponse>>;
363
510
  /**
364
- * Model a table as a queryable PathPart child; auto-introspect columns.
511
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
365
512
  * Model Data Source Table Handler
366
513
  */
367
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>;
368
529
  /**
369
530
  * Creates request options for queryDataSource without sending the request
370
531
  */
@@ -139,7 +139,7 @@ class DataSourcesApi extends runtime.BaseAPI {
139
139
  });
140
140
  }
141
141
  /**
142
- * 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.
142
+ * 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).
143
143
  * Delete Data Source Handler
144
144
  */
145
145
  deleteDataSourceRaw(requestParameters, initOverrides) {
@@ -150,7 +150,7 @@ class DataSourcesApi extends runtime.BaseAPI {
150
150
  });
151
151
  }
152
152
  /**
153
- * 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.
153
+ * 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).
154
154
  * Delete Data Source Handler
155
155
  */
156
156
  deleteDataSource(requestParameters, initOverrides) {
@@ -158,6 +158,156 @@ class DataSourcesApi extends runtime.BaseAPI {
158
158
  yield this.deleteDataSourceRaw(requestParameters, initOverrides);
159
159
  });
160
160
  }
161
+ /**
162
+ * Creates request options for deleteDataSourceSchema without sending the request
163
+ */
164
+ deleteDataSourceSchemaRequestOpts(requestParameters) {
165
+ return __awaiter(this, void 0, void 0, function* () {
166
+ if (requestParameters['dataSourceId'] == null) {
167
+ throw new runtime.RequiredError('dataSourceId', 'Required parameter "dataSourceId" was null or undefined when calling deleteDataSourceSchema().');
168
+ }
169
+ if (requestParameters['schemaId'] == null) {
170
+ throw new runtime.RequiredError('schemaId', 'Required parameter "schemaId" was null or undefined when calling deleteDataSourceSchema().');
171
+ }
172
+ const queryParameters = {};
173
+ const headerParameters = {};
174
+ if (this.configuration && this.configuration.accessToken) {
175
+ const token = this.configuration.accessToken;
176
+ const tokenString = yield token("bearerAuth", []);
177
+ if (tokenString) {
178
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
179
+ }
180
+ }
181
+ let urlPath = `/v1/data-sources/{data_source_id}/schemas/{schema_id}`;
182
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
183
+ urlPath = urlPath.replace(`{${"schema_id"}}`, encodeURIComponent(String(requestParameters['schemaId'])));
184
+ return {
185
+ path: urlPath,
186
+ method: 'DELETE',
187
+ headers: headerParameters,
188
+ query: queryParameters,
189
+ };
190
+ });
191
+ }
192
+ /**
193
+ * Un-model a schema and the tables under it (hard-delete the namespace).
194
+ * Delete Data Source Schema Handler
195
+ */
196
+ deleteDataSourceSchemaRaw(requestParameters, initOverrides) {
197
+ return __awaiter(this, void 0, void 0, function* () {
198
+ const requestOptions = yield this.deleteDataSourceSchemaRequestOpts(requestParameters);
199
+ const response = yield this.request(requestOptions, initOverrides);
200
+ return new runtime.VoidApiResponse(response);
201
+ });
202
+ }
203
+ /**
204
+ * Un-model a schema and the tables under it (hard-delete the namespace).
205
+ * Delete Data Source Schema Handler
206
+ */
207
+ deleteDataSourceSchema(requestParameters, initOverrides) {
208
+ return __awaiter(this, void 0, void 0, function* () {
209
+ yield this.deleteDataSourceSchemaRaw(requestParameters, initOverrides);
210
+ });
211
+ }
212
+ /**
213
+ * Creates request options for deleteDataSourceTable without sending the request
214
+ */
215
+ deleteDataSourceTableRequestOpts(requestParameters) {
216
+ return __awaiter(this, void 0, void 0, function* () {
217
+ if (requestParameters['dataSourceId'] == null) {
218
+ throw new runtime.RequiredError('dataSourceId', 'Required parameter "dataSourceId" was null or undefined when calling deleteDataSourceTable().');
219
+ }
220
+ if (requestParameters['tableId'] == null) {
221
+ throw new runtime.RequiredError('tableId', 'Required parameter "tableId" was null or undefined when calling deleteDataSourceTable().');
222
+ }
223
+ const queryParameters = {};
224
+ const headerParameters = {};
225
+ if (this.configuration && this.configuration.accessToken) {
226
+ const token = this.configuration.accessToken;
227
+ const tokenString = yield token("bearerAuth", []);
228
+ if (tokenString) {
229
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
230
+ }
231
+ }
232
+ let urlPath = `/v1/data-sources/{data_source_id}/tables/{table_id}`;
233
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
234
+ urlPath = urlPath.replace(`{${"table_id"}}`, encodeURIComponent(String(requestParameters['tableId'])));
235
+ return {
236
+ path: urlPath,
237
+ method: 'DELETE',
238
+ headers: headerParameters,
239
+ query: queryParameters,
240
+ };
241
+ });
242
+ }
243
+ /**
244
+ * Un-model a single table (hard-delete it from its schema).
245
+ * Delete Data Source Table Handler
246
+ */
247
+ deleteDataSourceTableRaw(requestParameters, initOverrides) {
248
+ return __awaiter(this, void 0, void 0, function* () {
249
+ const requestOptions = yield this.deleteDataSourceTableRequestOpts(requestParameters);
250
+ const response = yield this.request(requestOptions, initOverrides);
251
+ return new runtime.VoidApiResponse(response);
252
+ });
253
+ }
254
+ /**
255
+ * Un-model a single table (hard-delete it from its schema).
256
+ * Delete Data Source Table Handler
257
+ */
258
+ deleteDataSourceTable(requestParameters, initOverrides) {
259
+ return __awaiter(this, void 0, void 0, function* () {
260
+ yield this.deleteDataSourceTableRaw(requestParameters, initOverrides);
261
+ });
262
+ }
263
+ /**
264
+ * Creates request options for generateDataSourceDescription without sending the request
265
+ */
266
+ generateDataSourceDescriptionRequestOpts(requestParameters) {
267
+ return __awaiter(this, void 0, void 0, function* () {
268
+ if (requestParameters['dataSourceId'] == null) {
269
+ throw new runtime.RequiredError('dataSourceId', 'Required parameter "dataSourceId" was null or undefined when calling generateDataSourceDescription().');
270
+ }
271
+ const queryParameters = {};
272
+ const headerParameters = {};
273
+ if (this.configuration && this.configuration.accessToken) {
274
+ const token = this.configuration.accessToken;
275
+ const tokenString = yield token("bearerAuth", []);
276
+ if (tokenString) {
277
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
278
+ }
279
+ }
280
+ let urlPath = `/v1/data-sources/{data_source_id}/describe`;
281
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
282
+ return {
283
+ path: urlPath,
284
+ method: 'POST',
285
+ headers: headerParameters,
286
+ query: queryParameters,
287
+ };
288
+ });
289
+ }
290
+ /**
291
+ * (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.
292
+ * Generate Data Source Description Handler
293
+ */
294
+ generateDataSourceDescriptionRaw(requestParameters, initOverrides) {
295
+ return __awaiter(this, void 0, void 0, function* () {
296
+ const requestOptions = yield this.generateDataSourceDescriptionRequestOpts(requestParameters);
297
+ const response = yield this.request(requestOptions, initOverrides);
298
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DataSourceDescriptionResponseFromJSON)(jsonValue));
299
+ });
300
+ }
301
+ /**
302
+ * (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.
303
+ * Generate Data Source Description Handler
304
+ */
305
+ generateDataSourceDescription(requestParameters, initOverrides) {
306
+ return __awaiter(this, void 0, void 0, function* () {
307
+ const response = yield this.generateDataSourceDescriptionRaw(requestParameters, initOverrides);
308
+ return yield response.value();
309
+ });
310
+ }
161
311
  /**
162
312
  * Creates request options for getDataSource without sending the request
163
313
  */
@@ -338,7 +488,7 @@ class DataSourcesApi extends runtime.BaseAPI {
338
488
  });
339
489
  }
340
490
  /**
341
- * Model a table as a queryable PathPart child; auto-introspect columns.
491
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
342
492
  * Model Data Source Table Handler
343
493
  */
344
494
  modelDataSourceTableRaw(requestParameters, initOverrides) {
@@ -349,7 +499,7 @@ class DataSourcesApi extends runtime.BaseAPI {
349
499
  });
350
500
  }
351
501
  /**
352
- * Model a table as a queryable PathPart child; auto-introspect columns.
502
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
353
503
  * Model Data Source Table Handler
354
504
  */
355
505
  modelDataSourceTable(requestParameters, initOverrides) {
@@ -358,6 +508,59 @@ class DataSourcesApi extends runtime.BaseAPI {
358
508
  return yield response.value();
359
509
  });
360
510
  }
511
+ /**
512
+ * Creates request options for modelDataSourceTables without sending the request
513
+ */
514
+ modelDataSourceTablesRequestOpts(requestParameters) {
515
+ return __awaiter(this, void 0, void 0, function* () {
516
+ if (requestParameters['dataSourceId'] == null) {
517
+ throw new runtime.RequiredError('dataSourceId', 'Required parameter "dataSourceId" was null or undefined when calling modelDataSourceTables().');
518
+ }
519
+ if (requestParameters['bulkModelTablesRequest'] == null) {
520
+ throw new runtime.RequiredError('bulkModelTablesRequest', 'Required parameter "bulkModelTablesRequest" was null or undefined when calling modelDataSourceTables().');
521
+ }
522
+ const queryParameters = {};
523
+ const headerParameters = {};
524
+ headerParameters['Content-Type'] = 'application/json';
525
+ if (this.configuration && this.configuration.accessToken) {
526
+ const token = this.configuration.accessToken;
527
+ const tokenString = yield token("bearerAuth", []);
528
+ if (tokenString) {
529
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
530
+ }
531
+ }
532
+ let urlPath = `/v1/data-sources/{data_source_id}/tables/batch`;
533
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
534
+ return {
535
+ path: urlPath,
536
+ method: 'POST',
537
+ headers: headerParameters,
538
+ query: queryParameters,
539
+ body: (0, index_1.BulkModelTablesRequestToJSON)(requestParameters['bulkModelTablesRequest']),
540
+ };
541
+ });
542
+ }
543
+ /**
544
+ * 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.
545
+ * Model Data Source Tables Handler
546
+ */
547
+ modelDataSourceTablesRaw(requestParameters, initOverrides) {
548
+ return __awaiter(this, void 0, void 0, function* () {
549
+ const requestOptions = yield this.modelDataSourceTablesRequestOpts(requestParameters);
550
+ const response = yield this.request(requestOptions, initOverrides);
551
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BulkModelTablesResponseFromJSON)(jsonValue));
552
+ });
553
+ }
554
+ /**
555
+ * 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.
556
+ * Model Data Source Tables Handler
557
+ */
558
+ modelDataSourceTables(requestParameters, initOverrides) {
559
+ return __awaiter(this, void 0, void 0, function* () {
560
+ const response = yield this.modelDataSourceTablesRaw(requestParameters, initOverrides);
561
+ return yield response.value();
562
+ });
563
+ }
361
564
  /**
362
565
  * Creates request options for queryDataSource without sending the request
363
566
  */
@@ -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) {