@xata.io/client 0.0.0-alpha.vf229a69778d4166c9021b4cec87cfce2b38e6bbf → 0.0.0-alpha.vf250ad1109fa0bf434c4b58315deafdacff662ee
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 +3 -3
- package/CHANGELOG.md +18 -2
- package/dist/index.cjs +754 -1834
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1306 -962
- package/dist/index.mjs +738 -1835
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -57,11 +57,180 @@ type Response = {
|
|
57
57
|
};
|
58
58
|
type FetchImpl = (url: string, init?: RequestInit) => Promise<Response>;
|
59
59
|
|
60
|
+
type StringKeys<O> = Extract<keyof O, string>;
|
61
|
+
type Values<O> = O[StringKeys<O>];
|
62
|
+
type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never;
|
63
|
+
type If<Condition, Then, Else> = Condition extends true ? Then : Else;
|
64
|
+
type IsObject<T> = T extends Record<string, any> ? true : false;
|
65
|
+
type IsArray<T> = T extends Array<any> ? true : false;
|
66
|
+
type RequiredBy<T, K extends keyof T> = T & {
|
67
|
+
[P in K]-?: NonNullable<T[P]>;
|
68
|
+
};
|
69
|
+
type GetArrayInnerType<T extends readonly any[]> = T[number];
|
70
|
+
type SingleOrArray<T> = T | T[];
|
71
|
+
type Dictionary<T> = Record<string, T>;
|
72
|
+
type OmitBy<T, K extends keyof T> = T extends any ? Omit<T, K> : never;
|
73
|
+
type Without<T, U> = {
|
74
|
+
[P in Exclude<keyof T, keyof U>]?: never;
|
75
|
+
};
|
76
|
+
type ExclusiveOr<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
|
77
|
+
type Explode<T> = keyof T extends infer K ? K extends unknown ? {
|
78
|
+
[I in keyof T]: I extends K ? T[I] : never;
|
79
|
+
} : never : never;
|
80
|
+
type AtMostOne<T> = Explode<Partial<T>>;
|
81
|
+
type AtLeastOne<T, U = {
|
82
|
+
[K in keyof T]: Pick<T, K>;
|
83
|
+
}> = Partial<T> & U[keyof U];
|
84
|
+
type ExactlyOne<T> = AtMostOne<T> & AtLeastOne<T>;
|
85
|
+
type Fn = (...args: any[]) => any;
|
86
|
+
type NarrowRaw<A> = (A extends [] ? [] : never) | (A extends Narrowable ? A : never) | {
|
87
|
+
[K in keyof A]: A[K] extends Fn ? A[K] : NarrowRaw<A[K]>;
|
88
|
+
};
|
89
|
+
type Narrowable = string | number | bigint | boolean;
|
90
|
+
type Try<A1, A2, Catch = never> = A1 extends A2 ? A1 : Catch;
|
91
|
+
type Narrow<A> = Try<A, [], NarrowRaw<A>>;
|
92
|
+
type RequiredKeys<T> = {
|
93
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? never : K;
|
94
|
+
}[keyof T];
|
95
|
+
|
60
96
|
/**
|
61
97
|
* Generated by @openapi-codegen
|
62
98
|
*
|
63
99
|
* @version 1.0
|
64
100
|
*/
|
101
|
+
type TaskStatus = 'scheduled' | 'pending' | 'active' | 'retry' | 'archived' | 'completed';
|
102
|
+
type TaskStatusResponse = {
|
103
|
+
/**
|
104
|
+
* The id of the task
|
105
|
+
*/
|
106
|
+
taskID: string;
|
107
|
+
/**
|
108
|
+
* The type of the task
|
109
|
+
*/
|
110
|
+
type: string;
|
111
|
+
/**
|
112
|
+
* The status of the task
|
113
|
+
*/
|
114
|
+
status: TaskStatus;
|
115
|
+
/**
|
116
|
+
* Any error message associated with the task
|
117
|
+
*/
|
118
|
+
error?: string;
|
119
|
+
};
|
120
|
+
/**
|
121
|
+
* @maxLength 255
|
122
|
+
* @minLength 1
|
123
|
+
* @pattern [a-zA-Z0-9_\-~]+
|
124
|
+
*/
|
125
|
+
type TaskID = string;
|
126
|
+
/**
|
127
|
+
* @x-internal true
|
128
|
+
* @pattern [a-zA-Z0-9_-~:]+
|
129
|
+
*/
|
130
|
+
type ClusterID$1 = string;
|
131
|
+
/**
|
132
|
+
* Page size.
|
133
|
+
*
|
134
|
+
* @x-internal true
|
135
|
+
* @default 25
|
136
|
+
* @minimum 0
|
137
|
+
*/
|
138
|
+
type PageSize$1 = number;
|
139
|
+
/**
|
140
|
+
* Page token
|
141
|
+
*
|
142
|
+
* @x-internal true
|
143
|
+
* @maxLength 255
|
144
|
+
* @minLength 24
|
145
|
+
*/
|
146
|
+
type PageToken$1 = string;
|
147
|
+
/**
|
148
|
+
* @format date-time
|
149
|
+
* @x-go-type string
|
150
|
+
*/
|
151
|
+
type DateTime$1 = string;
|
152
|
+
/**
|
153
|
+
* @x-internal true
|
154
|
+
*/
|
155
|
+
type BranchDetails = {
|
156
|
+
name: string;
|
157
|
+
id: string;
|
158
|
+
/**
|
159
|
+
* The cluster where this branch resides.
|
160
|
+
*
|
161
|
+
* @minLength 1
|
162
|
+
*/
|
163
|
+
clusterID: string;
|
164
|
+
state: string;
|
165
|
+
createdAt: DateTime$1;
|
166
|
+
databaseName: string;
|
167
|
+
databaseID: string;
|
168
|
+
};
|
169
|
+
/**
|
170
|
+
* @x-internal true
|
171
|
+
*/
|
172
|
+
type PageResponse$1 = {
|
173
|
+
size: number;
|
174
|
+
hasMore: boolean;
|
175
|
+
token?: string;
|
176
|
+
};
|
177
|
+
/**
|
178
|
+
* @x-internal true
|
179
|
+
*/
|
180
|
+
type ListClusterBranchesResponse = {
|
181
|
+
branches: BranchDetails[];
|
182
|
+
page?: PageResponse$1;
|
183
|
+
};
|
184
|
+
/**
|
185
|
+
* @x-internal true
|
186
|
+
*/
|
187
|
+
type ExtensionDetails = {
|
188
|
+
name: string;
|
189
|
+
description: string;
|
190
|
+
builtIn: boolean;
|
191
|
+
status: 'installed' | 'not_installed';
|
192
|
+
version: string;
|
193
|
+
};
|
194
|
+
/**
|
195
|
+
* @x-internal true
|
196
|
+
*/
|
197
|
+
type ListClusterExtensionsResponse = {
|
198
|
+
extensions: ExtensionDetails[];
|
199
|
+
};
|
200
|
+
/**
|
201
|
+
* @x-internal true
|
202
|
+
*/
|
203
|
+
type ClusterExtensionInstallationResponse = {
|
204
|
+
extension: string;
|
205
|
+
status: 'success' | 'failure';
|
206
|
+
reason?: string;
|
207
|
+
};
|
208
|
+
/**
|
209
|
+
* @x-internal true
|
210
|
+
*/
|
211
|
+
type MetricMessage = {
|
212
|
+
code?: string;
|
213
|
+
value?: string;
|
214
|
+
};
|
215
|
+
/**
|
216
|
+
* @x-internal true
|
217
|
+
*/
|
218
|
+
type MetricData = {
|
219
|
+
id?: string;
|
220
|
+
label?: string;
|
221
|
+
messages?: MetricMessage[] | null;
|
222
|
+
status: 'complete' | 'error' | 'partial' | 'forbidden';
|
223
|
+
timestamps: string[];
|
224
|
+
values: number[];
|
225
|
+
};
|
226
|
+
/**
|
227
|
+
* @x-internal true
|
228
|
+
*/
|
229
|
+
type MetricsResponse = {
|
230
|
+
metrics: MetricData[];
|
231
|
+
messages: MetricMessage[];
|
232
|
+
page?: PageResponse$1;
|
233
|
+
};
|
65
234
|
/**
|
66
235
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
67
236
|
*
|
@@ -76,6 +245,24 @@ type ApplyMigrationResponse = {
|
|
76
245
|
*/
|
77
246
|
jobID: string;
|
78
247
|
};
|
248
|
+
type StartMigrationResponse = {
|
249
|
+
/**
|
250
|
+
* The id of the migration job
|
251
|
+
*/
|
252
|
+
jobID: string;
|
253
|
+
};
|
254
|
+
type CompleteMigrationResponse = {
|
255
|
+
/**
|
256
|
+
* The id of the migration job
|
257
|
+
*/
|
258
|
+
jobID: string;
|
259
|
+
};
|
260
|
+
type RollbackMigrationResponse = {
|
261
|
+
/**
|
262
|
+
* The id of the migration job
|
263
|
+
*/
|
264
|
+
jobID: string;
|
265
|
+
};
|
79
266
|
/**
|
80
267
|
* @maxLength 255
|
81
268
|
* @minLength 1
|
@@ -84,6 +271,95 @@ type ApplyMigrationResponse = {
|
|
84
271
|
type TableName = string;
|
85
272
|
type MigrationJobType = 'apply' | 'start' | 'complete' | 'rollback';
|
86
273
|
type MigrationJobStatus = 'pending' | 'in_progress' | 'completed' | 'failed';
|
274
|
+
/**
|
275
|
+
* The effect of a migration operation in terms of CRUD operations on the underlying schema
|
276
|
+
*/
|
277
|
+
type MigrationOperationDescription = {
|
278
|
+
/**
|
279
|
+
* A new database object created by the operation
|
280
|
+
*/
|
281
|
+
create?: {
|
282
|
+
/**
|
283
|
+
* The type of object created
|
284
|
+
*/
|
285
|
+
type: 'table' | 'column' | 'index';
|
286
|
+
/**
|
287
|
+
* The name of the object created
|
288
|
+
*/
|
289
|
+
name: string;
|
290
|
+
/**
|
291
|
+
* The name of the table on which the object is created, if applicable
|
292
|
+
*/
|
293
|
+
table?: string;
|
294
|
+
/**
|
295
|
+
* The mapping between the virtual and physical name of the new object, if applicable
|
296
|
+
*/
|
297
|
+
mapping?: Record<string, any>;
|
298
|
+
};
|
299
|
+
/**
|
300
|
+
* A database object updated by the operation
|
301
|
+
*/
|
302
|
+
update?: {
|
303
|
+
/**
|
304
|
+
* The type of updated object
|
305
|
+
*/
|
306
|
+
type: 'table' | 'column';
|
307
|
+
/**
|
308
|
+
* The name of the updated object
|
309
|
+
*/
|
310
|
+
name: string;
|
311
|
+
/**
|
312
|
+
* The name of the table on which the object is updated, if applicable
|
313
|
+
*/
|
314
|
+
table?: string;
|
315
|
+
/**
|
316
|
+
* The mapping between the virtual and physical name of the updated object, if applicable
|
317
|
+
*/
|
318
|
+
mapping?: Record<string, any>;
|
319
|
+
};
|
320
|
+
/**
|
321
|
+
* A database object renamed by the operation
|
322
|
+
*/
|
323
|
+
rename?: {
|
324
|
+
/**
|
325
|
+
* The type of the renamed object
|
326
|
+
*/
|
327
|
+
type: 'table' | 'column' | 'constraint';
|
328
|
+
/**
|
329
|
+
* The name of the table on which the object is renamed, if applicable
|
330
|
+
*/
|
331
|
+
table?: string;
|
332
|
+
/**
|
333
|
+
* The old name of the renamed object
|
334
|
+
*/
|
335
|
+
from: string;
|
336
|
+
/**
|
337
|
+
* The new name of the renamed object
|
338
|
+
*/
|
339
|
+
to: string;
|
340
|
+
};
|
341
|
+
/**
|
342
|
+
* A database object deleted by the operation
|
343
|
+
*/
|
344
|
+
['delete']?: {
|
345
|
+
/**
|
346
|
+
* The type of the deleted object
|
347
|
+
*/
|
348
|
+
type: 'table' | 'column' | 'constraint' | 'index';
|
349
|
+
/**
|
350
|
+
* The name of the deleted object
|
351
|
+
*/
|
352
|
+
name: string;
|
353
|
+
/**
|
354
|
+
* The name of the table on which the object is deleted, if applicable
|
355
|
+
*/
|
356
|
+
table: string;
|
357
|
+
};
|
358
|
+
};
|
359
|
+
/**
|
360
|
+
* @minItems 1
|
361
|
+
*/
|
362
|
+
type MigrationDescription = MigrationOperationDescription[];
|
87
363
|
type MigrationJobStatusResponse = {
|
88
364
|
/**
|
89
365
|
* The id of the migration job
|
@@ -97,11 +373,69 @@ type MigrationJobStatusResponse = {
|
|
97
373
|
* The status of the migration job
|
98
374
|
*/
|
99
375
|
status: MigrationJobStatus;
|
376
|
+
/**
|
377
|
+
* The effect of any active migration on the schema
|
378
|
+
*/
|
379
|
+
description?: MigrationDescription;
|
380
|
+
/**
|
381
|
+
* The timestamp at which the migration job completed or failed
|
382
|
+
*
|
383
|
+
* @format date-time
|
384
|
+
*/
|
385
|
+
completedAt?: string;
|
386
|
+
/**
|
387
|
+
* The error message associated with the migration job
|
388
|
+
*/
|
389
|
+
error?: string;
|
390
|
+
};
|
391
|
+
type MigrationJobItem = {
|
392
|
+
/**
|
393
|
+
* The id of the migration job
|
394
|
+
*/
|
395
|
+
jobID: string;
|
396
|
+
/**
|
397
|
+
* The type of the migration job
|
398
|
+
*/
|
399
|
+
type: MigrationJobType;
|
400
|
+
/**
|
401
|
+
* The status of the migration job
|
402
|
+
*/
|
403
|
+
status: MigrationJobStatus;
|
404
|
+
/**
|
405
|
+
* The pgroll migration that was applied
|
406
|
+
*/
|
407
|
+
migration?: string;
|
408
|
+
/**
|
409
|
+
* The effect of any active migration on the schema
|
410
|
+
*/
|
411
|
+
description?: MigrationDescription;
|
412
|
+
/**
|
413
|
+
* The timestamp at which the migration job was enqueued
|
414
|
+
*
|
415
|
+
* @format date-time
|
416
|
+
*/
|
417
|
+
enqueuedAt: string;
|
418
|
+
/**
|
419
|
+
* The timestamp at which the migration job completed or failed
|
420
|
+
*
|
421
|
+
* @format date-time
|
422
|
+
*/
|
423
|
+
completedAt?: string;
|
100
424
|
/**
|
101
425
|
* The error message associated with the migration job
|
102
426
|
*/
|
103
427
|
error?: string;
|
104
428
|
};
|
429
|
+
type GetMigrationJobsResponse = {
|
430
|
+
/**
|
431
|
+
* The list of migration jobs
|
432
|
+
*/
|
433
|
+
jobs: MigrationJobItem[];
|
434
|
+
/**
|
435
|
+
* The cursor (timestamp) for the next page of results
|
436
|
+
*/
|
437
|
+
cursor?: string;
|
438
|
+
};
|
105
439
|
/**
|
106
440
|
* @maxLength 255
|
107
441
|
* @minLength 1
|
@@ -114,6 +448,10 @@ type MigrationHistoryItem = {
|
|
114
448
|
* The name of the migration
|
115
449
|
*/
|
116
450
|
name: string;
|
451
|
+
/**
|
452
|
+
* The schema in which the migration was applied
|
453
|
+
*/
|
454
|
+
schema: string;
|
117
455
|
/**
|
118
456
|
* The pgroll migration that was applied
|
119
457
|
*/
|
@@ -142,6 +480,10 @@ type MigrationHistoryResponse = {
|
|
142
480
|
* The migrations that have been applied to the branch
|
143
481
|
*/
|
144
482
|
migrations: MigrationHistoryItem[];
|
483
|
+
/**
|
484
|
+
* The cursor (timestamp) for the next page of results
|
485
|
+
*/
|
486
|
+
cursor?: string;
|
145
487
|
};
|
146
488
|
/**
|
147
489
|
* @maxLength 255
|
@@ -150,10 +492,9 @@ type MigrationHistoryResponse = {
|
|
150
492
|
*/
|
151
493
|
type DBName$1 = string;
|
152
494
|
/**
|
153
|
-
*
|
154
|
-
* @x-go-type string
|
495
|
+
* Represent the state of the branch, used for branch lifecycle management
|
155
496
|
*/
|
156
|
-
type
|
497
|
+
type BranchState = 'active' | 'move_scheduled' | 'moving';
|
157
498
|
type Branch = {
|
158
499
|
name: string;
|
159
500
|
/**
|
@@ -162,7 +503,10 @@ type Branch = {
|
|
162
503
|
* @minLength 1
|
163
504
|
*/
|
164
505
|
clusterID?: string;
|
506
|
+
state: BranchState;
|
165
507
|
createdAt: DateTime$1;
|
508
|
+
searchDisabled?: boolean;
|
509
|
+
inactiveSharedCluster?: boolean;
|
166
510
|
};
|
167
511
|
type ListBranchesResponse = {
|
168
512
|
databaseName: string;
|
@@ -193,6 +537,12 @@ type BranchMetadata$1 = {
|
|
193
537
|
stage?: string;
|
194
538
|
labels?: string[];
|
195
539
|
};
|
540
|
+
type CreateBranchResponse$1 = {
|
541
|
+
/**
|
542
|
+
* The id of the branch creation task
|
543
|
+
*/
|
544
|
+
taskID: string;
|
545
|
+
};
|
196
546
|
type StartedFromMetadata = {
|
197
547
|
branchName: BranchName$1;
|
198
548
|
dbBranchID: string;
|
@@ -252,6 +602,7 @@ type DBBranch = {
|
|
252
602
|
*/
|
253
603
|
clusterID?: string;
|
254
604
|
version: number;
|
605
|
+
state: BranchState;
|
255
606
|
lastMigrationID: string;
|
256
607
|
metadata?: BranchMetadata$1;
|
257
608
|
startedFrom?: StartedFromMetadata;
|
@@ -1488,21 +1839,72 @@ type SQLRecord = {
|
|
1488
1839
|
[key: string]: any;
|
1489
1840
|
};
|
1490
1841
|
/**
|
1491
|
-
*
|
1842
|
+
* @default strong
|
1492
1843
|
*/
|
1493
|
-
type
|
1494
|
-
[key: string]: any;
|
1495
|
-
};
|
1496
|
-
|
1844
|
+
type SQLConsistency = 'strong' | 'eventual';
|
1497
1845
|
/**
|
1498
|
-
*
|
1499
|
-
*
|
1500
|
-
* @version 1.0
|
1846
|
+
* @default json
|
1501
1847
|
*/
|
1502
|
-
|
1503
|
-
type
|
1504
|
-
|
1505
|
-
|
1848
|
+
type SQLResponseType$1 = 'json' | 'array';
|
1849
|
+
type PreparedStatement = {
|
1850
|
+
/**
|
1851
|
+
* The SQL statement.
|
1852
|
+
*
|
1853
|
+
* @minLength 1
|
1854
|
+
*/
|
1855
|
+
statement: string;
|
1856
|
+
/**
|
1857
|
+
* The query parameter list.
|
1858
|
+
*
|
1859
|
+
* @x-go-type []any
|
1860
|
+
*/
|
1861
|
+
params?: any[] | null;
|
1862
|
+
};
|
1863
|
+
type SQLResponseBase = {
|
1864
|
+
/**
|
1865
|
+
* Name of the column and its PostgreSQL type
|
1866
|
+
*
|
1867
|
+
* @x-go-type []sqlproxy.ColumnMeta
|
1868
|
+
*/
|
1869
|
+
columns: {
|
1870
|
+
name: string;
|
1871
|
+
type: string;
|
1872
|
+
}[];
|
1873
|
+
/**
|
1874
|
+
* Number of selected columns
|
1875
|
+
*/
|
1876
|
+
total: number;
|
1877
|
+
warning?: string;
|
1878
|
+
};
|
1879
|
+
type SQLResponseJSON = SQLResponseBase & {
|
1880
|
+
/**
|
1881
|
+
* @x-go-type []xata.Record
|
1882
|
+
*/
|
1883
|
+
records: SQLRecord[];
|
1884
|
+
};
|
1885
|
+
type SQLResponseArray = SQLResponseBase & {
|
1886
|
+
/**
|
1887
|
+
* @x-go-type []xata.Row
|
1888
|
+
*/
|
1889
|
+
rows: any[][];
|
1890
|
+
};
|
1891
|
+
type SQLResponse$1 = SQLResponseJSON | SQLResponseArray;
|
1892
|
+
/**
|
1893
|
+
* Xata Table Record Metadata
|
1894
|
+
*/
|
1895
|
+
type XataRecord$1 = RecordMeta & {
|
1896
|
+
[key: string]: any;
|
1897
|
+
};
|
1898
|
+
|
1899
|
+
/**
|
1900
|
+
* Generated by @openapi-codegen
|
1901
|
+
*
|
1902
|
+
* @version 1.0
|
1903
|
+
*/
|
1904
|
+
|
1905
|
+
type BadRequestError$1 = {
|
1906
|
+
id?: string;
|
1907
|
+
message: string;
|
1506
1908
|
};
|
1507
1909
|
/**
|
1508
1910
|
* @example {"message":"invalid API key"}
|
@@ -1589,21 +1991,9 @@ type AggResponse = {
|
|
1589
1991
|
[key: string]: AggResponse$1;
|
1590
1992
|
};
|
1591
1993
|
};
|
1592
|
-
type SQLResponse =
|
1593
|
-
|
1594
|
-
|
1595
|
-
/**
|
1596
|
-
* Name of the column and its PostgreSQL type
|
1597
|
-
*/
|
1598
|
-
columns?: {
|
1599
|
-
name?: string;
|
1600
|
-
type?: string;
|
1601
|
-
}[];
|
1602
|
-
/**
|
1603
|
-
* Number of selected columns
|
1604
|
-
*/
|
1605
|
-
total?: number;
|
1606
|
-
warning?: string;
|
1994
|
+
type SQLResponse = SQLResponse$1;
|
1995
|
+
type SQLBatchResponse = {
|
1996
|
+
results: SQLResponse$1[];
|
1607
1997
|
};
|
1608
1998
|
|
1609
1999
|
/**
|
@@ -1700,7 +2090,6 @@ type Workspace = WorkspaceMeta & {
|
|
1700
2090
|
plan: WorkspacePlan;
|
1701
2091
|
};
|
1702
2092
|
type WorkspaceSettings = {
|
1703
|
-
postgresEnabled: boolean;
|
1704
2093
|
dedicatedClusters: boolean;
|
1705
2094
|
};
|
1706
2095
|
type WorkspaceMember = {
|
@@ -1769,6 +2158,8 @@ type ClusterShortMetadata = {
|
|
1769
2158
|
* @format int64
|
1770
2159
|
*/
|
1771
2160
|
branches: number;
|
2161
|
+
createdAt: DateTime;
|
2162
|
+
terminatedAt?: DateTime;
|
1772
2163
|
};
|
1773
2164
|
/**
|
1774
2165
|
* @x-internal true
|
@@ -1856,16 +2247,39 @@ type MaintenanceConfig = {
|
|
1856
2247
|
maintenanceWindow?: WeeklyTimeWindow;
|
1857
2248
|
backupWindow?: DailyTimeWindow;
|
1858
2249
|
};
|
2250
|
+
/**
|
2251
|
+
* @x-internal true
|
2252
|
+
*/
|
2253
|
+
type StorageConfig = {
|
2254
|
+
/**
|
2255
|
+
* @default gp3
|
2256
|
+
*/
|
2257
|
+
storageType: 'gp3' | 'io1' | 'io2';
|
2258
|
+
/**
|
2259
|
+
* @format int64
|
2260
|
+
* @default 50
|
2261
|
+
* @maximum 65536
|
2262
|
+
* @minimum 20
|
2263
|
+
*/
|
2264
|
+
allocatedStorageGB?: number;
|
2265
|
+
/**
|
2266
|
+
* @format int64
|
2267
|
+
* @default 3000
|
2268
|
+
* @maximum 256000
|
2269
|
+
* @minimum 1000
|
2270
|
+
*/
|
2271
|
+
provisionedIOPS?: number;
|
2272
|
+
};
|
1859
2273
|
/**
|
1860
2274
|
* @x-internal true
|
1861
2275
|
*/
|
1862
2276
|
type ClusterConfiguration = {
|
1863
2277
|
engineVersion: string;
|
1864
|
-
instanceType: string;
|
1865
2278
|
/**
|
1866
|
-
* @
|
2279
|
+
* @default aurora
|
1867
2280
|
*/
|
1868
|
-
|
2281
|
+
engineType?: 'aurora' | 'rds';
|
2282
|
+
instanceType: string;
|
1869
2283
|
/**
|
1870
2284
|
* @format int64
|
1871
2285
|
* @default 1
|
@@ -1879,6 +2293,7 @@ type ClusterConfiguration = {
|
|
1879
2293
|
deletionProtection?: boolean;
|
1880
2294
|
autoscaling?: AutoscalingConfig;
|
1881
2295
|
maintenance?: MaintenanceConfig;
|
2296
|
+
storage?: StorageConfig;
|
1882
2297
|
};
|
1883
2298
|
/**
|
1884
2299
|
* @x-internal true
|
@@ -1936,13 +2351,33 @@ type MaintenanceConfigResponse = {
|
|
1936
2351
|
/**
|
1937
2352
|
* @x-internal true
|
1938
2353
|
*/
|
1939
|
-
type
|
1940
|
-
|
1941
|
-
|
2354
|
+
type StorageConfigResponse = {
|
2355
|
+
/**
|
2356
|
+
* @default gp3
|
2357
|
+
*/
|
2358
|
+
storageType: 'gp3' | 'io1' | 'io2';
|
1942
2359
|
/**
|
1943
2360
|
* @format int64
|
2361
|
+
* @default 50
|
2362
|
+
* @maximum 65536
|
2363
|
+
* @minimum 20
|
1944
2364
|
*/
|
1945
|
-
|
2365
|
+
allocatedStorageGB?: number;
|
2366
|
+
/**
|
2367
|
+
* @format int64
|
2368
|
+
* @default 3000
|
2369
|
+
* @maximum 256000
|
2370
|
+
* @minimum 1000
|
2371
|
+
*/
|
2372
|
+
provisionedIOPS?: number;
|
2373
|
+
};
|
2374
|
+
/**
|
2375
|
+
* @x-internal true
|
2376
|
+
*/
|
2377
|
+
type ClusterConfigurationResponse = {
|
2378
|
+
engineVersion: string;
|
2379
|
+
engineType: 'aurora' | 'rds';
|
2380
|
+
instanceType: string;
|
1946
2381
|
/**
|
1947
2382
|
* @format int64
|
1948
2383
|
*/
|
@@ -1953,6 +2388,7 @@ type ClusterConfigurationResponse = {
|
|
1953
2388
|
deletionProtection: boolean;
|
1954
2389
|
autoscaling?: AutoscalingConfigResponse;
|
1955
2390
|
maintenance: MaintenanceConfigResponse;
|
2391
|
+
storage?: StorageConfigResponse;
|
1956
2392
|
};
|
1957
2393
|
/**
|
1958
2394
|
* @x-internal true
|
@@ -1968,6 +2404,19 @@ type ClusterMetadata = {
|
|
1968
2404
|
branches: number;
|
1969
2405
|
configuration: ClusterConfigurationResponse;
|
1970
2406
|
};
|
2407
|
+
/**
|
2408
|
+
* @x-internal true
|
2409
|
+
*/
|
2410
|
+
type ClusterDeleteMetadata = {
|
2411
|
+
id: ClusterID;
|
2412
|
+
state: string;
|
2413
|
+
region: string;
|
2414
|
+
name: string;
|
2415
|
+
/**
|
2416
|
+
* @format int64
|
2417
|
+
*/
|
2418
|
+
branches: number;
|
2419
|
+
};
|
1971
2420
|
/**
|
1972
2421
|
* @x-internal true
|
1973
2422
|
*/
|
@@ -2445,6 +2894,7 @@ type GetWorkspacesListError = ErrorWrapper$1<{
|
|
2445
2894
|
type GetWorkspacesListResponse = {
|
2446
2895
|
workspaces: {
|
2447
2896
|
id: WorkspaceID;
|
2897
|
+
unique_id: string;
|
2448
2898
|
name: string;
|
2449
2899
|
slug: string;
|
2450
2900
|
role: Role;
|
@@ -2597,11 +3047,8 @@ type UpdateWorkspaceSettingsError = ErrorWrapper$1<{
|
|
2597
3047
|
status: 404;
|
2598
3048
|
payload: SimpleError;
|
2599
3049
|
}>;
|
2600
|
-
type UpdateWorkspaceSettingsRequestBody = {
|
2601
|
-
postgresEnabled: boolean;
|
2602
|
-
};
|
2603
3050
|
type UpdateWorkspaceSettingsVariables = {
|
2604
|
-
body
|
3051
|
+
body?: Record<string, any>;
|
2605
3052
|
pathParams: UpdateWorkspaceSettingsPathParams;
|
2606
3053
|
} & ControlPlaneFetcherExtraProps;
|
2607
3054
|
/**
|
@@ -2966,6 +3413,30 @@ type UpdateClusterVariables = {
|
|
2966
3413
|
* Update cluster for given cluster ID
|
2967
3414
|
*/
|
2968
3415
|
declare const updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterUpdateMetadata>;
|
3416
|
+
type DeleteClusterPathParams = {
|
3417
|
+
/**
|
3418
|
+
* Workspace ID
|
3419
|
+
*/
|
3420
|
+
workspaceId: WorkspaceID;
|
3421
|
+
/**
|
3422
|
+
* Cluster ID
|
3423
|
+
*/
|
3424
|
+
clusterId: ClusterID;
|
3425
|
+
};
|
3426
|
+
type DeleteClusterError = ErrorWrapper$1<{
|
3427
|
+
status: 400;
|
3428
|
+
payload: BadRequestError;
|
3429
|
+
} | {
|
3430
|
+
status: 401;
|
3431
|
+
payload: AuthError;
|
3432
|
+
}>;
|
3433
|
+
type DeleteClusterVariables = {
|
3434
|
+
pathParams: DeleteClusterPathParams;
|
3435
|
+
} & ControlPlaneFetcherExtraProps;
|
3436
|
+
/**
|
3437
|
+
* Delete cluster with given cluster ID
|
3438
|
+
*/
|
3439
|
+
declare const deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal) => Promise<ClusterDeleteMetadata>;
|
2969
3440
|
type GetDatabaseListPathParams = {
|
2970
3441
|
/**
|
2971
3442
|
* Workspace ID
|
@@ -3026,6 +3497,12 @@ type CreateDatabaseRequestBody = {
|
|
3026
3497
|
* @minLength 1
|
3027
3498
|
*/
|
3028
3499
|
region: string;
|
3500
|
+
/**
|
3501
|
+
* Enable postgres access for this database
|
3502
|
+
*
|
3503
|
+
* @default false
|
3504
|
+
*/
|
3505
|
+
postgresEnabled?: boolean;
|
3029
3506
|
/**
|
3030
3507
|
* The dedicated cluster where branches from this database will be created. Defaults to 'shared-cluster'.
|
3031
3508
|
*
|
@@ -3314,6 +3791,215 @@ type ErrorWrapper<TError> = TError | {
|
|
3314
3791
|
* @version 1.0
|
3315
3792
|
*/
|
3316
3793
|
|
3794
|
+
type GetTasksPathParams = {
|
3795
|
+
workspace: string;
|
3796
|
+
region: string;
|
3797
|
+
};
|
3798
|
+
type GetTasksError = ErrorWrapper<{
|
3799
|
+
status: 400;
|
3800
|
+
payload: BadRequestError$1;
|
3801
|
+
} | {
|
3802
|
+
status: 401;
|
3803
|
+
payload: AuthError$1;
|
3804
|
+
} | {
|
3805
|
+
status: 404;
|
3806
|
+
payload: SimpleError$1;
|
3807
|
+
}>;
|
3808
|
+
type GetTasksResponse = TaskStatusResponse[];
|
3809
|
+
type GetTasksVariables = {
|
3810
|
+
pathParams: GetTasksPathParams;
|
3811
|
+
} & DataPlaneFetcherExtraProps;
|
3812
|
+
declare const getTasks: (variables: GetTasksVariables, signal?: AbortSignal) => Promise<GetTasksResponse>;
|
3813
|
+
type GetTaskStatusPathParams = {
|
3814
|
+
/**
|
3815
|
+
* The id of the branch creation task
|
3816
|
+
*/
|
3817
|
+
taskId: TaskID;
|
3818
|
+
workspace: string;
|
3819
|
+
region: string;
|
3820
|
+
};
|
3821
|
+
type GetTaskStatusError = ErrorWrapper<{
|
3822
|
+
status: 400;
|
3823
|
+
payload: BadRequestError$1;
|
3824
|
+
} | {
|
3825
|
+
status: 401;
|
3826
|
+
payload: AuthError$1;
|
3827
|
+
} | {
|
3828
|
+
status: 404;
|
3829
|
+
payload: SimpleError$1;
|
3830
|
+
}>;
|
3831
|
+
type GetTaskStatusVariables = {
|
3832
|
+
pathParams: GetTaskStatusPathParams;
|
3833
|
+
} & DataPlaneFetcherExtraProps;
|
3834
|
+
declare const getTaskStatus: (variables: GetTaskStatusVariables, signal?: AbortSignal) => Promise<TaskStatusResponse>;
|
3835
|
+
type ListClusterBranchesPathParams = {
|
3836
|
+
/**
|
3837
|
+
* Cluster ID
|
3838
|
+
*/
|
3839
|
+
clusterId: ClusterID$1;
|
3840
|
+
workspace: string;
|
3841
|
+
region: string;
|
3842
|
+
};
|
3843
|
+
type ListClusterBranchesQueryParams = {
|
3844
|
+
/**
|
3845
|
+
* Page size
|
3846
|
+
*/
|
3847
|
+
page?: PageSize$1;
|
3848
|
+
/**
|
3849
|
+
* Page token
|
3850
|
+
*/
|
3851
|
+
token?: PageToken$1;
|
3852
|
+
};
|
3853
|
+
type ListClusterBranchesError = ErrorWrapper<{
|
3854
|
+
status: 400;
|
3855
|
+
payload: BadRequestError$1;
|
3856
|
+
} | {
|
3857
|
+
status: 401;
|
3858
|
+
payload: AuthError$1;
|
3859
|
+
}>;
|
3860
|
+
type ListClusterBranchesVariables = {
|
3861
|
+
pathParams: ListClusterBranchesPathParams;
|
3862
|
+
queryParams?: ListClusterBranchesQueryParams;
|
3863
|
+
} & DataPlaneFetcherExtraProps;
|
3864
|
+
/**
|
3865
|
+
* Retrieve branches for given cluster ID
|
3866
|
+
*/
|
3867
|
+
declare const listClusterBranches: (variables: ListClusterBranchesVariables, signal?: AbortSignal) => Promise<ListClusterBranchesResponse>;
|
3868
|
+
type ListClusterExtensionsPathParams = {
|
3869
|
+
/**
|
3870
|
+
* Cluster ID
|
3871
|
+
*/
|
3872
|
+
clusterId: ClusterID$1;
|
3873
|
+
workspace: string;
|
3874
|
+
region: string;
|
3875
|
+
};
|
3876
|
+
type ListClusterExtensionsQueryParams = {
|
3877
|
+
extensionType: 'available' | 'installed';
|
3878
|
+
};
|
3879
|
+
type ListClusterExtensionsError = ErrorWrapper<{
|
3880
|
+
status: 400;
|
3881
|
+
payload: BadRequestError$1;
|
3882
|
+
} | {
|
3883
|
+
status: 401;
|
3884
|
+
payload: AuthError$1;
|
3885
|
+
}>;
|
3886
|
+
type ListClusterExtensionsVariables = {
|
3887
|
+
pathParams: ListClusterExtensionsPathParams;
|
3888
|
+
queryParams: ListClusterExtensionsQueryParams;
|
3889
|
+
} & DataPlaneFetcherExtraProps;
|
3890
|
+
/**
|
3891
|
+
* Retrieve extensions for given cluster ID
|
3892
|
+
*/
|
3893
|
+
declare const listClusterExtensions: (variables: ListClusterExtensionsVariables, signal?: AbortSignal) => Promise<ListClusterExtensionsResponse>;
|
3894
|
+
type InstallClusterExtensionPathParams = {
|
3895
|
+
/**
|
3896
|
+
* Cluster ID
|
3897
|
+
*/
|
3898
|
+
clusterId: ClusterID$1;
|
3899
|
+
workspace: string;
|
3900
|
+
region: string;
|
3901
|
+
};
|
3902
|
+
type InstallClusterExtensionError = ErrorWrapper<{
|
3903
|
+
status: 400;
|
3904
|
+
payload: BadRequestError$1;
|
3905
|
+
} | {
|
3906
|
+
status: 401;
|
3907
|
+
payload: AuthError$1;
|
3908
|
+
}>;
|
3909
|
+
type InstallClusterExtensionRequestBody = {
|
3910
|
+
/**
|
3911
|
+
* Extension name
|
3912
|
+
*/
|
3913
|
+
extension: string;
|
3914
|
+
/**
|
3915
|
+
* Schema name
|
3916
|
+
*/
|
3917
|
+
schema?: string;
|
3918
|
+
/**
|
3919
|
+
* install with cascade option
|
3920
|
+
*/
|
3921
|
+
cascade?: boolean;
|
3922
|
+
};
|
3923
|
+
type InstallClusterExtensionVariables = {
|
3924
|
+
body: InstallClusterExtensionRequestBody;
|
3925
|
+
pathParams: InstallClusterExtensionPathParams;
|
3926
|
+
} & DataPlaneFetcherExtraProps;
|
3927
|
+
/**
|
3928
|
+
* Install an extension for given cluster ID
|
3929
|
+
*/
|
3930
|
+
declare const installClusterExtension: (variables: InstallClusterExtensionVariables, signal?: AbortSignal) => Promise<ClusterExtensionInstallationResponse>;
|
3931
|
+
type DropClusterExtensionPathParams = {
|
3932
|
+
/**
|
3933
|
+
* Cluster ID
|
3934
|
+
*/
|
3935
|
+
clusterId: ClusterID$1;
|
3936
|
+
workspace: string;
|
3937
|
+
region: string;
|
3938
|
+
};
|
3939
|
+
type DropClusterExtensionError = ErrorWrapper<{
|
3940
|
+
status: 400;
|
3941
|
+
payload: BadRequestError$1;
|
3942
|
+
} | {
|
3943
|
+
status: 401;
|
3944
|
+
payload: AuthError$1;
|
3945
|
+
}>;
|
3946
|
+
type DropClusterExtensionRequestBody = {
|
3947
|
+
/**
|
3948
|
+
* Extension name
|
3949
|
+
*/
|
3950
|
+
extension: string;
|
3951
|
+
/**
|
3952
|
+
* drop with cascade option, true by default
|
3953
|
+
*/
|
3954
|
+
cascade?: boolean;
|
3955
|
+
};
|
3956
|
+
type DropClusterExtensionVariables = {
|
3957
|
+
body: DropClusterExtensionRequestBody;
|
3958
|
+
pathParams: DropClusterExtensionPathParams;
|
3959
|
+
} & DataPlaneFetcherExtraProps;
|
3960
|
+
/**
|
3961
|
+
* Drop an extension for given cluster ID
|
3962
|
+
*/
|
3963
|
+
declare const dropClusterExtension: (variables: DropClusterExtensionVariables, signal?: AbortSignal) => Promise<undefined>;
|
3964
|
+
type GetClusterMetricsPathParams = {
|
3965
|
+
/**
|
3966
|
+
* Cluster ID
|
3967
|
+
*/
|
3968
|
+
clusterId: ClusterID$1;
|
3969
|
+
workspace: string;
|
3970
|
+
region: string;
|
3971
|
+
};
|
3972
|
+
type GetClusterMetricsQueryParams = {
|
3973
|
+
startTime: string;
|
3974
|
+
endTime: string;
|
3975
|
+
period: '5min' | '15min' | '1hour';
|
3976
|
+
/**
|
3977
|
+
* Page size
|
3978
|
+
*/
|
3979
|
+
page?: PageSize$1;
|
3980
|
+
/**
|
3981
|
+
* Page token
|
3982
|
+
*/
|
3983
|
+
token?: PageToken$1;
|
3984
|
+
};
|
3985
|
+
type GetClusterMetricsError = ErrorWrapper<{
|
3986
|
+
status: 400;
|
3987
|
+
payload: BadRequestError$1;
|
3988
|
+
} | {
|
3989
|
+
status: 401;
|
3990
|
+
payload: AuthError$1;
|
3991
|
+
} | {
|
3992
|
+
status: 404;
|
3993
|
+
payload: SimpleError$1;
|
3994
|
+
}>;
|
3995
|
+
type GetClusterMetricsVariables = {
|
3996
|
+
pathParams: GetClusterMetricsPathParams;
|
3997
|
+
queryParams: GetClusterMetricsQueryParams;
|
3998
|
+
} & DataPlaneFetcherExtraProps;
|
3999
|
+
/**
|
4000
|
+
* retrieve a standard set of RDS cluster metrics
|
4001
|
+
*/
|
4002
|
+
declare const getClusterMetrics: (variables: GetClusterMetricsVariables, signal?: AbortSignal) => Promise<MetricsResponse>;
|
3317
4003
|
type ApplyMigrationPathParams = {
|
3318
4004
|
/**
|
3319
4005
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3340,6 +4026,12 @@ type ApplyMigrationRequestBody = {
|
|
3340
4026
|
operations: {
|
3341
4027
|
[key: string]: any;
|
3342
4028
|
}[];
|
4029
|
+
/**
|
4030
|
+
* The schema in which the migration should be applied
|
4031
|
+
*
|
4032
|
+
* @default public
|
4033
|
+
*/
|
4034
|
+
schema?: string;
|
3343
4035
|
adaptTables?: boolean;
|
3344
4036
|
};
|
3345
4037
|
type ApplyMigrationVariables = {
|
@@ -3350,6 +4042,115 @@ type ApplyMigrationVariables = {
|
|
3350
4042
|
* Applies a pgroll migration to the specified database.
|
3351
4043
|
*/
|
3352
4044
|
declare const applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
4045
|
+
type StartMigrationPathParams = {
|
4046
|
+
/**
|
4047
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4048
|
+
*/
|
4049
|
+
dbBranchName: DBBranchName;
|
4050
|
+
workspace: string;
|
4051
|
+
region: string;
|
4052
|
+
};
|
4053
|
+
type StartMigrationError = ErrorWrapper<{
|
4054
|
+
status: 400;
|
4055
|
+
payload: BadRequestError$1;
|
4056
|
+
} | {
|
4057
|
+
status: 401;
|
4058
|
+
payload: AuthError$1;
|
4059
|
+
} | {
|
4060
|
+
status: 404;
|
4061
|
+
payload: SimpleError$1;
|
4062
|
+
}>;
|
4063
|
+
type StartMigrationRequestBody = {
|
4064
|
+
/**
|
4065
|
+
* Migration name
|
4066
|
+
*/
|
4067
|
+
name?: string;
|
4068
|
+
operations: {
|
4069
|
+
[key: string]: any;
|
4070
|
+
}[];
|
4071
|
+
/**
|
4072
|
+
* The schema in which the migration should be started
|
4073
|
+
*
|
4074
|
+
* @default public
|
4075
|
+
*/
|
4076
|
+
schema?: string;
|
4077
|
+
};
|
4078
|
+
type StartMigrationVariables = {
|
4079
|
+
body: StartMigrationRequestBody;
|
4080
|
+
pathParams: StartMigrationPathParams;
|
4081
|
+
} & DataPlaneFetcherExtraProps;
|
4082
|
+
/**
|
4083
|
+
* Starts a pgroll migration on the specified database.
|
4084
|
+
*/
|
4085
|
+
declare const startMigration: (variables: StartMigrationVariables, signal?: AbortSignal) => Promise<StartMigrationResponse>;
|
4086
|
+
type CompleteMigrationPathParams = {
|
4087
|
+
/**
|
4088
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4089
|
+
*/
|
4090
|
+
dbBranchName: DBBranchName;
|
4091
|
+
workspace: string;
|
4092
|
+
region: string;
|
4093
|
+
};
|
4094
|
+
type CompleteMigrationError = ErrorWrapper<{
|
4095
|
+
status: 400;
|
4096
|
+
payload: BadRequestError$1;
|
4097
|
+
} | {
|
4098
|
+
status: 401;
|
4099
|
+
payload: AuthError$1;
|
4100
|
+
} | {
|
4101
|
+
status: 404;
|
4102
|
+
payload: SimpleError$1;
|
4103
|
+
}>;
|
4104
|
+
type CompleteMigrationRequestBody = {
|
4105
|
+
/**
|
4106
|
+
* The schema in which the migration should be completed
|
4107
|
+
*
|
4108
|
+
* @default public
|
4109
|
+
*/
|
4110
|
+
schema?: string;
|
4111
|
+
};
|
4112
|
+
type CompleteMigrationVariables = {
|
4113
|
+
body?: CompleteMigrationRequestBody;
|
4114
|
+
pathParams: CompleteMigrationPathParams;
|
4115
|
+
} & DataPlaneFetcherExtraProps;
|
4116
|
+
/**
|
4117
|
+
* Complete an active migration on the specified database
|
4118
|
+
*/
|
4119
|
+
declare const completeMigration: (variables: CompleteMigrationVariables, signal?: AbortSignal) => Promise<CompleteMigrationResponse>;
|
4120
|
+
type RollbackMigrationPathParams = {
|
4121
|
+
/**
|
4122
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4123
|
+
*/
|
4124
|
+
dbBranchName: DBBranchName;
|
4125
|
+
workspace: string;
|
4126
|
+
region: string;
|
4127
|
+
};
|
4128
|
+
type RollbackMigrationError = ErrorWrapper<{
|
4129
|
+
status: 400;
|
4130
|
+
payload: BadRequestError$1;
|
4131
|
+
} | {
|
4132
|
+
status: 401;
|
4133
|
+
payload: AuthError$1;
|
4134
|
+
} | {
|
4135
|
+
status: 404;
|
4136
|
+
payload: SimpleError$1;
|
4137
|
+
}>;
|
4138
|
+
type RollbackMigrationRequestBody = {
|
4139
|
+
/**
|
4140
|
+
* The schema in which the migration should be rolled back
|
4141
|
+
*
|
4142
|
+
* @default public
|
4143
|
+
*/
|
4144
|
+
schema?: string;
|
4145
|
+
};
|
4146
|
+
type RollbackMigrationVariables = {
|
4147
|
+
body?: RollbackMigrationRequestBody;
|
4148
|
+
pathParams: RollbackMigrationPathParams;
|
4149
|
+
} & DataPlaneFetcherExtraProps;
|
4150
|
+
/**
|
4151
|
+
* Roll back an active migration on the specified database
|
4152
|
+
*/
|
4153
|
+
declare const rollbackMigration: (variables: RollbackMigrationVariables, signal?: AbortSignal) => Promise<RollbackMigrationResponse>;
|
3353
4154
|
type AdaptTablePathParams = {
|
3354
4155
|
/**
|
3355
4156
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3426,6 +4227,39 @@ type GetBranchMigrationJobStatusVariables = {
|
|
3426
4227
|
pathParams: GetBranchMigrationJobStatusPathParams;
|
3427
4228
|
} & DataPlaneFetcherExtraProps;
|
3428
4229
|
declare const getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
4230
|
+
type GetMigrationJobsPathParams = {
|
4231
|
+
/**
|
4232
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4233
|
+
*/
|
4234
|
+
dbBranchName: DBBranchName;
|
4235
|
+
workspace: string;
|
4236
|
+
region: string;
|
4237
|
+
};
|
4238
|
+
type GetMigrationJobsQueryParams = {
|
4239
|
+
/**
|
4240
|
+
* @format date-time
|
4241
|
+
*/
|
4242
|
+
cursor?: string;
|
4243
|
+
/**
|
4244
|
+
* Page size
|
4245
|
+
*/
|
4246
|
+
limit?: PageSize$1;
|
4247
|
+
};
|
4248
|
+
type GetMigrationJobsError = ErrorWrapper<{
|
4249
|
+
status: 400;
|
4250
|
+
payload: BadRequestError$1;
|
4251
|
+
} | {
|
4252
|
+
status: 401;
|
4253
|
+
payload: AuthError$1;
|
4254
|
+
} | {
|
4255
|
+
status: 404;
|
4256
|
+
payload: SimpleError$1;
|
4257
|
+
}>;
|
4258
|
+
type GetMigrationJobsVariables = {
|
4259
|
+
pathParams: GetMigrationJobsPathParams;
|
4260
|
+
queryParams?: GetMigrationJobsQueryParams;
|
4261
|
+
} & DataPlaneFetcherExtraProps;
|
4262
|
+
declare const getMigrationJobs: (variables: GetMigrationJobsVariables, signal?: AbortSignal) => Promise<GetMigrationJobsResponse>;
|
3429
4263
|
type GetMigrationJobStatusPathParams = {
|
3430
4264
|
/**
|
3431
4265
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3460,6 +4294,16 @@ type GetMigrationHistoryPathParams = {
|
|
3460
4294
|
workspace: string;
|
3461
4295
|
region: string;
|
3462
4296
|
};
|
4297
|
+
type GetMigrationHistoryQueryParams = {
|
4298
|
+
/**
|
4299
|
+
* @format date-time
|
4300
|
+
*/
|
4301
|
+
cursor?: string;
|
4302
|
+
/**
|
4303
|
+
* Page size
|
4304
|
+
*/
|
4305
|
+
limit?: PageSize$1;
|
4306
|
+
};
|
3463
4307
|
type GetMigrationHistoryError = ErrorWrapper<{
|
3464
4308
|
status: 400;
|
3465
4309
|
payload: BadRequestError$1;
|
@@ -3472,6 +4316,7 @@ type GetMigrationHistoryError = ErrorWrapper<{
|
|
3472
4316
|
}>;
|
3473
4317
|
type GetMigrationHistoryVariables = {
|
3474
4318
|
pathParams: GetMigrationHistoryPathParams;
|
4319
|
+
queryParams?: GetMigrationHistoryQueryParams;
|
3475
4320
|
} & DataPlaneFetcherExtraProps;
|
3476
4321
|
declare const getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal) => Promise<MigrationHistoryResponse>;
|
3477
4322
|
type GetBranchListPathParams = {
|
@@ -3545,14 +4390,61 @@ type UpdateDatabaseSettingsError = ErrorWrapper<{
|
|
3545
4390
|
type UpdateDatabaseSettingsRequestBody = {
|
3546
4391
|
searchEnabled?: boolean;
|
3547
4392
|
};
|
3548
|
-
type UpdateDatabaseSettingsVariables = {
|
3549
|
-
body?: UpdateDatabaseSettingsRequestBody;
|
3550
|
-
pathParams: UpdateDatabaseSettingsPathParams;
|
4393
|
+
type UpdateDatabaseSettingsVariables = {
|
4394
|
+
body?: UpdateDatabaseSettingsRequestBody;
|
4395
|
+
pathParams: UpdateDatabaseSettingsPathParams;
|
4396
|
+
} & DataPlaneFetcherExtraProps;
|
4397
|
+
/**
|
4398
|
+
* Update database settings, this endpoint can be used to disable search
|
4399
|
+
*/
|
4400
|
+
declare const updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
4401
|
+
type CreateBranchAsyncPathParams = {
|
4402
|
+
/**
|
4403
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4404
|
+
*/
|
4405
|
+
dbBranchName: DBBranchName;
|
4406
|
+
workspace: string;
|
4407
|
+
region: string;
|
4408
|
+
};
|
4409
|
+
type CreateBranchAsyncQueryParams = {
|
4410
|
+
/**
|
4411
|
+
* Name of source branch to branch the new schema from
|
4412
|
+
*/
|
4413
|
+
from?: string;
|
4414
|
+
};
|
4415
|
+
type CreateBranchAsyncError = ErrorWrapper<{
|
4416
|
+
status: 400;
|
4417
|
+
payload: BadRequestError$1;
|
4418
|
+
} | {
|
4419
|
+
status: 401;
|
4420
|
+
payload: AuthError$1;
|
4421
|
+
} | {
|
4422
|
+
status: 404;
|
4423
|
+
payload: SimpleError$1;
|
4424
|
+
} | {
|
4425
|
+
status: 423;
|
4426
|
+
payload: SimpleError$1;
|
4427
|
+
}>;
|
4428
|
+
type CreateBranchAsyncRequestBody = {
|
4429
|
+
/**
|
4430
|
+
* Select the branch to fork from. Defaults to 'main'
|
4431
|
+
*/
|
4432
|
+
from?: string;
|
4433
|
+
/**
|
4434
|
+
* Select the dedicated cluster to create on. Defaults to 'xata-cloud'
|
4435
|
+
*
|
4436
|
+
* @minLength 1
|
4437
|
+
* @x-internal true
|
4438
|
+
*/
|
4439
|
+
clusterID?: string;
|
4440
|
+
metadata?: BranchMetadata$1;
|
4441
|
+
};
|
4442
|
+
type CreateBranchAsyncVariables = {
|
4443
|
+
body?: CreateBranchAsyncRequestBody;
|
4444
|
+
pathParams: CreateBranchAsyncPathParams;
|
4445
|
+
queryParams?: CreateBranchAsyncQueryParams;
|
3551
4446
|
} & DataPlaneFetcherExtraProps;
|
3552
|
-
|
3553
|
-
* Update database settings, this endpoint can be used to disable search
|
3554
|
-
*/
|
3555
|
-
declare const updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
4447
|
+
declare const createBranchAsync: (variables: CreateBranchAsyncVariables, signal?: AbortSignal) => Promise<CreateBranchResponse$1>;
|
3556
4448
|
type GetBranchDetailsPathParams = {
|
3557
4449
|
/**
|
3558
4450
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3686,6 +4578,31 @@ type GetSchemaVariables = {
|
|
3686
4578
|
pathParams: GetSchemaPathParams;
|
3687
4579
|
} & DataPlaneFetcherExtraProps;
|
3688
4580
|
declare const getSchema: (variables: GetSchemaVariables, signal?: AbortSignal) => Promise<GetSchemaResponse>;
|
4581
|
+
type GetSchemasPathParams = {
|
4582
|
+
/**
|
4583
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4584
|
+
*/
|
4585
|
+
dbBranchName: DBBranchName;
|
4586
|
+
workspace: string;
|
4587
|
+
region: string;
|
4588
|
+
};
|
4589
|
+
type GetSchemasError = ErrorWrapper<{
|
4590
|
+
status: 400;
|
4591
|
+
payload: BadRequestError$1;
|
4592
|
+
} | {
|
4593
|
+
status: 401;
|
4594
|
+
payload: AuthError$1;
|
4595
|
+
} | {
|
4596
|
+
status: 404;
|
4597
|
+
payload: SimpleError$1;
|
4598
|
+
}>;
|
4599
|
+
type GetSchemasResponse = {
|
4600
|
+
schemas: BranchSchema[];
|
4601
|
+
};
|
4602
|
+
type GetSchemasVariables = {
|
4603
|
+
pathParams: GetSchemasPathParams;
|
4604
|
+
} & DataPlaneFetcherExtraProps;
|
4605
|
+
declare const getSchemas: (variables: GetSchemasVariables, signal?: AbortSignal) => Promise<GetSchemasResponse>;
|
3689
4606
|
type CopyBranchPathParams = {
|
3690
4607
|
/**
|
3691
4608
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3716,6 +4633,73 @@ type CopyBranchVariables = {
|
|
3716
4633
|
* Create a copy of the branch
|
3717
4634
|
*/
|
3718
4635
|
declare const copyBranch: (variables: CopyBranchVariables, signal?: AbortSignal) => Promise<BranchWithCopyID>;
|
4636
|
+
type GetBranchMoveStatusPathParams = {
|
4637
|
+
/**
|
4638
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4639
|
+
*/
|
4640
|
+
dbBranchName: DBBranchName;
|
4641
|
+
workspace: string;
|
4642
|
+
region: string;
|
4643
|
+
};
|
4644
|
+
type GetBranchMoveStatusError = ErrorWrapper<{
|
4645
|
+
status: 400;
|
4646
|
+
payload: BadRequestError$1;
|
4647
|
+
} | {
|
4648
|
+
status: 401;
|
4649
|
+
payload: AuthError$1;
|
4650
|
+
} | {
|
4651
|
+
status: 404;
|
4652
|
+
payload: SimpleError$1;
|
4653
|
+
}>;
|
4654
|
+
type GetBranchMoveStatusResponse = {
|
4655
|
+
state: string;
|
4656
|
+
pendingBytes: number;
|
4657
|
+
};
|
4658
|
+
type GetBranchMoveStatusVariables = {
|
4659
|
+
pathParams: GetBranchMoveStatusPathParams;
|
4660
|
+
} & DataPlaneFetcherExtraProps;
|
4661
|
+
/**
|
4662
|
+
* Get the branch move status (if a move is happening)
|
4663
|
+
*/
|
4664
|
+
declare const getBranchMoveStatus: (variables: GetBranchMoveStatusVariables, signal?: AbortSignal) => Promise<GetBranchMoveStatusResponse>;
|
4665
|
+
type MoveBranchPathParams = {
|
4666
|
+
/**
|
4667
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4668
|
+
*/
|
4669
|
+
dbBranchName: DBBranchName;
|
4670
|
+
workspace: string;
|
4671
|
+
region: string;
|
4672
|
+
};
|
4673
|
+
type MoveBranchError = ErrorWrapper<{
|
4674
|
+
status: 400;
|
4675
|
+
payload: BadRequestError$1;
|
4676
|
+
} | {
|
4677
|
+
status: 401;
|
4678
|
+
payload: AuthError$1;
|
4679
|
+
} | {
|
4680
|
+
status: 404;
|
4681
|
+
payload: SimpleError$1;
|
4682
|
+
} | {
|
4683
|
+
status: 423;
|
4684
|
+
payload: SimpleError$1;
|
4685
|
+
}>;
|
4686
|
+
type MoveBranchResponse = {
|
4687
|
+
state: string;
|
4688
|
+
};
|
4689
|
+
type MoveBranchRequestBody = {
|
4690
|
+
/**
|
4691
|
+
* Select the cluster to move the branch to. Must be different from the current cluster.
|
4692
|
+
*
|
4693
|
+
* @minLength 1
|
4694
|
+
* @x-internal true
|
4695
|
+
*/
|
4696
|
+
to: string;
|
4697
|
+
};
|
4698
|
+
type MoveBranchVariables = {
|
4699
|
+
body: MoveBranchRequestBody;
|
4700
|
+
pathParams: MoveBranchPathParams;
|
4701
|
+
} & DataPlaneFetcherExtraProps;
|
4702
|
+
declare const moveBranch: (variables: MoveBranchVariables, signal?: AbortSignal) => Promise<MoveBranchResponse>;
|
3719
4703
|
type UpdateBranchMetadataPathParams = {
|
3720
4704
|
/**
|
3721
4705
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -6890,187 +7874,227 @@ type SqlQueryError = ErrorWrapper<{
|
|
6890
7874
|
status: 503;
|
6891
7875
|
payload: ServiceUnavailableError;
|
6892
7876
|
}>;
|
6893
|
-
type SqlQueryRequestBody = {
|
6894
|
-
|
6895
|
-
|
6896
|
-
|
6897
|
-
|
6898
|
-
|
6899
|
-
|
6900
|
-
|
6901
|
-
|
6902
|
-
|
6903
|
-
|
7877
|
+
type SqlQueryRequestBody = PreparedStatement & {
|
7878
|
+
consistency?: SQLConsistency;
|
7879
|
+
responseType?: SQLResponseType$1;
|
7880
|
+
};
|
7881
|
+
type SqlQueryVariables = {
|
7882
|
+
body: SqlQueryRequestBody;
|
7883
|
+
pathParams: SqlQueryPathParams;
|
7884
|
+
} & DataPlaneFetcherExtraProps;
|
7885
|
+
/**
|
7886
|
+
* Run an SQL query across the database branch.
|
7887
|
+
*/
|
7888
|
+
declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse$1>;
|
7889
|
+
type SqlBatchQueryPathParams = {
|
6904
7890
|
/**
|
6905
|
-
* The
|
6906
|
-
*
|
6907
|
-
* @default strong
|
7891
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
6908
7892
|
*/
|
6909
|
-
|
7893
|
+
dbBranchName: DBBranchName;
|
7894
|
+
workspace: string;
|
7895
|
+
region: string;
|
7896
|
+
};
|
7897
|
+
type SqlBatchQueryError = ErrorWrapper<{
|
7898
|
+
status: 400;
|
7899
|
+
payload: BadRequestError$1;
|
7900
|
+
} | {
|
7901
|
+
status: 401;
|
7902
|
+
payload: AuthError$1;
|
7903
|
+
} | {
|
7904
|
+
status: 404;
|
7905
|
+
payload: SimpleError$1;
|
7906
|
+
} | {
|
7907
|
+
status: 503;
|
7908
|
+
payload: ServiceUnavailableError;
|
7909
|
+
}>;
|
7910
|
+
type SqlBatchQueryRequestBody = {
|
6910
7911
|
/**
|
6911
|
-
* The
|
7912
|
+
* The SQL statements.
|
6912
7913
|
*
|
6913
|
-
* @
|
7914
|
+
* @x-go-type []sqlproxy.PreparedStatement
|
6914
7915
|
*/
|
6915
|
-
|
7916
|
+
statements: PreparedStatement[];
|
7917
|
+
consistency?: SQLConsistency;
|
7918
|
+
responseType?: SQLResponseType$1;
|
6916
7919
|
};
|
6917
|
-
type
|
6918
|
-
body:
|
6919
|
-
pathParams:
|
7920
|
+
type SqlBatchQueryVariables = {
|
7921
|
+
body: SqlBatchQueryRequestBody;
|
7922
|
+
pathParams: SqlBatchQueryPathParams;
|
6920
7923
|
} & DataPlaneFetcherExtraProps;
|
6921
7924
|
/**
|
6922
|
-
* Run
|
7925
|
+
* Run multiple SQL queries across the database branch.
|
6923
7926
|
*/
|
6924
|
-
declare const
|
7927
|
+
declare const sqlBatchQuery: (variables: SqlBatchQueryVariables, signal?: AbortSignal) => Promise<SQLBatchResponse>;
|
6925
7928
|
|
6926
7929
|
declare const operationsByTag: {
|
6927
7930
|
branch: {
|
6928
|
-
getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal
|
6929
|
-
|
6930
|
-
|
6931
|
-
|
6932
|
-
|
6933
|
-
|
6934
|
-
|
6935
|
-
|
6936
|
-
|
6937
|
-
|
6938
|
-
|
6939
|
-
|
7931
|
+
getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal) => Promise<ListBranchesResponse>;
|
7932
|
+
createBranchAsync: (variables: CreateBranchAsyncVariables, signal?: AbortSignal) => Promise<CreateBranchResponse$1>;
|
7933
|
+
getBranchDetails: (variables: GetBranchDetailsVariables, signal?: AbortSignal) => Promise<DBBranch>;
|
7934
|
+
createBranch: (variables: CreateBranchVariables, signal?: AbortSignal) => Promise<CreateBranchResponse>;
|
7935
|
+
deleteBranch: (variables: DeleteBranchVariables, signal?: AbortSignal) => Promise<DeleteBranchResponse>;
|
7936
|
+
copyBranch: (variables: CopyBranchVariables, signal?: AbortSignal) => Promise<BranchWithCopyID>;
|
7937
|
+
getBranchMoveStatus: (variables: GetBranchMoveStatusVariables, signal?: AbortSignal) => Promise<GetBranchMoveStatusResponse>;
|
7938
|
+
moveBranch: (variables: MoveBranchVariables, signal?: AbortSignal) => Promise<MoveBranchResponse>;
|
7939
|
+
updateBranchMetadata: (variables: UpdateBranchMetadataVariables, signal?: AbortSignal) => Promise<undefined>;
|
7940
|
+
getBranchMetadata: (variables: GetBranchMetadataVariables, signal?: AbortSignal) => Promise<BranchMetadata$1>;
|
7941
|
+
getBranchStats: (variables: GetBranchStatsVariables, signal?: AbortSignal) => Promise<GetBranchStatsResponse>;
|
7942
|
+
getGitBranchesMapping: (variables: GetGitBranchesMappingVariables, signal?: AbortSignal) => Promise<ListGitBranchesResponse>;
|
7943
|
+
addGitBranchesEntry: (variables: AddGitBranchesEntryVariables, signal?: AbortSignal) => Promise<AddGitBranchesEntryResponse>;
|
7944
|
+
removeGitBranchesEntry: (variables: RemoveGitBranchesEntryVariables, signal?: AbortSignal) => Promise<undefined>;
|
7945
|
+
resolveBranch: (variables: ResolveBranchVariables, signal?: AbortSignal) => Promise<ResolveBranchResponse>;
|
6940
7946
|
};
|
6941
7947
|
workspaces: {
|
6942
|
-
getWorkspacesList: (variables:
|
6943
|
-
createWorkspace: (variables: CreateWorkspaceVariables, signal?: AbortSignal
|
6944
|
-
getWorkspace: (variables: GetWorkspaceVariables, signal?: AbortSignal
|
6945
|
-
updateWorkspace: (variables: UpdateWorkspaceVariables, signal?: AbortSignal
|
6946
|
-
deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal
|
6947
|
-
getWorkspaceSettings: (variables: GetWorkspaceSettingsVariables, signal?: AbortSignal
|
6948
|
-
updateWorkspaceSettings: (variables: UpdateWorkspaceSettingsVariables, signal?: AbortSignal
|
6949
|
-
getWorkspaceMembersList: (variables: GetWorkspaceMembersListVariables, signal?: AbortSignal
|
6950
|
-
updateWorkspaceMemberRole: (variables: UpdateWorkspaceMemberRoleVariables, signal?: AbortSignal
|
6951
|
-
removeWorkspaceMember: (variables: RemoveWorkspaceMemberVariables, signal?: AbortSignal
|
7948
|
+
getWorkspacesList: (variables: GetWorkspacesListVariables, signal?: AbortSignal) => Promise<GetWorkspacesListResponse>;
|
7949
|
+
createWorkspace: (variables: CreateWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7950
|
+
getWorkspace: (variables: GetWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7951
|
+
updateWorkspace: (variables: UpdateWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7952
|
+
deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal) => Promise<undefined>;
|
7953
|
+
getWorkspaceSettings: (variables: GetWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
|
7954
|
+
updateWorkspaceSettings: (variables: UpdateWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
|
7955
|
+
getWorkspaceMembersList: (variables: GetWorkspaceMembersListVariables, signal?: AbortSignal) => Promise<WorkspaceMembers>;
|
7956
|
+
updateWorkspaceMemberRole: (variables: UpdateWorkspaceMemberRoleVariables, signal?: AbortSignal) => Promise<undefined>;
|
7957
|
+
removeWorkspaceMember: (variables: RemoveWorkspaceMemberVariables, signal?: AbortSignal) => Promise<undefined>;
|
7958
|
+
};
|
7959
|
+
table: {
|
7960
|
+
createTable: (variables: CreateTableVariables, signal?: AbortSignal) => Promise<CreateTableResponse>;
|
7961
|
+
deleteTable: (variables: DeleteTableVariables, signal?: AbortSignal) => Promise<DeleteTableResponse>;
|
7962
|
+
updateTable: (variables: UpdateTableVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7963
|
+
getTableSchema: (variables: GetTableSchemaVariables, signal?: AbortSignal) => Promise<GetTableSchemaResponse>;
|
7964
|
+
setTableSchema: (variables: SetTableSchemaVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7965
|
+
getTableColumns: (variables: GetTableColumnsVariables, signal?: AbortSignal) => Promise<GetTableColumnsResponse>;
|
7966
|
+
addTableColumn: (variables: AddTableColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7967
|
+
getColumn: (variables: GetColumnVariables, signal?: AbortSignal) => Promise<Column>;
|
7968
|
+
updateColumn: (variables: UpdateColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7969
|
+
deleteColumn: (variables: DeleteColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
6952
7970
|
};
|
6953
7971
|
migrations: {
|
6954
|
-
applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal
|
6955
|
-
|
6956
|
-
|
6957
|
-
|
6958
|
-
|
6959
|
-
|
6960
|
-
|
6961
|
-
|
6962
|
-
|
6963
|
-
|
6964
|
-
|
6965
|
-
|
6966
|
-
|
6967
|
-
|
6968
|
-
|
6969
|
-
|
6970
|
-
|
7972
|
+
applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7973
|
+
startMigration: (variables: StartMigrationVariables, signal?: AbortSignal) => Promise<StartMigrationResponse>;
|
7974
|
+
completeMigration: (variables: CompleteMigrationVariables, signal?: AbortSignal) => Promise<CompleteMigrationResponse>;
|
7975
|
+
rollbackMigration: (variables: RollbackMigrationVariables, signal?: AbortSignal) => Promise<RollbackMigrationResponse>;
|
7976
|
+
adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7977
|
+
adaptAllTables: (variables: AdaptAllTablesVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7978
|
+
getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
7979
|
+
getMigrationJobs: (variables: GetMigrationJobsVariables, signal?: AbortSignal) => Promise<GetMigrationJobsResponse>;
|
7980
|
+
getMigrationJobStatus: (variables: GetMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
7981
|
+
getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal) => Promise<MigrationHistoryResponse>;
|
7982
|
+
getSchema: (variables: GetSchemaVariables, signal?: AbortSignal) => Promise<GetSchemaResponse>;
|
7983
|
+
getSchemas: (variables: GetSchemasVariables, signal?: AbortSignal) => Promise<GetSchemasResponse>;
|
7984
|
+
getBranchMigrationHistory: (variables: GetBranchMigrationHistoryVariables, signal?: AbortSignal) => Promise<GetBranchMigrationHistoryResponse>;
|
7985
|
+
getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables, signal?: AbortSignal) => Promise<BranchMigrationPlan>;
|
7986
|
+
executeBranchMigrationPlan: (variables: ExecuteBranchMigrationPlanVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7987
|
+
getBranchSchemaHistory: (variables: GetBranchSchemaHistoryVariables, signal?: AbortSignal) => Promise<GetBranchSchemaHistoryResponse>;
|
7988
|
+
compareBranchWithUserSchema: (variables: CompareBranchWithUserSchemaVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
7989
|
+
compareBranchSchemas: (variables: CompareBranchSchemasVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
7990
|
+
updateBranchSchema: (variables: UpdateBranchSchemaVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7991
|
+
previewBranchSchemaEdit: (variables: PreviewBranchSchemaEditVariables, signal?: AbortSignal) => Promise<PreviewBranchSchemaEditResponse>;
|
7992
|
+
applyBranchSchemaEdit: (variables: ApplyBranchSchemaEditVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7993
|
+
pushBranchMigrations: (variables: PushBranchMigrationsVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
6971
7994
|
};
|
6972
7995
|
records: {
|
6973
|
-
branchTransaction: (variables: BranchTransactionVariables, signal?: AbortSignal
|
6974
|
-
insertRecord: (variables: InsertRecordVariables, signal?: AbortSignal
|
6975
|
-
getRecord: (variables: GetRecordVariables, signal?: AbortSignal
|
6976
|
-
insertRecordWithID: (variables: InsertRecordWithIDVariables, signal?: AbortSignal
|
6977
|
-
updateRecordWithID: (variables: UpdateRecordWithIDVariables, signal?: AbortSignal
|
6978
|
-
upsertRecordWithID: (variables: UpsertRecordWithIDVariables, signal?: AbortSignal
|
6979
|
-
deleteRecord: (variables: DeleteRecordVariables, signal?: AbortSignal
|
6980
|
-
bulkInsertTableRecords: (variables: BulkInsertTableRecordsVariables, signal?: AbortSignal
|
7996
|
+
branchTransaction: (variables: BranchTransactionVariables, signal?: AbortSignal) => Promise<TransactionSuccess>;
|
7997
|
+
insertRecord: (variables: InsertRecordVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
7998
|
+
getRecord: (variables: GetRecordVariables, signal?: AbortSignal) => Promise<XataRecord$1>;
|
7999
|
+
insertRecordWithID: (variables: InsertRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
8000
|
+
updateRecordWithID: (variables: UpdateRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
8001
|
+
upsertRecordWithID: (variables: UpsertRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
8002
|
+
deleteRecord: (variables: DeleteRecordVariables, signal?: AbortSignal) => Promise<XataRecord$1>;
|
8003
|
+
bulkInsertTableRecords: (variables: BulkInsertTableRecordsVariables, signal?: AbortSignal) => Promise<BulkInsertResponse>;
|
8004
|
+
};
|
8005
|
+
tasks: {
|
8006
|
+
getTasks: (variables: GetTasksVariables, signal?: AbortSignal) => Promise<GetTasksResponse>;
|
8007
|
+
getTaskStatus: (variables: GetTaskStatusVariables, signal?: AbortSignal) => Promise<TaskStatusResponse>;
|
8008
|
+
};
|
8009
|
+
cluster: {
|
8010
|
+
listClusterBranches: (variables: ListClusterBranchesVariables, signal?: AbortSignal) => Promise<ListClusterBranchesResponse>;
|
8011
|
+
listClusterExtensions: (variables: ListClusterExtensionsVariables, signal?: AbortSignal) => Promise<ListClusterExtensionsResponse>;
|
8012
|
+
installClusterExtension: (variables: InstallClusterExtensionVariables, signal?: AbortSignal) => Promise<ClusterExtensionInstallationResponse>;
|
8013
|
+
dropClusterExtension: (variables: DropClusterExtensionVariables, signal?: AbortSignal) => Promise<undefined>;
|
8014
|
+
getClusterMetrics: (variables: GetClusterMetricsVariables, signal?: AbortSignal) => Promise<MetricsResponse>;
|
6981
8015
|
};
|
6982
8016
|
database: {
|
6983
|
-
getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal
|
6984
|
-
updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal
|
8017
|
+
getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
8018
|
+
updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
6985
8019
|
};
|
6986
8020
|
migrationRequests: {
|
6987
|
-
queryMigrationRequests: (variables: QueryMigrationRequestsVariables, signal?: AbortSignal
|
6988
|
-
createMigrationRequest: (variables: CreateMigrationRequestVariables, signal?: AbortSignal
|
6989
|
-
getMigrationRequest: (variables: GetMigrationRequestVariables, signal?: AbortSignal
|
6990
|
-
updateMigrationRequest: (variables: UpdateMigrationRequestVariables, signal?: AbortSignal
|
6991
|
-
listMigrationRequestsCommits: (variables: ListMigrationRequestsCommitsVariables, signal?: AbortSignal
|
6992
|
-
compareMigrationRequest: (variables: CompareMigrationRequestVariables, signal?: AbortSignal
|
6993
|
-
getMigrationRequestIsMerged: (variables: GetMigrationRequestIsMergedVariables, signal?: AbortSignal
|
6994
|
-
mergeMigrationRequest: (variables: MergeMigrationRequestVariables, signal?: AbortSignal
|
6995
|
-
};
|
6996
|
-
table: {
|
6997
|
-
createTable: (variables: CreateTableVariables, signal?: AbortSignal | undefined) => Promise<CreateTableResponse>;
|
6998
|
-
deleteTable: (variables: DeleteTableVariables, signal?: AbortSignal | undefined) => Promise<DeleteTableResponse>;
|
6999
|
-
updateTable: (variables: UpdateTableVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
7000
|
-
getTableSchema: (variables: GetTableSchemaVariables, signal?: AbortSignal | undefined) => Promise<GetTableSchemaResponse>;
|
7001
|
-
setTableSchema: (variables: SetTableSchemaVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
7002
|
-
getTableColumns: (variables: GetTableColumnsVariables, signal?: AbortSignal | undefined) => Promise<GetTableColumnsResponse>;
|
7003
|
-
addTableColumn: (variables: AddTableColumnVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
7004
|
-
getColumn: (variables: GetColumnVariables, signal?: AbortSignal | undefined) => Promise<Column>;
|
7005
|
-
updateColumn: (variables: UpdateColumnVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
7006
|
-
deleteColumn: (variables: DeleteColumnVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
8021
|
+
queryMigrationRequests: (variables: QueryMigrationRequestsVariables, signal?: AbortSignal) => Promise<QueryMigrationRequestsResponse>;
|
8022
|
+
createMigrationRequest: (variables: CreateMigrationRequestVariables, signal?: AbortSignal) => Promise<CreateMigrationRequestResponse>;
|
8023
|
+
getMigrationRequest: (variables: GetMigrationRequestVariables, signal?: AbortSignal) => Promise<MigrationRequest>;
|
8024
|
+
updateMigrationRequest: (variables: UpdateMigrationRequestVariables, signal?: AbortSignal) => Promise<undefined>;
|
8025
|
+
listMigrationRequestsCommits: (variables: ListMigrationRequestsCommitsVariables, signal?: AbortSignal) => Promise<ListMigrationRequestsCommitsResponse>;
|
8026
|
+
compareMigrationRequest: (variables: CompareMigrationRequestVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
8027
|
+
getMigrationRequestIsMerged: (variables: GetMigrationRequestIsMergedVariables, signal?: AbortSignal) => Promise<GetMigrationRequestIsMergedResponse>;
|
8028
|
+
mergeMigrationRequest: (variables: MergeMigrationRequestVariables, signal?: AbortSignal) => Promise<BranchOp>;
|
7007
8029
|
};
|
7008
8030
|
files: {
|
7009
|
-
getFileItem: (variables: GetFileItemVariables, signal?: AbortSignal
|
7010
|
-
putFileItem: (variables: PutFileItemVariables, signal?: AbortSignal
|
7011
|
-
deleteFileItem: (variables: DeleteFileItemVariables, signal?: AbortSignal
|
7012
|
-
getFile: (variables: GetFileVariables, signal?: AbortSignal
|
7013
|
-
putFile: (variables: PutFileVariables, signal?: AbortSignal
|
7014
|
-
deleteFile: (variables: DeleteFileVariables, signal?: AbortSignal
|
7015
|
-
fileAccess: (variables: FileAccessVariables, signal?: AbortSignal
|
7016
|
-
fileUpload: (variables: FileUploadVariables, signal?: AbortSignal
|
8031
|
+
getFileItem: (variables: GetFileItemVariables, signal?: AbortSignal) => Promise<Blob>;
|
8032
|
+
putFileItem: (variables: PutFileItemVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8033
|
+
deleteFileItem: (variables: DeleteFileItemVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8034
|
+
getFile: (variables: GetFileVariables, signal?: AbortSignal) => Promise<Blob>;
|
8035
|
+
putFile: (variables: PutFileVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8036
|
+
deleteFile: (variables: DeleteFileVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8037
|
+
fileAccess: (variables: FileAccessVariables, signal?: AbortSignal) => Promise<Blob>;
|
8038
|
+
fileUpload: (variables: FileUploadVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
7017
8039
|
};
|
7018
8040
|
searchAndFilter: {
|
7019
|
-
queryTable: (variables: QueryTableVariables, signal?: AbortSignal
|
7020
|
-
searchBranch: (variables: SearchBranchVariables, signal?: AbortSignal
|
7021
|
-
searchTable: (variables: SearchTableVariables, signal?: AbortSignal
|
7022
|
-
vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal
|
7023
|
-
askTable: (variables: AskTableVariables, signal?: AbortSignal
|
7024
|
-
askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal
|
7025
|
-
summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal
|
7026
|
-
aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal
|
8041
|
+
queryTable: (variables: QueryTableVariables, signal?: AbortSignal) => Promise<QueryResponse>;
|
8042
|
+
searchBranch: (variables: SearchBranchVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
8043
|
+
searchTable: (variables: SearchTableVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
8044
|
+
vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
8045
|
+
askTable: (variables: AskTableVariables, signal?: AbortSignal) => Promise<AskTableResponse>;
|
8046
|
+
askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal) => Promise<AskTableSessionResponse>;
|
8047
|
+
summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal) => Promise<SummarizeResponse>;
|
8048
|
+
aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal) => Promise<AggResponse>;
|
7027
8049
|
};
|
7028
8050
|
sql: {
|
7029
|
-
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal
|
8051
|
+
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse$1>;
|
8052
|
+
sqlBatchQuery: (variables: SqlBatchQueryVariables, signal?: AbortSignal) => Promise<SQLBatchResponse>;
|
7030
8053
|
};
|
7031
8054
|
oAuth: {
|
7032
|
-
getAuthorizationCode: (variables: GetAuthorizationCodeVariables, signal?: AbortSignal
|
7033
|
-
grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal
|
7034
|
-
getUserOAuthClients: (variables:
|
7035
|
-
deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal
|
7036
|
-
getUserOAuthAccessTokens: (variables:
|
7037
|
-
deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal
|
7038
|
-
updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal
|
8055
|
+
getAuthorizationCode: (variables: GetAuthorizationCodeVariables, signal?: AbortSignal) => Promise<AuthorizationCodeResponse>;
|
8056
|
+
grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal) => Promise<AuthorizationCodeResponse>;
|
8057
|
+
getUserOAuthClients: (variables: GetUserOAuthClientsVariables, signal?: AbortSignal) => Promise<GetUserOAuthClientsResponse>;
|
8058
|
+
deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal) => Promise<undefined>;
|
8059
|
+
getUserOAuthAccessTokens: (variables: GetUserOAuthAccessTokensVariables, signal?: AbortSignal) => Promise<GetUserOAuthAccessTokensResponse>;
|
8060
|
+
deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<undefined>;
|
8061
|
+
updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<OAuthAccessToken>;
|
7039
8062
|
};
|
7040
8063
|
users: {
|
7041
|
-
getUser: (variables:
|
7042
|
-
updateUser: (variables: UpdateUserVariables, signal?: AbortSignal
|
7043
|
-
deleteUser: (variables:
|
8064
|
+
getUser: (variables: GetUserVariables, signal?: AbortSignal) => Promise<UserWithID>;
|
8065
|
+
updateUser: (variables: UpdateUserVariables, signal?: AbortSignal) => Promise<UserWithID>;
|
8066
|
+
deleteUser: (variables: DeleteUserVariables, signal?: AbortSignal) => Promise<undefined>;
|
7044
8067
|
};
|
7045
8068
|
authentication: {
|
7046
|
-
getUserAPIKeys: (variables:
|
7047
|
-
createUserAPIKey: (variables: CreateUserAPIKeyVariables, signal?: AbortSignal
|
7048
|
-
deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables, signal?: AbortSignal
|
8069
|
+
getUserAPIKeys: (variables: GetUserAPIKeysVariables, signal?: AbortSignal) => Promise<GetUserAPIKeysResponse>;
|
8070
|
+
createUserAPIKey: (variables: CreateUserAPIKeyVariables, signal?: AbortSignal) => Promise<CreateUserAPIKeyResponse>;
|
8071
|
+
deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables, signal?: AbortSignal) => Promise<undefined>;
|
7049
8072
|
};
|
7050
8073
|
invites: {
|
7051
|
-
inviteWorkspaceMember: (variables: InviteWorkspaceMemberVariables, signal?: AbortSignal
|
7052
|
-
updateWorkspaceMemberInvite: (variables: UpdateWorkspaceMemberInviteVariables, signal?: AbortSignal
|
7053
|
-
cancelWorkspaceMemberInvite: (variables: CancelWorkspaceMemberInviteVariables, signal?: AbortSignal
|
7054
|
-
acceptWorkspaceMemberInvite: (variables: AcceptWorkspaceMemberInviteVariables, signal?: AbortSignal
|
7055
|
-
resendWorkspaceMemberInvite: (variables: ResendWorkspaceMemberInviteVariables, signal?: AbortSignal
|
8074
|
+
inviteWorkspaceMember: (variables: InviteWorkspaceMemberVariables, signal?: AbortSignal) => Promise<WorkspaceInvite>;
|
8075
|
+
updateWorkspaceMemberInvite: (variables: UpdateWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<WorkspaceInvite>;
|
8076
|
+
cancelWorkspaceMemberInvite: (variables: CancelWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
8077
|
+
acceptWorkspaceMemberInvite: (variables: AcceptWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
8078
|
+
resendWorkspaceMemberInvite: (variables: ResendWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
7056
8079
|
};
|
7057
8080
|
xbcontrolOther: {
|
7058
|
-
listClusters: (variables: ListClustersVariables, signal?: AbortSignal
|
7059
|
-
createCluster: (variables: CreateClusterVariables, signal?: AbortSignal
|
7060
|
-
getCluster: (variables: GetClusterVariables, signal?: AbortSignal
|
7061
|
-
updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal
|
8081
|
+
listClusters: (variables: ListClustersVariables, signal?: AbortSignal) => Promise<ListClustersResponse>;
|
8082
|
+
createCluster: (variables: CreateClusterVariables, signal?: AbortSignal) => Promise<ClusterResponse>;
|
8083
|
+
getCluster: (variables: GetClusterVariables, signal?: AbortSignal) => Promise<ClusterMetadata>;
|
8084
|
+
updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterUpdateMetadata>;
|
8085
|
+
deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal) => Promise<ClusterDeleteMetadata>;
|
7062
8086
|
};
|
7063
8087
|
databases: {
|
7064
|
-
getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal
|
7065
|
-
createDatabase: (variables: CreateDatabaseVariables, signal?: AbortSignal
|
7066
|
-
deleteDatabase: (variables: DeleteDatabaseVariables, signal?: AbortSignal
|
7067
|
-
getDatabaseMetadata: (variables: GetDatabaseMetadataVariables, signal?: AbortSignal
|
7068
|
-
updateDatabaseMetadata: (variables: UpdateDatabaseMetadataVariables, signal?: AbortSignal
|
7069
|
-
renameDatabase: (variables: RenameDatabaseVariables, signal?: AbortSignal
|
7070
|
-
getDatabaseGithubSettings: (variables: GetDatabaseGithubSettingsVariables, signal?: AbortSignal
|
7071
|
-
updateDatabaseGithubSettings: (variables: UpdateDatabaseGithubSettingsVariables, signal?: AbortSignal
|
7072
|
-
deleteDatabaseGithubSettings: (variables: DeleteDatabaseGithubSettingsVariables, signal?: AbortSignal
|
7073
|
-
listRegions: (variables: ListRegionsVariables, signal?: AbortSignal
|
8088
|
+
getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal) => Promise<ListDatabasesResponse>;
|
8089
|
+
createDatabase: (variables: CreateDatabaseVariables, signal?: AbortSignal) => Promise<CreateDatabaseResponse>;
|
8090
|
+
deleteDatabase: (variables: DeleteDatabaseVariables, signal?: AbortSignal) => Promise<DeleteDatabaseResponse>;
|
8091
|
+
getDatabaseMetadata: (variables: GetDatabaseMetadataVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
8092
|
+
updateDatabaseMetadata: (variables: UpdateDatabaseMetadataVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
8093
|
+
renameDatabase: (variables: RenameDatabaseVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
8094
|
+
getDatabaseGithubSettings: (variables: GetDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<DatabaseGithubSettings>;
|
8095
|
+
updateDatabaseGithubSettings: (variables: UpdateDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<DatabaseGithubSettings>;
|
8096
|
+
deleteDatabaseGithubSettings: (variables: DeleteDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<undefined>;
|
8097
|
+
listRegions: (variables: ListRegionsVariables, signal?: AbortSignal) => Promise<ListRegionsResponse>;
|
7074
8098
|
};
|
7075
8099
|
};
|
7076
8100
|
|
@@ -7093,6 +8117,27 @@ declare function parseWorkspacesUrlParts(url: string): {
|
|
7093
8117
|
host: HostAliases;
|
7094
8118
|
} | null;
|
7095
8119
|
|
8120
|
+
type ApiExtraProps = Omit<FetcherExtraProps, 'endpoint'>;
|
8121
|
+
interface XataApiClientOptions {
|
8122
|
+
fetch?: FetchImpl;
|
8123
|
+
apiKey?: string;
|
8124
|
+
host?: HostProvider;
|
8125
|
+
trace?: TraceFunction;
|
8126
|
+
clientName?: string;
|
8127
|
+
xataAgentExtra?: Record<string, string>;
|
8128
|
+
}
|
8129
|
+
type UserProps = {
|
8130
|
+
headers?: Record<string, unknown>;
|
8131
|
+
};
|
8132
|
+
type XataApiProxy = {
|
8133
|
+
[Tag in keyof typeof operationsByTag]: {
|
8134
|
+
[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;
|
8135
|
+
};
|
8136
|
+
};
|
8137
|
+
declare const XataApiClient_base: new (options?: XataApiClientOptions) => XataApiProxy;
|
8138
|
+
declare class XataApiClient extends XataApiClient_base {
|
8139
|
+
}
|
8140
|
+
|
7096
8141
|
type responses_AggResponse = AggResponse;
|
7097
8142
|
type responses_BranchMigrationPlan = BranchMigrationPlan;
|
7098
8143
|
type responses_BulkError = BulkError;
|
@@ -7102,6 +8147,7 @@ type responses_QueryResponse = QueryResponse;
|
|
7102
8147
|
type responses_RateLimitError = RateLimitError;
|
7103
8148
|
type responses_RecordResponse = RecordResponse;
|
7104
8149
|
type responses_RecordUpdateResponse = RecordUpdateResponse;
|
8150
|
+
type responses_SQLBatchResponse = SQLBatchResponse;
|
7105
8151
|
type responses_SQLResponse = SQLResponse;
|
7106
8152
|
type responses_SchemaCompareResponse = SchemaCompareResponse;
|
7107
8153
|
type responses_SchemaUpdateResponse = SchemaUpdateResponse;
|
@@ -7109,7 +8155,7 @@ type responses_SearchResponse = SearchResponse;
|
|
7109
8155
|
type responses_ServiceUnavailableError = ServiceUnavailableError;
|
7110
8156
|
type responses_SummarizeResponse = SummarizeResponse;
|
7111
8157
|
declare namespace responses {
|
7112
|
-
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 };
|
8158
|
+
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 };
|
7113
8159
|
}
|
7114
8160
|
|
7115
8161
|
type schemas_APIKeyName = APIKeyName;
|
@@ -7124,14 +8170,17 @@ type schemas_AutoscalingConfigResponse = AutoscalingConfigResponse;
|
|
7124
8170
|
type schemas_AverageAgg = AverageAgg;
|
7125
8171
|
type schemas_BoosterExpression = BoosterExpression;
|
7126
8172
|
type schemas_Branch = Branch;
|
8173
|
+
type schemas_BranchDetails = BranchDetails;
|
7127
8174
|
type schemas_BranchMigration = BranchMigration;
|
7128
8175
|
type schemas_BranchOp = BranchOp;
|
7129
8176
|
type schemas_BranchSchema = BranchSchema;
|
8177
|
+
type schemas_BranchState = BranchState;
|
7130
8178
|
type schemas_BranchWithCopyID = BranchWithCopyID;
|
7131
8179
|
type schemas_ClusterConfiguration = ClusterConfiguration;
|
7132
8180
|
type schemas_ClusterConfigurationResponse = ClusterConfigurationResponse;
|
7133
8181
|
type schemas_ClusterCreateDetails = ClusterCreateDetails;
|
7134
|
-
type
|
8182
|
+
type schemas_ClusterDeleteMetadata = ClusterDeleteMetadata;
|
8183
|
+
type schemas_ClusterExtensionInstallationResponse = ClusterExtensionInstallationResponse;
|
7135
8184
|
type schemas_ClusterMetadata = ClusterMetadata;
|
7136
8185
|
type schemas_ClusterResponse = ClusterResponse;
|
7137
8186
|
type schemas_ClusterShortMetadata = ClusterShortMetadata;
|
@@ -7148,6 +8197,7 @@ type schemas_ColumnOpRename = ColumnOpRename;
|
|
7148
8197
|
type schemas_ColumnVector = ColumnVector;
|
7149
8198
|
type schemas_ColumnsProjection = ColumnsProjection;
|
7150
8199
|
type schemas_Commit = Commit;
|
8200
|
+
type schemas_CompleteMigrationResponse = CompleteMigrationResponse;
|
7151
8201
|
type schemas_CountAgg = CountAgg;
|
7152
8202
|
type schemas_DBBranch = DBBranch;
|
7153
8203
|
type schemas_DBBranchName = DBBranchName;
|
@@ -7157,6 +8207,7 @@ type schemas_DatabaseGithubSettings = DatabaseGithubSettings;
|
|
7157
8207
|
type schemas_DatabaseMetadata = DatabaseMetadata;
|
7158
8208
|
type schemas_DatabaseSettings = DatabaseSettings;
|
7159
8209
|
type schemas_DateHistogramAgg = DateHistogramAgg;
|
8210
|
+
type schemas_ExtensionDetails = ExtensionDetails;
|
7160
8211
|
type schemas_FileAccessID = FileAccessID;
|
7161
8212
|
type schemas_FileItemID = FileItemID;
|
7162
8213
|
type schemas_FileName = FileName;
|
@@ -7172,6 +8223,7 @@ type schemas_FilterPredicateRangeOp = FilterPredicateRangeOp;
|
|
7172
8223
|
type schemas_FilterRangeValue = FilterRangeValue;
|
7173
8224
|
type schemas_FilterValue = FilterValue;
|
7174
8225
|
type schemas_FuzzinessExpression = FuzzinessExpression;
|
8226
|
+
type schemas_GetMigrationJobsResponse = GetMigrationJobsResponse;
|
7175
8227
|
type schemas_HighlightExpression = HighlightExpression;
|
7176
8228
|
type schemas_InputFile = InputFile;
|
7177
8229
|
type schemas_InputFileArray = InputFileArray;
|
@@ -7179,6 +8231,8 @@ type schemas_InputFileEntry = InputFileEntry;
|
|
7179
8231
|
type schemas_InviteID = InviteID;
|
7180
8232
|
type schemas_InviteKey = InviteKey;
|
7181
8233
|
type schemas_ListBranchesResponse = ListBranchesResponse;
|
8234
|
+
type schemas_ListClusterBranchesResponse = ListClusterBranchesResponse;
|
8235
|
+
type schemas_ListClusterExtensionsResponse = ListClusterExtensionsResponse;
|
7182
8236
|
type schemas_ListClustersResponse = ListClustersResponse;
|
7183
8237
|
type schemas_ListDatabasesResponse = ListDatabasesResponse;
|
7184
8238
|
type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
|
@@ -7187,18 +8241,24 @@ type schemas_MaintenanceConfig = MaintenanceConfig;
|
|
7187
8241
|
type schemas_MaintenanceConfigResponse = MaintenanceConfigResponse;
|
7188
8242
|
type schemas_MaxAgg = MaxAgg;
|
7189
8243
|
type schemas_MediaType = MediaType;
|
8244
|
+
type schemas_MetricData = MetricData;
|
8245
|
+
type schemas_MetricMessage = MetricMessage;
|
7190
8246
|
type schemas_MetricsDatapoint = MetricsDatapoint;
|
7191
8247
|
type schemas_MetricsLatency = MetricsLatency;
|
8248
|
+
type schemas_MetricsResponse = MetricsResponse;
|
7192
8249
|
type schemas_Migration = Migration;
|
7193
8250
|
type schemas_MigrationColumnOp = MigrationColumnOp;
|
8251
|
+
type schemas_MigrationDescription = MigrationDescription;
|
7194
8252
|
type schemas_MigrationHistoryItem = MigrationHistoryItem;
|
7195
8253
|
type schemas_MigrationHistoryResponse = MigrationHistoryResponse;
|
7196
8254
|
type schemas_MigrationJobID = MigrationJobID;
|
8255
|
+
type schemas_MigrationJobItem = MigrationJobItem;
|
7197
8256
|
type schemas_MigrationJobStatus = MigrationJobStatus;
|
7198
8257
|
type schemas_MigrationJobStatusResponse = MigrationJobStatusResponse;
|
7199
8258
|
type schemas_MigrationJobType = MigrationJobType;
|
7200
8259
|
type schemas_MigrationObject = MigrationObject;
|
7201
8260
|
type schemas_MigrationOp = MigrationOp;
|
8261
|
+
type schemas_MigrationOperationDescription = MigrationOperationDescription;
|
7202
8262
|
type schemas_MigrationRequest = MigrationRequest;
|
7203
8263
|
type schemas_MigrationRequestNumber = MigrationRequestNumber;
|
7204
8264
|
type schemas_MigrationTableOp = MigrationTableOp;
|
@@ -7212,11 +8272,9 @@ type schemas_OAuthResponseType = OAuthResponseType;
|
|
7212
8272
|
type schemas_OAuthScope = OAuthScope;
|
7213
8273
|
type schemas_ObjectValue = ObjectValue;
|
7214
8274
|
type schemas_PageConfig = PageConfig;
|
7215
|
-
type schemas_PageResponse = PageResponse;
|
7216
|
-
type schemas_PageSize = PageSize;
|
7217
|
-
type schemas_PageToken = PageToken;
|
7218
8275
|
type schemas_PercentilesAgg = PercentilesAgg;
|
7219
8276
|
type schemas_PrefixExpression = PrefixExpression;
|
8277
|
+
type schemas_PreparedStatement = PreparedStatement;
|
7220
8278
|
type schemas_ProjectionConfig = ProjectionConfig;
|
7221
8279
|
type schemas_QueryColumnsProjection = QueryColumnsProjection;
|
7222
8280
|
type schemas_RecordID = RecordID;
|
@@ -7225,13 +8283,21 @@ type schemas_RecordsMetadata = RecordsMetadata;
|
|
7225
8283
|
type schemas_Region = Region;
|
7226
8284
|
type schemas_RevLink = RevLink;
|
7227
8285
|
type schemas_Role = Role;
|
8286
|
+
type schemas_RollbackMigrationResponse = RollbackMigrationResponse;
|
8287
|
+
type schemas_SQLConsistency = SQLConsistency;
|
7228
8288
|
type schemas_SQLRecord = SQLRecord;
|
8289
|
+
type schemas_SQLResponseArray = SQLResponseArray;
|
8290
|
+
type schemas_SQLResponseBase = SQLResponseBase;
|
8291
|
+
type schemas_SQLResponseJSON = SQLResponseJSON;
|
7229
8292
|
type schemas_Schema = Schema;
|
7230
8293
|
type schemas_SchemaEditScript = SchemaEditScript;
|
7231
8294
|
type schemas_SearchPageConfig = SearchPageConfig;
|
7232
8295
|
type schemas_SortExpression = SortExpression;
|
7233
8296
|
type schemas_SortOrder = SortOrder;
|
8297
|
+
type schemas_StartMigrationResponse = StartMigrationResponse;
|
7234
8298
|
type schemas_StartedFromMetadata = StartedFromMetadata;
|
8299
|
+
type schemas_StorageConfig = StorageConfig;
|
8300
|
+
type schemas_StorageConfigResponse = StorageConfigResponse;
|
7235
8301
|
type schemas_SumAgg = SumAgg;
|
7236
8302
|
type schemas_SummaryExpression = SummaryExpression;
|
7237
8303
|
type schemas_SummaryExpressionList = SummaryExpressionList;
|
@@ -7243,6 +8309,9 @@ type schemas_TableOpRemove = TableOpRemove;
|
|
7243
8309
|
type schemas_TableOpRename = TableOpRename;
|
7244
8310
|
type schemas_TableRename = TableRename;
|
7245
8311
|
type schemas_TargetExpression = TargetExpression;
|
8312
|
+
type schemas_TaskID = TaskID;
|
8313
|
+
type schemas_TaskStatus = TaskStatus;
|
8314
|
+
type schemas_TaskStatusResponse = TaskStatusResponse;
|
7246
8315
|
type schemas_TopValuesAgg = TopValuesAgg;
|
7247
8316
|
type schemas_TransactionDeleteOp = TransactionDeleteOp;
|
7248
8317
|
type schemas_TransactionError = TransactionError;
|
@@ -7270,772 +8339,13 @@ type schemas_WorkspaceMeta = WorkspaceMeta;
|
|
7270
8339
|
type schemas_WorkspacePlan = WorkspacePlan;
|
7271
8340
|
type schemas_WorkspaceSettings = WorkspaceSettings;
|
7272
8341
|
declare namespace schemas {
|
7273
|
-
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,
|
7274
|
-
}
|
7275
|
-
|
7276
|
-
type ApiExtraProps = Omit<FetcherExtraProps, 'endpoint'>;
|
7277
|
-
interface XataApiClientOptions {
|
7278
|
-
fetch?: FetchImpl;
|
7279
|
-
apiKey?: string;
|
7280
|
-
host?: HostProvider;
|
7281
|
-
trace?: TraceFunction;
|
7282
|
-
clientName?: string;
|
7283
|
-
xataAgentExtra?: Record<string, string>;
|
7284
|
-
}
|
7285
|
-
declare class XataApiClient {
|
7286
|
-
#private;
|
7287
|
-
constructor(options?: XataApiClientOptions);
|
7288
|
-
get user(): UserApi;
|
7289
|
-
get authentication(): AuthenticationApi;
|
7290
|
-
get workspaces(): WorkspaceApi;
|
7291
|
-
get invites(): InvitesApi;
|
7292
|
-
get database(): DatabaseApi;
|
7293
|
-
get branches(): BranchApi;
|
7294
|
-
get migrations(): MigrationsApi;
|
7295
|
-
get migrationRequests(): MigrationRequestsApi;
|
7296
|
-
get tables(): TableApi;
|
7297
|
-
get records(): RecordsApi;
|
7298
|
-
get files(): FilesApi;
|
7299
|
-
get searchAndFilter(): SearchAndFilterApi;
|
7300
|
-
}
|
7301
|
-
declare class UserApi {
|
7302
|
-
private extraProps;
|
7303
|
-
constructor(extraProps: ApiExtraProps);
|
7304
|
-
getUser(): Promise<UserWithID>;
|
7305
|
-
updateUser({ user }: {
|
7306
|
-
user: User;
|
7307
|
-
}): Promise<UserWithID>;
|
7308
|
-
deleteUser(): Promise<void>;
|
7309
|
-
}
|
7310
|
-
declare class AuthenticationApi {
|
7311
|
-
private extraProps;
|
7312
|
-
constructor(extraProps: ApiExtraProps);
|
7313
|
-
getUserAPIKeys(): Promise<GetUserAPIKeysResponse>;
|
7314
|
-
createUserAPIKey({ name }: {
|
7315
|
-
name: APIKeyName;
|
7316
|
-
}): Promise<CreateUserAPIKeyResponse>;
|
7317
|
-
deleteUserAPIKey({ name }: {
|
7318
|
-
name: APIKeyName;
|
7319
|
-
}): Promise<void>;
|
7320
|
-
}
|
7321
|
-
declare class WorkspaceApi {
|
7322
|
-
private extraProps;
|
7323
|
-
constructor(extraProps: ApiExtraProps);
|
7324
|
-
getWorkspacesList(): Promise<GetWorkspacesListResponse>;
|
7325
|
-
createWorkspace({ data }: {
|
7326
|
-
data: WorkspaceMeta;
|
7327
|
-
}): Promise<Workspace>;
|
7328
|
-
getWorkspace({ workspace }: {
|
7329
|
-
workspace: WorkspaceID;
|
7330
|
-
}): Promise<Workspace>;
|
7331
|
-
updateWorkspace({ workspace, update }: {
|
7332
|
-
workspace: WorkspaceID;
|
7333
|
-
update: WorkspaceMeta;
|
7334
|
-
}): Promise<Workspace>;
|
7335
|
-
deleteWorkspace({ workspace }: {
|
7336
|
-
workspace: WorkspaceID;
|
7337
|
-
}): Promise<void>;
|
7338
|
-
getWorkspaceMembersList({ workspace }: {
|
7339
|
-
workspace: WorkspaceID;
|
7340
|
-
}): Promise<WorkspaceMembers>;
|
7341
|
-
updateWorkspaceMemberRole({ workspace, user, role }: {
|
7342
|
-
workspace: WorkspaceID;
|
7343
|
-
user: UserID;
|
7344
|
-
role: Role;
|
7345
|
-
}): Promise<void>;
|
7346
|
-
removeWorkspaceMember({ workspace, user }: {
|
7347
|
-
workspace: WorkspaceID;
|
7348
|
-
user: UserID;
|
7349
|
-
}): Promise<void>;
|
7350
|
-
}
|
7351
|
-
declare class InvitesApi {
|
7352
|
-
private extraProps;
|
7353
|
-
constructor(extraProps: ApiExtraProps);
|
7354
|
-
inviteWorkspaceMember({ workspace, email, role }: {
|
7355
|
-
workspace: WorkspaceID;
|
7356
|
-
email: string;
|
7357
|
-
role: Role;
|
7358
|
-
}): Promise<WorkspaceInvite>;
|
7359
|
-
updateWorkspaceMemberInvite({ workspace, invite, role }: {
|
7360
|
-
workspace: WorkspaceID;
|
7361
|
-
invite: InviteID;
|
7362
|
-
role: Role;
|
7363
|
-
}): Promise<WorkspaceInvite>;
|
7364
|
-
cancelWorkspaceMemberInvite({ workspace, invite }: {
|
7365
|
-
workspace: WorkspaceID;
|
7366
|
-
invite: InviteID;
|
7367
|
-
}): Promise<void>;
|
7368
|
-
acceptWorkspaceMemberInvite({ workspace, key }: {
|
7369
|
-
workspace: WorkspaceID;
|
7370
|
-
key: InviteKey;
|
7371
|
-
}): Promise<void>;
|
7372
|
-
resendWorkspaceMemberInvite({ workspace, invite }: {
|
7373
|
-
workspace: WorkspaceID;
|
7374
|
-
invite: InviteID;
|
7375
|
-
}): Promise<void>;
|
7376
|
-
}
|
7377
|
-
declare class BranchApi {
|
7378
|
-
private extraProps;
|
7379
|
-
constructor(extraProps: ApiExtraProps);
|
7380
|
-
getBranchList({ workspace, region, database }: {
|
7381
|
-
workspace: WorkspaceID;
|
7382
|
-
region: string;
|
7383
|
-
database: DBName$1;
|
7384
|
-
}): Promise<ListBranchesResponse>;
|
7385
|
-
getBranchDetails({ workspace, region, database, branch }: {
|
7386
|
-
workspace: WorkspaceID;
|
7387
|
-
region: string;
|
7388
|
-
database: DBName$1;
|
7389
|
-
branch: BranchName$1;
|
7390
|
-
}): Promise<DBBranch>;
|
7391
|
-
createBranch({ workspace, region, database, branch, from, metadata }: {
|
7392
|
-
workspace: WorkspaceID;
|
7393
|
-
region: string;
|
7394
|
-
database: DBName$1;
|
7395
|
-
branch: BranchName$1;
|
7396
|
-
from?: string;
|
7397
|
-
metadata?: BranchMetadata$1;
|
7398
|
-
}): Promise<CreateBranchResponse>;
|
7399
|
-
deleteBranch({ workspace, region, database, branch }: {
|
7400
|
-
workspace: WorkspaceID;
|
7401
|
-
region: string;
|
7402
|
-
database: DBName$1;
|
7403
|
-
branch: BranchName$1;
|
7404
|
-
}): Promise<DeleteBranchResponse>;
|
7405
|
-
copyBranch({ workspace, region, database, branch, destinationBranch, limit }: {
|
7406
|
-
workspace: WorkspaceID;
|
7407
|
-
region: string;
|
7408
|
-
database: DBName$1;
|
7409
|
-
branch: BranchName$1;
|
7410
|
-
destinationBranch: BranchName$1;
|
7411
|
-
limit?: number;
|
7412
|
-
}): Promise<BranchWithCopyID>;
|
7413
|
-
updateBranchMetadata({ workspace, region, database, branch, metadata }: {
|
7414
|
-
workspace: WorkspaceID;
|
7415
|
-
region: string;
|
7416
|
-
database: DBName$1;
|
7417
|
-
branch: BranchName$1;
|
7418
|
-
metadata: BranchMetadata$1;
|
7419
|
-
}): Promise<void>;
|
7420
|
-
getBranchMetadata({ workspace, region, database, branch }: {
|
7421
|
-
workspace: WorkspaceID;
|
7422
|
-
region: string;
|
7423
|
-
database: DBName$1;
|
7424
|
-
branch: BranchName$1;
|
7425
|
-
}): Promise<BranchMetadata$1>;
|
7426
|
-
getBranchStats({ workspace, region, database, branch }: {
|
7427
|
-
workspace: WorkspaceID;
|
7428
|
-
region: string;
|
7429
|
-
database: DBName$1;
|
7430
|
-
branch: BranchName$1;
|
7431
|
-
}): Promise<GetBranchStatsResponse>;
|
7432
|
-
getGitBranchesMapping({ workspace, region, database }: {
|
7433
|
-
workspace: WorkspaceID;
|
7434
|
-
region: string;
|
7435
|
-
database: DBName$1;
|
7436
|
-
}): Promise<ListGitBranchesResponse>;
|
7437
|
-
addGitBranchesEntry({ workspace, region, database, gitBranch, xataBranch }: {
|
7438
|
-
workspace: WorkspaceID;
|
7439
|
-
region: string;
|
7440
|
-
database: DBName$1;
|
7441
|
-
gitBranch: string;
|
7442
|
-
xataBranch: BranchName$1;
|
7443
|
-
}): Promise<AddGitBranchesEntryResponse>;
|
7444
|
-
removeGitBranchesEntry({ workspace, region, database, gitBranch }: {
|
7445
|
-
workspace: WorkspaceID;
|
7446
|
-
region: string;
|
7447
|
-
database: DBName$1;
|
7448
|
-
gitBranch: string;
|
7449
|
-
}): Promise<void>;
|
7450
|
-
resolveBranch({ workspace, region, database, gitBranch, fallbackBranch }: {
|
7451
|
-
workspace: WorkspaceID;
|
7452
|
-
region: string;
|
7453
|
-
database: DBName$1;
|
7454
|
-
gitBranch?: string;
|
7455
|
-
fallbackBranch?: string;
|
7456
|
-
}): Promise<ResolveBranchResponse>;
|
7457
|
-
pgRollMigrationHistory({ workspace, region, database, branch }: {
|
7458
|
-
workspace: WorkspaceID;
|
7459
|
-
region: string;
|
7460
|
-
database: DBName$1;
|
7461
|
-
branch: BranchName$1;
|
7462
|
-
}): Promise<MigrationHistoryResponse>;
|
7463
|
-
applyMigration({ workspace, region, database, branch, migration }: {
|
7464
|
-
workspace: WorkspaceID;
|
7465
|
-
region: string;
|
7466
|
-
database: DBName$1;
|
7467
|
-
branch: BranchName$1;
|
7468
|
-
migration: Migration;
|
7469
|
-
}): Promise<ApplyMigrationResponse>;
|
7470
|
-
}
|
7471
|
-
declare class TableApi {
|
7472
|
-
private extraProps;
|
7473
|
-
constructor(extraProps: ApiExtraProps);
|
7474
|
-
createTable({ workspace, region, database, branch, table }: {
|
7475
|
-
workspace: WorkspaceID;
|
7476
|
-
region: string;
|
7477
|
-
database: DBName$1;
|
7478
|
-
branch: BranchName$1;
|
7479
|
-
table: TableName;
|
7480
|
-
}): Promise<CreateTableResponse>;
|
7481
|
-
deleteTable({ workspace, region, database, branch, table }: {
|
7482
|
-
workspace: WorkspaceID;
|
7483
|
-
region: string;
|
7484
|
-
database: DBName$1;
|
7485
|
-
branch: BranchName$1;
|
7486
|
-
table: TableName;
|
7487
|
-
}): Promise<DeleteTableResponse>;
|
7488
|
-
updateTable({ workspace, region, database, branch, table, update }: {
|
7489
|
-
workspace: WorkspaceID;
|
7490
|
-
region: string;
|
7491
|
-
database: DBName$1;
|
7492
|
-
branch: BranchName$1;
|
7493
|
-
table: TableName;
|
7494
|
-
update: UpdateTableRequestBody;
|
7495
|
-
}): Promise<SchemaUpdateResponse>;
|
7496
|
-
getTableSchema({ workspace, region, database, branch, table }: {
|
7497
|
-
workspace: WorkspaceID;
|
7498
|
-
region: string;
|
7499
|
-
database: DBName$1;
|
7500
|
-
branch: BranchName$1;
|
7501
|
-
table: TableName;
|
7502
|
-
}): Promise<GetTableSchemaResponse>;
|
7503
|
-
setTableSchema({ workspace, region, database, branch, table, schema }: {
|
7504
|
-
workspace: WorkspaceID;
|
7505
|
-
region: string;
|
7506
|
-
database: DBName$1;
|
7507
|
-
branch: BranchName$1;
|
7508
|
-
table: TableName;
|
7509
|
-
schema: SetTableSchemaRequestBody;
|
7510
|
-
}): Promise<SchemaUpdateResponse>;
|
7511
|
-
getTableColumns({ workspace, region, database, branch, table }: {
|
7512
|
-
workspace: WorkspaceID;
|
7513
|
-
region: string;
|
7514
|
-
database: DBName$1;
|
7515
|
-
branch: BranchName$1;
|
7516
|
-
table: TableName;
|
7517
|
-
}): Promise<GetTableColumnsResponse>;
|
7518
|
-
addTableColumn({ workspace, region, database, branch, table, column }: {
|
7519
|
-
workspace: WorkspaceID;
|
7520
|
-
region: string;
|
7521
|
-
database: DBName$1;
|
7522
|
-
branch: BranchName$1;
|
7523
|
-
table: TableName;
|
7524
|
-
column: Column;
|
7525
|
-
}): Promise<SchemaUpdateResponse>;
|
7526
|
-
getColumn({ workspace, region, database, branch, table, column }: {
|
7527
|
-
workspace: WorkspaceID;
|
7528
|
-
region: string;
|
7529
|
-
database: DBName$1;
|
7530
|
-
branch: BranchName$1;
|
7531
|
-
table: TableName;
|
7532
|
-
column: ColumnName;
|
7533
|
-
}): Promise<Column>;
|
7534
|
-
updateColumn({ workspace, region, database, branch, table, column, update }: {
|
7535
|
-
workspace: WorkspaceID;
|
7536
|
-
region: string;
|
7537
|
-
database: DBName$1;
|
7538
|
-
branch: BranchName$1;
|
7539
|
-
table: TableName;
|
7540
|
-
column: ColumnName;
|
7541
|
-
update: UpdateColumnRequestBody;
|
7542
|
-
}): Promise<SchemaUpdateResponse>;
|
7543
|
-
deleteColumn({ workspace, region, database, branch, table, column }: {
|
7544
|
-
workspace: WorkspaceID;
|
7545
|
-
region: string;
|
7546
|
-
database: DBName$1;
|
7547
|
-
branch: BranchName$1;
|
7548
|
-
table: TableName;
|
7549
|
-
column: ColumnName;
|
7550
|
-
}): Promise<SchemaUpdateResponse>;
|
7551
|
-
}
|
7552
|
-
declare class RecordsApi {
|
7553
|
-
private extraProps;
|
7554
|
-
constructor(extraProps: ApiExtraProps);
|
7555
|
-
insertRecord({ workspace, region, database, branch, table, record, columns }: {
|
7556
|
-
workspace: WorkspaceID;
|
7557
|
-
region: string;
|
7558
|
-
database: DBName$1;
|
7559
|
-
branch: BranchName$1;
|
7560
|
-
table: TableName;
|
7561
|
-
record: Record<string, any>;
|
7562
|
-
columns?: ColumnsProjection;
|
7563
|
-
}): Promise<RecordUpdateResponse>;
|
7564
|
-
getRecord({ workspace, region, database, branch, table, id, columns }: {
|
7565
|
-
workspace: WorkspaceID;
|
7566
|
-
region: string;
|
7567
|
-
database: DBName$1;
|
7568
|
-
branch: BranchName$1;
|
7569
|
-
table: TableName;
|
7570
|
-
id: RecordID;
|
7571
|
-
columns?: ColumnsProjection;
|
7572
|
-
}): Promise<XataRecord$1>;
|
7573
|
-
insertRecordWithID({ workspace, region, database, branch, table, id, record, columns, createOnly, ifVersion }: {
|
7574
|
-
workspace: WorkspaceID;
|
7575
|
-
region: string;
|
7576
|
-
database: DBName$1;
|
7577
|
-
branch: BranchName$1;
|
7578
|
-
table: TableName;
|
7579
|
-
id: RecordID;
|
7580
|
-
record: Record<string, any>;
|
7581
|
-
columns?: ColumnsProjection;
|
7582
|
-
createOnly?: boolean;
|
7583
|
-
ifVersion?: number;
|
7584
|
-
}): Promise<RecordUpdateResponse>;
|
7585
|
-
updateRecordWithID({ workspace, region, database, branch, table, id, record, columns, ifVersion }: {
|
7586
|
-
workspace: WorkspaceID;
|
7587
|
-
region: string;
|
7588
|
-
database: DBName$1;
|
7589
|
-
branch: BranchName$1;
|
7590
|
-
table: TableName;
|
7591
|
-
id: RecordID;
|
7592
|
-
record: Record<string, any>;
|
7593
|
-
columns?: ColumnsProjection;
|
7594
|
-
ifVersion?: number;
|
7595
|
-
}): Promise<RecordUpdateResponse>;
|
7596
|
-
upsertRecordWithID({ workspace, region, database, branch, table, id, record, columns, ifVersion }: {
|
7597
|
-
workspace: WorkspaceID;
|
7598
|
-
region: string;
|
7599
|
-
database: DBName$1;
|
7600
|
-
branch: BranchName$1;
|
7601
|
-
table: TableName;
|
7602
|
-
id: RecordID;
|
7603
|
-
record: Record<string, any>;
|
7604
|
-
columns?: ColumnsProjection;
|
7605
|
-
ifVersion?: number;
|
7606
|
-
}): Promise<RecordUpdateResponse>;
|
7607
|
-
deleteRecord({ workspace, region, database, branch, table, id, columns }: {
|
7608
|
-
workspace: WorkspaceID;
|
7609
|
-
region: string;
|
7610
|
-
database: DBName$1;
|
7611
|
-
branch: BranchName$1;
|
7612
|
-
table: TableName;
|
7613
|
-
id: RecordID;
|
7614
|
-
columns?: ColumnsProjection;
|
7615
|
-
}): Promise<RecordUpdateResponse>;
|
7616
|
-
bulkInsertTableRecords({ workspace, region, database, branch, table, records, columns }: {
|
7617
|
-
workspace: WorkspaceID;
|
7618
|
-
region: string;
|
7619
|
-
database: DBName$1;
|
7620
|
-
branch: BranchName$1;
|
7621
|
-
table: TableName;
|
7622
|
-
records: Record<string, any>[];
|
7623
|
-
columns?: ColumnsProjection;
|
7624
|
-
}): Promise<BulkInsertResponse>;
|
7625
|
-
branchTransaction({ workspace, region, database, branch, operations }: {
|
7626
|
-
workspace: WorkspaceID;
|
7627
|
-
region: string;
|
7628
|
-
database: DBName$1;
|
7629
|
-
branch: BranchName$1;
|
7630
|
-
operations: TransactionOperation$1[];
|
7631
|
-
}): Promise<TransactionSuccess>;
|
7632
|
-
}
|
7633
|
-
declare class FilesApi {
|
7634
|
-
private extraProps;
|
7635
|
-
constructor(extraProps: ApiExtraProps);
|
7636
|
-
getFileItem({ workspace, region, database, branch, table, record, column, fileId }: {
|
7637
|
-
workspace: WorkspaceID;
|
7638
|
-
region: string;
|
7639
|
-
database: DBName$1;
|
7640
|
-
branch: BranchName$1;
|
7641
|
-
table: TableName;
|
7642
|
-
record: RecordID;
|
7643
|
-
column: ColumnName;
|
7644
|
-
fileId: string;
|
7645
|
-
}): Promise<any>;
|
7646
|
-
putFileItem({ workspace, region, database, branch, table, record, column, fileId, file }: {
|
7647
|
-
workspace: WorkspaceID;
|
7648
|
-
region: string;
|
7649
|
-
database: DBName$1;
|
7650
|
-
branch: BranchName$1;
|
7651
|
-
table: TableName;
|
7652
|
-
record: RecordID;
|
7653
|
-
column: ColumnName;
|
7654
|
-
fileId: string;
|
7655
|
-
file: any;
|
7656
|
-
}): Promise<PutFileResponse>;
|
7657
|
-
deleteFileItem({ workspace, region, database, branch, table, record, column, fileId }: {
|
7658
|
-
workspace: WorkspaceID;
|
7659
|
-
region: string;
|
7660
|
-
database: DBName$1;
|
7661
|
-
branch: BranchName$1;
|
7662
|
-
table: TableName;
|
7663
|
-
record: RecordID;
|
7664
|
-
column: ColumnName;
|
7665
|
-
fileId: string;
|
7666
|
-
}): Promise<PutFileResponse>;
|
7667
|
-
getFile({ workspace, region, database, branch, table, record, column }: {
|
7668
|
-
workspace: WorkspaceID;
|
7669
|
-
region: string;
|
7670
|
-
database: DBName$1;
|
7671
|
-
branch: BranchName$1;
|
7672
|
-
table: TableName;
|
7673
|
-
record: RecordID;
|
7674
|
-
column: ColumnName;
|
7675
|
-
}): Promise<any>;
|
7676
|
-
putFile({ workspace, region, database, branch, table, record, column, file }: {
|
7677
|
-
workspace: WorkspaceID;
|
7678
|
-
region: string;
|
7679
|
-
database: DBName$1;
|
7680
|
-
branch: BranchName$1;
|
7681
|
-
table: TableName;
|
7682
|
-
record: RecordID;
|
7683
|
-
column: ColumnName;
|
7684
|
-
file: Blob;
|
7685
|
-
}): Promise<PutFileResponse>;
|
7686
|
-
deleteFile({ workspace, region, database, branch, table, record, column }: {
|
7687
|
-
workspace: WorkspaceID;
|
7688
|
-
region: string;
|
7689
|
-
database: DBName$1;
|
7690
|
-
branch: BranchName$1;
|
7691
|
-
table: TableName;
|
7692
|
-
record: RecordID;
|
7693
|
-
column: ColumnName;
|
7694
|
-
}): Promise<PutFileResponse>;
|
7695
|
-
fileAccess({ workspace, region, fileId, verify }: {
|
7696
|
-
workspace: WorkspaceID;
|
7697
|
-
region: string;
|
7698
|
-
fileId: string;
|
7699
|
-
verify?: FileSignature;
|
7700
|
-
}): Promise<any>;
|
7701
|
-
}
|
7702
|
-
declare class SearchAndFilterApi {
|
7703
|
-
private extraProps;
|
7704
|
-
constructor(extraProps: ApiExtraProps);
|
7705
|
-
queryTable({ workspace, region, database, branch, table, filter, sort, page, columns, consistency }: {
|
7706
|
-
workspace: WorkspaceID;
|
7707
|
-
region: string;
|
7708
|
-
database: DBName$1;
|
7709
|
-
branch: BranchName$1;
|
7710
|
-
table: TableName;
|
7711
|
-
filter?: FilterExpression;
|
7712
|
-
sort?: SortExpression;
|
7713
|
-
page?: PageConfig;
|
7714
|
-
columns?: ColumnsProjection;
|
7715
|
-
consistency?: 'strong' | 'eventual';
|
7716
|
-
}): Promise<QueryResponse>;
|
7717
|
-
searchTable({ workspace, region, database, branch, table, query, fuzziness, target, prefix, filter, highlight, boosters }: {
|
7718
|
-
workspace: WorkspaceID;
|
7719
|
-
region: string;
|
7720
|
-
database: DBName$1;
|
7721
|
-
branch: BranchName$1;
|
7722
|
-
table: TableName;
|
7723
|
-
query: string;
|
7724
|
-
fuzziness?: FuzzinessExpression;
|
7725
|
-
target?: TargetExpression;
|
7726
|
-
prefix?: PrefixExpression;
|
7727
|
-
filter?: FilterExpression;
|
7728
|
-
highlight?: HighlightExpression;
|
7729
|
-
boosters?: BoosterExpression[];
|
7730
|
-
}): Promise<SearchResponse>;
|
7731
|
-
searchBranch({ workspace, region, database, branch, tables, query, fuzziness, prefix, highlight }: {
|
7732
|
-
workspace: WorkspaceID;
|
7733
|
-
region: string;
|
7734
|
-
database: DBName$1;
|
7735
|
-
branch: BranchName$1;
|
7736
|
-
tables?: (string | {
|
7737
|
-
table: string;
|
7738
|
-
filter?: FilterExpression;
|
7739
|
-
target?: TargetExpression;
|
7740
|
-
boosters?: BoosterExpression[];
|
7741
|
-
})[];
|
7742
|
-
query: string;
|
7743
|
-
fuzziness?: FuzzinessExpression;
|
7744
|
-
prefix?: PrefixExpression;
|
7745
|
-
highlight?: HighlightExpression;
|
7746
|
-
}): Promise<SearchResponse>;
|
7747
|
-
vectorSearchTable({ workspace, region, database, branch, table, queryVector, column, similarityFunction, size, filter }: {
|
7748
|
-
workspace: WorkspaceID;
|
7749
|
-
region: string;
|
7750
|
-
database: DBName$1;
|
7751
|
-
branch: BranchName$1;
|
7752
|
-
table: TableName;
|
7753
|
-
queryVector: number[];
|
7754
|
-
column: string;
|
7755
|
-
similarityFunction?: string;
|
7756
|
-
size?: number;
|
7757
|
-
filter?: FilterExpression;
|
7758
|
-
}): Promise<SearchResponse>;
|
7759
|
-
askTable({ workspace, region, database, branch, table, options }: {
|
7760
|
-
workspace: WorkspaceID;
|
7761
|
-
region: string;
|
7762
|
-
database: DBName$1;
|
7763
|
-
branch: BranchName$1;
|
7764
|
-
table: TableName;
|
7765
|
-
options: AskTableRequestBody;
|
7766
|
-
}): Promise<AskTableResponse>;
|
7767
|
-
askTableSession({ workspace, region, database, branch, table, sessionId, message }: {
|
7768
|
-
workspace: WorkspaceID;
|
7769
|
-
region: string;
|
7770
|
-
database: DBName$1;
|
7771
|
-
branch: BranchName$1;
|
7772
|
-
table: TableName;
|
7773
|
-
sessionId: string;
|
7774
|
-
message: string;
|
7775
|
-
}): Promise<AskTableSessionResponse>;
|
7776
|
-
summarizeTable({ workspace, region, database, branch, table, filter, columns, summaries, sort, summariesFilter, page, consistency }: {
|
7777
|
-
workspace: WorkspaceID;
|
7778
|
-
region: string;
|
7779
|
-
database: DBName$1;
|
7780
|
-
branch: BranchName$1;
|
7781
|
-
table: TableName;
|
7782
|
-
filter?: FilterExpression;
|
7783
|
-
columns?: ColumnsProjection;
|
7784
|
-
summaries?: SummaryExpressionList;
|
7785
|
-
sort?: SortExpression;
|
7786
|
-
summariesFilter?: FilterExpression;
|
7787
|
-
page?: {
|
7788
|
-
size?: number;
|
7789
|
-
};
|
7790
|
-
consistency?: 'strong' | 'eventual';
|
7791
|
-
}): Promise<SummarizeResponse>;
|
7792
|
-
aggregateTable({ workspace, region, database, branch, table, filter, aggs }: {
|
7793
|
-
workspace: WorkspaceID;
|
7794
|
-
region: string;
|
7795
|
-
database: DBName$1;
|
7796
|
-
branch: BranchName$1;
|
7797
|
-
table: TableName;
|
7798
|
-
filter?: FilterExpression;
|
7799
|
-
aggs?: AggExpressionMap;
|
7800
|
-
}): Promise<AggResponse>;
|
7801
|
-
}
|
7802
|
-
declare class MigrationRequestsApi {
|
7803
|
-
private extraProps;
|
7804
|
-
constructor(extraProps: ApiExtraProps);
|
7805
|
-
queryMigrationRequests({ workspace, region, database, filter, sort, page, columns }: {
|
7806
|
-
workspace: WorkspaceID;
|
7807
|
-
region: string;
|
7808
|
-
database: DBName$1;
|
7809
|
-
filter?: FilterExpression;
|
7810
|
-
sort?: SortExpression;
|
7811
|
-
page?: PageConfig;
|
7812
|
-
columns?: ColumnsProjection;
|
7813
|
-
}): Promise<QueryMigrationRequestsResponse>;
|
7814
|
-
createMigrationRequest({ workspace, region, database, migration }: {
|
7815
|
-
workspace: WorkspaceID;
|
7816
|
-
region: string;
|
7817
|
-
database: DBName$1;
|
7818
|
-
migration: CreateMigrationRequestRequestBody;
|
7819
|
-
}): Promise<CreateMigrationRequestResponse>;
|
7820
|
-
getMigrationRequest({ workspace, region, database, migrationRequest }: {
|
7821
|
-
workspace: WorkspaceID;
|
7822
|
-
region: string;
|
7823
|
-
database: DBName$1;
|
7824
|
-
migrationRequest: MigrationRequestNumber;
|
7825
|
-
}): Promise<MigrationRequest>;
|
7826
|
-
updateMigrationRequest({ workspace, region, database, migrationRequest, update }: {
|
7827
|
-
workspace: WorkspaceID;
|
7828
|
-
region: string;
|
7829
|
-
database: DBName$1;
|
7830
|
-
migrationRequest: MigrationRequestNumber;
|
7831
|
-
update: UpdateMigrationRequestRequestBody;
|
7832
|
-
}): Promise<void>;
|
7833
|
-
listMigrationRequestsCommits({ workspace, region, database, migrationRequest, page }: {
|
7834
|
-
workspace: WorkspaceID;
|
7835
|
-
region: string;
|
7836
|
-
database: DBName$1;
|
7837
|
-
migrationRequest: MigrationRequestNumber;
|
7838
|
-
page?: {
|
7839
|
-
after?: string;
|
7840
|
-
before?: string;
|
7841
|
-
size?: number;
|
7842
|
-
};
|
7843
|
-
}): Promise<ListMigrationRequestsCommitsResponse>;
|
7844
|
-
compareMigrationRequest({ workspace, region, database, migrationRequest }: {
|
7845
|
-
workspace: WorkspaceID;
|
7846
|
-
region: string;
|
7847
|
-
database: DBName$1;
|
7848
|
-
migrationRequest: MigrationRequestNumber;
|
7849
|
-
}): Promise<SchemaCompareResponse>;
|
7850
|
-
getMigrationRequestIsMerged({ workspace, region, database, migrationRequest }: {
|
7851
|
-
workspace: WorkspaceID;
|
7852
|
-
region: string;
|
7853
|
-
database: DBName$1;
|
7854
|
-
migrationRequest: MigrationRequestNumber;
|
7855
|
-
}): Promise<GetMigrationRequestIsMergedResponse>;
|
7856
|
-
mergeMigrationRequest({ workspace, region, database, migrationRequest }: {
|
7857
|
-
workspace: WorkspaceID;
|
7858
|
-
region: string;
|
7859
|
-
database: DBName$1;
|
7860
|
-
migrationRequest: MigrationRequestNumber;
|
7861
|
-
}): Promise<BranchOp>;
|
7862
|
-
}
|
7863
|
-
declare class MigrationsApi {
|
7864
|
-
private extraProps;
|
7865
|
-
constructor(extraProps: ApiExtraProps);
|
7866
|
-
getBranchMigrationHistory({ workspace, region, database, branch, limit, startFrom }: {
|
7867
|
-
workspace: WorkspaceID;
|
7868
|
-
region: string;
|
7869
|
-
database: DBName$1;
|
7870
|
-
branch: BranchName$1;
|
7871
|
-
limit?: number;
|
7872
|
-
startFrom?: string;
|
7873
|
-
}): Promise<GetBranchMigrationHistoryResponse>;
|
7874
|
-
getBranchMigrationPlan({ workspace, region, database, branch, schema }: {
|
7875
|
-
workspace: WorkspaceID;
|
7876
|
-
region: string;
|
7877
|
-
database: DBName$1;
|
7878
|
-
branch: BranchName$1;
|
7879
|
-
schema: Schema;
|
7880
|
-
}): Promise<BranchMigrationPlan>;
|
7881
|
-
executeBranchMigrationPlan({ workspace, region, database, branch, plan }: {
|
7882
|
-
workspace: WorkspaceID;
|
7883
|
-
region: string;
|
7884
|
-
database: DBName$1;
|
7885
|
-
branch: BranchName$1;
|
7886
|
-
plan: ExecuteBranchMigrationPlanRequestBody;
|
7887
|
-
}): Promise<SchemaUpdateResponse>;
|
7888
|
-
getBranchSchemaHistory({ workspace, region, database, branch, page }: {
|
7889
|
-
workspace: WorkspaceID;
|
7890
|
-
region: string;
|
7891
|
-
database: DBName$1;
|
7892
|
-
branch: BranchName$1;
|
7893
|
-
page?: {
|
7894
|
-
after?: string;
|
7895
|
-
before?: string;
|
7896
|
-
size?: number;
|
7897
|
-
};
|
7898
|
-
}): Promise<GetBranchSchemaHistoryResponse>;
|
7899
|
-
compareBranchWithUserSchema({ workspace, region, database, branch, schema, schemaOperations, branchOperations }: {
|
7900
|
-
workspace: WorkspaceID;
|
7901
|
-
region: string;
|
7902
|
-
database: DBName$1;
|
7903
|
-
branch: BranchName$1;
|
7904
|
-
schema: Schema;
|
7905
|
-
schemaOperations?: MigrationOp[];
|
7906
|
-
branchOperations?: MigrationOp[];
|
7907
|
-
}): Promise<SchemaCompareResponse>;
|
7908
|
-
compareBranchSchemas({ workspace, region, database, branch, compare, sourceBranchOperations, targetBranchOperations }: {
|
7909
|
-
workspace: WorkspaceID;
|
7910
|
-
region: string;
|
7911
|
-
database: DBName$1;
|
7912
|
-
branch: BranchName$1;
|
7913
|
-
compare: BranchName$1;
|
7914
|
-
sourceBranchOperations?: MigrationOp[];
|
7915
|
-
targetBranchOperations?: MigrationOp[];
|
7916
|
-
}): Promise<SchemaCompareResponse>;
|
7917
|
-
updateBranchSchema({ workspace, region, database, branch, migration }: {
|
7918
|
-
workspace: WorkspaceID;
|
7919
|
-
region: string;
|
7920
|
-
database: DBName$1;
|
7921
|
-
branch: BranchName$1;
|
7922
|
-
migration: Migration;
|
7923
|
-
}): Promise<SchemaUpdateResponse>;
|
7924
|
-
previewBranchSchemaEdit({ workspace, region, database, branch, data }: {
|
7925
|
-
workspace: WorkspaceID;
|
7926
|
-
region: string;
|
7927
|
-
database: DBName$1;
|
7928
|
-
branch: BranchName$1;
|
7929
|
-
data: {
|
7930
|
-
edits?: SchemaEditScript;
|
7931
|
-
};
|
7932
|
-
}): Promise<PreviewBranchSchemaEditResponse>;
|
7933
|
-
applyBranchSchemaEdit({ workspace, region, database, branch, edits }: {
|
7934
|
-
workspace: WorkspaceID;
|
7935
|
-
region: string;
|
7936
|
-
database: DBName$1;
|
7937
|
-
branch: BranchName$1;
|
7938
|
-
edits: SchemaEditScript;
|
7939
|
-
}): Promise<SchemaUpdateResponse>;
|
7940
|
-
pushBranchMigrations({ workspace, region, database, branch, migrations }: {
|
7941
|
-
workspace: WorkspaceID;
|
7942
|
-
region: string;
|
7943
|
-
database: DBName$1;
|
7944
|
-
branch: BranchName$1;
|
7945
|
-
migrations: MigrationObject[];
|
7946
|
-
}): Promise<SchemaUpdateResponse>;
|
7947
|
-
getSchema({ workspace, region, database, branch }: {
|
7948
|
-
workspace: WorkspaceID;
|
7949
|
-
region: string;
|
7950
|
-
database: DBName$1;
|
7951
|
-
branch: BranchName$1;
|
7952
|
-
}): Promise<GetSchemaResponse>;
|
7953
|
-
}
|
7954
|
-
declare class DatabaseApi {
|
7955
|
-
private extraProps;
|
7956
|
-
constructor(extraProps: ApiExtraProps);
|
7957
|
-
getDatabaseList({ workspace }: {
|
7958
|
-
workspace: WorkspaceID;
|
7959
|
-
}): Promise<ListDatabasesResponse>;
|
7960
|
-
createDatabase({ workspace, database, data, headers }: {
|
7961
|
-
workspace: WorkspaceID;
|
7962
|
-
database: DBName$1;
|
7963
|
-
data: CreateDatabaseRequestBody;
|
7964
|
-
headers?: Record<string, string>;
|
7965
|
-
}): Promise<CreateDatabaseResponse>;
|
7966
|
-
deleteDatabase({ workspace, database }: {
|
7967
|
-
workspace: WorkspaceID;
|
7968
|
-
database: DBName$1;
|
7969
|
-
}): Promise<DeleteDatabaseResponse>;
|
7970
|
-
getDatabaseMetadata({ workspace, database }: {
|
7971
|
-
workspace: WorkspaceID;
|
7972
|
-
database: DBName$1;
|
7973
|
-
}): Promise<DatabaseMetadata>;
|
7974
|
-
updateDatabaseMetadata({ workspace, database, metadata }: {
|
7975
|
-
workspace: WorkspaceID;
|
7976
|
-
database: DBName$1;
|
7977
|
-
metadata: DatabaseMetadata;
|
7978
|
-
}): Promise<DatabaseMetadata>;
|
7979
|
-
renameDatabase({ workspace, database, newName }: {
|
7980
|
-
workspace: WorkspaceID;
|
7981
|
-
database: DBName$1;
|
7982
|
-
newName: DBName$1;
|
7983
|
-
}): Promise<DatabaseMetadata>;
|
7984
|
-
getDatabaseGithubSettings({ workspace, database }: {
|
7985
|
-
workspace: WorkspaceID;
|
7986
|
-
database: DBName$1;
|
7987
|
-
}): Promise<DatabaseGithubSettings>;
|
7988
|
-
updateDatabaseGithubSettings({ workspace, database, settings }: {
|
7989
|
-
workspace: WorkspaceID;
|
7990
|
-
database: DBName$1;
|
7991
|
-
settings: DatabaseGithubSettings;
|
7992
|
-
}): Promise<DatabaseGithubSettings>;
|
7993
|
-
deleteDatabaseGithubSettings({ workspace, database }: {
|
7994
|
-
workspace: WorkspaceID;
|
7995
|
-
database: DBName$1;
|
7996
|
-
}): Promise<void>;
|
7997
|
-
listRegions({ workspace }: {
|
7998
|
-
workspace: WorkspaceID;
|
7999
|
-
}): Promise<ListRegionsResponse>;
|
8342
|
+
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 };
|
8000
8343
|
}
|
8001
8344
|
|
8002
8345
|
declare class XataApiPlugin implements XataPlugin {
|
8003
8346
|
build(options: XataPluginOptions): XataApiClient;
|
8004
8347
|
}
|
8005
8348
|
|
8006
|
-
type StringKeys<O> = Extract<keyof O, string>;
|
8007
|
-
type Values<O> = O[StringKeys<O>];
|
8008
|
-
type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never;
|
8009
|
-
type If<Condition, Then, Else> = Condition extends true ? Then : Else;
|
8010
|
-
type IsObject<T> = T extends Record<string, any> ? true : false;
|
8011
|
-
type IsArray<T> = T extends Array<any> ? true : false;
|
8012
|
-
type RequiredBy<T, K extends keyof T> = T & {
|
8013
|
-
[P in K]-?: NonNullable<T[P]>;
|
8014
|
-
};
|
8015
|
-
type GetArrayInnerType<T extends readonly any[]> = T[number];
|
8016
|
-
type SingleOrArray<T> = T | T[];
|
8017
|
-
type Dictionary<T> = Record<string, T>;
|
8018
|
-
type OmitBy<T, K extends keyof T> = T extends any ? Omit<T, K> : never;
|
8019
|
-
type Without<T, U> = {
|
8020
|
-
[P in Exclude<keyof T, keyof U>]?: never;
|
8021
|
-
};
|
8022
|
-
type ExclusiveOr<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
|
8023
|
-
type Explode<T> = keyof T extends infer K ? K extends unknown ? {
|
8024
|
-
[I in keyof T]: I extends K ? T[I] : never;
|
8025
|
-
} : never : never;
|
8026
|
-
type AtMostOne<T> = Explode<Partial<T>>;
|
8027
|
-
type AtLeastOne<T, U = {
|
8028
|
-
[K in keyof T]: Pick<T, K>;
|
8029
|
-
}> = Partial<T> & U[keyof U];
|
8030
|
-
type ExactlyOne<T> = AtMostOne<T> & AtLeastOne<T>;
|
8031
|
-
type Fn = (...args: any[]) => any;
|
8032
|
-
type NarrowRaw<A> = (A extends [] ? [] : never) | (A extends Narrowable ? A : never) | {
|
8033
|
-
[K in keyof A]: A[K] extends Fn ? A[K] : NarrowRaw<A[K]>;
|
8034
|
-
};
|
8035
|
-
type Narrowable = string | number | bigint | boolean;
|
8036
|
-
type Try<A1, A2, Catch = never> = A1 extends A2 ? A1 : Catch;
|
8037
|
-
type Narrow<A> = Try<A, [], NarrowRaw<A>>;
|
8038
|
-
|
8039
8349
|
interface ImageTransformations {
|
8040
8350
|
/**
|
8041
8351
|
* Whether to preserve animation frames from input files. Default is true.
|
@@ -8888,9 +9198,9 @@ type SelectedPick<O extends XataRecord, Key extends SelectableColumnWithObjectNo
|
|
8888
9198
|
};
|
8889
9199
|
};
|
8890
9200
|
}>>;
|
8891
|
-
type ValueAtColumn<
|
9201
|
+
type ValueAtColumn<Obj, Key, RecursivePath extends any[] = []> = RecursivePath['length'] extends MAX_RECURSION ? never : Key extends '*' ? Values<Obj> : Key extends 'id' ? string : Key extends 'xata.version' ? number : Key extends 'xata.createdAt' ? Date : Key extends 'xata.updatedAt' ? Date : 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> ? {
|
8892
9202
|
V: ValueAtColumn<Item, V, [...RecursivePath, Item]>;
|
8893
|
-
} : never :
|
9203
|
+
} : never : Obj[K] : never> : never : never;
|
8894
9204
|
type MAX_RECURSION = 3;
|
8895
9205
|
type NestedColumns<O, RecursivePath extends any[]> = RecursivePath['length'] extends MAX_RECURSION ? never : If<IsObject<O>, Values<{
|
8896
9206
|
[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
|
@@ -9021,13 +9331,13 @@ type XataRecordMetadata = {
|
|
9021
9331
|
declare function isIdentifiable(x: any): x is Identifiable & Record<string, unknown>;
|
9022
9332
|
declare function isXataRecord(x: any): x is XataRecord & Record<string, unknown>;
|
9023
9333
|
type NumericOperator = ExclusiveOr<{
|
9024
|
-
$increment
|
9334
|
+
$increment: number;
|
9025
9335
|
}, ExclusiveOr<{
|
9026
|
-
$decrement
|
9336
|
+
$decrement: number;
|
9027
9337
|
}, ExclusiveOr<{
|
9028
|
-
$multiply
|
9338
|
+
$multiply: number;
|
9029
9339
|
}, {
|
9030
|
-
$divide
|
9340
|
+
$divide: number;
|
9031
9341
|
}>>>;
|
9032
9342
|
type InputXataFile = Partial<XataArrayFile> | Promise<Partial<XataArrayFile>>;
|
9033
9343
|
type EditableDataFields<T> = T extends XataRecord ? {
|
@@ -10896,10 +11206,37 @@ type SQLQueryParams<T = any[]> = {
|
|
10896
11206
|
params?: T;
|
10897
11207
|
/**
|
10898
11208
|
* The consistency level to use when executing the query.
|
11209
|
+
* @default 'strong'
|
10899
11210
|
*/
|
10900
11211
|
consistency?: 'strong' | 'eventual';
|
10901
11212
|
/**
|
10902
11213
|
* The response type to use when executing the query.
|
11214
|
+
* @default 'json'
|
11215
|
+
*/
|
11216
|
+
responseType?: 'json' | 'array';
|
11217
|
+
};
|
11218
|
+
type SQLBatchQuery = {
|
11219
|
+
/**
|
11220
|
+
* The SQL statements to execute.
|
11221
|
+
*/
|
11222
|
+
statements: {
|
11223
|
+
/**
|
11224
|
+
* The SQL statement to execute.
|
11225
|
+
*/
|
11226
|
+
statement: string;
|
11227
|
+
/**
|
11228
|
+
* The parameters to pass to the SQL statement.
|
11229
|
+
*/
|
11230
|
+
params?: any[];
|
11231
|
+
}[];
|
11232
|
+
/**
|
11233
|
+
* The consistency level to use when executing the queries.
|
11234
|
+
* @default 'strong'
|
11235
|
+
*/
|
11236
|
+
consistency?: 'strong' | 'eventual';
|
11237
|
+
/**
|
11238
|
+
* The response type to use when executing the queries.
|
11239
|
+
* @default 'json'
|
10903
11240
|
*/
|
10904
11241
|
responseType?: 'json' | 'array';
|
10905
11242
|
};
|
@@ -10948,6 +11285,13 @@ type SQLPluginResult = SQLPluginFunction & {
|
|
10948
11285
|
* Connects with the same credentials as the Xata client.
|
10949
11286
|
*/
|
10950
11287
|
connectionString: string;
|
11288
|
+
/**
|
11289
|
+
* Executes a batch of SQL statements.
|
11290
|
+
* @param query The batch of SQL statements to execute.
|
11291
|
+
*/
|
11292
|
+
batch: <Query extends SQLBatchQuery = SQLBatchQuery>(query: Query) => Promise<{
|
11293
|
+
results: Array<SQLQueryResult<any, Query extends SQLBatchQuery ? Query['responseType'] extends SQLResponseType ? NonNullable<Query['responseType']> : 'json' : 'json'>>;
|
11294
|
+
}>;
|
10951
11295
|
};
|
10952
11296
|
declare class SQLPlugin extends XataPlugin {
|
10953
11297
|
build(pluginOptions: XataPluginOptions): SQLPluginResult;
|
@@ -11115,4 +11459,4 @@ declare class XataError extends Error {
|
|
11115
11459
|
constructor(message: string, status: number);
|
11116
11460
|
}
|
11117
11461
|
|
11118
|
-
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 CacheImpl, 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 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, SimpleCache, type SimpleCacheOptions, 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, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, fileUpload, ge, getAPIKey, getAuthorizationCode, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationJobStatus, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getCluster, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseSettings, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationHistory, getMigrationJobStatus, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, 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, isXataRecord, 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 };
|
11462
|
+
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 CacheImpl, 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, SimpleCache, type SimpleCacheOptions, 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, getAPIKey, getAuthorizationCode, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationJobStatus, getBranchMigrationPlan, getBranchMoveStatus, getBranchSchemaHistory, getBranchStats, getCluster, getClusterMetrics, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseSettings, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationHistory, getMigrationJobStatus, getMigrationJobs, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, 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, isXataRecord, 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 };
|