@knowledge-stack/ksapi 1.103.2 → 1.104.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 (43) hide show
  1. package/README.md +4 -2
  2. package/dist/apis/ApiConnectionsApi.d.ts +38 -0
  3. package/dist/apis/ApiConnectionsApi.js +47 -0
  4. package/dist/apis/DataSourcesApi.d.ts +38 -0
  5. package/dist/apis/DataSourcesApi.js +47 -0
  6. package/dist/apis/FoldersApi.d.ts +6 -6
  7. package/dist/apis/FoldersApi.js +2 -2
  8. package/dist/apis/ThreadsApi.d.ts +4 -4
  9. package/dist/apis/ThreadsApi.js +2 -2
  10. package/dist/esm/apis/ApiConnectionsApi.d.ts +38 -0
  11. package/dist/esm/apis/ApiConnectionsApi.js +47 -0
  12. package/dist/esm/apis/DataSourcesApi.d.ts +38 -0
  13. package/dist/esm/apis/DataSourcesApi.js +47 -0
  14. package/dist/esm/apis/FoldersApi.d.ts +6 -6
  15. package/dist/esm/apis/FoldersApi.js +2 -2
  16. package/dist/esm/apis/ThreadsApi.d.ts +4 -4
  17. package/dist/esm/apis/ThreadsApi.js +2 -2
  18. package/dist/esm/models/DataSourceResponse.d.ts +7 -0
  19. package/dist/esm/models/DataSourceResponse.js +5 -0
  20. package/dist/esm/models/DataSourceTableResponse.d.ts +7 -0
  21. package/dist/esm/models/DataSourceTableResponse.js +5 -0
  22. package/dist/esm/models/SearchablePartType.d.ts +1 -0
  23. package/dist/esm/models/SearchablePartType.js +2 -1
  24. package/dist/models/DataSourceResponse.d.ts +7 -0
  25. package/dist/models/DataSourceResponse.js +5 -0
  26. package/dist/models/DataSourceTableResponse.d.ts +7 -0
  27. package/dist/models/DataSourceTableResponse.js +5 -0
  28. package/dist/models/SearchablePartType.d.ts +1 -0
  29. package/dist/models/SearchablePartType.js +2 -1
  30. package/docs/ApiConnectionsApi.md +76 -0
  31. package/docs/DataSourceResponse.md +2 -0
  32. package/docs/DataSourceTableResponse.md +2 -0
  33. package/docs/DataSourcesApi.md +76 -0
  34. package/docs/FoldersApi.md +3 -3
  35. package/docs/ThreadsApi.md +1 -1
  36. package/package.json +1 -1
  37. package/src/apis/ApiConnectionsApi.ts +82 -0
  38. package/src/apis/DataSourcesApi.ts +82 -0
  39. package/src/apis/FoldersApi.ts +6 -6
  40. package/src/apis/ThreadsApi.ts +4 -4
  41. package/src/models/DataSourceResponse.ts +16 -0
  42. package/src/models/DataSourceTableResponse.ts +16 -0
  43. package/src/models/SearchablePartType.ts +2 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@1.103.2
1
+ # @knowledge-stack/ksapi@1.104.0
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -60,6 +60,7 @@ All URIs are relative to *http://localhost:8000*
60
60
  *AgentApi* | [**agentExtract**](docs/AgentApi.md#agentextract) | **POST** /v1/agent/extract | Agent Extract Handler
61
61
  *ApiConnectionsApi* | [**acceptApiConnectionDisclaimer**](docs/ApiConnectionsApi.md#acceptapiconnectiondisclaimer) | **POST** /v1/api-connections/{connection_id}/disclaimer | Accept Api Connection Disclaimer Handler
62
62
  *ApiConnectionsApi* | [**createApiConnection**](docs/ApiConnectionsApi.md#createapiconnectionoperation) | **POST** /v1/api-connections | Create Api Connection Handler
63
+ *ApiConnectionsApi* | [**deleteApiConnection**](docs/ApiConnectionsApi.md#deleteapiconnection) | **DELETE** /v1/api-connections/{connection_id} | Delete Api Connection Handler
63
64
  *ApiConnectionsApi* | [**executeApiConnectionRequest**](docs/ApiConnectionsApi.md#executeapiconnectionrequest) | **POST** /v1/api-connections/{connection_id}/request | Execute Api Connection Request Handler
64
65
  *ApiConnectionsApi* | [**getApiConnection**](docs/ApiConnectionsApi.md#getapiconnection) | **GET** /v1/api-connections/{connection_id} | Get Api Connection Handler
65
66
  *ApiConnectionsApi* | [**updateApiConnection**](docs/ApiConnectionsApi.md#updateapiconnectionoperation) | **PATCH** /v1/api-connections/{connection_id} | Update Api Connection Handler
@@ -100,6 +101,7 @@ All URIs are relative to *http://localhost:8000*
100
101
  *ChunksApi* | [**updateChunkContent**](docs/ChunksApi.md#updatechunkcontentoperation) | **PATCH** /v1/chunks/{chunk_id}/content | Update Chunk Content Handler
101
102
  *ChunksApi* | [**updateChunkMetadata**](docs/ChunksApi.md#updatechunkmetadataoperation) | **PATCH** /v1/chunks/{chunk_id} | Update Chunk Metadata Handler
102
103
  *DataSourcesApi* | [**createDataSource**](docs/DataSourcesApi.md#createdatasourceoperation) | **POST** /v1/data-sources | Create Data Source Handler
104
+ *DataSourcesApi* | [**deleteDataSource**](docs/DataSourcesApi.md#deletedatasource) | **DELETE** /v1/data-sources/{data_source_id} | Delete Data Source Handler
103
105
  *DataSourcesApi* | [**getDataSource**](docs/DataSourcesApi.md#getdatasource) | **GET** /v1/data-sources/{data_source_id} | Get Data Source Handler
104
106
  *DataSourcesApi* | [**getDataSourceCatalog**](docs/DataSourcesApi.md#getdatasourcecatalog) | **GET** /v1/data-sources/{data_source_id}/catalog | Get Data Source Catalog Handler
105
107
  *DataSourcesApi* | [**modelDataSourceTable**](docs/DataSourcesApi.md#modeldatasourcetable) | **POST** /v1/data-sources/{data_source_id}/tables | Model Data Source Table Handler
@@ -574,7 +576,7 @@ and is automatically generated by the
574
576
  [OpenAPI Generator](https://openapi-generator.tech) project:
575
577
 
576
578
  - API version: `0.1.0`
577
- - Package version: `1.103.2`
579
+ - Package version: `1.104.0`
578
580
  - Generator version: `7.21.0`
579
581
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
580
582
 
@@ -18,6 +18,9 @@ export interface AcceptApiConnectionDisclaimerRequest {
18
18
  export interface CreateApiConnectionOperationRequest {
19
19
  createApiConnectionRequest: CreateApiConnectionRequest;
20
20
  }
21
+ export interface DeleteApiConnectionRequest {
22
+ connectionId: string;
23
+ }
21
24
  export interface ExecuteApiConnectionRequestRequest {
22
25
  connectionId: string;
23
26
  apiConnectionRequestRequest: ApiConnectionRequestRequest;
@@ -80,6 +83,27 @@ export interface ApiConnectionsApiInterface {
80
83
  * Create Api Connection Handler
81
84
  */
82
85
  createApiConnection(requestParameters: CreateApiConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiConnectionResponse>;
86
+ /**
87
+ * Creates request options for deleteApiConnection without sending the request
88
+ * @param {string} connectionId
89
+ * @throws {RequiredError}
90
+ * @memberof ApiConnectionsApiInterface
91
+ */
92
+ deleteApiConnectionRequestOpts(requestParameters: DeleteApiConnectionRequest): Promise<runtime.RequestOpts>;
93
+ /**
94
+ * Move a connection to trash (Admin/Owner). Soft-delete via the path_part subtree, mirroring create/update authz. A connection holds no Qdrant vectors, so there is no trash-sync workflow.
95
+ * @summary Delete Api Connection Handler
96
+ * @param {string} connectionId
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ * @memberof ApiConnectionsApiInterface
100
+ */
101
+ deleteApiConnectionRaw(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
102
+ /**
103
+ * Move a connection to trash (Admin/Owner). Soft-delete via the path_part subtree, mirroring create/update authz. A connection holds no Qdrant vectors, so there is no trash-sync workflow.
104
+ * Delete Api Connection Handler
105
+ */
106
+ deleteApiConnection(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
83
107
  /**
84
108
  * Creates request options for executeApiConnectionRequest without sending the request
85
109
  * @param {string} connectionId
@@ -180,6 +204,20 @@ export declare class ApiConnectionsApi extends runtime.BaseAPI implements ApiCon
180
204
  * Create Api Connection Handler
181
205
  */
182
206
  createApiConnection(requestParameters: CreateApiConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiConnectionResponse>;
207
+ /**
208
+ * Creates request options for deleteApiConnection without sending the request
209
+ */
210
+ deleteApiConnectionRequestOpts(requestParameters: DeleteApiConnectionRequest): Promise<runtime.RequestOpts>;
211
+ /**
212
+ * Move a connection to trash (Admin/Owner). Soft-delete via the path_part subtree, mirroring create/update authz. A connection holds no Qdrant vectors, so there is no trash-sync workflow.
213
+ * Delete Api Connection Handler
214
+ */
215
+ deleteApiConnectionRaw(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
216
+ /**
217
+ * Move a connection to trash (Admin/Owner). Soft-delete via the path_part subtree, mirroring create/update authz. A connection holds no Qdrant vectors, so there is no trash-sync workflow.
218
+ * Delete Api Connection Handler
219
+ */
220
+ deleteApiConnection(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
183
221
  /**
184
222
  * Creates request options for executeApiConnectionRequest without sending the request
185
223
  */
@@ -164,6 +164,53 @@ class ApiConnectionsApi extends runtime.BaseAPI {
164
164
  return yield response.value();
165
165
  });
166
166
  }
167
+ /**
168
+ * Creates request options for deleteApiConnection without sending the request
169
+ */
170
+ deleteApiConnectionRequestOpts(requestParameters) {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ if (requestParameters['connectionId'] == null) {
173
+ throw new runtime.RequiredError('connectionId', 'Required parameter "connectionId" was null or undefined when calling deleteApiConnection().');
174
+ }
175
+ const queryParameters = {};
176
+ const headerParameters = {};
177
+ if (this.configuration && this.configuration.accessToken) {
178
+ const token = this.configuration.accessToken;
179
+ const tokenString = yield token("bearerAuth", []);
180
+ if (tokenString) {
181
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
182
+ }
183
+ }
184
+ let urlPath = `/v1/api-connections/{connection_id}`;
185
+ urlPath = urlPath.replace(`{${"connection_id"}}`, encodeURIComponent(String(requestParameters['connectionId'])));
186
+ return {
187
+ path: urlPath,
188
+ method: 'DELETE',
189
+ headers: headerParameters,
190
+ query: queryParameters,
191
+ };
192
+ });
193
+ }
194
+ /**
195
+ * Move a connection to trash (Admin/Owner). Soft-delete via the path_part subtree, mirroring create/update authz. A connection holds no Qdrant vectors, so there is no trash-sync workflow.
196
+ * Delete Api Connection Handler
197
+ */
198
+ deleteApiConnectionRaw(requestParameters, initOverrides) {
199
+ return __awaiter(this, void 0, void 0, function* () {
200
+ const requestOptions = yield this.deleteApiConnectionRequestOpts(requestParameters);
201
+ const response = yield this.request(requestOptions, initOverrides);
202
+ return new runtime.VoidApiResponse(response);
203
+ });
204
+ }
205
+ /**
206
+ * Move a connection to trash (Admin/Owner). Soft-delete via the path_part subtree, mirroring create/update authz. A connection holds no Qdrant vectors, so there is no trash-sync workflow.
207
+ * Delete Api Connection Handler
208
+ */
209
+ deleteApiConnection(requestParameters, initOverrides) {
210
+ return __awaiter(this, void 0, void 0, function* () {
211
+ yield this.deleteApiConnectionRaw(requestParameters, initOverrides);
212
+ });
213
+ }
167
214
  /**
168
215
  * Creates request options for executeApiConnectionRequest without sending the request
169
216
  */
@@ -14,6 +14,9 @@ import type { CreateDataSourceRequest, DataSourceCatalogResponse, DataSourceDeta
14
14
  export interface CreateDataSourceOperationRequest {
15
15
  createDataSourceRequest: CreateDataSourceRequest;
16
16
  }
17
+ export interface DeleteDataSourceRequest {
18
+ dataSourceId: string;
19
+ }
17
20
  export interface GetDataSourceRequest {
18
21
  dataSourceId: string;
19
22
  }
@@ -64,6 +67,27 @@ export interface DataSourcesApiInterface {
64
67
  * Create Data Source Handler
65
68
  */
66
69
  createDataSource(requestParameters: CreateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
70
+ /**
71
+ * Creates request options for deleteDataSource without sending the request
72
+ * @param {string} dataSourceId
73
+ * @throws {RequiredError}
74
+ * @memberof DataSourcesApiInterface
75
+ */
76
+ deleteDataSourceRequestOpts(requestParameters: DeleteDataSourceRequest): Promise<runtime.RequestOpts>;
77
+ /**
78
+ * 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.
79
+ * @summary Delete Data Source Handler
80
+ * @param {string} dataSourceId
81
+ * @param {*} [options] Override http request option.
82
+ * @throws {RequiredError}
83
+ * @memberof DataSourcesApiInterface
84
+ */
85
+ deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
86
+ /**
87
+ * 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.
88
+ * Delete Data Source Handler
89
+ */
90
+ deleteDataSource(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
67
91
  /**
68
92
  * Creates request options for getDataSource without sending the request
69
93
  * @param {string} dataSourceId
@@ -217,6 +241,20 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
217
241
  * Create Data Source Handler
218
242
  */
219
243
  createDataSource(requestParameters: CreateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
244
+ /**
245
+ * Creates request options for deleteDataSource without sending the request
246
+ */
247
+ deleteDataSourceRequestOpts(requestParameters: DeleteDataSourceRequest): Promise<runtime.RequestOpts>;
248
+ /**
249
+ * 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.
250
+ * Delete Data Source Handler
251
+ */
252
+ deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
253
+ /**
254
+ * 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.
255
+ * Delete Data Source Handler
256
+ */
257
+ deleteDataSource(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
220
258
  /**
221
259
  * Creates request options for getDataSource without sending the request
222
260
  */
@@ -111,6 +111,53 @@ class DataSourcesApi extends runtime.BaseAPI {
111
111
  return yield response.value();
112
112
  });
113
113
  }
114
+ /**
115
+ * Creates request options for deleteDataSource without sending the request
116
+ */
117
+ deleteDataSourceRequestOpts(requestParameters) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ if (requestParameters['dataSourceId'] == null) {
120
+ throw new runtime.RequiredError('dataSourceId', 'Required parameter "dataSourceId" was null or undefined when calling deleteDataSource().');
121
+ }
122
+ const queryParameters = {};
123
+ const headerParameters = {};
124
+ if (this.configuration && this.configuration.accessToken) {
125
+ const token = this.configuration.accessToken;
126
+ const tokenString = yield token("bearerAuth", []);
127
+ if (tokenString) {
128
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
129
+ }
130
+ }
131
+ let urlPath = `/v1/data-sources/{data_source_id}`;
132
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
133
+ return {
134
+ path: urlPath,
135
+ method: 'DELETE',
136
+ headers: headerParameters,
137
+ query: queryParameters,
138
+ };
139
+ });
140
+ }
141
+ /**
142
+ * Move a connector and its modeled tables to trash. Soft-delete via the path_part subtree (the tables are children, so they trash with it). Connectors carry no Qdrant vectors, so there is no trash-sync workflow.
143
+ * Delete Data Source Handler
144
+ */
145
+ deleteDataSourceRaw(requestParameters, initOverrides) {
146
+ return __awaiter(this, void 0, void 0, function* () {
147
+ const requestOptions = yield this.deleteDataSourceRequestOpts(requestParameters);
148
+ const response = yield this.request(requestOptions, initOverrides);
149
+ return new runtime.VoidApiResponse(response);
150
+ });
151
+ }
152
+ /**
153
+ * Move a connector and its modeled tables to trash. Soft-delete via the path_part subtree (the tables are children, so they trash with it). Connectors carry no Qdrant vectors, so there is no trash-sync workflow.
154
+ * Delete Data Source Handler
155
+ */
156
+ deleteDataSource(requestParameters, initOverrides) {
157
+ return __awaiter(this, void 0, void 0, function* () {
158
+ yield this.deleteDataSourceRaw(requestParameters, initOverrides);
159
+ });
160
+ }
114
161
  /**
115
162
  * Creates request options for getDataSource without sending the request
116
163
  */
@@ -229,7 +229,7 @@ export interface FoldersApiInterface {
229
229
  * Creates request options for searchItems without sending the request
230
230
  * @param {string} nameLike Case-insensitive partial name search
231
231
  * @param {SearchSortOrder} [sortOrder] Sort order for results (default: NAME)
232
- * @param {SearchablePartType} [partType] Filter by item type (default: both folders and documents)
232
+ * @param {SearchablePartType} [partType] Filter by item type (default: all searchable types)
233
233
  * @param {boolean} [withTags] Include tags in the response (default: false)
234
234
  * @param {string} [parentPathPartId] Scope search to descendants of this folder\&#39;s path part
235
235
  * @param {number} [limit] Number of items per page
@@ -239,11 +239,11 @@ export interface FoldersApiInterface {
239
239
  */
240
240
  searchItemsRequestOpts(requestParameters: SearchItemsRequest): Promise<runtime.RequestOpts>;
241
241
  /**
242
- * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
242
+ * Search for folders, documents, and connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
243
243
  * @summary Search Items Handler
244
244
  * @param {string} nameLike Case-insensitive partial name search
245
245
  * @param {SearchSortOrder} [sortOrder] Sort order for results (default: NAME)
246
- * @param {SearchablePartType} [partType] Filter by item type (default: both folders and documents)
246
+ * @param {SearchablePartType} [partType] Filter by item type (default: all searchable types)
247
247
  * @param {boolean} [withTags] Include tags in the response (default: false)
248
248
  * @param {string} [parentPathPartId] Scope search to descendants of this folder\&#39;s path part
249
249
  * @param {number} [limit] Number of items per page
@@ -254,7 +254,7 @@ export interface FoldersApiInterface {
254
254
  */
255
255
  searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
256
256
  /**
257
- * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
257
+ * Search for folders, documents, and connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
258
258
  * Search Items Handler
259
259
  */
260
260
  searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
@@ -373,12 +373,12 @@ export declare class FoldersApi extends runtime.BaseAPI implements FoldersApiInt
373
373
  */
374
374
  searchItemsRequestOpts(requestParameters: SearchItemsRequest): Promise<runtime.RequestOpts>;
375
375
  /**
376
- * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
376
+ * Search for folders, documents, and connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
377
377
  * Search Items Handler
378
378
  */
379
379
  searchItemsRaw(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>>;
380
380
  /**
381
- * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
381
+ * Search for folders, documents, and connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
382
382
  * Search Items Handler
383
383
  */
384
384
  searchItems(requestParameters: SearchItemsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator>;
@@ -449,7 +449,7 @@ class FoldersApi extends runtime.BaseAPI {
449
449
  });
450
450
  }
451
451
  /**
452
- * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
452
+ * Search for folders, documents, and connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
453
453
  * Search Items Handler
454
454
  */
455
455
  searchItemsRaw(requestParameters, initOverrides) {
@@ -460,7 +460,7 @@ class FoldersApi extends runtime.BaseAPI {
460
460
  });
461
461
  }
462
462
  /**
463
- * Search for folders, documents, and data-source connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
463
+ * Search for folders, documents, and connectors by name. Performs a case-insensitive partial name match using trigram indexing. Results are filtered by the current user\'s path permissions. When parent_path_part_id is provided, only items under that folder are searched. Otherwise, all accessible items across the tenant are searched.
464
464
  * Search Items Handler
465
465
  */
466
466
  searchItems(requestParameters, initOverrides) {
@@ -60,7 +60,7 @@ export interface ThreadsApiInterface {
60
60
  */
61
61
  createThreadRequestOpts(requestParameters: CreateThreadOperationRequest): Promise<runtime.RequestOpts>;
62
62
  /**
63
- * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed).
63
+ * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed). With ``message_for_title``, the thread is created as \"New Thread\" and its title is summarized in a background task; the FE learns the final title via a ``THREAD_TITLE_CHANGED`` WebSocket event.
64
64
  * @summary Create Thread Handler
65
65
  * @param {CreateThreadRequest} createThreadRequest
66
66
  * @param {*} [options] Override http request option.
@@ -69,7 +69,7 @@ export interface ThreadsApiInterface {
69
69
  */
70
70
  createThreadRaw(requestParameters: CreateThreadOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ThreadResponse>>;
71
71
  /**
72
- * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed).
72
+ * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed). With ``message_for_title``, the thread is created as \"New Thread\" and its title is summarized in a background task; the FE learns the final title via a ``THREAD_TITLE_CHANGED`` WebSocket event.
73
73
  * Create Thread Handler
74
74
  */
75
75
  createThread(requestParameters: CreateThreadOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ThreadResponse>;
@@ -235,12 +235,12 @@ export declare class ThreadsApi extends runtime.BaseAPI implements ThreadsApiInt
235
235
  */
236
236
  createThreadRequestOpts(requestParameters: CreateThreadOperationRequest): Promise<runtime.RequestOpts>;
237
237
  /**
238
- * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed).
238
+ * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed). With ``message_for_title``, the thread is created as \"New Thread\" and its title is summarized in a background task; the FE learns the final title via a ``THREAD_TITLE_CHANGED`` WebSocket event.
239
239
  * Create Thread Handler
240
240
  */
241
241
  createThreadRaw(requestParameters: CreateThreadOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ThreadResponse>>;
242
242
  /**
243
- * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed).
243
+ * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed). With ``message_for_title``, the thread is created as \"New Thread\" and its title is summarized in a background task; the FE learns the final title via a ``THREAD_TITLE_CHANGED`` WebSocket event.
244
244
  * Create Thread Handler
245
245
  */
246
246
  createThread(requestParameters: CreateThreadOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ThreadResponse>;
@@ -91,7 +91,7 @@ class ThreadsApi extends runtime.BaseAPI {
91
91
  });
92
92
  }
93
93
  /**
94
- * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed).
94
+ * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed). With ``message_for_title``, the thread is created as \"New Thread\" and its title is summarized in a background task; the FE learns the final title via a ``THREAD_TITLE_CHANGED`` WebSocket event.
95
95
  * Create Thread Handler
96
96
  */
97
97
  createThreadRaw(requestParameters, initOverrides) {
@@ -102,7 +102,7 @@ class ThreadsApi extends runtime.BaseAPI {
102
102
  });
103
103
  }
104
104
  /**
105
- * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed).
105
+ * Create a new thread. If parent_path_part_id is omitted, the thread is created under the user\'s /users/{user_id}/threads/ folder (auto-provisioned if needed). With ``message_for_title``, the thread is created as \"New Thread\" and its title is summarized in a background task; the FE learns the final title via a ``THREAD_TITLE_CHANGED`` WebSocket event.
106
106
  * Create Thread Handler
107
107
  */
108
108
  createThread(requestParameters, initOverrides) {
@@ -18,6 +18,9 @@ export interface AcceptApiConnectionDisclaimerRequest {
18
18
  export interface CreateApiConnectionOperationRequest {
19
19
  createApiConnectionRequest: CreateApiConnectionRequest;
20
20
  }
21
+ export interface DeleteApiConnectionRequest {
22
+ connectionId: string;
23
+ }
21
24
  export interface ExecuteApiConnectionRequestRequest {
22
25
  connectionId: string;
23
26
  apiConnectionRequestRequest: ApiConnectionRequestRequest;
@@ -80,6 +83,27 @@ export interface ApiConnectionsApiInterface {
80
83
  * Create Api Connection Handler
81
84
  */
82
85
  createApiConnection(requestParameters: CreateApiConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiConnectionResponse>;
86
+ /**
87
+ * Creates request options for deleteApiConnection without sending the request
88
+ * @param {string} connectionId
89
+ * @throws {RequiredError}
90
+ * @memberof ApiConnectionsApiInterface
91
+ */
92
+ deleteApiConnectionRequestOpts(requestParameters: DeleteApiConnectionRequest): Promise<runtime.RequestOpts>;
93
+ /**
94
+ * Move a connection to trash (Admin/Owner). Soft-delete via the path_part subtree, mirroring create/update authz. A connection holds no Qdrant vectors, so there is no trash-sync workflow.
95
+ * @summary Delete Api Connection Handler
96
+ * @param {string} connectionId
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ * @memberof ApiConnectionsApiInterface
100
+ */
101
+ deleteApiConnectionRaw(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
102
+ /**
103
+ * Move a connection to trash (Admin/Owner). Soft-delete via the path_part subtree, mirroring create/update authz. A connection holds no Qdrant vectors, so there is no trash-sync workflow.
104
+ * Delete Api Connection Handler
105
+ */
106
+ deleteApiConnection(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
83
107
  /**
84
108
  * Creates request options for executeApiConnectionRequest without sending the request
85
109
  * @param {string} connectionId
@@ -180,6 +204,20 @@ export declare class ApiConnectionsApi extends runtime.BaseAPI implements ApiCon
180
204
  * Create Api Connection Handler
181
205
  */
182
206
  createApiConnection(requestParameters: CreateApiConnectionOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiConnectionResponse>;
207
+ /**
208
+ * Creates request options for deleteApiConnection without sending the request
209
+ */
210
+ deleteApiConnectionRequestOpts(requestParameters: DeleteApiConnectionRequest): Promise<runtime.RequestOpts>;
211
+ /**
212
+ * Move a connection to trash (Admin/Owner). Soft-delete via the path_part subtree, mirroring create/update authz. A connection holds no Qdrant vectors, so there is no trash-sync workflow.
213
+ * Delete Api Connection Handler
214
+ */
215
+ deleteApiConnectionRaw(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
216
+ /**
217
+ * Move a connection to trash (Admin/Owner). Soft-delete via the path_part subtree, mirroring create/update authz. A connection holds no Qdrant vectors, so there is no trash-sync workflow.
218
+ * Delete Api Connection Handler
219
+ */
220
+ deleteApiConnection(requestParameters: DeleteApiConnectionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
183
221
  /**
184
222
  * Creates request options for executeApiConnectionRequest without sending the request
185
223
  */
@@ -128,6 +128,53 @@ export class ApiConnectionsApi extends runtime.BaseAPI {
128
128
  return yield response.value();
129
129
  });
130
130
  }
131
+ /**
132
+ * Creates request options for deleteApiConnection without sending the request
133
+ */
134
+ deleteApiConnectionRequestOpts(requestParameters) {
135
+ return __awaiter(this, void 0, void 0, function* () {
136
+ if (requestParameters['connectionId'] == null) {
137
+ throw new runtime.RequiredError('connectionId', 'Required parameter "connectionId" was null or undefined when calling deleteApiConnection().');
138
+ }
139
+ const queryParameters = {};
140
+ const headerParameters = {};
141
+ if (this.configuration && this.configuration.accessToken) {
142
+ const token = this.configuration.accessToken;
143
+ const tokenString = yield token("bearerAuth", []);
144
+ if (tokenString) {
145
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
146
+ }
147
+ }
148
+ let urlPath = `/v1/api-connections/{connection_id}`;
149
+ urlPath = urlPath.replace(`{${"connection_id"}}`, encodeURIComponent(String(requestParameters['connectionId'])));
150
+ return {
151
+ path: urlPath,
152
+ method: 'DELETE',
153
+ headers: headerParameters,
154
+ query: queryParameters,
155
+ };
156
+ });
157
+ }
158
+ /**
159
+ * Move a connection to trash (Admin/Owner). Soft-delete via the path_part subtree, mirroring create/update authz. A connection holds no Qdrant vectors, so there is no trash-sync workflow.
160
+ * Delete Api Connection Handler
161
+ */
162
+ deleteApiConnectionRaw(requestParameters, initOverrides) {
163
+ return __awaiter(this, void 0, void 0, function* () {
164
+ const requestOptions = yield this.deleteApiConnectionRequestOpts(requestParameters);
165
+ const response = yield this.request(requestOptions, initOverrides);
166
+ return new runtime.VoidApiResponse(response);
167
+ });
168
+ }
169
+ /**
170
+ * Move a connection to trash (Admin/Owner). Soft-delete via the path_part subtree, mirroring create/update authz. A connection holds no Qdrant vectors, so there is no trash-sync workflow.
171
+ * Delete Api Connection Handler
172
+ */
173
+ deleteApiConnection(requestParameters, initOverrides) {
174
+ return __awaiter(this, void 0, void 0, function* () {
175
+ yield this.deleteApiConnectionRaw(requestParameters, initOverrides);
176
+ });
177
+ }
131
178
  /**
132
179
  * Creates request options for executeApiConnectionRequest without sending the request
133
180
  */
@@ -14,6 +14,9 @@ import type { CreateDataSourceRequest, DataSourceCatalogResponse, DataSourceDeta
14
14
  export interface CreateDataSourceOperationRequest {
15
15
  createDataSourceRequest: CreateDataSourceRequest;
16
16
  }
17
+ export interface DeleteDataSourceRequest {
18
+ dataSourceId: string;
19
+ }
17
20
  export interface GetDataSourceRequest {
18
21
  dataSourceId: string;
19
22
  }
@@ -64,6 +67,27 @@ export interface DataSourcesApiInterface {
64
67
  * Create Data Source Handler
65
68
  */
66
69
  createDataSource(requestParameters: CreateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
70
+ /**
71
+ * Creates request options for deleteDataSource without sending the request
72
+ * @param {string} dataSourceId
73
+ * @throws {RequiredError}
74
+ * @memberof DataSourcesApiInterface
75
+ */
76
+ deleteDataSourceRequestOpts(requestParameters: DeleteDataSourceRequest): Promise<runtime.RequestOpts>;
77
+ /**
78
+ * 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.
79
+ * @summary Delete Data Source Handler
80
+ * @param {string} dataSourceId
81
+ * @param {*} [options] Override http request option.
82
+ * @throws {RequiredError}
83
+ * @memberof DataSourcesApiInterface
84
+ */
85
+ deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
86
+ /**
87
+ * 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.
88
+ * Delete Data Source Handler
89
+ */
90
+ deleteDataSource(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
67
91
  /**
68
92
  * Creates request options for getDataSource without sending the request
69
93
  * @param {string} dataSourceId
@@ -217,6 +241,20 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
217
241
  * Create Data Source Handler
218
242
  */
219
243
  createDataSource(requestParameters: CreateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
244
+ /**
245
+ * Creates request options for deleteDataSource without sending the request
246
+ */
247
+ deleteDataSourceRequestOpts(requestParameters: DeleteDataSourceRequest): Promise<runtime.RequestOpts>;
248
+ /**
249
+ * 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.
250
+ * Delete Data Source Handler
251
+ */
252
+ deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
253
+ /**
254
+ * 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.
255
+ * Delete Data Source Handler
256
+ */
257
+ deleteDataSource(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
220
258
  /**
221
259
  * Creates request options for getDataSource without sending the request
222
260
  */
@@ -75,6 +75,53 @@ export class DataSourcesApi extends runtime.BaseAPI {
75
75
  return yield response.value();
76
76
  });
77
77
  }
78
+ /**
79
+ * Creates request options for deleteDataSource without sending the request
80
+ */
81
+ deleteDataSourceRequestOpts(requestParameters) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ if (requestParameters['dataSourceId'] == null) {
84
+ throw new runtime.RequiredError('dataSourceId', 'Required parameter "dataSourceId" was null or undefined when calling deleteDataSource().');
85
+ }
86
+ const queryParameters = {};
87
+ const headerParameters = {};
88
+ if (this.configuration && this.configuration.accessToken) {
89
+ const token = this.configuration.accessToken;
90
+ const tokenString = yield token("bearerAuth", []);
91
+ if (tokenString) {
92
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
93
+ }
94
+ }
95
+ let urlPath = `/v1/data-sources/{data_source_id}`;
96
+ urlPath = urlPath.replace(`{${"data_source_id"}}`, encodeURIComponent(String(requestParameters['dataSourceId'])));
97
+ return {
98
+ path: urlPath,
99
+ method: 'DELETE',
100
+ headers: headerParameters,
101
+ query: queryParameters,
102
+ };
103
+ });
104
+ }
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.
107
+ * Delete Data Source Handler
108
+ */
109
+ deleteDataSourceRaw(requestParameters, initOverrides) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ const requestOptions = yield this.deleteDataSourceRequestOpts(requestParameters);
112
+ const response = yield this.request(requestOptions, initOverrides);
113
+ return new runtime.VoidApiResponse(response);
114
+ });
115
+ }
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.
118
+ * Delete Data Source Handler
119
+ */
120
+ deleteDataSource(requestParameters, initOverrides) {
121
+ return __awaiter(this, void 0, void 0, function* () {
122
+ yield this.deleteDataSourceRaw(requestParameters, initOverrides);
123
+ });
124
+ }
78
125
  /**
79
126
  * Creates request options for getDataSource without sending the request
80
127
  */