@xata.io/client 0.0.0-next.v3c98c9e18d38b282eb80381e4bd7bf95da9aabdb → 0.0.0-next.v403cdd55cb26b69c074dbc07b44daa0c2a0a77b6
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/.turbo/turbo-add-version.log +1 -1
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +13 -3
- package/dist/index.cjs +334 -394
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1215 -186
- package/dist/index.mjs +319 -395
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -73,6 +73,139 @@ type RequiredKeys<T> = {
|
|
73
73
|
*
|
74
74
|
* @version 1.0
|
75
75
|
*/
|
76
|
+
type TaskStatus = 'scheduled' | 'pending' | 'active' | 'retry' | 'archived' | 'completed';
|
77
|
+
type TaskStatusResponse = {
|
78
|
+
/**
|
79
|
+
* The id of the task
|
80
|
+
*/
|
81
|
+
taskID: string;
|
82
|
+
/**
|
83
|
+
* The type of the task
|
84
|
+
*/
|
85
|
+
type: string;
|
86
|
+
/**
|
87
|
+
* The status of the task
|
88
|
+
*/
|
89
|
+
status: TaskStatus;
|
90
|
+
/**
|
91
|
+
* Any error message associated with the task
|
92
|
+
*/
|
93
|
+
error?: string;
|
94
|
+
};
|
95
|
+
/**
|
96
|
+
* @maxLength 255
|
97
|
+
* @minLength 1
|
98
|
+
* @pattern [a-zA-Z0-9_\-~]+
|
99
|
+
*/
|
100
|
+
type TaskID = string;
|
101
|
+
/**
|
102
|
+
* @x-internal true
|
103
|
+
* @pattern [a-zA-Z0-9_-~:]+
|
104
|
+
*/
|
105
|
+
type ClusterID$1 = string;
|
106
|
+
/**
|
107
|
+
* Page size.
|
108
|
+
*
|
109
|
+
* @x-internal true
|
110
|
+
* @default 25
|
111
|
+
* @minimum 0
|
112
|
+
*/
|
113
|
+
type PageSize$1 = number;
|
114
|
+
/**
|
115
|
+
* Page token
|
116
|
+
*
|
117
|
+
* @x-internal true
|
118
|
+
* @maxLength 255
|
119
|
+
* @minLength 24
|
120
|
+
*/
|
121
|
+
type PageToken$1 = string;
|
122
|
+
/**
|
123
|
+
* @format date-time
|
124
|
+
* @x-go-type string
|
125
|
+
*/
|
126
|
+
type DateTime$1 = string;
|
127
|
+
/**
|
128
|
+
* @x-internal true
|
129
|
+
*/
|
130
|
+
type BranchDetails = {
|
131
|
+
name: string;
|
132
|
+
id: string;
|
133
|
+
/**
|
134
|
+
* The cluster where this branch resides.
|
135
|
+
*
|
136
|
+
* @minLength 1
|
137
|
+
*/
|
138
|
+
clusterID: string;
|
139
|
+
state: string;
|
140
|
+
createdAt: DateTime$1;
|
141
|
+
databaseName: string;
|
142
|
+
databaseID: string;
|
143
|
+
};
|
144
|
+
/**
|
145
|
+
* @x-internal true
|
146
|
+
*/
|
147
|
+
type PageResponse$1 = {
|
148
|
+
size: number;
|
149
|
+
hasMore: boolean;
|
150
|
+
token?: string;
|
151
|
+
};
|
152
|
+
/**
|
153
|
+
* @x-internal true
|
154
|
+
*/
|
155
|
+
type ListClusterBranchesResponse = {
|
156
|
+
branches: BranchDetails[];
|
157
|
+
page?: PageResponse$1;
|
158
|
+
};
|
159
|
+
/**
|
160
|
+
* @x-internal true
|
161
|
+
*/
|
162
|
+
type ExtensionDetails = {
|
163
|
+
name: string;
|
164
|
+
description: string;
|
165
|
+
builtIn: boolean;
|
166
|
+
status: 'installed' | 'not_installed';
|
167
|
+
version: string;
|
168
|
+
};
|
169
|
+
/**
|
170
|
+
* @x-internal true
|
171
|
+
*/
|
172
|
+
type ListClusterExtensionsResponse = {
|
173
|
+
extensions: ExtensionDetails[];
|
174
|
+
};
|
175
|
+
/**
|
176
|
+
* @x-internal true
|
177
|
+
*/
|
178
|
+
type ClusterExtensionInstallationResponse = {
|
179
|
+
extension: string;
|
180
|
+
status: 'success' | 'failure';
|
181
|
+
reason?: string;
|
182
|
+
};
|
183
|
+
/**
|
184
|
+
* @x-internal true
|
185
|
+
*/
|
186
|
+
type MetricMessage = {
|
187
|
+
code?: string;
|
188
|
+
value?: string;
|
189
|
+
};
|
190
|
+
/**
|
191
|
+
* @x-internal true
|
192
|
+
*/
|
193
|
+
type MetricData = {
|
194
|
+
id?: string;
|
195
|
+
label?: string;
|
196
|
+
messages?: MetricMessage[] | null;
|
197
|
+
status: 'complete' | 'error' | 'partial' | 'forbidden';
|
198
|
+
timestamps: string[];
|
199
|
+
values: number[];
|
200
|
+
};
|
201
|
+
/**
|
202
|
+
* @x-internal true
|
203
|
+
*/
|
204
|
+
type MetricsResponse = {
|
205
|
+
metrics: MetricData[];
|
206
|
+
messages: MetricMessage[];
|
207
|
+
page?: PageResponse$1;
|
208
|
+
};
|
76
209
|
/**
|
77
210
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
78
211
|
*
|
@@ -87,6 +220,24 @@ type ApplyMigrationResponse = {
|
|
87
220
|
*/
|
88
221
|
jobID: string;
|
89
222
|
};
|
223
|
+
type StartMigrationResponse = {
|
224
|
+
/**
|
225
|
+
* The id of the migration job
|
226
|
+
*/
|
227
|
+
jobID: string;
|
228
|
+
};
|
229
|
+
type CompleteMigrationResponse = {
|
230
|
+
/**
|
231
|
+
* The id of the migration job
|
232
|
+
*/
|
233
|
+
jobID: string;
|
234
|
+
};
|
235
|
+
type RollbackMigrationResponse = {
|
236
|
+
/**
|
237
|
+
* The id of the migration job
|
238
|
+
*/
|
239
|
+
jobID: string;
|
240
|
+
};
|
90
241
|
/**
|
91
242
|
* @maxLength 255
|
92
243
|
* @minLength 1
|
@@ -95,6 +246,95 @@ type ApplyMigrationResponse = {
|
|
95
246
|
type TableName = string;
|
96
247
|
type MigrationJobType = 'apply' | 'start' | 'complete' | 'rollback';
|
97
248
|
type MigrationJobStatus = 'pending' | 'in_progress' | 'completed' | 'failed';
|
249
|
+
/**
|
250
|
+
* The effect of a migration operation in terms of CRUD operations on the underlying schema
|
251
|
+
*/
|
252
|
+
type MigrationOperationDescription = {
|
253
|
+
/**
|
254
|
+
* A new database object created by the operation
|
255
|
+
*/
|
256
|
+
create?: {
|
257
|
+
/**
|
258
|
+
* The type of object created
|
259
|
+
*/
|
260
|
+
type: 'table' | 'column' | 'index';
|
261
|
+
/**
|
262
|
+
* The name of the object created
|
263
|
+
*/
|
264
|
+
name: string;
|
265
|
+
/**
|
266
|
+
* The name of the table on which the object is created, if applicable
|
267
|
+
*/
|
268
|
+
table?: string;
|
269
|
+
/**
|
270
|
+
* The mapping between the virtual and physical name of the new object, if applicable
|
271
|
+
*/
|
272
|
+
mapping?: Record<string, any>;
|
273
|
+
};
|
274
|
+
/**
|
275
|
+
* A database object updated by the operation
|
276
|
+
*/
|
277
|
+
update?: {
|
278
|
+
/**
|
279
|
+
* The type of updated object
|
280
|
+
*/
|
281
|
+
type: 'table' | 'column';
|
282
|
+
/**
|
283
|
+
* The name of the updated object
|
284
|
+
*/
|
285
|
+
name: string;
|
286
|
+
/**
|
287
|
+
* The name of the table on which the object is updated, if applicable
|
288
|
+
*/
|
289
|
+
table?: string;
|
290
|
+
/**
|
291
|
+
* The mapping between the virtual and physical name of the updated object, if applicable
|
292
|
+
*/
|
293
|
+
mapping?: Record<string, any>;
|
294
|
+
};
|
295
|
+
/**
|
296
|
+
* A database object renamed by the operation
|
297
|
+
*/
|
298
|
+
rename?: {
|
299
|
+
/**
|
300
|
+
* The type of the renamed object
|
301
|
+
*/
|
302
|
+
type: 'table' | 'column' | 'constraint';
|
303
|
+
/**
|
304
|
+
* The name of the table on which the object is renamed, if applicable
|
305
|
+
*/
|
306
|
+
table?: string;
|
307
|
+
/**
|
308
|
+
* The old name of the renamed object
|
309
|
+
*/
|
310
|
+
from: string;
|
311
|
+
/**
|
312
|
+
* The new name of the renamed object
|
313
|
+
*/
|
314
|
+
to: string;
|
315
|
+
};
|
316
|
+
/**
|
317
|
+
* A database object deleted by the operation
|
318
|
+
*/
|
319
|
+
['delete']?: {
|
320
|
+
/**
|
321
|
+
* The type of the deleted object
|
322
|
+
*/
|
323
|
+
type: 'table' | 'column' | 'constraint' | 'index';
|
324
|
+
/**
|
325
|
+
* The name of the deleted object
|
326
|
+
*/
|
327
|
+
name: string;
|
328
|
+
/**
|
329
|
+
* The name of the table on which the object is deleted, if applicable
|
330
|
+
*/
|
331
|
+
table: string;
|
332
|
+
};
|
333
|
+
};
|
334
|
+
/**
|
335
|
+
* @minItems 1
|
336
|
+
*/
|
337
|
+
type MigrationDescription = MigrationOperationDescription[];
|
98
338
|
type MigrationJobStatusResponse = {
|
99
339
|
/**
|
100
340
|
* The id of the migration job
|
@@ -108,11 +348,69 @@ type MigrationJobStatusResponse = {
|
|
108
348
|
* The status of the migration job
|
109
349
|
*/
|
110
350
|
status: MigrationJobStatus;
|
351
|
+
/**
|
352
|
+
* The effect of any active migration on the schema
|
353
|
+
*/
|
354
|
+
description?: MigrationDescription;
|
355
|
+
/**
|
356
|
+
* The timestamp at which the migration job completed or failed
|
357
|
+
*
|
358
|
+
* @format date-time
|
359
|
+
*/
|
360
|
+
completedAt?: string;
|
111
361
|
/**
|
112
362
|
* The error message associated with the migration job
|
113
363
|
*/
|
114
364
|
error?: string;
|
115
365
|
};
|
366
|
+
type MigrationJobItem = {
|
367
|
+
/**
|
368
|
+
* The id of the migration job
|
369
|
+
*/
|
370
|
+
jobID: string;
|
371
|
+
/**
|
372
|
+
* The type of the migration job
|
373
|
+
*/
|
374
|
+
type: MigrationJobType;
|
375
|
+
/**
|
376
|
+
* The status of the migration job
|
377
|
+
*/
|
378
|
+
status: MigrationJobStatus;
|
379
|
+
/**
|
380
|
+
* The pgroll migration that was applied
|
381
|
+
*/
|
382
|
+
migration?: string;
|
383
|
+
/**
|
384
|
+
* The effect of any active migration on the schema
|
385
|
+
*/
|
386
|
+
description?: MigrationDescription;
|
387
|
+
/**
|
388
|
+
* The timestamp at which the migration job was enqueued
|
389
|
+
*
|
390
|
+
* @format date-time
|
391
|
+
*/
|
392
|
+
enqueuedAt: string;
|
393
|
+
/**
|
394
|
+
* The timestamp at which the migration job completed or failed
|
395
|
+
*
|
396
|
+
* @format date-time
|
397
|
+
*/
|
398
|
+
completedAt?: string;
|
399
|
+
/**
|
400
|
+
* The error message associated with the migration job
|
401
|
+
*/
|
402
|
+
error?: string;
|
403
|
+
};
|
404
|
+
type GetMigrationJobsResponse = {
|
405
|
+
/**
|
406
|
+
* The list of migration jobs
|
407
|
+
*/
|
408
|
+
jobs: MigrationJobItem[];
|
409
|
+
/**
|
410
|
+
* The cursor (timestamp) for the next page of results
|
411
|
+
*/
|
412
|
+
cursor?: string;
|
413
|
+
};
|
116
414
|
/**
|
117
415
|
* @maxLength 255
|
118
416
|
* @minLength 1
|
@@ -125,6 +423,10 @@ type MigrationHistoryItem = {
|
|
125
423
|
* The name of the migration
|
126
424
|
*/
|
127
425
|
name: string;
|
426
|
+
/**
|
427
|
+
* The schema in which the migration was applied
|
428
|
+
*/
|
429
|
+
schema: string;
|
128
430
|
/**
|
129
431
|
* The pgroll migration that was applied
|
130
432
|
*/
|
@@ -153,6 +455,10 @@ type MigrationHistoryResponse = {
|
|
153
455
|
* The migrations that have been applied to the branch
|
154
456
|
*/
|
155
457
|
migrations: MigrationHistoryItem[];
|
458
|
+
/**
|
459
|
+
* The cursor (timestamp) for the next page of results
|
460
|
+
*/
|
461
|
+
cursor?: string;
|
156
462
|
};
|
157
463
|
/**
|
158
464
|
* @maxLength 255
|
@@ -161,10 +467,9 @@ type MigrationHistoryResponse = {
|
|
161
467
|
*/
|
162
468
|
type DBName$1 = string;
|
163
469
|
/**
|
164
|
-
*
|
165
|
-
* @x-go-type string
|
470
|
+
* Represent the state of the branch, used for branch lifecycle management
|
166
471
|
*/
|
167
|
-
type
|
472
|
+
type BranchState = 'active' | 'move_scheduled' | 'moving';
|
168
473
|
type Branch = {
|
169
474
|
name: string;
|
170
475
|
/**
|
@@ -173,7 +478,10 @@ type Branch = {
|
|
173
478
|
* @minLength 1
|
174
479
|
*/
|
175
480
|
clusterID?: string;
|
481
|
+
state: BranchState;
|
176
482
|
createdAt: DateTime$1;
|
483
|
+
searchDisabled?: boolean;
|
484
|
+
inactiveSharedCluster?: boolean;
|
177
485
|
};
|
178
486
|
type ListBranchesResponse = {
|
179
487
|
databaseName: string;
|
@@ -204,6 +512,12 @@ type BranchMetadata$1 = {
|
|
204
512
|
stage?: string;
|
205
513
|
labels?: string[];
|
206
514
|
};
|
515
|
+
type CreateBranchResponse$1 = {
|
516
|
+
/**
|
517
|
+
* The id of the branch creation task
|
518
|
+
*/
|
519
|
+
taskID: string;
|
520
|
+
};
|
207
521
|
type StartedFromMetadata = {
|
208
522
|
branchName: BranchName$1;
|
209
523
|
dbBranchID: string;
|
@@ -263,6 +577,7 @@ type DBBranch = {
|
|
263
577
|
*/
|
264
578
|
clusterID?: string;
|
265
579
|
version: number;
|
580
|
+
state: BranchState;
|
266
581
|
lastMigrationID: string;
|
267
582
|
metadata?: BranchMetadata$1;
|
268
583
|
startedFrom?: StartedFromMetadata;
|
@@ -1498,6 +1813,57 @@ type FileSignature = string;
|
|
1498
1813
|
type SQLRecord = {
|
1499
1814
|
[key: string]: any;
|
1500
1815
|
};
|
1816
|
+
/**
|
1817
|
+
* @default strong
|
1818
|
+
*/
|
1819
|
+
type SQLConsistency = 'strong' | 'eventual';
|
1820
|
+
/**
|
1821
|
+
* @default json
|
1822
|
+
*/
|
1823
|
+
type SQLResponseType$1 = 'json' | 'array';
|
1824
|
+
type PreparedStatement = {
|
1825
|
+
/**
|
1826
|
+
* The SQL statement.
|
1827
|
+
*
|
1828
|
+
* @minLength 1
|
1829
|
+
*/
|
1830
|
+
statement: string;
|
1831
|
+
/**
|
1832
|
+
* The query parameter list.
|
1833
|
+
*
|
1834
|
+
* @x-go-type []any
|
1835
|
+
*/
|
1836
|
+
params?: any[] | null;
|
1837
|
+
};
|
1838
|
+
type SQLResponseBase = {
|
1839
|
+
/**
|
1840
|
+
* Name of the column and its PostgreSQL type
|
1841
|
+
*
|
1842
|
+
* @x-go-type []sqlproxy.ColumnMeta
|
1843
|
+
*/
|
1844
|
+
columns: {
|
1845
|
+
name: string;
|
1846
|
+
type: string;
|
1847
|
+
}[];
|
1848
|
+
/**
|
1849
|
+
* Number of selected columns
|
1850
|
+
*/
|
1851
|
+
total: number;
|
1852
|
+
warning?: string;
|
1853
|
+
};
|
1854
|
+
type SQLResponseJSON = SQLResponseBase & {
|
1855
|
+
/**
|
1856
|
+
* @x-go-type []xata.Record
|
1857
|
+
*/
|
1858
|
+
records: SQLRecord[];
|
1859
|
+
};
|
1860
|
+
type SQLResponseArray = SQLResponseBase & {
|
1861
|
+
/**
|
1862
|
+
* @x-go-type []xata.Row
|
1863
|
+
*/
|
1864
|
+
rows: any[][];
|
1865
|
+
};
|
1866
|
+
type SQLResponse$1 = SQLResponseJSON | SQLResponseArray;
|
1501
1867
|
/**
|
1502
1868
|
* Xata Table Record Metadata
|
1503
1869
|
*/
|
@@ -1600,21 +1966,9 @@ type AggResponse = {
|
|
1600
1966
|
[key: string]: AggResponse$1;
|
1601
1967
|
};
|
1602
1968
|
};
|
1603
|
-
type SQLResponse =
|
1604
|
-
|
1605
|
-
|
1606
|
-
/**
|
1607
|
-
* Name of the column and its PostgreSQL type
|
1608
|
-
*/
|
1609
|
-
columns?: {
|
1610
|
-
name?: string;
|
1611
|
-
type?: string;
|
1612
|
-
}[];
|
1613
|
-
/**
|
1614
|
-
* Number of selected columns
|
1615
|
-
*/
|
1616
|
-
total?: number;
|
1617
|
-
warning?: string;
|
1969
|
+
type SQLResponse = SQLResponse$1;
|
1970
|
+
type SQLBatchResponse = {
|
1971
|
+
results: SQLResponse$1[];
|
1618
1972
|
};
|
1619
1973
|
|
1620
1974
|
declare class ErrorWithCause extends Error {
|
@@ -1674,6 +2028,215 @@ type ErrorWrapper$1<TError> = TError | {
|
|
1674
2028
|
* @version 1.0
|
1675
2029
|
*/
|
1676
2030
|
|
2031
|
+
type GetTasksPathParams = {
|
2032
|
+
workspace: string;
|
2033
|
+
region: string;
|
2034
|
+
};
|
2035
|
+
type GetTasksError = ErrorWrapper$1<{
|
2036
|
+
status: 400;
|
2037
|
+
payload: BadRequestError$1;
|
2038
|
+
} | {
|
2039
|
+
status: 401;
|
2040
|
+
payload: AuthError$1;
|
2041
|
+
} | {
|
2042
|
+
status: 404;
|
2043
|
+
payload: SimpleError$1;
|
2044
|
+
}>;
|
2045
|
+
type GetTasksResponse = TaskStatusResponse[];
|
2046
|
+
type GetTasksVariables = {
|
2047
|
+
pathParams: GetTasksPathParams;
|
2048
|
+
} & DataPlaneFetcherExtraProps;
|
2049
|
+
declare const getTasks: (variables: GetTasksVariables, signal?: AbortSignal) => Promise<GetTasksResponse>;
|
2050
|
+
type GetTaskStatusPathParams = {
|
2051
|
+
/**
|
2052
|
+
* The id of the branch creation task
|
2053
|
+
*/
|
2054
|
+
taskId: TaskID;
|
2055
|
+
workspace: string;
|
2056
|
+
region: string;
|
2057
|
+
};
|
2058
|
+
type GetTaskStatusError = ErrorWrapper$1<{
|
2059
|
+
status: 400;
|
2060
|
+
payload: BadRequestError$1;
|
2061
|
+
} | {
|
2062
|
+
status: 401;
|
2063
|
+
payload: AuthError$1;
|
2064
|
+
} | {
|
2065
|
+
status: 404;
|
2066
|
+
payload: SimpleError$1;
|
2067
|
+
}>;
|
2068
|
+
type GetTaskStatusVariables = {
|
2069
|
+
pathParams: GetTaskStatusPathParams;
|
2070
|
+
} & DataPlaneFetcherExtraProps;
|
2071
|
+
declare const getTaskStatus: (variables: GetTaskStatusVariables, signal?: AbortSignal) => Promise<TaskStatusResponse>;
|
2072
|
+
type ListClusterBranchesPathParams = {
|
2073
|
+
/**
|
2074
|
+
* Cluster ID
|
2075
|
+
*/
|
2076
|
+
clusterId: ClusterID$1;
|
2077
|
+
workspace: string;
|
2078
|
+
region: string;
|
2079
|
+
};
|
2080
|
+
type ListClusterBranchesQueryParams = {
|
2081
|
+
/**
|
2082
|
+
* Page size
|
2083
|
+
*/
|
2084
|
+
page?: PageSize$1;
|
2085
|
+
/**
|
2086
|
+
* Page token
|
2087
|
+
*/
|
2088
|
+
token?: PageToken$1;
|
2089
|
+
};
|
2090
|
+
type ListClusterBranchesError = ErrorWrapper$1<{
|
2091
|
+
status: 400;
|
2092
|
+
payload: BadRequestError$1;
|
2093
|
+
} | {
|
2094
|
+
status: 401;
|
2095
|
+
payload: AuthError$1;
|
2096
|
+
}>;
|
2097
|
+
type ListClusterBranchesVariables = {
|
2098
|
+
pathParams: ListClusterBranchesPathParams;
|
2099
|
+
queryParams?: ListClusterBranchesQueryParams;
|
2100
|
+
} & DataPlaneFetcherExtraProps;
|
2101
|
+
/**
|
2102
|
+
* Retrieve branches for given cluster ID
|
2103
|
+
*/
|
2104
|
+
declare const listClusterBranches: (variables: ListClusterBranchesVariables, signal?: AbortSignal) => Promise<ListClusterBranchesResponse>;
|
2105
|
+
type ListClusterExtensionsPathParams = {
|
2106
|
+
/**
|
2107
|
+
* Cluster ID
|
2108
|
+
*/
|
2109
|
+
clusterId: ClusterID$1;
|
2110
|
+
workspace: string;
|
2111
|
+
region: string;
|
2112
|
+
};
|
2113
|
+
type ListClusterExtensionsQueryParams = {
|
2114
|
+
extensionType: 'available' | 'installed';
|
2115
|
+
};
|
2116
|
+
type ListClusterExtensionsError = ErrorWrapper$1<{
|
2117
|
+
status: 400;
|
2118
|
+
payload: BadRequestError$1;
|
2119
|
+
} | {
|
2120
|
+
status: 401;
|
2121
|
+
payload: AuthError$1;
|
2122
|
+
}>;
|
2123
|
+
type ListClusterExtensionsVariables = {
|
2124
|
+
pathParams: ListClusterExtensionsPathParams;
|
2125
|
+
queryParams: ListClusterExtensionsQueryParams;
|
2126
|
+
} & DataPlaneFetcherExtraProps;
|
2127
|
+
/**
|
2128
|
+
* Retrieve extensions for given cluster ID
|
2129
|
+
*/
|
2130
|
+
declare const listClusterExtensions: (variables: ListClusterExtensionsVariables, signal?: AbortSignal) => Promise<ListClusterExtensionsResponse>;
|
2131
|
+
type InstallClusterExtensionPathParams = {
|
2132
|
+
/**
|
2133
|
+
* Cluster ID
|
2134
|
+
*/
|
2135
|
+
clusterId: ClusterID$1;
|
2136
|
+
workspace: string;
|
2137
|
+
region: string;
|
2138
|
+
};
|
2139
|
+
type InstallClusterExtensionError = ErrorWrapper$1<{
|
2140
|
+
status: 400;
|
2141
|
+
payload: BadRequestError$1;
|
2142
|
+
} | {
|
2143
|
+
status: 401;
|
2144
|
+
payload: AuthError$1;
|
2145
|
+
}>;
|
2146
|
+
type InstallClusterExtensionRequestBody = {
|
2147
|
+
/**
|
2148
|
+
* Extension name
|
2149
|
+
*/
|
2150
|
+
extension: string;
|
2151
|
+
/**
|
2152
|
+
* Schema name
|
2153
|
+
*/
|
2154
|
+
schema?: string;
|
2155
|
+
/**
|
2156
|
+
* install with cascade option
|
2157
|
+
*/
|
2158
|
+
cascade?: boolean;
|
2159
|
+
};
|
2160
|
+
type InstallClusterExtensionVariables = {
|
2161
|
+
body: InstallClusterExtensionRequestBody;
|
2162
|
+
pathParams: InstallClusterExtensionPathParams;
|
2163
|
+
} & DataPlaneFetcherExtraProps;
|
2164
|
+
/**
|
2165
|
+
* Install an extension for given cluster ID
|
2166
|
+
*/
|
2167
|
+
declare const installClusterExtension: (variables: InstallClusterExtensionVariables, signal?: AbortSignal) => Promise<ClusterExtensionInstallationResponse>;
|
2168
|
+
type DropClusterExtensionPathParams = {
|
2169
|
+
/**
|
2170
|
+
* Cluster ID
|
2171
|
+
*/
|
2172
|
+
clusterId: ClusterID$1;
|
2173
|
+
workspace: string;
|
2174
|
+
region: string;
|
2175
|
+
};
|
2176
|
+
type DropClusterExtensionError = ErrorWrapper$1<{
|
2177
|
+
status: 400;
|
2178
|
+
payload: BadRequestError$1;
|
2179
|
+
} | {
|
2180
|
+
status: 401;
|
2181
|
+
payload: AuthError$1;
|
2182
|
+
}>;
|
2183
|
+
type DropClusterExtensionRequestBody = {
|
2184
|
+
/**
|
2185
|
+
* Extension name
|
2186
|
+
*/
|
2187
|
+
extension: string;
|
2188
|
+
/**
|
2189
|
+
* drop with cascade option, true by default
|
2190
|
+
*/
|
2191
|
+
cascade?: boolean;
|
2192
|
+
};
|
2193
|
+
type DropClusterExtensionVariables = {
|
2194
|
+
body: DropClusterExtensionRequestBody;
|
2195
|
+
pathParams: DropClusterExtensionPathParams;
|
2196
|
+
} & DataPlaneFetcherExtraProps;
|
2197
|
+
/**
|
2198
|
+
* Drop an extension for given cluster ID
|
2199
|
+
*/
|
2200
|
+
declare const dropClusterExtension: (variables: DropClusterExtensionVariables, signal?: AbortSignal) => Promise<undefined>;
|
2201
|
+
type GetClusterMetricsPathParams = {
|
2202
|
+
/**
|
2203
|
+
* Cluster ID
|
2204
|
+
*/
|
2205
|
+
clusterId: ClusterID$1;
|
2206
|
+
workspace: string;
|
2207
|
+
region: string;
|
2208
|
+
};
|
2209
|
+
type GetClusterMetricsQueryParams = {
|
2210
|
+
startTime: string;
|
2211
|
+
endTime: string;
|
2212
|
+
period: '5min' | '15min' | '1hour';
|
2213
|
+
/**
|
2214
|
+
* Page size
|
2215
|
+
*/
|
2216
|
+
page?: PageSize$1;
|
2217
|
+
/**
|
2218
|
+
* Page token
|
2219
|
+
*/
|
2220
|
+
token?: PageToken$1;
|
2221
|
+
};
|
2222
|
+
type GetClusterMetricsError = ErrorWrapper$1<{
|
2223
|
+
status: 400;
|
2224
|
+
payload: BadRequestError$1;
|
2225
|
+
} | {
|
2226
|
+
status: 401;
|
2227
|
+
payload: AuthError$1;
|
2228
|
+
} | {
|
2229
|
+
status: 404;
|
2230
|
+
payload: SimpleError$1;
|
2231
|
+
}>;
|
2232
|
+
type GetClusterMetricsVariables = {
|
2233
|
+
pathParams: GetClusterMetricsPathParams;
|
2234
|
+
queryParams: GetClusterMetricsQueryParams;
|
2235
|
+
} & DataPlaneFetcherExtraProps;
|
2236
|
+
/**
|
2237
|
+
* retrieve a standard set of RDS cluster metrics
|
2238
|
+
*/
|
2239
|
+
declare const getClusterMetrics: (variables: GetClusterMetricsVariables, signal?: AbortSignal) => Promise<MetricsResponse>;
|
1677
2240
|
type ApplyMigrationPathParams = {
|
1678
2241
|
/**
|
1679
2242
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -1700,16 +2263,131 @@ type ApplyMigrationRequestBody = {
|
|
1700
2263
|
operations: {
|
1701
2264
|
[key: string]: any;
|
1702
2265
|
}[];
|
2266
|
+
/**
|
2267
|
+
* The schema in which the migration should be applied
|
2268
|
+
*
|
2269
|
+
* @default public
|
2270
|
+
*/
|
2271
|
+
schema?: string;
|
1703
2272
|
adaptTables?: boolean;
|
1704
2273
|
};
|
1705
|
-
type ApplyMigrationVariables = {
|
1706
|
-
body: ApplyMigrationRequestBody;
|
1707
|
-
pathParams: ApplyMigrationPathParams;
|
2274
|
+
type ApplyMigrationVariables = {
|
2275
|
+
body: ApplyMigrationRequestBody;
|
2276
|
+
pathParams: ApplyMigrationPathParams;
|
2277
|
+
} & DataPlaneFetcherExtraProps;
|
2278
|
+
/**
|
2279
|
+
* Applies a pgroll migration to the specified database.
|
2280
|
+
*/
|
2281
|
+
declare const applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
2282
|
+
type StartMigrationPathParams = {
|
2283
|
+
/**
|
2284
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
2285
|
+
*/
|
2286
|
+
dbBranchName: DBBranchName;
|
2287
|
+
workspace: string;
|
2288
|
+
region: string;
|
2289
|
+
};
|
2290
|
+
type StartMigrationError = ErrorWrapper$1<{
|
2291
|
+
status: 400;
|
2292
|
+
payload: BadRequestError$1;
|
2293
|
+
} | {
|
2294
|
+
status: 401;
|
2295
|
+
payload: AuthError$1;
|
2296
|
+
} | {
|
2297
|
+
status: 404;
|
2298
|
+
payload: SimpleError$1;
|
2299
|
+
}>;
|
2300
|
+
type StartMigrationRequestBody = {
|
2301
|
+
/**
|
2302
|
+
* Migration name
|
2303
|
+
*/
|
2304
|
+
name?: string;
|
2305
|
+
operations: {
|
2306
|
+
[key: string]: any;
|
2307
|
+
}[];
|
2308
|
+
/**
|
2309
|
+
* The schema in which the migration should be started
|
2310
|
+
*
|
2311
|
+
* @default public
|
2312
|
+
*/
|
2313
|
+
schema?: string;
|
2314
|
+
};
|
2315
|
+
type StartMigrationVariables = {
|
2316
|
+
body: StartMigrationRequestBody;
|
2317
|
+
pathParams: StartMigrationPathParams;
|
2318
|
+
} & DataPlaneFetcherExtraProps;
|
2319
|
+
/**
|
2320
|
+
* Starts a pgroll migration on the specified database.
|
2321
|
+
*/
|
2322
|
+
declare const startMigration: (variables: StartMigrationVariables, signal?: AbortSignal) => Promise<StartMigrationResponse>;
|
2323
|
+
type CompleteMigrationPathParams = {
|
2324
|
+
/**
|
2325
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
2326
|
+
*/
|
2327
|
+
dbBranchName: DBBranchName;
|
2328
|
+
workspace: string;
|
2329
|
+
region: string;
|
2330
|
+
};
|
2331
|
+
type CompleteMigrationError = ErrorWrapper$1<{
|
2332
|
+
status: 400;
|
2333
|
+
payload: BadRequestError$1;
|
2334
|
+
} | {
|
2335
|
+
status: 401;
|
2336
|
+
payload: AuthError$1;
|
2337
|
+
} | {
|
2338
|
+
status: 404;
|
2339
|
+
payload: SimpleError$1;
|
2340
|
+
}>;
|
2341
|
+
type CompleteMigrationRequestBody = {
|
2342
|
+
/**
|
2343
|
+
* The schema in which the migration should be completed
|
2344
|
+
*
|
2345
|
+
* @default public
|
2346
|
+
*/
|
2347
|
+
schema?: string;
|
2348
|
+
};
|
2349
|
+
type CompleteMigrationVariables = {
|
2350
|
+
body?: CompleteMigrationRequestBody;
|
2351
|
+
pathParams: CompleteMigrationPathParams;
|
2352
|
+
} & DataPlaneFetcherExtraProps;
|
2353
|
+
/**
|
2354
|
+
* Complete an active migration on the specified database
|
2355
|
+
*/
|
2356
|
+
declare const completeMigration: (variables: CompleteMigrationVariables, signal?: AbortSignal) => Promise<CompleteMigrationResponse>;
|
2357
|
+
type RollbackMigrationPathParams = {
|
2358
|
+
/**
|
2359
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
2360
|
+
*/
|
2361
|
+
dbBranchName: DBBranchName;
|
2362
|
+
workspace: string;
|
2363
|
+
region: string;
|
2364
|
+
};
|
2365
|
+
type RollbackMigrationError = ErrorWrapper$1<{
|
2366
|
+
status: 400;
|
2367
|
+
payload: BadRequestError$1;
|
2368
|
+
} | {
|
2369
|
+
status: 401;
|
2370
|
+
payload: AuthError$1;
|
2371
|
+
} | {
|
2372
|
+
status: 404;
|
2373
|
+
payload: SimpleError$1;
|
2374
|
+
}>;
|
2375
|
+
type RollbackMigrationRequestBody = {
|
2376
|
+
/**
|
2377
|
+
* The schema in which the migration should be rolled back
|
2378
|
+
*
|
2379
|
+
* @default public
|
2380
|
+
*/
|
2381
|
+
schema?: string;
|
2382
|
+
};
|
2383
|
+
type RollbackMigrationVariables = {
|
2384
|
+
body?: RollbackMigrationRequestBody;
|
2385
|
+
pathParams: RollbackMigrationPathParams;
|
1708
2386
|
} & DataPlaneFetcherExtraProps;
|
1709
2387
|
/**
|
1710
|
-
*
|
2388
|
+
* Roll back an active migration on the specified database
|
1711
2389
|
*/
|
1712
|
-
declare const
|
2390
|
+
declare const rollbackMigration: (variables: RollbackMigrationVariables, signal?: AbortSignal) => Promise<RollbackMigrationResponse>;
|
1713
2391
|
type AdaptTablePathParams = {
|
1714
2392
|
/**
|
1715
2393
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -1786,6 +2464,39 @@ type GetBranchMigrationJobStatusVariables = {
|
|
1786
2464
|
pathParams: GetBranchMigrationJobStatusPathParams;
|
1787
2465
|
} & DataPlaneFetcherExtraProps;
|
1788
2466
|
declare const getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
2467
|
+
type GetMigrationJobsPathParams = {
|
2468
|
+
/**
|
2469
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
2470
|
+
*/
|
2471
|
+
dbBranchName: DBBranchName;
|
2472
|
+
workspace: string;
|
2473
|
+
region: string;
|
2474
|
+
};
|
2475
|
+
type GetMigrationJobsQueryParams = {
|
2476
|
+
/**
|
2477
|
+
* @format date-time
|
2478
|
+
*/
|
2479
|
+
cursor?: string;
|
2480
|
+
/**
|
2481
|
+
* Page size
|
2482
|
+
*/
|
2483
|
+
limit?: PageSize$1;
|
2484
|
+
};
|
2485
|
+
type GetMigrationJobsError = ErrorWrapper$1<{
|
2486
|
+
status: 400;
|
2487
|
+
payload: BadRequestError$1;
|
2488
|
+
} | {
|
2489
|
+
status: 401;
|
2490
|
+
payload: AuthError$1;
|
2491
|
+
} | {
|
2492
|
+
status: 404;
|
2493
|
+
payload: SimpleError$1;
|
2494
|
+
}>;
|
2495
|
+
type GetMigrationJobsVariables = {
|
2496
|
+
pathParams: GetMigrationJobsPathParams;
|
2497
|
+
queryParams?: GetMigrationJobsQueryParams;
|
2498
|
+
} & DataPlaneFetcherExtraProps;
|
2499
|
+
declare const getMigrationJobs: (variables: GetMigrationJobsVariables, signal?: AbortSignal) => Promise<GetMigrationJobsResponse>;
|
1789
2500
|
type GetMigrationJobStatusPathParams = {
|
1790
2501
|
/**
|
1791
2502
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -1820,6 +2531,16 @@ type GetMigrationHistoryPathParams = {
|
|
1820
2531
|
workspace: string;
|
1821
2532
|
region: string;
|
1822
2533
|
};
|
2534
|
+
type GetMigrationHistoryQueryParams = {
|
2535
|
+
/**
|
2536
|
+
* @format date-time
|
2537
|
+
*/
|
2538
|
+
cursor?: string;
|
2539
|
+
/**
|
2540
|
+
* Page size
|
2541
|
+
*/
|
2542
|
+
limit?: PageSize$1;
|
2543
|
+
};
|
1823
2544
|
type GetMigrationHistoryError = ErrorWrapper$1<{
|
1824
2545
|
status: 400;
|
1825
2546
|
payload: BadRequestError$1;
|
@@ -1832,6 +2553,7 @@ type GetMigrationHistoryError = ErrorWrapper$1<{
|
|
1832
2553
|
}>;
|
1833
2554
|
type GetMigrationHistoryVariables = {
|
1834
2555
|
pathParams: GetMigrationHistoryPathParams;
|
2556
|
+
queryParams?: GetMigrationHistoryQueryParams;
|
1835
2557
|
} & DataPlaneFetcherExtraProps;
|
1836
2558
|
declare const getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal) => Promise<MigrationHistoryResponse>;
|
1837
2559
|
type GetBranchListPathParams = {
|
@@ -1913,6 +2635,53 @@ type UpdateDatabaseSettingsVariables = {
|
|
1913
2635
|
* Update database settings, this endpoint can be used to disable search
|
1914
2636
|
*/
|
1915
2637
|
declare const updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
2638
|
+
type CreateBranchAsyncPathParams = {
|
2639
|
+
/**
|
2640
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
2641
|
+
*/
|
2642
|
+
dbBranchName: DBBranchName;
|
2643
|
+
workspace: string;
|
2644
|
+
region: string;
|
2645
|
+
};
|
2646
|
+
type CreateBranchAsyncQueryParams = {
|
2647
|
+
/**
|
2648
|
+
* Name of source branch to branch the new schema from
|
2649
|
+
*/
|
2650
|
+
from?: string;
|
2651
|
+
};
|
2652
|
+
type CreateBranchAsyncError = ErrorWrapper$1<{
|
2653
|
+
status: 400;
|
2654
|
+
payload: BadRequestError$1;
|
2655
|
+
} | {
|
2656
|
+
status: 401;
|
2657
|
+
payload: AuthError$1;
|
2658
|
+
} | {
|
2659
|
+
status: 404;
|
2660
|
+
payload: SimpleError$1;
|
2661
|
+
} | {
|
2662
|
+
status: 423;
|
2663
|
+
payload: SimpleError$1;
|
2664
|
+
}>;
|
2665
|
+
type CreateBranchAsyncRequestBody = {
|
2666
|
+
/**
|
2667
|
+
* Select the branch to fork from. Defaults to 'main'
|
2668
|
+
*/
|
2669
|
+
from?: string;
|
2670
|
+
/**
|
2671
|
+
* Select the dedicated cluster to create on. Defaults to 'xata-cloud'
|
2672
|
+
*
|
2673
|
+
* @minLength 1
|
2674
|
+
* @x-internal true
|
2675
|
+
*/
|
2676
|
+
clusterID?: string;
|
2677
|
+
metadata?: BranchMetadata$1;
|
2678
|
+
};
|
2679
|
+
type CreateBranchAsyncVariables = {
|
2680
|
+
body?: CreateBranchAsyncRequestBody;
|
2681
|
+
pathParams: CreateBranchAsyncPathParams;
|
2682
|
+
queryParams?: CreateBranchAsyncQueryParams;
|
2683
|
+
} & DataPlaneFetcherExtraProps;
|
2684
|
+
declare const createBranchAsync: (variables: CreateBranchAsyncVariables, signal?: AbortSignal) => Promise<CreateBranchResponse$1>;
|
1916
2685
|
type GetBranchDetailsPathParams = {
|
1917
2686
|
/**
|
1918
2687
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -2046,6 +2815,31 @@ type GetSchemaVariables = {
|
|
2046
2815
|
pathParams: GetSchemaPathParams;
|
2047
2816
|
} & DataPlaneFetcherExtraProps;
|
2048
2817
|
declare const getSchema: (variables: GetSchemaVariables, signal?: AbortSignal) => Promise<GetSchemaResponse>;
|
2818
|
+
type GetSchemasPathParams = {
|
2819
|
+
/**
|
2820
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
2821
|
+
*/
|
2822
|
+
dbBranchName: DBBranchName;
|
2823
|
+
workspace: string;
|
2824
|
+
region: string;
|
2825
|
+
};
|
2826
|
+
type GetSchemasError = ErrorWrapper$1<{
|
2827
|
+
status: 400;
|
2828
|
+
payload: BadRequestError$1;
|
2829
|
+
} | {
|
2830
|
+
status: 401;
|
2831
|
+
payload: AuthError$1;
|
2832
|
+
} | {
|
2833
|
+
status: 404;
|
2834
|
+
payload: SimpleError$1;
|
2835
|
+
}>;
|
2836
|
+
type GetSchemasResponse = {
|
2837
|
+
schemas: BranchSchema[];
|
2838
|
+
};
|
2839
|
+
type GetSchemasVariables = {
|
2840
|
+
pathParams: GetSchemasPathParams;
|
2841
|
+
} & DataPlaneFetcherExtraProps;
|
2842
|
+
declare const getSchemas: (variables: GetSchemasVariables, signal?: AbortSignal) => Promise<GetSchemasResponse>;
|
2049
2843
|
type CopyBranchPathParams = {
|
2050
2844
|
/**
|
2051
2845
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -2076,6 +2870,73 @@ type CopyBranchVariables = {
|
|
2076
2870
|
* Create a copy of the branch
|
2077
2871
|
*/
|
2078
2872
|
declare const copyBranch: (variables: CopyBranchVariables, signal?: AbortSignal) => Promise<BranchWithCopyID>;
|
2873
|
+
type GetBranchMoveStatusPathParams = {
|
2874
|
+
/**
|
2875
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
2876
|
+
*/
|
2877
|
+
dbBranchName: DBBranchName;
|
2878
|
+
workspace: string;
|
2879
|
+
region: string;
|
2880
|
+
};
|
2881
|
+
type GetBranchMoveStatusError = ErrorWrapper$1<{
|
2882
|
+
status: 400;
|
2883
|
+
payload: BadRequestError$1;
|
2884
|
+
} | {
|
2885
|
+
status: 401;
|
2886
|
+
payload: AuthError$1;
|
2887
|
+
} | {
|
2888
|
+
status: 404;
|
2889
|
+
payload: SimpleError$1;
|
2890
|
+
}>;
|
2891
|
+
type GetBranchMoveStatusResponse = {
|
2892
|
+
state: string;
|
2893
|
+
pendingBytes: number;
|
2894
|
+
};
|
2895
|
+
type GetBranchMoveStatusVariables = {
|
2896
|
+
pathParams: GetBranchMoveStatusPathParams;
|
2897
|
+
} & DataPlaneFetcherExtraProps;
|
2898
|
+
/**
|
2899
|
+
* Get the branch move status (if a move is happening)
|
2900
|
+
*/
|
2901
|
+
declare const getBranchMoveStatus: (variables: GetBranchMoveStatusVariables, signal?: AbortSignal) => Promise<GetBranchMoveStatusResponse>;
|
2902
|
+
type MoveBranchPathParams = {
|
2903
|
+
/**
|
2904
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
2905
|
+
*/
|
2906
|
+
dbBranchName: DBBranchName;
|
2907
|
+
workspace: string;
|
2908
|
+
region: string;
|
2909
|
+
};
|
2910
|
+
type MoveBranchError = ErrorWrapper$1<{
|
2911
|
+
status: 400;
|
2912
|
+
payload: BadRequestError$1;
|
2913
|
+
} | {
|
2914
|
+
status: 401;
|
2915
|
+
payload: AuthError$1;
|
2916
|
+
} | {
|
2917
|
+
status: 404;
|
2918
|
+
payload: SimpleError$1;
|
2919
|
+
} | {
|
2920
|
+
status: 423;
|
2921
|
+
payload: SimpleError$1;
|
2922
|
+
}>;
|
2923
|
+
type MoveBranchResponse = {
|
2924
|
+
state: string;
|
2925
|
+
};
|
2926
|
+
type MoveBranchRequestBody = {
|
2927
|
+
/**
|
2928
|
+
* Select the cluster to move the branch to. Must be different from the current cluster.
|
2929
|
+
*
|
2930
|
+
* @minLength 1
|
2931
|
+
* @x-internal true
|
2932
|
+
*/
|
2933
|
+
to: string;
|
2934
|
+
};
|
2935
|
+
type MoveBranchVariables = {
|
2936
|
+
body: MoveBranchRequestBody;
|
2937
|
+
pathParams: MoveBranchPathParams;
|
2938
|
+
} & DataPlaneFetcherExtraProps;
|
2939
|
+
declare const moveBranch: (variables: MoveBranchVariables, signal?: AbortSignal) => Promise<MoveBranchResponse>;
|
2079
2940
|
type UpdateBranchMetadataPathParams = {
|
2080
2941
|
/**
|
2081
2942
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -5250,38 +6111,57 @@ type SqlQueryError = ErrorWrapper$1<{
|
|
5250
6111
|
status: 503;
|
5251
6112
|
payload: ServiceUnavailableError;
|
5252
6113
|
}>;
|
5253
|
-
type SqlQueryRequestBody = {
|
5254
|
-
|
5255
|
-
|
5256
|
-
|
5257
|
-
|
5258
|
-
|
5259
|
-
|
5260
|
-
|
5261
|
-
|
5262
|
-
|
5263
|
-
|
6114
|
+
type SqlQueryRequestBody = PreparedStatement & {
|
6115
|
+
consistency?: SQLConsistency;
|
6116
|
+
responseType?: SQLResponseType$1;
|
6117
|
+
};
|
6118
|
+
type SqlQueryVariables = {
|
6119
|
+
body: SqlQueryRequestBody;
|
6120
|
+
pathParams: SqlQueryPathParams;
|
6121
|
+
} & DataPlaneFetcherExtraProps;
|
6122
|
+
/**
|
6123
|
+
* Run an SQL query across the database branch.
|
6124
|
+
*/
|
6125
|
+
declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse$1>;
|
6126
|
+
type SqlBatchQueryPathParams = {
|
5264
6127
|
/**
|
5265
|
-
* The
|
5266
|
-
*
|
5267
|
-
* @default strong
|
6128
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
5268
6129
|
*/
|
5269
|
-
|
6130
|
+
dbBranchName: DBBranchName;
|
6131
|
+
workspace: string;
|
6132
|
+
region: string;
|
6133
|
+
};
|
6134
|
+
type SqlBatchQueryError = ErrorWrapper$1<{
|
6135
|
+
status: 400;
|
6136
|
+
payload: BadRequestError$1;
|
6137
|
+
} | {
|
6138
|
+
status: 401;
|
6139
|
+
payload: AuthError$1;
|
6140
|
+
} | {
|
6141
|
+
status: 404;
|
6142
|
+
payload: SimpleError$1;
|
6143
|
+
} | {
|
6144
|
+
status: 503;
|
6145
|
+
payload: ServiceUnavailableError;
|
6146
|
+
}>;
|
6147
|
+
type SqlBatchQueryRequestBody = {
|
5270
6148
|
/**
|
5271
|
-
* The
|
6149
|
+
* The SQL statements.
|
5272
6150
|
*
|
5273
|
-
* @
|
6151
|
+
* @x-go-type []sqlproxy.PreparedStatement
|
5274
6152
|
*/
|
5275
|
-
|
6153
|
+
statements: PreparedStatement[];
|
6154
|
+
consistency?: SQLConsistency;
|
6155
|
+
responseType?: SQLResponseType$1;
|
5276
6156
|
};
|
5277
|
-
type
|
5278
|
-
body:
|
5279
|
-
pathParams:
|
6157
|
+
type SqlBatchQueryVariables = {
|
6158
|
+
body: SqlBatchQueryRequestBody;
|
6159
|
+
pathParams: SqlBatchQueryPathParams;
|
5280
6160
|
} & DataPlaneFetcherExtraProps;
|
5281
6161
|
/**
|
5282
|
-
* Run
|
6162
|
+
* Run multiple SQL queries across the database branch.
|
5283
6163
|
*/
|
5284
|
-
declare const
|
6164
|
+
declare const sqlBatchQuery: (variables: SqlBatchQueryVariables, signal?: AbortSignal) => Promise<SQLBatchResponse>;
|
5285
6165
|
|
5286
6166
|
/**
|
5287
6167
|
* Generated by @openapi-codegen
|
@@ -5377,7 +6257,6 @@ type Workspace = WorkspaceMeta & {
|
|
5377
6257
|
plan: WorkspacePlan;
|
5378
6258
|
};
|
5379
6259
|
type WorkspaceSettings = {
|
5380
|
-
postgresEnabled: boolean;
|
5381
6260
|
dedicatedClusters: boolean;
|
5382
6261
|
};
|
5383
6262
|
type WorkspaceMember = {
|
@@ -5446,6 +6325,8 @@ type ClusterShortMetadata = {
|
|
5446
6325
|
* @format int64
|
5447
6326
|
*/
|
5448
6327
|
branches: number;
|
6328
|
+
createdAt: DateTime;
|
6329
|
+
terminatedAt?: DateTime;
|
5449
6330
|
};
|
5450
6331
|
/**
|
5451
6332
|
* @x-internal true
|
@@ -5533,11 +6414,38 @@ type MaintenanceConfig = {
|
|
5533
6414
|
maintenanceWindow?: WeeklyTimeWindow;
|
5534
6415
|
backupWindow?: DailyTimeWindow;
|
5535
6416
|
};
|
6417
|
+
/**
|
6418
|
+
* @x-internal true
|
6419
|
+
*/
|
6420
|
+
type StorageConfig = {
|
6421
|
+
/**
|
6422
|
+
* @default gp3
|
6423
|
+
*/
|
6424
|
+
storageType: 'gp3' | 'io1' | 'io2';
|
6425
|
+
/**
|
6426
|
+
* @format int64
|
6427
|
+
* @default 50
|
6428
|
+
* @maximum 65536
|
6429
|
+
* @minimum 20
|
6430
|
+
*/
|
6431
|
+
allocatedStorageGB?: number;
|
6432
|
+
/**
|
6433
|
+
* @format int64
|
6434
|
+
* @default 3000
|
6435
|
+
* @maximum 256000
|
6436
|
+
* @minimum 1000
|
6437
|
+
*/
|
6438
|
+
provisionedIOPS?: number;
|
6439
|
+
};
|
5536
6440
|
/**
|
5537
6441
|
* @x-internal true
|
5538
6442
|
*/
|
5539
6443
|
type ClusterConfiguration = {
|
5540
6444
|
engineVersion: string;
|
6445
|
+
/**
|
6446
|
+
* @default aurora
|
6447
|
+
*/
|
6448
|
+
engineType?: 'aurora' | 'rds';
|
5541
6449
|
instanceType: string;
|
5542
6450
|
/**
|
5543
6451
|
* @format int64
|
@@ -5556,6 +6464,7 @@ type ClusterConfiguration = {
|
|
5556
6464
|
deletionProtection?: boolean;
|
5557
6465
|
autoscaling?: AutoscalingConfig;
|
5558
6466
|
maintenance?: MaintenanceConfig;
|
6467
|
+
storage?: StorageConfig;
|
5559
6468
|
};
|
5560
6469
|
/**
|
5561
6470
|
* @x-internal true
|
@@ -5610,11 +6519,35 @@ type MaintenanceConfigResponse = {
|
|
5610
6519
|
maintenanceWindow: WeeklyTimeWindow;
|
5611
6520
|
backupWindow: DailyTimeWindow;
|
5612
6521
|
};
|
6522
|
+
/**
|
6523
|
+
* @x-internal true
|
6524
|
+
*/
|
6525
|
+
type StorageConfigResponse = {
|
6526
|
+
/**
|
6527
|
+
* @default gp3
|
6528
|
+
*/
|
6529
|
+
storageType: 'gp3' | 'io1' | 'io2';
|
6530
|
+
/**
|
6531
|
+
* @format int64
|
6532
|
+
* @default 50
|
6533
|
+
* @maximum 65536
|
6534
|
+
* @minimum 20
|
6535
|
+
*/
|
6536
|
+
allocatedStorageGB?: number;
|
6537
|
+
/**
|
6538
|
+
* @format int64
|
6539
|
+
* @default 3000
|
6540
|
+
* @maximum 256000
|
6541
|
+
* @minimum 1000
|
6542
|
+
*/
|
6543
|
+
provisionedIOPS?: number;
|
6544
|
+
};
|
5613
6545
|
/**
|
5614
6546
|
* @x-internal true
|
5615
6547
|
*/
|
5616
6548
|
type ClusterConfigurationResponse = {
|
5617
6549
|
engineVersion: string;
|
6550
|
+
engineType: 'aurora' | 'rds';
|
5618
6551
|
instanceType: string;
|
5619
6552
|
/**
|
5620
6553
|
* @format int64
|
@@ -5630,6 +6563,7 @@ type ClusterConfigurationResponse = {
|
|
5630
6563
|
deletionProtection: boolean;
|
5631
6564
|
autoscaling?: AutoscalingConfigResponse;
|
5632
6565
|
maintenance: MaintenanceConfigResponse;
|
6566
|
+
storage?: StorageConfigResponse;
|
5633
6567
|
};
|
5634
6568
|
/**
|
5635
6569
|
* @x-internal true
|
@@ -5648,9 +6582,15 @@ type ClusterMetadata = {
|
|
5648
6582
|
/**
|
5649
6583
|
* @x-internal true
|
5650
6584
|
*/
|
5651
|
-
type
|
6585
|
+
type ClusterDeleteMetadata = {
|
5652
6586
|
id: ClusterID;
|
5653
6587
|
state: string;
|
6588
|
+
region: string;
|
6589
|
+
name: string;
|
6590
|
+
/**
|
6591
|
+
* @format int64
|
6592
|
+
*/
|
6593
|
+
branches: number;
|
5654
6594
|
};
|
5655
6595
|
/**
|
5656
6596
|
* @x-internal true
|
@@ -5661,6 +6601,13 @@ type ClusterUpdateDetails = {
|
|
5661
6601
|
*/
|
5662
6602
|
command: string;
|
5663
6603
|
};
|
6604
|
+
/**
|
6605
|
+
* @x-internal true
|
6606
|
+
*/
|
6607
|
+
type ClusterUpdateMetadata = {
|
6608
|
+
id: ClusterID;
|
6609
|
+
state: string;
|
6610
|
+
};
|
5664
6611
|
/**
|
5665
6612
|
* Metadata of databases
|
5666
6613
|
*/
|
@@ -6090,6 +7037,7 @@ type GetWorkspacesListError = ErrorWrapper<{
|
|
6090
7037
|
type GetWorkspacesListResponse = {
|
6091
7038
|
workspaces: {
|
6092
7039
|
id: WorkspaceID;
|
7040
|
+
unique_id: string;
|
6093
7041
|
name: string;
|
6094
7042
|
slug: string;
|
6095
7043
|
role: Role;
|
@@ -6242,11 +7190,8 @@ type UpdateWorkspaceSettingsError = ErrorWrapper<{
|
|
6242
7190
|
status: 404;
|
6243
7191
|
payload: SimpleError;
|
6244
7192
|
}>;
|
6245
|
-
type UpdateWorkspaceSettingsRequestBody = {
|
6246
|
-
postgresEnabled: boolean;
|
6247
|
-
};
|
6248
7193
|
type UpdateWorkspaceSettingsVariables = {
|
6249
|
-
body
|
7194
|
+
body?: Record<string, any>;
|
6250
7195
|
pathParams: UpdateWorkspaceSettingsPathParams;
|
6251
7196
|
} & ControlPlaneFetcherExtraProps;
|
6252
7197
|
/**
|
@@ -6634,7 +7579,7 @@ type DeleteClusterVariables = {
|
|
6634
7579
|
/**
|
6635
7580
|
* Delete cluster with given cluster ID
|
6636
7581
|
*/
|
6637
|
-
declare const deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal) => Promise<
|
7582
|
+
declare const deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal) => Promise<ClusterDeleteMetadata>;
|
6638
7583
|
type GetDatabaseListPathParams = {
|
6639
7584
|
/**
|
6640
7585
|
* Workspace ID
|
@@ -6695,6 +7640,12 @@ type CreateDatabaseRequestBody = {
|
|
6695
7640
|
* @minLength 1
|
6696
7641
|
*/
|
6697
7642
|
region: string;
|
7643
|
+
/**
|
7644
|
+
* Enable postgres access for this database
|
7645
|
+
*
|
7646
|
+
* @default false
|
7647
|
+
*/
|
7648
|
+
postgresEnabled?: boolean;
|
6698
7649
|
/**
|
6699
7650
|
* The dedicated cluster where branches from this database will be created. Defaults to 'shared-cluster'.
|
6700
7651
|
*
|
@@ -6960,153 +7911,173 @@ declare const listRegions: (variables: ListRegionsVariables, signal?: AbortSigna
|
|
6960
7911
|
|
6961
7912
|
declare const operationsByTag: {
|
6962
7913
|
workspaces: {
|
6963
|
-
getWorkspacesList: (variables:
|
6964
|
-
createWorkspace: (variables: CreateWorkspaceVariables, signal?: AbortSignal
|
6965
|
-
getWorkspace: (variables: GetWorkspaceVariables, signal?: AbortSignal
|
6966
|
-
updateWorkspace: (variables: UpdateWorkspaceVariables, signal?: AbortSignal
|
6967
|
-
deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal
|
6968
|
-
getWorkspaceSettings: (variables: GetWorkspaceSettingsVariables, signal?: AbortSignal
|
6969
|
-
updateWorkspaceSettings: (variables: UpdateWorkspaceSettingsVariables, signal?: AbortSignal
|
6970
|
-
getWorkspaceMembersList: (variables: GetWorkspaceMembersListVariables, signal?: AbortSignal
|
6971
|
-
updateWorkspaceMemberRole: (variables: UpdateWorkspaceMemberRoleVariables, signal?: AbortSignal
|
6972
|
-
removeWorkspaceMember: (variables: RemoveWorkspaceMemberVariables, signal?: AbortSignal
|
7914
|
+
getWorkspacesList: (variables: GetWorkspacesListVariables, signal?: AbortSignal) => Promise<GetWorkspacesListResponse>;
|
7915
|
+
createWorkspace: (variables: CreateWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7916
|
+
getWorkspace: (variables: GetWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7917
|
+
updateWorkspace: (variables: UpdateWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7918
|
+
deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal) => Promise<undefined>;
|
7919
|
+
getWorkspaceSettings: (variables: GetWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
|
7920
|
+
updateWorkspaceSettings: (variables: UpdateWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
|
7921
|
+
getWorkspaceMembersList: (variables: GetWorkspaceMembersListVariables, signal?: AbortSignal) => Promise<WorkspaceMembers>;
|
7922
|
+
updateWorkspaceMemberRole: (variables: UpdateWorkspaceMemberRoleVariables, signal?: AbortSignal) => Promise<undefined>;
|
7923
|
+
removeWorkspaceMember: (variables: RemoveWorkspaceMemberVariables, signal?: AbortSignal) => Promise<undefined>;
|
7924
|
+
};
|
7925
|
+
table: {
|
7926
|
+
createTable: (variables: CreateTableVariables, signal?: AbortSignal) => Promise<CreateTableResponse>;
|
7927
|
+
deleteTable: (variables: DeleteTableVariables, signal?: AbortSignal) => Promise<DeleteTableResponse>;
|
7928
|
+
updateTable: (variables: UpdateTableVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7929
|
+
getTableSchema: (variables: GetTableSchemaVariables, signal?: AbortSignal) => Promise<GetTableSchemaResponse>;
|
7930
|
+
setTableSchema: (variables: SetTableSchemaVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7931
|
+
getTableColumns: (variables: GetTableColumnsVariables, signal?: AbortSignal) => Promise<GetTableColumnsResponse>;
|
7932
|
+
addTableColumn: (variables: AddTableColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7933
|
+
getColumn: (variables: GetColumnVariables, signal?: AbortSignal) => Promise<Column>;
|
7934
|
+
updateColumn: (variables: UpdateColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7935
|
+
deleteColumn: (variables: DeleteColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
6973
7936
|
};
|
6974
7937
|
branch: {
|
6975
|
-
getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal
|
6976
|
-
|
6977
|
-
|
6978
|
-
|
6979
|
-
|
6980
|
-
|
6981
|
-
|
6982
|
-
|
6983
|
-
|
6984
|
-
|
6985
|
-
|
6986
|
-
|
7938
|
+
getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal) => Promise<ListBranchesResponse>;
|
7939
|
+
createBranchAsync: (variables: CreateBranchAsyncVariables, signal?: AbortSignal) => Promise<CreateBranchResponse$1>;
|
7940
|
+
getBranchDetails: (variables: GetBranchDetailsVariables, signal?: AbortSignal) => Promise<DBBranch>;
|
7941
|
+
createBranch: (variables: CreateBranchVariables, signal?: AbortSignal) => Promise<CreateBranchResponse>;
|
7942
|
+
deleteBranch: (variables: DeleteBranchVariables, signal?: AbortSignal) => Promise<DeleteBranchResponse>;
|
7943
|
+
copyBranch: (variables: CopyBranchVariables, signal?: AbortSignal) => Promise<BranchWithCopyID>;
|
7944
|
+
getBranchMoveStatus: (variables: GetBranchMoveStatusVariables, signal?: AbortSignal) => Promise<GetBranchMoveStatusResponse>;
|
7945
|
+
moveBranch: (variables: MoveBranchVariables, signal?: AbortSignal) => Promise<MoveBranchResponse>;
|
7946
|
+
updateBranchMetadata: (variables: UpdateBranchMetadataVariables, signal?: AbortSignal) => Promise<undefined>;
|
7947
|
+
getBranchMetadata: (variables: GetBranchMetadataVariables, signal?: AbortSignal) => Promise<BranchMetadata$1>;
|
7948
|
+
getBranchStats: (variables: GetBranchStatsVariables, signal?: AbortSignal) => Promise<GetBranchStatsResponse>;
|
7949
|
+
getGitBranchesMapping: (variables: GetGitBranchesMappingVariables, signal?: AbortSignal) => Promise<ListGitBranchesResponse>;
|
7950
|
+
addGitBranchesEntry: (variables: AddGitBranchesEntryVariables, signal?: AbortSignal) => Promise<AddGitBranchesEntryResponse>;
|
7951
|
+
removeGitBranchesEntry: (variables: RemoveGitBranchesEntryVariables, signal?: AbortSignal) => Promise<undefined>;
|
7952
|
+
resolveBranch: (variables: ResolveBranchVariables, signal?: AbortSignal) => Promise<ResolveBranchResponse>;
|
6987
7953
|
};
|
6988
7954
|
migrations: {
|
6989
|
-
applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal
|
6990
|
-
|
6991
|
-
|
6992
|
-
|
6993
|
-
|
6994
|
-
|
6995
|
-
|
6996
|
-
|
6997
|
-
|
6998
|
-
|
6999
|
-
|
7000
|
-
|
7001
|
-
|
7002
|
-
|
7003
|
-
|
7004
|
-
|
7005
|
-
|
7955
|
+
applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7956
|
+
startMigration: (variables: StartMigrationVariables, signal?: AbortSignal) => Promise<StartMigrationResponse>;
|
7957
|
+
completeMigration: (variables: CompleteMigrationVariables, signal?: AbortSignal) => Promise<CompleteMigrationResponse>;
|
7958
|
+
rollbackMigration: (variables: RollbackMigrationVariables, signal?: AbortSignal) => Promise<RollbackMigrationResponse>;
|
7959
|
+
adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7960
|
+
adaptAllTables: (variables: AdaptAllTablesVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7961
|
+
getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
7962
|
+
getMigrationJobs: (variables: GetMigrationJobsVariables, signal?: AbortSignal) => Promise<GetMigrationJobsResponse>;
|
7963
|
+
getMigrationJobStatus: (variables: GetMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
7964
|
+
getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal) => Promise<MigrationHistoryResponse>;
|
7965
|
+
getSchema: (variables: GetSchemaVariables, signal?: AbortSignal) => Promise<GetSchemaResponse>;
|
7966
|
+
getSchemas: (variables: GetSchemasVariables, signal?: AbortSignal) => Promise<GetSchemasResponse>;
|
7967
|
+
getBranchMigrationHistory: (variables: GetBranchMigrationHistoryVariables, signal?: AbortSignal) => Promise<GetBranchMigrationHistoryResponse>;
|
7968
|
+
getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables, signal?: AbortSignal) => Promise<BranchMigrationPlan>;
|
7969
|
+
executeBranchMigrationPlan: (variables: ExecuteBranchMigrationPlanVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7970
|
+
getBranchSchemaHistory: (variables: GetBranchSchemaHistoryVariables, signal?: AbortSignal) => Promise<GetBranchSchemaHistoryResponse>;
|
7971
|
+
compareBranchWithUserSchema: (variables: CompareBranchWithUserSchemaVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
7972
|
+
compareBranchSchemas: (variables: CompareBranchSchemasVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
7973
|
+
updateBranchSchema: (variables: UpdateBranchSchemaVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7974
|
+
previewBranchSchemaEdit: (variables: PreviewBranchSchemaEditVariables, signal?: AbortSignal) => Promise<PreviewBranchSchemaEditResponse>;
|
7975
|
+
applyBranchSchemaEdit: (variables: ApplyBranchSchemaEditVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7976
|
+
pushBranchMigrations: (variables: PushBranchMigrationsVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7006
7977
|
};
|
7007
7978
|
records: {
|
7008
|
-
branchTransaction: (variables: BranchTransactionVariables, signal?: AbortSignal
|
7009
|
-
insertRecord: (variables: InsertRecordVariables, signal?: AbortSignal
|
7010
|
-
getRecord: (variables: GetRecordVariables, signal?: AbortSignal
|
7011
|
-
insertRecordWithID: (variables: InsertRecordWithIDVariables, signal?: AbortSignal
|
7012
|
-
updateRecordWithID: (variables: UpdateRecordWithIDVariables, signal?: AbortSignal
|
7013
|
-
upsertRecordWithID: (variables: UpsertRecordWithIDVariables, signal?: AbortSignal
|
7014
|
-
deleteRecord: (variables: DeleteRecordVariables, signal?: AbortSignal
|
7015
|
-
bulkInsertTableRecords: (variables: BulkInsertTableRecordsVariables, signal?: AbortSignal
|
7979
|
+
branchTransaction: (variables: BranchTransactionVariables, signal?: AbortSignal) => Promise<TransactionSuccess>;
|
7980
|
+
insertRecord: (variables: InsertRecordVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
7981
|
+
getRecord: (variables: GetRecordVariables, signal?: AbortSignal) => Promise<XataRecord$1>;
|
7982
|
+
insertRecordWithID: (variables: InsertRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
7983
|
+
updateRecordWithID: (variables: UpdateRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
7984
|
+
upsertRecordWithID: (variables: UpsertRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
7985
|
+
deleteRecord: (variables: DeleteRecordVariables, signal?: AbortSignal) => Promise<XataRecord$1>;
|
7986
|
+
bulkInsertTableRecords: (variables: BulkInsertTableRecordsVariables, signal?: AbortSignal) => Promise<BulkInsertResponse>;
|
7987
|
+
};
|
7988
|
+
tasks: {
|
7989
|
+
getTasks: (variables: GetTasksVariables, signal?: AbortSignal) => Promise<GetTasksResponse>;
|
7990
|
+
getTaskStatus: (variables: GetTaskStatusVariables, signal?: AbortSignal) => Promise<TaskStatusResponse>;
|
7991
|
+
};
|
7992
|
+
cluster: {
|
7993
|
+
listClusterBranches: (variables: ListClusterBranchesVariables, signal?: AbortSignal) => Promise<ListClusterBranchesResponse>;
|
7994
|
+
listClusterExtensions: (variables: ListClusterExtensionsVariables, signal?: AbortSignal) => Promise<ListClusterExtensionsResponse>;
|
7995
|
+
installClusterExtension: (variables: InstallClusterExtensionVariables, signal?: AbortSignal) => Promise<ClusterExtensionInstallationResponse>;
|
7996
|
+
dropClusterExtension: (variables: DropClusterExtensionVariables, signal?: AbortSignal) => Promise<undefined>;
|
7997
|
+
getClusterMetrics: (variables: GetClusterMetricsVariables, signal?: AbortSignal) => Promise<MetricsResponse>;
|
7016
7998
|
};
|
7017
7999
|
database: {
|
7018
|
-
getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal
|
7019
|
-
updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal
|
8000
|
+
getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
8001
|
+
updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
7020
8002
|
};
|
7021
8003
|
migrationRequests: {
|
7022
|
-
queryMigrationRequests: (variables: QueryMigrationRequestsVariables, signal?: AbortSignal
|
7023
|
-
createMigrationRequest: (variables: CreateMigrationRequestVariables, signal?: AbortSignal
|
7024
|
-
getMigrationRequest: (variables: GetMigrationRequestVariables, signal?: AbortSignal
|
7025
|
-
updateMigrationRequest: (variables: UpdateMigrationRequestVariables, signal?: AbortSignal
|
7026
|
-
listMigrationRequestsCommits: (variables: ListMigrationRequestsCommitsVariables, signal?: AbortSignal
|
7027
|
-
compareMigrationRequest: (variables: CompareMigrationRequestVariables, signal?: AbortSignal
|
7028
|
-
getMigrationRequestIsMerged: (variables: GetMigrationRequestIsMergedVariables, signal?: AbortSignal
|
7029
|
-
mergeMigrationRequest: (variables: MergeMigrationRequestVariables, signal?: AbortSignal
|
7030
|
-
};
|
7031
|
-
table: {
|
7032
|
-
createTable: (variables: CreateTableVariables, signal?: AbortSignal | undefined) => Promise<CreateTableResponse>;
|
7033
|
-
deleteTable: (variables: DeleteTableVariables, signal?: AbortSignal | undefined) => Promise<DeleteTableResponse>;
|
7034
|
-
updateTable: (variables: UpdateTableVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
7035
|
-
getTableSchema: (variables: GetTableSchemaVariables, signal?: AbortSignal | undefined) => Promise<GetTableSchemaResponse>;
|
7036
|
-
setTableSchema: (variables: SetTableSchemaVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
7037
|
-
getTableColumns: (variables: GetTableColumnsVariables, signal?: AbortSignal | undefined) => Promise<GetTableColumnsResponse>;
|
7038
|
-
addTableColumn: (variables: AddTableColumnVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
7039
|
-
getColumn: (variables: GetColumnVariables, signal?: AbortSignal | undefined) => Promise<Column>;
|
7040
|
-
updateColumn: (variables: UpdateColumnVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
7041
|
-
deleteColumn: (variables: DeleteColumnVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
8004
|
+
queryMigrationRequests: (variables: QueryMigrationRequestsVariables, signal?: AbortSignal) => Promise<QueryMigrationRequestsResponse>;
|
8005
|
+
createMigrationRequest: (variables: CreateMigrationRequestVariables, signal?: AbortSignal) => Promise<CreateMigrationRequestResponse>;
|
8006
|
+
getMigrationRequest: (variables: GetMigrationRequestVariables, signal?: AbortSignal) => Promise<MigrationRequest>;
|
8007
|
+
updateMigrationRequest: (variables: UpdateMigrationRequestVariables, signal?: AbortSignal) => Promise<undefined>;
|
8008
|
+
listMigrationRequestsCommits: (variables: ListMigrationRequestsCommitsVariables, signal?: AbortSignal) => Promise<ListMigrationRequestsCommitsResponse>;
|
8009
|
+
compareMigrationRequest: (variables: CompareMigrationRequestVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
8010
|
+
getMigrationRequestIsMerged: (variables: GetMigrationRequestIsMergedVariables, signal?: AbortSignal) => Promise<GetMigrationRequestIsMergedResponse>;
|
8011
|
+
mergeMigrationRequest: (variables: MergeMigrationRequestVariables, signal?: AbortSignal) => Promise<BranchOp>;
|
7042
8012
|
};
|
7043
8013
|
files: {
|
7044
|
-
getFileItem: (variables: GetFileItemVariables, signal?: AbortSignal
|
7045
|
-
putFileItem: (variables: PutFileItemVariables, signal?: AbortSignal
|
7046
|
-
deleteFileItem: (variables: DeleteFileItemVariables, signal?: AbortSignal
|
7047
|
-
getFile: (variables: GetFileVariables, signal?: AbortSignal
|
7048
|
-
putFile: (variables: PutFileVariables, signal?: AbortSignal
|
7049
|
-
deleteFile: (variables: DeleteFileVariables, signal?: AbortSignal
|
7050
|
-
fileAccess: (variables: FileAccessVariables, signal?: AbortSignal
|
7051
|
-
fileUpload: (variables: FileUploadVariables, signal?: AbortSignal
|
8014
|
+
getFileItem: (variables: GetFileItemVariables, signal?: AbortSignal) => Promise<Blob>;
|
8015
|
+
putFileItem: (variables: PutFileItemVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8016
|
+
deleteFileItem: (variables: DeleteFileItemVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8017
|
+
getFile: (variables: GetFileVariables, signal?: AbortSignal) => Promise<Blob>;
|
8018
|
+
putFile: (variables: PutFileVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8019
|
+
deleteFile: (variables: DeleteFileVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8020
|
+
fileAccess: (variables: FileAccessVariables, signal?: AbortSignal) => Promise<Blob>;
|
8021
|
+
fileUpload: (variables: FileUploadVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
7052
8022
|
};
|
7053
8023
|
searchAndFilter: {
|
7054
|
-
queryTable: (variables: QueryTableVariables, signal?: AbortSignal
|
7055
|
-
searchBranch: (variables: SearchBranchVariables, signal?: AbortSignal
|
7056
|
-
searchTable: (variables: SearchTableVariables, signal?: AbortSignal
|
7057
|
-
vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal
|
7058
|
-
askTable: (variables: AskTableVariables, signal?: AbortSignal
|
7059
|
-
askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal
|
7060
|
-
summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal
|
7061
|
-
aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal
|
8024
|
+
queryTable: (variables: QueryTableVariables, signal?: AbortSignal) => Promise<QueryResponse>;
|
8025
|
+
searchBranch: (variables: SearchBranchVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
8026
|
+
searchTable: (variables: SearchTableVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
8027
|
+
vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
8028
|
+
askTable: (variables: AskTableVariables, signal?: AbortSignal) => Promise<AskTableResponse>;
|
8029
|
+
askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal) => Promise<AskTableSessionResponse>;
|
8030
|
+
summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal) => Promise<SummarizeResponse>;
|
8031
|
+
aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal) => Promise<AggResponse>;
|
7062
8032
|
};
|
7063
8033
|
sql: {
|
7064
|
-
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal
|
8034
|
+
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse$1>;
|
8035
|
+
sqlBatchQuery: (variables: SqlBatchQueryVariables, signal?: AbortSignal) => Promise<SQLBatchResponse>;
|
7065
8036
|
};
|
7066
8037
|
oAuth: {
|
7067
|
-
getAuthorizationCode: (variables: GetAuthorizationCodeVariables, signal?: AbortSignal
|
7068
|
-
grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal
|
7069
|
-
getUserOAuthClients: (variables:
|
7070
|
-
deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal
|
7071
|
-
getUserOAuthAccessTokens: (variables:
|
7072
|
-
deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal
|
7073
|
-
updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal
|
8038
|
+
getAuthorizationCode: (variables: GetAuthorizationCodeVariables, signal?: AbortSignal) => Promise<AuthorizationCodeResponse>;
|
8039
|
+
grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal) => Promise<AuthorizationCodeResponse>;
|
8040
|
+
getUserOAuthClients: (variables: GetUserOAuthClientsVariables, signal?: AbortSignal) => Promise<GetUserOAuthClientsResponse>;
|
8041
|
+
deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal) => Promise<undefined>;
|
8042
|
+
getUserOAuthAccessTokens: (variables: GetUserOAuthAccessTokensVariables, signal?: AbortSignal) => Promise<GetUserOAuthAccessTokensResponse>;
|
8043
|
+
deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<undefined>;
|
8044
|
+
updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<OAuthAccessToken>;
|
7074
8045
|
};
|
7075
8046
|
users: {
|
7076
|
-
getUser: (variables:
|
7077
|
-
updateUser: (variables: UpdateUserVariables, signal?: AbortSignal
|
7078
|
-
deleteUser: (variables:
|
8047
|
+
getUser: (variables: GetUserVariables, signal?: AbortSignal) => Promise<UserWithID>;
|
8048
|
+
updateUser: (variables: UpdateUserVariables, signal?: AbortSignal) => Promise<UserWithID>;
|
8049
|
+
deleteUser: (variables: DeleteUserVariables, signal?: AbortSignal) => Promise<undefined>;
|
7079
8050
|
};
|
7080
8051
|
authentication: {
|
7081
|
-
getUserAPIKeys: (variables:
|
7082
|
-
createUserAPIKey: (variables: CreateUserAPIKeyVariables, signal?: AbortSignal
|
7083
|
-
deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables, signal?: AbortSignal
|
8052
|
+
getUserAPIKeys: (variables: GetUserAPIKeysVariables, signal?: AbortSignal) => Promise<GetUserAPIKeysResponse>;
|
8053
|
+
createUserAPIKey: (variables: CreateUserAPIKeyVariables, signal?: AbortSignal) => Promise<CreateUserAPIKeyResponse>;
|
8054
|
+
deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables, signal?: AbortSignal) => Promise<undefined>;
|
7084
8055
|
};
|
7085
8056
|
invites: {
|
7086
|
-
inviteWorkspaceMember: (variables: InviteWorkspaceMemberVariables, signal?: AbortSignal
|
7087
|
-
updateWorkspaceMemberInvite: (variables: UpdateWorkspaceMemberInviteVariables, signal?: AbortSignal
|
7088
|
-
cancelWorkspaceMemberInvite: (variables: CancelWorkspaceMemberInviteVariables, signal?: AbortSignal
|
7089
|
-
acceptWorkspaceMemberInvite: (variables: AcceptWorkspaceMemberInviteVariables, signal?: AbortSignal
|
7090
|
-
resendWorkspaceMemberInvite: (variables: ResendWorkspaceMemberInviteVariables, signal?: AbortSignal
|
8057
|
+
inviteWorkspaceMember: (variables: InviteWorkspaceMemberVariables, signal?: AbortSignal) => Promise<WorkspaceInvite>;
|
8058
|
+
updateWorkspaceMemberInvite: (variables: UpdateWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<WorkspaceInvite>;
|
8059
|
+
cancelWorkspaceMemberInvite: (variables: CancelWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
8060
|
+
acceptWorkspaceMemberInvite: (variables: AcceptWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
8061
|
+
resendWorkspaceMemberInvite: (variables: ResendWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
7091
8062
|
};
|
7092
8063
|
xbcontrolOther: {
|
7093
|
-
listClusters: (variables: ListClustersVariables, signal?: AbortSignal
|
7094
|
-
createCluster: (variables: CreateClusterVariables, signal?: AbortSignal
|
7095
|
-
getCluster: (variables: GetClusterVariables, signal?: AbortSignal
|
7096
|
-
updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal
|
7097
|
-
deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal
|
8064
|
+
listClusters: (variables: ListClustersVariables, signal?: AbortSignal) => Promise<ListClustersResponse>;
|
8065
|
+
createCluster: (variables: CreateClusterVariables, signal?: AbortSignal) => Promise<ClusterResponse>;
|
8066
|
+
getCluster: (variables: GetClusterVariables, signal?: AbortSignal) => Promise<ClusterMetadata>;
|
8067
|
+
updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterUpdateMetadata>;
|
8068
|
+
deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal) => Promise<ClusterDeleteMetadata>;
|
7098
8069
|
};
|
7099
8070
|
databases: {
|
7100
|
-
getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal
|
7101
|
-
createDatabase: (variables: CreateDatabaseVariables, signal?: AbortSignal
|
7102
|
-
deleteDatabase: (variables: DeleteDatabaseVariables, signal?: AbortSignal
|
7103
|
-
getDatabaseMetadata: (variables: GetDatabaseMetadataVariables, signal?: AbortSignal
|
7104
|
-
updateDatabaseMetadata: (variables: UpdateDatabaseMetadataVariables, signal?: AbortSignal
|
7105
|
-
renameDatabase: (variables: RenameDatabaseVariables, signal?: AbortSignal
|
7106
|
-
getDatabaseGithubSettings: (variables: GetDatabaseGithubSettingsVariables, signal?: AbortSignal
|
7107
|
-
updateDatabaseGithubSettings: (variables: UpdateDatabaseGithubSettingsVariables, signal?: AbortSignal
|
7108
|
-
deleteDatabaseGithubSettings: (variables: DeleteDatabaseGithubSettingsVariables, signal?: AbortSignal
|
7109
|
-
listRegions: (variables: ListRegionsVariables, signal?: AbortSignal
|
8071
|
+
getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal) => Promise<ListDatabasesResponse>;
|
8072
|
+
createDatabase: (variables: CreateDatabaseVariables, signal?: AbortSignal) => Promise<CreateDatabaseResponse>;
|
8073
|
+
deleteDatabase: (variables: DeleteDatabaseVariables, signal?: AbortSignal) => Promise<DeleteDatabaseResponse>;
|
8074
|
+
getDatabaseMetadata: (variables: GetDatabaseMetadataVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
8075
|
+
updateDatabaseMetadata: (variables: UpdateDatabaseMetadataVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
8076
|
+
renameDatabase: (variables: RenameDatabaseVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
8077
|
+
getDatabaseGithubSettings: (variables: GetDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<DatabaseGithubSettings>;
|
8078
|
+
updateDatabaseGithubSettings: (variables: UpdateDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<DatabaseGithubSettings>;
|
8079
|
+
deleteDatabaseGithubSettings: (variables: DeleteDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<undefined>;
|
8080
|
+
listRegions: (variables: ListRegionsVariables, signal?: AbortSignal) => Promise<ListRegionsResponse>;
|
7110
8081
|
};
|
7111
8082
|
};
|
7112
8083
|
|
@@ -7146,7 +8117,7 @@ type XataApiProxy = {
|
|
7146
8117
|
[Method in keyof (typeof operationsByTag)[Tag]]: (typeof operationsByTag)[Tag][Method] extends infer Operation extends (...args: any) => any ? Omit<Parameters<Operation>[0], keyof ApiExtraProps> extends infer Params ? RequiredKeys<Params> extends never ? (params?: Params & UserProps) => ReturnType<Operation> : (params: Params & UserProps) => ReturnType<Operation> : never : never;
|
7147
8118
|
};
|
7148
8119
|
};
|
7149
|
-
declare const XataApiClient_base: new (options?: XataApiClientOptions
|
8120
|
+
declare const XataApiClient_base: new (options?: XataApiClientOptions) => XataApiProxy;
|
7150
8121
|
declare class XataApiClient extends XataApiClient_base {
|
7151
8122
|
}
|
7152
8123
|
|
@@ -7159,6 +8130,7 @@ type responses_QueryResponse = QueryResponse;
|
|
7159
8130
|
type responses_RateLimitError = RateLimitError;
|
7160
8131
|
type responses_RecordResponse = RecordResponse;
|
7161
8132
|
type responses_RecordUpdateResponse = RecordUpdateResponse;
|
8133
|
+
type responses_SQLBatchResponse = SQLBatchResponse;
|
7162
8134
|
type responses_SQLResponse = SQLResponse;
|
7163
8135
|
type responses_SchemaCompareResponse = SchemaCompareResponse;
|
7164
8136
|
type responses_SchemaUpdateResponse = SchemaUpdateResponse;
|
@@ -7166,7 +8138,7 @@ type responses_SearchResponse = SearchResponse;
|
|
7166
8138
|
type responses_ServiceUnavailableError = ServiceUnavailableError;
|
7167
8139
|
type responses_SummarizeResponse = SummarizeResponse;
|
7168
8140
|
declare namespace responses {
|
7169
|
-
export type { responses_AggResponse as AggResponse, AuthError$1 as AuthError, BadRequestError$1 as BadRequestError, responses_BranchMigrationPlan as BranchMigrationPlan, responses_BulkError as BulkError, responses_BulkInsertResponse as BulkInsertResponse, responses_PutFileResponse as PutFileResponse, responses_QueryResponse as QueryResponse, responses_RateLimitError as RateLimitError, responses_RecordResponse as RecordResponse, responses_RecordUpdateResponse as RecordUpdateResponse, responses_SQLResponse as SQLResponse, responses_SchemaCompareResponse as SchemaCompareResponse, responses_SchemaUpdateResponse as SchemaUpdateResponse, responses_SearchResponse as SearchResponse, responses_ServiceUnavailableError as ServiceUnavailableError, SimpleError$1 as SimpleError, responses_SummarizeResponse as SummarizeResponse };
|
8141
|
+
export type { responses_AggResponse as AggResponse, AuthError$1 as AuthError, BadRequestError$1 as BadRequestError, responses_BranchMigrationPlan as BranchMigrationPlan, responses_BulkError as BulkError, responses_BulkInsertResponse as BulkInsertResponse, responses_PutFileResponse as PutFileResponse, responses_QueryResponse as QueryResponse, responses_RateLimitError as RateLimitError, responses_RecordResponse as RecordResponse, responses_RecordUpdateResponse as RecordUpdateResponse, responses_SQLBatchResponse as SQLBatchResponse, responses_SQLResponse as SQLResponse, responses_SchemaCompareResponse as SchemaCompareResponse, responses_SchemaUpdateResponse as SchemaUpdateResponse, responses_SearchResponse as SearchResponse, responses_ServiceUnavailableError as ServiceUnavailableError, SimpleError$1 as SimpleError, responses_SummarizeResponse as SummarizeResponse };
|
7170
8142
|
}
|
7171
8143
|
|
7172
8144
|
type schemas_APIKeyName = APIKeyName;
|
@@ -7181,14 +8153,17 @@ type schemas_AutoscalingConfigResponse = AutoscalingConfigResponse;
|
|
7181
8153
|
type schemas_AverageAgg = AverageAgg;
|
7182
8154
|
type schemas_BoosterExpression = BoosterExpression;
|
7183
8155
|
type schemas_Branch = Branch;
|
8156
|
+
type schemas_BranchDetails = BranchDetails;
|
7184
8157
|
type schemas_BranchMigration = BranchMigration;
|
7185
8158
|
type schemas_BranchOp = BranchOp;
|
7186
8159
|
type schemas_BranchSchema = BranchSchema;
|
8160
|
+
type schemas_BranchState = BranchState;
|
7187
8161
|
type schemas_BranchWithCopyID = BranchWithCopyID;
|
7188
8162
|
type schemas_ClusterConfiguration = ClusterConfiguration;
|
7189
8163
|
type schemas_ClusterConfigurationResponse = ClusterConfigurationResponse;
|
7190
8164
|
type schemas_ClusterCreateDetails = ClusterCreateDetails;
|
7191
|
-
type
|
8165
|
+
type schemas_ClusterDeleteMetadata = ClusterDeleteMetadata;
|
8166
|
+
type schemas_ClusterExtensionInstallationResponse = ClusterExtensionInstallationResponse;
|
7192
8167
|
type schemas_ClusterMetadata = ClusterMetadata;
|
7193
8168
|
type schemas_ClusterResponse = ClusterResponse;
|
7194
8169
|
type schemas_ClusterShortMetadata = ClusterShortMetadata;
|
@@ -7205,6 +8180,7 @@ type schemas_ColumnOpRename = ColumnOpRename;
|
|
7205
8180
|
type schemas_ColumnVector = ColumnVector;
|
7206
8181
|
type schemas_ColumnsProjection = ColumnsProjection;
|
7207
8182
|
type schemas_Commit = Commit;
|
8183
|
+
type schemas_CompleteMigrationResponse = CompleteMigrationResponse;
|
7208
8184
|
type schemas_CountAgg = CountAgg;
|
7209
8185
|
type schemas_DBBranch = DBBranch;
|
7210
8186
|
type schemas_DBBranchName = DBBranchName;
|
@@ -7214,6 +8190,7 @@ type schemas_DatabaseGithubSettings = DatabaseGithubSettings;
|
|
7214
8190
|
type schemas_DatabaseMetadata = DatabaseMetadata;
|
7215
8191
|
type schemas_DatabaseSettings = DatabaseSettings;
|
7216
8192
|
type schemas_DateHistogramAgg = DateHistogramAgg;
|
8193
|
+
type schemas_ExtensionDetails = ExtensionDetails;
|
7217
8194
|
type schemas_FileAccessID = FileAccessID;
|
7218
8195
|
type schemas_FileItemID = FileItemID;
|
7219
8196
|
type schemas_FileName = FileName;
|
@@ -7229,6 +8206,7 @@ type schemas_FilterPredicateRangeOp = FilterPredicateRangeOp;
|
|
7229
8206
|
type schemas_FilterRangeValue = FilterRangeValue;
|
7230
8207
|
type schemas_FilterValue = FilterValue;
|
7231
8208
|
type schemas_FuzzinessExpression = FuzzinessExpression;
|
8209
|
+
type schemas_GetMigrationJobsResponse = GetMigrationJobsResponse;
|
7232
8210
|
type schemas_HighlightExpression = HighlightExpression;
|
7233
8211
|
type schemas_InputFile = InputFile;
|
7234
8212
|
type schemas_InputFileArray = InputFileArray;
|
@@ -7236,6 +8214,8 @@ type schemas_InputFileEntry = InputFileEntry;
|
|
7236
8214
|
type schemas_InviteID = InviteID;
|
7237
8215
|
type schemas_InviteKey = InviteKey;
|
7238
8216
|
type schemas_ListBranchesResponse = ListBranchesResponse;
|
8217
|
+
type schemas_ListClusterBranchesResponse = ListClusterBranchesResponse;
|
8218
|
+
type schemas_ListClusterExtensionsResponse = ListClusterExtensionsResponse;
|
7239
8219
|
type schemas_ListClustersResponse = ListClustersResponse;
|
7240
8220
|
type schemas_ListDatabasesResponse = ListDatabasesResponse;
|
7241
8221
|
type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
|
@@ -7244,18 +8224,24 @@ type schemas_MaintenanceConfig = MaintenanceConfig;
|
|
7244
8224
|
type schemas_MaintenanceConfigResponse = MaintenanceConfigResponse;
|
7245
8225
|
type schemas_MaxAgg = MaxAgg;
|
7246
8226
|
type schemas_MediaType = MediaType;
|
8227
|
+
type schemas_MetricData = MetricData;
|
8228
|
+
type schemas_MetricMessage = MetricMessage;
|
7247
8229
|
type schemas_MetricsDatapoint = MetricsDatapoint;
|
7248
8230
|
type schemas_MetricsLatency = MetricsLatency;
|
8231
|
+
type schemas_MetricsResponse = MetricsResponse;
|
7249
8232
|
type schemas_Migration = Migration;
|
7250
8233
|
type schemas_MigrationColumnOp = MigrationColumnOp;
|
8234
|
+
type schemas_MigrationDescription = MigrationDescription;
|
7251
8235
|
type schemas_MigrationHistoryItem = MigrationHistoryItem;
|
7252
8236
|
type schemas_MigrationHistoryResponse = MigrationHistoryResponse;
|
7253
8237
|
type schemas_MigrationJobID = MigrationJobID;
|
8238
|
+
type schemas_MigrationJobItem = MigrationJobItem;
|
7254
8239
|
type schemas_MigrationJobStatus = MigrationJobStatus;
|
7255
8240
|
type schemas_MigrationJobStatusResponse = MigrationJobStatusResponse;
|
7256
8241
|
type schemas_MigrationJobType = MigrationJobType;
|
7257
8242
|
type schemas_MigrationObject = MigrationObject;
|
7258
8243
|
type schemas_MigrationOp = MigrationOp;
|
8244
|
+
type schemas_MigrationOperationDescription = MigrationOperationDescription;
|
7259
8245
|
type schemas_MigrationRequest = MigrationRequest;
|
7260
8246
|
type schemas_MigrationRequestNumber = MigrationRequestNumber;
|
7261
8247
|
type schemas_MigrationTableOp = MigrationTableOp;
|
@@ -7269,11 +8255,9 @@ type schemas_OAuthResponseType = OAuthResponseType;
|
|
7269
8255
|
type schemas_OAuthScope = OAuthScope;
|
7270
8256
|
type schemas_ObjectValue = ObjectValue;
|
7271
8257
|
type schemas_PageConfig = PageConfig;
|
7272
|
-
type schemas_PageResponse = PageResponse;
|
7273
|
-
type schemas_PageSize = PageSize;
|
7274
|
-
type schemas_PageToken = PageToken;
|
7275
8258
|
type schemas_PercentilesAgg = PercentilesAgg;
|
7276
8259
|
type schemas_PrefixExpression = PrefixExpression;
|
8260
|
+
type schemas_PreparedStatement = PreparedStatement;
|
7277
8261
|
type schemas_ProjectionConfig = ProjectionConfig;
|
7278
8262
|
type schemas_QueryColumnsProjection = QueryColumnsProjection;
|
7279
8263
|
type schemas_RecordID = RecordID;
|
@@ -7282,13 +8266,21 @@ type schemas_RecordsMetadata = RecordsMetadata;
|
|
7282
8266
|
type schemas_Region = Region;
|
7283
8267
|
type schemas_RevLink = RevLink;
|
7284
8268
|
type schemas_Role = Role;
|
8269
|
+
type schemas_RollbackMigrationResponse = RollbackMigrationResponse;
|
8270
|
+
type schemas_SQLConsistency = SQLConsistency;
|
7285
8271
|
type schemas_SQLRecord = SQLRecord;
|
8272
|
+
type schemas_SQLResponseArray = SQLResponseArray;
|
8273
|
+
type schemas_SQLResponseBase = SQLResponseBase;
|
8274
|
+
type schemas_SQLResponseJSON = SQLResponseJSON;
|
7286
8275
|
type schemas_Schema = Schema;
|
7287
8276
|
type schemas_SchemaEditScript = SchemaEditScript;
|
7288
8277
|
type schemas_SearchPageConfig = SearchPageConfig;
|
7289
8278
|
type schemas_SortExpression = SortExpression;
|
7290
8279
|
type schemas_SortOrder = SortOrder;
|
8280
|
+
type schemas_StartMigrationResponse = StartMigrationResponse;
|
7291
8281
|
type schemas_StartedFromMetadata = StartedFromMetadata;
|
8282
|
+
type schemas_StorageConfig = StorageConfig;
|
8283
|
+
type schemas_StorageConfigResponse = StorageConfigResponse;
|
7292
8284
|
type schemas_SumAgg = SumAgg;
|
7293
8285
|
type schemas_SummaryExpression = SummaryExpression;
|
7294
8286
|
type schemas_SummaryExpressionList = SummaryExpressionList;
|
@@ -7300,6 +8292,9 @@ type schemas_TableOpRemove = TableOpRemove;
|
|
7300
8292
|
type schemas_TableOpRename = TableOpRename;
|
7301
8293
|
type schemas_TableRename = TableRename;
|
7302
8294
|
type schemas_TargetExpression = TargetExpression;
|
8295
|
+
type schemas_TaskID = TaskID;
|
8296
|
+
type schemas_TaskStatus = TaskStatus;
|
8297
|
+
type schemas_TaskStatusResponse = TaskStatusResponse;
|
7303
8298
|
type schemas_TopValuesAgg = TopValuesAgg;
|
7304
8299
|
type schemas_TransactionDeleteOp = TransactionDeleteOp;
|
7305
8300
|
type schemas_TransactionError = TransactionError;
|
@@ -7327,7 +8322,7 @@ type schemas_WorkspaceMeta = WorkspaceMeta;
|
|
7327
8322
|
type schemas_WorkspacePlan = WorkspacePlan;
|
7328
8323
|
type schemas_WorkspaceSettings = WorkspaceSettings;
|
7329
8324
|
declare namespace schemas {
|
7330
|
-
export type { schemas_APIKeyName as APIKeyName, schemas_AccessToken as AccessToken, schemas_AggExpression as AggExpression, schemas_AggExpressionMap as AggExpressionMap, AggResponse$1 as AggResponse, schemas_ApplyMigrationResponse as ApplyMigrationResponse, schemas_AuthorizationCodeRequest as AuthorizationCodeRequest, schemas_AuthorizationCodeResponse as AuthorizationCodeResponse, schemas_AutoscalingConfig as AutoscalingConfig, schemas_AutoscalingConfigResponse as AutoscalingConfigResponse, schemas_AverageAgg as AverageAgg, schemas_BoosterExpression as BoosterExpression, schemas_Branch as Branch, BranchMetadata$1 as BranchMetadata, schemas_BranchMigration as BranchMigration, BranchName$1 as BranchName, schemas_BranchOp as BranchOp, schemas_BranchSchema as BranchSchema, schemas_BranchWithCopyID as BranchWithCopyID, schemas_ClusterConfiguration as ClusterConfiguration, schemas_ClusterConfigurationResponse as ClusterConfigurationResponse, schemas_ClusterCreateDetails as ClusterCreateDetails,
|
8325
|
+
export type { schemas_APIKeyName as APIKeyName, schemas_AccessToken as AccessToken, schemas_AggExpression as AggExpression, schemas_AggExpressionMap as AggExpressionMap, AggResponse$1 as AggResponse, schemas_ApplyMigrationResponse as ApplyMigrationResponse, schemas_AuthorizationCodeRequest as AuthorizationCodeRequest, schemas_AuthorizationCodeResponse as AuthorizationCodeResponse, schemas_AutoscalingConfig as AutoscalingConfig, schemas_AutoscalingConfigResponse as AutoscalingConfigResponse, schemas_AverageAgg as AverageAgg, schemas_BoosterExpression as BoosterExpression, schemas_Branch as Branch, schemas_BranchDetails as BranchDetails, BranchMetadata$1 as BranchMetadata, schemas_BranchMigration as BranchMigration, BranchName$1 as BranchName, schemas_BranchOp as BranchOp, schemas_BranchSchema as BranchSchema, schemas_BranchState as BranchState, schemas_BranchWithCopyID as BranchWithCopyID, schemas_ClusterConfiguration as ClusterConfiguration, schemas_ClusterConfigurationResponse as ClusterConfigurationResponse, schemas_ClusterCreateDetails as ClusterCreateDetails, schemas_ClusterDeleteMetadata as ClusterDeleteMetadata, schemas_ClusterExtensionInstallationResponse as ClusterExtensionInstallationResponse, ClusterID$1 as ClusterID, schemas_ClusterMetadata as ClusterMetadata, schemas_ClusterResponse as ClusterResponse, schemas_ClusterShortMetadata as ClusterShortMetadata, schemas_ClusterUpdateDetails as ClusterUpdateDetails, schemas_ClusterUpdateMetadata as ClusterUpdateMetadata, schemas_Column as Column, schemas_ColumnFile as ColumnFile, schemas_ColumnLink as ColumnLink, schemas_ColumnMigration as ColumnMigration, schemas_ColumnName as ColumnName, schemas_ColumnOpAdd as ColumnOpAdd, schemas_ColumnOpRemove as ColumnOpRemove, schemas_ColumnOpRename as ColumnOpRename, schemas_ColumnVector as ColumnVector, schemas_ColumnsProjection as ColumnsProjection, schemas_Commit as Commit, schemas_CompleteMigrationResponse as CompleteMigrationResponse, schemas_CountAgg as CountAgg, CreateBranchResponse$1 as CreateBranchResponse, schemas_DBBranch as DBBranch, schemas_DBBranchName as DBBranchName, DBName$1 as DBName, schemas_DailyTimeWindow as DailyTimeWindow, schemas_DataInputRecord as DataInputRecord, schemas_DatabaseGithubSettings as DatabaseGithubSettings, schemas_DatabaseMetadata as DatabaseMetadata, schemas_DatabaseSettings as DatabaseSettings, DateBooster$1 as DateBooster, schemas_DateHistogramAgg as DateHistogramAgg, DateTime$1 as DateTime, schemas_ExtensionDetails as ExtensionDetails, schemas_FileAccessID as FileAccessID, schemas_FileItemID as FileItemID, schemas_FileName as FileName, schemas_FileResponse as FileResponse, schemas_FileSignature as FileSignature, schemas_FilterColumn as FilterColumn, schemas_FilterColumnIncludes as FilterColumnIncludes, schemas_FilterExpression as FilterExpression, schemas_FilterList as FilterList, schemas_FilterPredicate as FilterPredicate, schemas_FilterPredicateOp as FilterPredicateOp, schemas_FilterPredicateRangeOp as FilterPredicateRangeOp, schemas_FilterRangeValue as FilterRangeValue, schemas_FilterValue as FilterValue, schemas_FuzzinessExpression as FuzzinessExpression, schemas_GetMigrationJobsResponse as GetMigrationJobsResponse, schemas_HighlightExpression as HighlightExpression, schemas_InputFile as InputFile, schemas_InputFileArray as InputFileArray, schemas_InputFileEntry as InputFileEntry, schemas_InviteID as InviteID, schemas_InviteKey as InviteKey, schemas_ListBranchesResponse as ListBranchesResponse, schemas_ListClusterBranchesResponse as ListClusterBranchesResponse, schemas_ListClusterExtensionsResponse as ListClusterExtensionsResponse, schemas_ListClustersResponse as ListClustersResponse, schemas_ListDatabasesResponse as ListDatabasesResponse, schemas_ListGitBranchesResponse as ListGitBranchesResponse, schemas_ListRegionsResponse as ListRegionsResponse, schemas_MaintenanceConfig as MaintenanceConfig, schemas_MaintenanceConfigResponse as MaintenanceConfigResponse, schemas_MaxAgg as MaxAgg, schemas_MediaType as MediaType, schemas_MetricData as MetricData, schemas_MetricMessage as MetricMessage, schemas_MetricsDatapoint as MetricsDatapoint, schemas_MetricsLatency as MetricsLatency, schemas_MetricsResponse as MetricsResponse, schemas_Migration as Migration, schemas_MigrationColumnOp as MigrationColumnOp, schemas_MigrationDescription as MigrationDescription, schemas_MigrationHistoryItem as MigrationHistoryItem, schemas_MigrationHistoryResponse as MigrationHistoryResponse, schemas_MigrationJobID as MigrationJobID, schemas_MigrationJobItem as MigrationJobItem, schemas_MigrationJobStatus as MigrationJobStatus, schemas_MigrationJobStatusResponse as MigrationJobStatusResponse, schemas_MigrationJobType as MigrationJobType, schemas_MigrationObject as MigrationObject, schemas_MigrationOp as MigrationOp, schemas_MigrationOperationDescription as MigrationOperationDescription, schemas_MigrationRequest as MigrationRequest, schemas_MigrationRequestNumber as MigrationRequestNumber, MigrationStatus$1 as MigrationStatus, schemas_MigrationTableOp as MigrationTableOp, schemas_MigrationType as MigrationType, schemas_MinAgg as MinAgg, NumericBooster$1 as NumericBooster, schemas_NumericHistogramAgg as NumericHistogramAgg, schemas_OAuthAccessToken as OAuthAccessToken, schemas_OAuthClientID as OAuthClientID, schemas_OAuthClientPublicDetails as OAuthClientPublicDetails, schemas_OAuthResponseType as OAuthResponseType, schemas_OAuthScope as OAuthScope, schemas_ObjectValue as ObjectValue, schemas_PageConfig as PageConfig, PageResponse$1 as PageResponse, PageSize$1 as PageSize, PageToken$1 as PageToken, schemas_PercentilesAgg as PercentilesAgg, schemas_PrefixExpression as PrefixExpression, schemas_PreparedStatement as PreparedStatement, schemas_ProjectionConfig as ProjectionConfig, schemas_QueryColumnsProjection as QueryColumnsProjection, schemas_RecordID as RecordID, schemas_RecordMeta as RecordMeta, schemas_RecordsMetadata as RecordsMetadata, schemas_Region as Region, schemas_RevLink as RevLink, schemas_Role as Role, schemas_RollbackMigrationResponse as RollbackMigrationResponse, schemas_SQLConsistency as SQLConsistency, schemas_SQLRecord as SQLRecord, SQLResponse$1 as SQLResponse, schemas_SQLResponseArray as SQLResponseArray, schemas_SQLResponseBase as SQLResponseBase, schemas_SQLResponseJSON as SQLResponseJSON, SQLResponseType$1 as SQLResponseType, schemas_Schema as Schema, schemas_SchemaEditScript as SchemaEditScript, schemas_SearchPageConfig as SearchPageConfig, schemas_SortExpression as SortExpression, schemas_SortOrder as SortOrder, schemas_StartMigrationResponse as StartMigrationResponse, schemas_StartedFromMetadata as StartedFromMetadata, schemas_StorageConfig as StorageConfig, schemas_StorageConfigResponse as StorageConfigResponse, schemas_SumAgg as SumAgg, schemas_SummaryExpression as SummaryExpression, schemas_SummaryExpressionList as SummaryExpressionList, schemas_Table as Table, schemas_TableMigration as TableMigration, schemas_TableName as TableName, schemas_TableOpAdd as TableOpAdd, schemas_TableOpRemove as TableOpRemove, schemas_TableOpRename as TableOpRename, schemas_TableRename as TableRename, schemas_TargetExpression as TargetExpression, schemas_TaskID as TaskID, schemas_TaskStatus as TaskStatus, schemas_TaskStatusResponse as TaskStatusResponse, schemas_TopValuesAgg as TopValuesAgg, schemas_TransactionDeleteOp as TransactionDeleteOp, schemas_TransactionError as TransactionError, schemas_TransactionFailure as TransactionFailure, schemas_TransactionGetOp as TransactionGetOp, schemas_TransactionInsertOp as TransactionInsertOp, TransactionOperation$1 as TransactionOperation, schemas_TransactionResultColumns as TransactionResultColumns, schemas_TransactionResultDelete as TransactionResultDelete, schemas_TransactionResultGet as TransactionResultGet, schemas_TransactionResultInsert as TransactionResultInsert, schemas_TransactionResultUpdate as TransactionResultUpdate, schemas_TransactionSuccess as TransactionSuccess, schemas_TransactionUpdateOp as TransactionUpdateOp, schemas_UniqueCountAgg as UniqueCountAgg, schemas_User as User, schemas_UserID as UserID, schemas_UserWithID as UserWithID, ValueBooster$1 as ValueBooster, schemas_WeeklyTimeWindow as WeeklyTimeWindow, schemas_Workspace as Workspace, schemas_WorkspaceID as WorkspaceID, schemas_WorkspaceInvite as WorkspaceInvite, schemas_WorkspaceMember as WorkspaceMember, schemas_WorkspaceMembers as WorkspaceMembers, schemas_WorkspaceMeta as WorkspaceMeta, schemas_WorkspacePlan as WorkspacePlan, schemas_WorkspaceSettings as WorkspaceSettings, XataRecord$1 as XataRecord };
|
7331
8326
|
}
|
7332
8327
|
|
7333
8328
|
declare class XataApiPlugin implements XataPlugin {
|
@@ -8186,9 +9181,9 @@ type SelectedPick<O extends XataRecord, Key extends SelectableColumnWithObjectNo
|
|
8186
9181
|
};
|
8187
9182
|
};
|
8188
9183
|
}>>;
|
8189
|
-
type ValueAtColumn<
|
9184
|
+
type ValueAtColumn<Obj, Key, RecursivePath extends any[] = []> = RecursivePath['length'] extends MAX_RECURSION ? never : Key extends '*' ? Values<Obj> : Key extends keyof Obj ? Obj[Key] : Key extends `${infer K}.${infer V}` ? K extends keyof Obj ? Values<NonNullable<Obj[K]> extends infer Item ? Item extends Record<string, any> ? V extends SelectableColumn<Item> ? {
|
8190
9185
|
V: ValueAtColumn<Item, V, [...RecursivePath, Item]>;
|
8191
|
-
} : never :
|
9186
|
+
} : never : Obj[K] : never> : never : never;
|
8192
9187
|
type MAX_RECURSION = 3;
|
8193
9188
|
type NestedColumns<O, RecursivePath extends any[]> = RecursivePath['length'] extends MAX_RECURSION ? never : If<IsObject<O>, Values<{
|
8194
9189
|
[K in DataProps<O>]: NonNullable<O[K]> extends infer Item ? If<IsArray<Item>, Item extends (infer Type)[] ? Type extends XataArrayFile ? K | `${K}.${keyof XataFileFields | '*'}` : K | `${K}.${StringKeys<Type> | '*'}` : never, If<IsObject<Item>, Item extends XataRecord ? SelectableColumn<Item, [...RecursivePath, Item]> extends infer Column ? Column extends string ? K | `${K}.${Column}` : never : never : Item extends Date ? K : Item extends XataFile ? K | `${K}.${keyof XataFileFields | '*'}` : `${K}.${StringKeys<Item> | '*'}`, // This allows usage of objects that are not links
|
@@ -8295,13 +9290,13 @@ interface XataRecord<OriginalRecord extends XataRecord<any> = XataRecord<any>> e
|
|
8295
9290
|
type Link<Record extends XataRecord> = XataRecord<Record>;
|
8296
9291
|
declare function isIdentifiable(x: any): x is Identifiable & Record<string, unknown>;
|
8297
9292
|
type NumericOperator = ExclusiveOr<{
|
8298
|
-
$increment
|
9293
|
+
$increment: number;
|
8299
9294
|
}, ExclusiveOr<{
|
8300
|
-
$decrement
|
9295
|
+
$decrement: number;
|
8301
9296
|
}, ExclusiveOr<{
|
8302
|
-
$multiply
|
9297
|
+
$multiply: number;
|
8303
9298
|
}, {
|
8304
|
-
$divide
|
9299
|
+
$divide: number;
|
8305
9300
|
}>>>;
|
8306
9301
|
type InputXataFile = Partial<XataArrayFile> | Promise<Partial<XataArrayFile>>;
|
8307
9302
|
type EditableDataFields<T> = T extends XataRecord ? {
|
@@ -10155,10 +11150,37 @@ type SQLQueryParams<T = any[]> = {
|
|
10155
11150
|
params?: T;
|
10156
11151
|
/**
|
10157
11152
|
* The consistency level to use when executing the query.
|
11153
|
+
* @default 'strong'
|
10158
11154
|
*/
|
10159
11155
|
consistency?: 'strong' | 'eventual';
|
10160
11156
|
/**
|
10161
11157
|
* The response type to use when executing the query.
|
11158
|
+
* @default 'json'
|
11159
|
+
*/
|
11160
|
+
responseType?: 'json' | 'array';
|
11161
|
+
};
|
11162
|
+
type SQLBatchQuery = {
|
11163
|
+
/**
|
11164
|
+
* The SQL statements to execute.
|
11165
|
+
*/
|
11166
|
+
statements: {
|
11167
|
+
/**
|
11168
|
+
* The SQL statement to execute.
|
11169
|
+
*/
|
11170
|
+
statement: string;
|
11171
|
+
/**
|
11172
|
+
* The parameters to pass to the SQL statement.
|
11173
|
+
*/
|
11174
|
+
params?: any[];
|
11175
|
+
}[];
|
11176
|
+
/**
|
11177
|
+
* The consistency level to use when executing the queries.
|
11178
|
+
* @default 'strong'
|
11179
|
+
*/
|
11180
|
+
consistency?: 'strong' | 'eventual';
|
11181
|
+
/**
|
11182
|
+
* The response type to use when executing the queries.
|
11183
|
+
* @default 'json'
|
10162
11184
|
*/
|
10163
11185
|
responseType?: 'json' | 'array';
|
10164
11186
|
};
|
@@ -10207,6 +11229,13 @@ type SQLPluginResult = SQLPluginFunction & {
|
|
10207
11229
|
* Connects with the same credentials as the Xata client.
|
10208
11230
|
*/
|
10209
11231
|
connectionString: string;
|
11232
|
+
/**
|
11233
|
+
* Executes a batch of SQL statements.
|
11234
|
+
* @param query The batch of SQL statements to execute.
|
11235
|
+
*/
|
11236
|
+
batch: <Query extends SQLBatchQuery = SQLBatchQuery>(query: Query) => Promise<{
|
11237
|
+
results: Array<SQLQueryResult<any, Query extends SQLBatchQuery ? Query['responseType'] extends SQLResponseType ? NonNullable<Query['responseType']> : 'json' : 'json'>>;
|
11238
|
+
}>;
|
10210
11239
|
};
|
10211
11240
|
declare class SQLPlugin extends XataPlugin {
|
10212
11241
|
build(pluginOptions: XataPluginOptions): SQLPluginResult;
|
@@ -10370,4 +11399,4 @@ declare class XataError extends Error {
|
|
10370
11399
|
constructor(message: string, status: number);
|
10371
11400
|
}
|
10372
11401
|
|
10373
|
-
export { type AcceptWorkspaceMemberInviteError, type AcceptWorkspaceMemberInvitePathParams, type AcceptWorkspaceMemberInviteVariables, type AdaptAllTablesError, type AdaptAllTablesPathParams, type AdaptAllTablesVariables, type AdaptTableError, type AdaptTablePathParams, type AdaptTableVariables, type AddGitBranchesEntryError, type AddGitBranchesEntryPathParams, type AddGitBranchesEntryRequestBody, type AddGitBranchesEntryResponse, type AddGitBranchesEntryVariables, type AddTableColumnError, type AddTableColumnPathParams, type AddTableColumnVariables, type AggregateTableError, type AggregateTablePathParams, type AggregateTableRequestBody, type AggregateTableVariables, type ApiExtraProps, type ApplyBranchSchemaEditError, type ApplyBranchSchemaEditPathParams, type ApplyBranchSchemaEditRequestBody, type ApplyBranchSchemaEditVariables, type ApplyMigrationError, type ApplyMigrationPathParams, type ApplyMigrationRequestBody, type ApplyMigrationVariables, type AskOptions, type AskResult, type AskTableError, type AskTablePathParams, type AskTableRequestBody, type AskTableResponse, type AskTableSessionError, type AskTableSessionPathParams, type AskTableSessionRequestBody, type AskTableSessionResponse, type AskTableSessionVariables, type AskTableVariables, BaseClient, type BaseClientOptions, type BaseData, type BaseSchema, type BinaryFile, type BranchTransactionError, type BranchTransactionPathParams, type BranchTransactionRequestBody, type BranchTransactionVariables, Buffer, type BulkInsertTableRecordsError, type BulkInsertTableRecordsPathParams, type BulkInsertTableRecordsQueryParams, type BulkInsertTableRecordsRequestBody, type BulkInsertTableRecordsVariables, type CancelWorkspaceMemberInviteError, type CancelWorkspaceMemberInvitePathParams, type CancelWorkspaceMemberInviteVariables, type ClientConstructor, type ColumnsByValue, type CompareBranchSchemasError, type CompareBranchSchemasPathParams, type CompareBranchSchemasRequestBody, type CompareBranchSchemasVariables, type CompareBranchWithUserSchemaError, type CompareBranchWithUserSchemaPathParams, type CompareBranchWithUserSchemaRequestBody, type CompareBranchWithUserSchemaVariables, type CompareMigrationRequestError, type CompareMigrationRequestPathParams, type CompareMigrationRequestVariables, type CopyBranchError, type CopyBranchPathParams, type CopyBranchRequestBody, type CopyBranchVariables, type CreateBranchError, type CreateBranchPathParams, type CreateBranchQueryParams, type CreateBranchRequestBody, type CreateBranchResponse, type CreateBranchVariables, type CreateClusterError, type CreateClusterPathParams, type CreateClusterVariables, type CreateDatabaseError, type CreateDatabasePathParams, type CreateDatabaseRequestBody, type CreateDatabaseResponse, type CreateDatabaseVariables, type CreateMigrationRequestError, type CreateMigrationRequestPathParams, type CreateMigrationRequestRequestBody, type CreateMigrationRequestResponse, type CreateMigrationRequestVariables, type CreateTableError, type CreateTablePathParams, type CreateTableResponse, type CreateTableVariables, type CreateUserAPIKeyError, type CreateUserAPIKeyPathParams, type CreateUserAPIKeyResponse, type CreateUserAPIKeyVariables, type CreateWorkspaceError, type CreateWorkspaceVariables, type CursorNavigationOptions, type DeleteBranchError, type DeleteBranchPathParams, type DeleteBranchResponse, type DeleteBranchVariables, type DeleteClusterError, type DeleteClusterPathParams, type DeleteClusterVariables, type DeleteColumnError, type DeleteColumnPathParams, type DeleteColumnVariables, type DeleteDatabaseError, type DeleteDatabaseGithubSettingsError, type DeleteDatabaseGithubSettingsPathParams, type DeleteDatabaseGithubSettingsVariables, type DeleteDatabasePathParams, type DeleteDatabaseResponse, type DeleteDatabaseVariables, type DeleteFileError, type DeleteFileItemError, type DeleteFileItemPathParams, type DeleteFileItemVariables, type DeleteFilePathParams, type DeleteFileVariables, type DeleteOAuthAccessTokenError, type DeleteOAuthAccessTokenPathParams, type DeleteOAuthAccessTokenVariables, type DeleteRecordError, type DeleteRecordPathParams, type DeleteRecordQueryParams, type DeleteRecordVariables, type DeleteTableError, type DeleteTablePathParams, type DeleteTableResponse, type DeleteTableVariables, type DeleteTransactionOperation, type DeleteUserAPIKeyError, type DeleteUserAPIKeyPathParams, type DeleteUserAPIKeyVariables, type DeleteUserError, type DeleteUserOAuthClientError, type DeleteUserOAuthClientPathParams, type DeleteUserOAuthClientVariables, type DeleteUserVariables, type DeleteWorkspaceError, type DeleteWorkspacePathParams, type DeleteWorkspaceVariables, type DeserializedType, type DownloadDestination, type EditableData, type ExecuteBranchMigrationPlanError, type ExecuteBranchMigrationPlanPathParams, type ExecuteBranchMigrationPlanRequestBody, type ExecuteBranchMigrationPlanVariables, type FetchImpl, FetcherError, type FetcherExtraProps, type FileAccessError, type FileAccessPathParams, type FileAccessQueryParams, type FileAccessVariables, type FileUploadError, type FileUploadPathParams, type FileUploadQueryParams, type FileUploadVariables, FilesPlugin, type FilesPluginResult, type GetAuthorizationCodeError, type GetAuthorizationCodeQueryParams, type GetAuthorizationCodeVariables, type GetBranchDetailsError, type GetBranchDetailsPathParams, type GetBranchDetailsVariables, type GetBranchListError, type GetBranchListPathParams, type GetBranchListVariables, type GetBranchMetadataError, type GetBranchMetadataPathParams, type GetBranchMetadataVariables, type GetBranchMigrationHistoryError, type GetBranchMigrationHistoryPathParams, type GetBranchMigrationHistoryRequestBody, type GetBranchMigrationHistoryResponse, type GetBranchMigrationHistoryVariables, type GetBranchMigrationJobStatusError, type GetBranchMigrationJobStatusPathParams, type GetBranchMigrationJobStatusVariables, type GetBranchMigrationPlanError, type GetBranchMigrationPlanPathParams, type GetBranchMigrationPlanVariables, type GetBranchSchemaHistoryError, type GetBranchSchemaHistoryPathParams, type GetBranchSchemaHistoryRequestBody, type GetBranchSchemaHistoryResponse, type GetBranchSchemaHistoryVariables, type GetBranchStatsError, type GetBranchStatsPathParams, type GetBranchStatsResponse, type GetBranchStatsVariables, type GetClusterError, type GetClusterPathParams, type GetClusterVariables, type GetColumnError, type GetColumnPathParams, type GetColumnVariables, type GetDatabaseGithubSettingsError, type GetDatabaseGithubSettingsPathParams, type GetDatabaseGithubSettingsVariables, type GetDatabaseListError, type GetDatabaseListPathParams, type GetDatabaseListVariables, type GetDatabaseMetadataError, type GetDatabaseMetadataPathParams, type GetDatabaseMetadataVariables, type GetDatabaseSettingsError, type GetDatabaseSettingsPathParams, type GetDatabaseSettingsVariables, type GetFileError, type GetFileItemError, type GetFileItemPathParams, type GetFileItemVariables, type GetFilePathParams, type GetFileVariables, type GetGitBranchesMappingError, type GetGitBranchesMappingPathParams, type GetGitBranchesMappingVariables, type GetMigrationHistoryError, type GetMigrationHistoryPathParams, type GetMigrationHistoryVariables, type GetMigrationJobStatusError, type GetMigrationJobStatusPathParams, type GetMigrationJobStatusVariables, type GetMigrationRequestError, type GetMigrationRequestIsMergedError, type GetMigrationRequestIsMergedPathParams, type GetMigrationRequestIsMergedResponse, type GetMigrationRequestIsMergedVariables, type GetMigrationRequestPathParams, type GetMigrationRequestVariables, type GetRecordError, type GetRecordPathParams, type GetRecordQueryParams, type GetRecordVariables, type GetSchemaError, type GetSchemaPathParams, type GetSchemaResponse, type GetSchemaVariables, type GetTableColumnsError, type GetTableColumnsPathParams, type GetTableColumnsResponse, type GetTableColumnsVariables, type GetTableSchemaError, type GetTableSchemaPathParams, type GetTableSchemaResponse, type GetTableSchemaVariables, type GetTransactionOperation, type GetUserAPIKeysError, type GetUserAPIKeysResponse, type GetUserAPIKeysVariables, type GetUserError, type GetUserOAuthAccessTokensError, type GetUserOAuthAccessTokensResponse, type GetUserOAuthAccessTokensVariables, type GetUserOAuthClientsError, type GetUserOAuthClientsResponse, type GetUserOAuthClientsVariables, type GetUserVariables, type GetWorkspaceError, type GetWorkspaceMembersListError, type GetWorkspaceMembersListPathParams, type GetWorkspaceMembersListVariables, type GetWorkspacePathParams, type GetWorkspaceSettingsError, type GetWorkspaceSettingsPathParams, type GetWorkspaceSettingsVariables, type GetWorkspaceVariables, type GetWorkspacesListError, type GetWorkspacesListResponse, type GetWorkspacesListVariables, type GrantAuthorizationCodeError, type GrantAuthorizationCodeVariables, type HostProvider, type Identifiable, type ImageTransformations, type InsertRecordError, type InsertRecordPathParams, type InsertRecordQueryParams, type InsertRecordVariables, type InsertRecordWithIDError, type InsertRecordWithIDPathParams, type InsertRecordWithIDQueryParams, type InsertRecordWithIDVariables, type InsertTransactionOperation, type InviteWorkspaceMemberError, type InviteWorkspaceMemberPathParams, type InviteWorkspaceMemberRequestBody, type InviteWorkspaceMemberVariables, type JSONData, type KeywordAskOptions, type Link, type ListClustersError, type ListClustersPathParams, type ListClustersQueryParams, type ListClustersVariables, type ListMigrationRequestsCommitsError, type ListMigrationRequestsCommitsPathParams, type ListMigrationRequestsCommitsRequestBody, type ListMigrationRequestsCommitsResponse, type ListMigrationRequestsCommitsVariables, type ListRegionsError, type ListRegionsPathParams, type ListRegionsVariables, type MergeMigrationRequestError, type MergeMigrationRequestPathParams, type MergeMigrationRequestVariables, type OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, PageRecordArray, type Paginable, type PaginationQueryMeta, type PreviewBranchSchemaEditError, type PreviewBranchSchemaEditPathParams, type PreviewBranchSchemaEditRequestBody, type PreviewBranchSchemaEditResponse, type PreviewBranchSchemaEditVariables, type PushBranchMigrationsError, type PushBranchMigrationsPathParams, type PushBranchMigrationsRequestBody, type PushBranchMigrationsVariables, type PutFileError, type PutFileItemError, type PutFileItemPathParams, type PutFileItemVariables, type PutFilePathParams, type PutFileVariables, Query, type QueryMigrationRequestsError, type QueryMigrationRequestsPathParams, type QueryMigrationRequestsRequestBody, type QueryMigrationRequestsResponse, type QueryMigrationRequestsVariables, type QueryTableError, type QueryTablePathParams, type QueryTableRequestBody, type QueryTableVariables, RecordArray, RecordColumnTypes, type RemoveGitBranchesEntryError, type RemoveGitBranchesEntryPathParams, type RemoveGitBranchesEntryQueryParams, type RemoveGitBranchesEntryVariables, type RemoveWorkspaceMemberError, type RemoveWorkspaceMemberPathParams, type RemoveWorkspaceMemberVariables, type RenameDatabaseError, type RenameDatabasePathParams, type RenameDatabaseRequestBody, type RenameDatabaseVariables, Repository, type ResendWorkspaceMemberInviteError, type ResendWorkspaceMemberInvitePathParams, type ResendWorkspaceMemberInviteVariables, type ResolveBranchError, type ResolveBranchPathParams, type ResolveBranchQueryParams, type ResolveBranchResponse, type ResolveBranchVariables, responses as Responses, RestRepository, SQLPlugin, type SQLPluginResult, type SQLQuery, type SQLQueryParams, type SQLQueryResult, type SchemaDefinition, type SchemaInference, SchemaPlugin, type SchemaPluginResult, schemas as Schemas, type SearchBranchError, type SearchBranchPathParams, type SearchBranchRequestBody, type SearchBranchVariables, type SearchOptions, SearchPlugin, type SearchPluginResult, type SearchTableError, type SearchTablePathParams, type SearchTableRequestBody, type SearchTableVariables, type SearchXataRecord, type SelectableColumn, type SelectableColumnWithObjectNotation, type SelectedPick, type SerializedString, Serializer, type SerializerResult, type SetTableSchemaError, type SetTableSchemaPathParams, type SetTableSchemaRequestBody, type SetTableSchemaVariables, type SqlQueryError, type SqlQueryPathParams, type SqlQueryRequestBody, type SqlQueryVariables, type SummarizeTableError, type SummarizeTablePathParams, type SummarizeTableRequestBody, type SummarizeTableVariables, type TotalCount, type TransactionOperation, TransactionPlugin, type TransactionPluginResult, type TransactionResults, type UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, type UpdateClusterError, type UpdateClusterPathParams, type UpdateClusterVariables, type UpdateColumnError, type UpdateColumnPathParams, type UpdateColumnRequestBody, type UpdateColumnVariables, type UpdateDatabaseGithubSettingsError, type UpdateDatabaseGithubSettingsPathParams, type UpdateDatabaseGithubSettingsVariables, type UpdateDatabaseMetadataError, type UpdateDatabaseMetadataPathParams, type UpdateDatabaseMetadataRequestBody, type UpdateDatabaseMetadataVariables, type UpdateDatabaseSettingsError, type UpdateDatabaseSettingsPathParams, type UpdateDatabaseSettingsRequestBody, type UpdateDatabaseSettingsVariables, type UpdateMigrationRequestError, type UpdateMigrationRequestPathParams, type UpdateMigrationRequestRequestBody, type UpdateMigrationRequestVariables, type UpdateOAuthAccessTokenError, type UpdateOAuthAccessTokenPathParams, type UpdateOAuthAccessTokenRequestBody, type UpdateOAuthAccessTokenVariables, type UpdateRecordWithIDError, type UpdateRecordWithIDPathParams, type UpdateRecordWithIDQueryParams, type UpdateRecordWithIDVariables, type UpdateTableError, type UpdateTablePathParams, type UpdateTableRequestBody, type UpdateTableVariables, type UpdateTransactionOperation, type UpdateUserError, type UpdateUserVariables, type UpdateWorkspaceError, type UpdateWorkspaceMemberInviteError, type UpdateWorkspaceMemberInvitePathParams, type UpdateWorkspaceMemberInviteRequestBody, type UpdateWorkspaceMemberInviteVariables, type UpdateWorkspaceMemberRoleError, type UpdateWorkspaceMemberRolePathParams, type UpdateWorkspaceMemberRoleRequestBody, type UpdateWorkspaceMemberRoleVariables, type UpdateWorkspacePathParams, type UpdateWorkspaceSettingsError, type UpdateWorkspaceSettingsPathParams, type UpdateWorkspaceSettingsRequestBody, type UpdateWorkspaceSettingsVariables, type UpdateWorkspaceVariables, type UploadDestination, type UpsertRecordWithIDError, type UpsertRecordWithIDPathParams, type UpsertRecordWithIDQueryParams, type UpsertRecordWithIDVariables, type ValueAtColumn, type VectorAskOptions, type VectorSearchTableError, type VectorSearchTablePathParams, type VectorSearchTableRequestBody, type VectorSearchTableVariables, XataApiClient, type XataApiClientOptions, XataApiPlugin, type XataArrayFile, XataError, XataFile, XataPlugin, type XataPluginOptions, type XataRecord, acceptWorkspaceMemberInvite, adaptAllTables, adaptTable, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, applyMigration, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createCluster, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteCluster, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, fileUpload, ge, getAuthorizationCode, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationJobStatus, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getCluster, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseSettings, getDeployPreviewBranch, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationHistory, getMigrationJobStatus, getMigrationRequest, getMigrationRequestIsMerged, getRecord, getSchema, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, getWorkspaceSettings, getWorkspacesList, grantAuthorizationCode, greaterEquals, greaterThan, greaterThanEquals, gt, gte, iContains, iPattern, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isValidExpandedColumn, isValidSelectableColumns, le, lessEquals, lessThan, lessThanEquals, listClusters, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, sqlQuery, startsWith, summarizeTable, transformImage, updateBranchMetadata, updateBranchSchema, updateCluster, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateDatabaseSettings, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, updateWorkspaceSettings, upsertRecordWithID, vectorSearchTable };
|
11402
|
+
export { type AcceptWorkspaceMemberInviteError, type AcceptWorkspaceMemberInvitePathParams, type AcceptWorkspaceMemberInviteVariables, type AdaptAllTablesError, type AdaptAllTablesPathParams, type AdaptAllTablesVariables, type AdaptTableError, type AdaptTablePathParams, type AdaptTableVariables, type AddGitBranchesEntryError, type AddGitBranchesEntryPathParams, type AddGitBranchesEntryRequestBody, type AddGitBranchesEntryResponse, type AddGitBranchesEntryVariables, type AddTableColumnError, type AddTableColumnPathParams, type AddTableColumnVariables, type AggregateTableError, type AggregateTablePathParams, type AggregateTableRequestBody, type AggregateTableVariables, type ApiExtraProps, type ApplyBranchSchemaEditError, type ApplyBranchSchemaEditPathParams, type ApplyBranchSchemaEditRequestBody, type ApplyBranchSchemaEditVariables, type ApplyMigrationError, type ApplyMigrationPathParams, type ApplyMigrationRequestBody, type ApplyMigrationVariables, type AskOptions, type AskResult, type AskTableError, type AskTablePathParams, type AskTableRequestBody, type AskTableResponse, type AskTableSessionError, type AskTableSessionPathParams, type AskTableSessionRequestBody, type AskTableSessionResponse, type AskTableSessionVariables, type AskTableVariables, BaseClient, type BaseClientOptions, type BaseData, type BaseSchema, type BinaryFile, type BranchTransactionError, type BranchTransactionPathParams, type BranchTransactionRequestBody, type BranchTransactionVariables, Buffer, type BulkInsertTableRecordsError, type BulkInsertTableRecordsPathParams, type BulkInsertTableRecordsQueryParams, type BulkInsertTableRecordsRequestBody, type BulkInsertTableRecordsVariables, type CancelWorkspaceMemberInviteError, type CancelWorkspaceMemberInvitePathParams, type CancelWorkspaceMemberInviteVariables, type ClientConstructor, type ColumnsByValue, type CompareBranchSchemasError, type CompareBranchSchemasPathParams, type CompareBranchSchemasRequestBody, type CompareBranchSchemasVariables, type CompareBranchWithUserSchemaError, type CompareBranchWithUserSchemaPathParams, type CompareBranchWithUserSchemaRequestBody, type CompareBranchWithUserSchemaVariables, type CompareMigrationRequestError, type CompareMigrationRequestPathParams, type CompareMigrationRequestVariables, type CompleteMigrationError, type CompleteMigrationPathParams, type CompleteMigrationRequestBody, type CompleteMigrationVariables, type CopyBranchError, type CopyBranchPathParams, type CopyBranchRequestBody, type CopyBranchVariables, type CreateBranchAsyncError, type CreateBranchAsyncPathParams, type CreateBranchAsyncQueryParams, type CreateBranchAsyncRequestBody, type CreateBranchAsyncVariables, type CreateBranchError, type CreateBranchPathParams, type CreateBranchQueryParams, type CreateBranchRequestBody, type CreateBranchResponse, type CreateBranchVariables, type CreateClusterError, type CreateClusterPathParams, type CreateClusterVariables, type CreateDatabaseError, type CreateDatabasePathParams, type CreateDatabaseRequestBody, type CreateDatabaseResponse, type CreateDatabaseVariables, type CreateMigrationRequestError, type CreateMigrationRequestPathParams, type CreateMigrationRequestRequestBody, type CreateMigrationRequestResponse, type CreateMigrationRequestVariables, type CreateTableError, type CreateTablePathParams, type CreateTableResponse, type CreateTableVariables, type CreateUserAPIKeyError, type CreateUserAPIKeyPathParams, type CreateUserAPIKeyResponse, type CreateUserAPIKeyVariables, type CreateWorkspaceError, type CreateWorkspaceVariables, type CursorNavigationOptions, type DeleteBranchError, type DeleteBranchPathParams, type DeleteBranchResponse, type DeleteBranchVariables, type DeleteClusterError, type DeleteClusterPathParams, type DeleteClusterVariables, type DeleteColumnError, type DeleteColumnPathParams, type DeleteColumnVariables, type DeleteDatabaseError, type DeleteDatabaseGithubSettingsError, type DeleteDatabaseGithubSettingsPathParams, type DeleteDatabaseGithubSettingsVariables, type DeleteDatabasePathParams, type DeleteDatabaseResponse, type DeleteDatabaseVariables, type DeleteFileError, type DeleteFileItemError, type DeleteFileItemPathParams, type DeleteFileItemVariables, type DeleteFilePathParams, type DeleteFileVariables, type DeleteOAuthAccessTokenError, type DeleteOAuthAccessTokenPathParams, type DeleteOAuthAccessTokenVariables, type DeleteRecordError, type DeleteRecordPathParams, type DeleteRecordQueryParams, type DeleteRecordVariables, type DeleteTableError, type DeleteTablePathParams, type DeleteTableResponse, type DeleteTableVariables, type DeleteTransactionOperation, type DeleteUserAPIKeyError, type DeleteUserAPIKeyPathParams, type DeleteUserAPIKeyVariables, type DeleteUserError, type DeleteUserOAuthClientError, type DeleteUserOAuthClientPathParams, type DeleteUserOAuthClientVariables, type DeleteUserVariables, type DeleteWorkspaceError, type DeleteWorkspacePathParams, type DeleteWorkspaceVariables, type DeserializedType, type DownloadDestination, type DropClusterExtensionError, type DropClusterExtensionPathParams, type DropClusterExtensionRequestBody, type DropClusterExtensionVariables, type EditableData, type ExecuteBranchMigrationPlanError, type ExecuteBranchMigrationPlanPathParams, type ExecuteBranchMigrationPlanRequestBody, type ExecuteBranchMigrationPlanVariables, type FetchImpl, FetcherError, type FetcherExtraProps, type FileAccessError, type FileAccessPathParams, type FileAccessQueryParams, type FileAccessVariables, type FileUploadError, type FileUploadPathParams, type FileUploadQueryParams, type FileUploadVariables, FilesPlugin, type FilesPluginResult, type GetAuthorizationCodeError, type GetAuthorizationCodeQueryParams, type GetAuthorizationCodeVariables, type GetBranchDetailsError, type GetBranchDetailsPathParams, type GetBranchDetailsVariables, type GetBranchListError, type GetBranchListPathParams, type GetBranchListVariables, type GetBranchMetadataError, type GetBranchMetadataPathParams, type GetBranchMetadataVariables, type GetBranchMigrationHistoryError, type GetBranchMigrationHistoryPathParams, type GetBranchMigrationHistoryRequestBody, type GetBranchMigrationHistoryResponse, type GetBranchMigrationHistoryVariables, type GetBranchMigrationJobStatusError, type GetBranchMigrationJobStatusPathParams, type GetBranchMigrationJobStatusVariables, type GetBranchMigrationPlanError, type GetBranchMigrationPlanPathParams, type GetBranchMigrationPlanVariables, type GetBranchMoveStatusError, type GetBranchMoveStatusPathParams, type GetBranchMoveStatusResponse, type GetBranchMoveStatusVariables, type GetBranchSchemaHistoryError, type GetBranchSchemaHistoryPathParams, type GetBranchSchemaHistoryRequestBody, type GetBranchSchemaHistoryResponse, type GetBranchSchemaHistoryVariables, type GetBranchStatsError, type GetBranchStatsPathParams, type GetBranchStatsResponse, type GetBranchStatsVariables, type GetClusterError, type GetClusterMetricsError, type GetClusterMetricsPathParams, type GetClusterMetricsQueryParams, type GetClusterMetricsVariables, type GetClusterPathParams, type GetClusterVariables, type GetColumnError, type GetColumnPathParams, type GetColumnVariables, type GetDatabaseGithubSettingsError, type GetDatabaseGithubSettingsPathParams, type GetDatabaseGithubSettingsVariables, type GetDatabaseListError, type GetDatabaseListPathParams, type GetDatabaseListVariables, type GetDatabaseMetadataError, type GetDatabaseMetadataPathParams, type GetDatabaseMetadataVariables, type GetDatabaseSettingsError, type GetDatabaseSettingsPathParams, type GetDatabaseSettingsVariables, type GetFileError, type GetFileItemError, type GetFileItemPathParams, type GetFileItemVariables, type GetFilePathParams, type GetFileVariables, type GetGitBranchesMappingError, type GetGitBranchesMappingPathParams, type GetGitBranchesMappingVariables, type GetMigrationHistoryError, type GetMigrationHistoryPathParams, type GetMigrationHistoryQueryParams, type GetMigrationHistoryVariables, type GetMigrationJobStatusError, type GetMigrationJobStatusPathParams, type GetMigrationJobStatusVariables, type GetMigrationJobsError, type GetMigrationJobsPathParams, type GetMigrationJobsQueryParams, type GetMigrationJobsVariables, type GetMigrationRequestError, type GetMigrationRequestIsMergedError, type GetMigrationRequestIsMergedPathParams, type GetMigrationRequestIsMergedResponse, type GetMigrationRequestIsMergedVariables, type GetMigrationRequestPathParams, type GetMigrationRequestVariables, type GetRecordError, type GetRecordPathParams, type GetRecordQueryParams, type GetRecordVariables, type GetSchemaError, type GetSchemaPathParams, type GetSchemaResponse, type GetSchemaVariables, type GetSchemasError, type GetSchemasPathParams, type GetSchemasResponse, type GetSchemasVariables, type GetTableColumnsError, type GetTableColumnsPathParams, type GetTableColumnsResponse, type GetTableColumnsVariables, type GetTableSchemaError, type GetTableSchemaPathParams, type GetTableSchemaResponse, type GetTableSchemaVariables, type GetTaskStatusError, type GetTaskStatusPathParams, type GetTaskStatusVariables, type GetTasksError, type GetTasksPathParams, type GetTasksResponse, type GetTasksVariables, type GetTransactionOperation, type GetUserAPIKeysError, type GetUserAPIKeysResponse, type GetUserAPIKeysVariables, type GetUserError, type GetUserOAuthAccessTokensError, type GetUserOAuthAccessTokensResponse, type GetUserOAuthAccessTokensVariables, type GetUserOAuthClientsError, type GetUserOAuthClientsResponse, type GetUserOAuthClientsVariables, type GetUserVariables, type GetWorkspaceError, type GetWorkspaceMembersListError, type GetWorkspaceMembersListPathParams, type GetWorkspaceMembersListVariables, type GetWorkspacePathParams, type GetWorkspaceSettingsError, type GetWorkspaceSettingsPathParams, type GetWorkspaceSettingsVariables, type GetWorkspaceVariables, type GetWorkspacesListError, type GetWorkspacesListResponse, type GetWorkspacesListVariables, type GrantAuthorizationCodeError, type GrantAuthorizationCodeVariables, type HostProvider, type Identifiable, type ImageTransformations, type InsertRecordError, type InsertRecordPathParams, type InsertRecordQueryParams, type InsertRecordVariables, type InsertRecordWithIDError, type InsertRecordWithIDPathParams, type InsertRecordWithIDQueryParams, type InsertRecordWithIDVariables, type InsertTransactionOperation, type InstallClusterExtensionError, type InstallClusterExtensionPathParams, type InstallClusterExtensionRequestBody, type InstallClusterExtensionVariables, type InviteWorkspaceMemberError, type InviteWorkspaceMemberPathParams, type InviteWorkspaceMemberRequestBody, type InviteWorkspaceMemberVariables, type JSONData, type KeywordAskOptions, type Link, type ListClusterBranchesError, type ListClusterBranchesPathParams, type ListClusterBranchesQueryParams, type ListClusterBranchesVariables, type ListClusterExtensionsError, type ListClusterExtensionsPathParams, type ListClusterExtensionsQueryParams, type ListClusterExtensionsVariables, type ListClustersError, type ListClustersPathParams, type ListClustersQueryParams, type ListClustersVariables, type ListMigrationRequestsCommitsError, type ListMigrationRequestsCommitsPathParams, type ListMigrationRequestsCommitsRequestBody, type ListMigrationRequestsCommitsResponse, type ListMigrationRequestsCommitsVariables, type ListRegionsError, type ListRegionsPathParams, type ListRegionsVariables, type MergeMigrationRequestError, type MergeMigrationRequestPathParams, type MergeMigrationRequestVariables, type MoveBranchError, type MoveBranchPathParams, type MoveBranchRequestBody, type MoveBranchResponse, type MoveBranchVariables, type OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, PageRecordArray, type Paginable, type PaginationQueryMeta, type PreviewBranchSchemaEditError, type PreviewBranchSchemaEditPathParams, type PreviewBranchSchemaEditRequestBody, type PreviewBranchSchemaEditResponse, type PreviewBranchSchemaEditVariables, type PushBranchMigrationsError, type PushBranchMigrationsPathParams, type PushBranchMigrationsRequestBody, type PushBranchMigrationsVariables, type PutFileError, type PutFileItemError, type PutFileItemPathParams, type PutFileItemVariables, type PutFilePathParams, type PutFileVariables, Query, type QueryMigrationRequestsError, type QueryMigrationRequestsPathParams, type QueryMigrationRequestsRequestBody, type QueryMigrationRequestsResponse, type QueryMigrationRequestsVariables, type QueryTableError, type QueryTablePathParams, type QueryTableRequestBody, type QueryTableVariables, RecordArray, RecordColumnTypes, type RemoveGitBranchesEntryError, type RemoveGitBranchesEntryPathParams, type RemoveGitBranchesEntryQueryParams, type RemoveGitBranchesEntryVariables, type RemoveWorkspaceMemberError, type RemoveWorkspaceMemberPathParams, type RemoveWorkspaceMemberVariables, type RenameDatabaseError, type RenameDatabasePathParams, type RenameDatabaseRequestBody, type RenameDatabaseVariables, Repository, type ResendWorkspaceMemberInviteError, type ResendWorkspaceMemberInvitePathParams, type ResendWorkspaceMemberInviteVariables, type ResolveBranchError, type ResolveBranchPathParams, type ResolveBranchQueryParams, type ResolveBranchResponse, type ResolveBranchVariables, responses as Responses, RestRepository, type RollbackMigrationError, type RollbackMigrationPathParams, type RollbackMigrationRequestBody, type RollbackMigrationVariables, type SQLBatchQuery, SQLPlugin, type SQLPluginResult, type SQLQuery, type SQLQueryParams, type SQLQueryResult, type SchemaDefinition, type SchemaInference, SchemaPlugin, type SchemaPluginResult, schemas as Schemas, type SearchBranchError, type SearchBranchPathParams, type SearchBranchRequestBody, type SearchBranchVariables, type SearchOptions, SearchPlugin, type SearchPluginResult, type SearchTableError, type SearchTablePathParams, type SearchTableRequestBody, type SearchTableVariables, type SearchXataRecord, type SelectableColumn, type SelectableColumnWithObjectNotation, type SelectedPick, type SerializedString, Serializer, type SerializerResult, type SetTableSchemaError, type SetTableSchemaPathParams, type SetTableSchemaRequestBody, type SetTableSchemaVariables, type SqlBatchQueryError, type SqlBatchQueryPathParams, type SqlBatchQueryRequestBody, type SqlBatchQueryVariables, type SqlQueryError, type SqlQueryPathParams, type SqlQueryRequestBody, type SqlQueryVariables, type StartMigrationError, type StartMigrationPathParams, type StartMigrationRequestBody, type StartMigrationVariables, type SummarizeTableError, type SummarizeTablePathParams, type SummarizeTableRequestBody, type SummarizeTableVariables, type TotalCount, type TransactionOperation, TransactionPlugin, type TransactionPluginResult, type TransactionResults, type UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, type UpdateClusterError, type UpdateClusterPathParams, type UpdateClusterVariables, type UpdateColumnError, type UpdateColumnPathParams, type UpdateColumnRequestBody, type UpdateColumnVariables, type UpdateDatabaseGithubSettingsError, type UpdateDatabaseGithubSettingsPathParams, type UpdateDatabaseGithubSettingsVariables, type UpdateDatabaseMetadataError, type UpdateDatabaseMetadataPathParams, type UpdateDatabaseMetadataRequestBody, type UpdateDatabaseMetadataVariables, type UpdateDatabaseSettingsError, type UpdateDatabaseSettingsPathParams, type UpdateDatabaseSettingsRequestBody, type UpdateDatabaseSettingsVariables, type UpdateMigrationRequestError, type UpdateMigrationRequestPathParams, type UpdateMigrationRequestRequestBody, type UpdateMigrationRequestVariables, type UpdateOAuthAccessTokenError, type UpdateOAuthAccessTokenPathParams, type UpdateOAuthAccessTokenRequestBody, type UpdateOAuthAccessTokenVariables, type UpdateRecordWithIDError, type UpdateRecordWithIDPathParams, type UpdateRecordWithIDQueryParams, type UpdateRecordWithIDVariables, type UpdateTableError, type UpdateTablePathParams, type UpdateTableRequestBody, type UpdateTableVariables, type UpdateTransactionOperation, type UpdateUserError, type UpdateUserVariables, type UpdateWorkspaceError, type UpdateWorkspaceMemberInviteError, type UpdateWorkspaceMemberInvitePathParams, type UpdateWorkspaceMemberInviteRequestBody, type UpdateWorkspaceMemberInviteVariables, type UpdateWorkspaceMemberRoleError, type UpdateWorkspaceMemberRolePathParams, type UpdateWorkspaceMemberRoleRequestBody, type UpdateWorkspaceMemberRoleVariables, type UpdateWorkspacePathParams, type UpdateWorkspaceSettingsError, type UpdateWorkspaceSettingsPathParams, type UpdateWorkspaceSettingsVariables, type UpdateWorkspaceVariables, type UploadDestination, type UpsertRecordWithIDError, type UpsertRecordWithIDPathParams, type UpsertRecordWithIDQueryParams, type UpsertRecordWithIDVariables, type ValueAtColumn, type VectorAskOptions, type VectorSearchTableError, type VectorSearchTablePathParams, type VectorSearchTableRequestBody, type VectorSearchTableVariables, XataApiClient, type XataApiClientOptions, XataApiPlugin, type XataArrayFile, XataError, XataFile, XataPlugin, type XataPluginOptions, type XataRecord, acceptWorkspaceMemberInvite, adaptAllTables, adaptTable, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, applyMigration, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, completeMigration, contains, copyBranch, createBranch, createBranchAsync, createCluster, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteCluster, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, dropClusterExtension, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, fileUpload, ge, getAuthorizationCode, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationJobStatus, getBranchMigrationPlan, getBranchMoveStatus, getBranchSchemaHistory, getBranchStats, getCluster, getClusterMetrics, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseSettings, getDeployPreviewBranch, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationHistory, getMigrationJobStatus, getMigrationJobs, getMigrationRequest, getMigrationRequestIsMerged, getRecord, getSchema, getSchemas, getTableColumns, getTableSchema, getTaskStatus, getTasks, getUser, getUserAPIKeys, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, getWorkspaceSettings, getWorkspacesList, grantAuthorizationCode, greaterEquals, greaterThan, greaterThanEquals, gt, gte, iContains, iPattern, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, installClusterExtension, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isValidExpandedColumn, isValidSelectableColumns, le, lessEquals, lessThan, lessThanEquals, listClusterBranches, listClusterExtensions, listClusters, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, moveBranch, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, rollbackMigration, searchBranch, searchTable, serialize, setTableSchema, sqlBatchQuery, sqlQuery, startMigration, startsWith, summarizeTable, transformImage, updateBranchMetadata, updateBranchSchema, updateCluster, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateDatabaseSettings, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, updateWorkspaceSettings, upsertRecordWithID, vectorSearchTable };
|