@knowledge-stack/ksapi 1.118.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 (205) hide show
  1. package/.openapi-generator/FILES +38 -4
  2. package/README.md +25 -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/DataSourceDescriptionResponse.d.ts +53 -0
  30. package/dist/esm/models/DataSourceDescriptionResponse.js +48 -0
  31. package/dist/esm/models/DataSourceDetailResponse.d.ts +13 -4
  32. package/dist/esm/models/DataSourceDetailResponse.js +6 -4
  33. package/dist/esm/models/DataSourceSchemaListItem.d.ts +53 -0
  34. package/dist/esm/models/DataSourceSchemaListItem.js +48 -0
  35. package/dist/esm/models/DataSourceSchemaListResponse.d.ts +3 -3
  36. package/dist/esm/models/DataSourceSchemaListResponse.js +3 -3
  37. package/dist/esm/models/DataSourceSchemaResponse.d.ts +95 -1
  38. package/dist/esm/models/DataSourceSchemaResponse.js +61 -0
  39. package/dist/esm/models/DataSourceTableResponse.d.ts +8 -5
  40. package/dist/esm/models/DataSourceTableResponse.js +4 -2
  41. package/dist/esm/models/DiffFormat.d.ts +2 -0
  42. package/dist/esm/models/DiffFormat.js +3 -1
  43. package/dist/esm/models/DocumentBlockChange.d.ts +174 -0
  44. package/dist/esm/models/DocumentBlockChange.js +97 -0
  45. package/dist/esm/models/DocumentDiff.d.ts +102 -0
  46. package/dist/esm/models/DocumentDiff.js +77 -0
  47. package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts} +9 -6
  48. package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.js} +11 -6
  49. package/dist/esm/models/ModelTableResult.d.ts +81 -0
  50. package/dist/esm/models/ModelTableResult.js +63 -0
  51. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +66 -0
  52. package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js} +12 -12
  53. package/dist/esm/models/PartType.d.ts +1 -0
  54. package/dist/esm/models/PartType.js +1 -0
  55. package/dist/esm/models/PixelRegion.d.ts +65 -0
  56. package/dist/esm/models/PixelRegion.js +56 -0
  57. package/dist/esm/models/ReferenceType.d.ts +1 -0
  58. package/dist/esm/models/ReferenceType.js +1 -0
  59. package/dist/esm/models/RevisionEdit.d.ts +71 -0
  60. package/dist/esm/models/RevisionEdit.js +57 -0
  61. package/dist/esm/models/SearchablePartType.d.ts +2 -0
  62. package/dist/esm/models/SearchablePartType.js +2 -0
  63. package/dist/esm/models/SheetVisibilityChange.d.ts +63 -0
  64. package/dist/esm/models/SheetVisibilityChange.js +52 -0
  65. package/dist/esm/models/StructuredChange.d.ts +69 -0
  66. package/dist/esm/models/StructuredChange.js +57 -0
  67. package/dist/esm/models/StructuredChangeType.d.ts +26 -0
  68. package/dist/esm/models/StructuredChangeType.js +44 -0
  69. package/dist/esm/models/StructuredDiff.d.ts +82 -0
  70. package/dist/esm/models/StructuredDiff.js +65 -0
  71. package/dist/esm/models/TableCellChange.d.ts +72 -0
  72. package/dist/esm/models/TableCellChange.js +61 -0
  73. package/dist/esm/models/VersionDiffResponse.d.ts +72 -1
  74. package/dist/esm/models/VersionDiffResponse.js +25 -0
  75. package/dist/esm/models/index.d.ts +19 -2
  76. package/dist/esm/models/index.js +19 -2
  77. package/dist/models/BlockChangeType.d.ts +26 -0
  78. package/dist/models/BlockChangeType.js +52 -0
  79. package/dist/models/BlockKind.d.ts +28 -0
  80. package/dist/models/BlockKind.js +54 -0
  81. package/dist/models/BulkModelTablesRequest.d.ts +48 -0
  82. package/dist/models/BulkModelTablesRequest.js +58 -0
  83. package/dist/models/BulkModelTablesResponse.d.ts +48 -0
  84. package/dist/models/BulkModelTablesResponse.js +53 -0
  85. package/dist/models/CellChange.d.ts +47 -0
  86. package/dist/models/CellChange.js +14 -0
  87. package/dist/models/CellDiff.d.ts +7 -0
  88. package/dist/models/CellDiff.js +5 -0
  89. package/dist/models/ChangeClass.d.ts +29 -0
  90. package/dist/models/ChangeClass.js +55 -0
  91. package/dist/models/DataSourceDescriptionResponse.d.ts +53 -0
  92. package/dist/models/DataSourceDescriptionResponse.js +56 -0
  93. package/dist/models/DataSourceDetailResponse.d.ts +13 -4
  94. package/dist/models/DataSourceDetailResponse.js +6 -4
  95. package/dist/models/DataSourceSchemaListItem.d.ts +53 -0
  96. package/dist/models/DataSourceSchemaListItem.js +56 -0
  97. package/dist/models/DataSourceSchemaListResponse.d.ts +3 -3
  98. package/dist/models/DataSourceSchemaListResponse.js +3 -3
  99. package/dist/models/DataSourceSchemaResponse.d.ts +95 -1
  100. package/dist/models/DataSourceSchemaResponse.js +62 -1
  101. package/dist/models/DataSourceTableResponse.d.ts +8 -5
  102. package/dist/models/DataSourceTableResponse.js +4 -2
  103. package/dist/models/DiffFormat.d.ts +2 -0
  104. package/dist/models/DiffFormat.js +3 -1
  105. package/dist/models/DocumentBlockChange.d.ts +174 -0
  106. package/dist/models/DocumentBlockChange.js +105 -0
  107. package/dist/models/DocumentDiff.d.ts +102 -0
  108. package/dist/models/DocumentDiff.js +85 -0
  109. package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts} +9 -6
  110. package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.js} +15 -10
  111. package/dist/models/ModelTableResult.d.ts +81 -0
  112. package/dist/models/ModelTableResult.js +71 -0
  113. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +66 -0
  114. package/dist/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js} +18 -18
  115. package/dist/models/PartType.d.ts +1 -0
  116. package/dist/models/PartType.js +1 -0
  117. package/dist/models/PixelRegion.d.ts +65 -0
  118. package/dist/models/PixelRegion.js +64 -0
  119. package/dist/models/ReferenceType.d.ts +1 -0
  120. package/dist/models/ReferenceType.js +1 -0
  121. package/dist/models/RevisionEdit.d.ts +71 -0
  122. package/dist/models/RevisionEdit.js +65 -0
  123. package/dist/models/SearchablePartType.d.ts +2 -0
  124. package/dist/models/SearchablePartType.js +2 -0
  125. package/dist/models/SheetVisibilityChange.d.ts +63 -0
  126. package/dist/models/SheetVisibilityChange.js +60 -0
  127. package/dist/models/StructuredChange.d.ts +69 -0
  128. package/dist/models/StructuredChange.js +65 -0
  129. package/dist/models/StructuredChangeType.d.ts +26 -0
  130. package/dist/models/StructuredChangeType.js +52 -0
  131. package/dist/models/StructuredDiff.d.ts +82 -0
  132. package/dist/models/StructuredDiff.js +73 -0
  133. package/dist/models/TableCellChange.d.ts +72 -0
  134. package/dist/models/TableCellChange.js +69 -0
  135. package/dist/models/VersionDiffResponse.d.ts +72 -1
  136. package/dist/models/VersionDiffResponse.js +25 -0
  137. package/dist/models/index.d.ts +19 -2
  138. package/dist/models/index.js +19 -2
  139. package/docs/BlockChangeType.md +32 -0
  140. package/docs/BlockKind.md +32 -0
  141. package/docs/BulkModelTablesRequest.md +35 -0
  142. package/docs/BulkModelTablesResponse.md +35 -0
  143. package/docs/CellChange.md +15 -1
  144. package/docs/CellDiff.md +2 -0
  145. package/docs/ChangeClass.md +33 -0
  146. package/docs/ChunksApi.md +1 -1
  147. package/docs/DataSourceDescriptionResponse.md +37 -0
  148. package/docs/DataSourceDetailResponse.md +5 -3
  149. package/docs/DataSourceSchemaListItem.md +37 -0
  150. package/docs/DataSourceSchemaListResponse.md +1 -1
  151. package/docs/DataSourceSchemaResponse.md +29 -0
  152. package/docs/DataSourceTableResponse.md +3 -3
  153. package/docs/DataSourcesApi.md +315 -2
  154. package/docs/DocumentBlockChange.md +73 -0
  155. package/docs/DocumentDiff.md +51 -0
  156. package/docs/DocumentVersionsApi.md +1 -1
  157. package/docs/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.md → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.md} +12 -6
  158. package/docs/FoldersApi.md +5 -5
  159. package/docs/ModelTableResult.md +43 -0
  160. package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.md → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.md} +5 -5
  161. package/docs/PixelRegion.md +41 -0
  162. package/docs/RevisionEdit.md +41 -0
  163. package/docs/SheetVisibilityChange.md +39 -0
  164. package/docs/StructuredChange.md +41 -0
  165. package/docs/StructuredChangeType.md +32 -0
  166. package/docs/StructuredDiff.md +45 -0
  167. package/docs/TableCellChange.md +43 -0
  168. package/docs/VersionDiffResponse.md +23 -1
  169. package/package.json +1 -1
  170. package/src/apis/DataSourcesApi.ts +382 -8
  171. package/src/apis/DocumentVersionsApi.ts +4 -4
  172. package/src/apis/FoldersApi.ts +13 -13
  173. package/src/models/BlockChangeType.ts +54 -0
  174. package/src/models/BlockKind.ts +56 -0
  175. package/src/models/BulkModelTablesRequest.ts +95 -0
  176. package/src/models/BulkModelTablesResponse.ts +91 -0
  177. package/src/models/CellChange.ts +61 -0
  178. package/src/models/CellDiff.ts +16 -0
  179. package/src/models/ChangeClass.ts +57 -0
  180. package/src/models/DataSourceDescriptionResponse.ts +92 -0
  181. package/src/models/DataSourceDetailResponse.ts +24 -13
  182. package/src/models/DataSourceSchemaListItem.ts +92 -0
  183. package/src/models/DataSourceSchemaListResponse.ts +10 -10
  184. package/src/models/DataSourceSchemaResponse.ts +157 -1
  185. package/src/models/DataSourceTableResponse.ts +11 -7
  186. package/src/models/DiffFormat.ts +3 -1
  187. package/src/models/DocumentBlockChange.ts +297 -0
  188. package/src/models/DocumentDiff.ts +169 -0
  189. package/src/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.ts} +19 -8
  190. package/src/models/ModelTableResult.ts +136 -0
  191. package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.ts} +25 -25
  192. package/src/models/PartType.ts +1 -0
  193. package/src/models/PixelRegion.ts +110 -0
  194. package/src/models/ReferenceType.ts +1 -0
  195. package/src/models/RevisionEdit.ts +125 -0
  196. package/src/models/SearchablePartType.ts +2 -0
  197. package/src/models/SheetVisibilityChange.ts +105 -0
  198. package/src/models/StructuredChange.ts +123 -0
  199. package/src/models/StructuredChangeType.ts +54 -0
  200. package/src/models/StructuredDiff.ts +140 -0
  201. package/src/models/TableCellChange.ts +129 -0
  202. package/src/models/VersionDiffResponse.ts +112 -1
  203. package/src/models/index.ts +19 -2
  204. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +0 -66
  205. 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
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { CreateDataSourceRequestToJSON, DataSourceCatalogResponseFromJSON, DataSourceDetailResponseFromJSON, DataSourceQueryRequestToJSON, DataSourceQueryResponseFromJSON, DataSourceResponseFromJSON, DataSourceSchemaListResponseFromJSON, DataSourceTableResponseFromJSON, ModelTableRequestToJSON, UpdateDataSourceRequestToJSON, UpdateTableRequestToJSON, } from '../models/index';
24
+ import { BulkModelTablesRequestToJSON, BulkModelTablesResponseFromJSON, CreateDataSourceRequestToJSON, DataSourceCatalogResponseFromJSON, DataSourceDescriptionResponseFromJSON, DataSourceDetailResponseFromJSON, DataSourceQueryRequestToJSON, DataSourceQueryResponseFromJSON, DataSourceResponseFromJSON, DataSourceSchemaListResponseFromJSON, DataSourceTableResponseFromJSON, ModelTableRequestToJSON, UpdateDataSourceRequestToJSON, UpdateTableRequestToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -103,7 +103,7 @@ export class DataSourcesApi extends runtime.BaseAPI {
103
103
  });
104
104
  }
105
105
  /**
106
- * 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.
106
+ * 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).
107
107
  * Delete Data Source Handler
108
108
  */
109
109
  deleteDataSourceRaw(requestParameters, initOverrides) {
@@ -114,7 +114,7 @@ export class DataSourcesApi extends runtime.BaseAPI {
114
114
  });
115
115
  }
116
116
  /**
117
- * 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.
117
+ * 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).
118
118
  * Delete Data Source Handler
119
119
  */
120
120
  deleteDataSource(requestParameters, initOverrides) {
@@ -122,6 +122,156 @@ export class DataSourcesApi extends runtime.BaseAPI {
122
122
  yield this.deleteDataSourceRaw(requestParameters, initOverrides);
123
123
  });
124
124
  }
125
+ /**
126
+ * Creates request options for deleteDataSourceSchema without sending the request
127
+ */
128
+ deleteDataSourceSchemaRequestOpts(requestParameters) {
129
+ return __awaiter(this, void 0, void 0, function* () {
130
+ if (requestParameters['dataSourceId'] == null) {
131
+ throw new runtime.RequiredError('dataSourceId', 'Required parameter "dataSourceId" was null or undefined when calling deleteDataSourceSchema().');
132
+ }
133
+ if (requestParameters['schemaId'] == null) {
134
+ throw new runtime.RequiredError('schemaId', 'Required parameter "schemaId" was null or undefined when calling deleteDataSourceSchema().');
135
+ }
136
+ const queryParameters = {};
137
+ const headerParameters = {};
138
+ if (this.configuration && this.configuration.accessToken) {
139
+ const token = this.configuration.accessToken;
140
+ const tokenString = yield token("bearerAuth", []);
141
+ if (tokenString) {
142
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
143
+ }
144
+ }
145
+ let urlPath = `/v1/data-sources/{data_source_id}/schemas/{schema_id}`;
146
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
147
+ urlPath = urlPath.replace(`{${"schema_id"}}`, encodeURIComponent(String(requestParameters['schemaId'])));
148
+ return {
149
+ path: urlPath,
150
+ method: 'DELETE',
151
+ headers: headerParameters,
152
+ query: queryParameters,
153
+ };
154
+ });
155
+ }
156
+ /**
157
+ * Un-model a schema and the tables under it (hard-delete the namespace).
158
+ * Delete Data Source Schema Handler
159
+ */
160
+ deleteDataSourceSchemaRaw(requestParameters, initOverrides) {
161
+ return __awaiter(this, void 0, void 0, function* () {
162
+ const requestOptions = yield this.deleteDataSourceSchemaRequestOpts(requestParameters);
163
+ const response = yield this.request(requestOptions, initOverrides);
164
+ return new runtime.VoidApiResponse(response);
165
+ });
166
+ }
167
+ /**
168
+ * Un-model a schema and the tables under it (hard-delete the namespace).
169
+ * Delete Data Source Schema Handler
170
+ */
171
+ deleteDataSourceSchema(requestParameters, initOverrides) {
172
+ return __awaiter(this, void 0, void 0, function* () {
173
+ yield this.deleteDataSourceSchemaRaw(requestParameters, initOverrides);
174
+ });
175
+ }
176
+ /**
177
+ * Creates request options for deleteDataSourceTable without sending the request
178
+ */
179
+ deleteDataSourceTableRequestOpts(requestParameters) {
180
+ return __awaiter(this, void 0, void 0, function* () {
181
+ if (requestParameters['dataSourceId'] == null) {
182
+ throw new runtime.RequiredError('dataSourceId', 'Required parameter "dataSourceId" was null or undefined when calling deleteDataSourceTable().');
183
+ }
184
+ if (requestParameters['tableId'] == null) {
185
+ throw new runtime.RequiredError('tableId', 'Required parameter "tableId" was null or undefined when calling deleteDataSourceTable().');
186
+ }
187
+ const queryParameters = {};
188
+ const headerParameters = {};
189
+ if (this.configuration && this.configuration.accessToken) {
190
+ const token = this.configuration.accessToken;
191
+ const tokenString = yield token("bearerAuth", []);
192
+ if (tokenString) {
193
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
194
+ }
195
+ }
196
+ let urlPath = `/v1/data-sources/{data_source_id}/tables/{table_id}`;
197
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
198
+ urlPath = urlPath.replace(`{${"table_id"}}`, encodeURIComponent(String(requestParameters['tableId'])));
199
+ return {
200
+ path: urlPath,
201
+ method: 'DELETE',
202
+ headers: headerParameters,
203
+ query: queryParameters,
204
+ };
205
+ });
206
+ }
207
+ /**
208
+ * Un-model a single table (hard-delete it from its schema).
209
+ * Delete Data Source Table Handler
210
+ */
211
+ deleteDataSourceTableRaw(requestParameters, initOverrides) {
212
+ return __awaiter(this, void 0, void 0, function* () {
213
+ const requestOptions = yield this.deleteDataSourceTableRequestOpts(requestParameters);
214
+ const response = yield this.request(requestOptions, initOverrides);
215
+ return new runtime.VoidApiResponse(response);
216
+ });
217
+ }
218
+ /**
219
+ * Un-model a single table (hard-delete it from its schema).
220
+ * Delete Data Source Table Handler
221
+ */
222
+ deleteDataSourceTable(requestParameters, initOverrides) {
223
+ return __awaiter(this, void 0, void 0, function* () {
224
+ yield this.deleteDataSourceTableRaw(requestParameters, initOverrides);
225
+ });
226
+ }
227
+ /**
228
+ * Creates request options for generateDataSourceDescription without sending the request
229
+ */
230
+ generateDataSourceDescriptionRequestOpts(requestParameters) {
231
+ return __awaiter(this, void 0, void 0, function* () {
232
+ if (requestParameters['dataSourceId'] == null) {
233
+ throw new runtime.RequiredError('dataSourceId', 'Required parameter "dataSourceId" was null or undefined when calling generateDataSourceDescription().');
234
+ }
235
+ const queryParameters = {};
236
+ const headerParameters = {};
237
+ if (this.configuration && this.configuration.accessToken) {
238
+ const token = this.configuration.accessToken;
239
+ const tokenString = yield token("bearerAuth", []);
240
+ if (tokenString) {
241
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
242
+ }
243
+ }
244
+ let urlPath = `/v1/data-sources/{data_source_id}/describe`;
245
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
246
+ return {
247
+ path: urlPath,
248
+ method: 'POST',
249
+ headers: headerParameters,
250
+ query: queryParameters,
251
+ };
252
+ });
253
+ }
254
+ /**
255
+ * (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.
256
+ * Generate Data Source Description Handler
257
+ */
258
+ generateDataSourceDescriptionRaw(requestParameters, initOverrides) {
259
+ return __awaiter(this, void 0, void 0, function* () {
260
+ const requestOptions = yield this.generateDataSourceDescriptionRequestOpts(requestParameters);
261
+ const response = yield this.request(requestOptions, initOverrides);
262
+ return new runtime.JSONApiResponse(response, (jsonValue) => DataSourceDescriptionResponseFromJSON(jsonValue));
263
+ });
264
+ }
265
+ /**
266
+ * (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.
267
+ * Generate Data Source Description Handler
268
+ */
269
+ generateDataSourceDescription(requestParameters, initOverrides) {
270
+ return __awaiter(this, void 0, void 0, function* () {
271
+ const response = yield this.generateDataSourceDescriptionRaw(requestParameters, initOverrides);
272
+ return yield response.value();
273
+ });
274
+ }
125
275
  /**
126
276
  * Creates request options for getDataSource without sending the request
127
277
  */
@@ -302,7 +452,7 @@ export class DataSourcesApi extends runtime.BaseAPI {
302
452
  });
303
453
  }
304
454
  /**
305
- * Model a table as a queryable PathPart child; auto-introspect columns.
455
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
306
456
  * Model Data Source Table Handler
307
457
  */
308
458
  modelDataSourceTableRaw(requestParameters, initOverrides) {
@@ -313,7 +463,7 @@ export class DataSourcesApi extends runtime.BaseAPI {
313
463
  });
314
464
  }
315
465
  /**
316
- * Model a table as a queryable PathPart child; auto-introspect columns.
466
+ * Model a table under its (auto-created) Schema PDO; auto-introspect columns.
317
467
  * Model Data Source Table Handler
318
468
  */
319
469
  modelDataSourceTable(requestParameters, initOverrides) {
@@ -322,6 +472,59 @@ export class DataSourcesApi extends runtime.BaseAPI {
322
472
  return yield response.value();
323
473
  });
324
474
  }
475
+ /**
476
+ * Creates request options for modelDataSourceTables without sending the request
477
+ */
478
+ modelDataSourceTablesRequestOpts(requestParameters) {
479
+ return __awaiter(this, void 0, void 0, function* () {
480
+ if (requestParameters['dataSourceId'] == null) {
481
+ throw new runtime.RequiredError('dataSourceId', 'Required parameter "dataSourceId" was null or undefined when calling modelDataSourceTables().');
482
+ }
483
+ if (requestParameters['bulkModelTablesRequest'] == null) {
484
+ throw new runtime.RequiredError('bulkModelTablesRequest', 'Required parameter "bulkModelTablesRequest" was null or undefined when calling modelDataSourceTables().');
485
+ }
486
+ const queryParameters = {};
487
+ const headerParameters = {};
488
+ headerParameters['Content-Type'] = 'application/json';
489
+ if (this.configuration && this.configuration.accessToken) {
490
+ const token = this.configuration.accessToken;
491
+ const tokenString = yield token("bearerAuth", []);
492
+ if (tokenString) {
493
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
494
+ }
495
+ }
496
+ let urlPath = `/v1/data-sources/{data_source_id}/tables/batch`;
497
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
498
+ return {
499
+ path: urlPath,
500
+ method: 'POST',
501
+ headers: headerParameters,
502
+ query: queryParameters,
503
+ body: BulkModelTablesRequestToJSON(requestParameters['bulkModelTablesRequest']),
504
+ };
505
+ });
506
+ }
507
+ /**
508
+ * 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.
509
+ * Model Data Source Tables Handler
510
+ */
511
+ modelDataSourceTablesRaw(requestParameters, initOverrides) {
512
+ return __awaiter(this, void 0, void 0, function* () {
513
+ const requestOptions = yield this.modelDataSourceTablesRequestOpts(requestParameters);
514
+ const response = yield this.request(requestOptions, initOverrides);
515
+ return new runtime.JSONApiResponse(response, (jsonValue) => BulkModelTablesResponseFromJSON(jsonValue));
516
+ });
517
+ }
518
+ /**
519
+ * 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.
520
+ * Model Data Source Tables Handler
521
+ */
522
+ modelDataSourceTables(requestParameters, initOverrides) {
523
+ return __awaiter(this, void 0, void 0, function* () {
524
+ const response = yield this.modelDataSourceTablesRaw(requestParameters, initOverrides);
525
+ return yield response.value();
526
+ });
527
+ }
325
528
  /**
326
529
  * Creates request options for queryDataSource without sending the request
327
530
  */
@@ -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>;
@@ -414,7 +414,7 @@ export class DocumentVersionsApi extends runtime.BaseAPI {
414
414
  });
415
415
  }
416
416
  /**
417
- * 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.
417
+ * 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).
418
418
  * Get Document Version Diff Handler
419
419
  */
420
420
  getDocumentVersionDiffRaw(requestParameters, initOverrides) {
@@ -425,7 +425,7 @@ export class DocumentVersionsApi extends runtime.BaseAPI {
425
425
  });
426
426
  }
427
427
  /**
428
- * 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.
428
+ * 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).
429
429
  * Get Document Version Diff Handler
430
430
  */
431
431
  getDocumentVersionDiff(requestParameters, initOverrides) {