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