@knowledge-stack/ksapi 1.103.3 → 1.105.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.
- package/.openapi-generator/FILES +2 -0
- package/README.md +6 -3
- package/dist/apis/ApiConnectionsApi.d.ts +38 -0
- package/dist/apis/ApiConnectionsApi.js +47 -0
- package/dist/apis/DataSourcesApi.d.ts +38 -0
- package/dist/apis/DataSourcesApi.js +47 -0
- package/dist/apis/FoldersApi.d.ts +6 -6
- package/dist/apis/FoldersApi.js +2 -2
- package/dist/apis/WorkflowRunsApi.d.ts +15 -12
- package/dist/apis/WorkflowRunsApi.js +4 -2
- package/dist/esm/apis/ApiConnectionsApi.d.ts +38 -0
- package/dist/esm/apis/ApiConnectionsApi.js +47 -0
- package/dist/esm/apis/DataSourcesApi.d.ts +38 -0
- package/dist/esm/apis/DataSourcesApi.js +47 -0
- package/dist/esm/apis/FoldersApi.d.ts +6 -6
- package/dist/esm/apis/FoldersApi.js +2 -2
- package/dist/esm/apis/WorkflowRunsApi.d.ts +15 -12
- package/dist/esm/apis/WorkflowRunsApi.js +5 -3
- package/dist/esm/models/DataSourceResponse.d.ts +7 -0
- package/dist/esm/models/DataSourceResponse.js +5 -0
- package/dist/esm/models/DataSourceTableResponse.d.ts +7 -0
- package/dist/esm/models/DataSourceTableResponse.js +5 -0
- package/dist/esm/models/SearchablePartType.d.ts +1 -0
- package/dist/esm/models/SearchablePartType.js +2 -1
- package/dist/esm/models/StartWorkflowRunRequest.d.ts +53 -0
- package/dist/esm/models/StartWorkflowRunRequest.js +46 -0
- package/dist/esm/models/WorkflowRunSnapshot.d.ts +6 -0
- package/dist/esm/models/WorkflowRunSnapshot.js +7 -1
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.js +1 -0
- package/dist/models/DataSourceResponse.d.ts +7 -0
- package/dist/models/DataSourceResponse.js +5 -0
- package/dist/models/DataSourceTableResponse.d.ts +7 -0
- package/dist/models/DataSourceTableResponse.js +5 -0
- package/dist/models/SearchablePartType.d.ts +1 -0
- package/dist/models/SearchablePartType.js +2 -1
- package/dist/models/StartWorkflowRunRequest.d.ts +53 -0
- package/dist/models/StartWorkflowRunRequest.js +54 -0
- package/dist/models/WorkflowRunSnapshot.d.ts +6 -0
- package/dist/models/WorkflowRunSnapshot.js +7 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/docs/ApiConnectionsApi.md +76 -0
- package/docs/DataSourceResponse.md +2 -0
- package/docs/DataSourceTableResponse.md +2 -0
- package/docs/DataSourcesApi.md +76 -0
- package/docs/FoldersApi.md +3 -3
- package/docs/StartWorkflowRunRequest.md +35 -0
- package/docs/WorkflowRunSnapshot.md +2 -0
- package/docs/WorkflowRunsApi.md +9 -6
- package/package.json +1 -1
- package/src/apis/ApiConnectionsApi.ts +82 -0
- package/src/apis/DataSourcesApi.ts +82 -0
- package/src/apis/FoldersApi.ts +6 -6
- package/src/apis/WorkflowRunsApi.ts +20 -11
- package/src/models/DataSourceResponse.ts +16 -0
- package/src/models/DataSourceTableResponse.ts +16 -0
- package/src/models/SearchablePartType.ts +2 -1
- package/src/models/StartWorkflowRunRequest.ts +91 -0
- package/src/models/WorkflowRunSnapshot.ts +11 -0
- package/src/models/index.ts +1 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -236,6 +236,7 @@ docs/SetApprovalStateRequest.md
|
|
|
236
236
|
docs/SetWorkflowRunApprovalRequest.md
|
|
237
237
|
docs/SignInRequest.md
|
|
238
238
|
docs/SortDirection.md
|
|
239
|
+
docs/StartWorkflowRunRequest.md
|
|
239
240
|
docs/StepInput.md
|
|
240
241
|
docs/StepKind.md
|
|
241
242
|
docs/StepOutput.md
|
|
@@ -577,6 +578,7 @@ src/models/SetApprovalStateRequest.ts
|
|
|
577
578
|
src/models/SetWorkflowRunApprovalRequest.ts
|
|
578
579
|
src/models/SignInRequest.ts
|
|
579
580
|
src/models/SortDirection.ts
|
|
581
|
+
src/models/StartWorkflowRunRequest.ts
|
|
580
582
|
src/models/StepInput.ts
|
|
581
583
|
src/models/StepKind.ts
|
|
582
584
|
src/models/StepOutput.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @knowledge-stack/ksapi@1.
|
|
1
|
+
# @knowledge-stack/ksapi@1.105.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
|
|
@@ -245,7 +247,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
245
247
|
*WorkflowRunsApi* | [**listWorkflowRunsForTenant**](docs/WorkflowRunsApi.md#listworkflowrunsfortenant) | **GET** /v1/workflow-runs | List Workflow Runs For Tenant Handler
|
|
246
248
|
*WorkflowRunsApi* | [**retryWorkflowRun**](docs/WorkflowRunsApi.md#retryworkflowrun) | **POST** /v1/workflow-runs/{run_id}/retry | Retry Workflow Run Handler
|
|
247
249
|
*WorkflowRunsApi* | [**setWorkflowRunApproval**](docs/WorkflowRunsApi.md#setworkflowrunapprovaloperation) | **POST** /v1/workflow-runs/{run_id}/approval | Set Workflow Run Approval Handler
|
|
248
|
-
*WorkflowRunsApi* | [**startWorkflowRun**](docs/WorkflowRunsApi.md#
|
|
250
|
+
*WorkflowRunsApi* | [**startWorkflowRun**](docs/WorkflowRunsApi.md#startworkflowrunoperation) | **POST** /v1/workflow-runs/{run_id}/start | Start Workflow Run Handler
|
|
249
251
|
*WorkflowRunsApi* | [**stopWorkflowRun**](docs/WorkflowRunsApi.md#stopworkflowrun) | **POST** /v1/workflow-runs/{run_id}/stop | Stop Workflow Run Handler
|
|
250
252
|
*WorkflowRunsApi* | [**updateWorkflowRun**](docs/WorkflowRunsApi.md#updateworkflowrunoperation) | **PATCH** /v1/workflow-runs/{run_id} | Update Workflow Run Handler
|
|
251
253
|
*WorkflowRunsApi* | [**workflowRunCallback**](docs/WorkflowRunsApi.md#workflowruncallbackoperation) | **POST** /v1/workflow-runs/{run_id}/callback | Workflow Run Callback Handler
|
|
@@ -471,6 +473,7 @@ All URIs are relative to *http://localhost:8000*
|
|
|
471
473
|
- [SetWorkflowRunApprovalRequest](docs/SetWorkflowRunApprovalRequest.md)
|
|
472
474
|
- [SignInRequest](docs/SignInRequest.md)
|
|
473
475
|
- [SortDirection](docs/SortDirection.md)
|
|
476
|
+
- [StartWorkflowRunRequest](docs/StartWorkflowRunRequest.md)
|
|
474
477
|
- [StepInput](docs/StepInput.md)
|
|
475
478
|
- [StepKind](docs/StepKind.md)
|
|
476
479
|
- [StepOutput](docs/StepOutput.md)
|
|
@@ -574,7 +577,7 @@ and is automatically generated by the
|
|
|
574
577
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
575
578
|
|
|
576
579
|
- API version: `0.1.0`
|
|
577
|
-
- Package version: `1.
|
|
580
|
+
- Package version: `1.105.0`
|
|
578
581
|
- Generator version: `7.21.0`
|
|
579
582
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
580
583
|
|
|
@@ -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:
|
|
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\'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
|
|
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:
|
|
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\'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
|
|
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
|
|
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
|
|
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>;
|
package/dist/apis/FoldersApi.js
CHANGED
|
@@ -449,7 +449,7 @@ class FoldersApi extends runtime.BaseAPI {
|
|
|
449
449
|
});
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
|
-
* Search for folders, documents, and
|
|
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
|
|
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) {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CloneWorkflowRunRequest, PaginatedResponseWorkflowRunResponse, SetWorkflowRunApprovalRequest, SortDirection, UpdateWorkflowRunRequest, WorkflowCallbackResponse, WorkflowExecutionState, WorkflowRunCallbackRequest, WorkflowRunOrder, WorkflowRunResponse, WorkflowRunSummaryResponse } from '../models/index';
|
|
13
|
+
import type { CloneWorkflowRunRequest, PaginatedResponseWorkflowRunResponse, SetWorkflowRunApprovalRequest, SortDirection, StartWorkflowRunRequest, UpdateWorkflowRunRequest, WorkflowCallbackResponse, WorkflowExecutionState, WorkflowRunCallbackRequest, WorkflowRunOrder, WorkflowRunResponse, WorkflowRunSummaryResponse } from '../models/index';
|
|
14
14
|
export interface CloneWorkflowRunOperationRequest {
|
|
15
15
|
runId: string;
|
|
16
16
|
cloneWorkflowRunRequest: CloneWorkflowRunRequest;
|
|
@@ -48,8 +48,9 @@ export interface SetWorkflowRunApprovalOperationRequest {
|
|
|
48
48
|
runId: string;
|
|
49
49
|
setWorkflowRunApprovalRequest: SetWorkflowRunApprovalRequest;
|
|
50
50
|
}
|
|
51
|
-
export interface
|
|
51
|
+
export interface StartWorkflowRunOperationRequest {
|
|
52
52
|
runId: string;
|
|
53
|
+
startWorkflowRunRequest?: StartWorkflowRunRequest | null;
|
|
53
54
|
}
|
|
54
55
|
export interface StopWorkflowRunRequest {
|
|
55
56
|
runId: string;
|
|
@@ -249,24 +250,26 @@ export interface WorkflowRunsApiInterface {
|
|
|
249
250
|
/**
|
|
250
251
|
* Creates request options for startWorkflowRun without sending the request
|
|
251
252
|
* @param {string} runId
|
|
253
|
+
* @param {StartWorkflowRunRequest} [startWorkflowRunRequest]
|
|
252
254
|
* @throws {RequiredError}
|
|
253
255
|
* @memberof WorkflowRunsApiInterface
|
|
254
256
|
*/
|
|
255
|
-
startWorkflowRunRequestOpts(requestParameters:
|
|
257
|
+
startWorkflowRunRequestOpts(requestParameters: StartWorkflowRunOperationRequest): Promise<runtime.RequestOpts>;
|
|
256
258
|
/**
|
|
257
|
-
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live).
|
|
259
|
+
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live). The body is optional; ``user_message`` (when sent) is pinned into the snapshot and shown in the run thread (see ``StartWorkflowRunRequest``).
|
|
258
260
|
* @summary Start Workflow Run Handler
|
|
259
261
|
* @param {string} runId
|
|
262
|
+
* @param {StartWorkflowRunRequest} [startWorkflowRunRequest]
|
|
260
263
|
* @param {*} [options] Override http request option.
|
|
261
264
|
* @throws {RequiredError}
|
|
262
265
|
* @memberof WorkflowRunsApiInterface
|
|
263
266
|
*/
|
|
264
|
-
startWorkflowRunRaw(requestParameters:
|
|
267
|
+
startWorkflowRunRaw(requestParameters: StartWorkflowRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>>;
|
|
265
268
|
/**
|
|
266
|
-
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live).
|
|
269
|
+
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live). The body is optional; ``user_message`` (when sent) is pinned into the snapshot and shown in the run thread (see ``StartWorkflowRunRequest``).
|
|
267
270
|
* Start Workflow Run Handler
|
|
268
271
|
*/
|
|
269
|
-
startWorkflowRun(requestParameters:
|
|
272
|
+
startWorkflowRun(requestParameters: StartWorkflowRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
270
273
|
/**
|
|
271
274
|
* Creates request options for stopWorkflowRun without sending the request
|
|
272
275
|
* @param {string} runId
|
|
@@ -436,17 +439,17 @@ export declare class WorkflowRunsApi extends runtime.BaseAPI implements Workflow
|
|
|
436
439
|
/**
|
|
437
440
|
* Creates request options for startWorkflowRun without sending the request
|
|
438
441
|
*/
|
|
439
|
-
startWorkflowRunRequestOpts(requestParameters:
|
|
442
|
+
startWorkflowRunRequestOpts(requestParameters: StartWorkflowRunOperationRequest): Promise<runtime.RequestOpts>;
|
|
440
443
|
/**
|
|
441
|
-
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live).
|
|
444
|
+
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live). The body is optional; ``user_message`` (when sent) is pinned into the snapshot and shown in the run thread (see ``StartWorkflowRunRequest``).
|
|
442
445
|
* Start Workflow Run Handler
|
|
443
446
|
*/
|
|
444
|
-
startWorkflowRunRaw(requestParameters:
|
|
447
|
+
startWorkflowRunRaw(requestParameters: StartWorkflowRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WorkflowRunResponse>>;
|
|
445
448
|
/**
|
|
446
|
-
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live).
|
|
449
|
+
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live). The body is optional; ``user_message`` (when sent) is pinned into the snapshot and shown in the run thread (see ``StartWorkflowRunRequest``).
|
|
447
450
|
* Start Workflow Run Handler
|
|
448
451
|
*/
|
|
449
|
-
startWorkflowRun(requestParameters:
|
|
452
|
+
startWorkflowRun(requestParameters: StartWorkflowRunOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WorkflowRunResponse>;
|
|
450
453
|
/**
|
|
451
454
|
* Creates request options for stopWorkflowRun without sending the request
|
|
452
455
|
*/
|
|
@@ -453,6 +453,7 @@ class WorkflowRunsApi extends runtime.BaseAPI {
|
|
|
453
453
|
}
|
|
454
454
|
const queryParameters = {};
|
|
455
455
|
const headerParameters = {};
|
|
456
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
456
457
|
if (this.configuration && this.configuration.accessToken) {
|
|
457
458
|
const token = this.configuration.accessToken;
|
|
458
459
|
const tokenString = yield token("bearerAuth", []);
|
|
@@ -467,11 +468,12 @@ class WorkflowRunsApi extends runtime.BaseAPI {
|
|
|
467
468
|
method: 'POST',
|
|
468
469
|
headers: headerParameters,
|
|
469
470
|
query: queryParameters,
|
|
471
|
+
body: (0, index_1.StartWorkflowRunRequestToJSON)(requestParameters['startWorkflowRunRequest']),
|
|
470
472
|
};
|
|
471
473
|
});
|
|
472
474
|
}
|
|
473
475
|
/**
|
|
474
|
-
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live).
|
|
476
|
+
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live). The body is optional; ``user_message`` (when sent) is pinned into the snapshot and shown in the run thread (see ``StartWorkflowRunRequest``).
|
|
475
477
|
* Start Workflow Run Handler
|
|
476
478
|
*/
|
|
477
479
|
startWorkflowRunRaw(requestParameters, initOverrides) {
|
|
@@ -482,7 +484,7 @@ class WorkflowRunsApi extends runtime.BaseAPI {
|
|
|
482
484
|
});
|
|
483
485
|
}
|
|
484
486
|
/**
|
|
485
|
-
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live).
|
|
487
|
+
* Flip a NOT_STARTED run to IN_PROGRESS and dispatch its agent run. Idempotent on IN_PROGRESS (returns the row). Terminal states → 409. Inputs still ingesting or in a failed terminal state → 409. The snapshot is built at this point (KB DOCUMENTs resolve to active versions, uploaded DVs are walked from inputs/, KB FOLDERs stay live). The body is optional; ``user_message`` (when sent) is pinned into the snapshot and shown in the run thread (see ``StartWorkflowRunRequest``).
|
|
486
488
|
* Start Workflow Run Handler
|
|
487
489
|
*/
|
|
488
490
|
startWorkflowRun(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
|
*/
|