@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
@@ -15,8 +15,11 @@
15
15
 
16
16
  import * as runtime from '../runtime';
17
17
  import type {
18
+ BulkModelTablesRequest,
19
+ BulkModelTablesResponse,
18
20
  CreateDataSourceRequest,
19
21
  DataSourceCatalogResponse,
22
+ DataSourceDescriptionResponse,
20
23
  DataSourceDetailResponse,
21
24
  DataSourceQueryRequest,
22
25
  DataSourceQueryResponse,
@@ -26,13 +29,20 @@ import type {
26
29
  ErrorResponse,
27
30
  HTTPValidationError,
28
31
  ModelTableRequest,
32
+ UpdateDataSourceRequest,
29
33
  UpdateTableRequest,
30
34
  } from '../models/index';
31
35
  import {
36
+ BulkModelTablesRequestFromJSON,
37
+ BulkModelTablesRequestToJSON,
38
+ BulkModelTablesResponseFromJSON,
39
+ BulkModelTablesResponseToJSON,
32
40
  CreateDataSourceRequestFromJSON,
33
41
  CreateDataSourceRequestToJSON,
34
42
  DataSourceCatalogResponseFromJSON,
35
43
  DataSourceCatalogResponseToJSON,
44
+ DataSourceDescriptionResponseFromJSON,
45
+ DataSourceDescriptionResponseToJSON,
36
46
  DataSourceDetailResponseFromJSON,
37
47
  DataSourceDetailResponseToJSON,
38
48
  DataSourceQueryRequestFromJSON,
@@ -51,6 +61,8 @@ import {
51
61
  HTTPValidationErrorToJSON,
52
62
  ModelTableRequestFromJSON,
53
63
  ModelTableRequestToJSON,
64
+ UpdateDataSourceRequestFromJSON,
65
+ UpdateDataSourceRequestToJSON,
54
66
  UpdateTableRequestFromJSON,
55
67
  UpdateTableRequestToJSON,
56
68
  } from '../models/index';
@@ -63,6 +75,20 @@ export interface DeleteDataSourceRequest {
63
75
  dataSourceId: string;
64
76
  }
65
77
 
78
+ export interface DeleteDataSourceSchemaRequest {
79
+ dataSourceId: string;
80
+ schemaId: string;
81
+ }
82
+
83
+ export interface DeleteDataSourceTableRequest {
84
+ dataSourceId: string;
85
+ tableId: string;
86
+ }
87
+
88
+ export interface GenerateDataSourceDescriptionRequest {
89
+ dataSourceId: string;
90
+ }
91
+
66
92
  export interface GetDataSourceRequest {
67
93
  dataSourceId: string;
68
94
  }
@@ -81,6 +107,11 @@ export interface ModelDataSourceTableRequest {
81
107
  modelTableRequest: ModelTableRequest;
82
108
  }
83
109
 
110
+ export interface ModelDataSourceTablesRequest {
111
+ dataSourceId: string;
112
+ bulkModelTablesRequest: BulkModelTablesRequest;
113
+ }
114
+
84
115
  export interface QueryDataSourceRequest {
85
116
  dataSourceId: string;
86
117
  dataSourceQueryRequest: DataSourceQueryRequest;
@@ -90,6 +121,11 @@ export interface TestDataSourceConnectionRequest {
90
121
  dataSourceId: string;
91
122
  }
92
123
 
124
+ export interface UpdateDataSourceOperationRequest {
125
+ dataSourceId: string;
126
+ updateDataSourceRequest: UpdateDataSourceRequest;
127
+ }
128
+
93
129
  export interface UpdateDataSourceTableRequest {
94
130
  dataSourceId: string;
95
131
  tableId: string;
@@ -136,7 +172,7 @@ export interface DataSourcesApiInterface {
136
172
  deleteDataSourceRequestOpts(requestParameters: DeleteDataSourceRequest): Promise<runtime.RequestOpts>;
137
173
 
138
174
  /**
139
- * 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.
175
+ * 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).
140
176
  * @summary Delete Data Source Handler
141
177
  * @param {string} dataSourceId
142
178
  * @param {*} [options] Override http request option.
@@ -146,11 +182,87 @@ export interface DataSourcesApiInterface {
146
182
  deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
147
183
 
148
184
  /**
149
- * 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.
185
+ * 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).
150
186
  * Delete Data Source Handler
151
187
  */
152
188
  deleteDataSource(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
153
189
 
190
+ /**
191
+ * Creates request options for deleteDataSourceSchema without sending the request
192
+ * @param {string} dataSourceId
193
+ * @param {string} schemaId
194
+ * @throws {RequiredError}
195
+ * @memberof DataSourcesApiInterface
196
+ */
197
+ deleteDataSourceSchemaRequestOpts(requestParameters: DeleteDataSourceSchemaRequest): Promise<runtime.RequestOpts>;
198
+
199
+ /**
200
+ * Un-model a schema and the tables under it (hard-delete the namespace).
201
+ * @summary Delete Data Source Schema Handler
202
+ * @param {string} dataSourceId
203
+ * @param {string} schemaId
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ * @memberof DataSourcesApiInterface
207
+ */
208
+ deleteDataSourceSchemaRaw(requestParameters: DeleteDataSourceSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
209
+
210
+ /**
211
+ * Un-model a schema and the tables under it (hard-delete the namespace).
212
+ * Delete Data Source Schema Handler
213
+ */
214
+ deleteDataSourceSchema(requestParameters: DeleteDataSourceSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
215
+
216
+ /**
217
+ * Creates request options for deleteDataSourceTable without sending the request
218
+ * @param {string} dataSourceId
219
+ * @param {string} tableId
220
+ * @throws {RequiredError}
221
+ * @memberof DataSourcesApiInterface
222
+ */
223
+ deleteDataSourceTableRequestOpts(requestParameters: DeleteDataSourceTableRequest): Promise<runtime.RequestOpts>;
224
+
225
+ /**
226
+ * Un-model a single table (hard-delete it from its schema).
227
+ * @summary Delete Data Source Table Handler
228
+ * @param {string} dataSourceId
229
+ * @param {string} tableId
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ * @memberof DataSourcesApiInterface
233
+ */
234
+ deleteDataSourceTableRaw(requestParameters: DeleteDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
235
+
236
+ /**
237
+ * Un-model a single table (hard-delete it from its schema).
238
+ * Delete Data Source Table Handler
239
+ */
240
+ deleteDataSourceTable(requestParameters: DeleteDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
241
+
242
+ /**
243
+ * Creates request options for generateDataSourceDescription without sending the request
244
+ * @param {string} dataSourceId
245
+ * @throws {RequiredError}
246
+ * @memberof DataSourcesApiInterface
247
+ */
248
+ generateDataSourceDescriptionRequestOpts(requestParameters: GenerateDataSourceDescriptionRequest): Promise<runtime.RequestOpts>;
249
+
250
+ /**
251
+ * (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.
252
+ * @summary Generate Data Source Description Handler
253
+ * @param {string} dataSourceId
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ * @memberof DataSourcesApiInterface
257
+ */
258
+ generateDataSourceDescriptionRaw(requestParameters: GenerateDataSourceDescriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceDescriptionResponse>>;
259
+
260
+ /**
261
+ * (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.
262
+ * Generate Data Source Description Handler
263
+ */
264
+ generateDataSourceDescription(requestParameters: GenerateDataSourceDescriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceDescriptionResponse>;
265
+
154
266
  /**
155
267
  * Creates request options for getDataSource without sending the request
156
268
  * @param {string} dataSourceId
@@ -235,7 +347,7 @@ export interface DataSourcesApiInterface {
235
347
  modelDataSourceTableRequestOpts(requestParameters: ModelDataSourceTableRequest): Promise<runtime.RequestOpts>;
236
348
 
237
349
  /**
238
- * Model a table as a queryable PathPart child; auto-introspect columns.
350
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
239
351
  * @summary Model Data Source Table Handler
240
352
  * @param {string} dataSourceId
241
353
  * @param {ModelTableRequest} modelTableRequest
@@ -246,11 +358,37 @@ export interface DataSourcesApiInterface {
246
358
  modelDataSourceTableRaw(requestParameters: ModelDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceTableResponse>>;
247
359
 
248
360
  /**
249
- * Model a table as a queryable PathPart child; auto-introspect columns.
361
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
250
362
  * Model Data Source Table Handler
251
363
  */
252
364
  modelDataSourceTable(requestParameters: ModelDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceTableResponse>;
253
365
 
366
+ /**
367
+ * Creates request options for modelDataSourceTables without sending the request
368
+ * @param {string} dataSourceId
369
+ * @param {BulkModelTablesRequest} bulkModelTablesRequest
370
+ * @throws {RequiredError}
371
+ * @memberof DataSourcesApiInterface
372
+ */
373
+ modelDataSourceTablesRequestOpts(requestParameters: ModelDataSourceTablesRequest): Promise<runtime.RequestOpts>;
374
+
375
+ /**
376
+ * 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.
377
+ * @summary Model Data Source Tables Handler
378
+ * @param {string} dataSourceId
379
+ * @param {BulkModelTablesRequest} bulkModelTablesRequest
380
+ * @param {*} [options] Override http request option.
381
+ * @throws {RequiredError}
382
+ * @memberof DataSourcesApiInterface
383
+ */
384
+ modelDataSourceTablesRaw(requestParameters: ModelDataSourceTablesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkModelTablesResponse>>;
385
+
386
+ /**
387
+ * 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.
388
+ * Model Data Source Tables Handler
389
+ */
390
+ modelDataSourceTables(requestParameters: ModelDataSourceTablesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkModelTablesResponse>;
391
+
254
392
  /**
255
393
  * Creates request options for queryDataSource without sending the request
256
394
  * @param {string} dataSourceId
@@ -301,6 +439,32 @@ export interface DataSourcesApiInterface {
301
439
  */
302
440
  testDataSourceConnection(requestParameters: TestDataSourceConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
303
441
 
442
+ /**
443
+ * Creates request options for updateDataSource without sending the request
444
+ * @param {string} dataSourceId
445
+ * @param {UpdateDataSourceRequest} updateDataSourceRequest
446
+ * @throws {RequiredError}
447
+ * @memberof DataSourcesApiInterface
448
+ */
449
+ updateDataSourceRequestOpts(requestParameters: UpdateDataSourceOperationRequest): Promise<runtime.RequestOpts>;
450
+
451
+ /**
452
+ * Rename and/or move a connector. Requires ``can_write`` on the connector (and on the destination folder for a move).
453
+ * @summary Update Data Source Handler
454
+ * @param {string} dataSourceId
455
+ * @param {UpdateDataSourceRequest} updateDataSourceRequest
456
+ * @param {*} [options] Override http request option.
457
+ * @throws {RequiredError}
458
+ * @memberof DataSourcesApiInterface
459
+ */
460
+ updateDataSourceRaw(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceResponse>>;
461
+
462
+ /**
463
+ * Rename and/or move a connector. Requires ``can_write`` on the connector (and on the destination folder for a move).
464
+ * Update Data Source Handler
465
+ */
466
+ updateDataSource(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
467
+
304
468
  /**
305
469
  * Creates request options for updateDataSourceTable without sending the request
306
470
  * @param {string} dataSourceId
@@ -429,7 +593,7 @@ export class DataSourcesApi extends runtime.BaseAPI implements DataSourcesApiInt
429
593
  }
430
594
 
431
595
  /**
432
- * 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.
596
+ * 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).
433
597
  * Delete Data Source Handler
434
598
  */
435
599
  async deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
@@ -440,13 +604,192 @@ export class DataSourcesApi extends runtime.BaseAPI implements DataSourcesApiInt
440
604
  }
441
605
 
442
606
  /**
443
- * 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.
607
+ * 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).
444
608
  * Delete Data Source Handler
445
609
  */
446
610
  async deleteDataSource(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
447
611
  await this.deleteDataSourceRaw(requestParameters, initOverrides);
448
612
  }
449
613
 
614
+ /**
615
+ * Creates request options for deleteDataSourceSchema without sending the request
616
+ */
617
+ async deleteDataSourceSchemaRequestOpts(requestParameters: DeleteDataSourceSchemaRequest): Promise<runtime.RequestOpts> {
618
+ if (requestParameters['dataSourceId'] == null) {
619
+ throw new runtime.RequiredError(
620
+ 'dataSourceId',
621
+ 'Required parameter "dataSourceId" was null or undefined when calling deleteDataSourceSchema().'
622
+ );
623
+ }
624
+
625
+ if (requestParameters['schemaId'] == null) {
626
+ throw new runtime.RequiredError(
627
+ 'schemaId',
628
+ 'Required parameter "schemaId" was null or undefined when calling deleteDataSourceSchema().'
629
+ );
630
+ }
631
+
632
+ const queryParameters: any = {};
633
+
634
+ const headerParameters: runtime.HTTPHeaders = {};
635
+
636
+ if (this.configuration && this.configuration.accessToken) {
637
+ const token = this.configuration.accessToken;
638
+ const tokenString = await token("bearerAuth", []);
639
+
640
+ if (tokenString) {
641
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
642
+ }
643
+ }
644
+
645
+ let urlPath = `/v1/data-sources/{data_source_id}/schemas/{schema_id}`;
646
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
647
+ urlPath = urlPath.replace(`{${"schema_id"}}`, encodeURIComponent(String(requestParameters['schemaId'])));
648
+
649
+ return {
650
+ path: urlPath,
651
+ method: 'DELETE',
652
+ headers: headerParameters,
653
+ query: queryParameters,
654
+ };
655
+ }
656
+
657
+ /**
658
+ * Un-model a schema and the tables under it (hard-delete the namespace).
659
+ * Delete Data Source Schema Handler
660
+ */
661
+ async deleteDataSourceSchemaRaw(requestParameters: DeleteDataSourceSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
662
+ const requestOptions = await this.deleteDataSourceSchemaRequestOpts(requestParameters);
663
+ const response = await this.request(requestOptions, initOverrides);
664
+
665
+ return new runtime.VoidApiResponse(response);
666
+ }
667
+
668
+ /**
669
+ * Un-model a schema and the tables under it (hard-delete the namespace).
670
+ * Delete Data Source Schema Handler
671
+ */
672
+ async deleteDataSourceSchema(requestParameters: DeleteDataSourceSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
673
+ await this.deleteDataSourceSchemaRaw(requestParameters, initOverrides);
674
+ }
675
+
676
+ /**
677
+ * Creates request options for deleteDataSourceTable without sending the request
678
+ */
679
+ async deleteDataSourceTableRequestOpts(requestParameters: DeleteDataSourceTableRequest): Promise<runtime.RequestOpts> {
680
+ if (requestParameters['dataSourceId'] == null) {
681
+ throw new runtime.RequiredError(
682
+ 'dataSourceId',
683
+ 'Required parameter "dataSourceId" was null or undefined when calling deleteDataSourceTable().'
684
+ );
685
+ }
686
+
687
+ if (requestParameters['tableId'] == null) {
688
+ throw new runtime.RequiredError(
689
+ 'tableId',
690
+ 'Required parameter "tableId" was null or undefined when calling deleteDataSourceTable().'
691
+ );
692
+ }
693
+
694
+ const queryParameters: any = {};
695
+
696
+ const headerParameters: runtime.HTTPHeaders = {};
697
+
698
+ if (this.configuration && this.configuration.accessToken) {
699
+ const token = this.configuration.accessToken;
700
+ const tokenString = await token("bearerAuth", []);
701
+
702
+ if (tokenString) {
703
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
704
+ }
705
+ }
706
+
707
+ let urlPath = `/v1/data-sources/{data_source_id}/tables/{table_id}`;
708
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
709
+ urlPath = urlPath.replace(`{${"table_id"}}`, encodeURIComponent(String(requestParameters['tableId'])));
710
+
711
+ return {
712
+ path: urlPath,
713
+ method: 'DELETE',
714
+ headers: headerParameters,
715
+ query: queryParameters,
716
+ };
717
+ }
718
+
719
+ /**
720
+ * Un-model a single table (hard-delete it from its schema).
721
+ * Delete Data Source Table Handler
722
+ */
723
+ async deleteDataSourceTableRaw(requestParameters: DeleteDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
724
+ const requestOptions = await this.deleteDataSourceTableRequestOpts(requestParameters);
725
+ const response = await this.request(requestOptions, initOverrides);
726
+
727
+ return new runtime.VoidApiResponse(response);
728
+ }
729
+
730
+ /**
731
+ * Un-model a single table (hard-delete it from its schema).
732
+ * Delete Data Source Table Handler
733
+ */
734
+ async deleteDataSourceTable(requestParameters: DeleteDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
735
+ await this.deleteDataSourceTableRaw(requestParameters, initOverrides);
736
+ }
737
+
738
+ /**
739
+ * Creates request options for generateDataSourceDescription without sending the request
740
+ */
741
+ async generateDataSourceDescriptionRequestOpts(requestParameters: GenerateDataSourceDescriptionRequest): Promise<runtime.RequestOpts> {
742
+ if (requestParameters['dataSourceId'] == null) {
743
+ throw new runtime.RequiredError(
744
+ 'dataSourceId',
745
+ 'Required parameter "dataSourceId" was null or undefined when calling generateDataSourceDescription().'
746
+ );
747
+ }
748
+
749
+ const queryParameters: any = {};
750
+
751
+ const headerParameters: runtime.HTTPHeaders = {};
752
+
753
+ if (this.configuration && this.configuration.accessToken) {
754
+ const token = this.configuration.accessToken;
755
+ const tokenString = await token("bearerAuth", []);
756
+
757
+ if (tokenString) {
758
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
759
+ }
760
+ }
761
+
762
+ let urlPath = `/v1/data-sources/{data_source_id}/describe`;
763
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
764
+
765
+ return {
766
+ path: urlPath,
767
+ method: 'POST',
768
+ headers: headerParameters,
769
+ query: queryParameters,
770
+ };
771
+ }
772
+
773
+ /**
774
+ * (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.
775
+ * Generate Data Source Description Handler
776
+ */
777
+ async generateDataSourceDescriptionRaw(requestParameters: GenerateDataSourceDescriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceDescriptionResponse>> {
778
+ const requestOptions = await this.generateDataSourceDescriptionRequestOpts(requestParameters);
779
+ const response = await this.request(requestOptions, initOverrides);
780
+
781
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataSourceDescriptionResponseFromJSON(jsonValue));
782
+ }
783
+
784
+ /**
785
+ * (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.
786
+ * Generate Data Source Description Handler
787
+ */
788
+ async generateDataSourceDescription(requestParameters: GenerateDataSourceDescriptionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceDescriptionResponse> {
789
+ const response = await this.generateDataSourceDescriptionRaw(requestParameters, initOverrides);
790
+ return await response.value();
791
+ }
792
+
450
793
  /**
451
794
  * Creates request options for getDataSource without sending the request
452
795
  */
@@ -662,7 +1005,7 @@ export class DataSourcesApi extends runtime.BaseAPI implements DataSourcesApiInt
662
1005
  }
663
1006
 
664
1007
  /**
665
- * Model a table as a queryable PathPart child; auto-introspect columns.
1008
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
666
1009
  * Model Data Source Table Handler
667
1010
  */
668
1011
  async modelDataSourceTableRaw(requestParameters: ModelDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceTableResponse>> {
@@ -673,7 +1016,7 @@ export class DataSourcesApi extends runtime.BaseAPI implements DataSourcesApiInt
673
1016
  }
674
1017
 
675
1018
  /**
676
- * Model a table as a queryable PathPart child; auto-introspect columns.
1019
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
677
1020
  * Model Data Source Table Handler
678
1021
  */
679
1022
  async modelDataSourceTable(requestParameters: ModelDataSourceTableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceTableResponse> {
@@ -681,6 +1024,71 @@ export class DataSourcesApi extends runtime.BaseAPI implements DataSourcesApiInt
681
1024
  return await response.value();
682
1025
  }
683
1026
 
1027
+ /**
1028
+ * Creates request options for modelDataSourceTables without sending the request
1029
+ */
1030
+ async modelDataSourceTablesRequestOpts(requestParameters: ModelDataSourceTablesRequest): Promise<runtime.RequestOpts> {
1031
+ if (requestParameters['dataSourceId'] == null) {
1032
+ throw new runtime.RequiredError(
1033
+ 'dataSourceId',
1034
+ 'Required parameter "dataSourceId" was null or undefined when calling modelDataSourceTables().'
1035
+ );
1036
+ }
1037
+
1038
+ if (requestParameters['bulkModelTablesRequest'] == null) {
1039
+ throw new runtime.RequiredError(
1040
+ 'bulkModelTablesRequest',
1041
+ 'Required parameter "bulkModelTablesRequest" was null or undefined when calling modelDataSourceTables().'
1042
+ );
1043
+ }
1044
+
1045
+ const queryParameters: any = {};
1046
+
1047
+ const headerParameters: runtime.HTTPHeaders = {};
1048
+
1049
+ headerParameters['Content-Type'] = 'application/json';
1050
+
1051
+ if (this.configuration && this.configuration.accessToken) {
1052
+ const token = this.configuration.accessToken;
1053
+ const tokenString = await token("bearerAuth", []);
1054
+
1055
+ if (tokenString) {
1056
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1057
+ }
1058
+ }
1059
+
1060
+ let urlPath = `/v1/data-sources/{data_source_id}/tables/batch`;
1061
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
1062
+
1063
+ return {
1064
+ path: urlPath,
1065
+ method: 'POST',
1066
+ headers: headerParameters,
1067
+ query: queryParameters,
1068
+ body: BulkModelTablesRequestToJSON(requestParameters['bulkModelTablesRequest']),
1069
+ };
1070
+ }
1071
+
1072
+ /**
1073
+ * 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.
1074
+ * Model Data Source Tables Handler
1075
+ */
1076
+ async modelDataSourceTablesRaw(requestParameters: ModelDataSourceTablesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkModelTablesResponse>> {
1077
+ const requestOptions = await this.modelDataSourceTablesRequestOpts(requestParameters);
1078
+ const response = await this.request(requestOptions, initOverrides);
1079
+
1080
+ return new runtime.JSONApiResponse(response, (jsonValue) => BulkModelTablesResponseFromJSON(jsonValue));
1081
+ }
1082
+
1083
+ /**
1084
+ * 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.
1085
+ * Model Data Source Tables Handler
1086
+ */
1087
+ async modelDataSourceTables(requestParameters: ModelDataSourceTablesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkModelTablesResponse> {
1088
+ const response = await this.modelDataSourceTablesRaw(requestParameters, initOverrides);
1089
+ return await response.value();
1090
+ }
1091
+
684
1092
  /**
685
1093
  * Creates request options for queryDataSource without sending the request
686
1094
  */
@@ -800,6 +1208,71 @@ export class DataSourcesApi extends runtime.BaseAPI implements DataSourcesApiInt
800
1208
  await this.testDataSourceConnectionRaw(requestParameters, initOverrides);
801
1209
  }
802
1210
 
1211
+ /**
1212
+ * Creates request options for updateDataSource without sending the request
1213
+ */
1214
+ async updateDataSourceRequestOpts(requestParameters: UpdateDataSourceOperationRequest): Promise<runtime.RequestOpts> {
1215
+ if (requestParameters['dataSourceId'] == null) {
1216
+ throw new runtime.RequiredError(
1217
+ 'dataSourceId',
1218
+ 'Required parameter "dataSourceId" was null or undefined when calling updateDataSource().'
1219
+ );
1220
+ }
1221
+
1222
+ if (requestParameters['updateDataSourceRequest'] == null) {
1223
+ throw new runtime.RequiredError(
1224
+ 'updateDataSourceRequest',
1225
+ 'Required parameter "updateDataSourceRequest" was null or undefined when calling updateDataSource().'
1226
+ );
1227
+ }
1228
+
1229
+ const queryParameters: any = {};
1230
+
1231
+ const headerParameters: runtime.HTTPHeaders = {};
1232
+
1233
+ headerParameters['Content-Type'] = 'application/json';
1234
+
1235
+ if (this.configuration && this.configuration.accessToken) {
1236
+ const token = this.configuration.accessToken;
1237
+ const tokenString = await token("bearerAuth", []);
1238
+
1239
+ if (tokenString) {
1240
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
1241
+ }
1242
+ }
1243
+
1244
+ let urlPath = `/v1/data-sources/{data_source_id}`;
1245
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
1246
+
1247
+ return {
1248
+ path: urlPath,
1249
+ method: 'PATCH',
1250
+ headers: headerParameters,
1251
+ query: queryParameters,
1252
+ body: UpdateDataSourceRequestToJSON(requestParameters['updateDataSourceRequest']),
1253
+ };
1254
+ }
1255
+
1256
+ /**
1257
+ * Rename and/or move a connector. Requires ``can_write`` on the connector (and on the destination folder for a move).
1258
+ * Update Data Source Handler
1259
+ */
1260
+ async updateDataSourceRaw(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceResponse>> {
1261
+ const requestOptions = await this.updateDataSourceRequestOpts(requestParameters);
1262
+ const response = await this.request(requestOptions, initOverrides);
1263
+
1264
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataSourceResponseFromJSON(jsonValue));
1265
+ }
1266
+
1267
+ /**
1268
+ * Rename and/or move a connector. Requires ``can_write`` on the connector (and on the destination folder for a move).
1269
+ * Update Data Source Handler
1270
+ */
1271
+ async updateDataSource(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse> {
1272
+ const response = await this.updateDataSourceRaw(requestParameters, initOverrides);
1273
+ return await response.value();
1274
+ }
1275
+
803
1276
  /**
804
1277
  * Creates request options for updateDataSourceTable without sending the request
805
1278
  */
@@ -320,7 +320,7 @@ export interface DocumentVersionsApiInterface {
320
320
  getDocumentVersionDiffRequestOpts(requestParameters: GetDocumentVersionDiffRequest): Promise<runtime.RequestOpts>;
321
321
 
322
322
  /**
323
- * 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.
323
+ * 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).
324
324
  * @summary Get Document Version Diff Handler
325
325
  * @param {string} versionId The new (right) version ID
326
326
  * @param {string} [fromVersionId] The old (left) version; defaults to the predecessor
@@ -331,7 +331,7 @@ export interface DocumentVersionsApiInterface {
331
331
  getDocumentVersionDiffRaw(requestParameters: GetDocumentVersionDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionDiffResponse>>;
332
332
 
333
333
  /**
334
- * 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.
334
+ * 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).
335
335
  * Get Document Version Diff Handler
336
336
  */
337
337
  getDocumentVersionDiff(requestParameters: GetDocumentVersionDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionDiffResponse>;
@@ -868,7 +868,7 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
868
868
  }
869
869
 
870
870
  /**
871
- * 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.
871
+ * 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).
872
872
  * Get Document Version Diff Handler
873
873
  */
874
874
  async getDocumentVersionDiffRaw(requestParameters: GetDocumentVersionDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<VersionDiffResponse>> {
@@ -879,7 +879,7 @@ export class DocumentVersionsApi extends runtime.BaseAPI implements DocumentVers
879
879
  }
880
880
 
881
881
  /**
882
- * 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.
882
+ * 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).
883
883
  * Get Document Version Diff Handler
884
884
  */
885
885
  async getDocumentVersionDiff(requestParameters: GetDocumentVersionDiffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<VersionDiffResponse> {