@xata.io/client 0.29.4 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-add-version.log +1 -1
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +741 -1840
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1105 -942
- package/dist/index.mjs +728 -1841
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -57,11 +57,154 @@ 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
|
+
/**
|
102
|
+
* @x-internal true
|
103
|
+
* @pattern [a-zA-Z0-9_-~:]+
|
104
|
+
*/
|
105
|
+
type ClusterID$1 = string;
|
106
|
+
/**
|
107
|
+
* Page size.
|
108
|
+
*
|
109
|
+
* @x-internal true
|
110
|
+
* @default 25
|
111
|
+
* @minimum 0
|
112
|
+
*/
|
113
|
+
type PageSize$1 = number;
|
114
|
+
/**
|
115
|
+
* Page token
|
116
|
+
*
|
117
|
+
* @x-internal true
|
118
|
+
* @maxLength 255
|
119
|
+
* @minLength 24
|
120
|
+
*/
|
121
|
+
type PageToken$1 = string;
|
122
|
+
/**
|
123
|
+
* @format date-time
|
124
|
+
* @x-go-type string
|
125
|
+
*/
|
126
|
+
type DateTime$1 = string;
|
127
|
+
/**
|
128
|
+
* @x-internal true
|
129
|
+
*/
|
130
|
+
type BranchDetails = {
|
131
|
+
name: string;
|
132
|
+
id: string;
|
133
|
+
/**
|
134
|
+
* The cluster where this branch resides.
|
135
|
+
*
|
136
|
+
* @minLength 1
|
137
|
+
*/
|
138
|
+
clusterID: string;
|
139
|
+
state: string;
|
140
|
+
createdAt: DateTime$1;
|
141
|
+
databaseName: string;
|
142
|
+
databaseID: string;
|
143
|
+
};
|
144
|
+
/**
|
145
|
+
* @x-internal true
|
146
|
+
*/
|
147
|
+
type PageResponse$1 = {
|
148
|
+
size: number;
|
149
|
+
hasMore: boolean;
|
150
|
+
token?: string;
|
151
|
+
};
|
152
|
+
/**
|
153
|
+
* @x-internal true
|
154
|
+
*/
|
155
|
+
type ListClusterBranchesResponse = {
|
156
|
+
branches: BranchDetails[];
|
157
|
+
page?: PageResponse$1;
|
158
|
+
};
|
159
|
+
/**
|
160
|
+
* @x-internal true
|
161
|
+
*/
|
162
|
+
type ExtensionDetails = {
|
163
|
+
name: string;
|
164
|
+
description: string;
|
165
|
+
status: 'installed' | 'not_installed';
|
166
|
+
version: string;
|
167
|
+
};
|
168
|
+
/**
|
169
|
+
* @x-internal true
|
170
|
+
*/
|
171
|
+
type ListClusterExtensionsResponse = {
|
172
|
+
extensions: ExtensionDetails[];
|
173
|
+
};
|
174
|
+
/**
|
175
|
+
* @x-internal true
|
176
|
+
*/
|
177
|
+
type ClusterExtensionInstallationResponse = {
|
178
|
+
extension: string;
|
179
|
+
status: 'success' | 'failure';
|
180
|
+
reason?: string;
|
181
|
+
};
|
182
|
+
/**
|
183
|
+
* @x-internal true
|
184
|
+
*/
|
185
|
+
type MetricMessage = {
|
186
|
+
code?: string;
|
187
|
+
value?: string;
|
188
|
+
};
|
189
|
+
/**
|
190
|
+
* @x-internal true
|
191
|
+
*/
|
192
|
+
type MetricData = {
|
193
|
+
id?: string;
|
194
|
+
label?: string;
|
195
|
+
messages?: MetricMessage[] | null;
|
196
|
+
status: 'complete' | 'error' | 'partial' | 'forbidden';
|
197
|
+
timestamps: string[];
|
198
|
+
values: number[];
|
199
|
+
};
|
200
|
+
/**
|
201
|
+
* @x-internal true
|
202
|
+
*/
|
203
|
+
type MetricsResponse = {
|
204
|
+
metrics: MetricData[];
|
205
|
+
messages: MetricMessage[];
|
206
|
+
page?: PageResponse$1;
|
207
|
+
};
|
65
208
|
/**
|
66
209
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
67
210
|
*
|
@@ -76,6 +219,24 @@ type ApplyMigrationResponse = {
|
|
76
219
|
*/
|
77
220
|
jobID: string;
|
78
221
|
};
|
222
|
+
type StartMigrationResponse = {
|
223
|
+
/**
|
224
|
+
* The id of the migration job
|
225
|
+
*/
|
226
|
+
jobID: string;
|
227
|
+
};
|
228
|
+
type CompleteMigrationResponse = {
|
229
|
+
/**
|
230
|
+
* The id of the migration job
|
231
|
+
*/
|
232
|
+
jobID: string;
|
233
|
+
};
|
234
|
+
type RollbackMigrationResponse = {
|
235
|
+
/**
|
236
|
+
* The id of the migration job
|
237
|
+
*/
|
238
|
+
jobID: string;
|
239
|
+
};
|
79
240
|
/**
|
80
241
|
* @maxLength 255
|
81
242
|
* @minLength 1
|
@@ -84,6 +245,95 @@ type ApplyMigrationResponse = {
|
|
84
245
|
type TableName = string;
|
85
246
|
type MigrationJobType = 'apply' | 'start' | 'complete' | 'rollback';
|
86
247
|
type MigrationJobStatus = 'pending' | 'in_progress' | 'completed' | 'failed';
|
248
|
+
/**
|
249
|
+
* The effect of a migration operation in terms of CRUD operations on the underlying schema
|
250
|
+
*/
|
251
|
+
type MigrationOperationDescription = {
|
252
|
+
/**
|
253
|
+
* A new database object created by the operation
|
254
|
+
*/
|
255
|
+
create?: {
|
256
|
+
/**
|
257
|
+
* The type of object created
|
258
|
+
*/
|
259
|
+
type: 'table' | 'column' | 'index';
|
260
|
+
/**
|
261
|
+
* The name of the object created
|
262
|
+
*/
|
263
|
+
name: string;
|
264
|
+
/**
|
265
|
+
* The name of the table on which the object is created, if applicable
|
266
|
+
*/
|
267
|
+
table?: string;
|
268
|
+
/**
|
269
|
+
* The mapping between the virtual and physical name of the new object, if applicable
|
270
|
+
*/
|
271
|
+
mapping?: Record<string, any>;
|
272
|
+
};
|
273
|
+
/**
|
274
|
+
* A database object updated by the operation
|
275
|
+
*/
|
276
|
+
update?: {
|
277
|
+
/**
|
278
|
+
* The type of updated object
|
279
|
+
*/
|
280
|
+
type: 'table' | 'column';
|
281
|
+
/**
|
282
|
+
* The name of the updated object
|
283
|
+
*/
|
284
|
+
name: string;
|
285
|
+
/**
|
286
|
+
* The name of the table on which the object is updated, if applicable
|
287
|
+
*/
|
288
|
+
table?: string;
|
289
|
+
/**
|
290
|
+
* The mapping between the virtual and physical name of the updated object, if applicable
|
291
|
+
*/
|
292
|
+
mapping?: Record<string, any>;
|
293
|
+
};
|
294
|
+
/**
|
295
|
+
* A database object renamed by the operation
|
296
|
+
*/
|
297
|
+
rename?: {
|
298
|
+
/**
|
299
|
+
* The type of the renamed object
|
300
|
+
*/
|
301
|
+
type: 'table' | 'column' | 'constraint';
|
302
|
+
/**
|
303
|
+
* The name of the table on which the object is renamed, if applicable
|
304
|
+
*/
|
305
|
+
table?: string;
|
306
|
+
/**
|
307
|
+
* The old name of the renamed object
|
308
|
+
*/
|
309
|
+
from: string;
|
310
|
+
/**
|
311
|
+
* The new name of the renamed object
|
312
|
+
*/
|
313
|
+
to: string;
|
314
|
+
};
|
315
|
+
/**
|
316
|
+
* A database object deleted by the operation
|
317
|
+
*/
|
318
|
+
['delete']?: {
|
319
|
+
/**
|
320
|
+
* The type of the deleted object
|
321
|
+
*/
|
322
|
+
type: 'table' | 'column' | 'constraint' | 'index';
|
323
|
+
/**
|
324
|
+
* The name of the deleted object
|
325
|
+
*/
|
326
|
+
name: string;
|
327
|
+
/**
|
328
|
+
* The name of the table on which the object is deleted, if applicable
|
329
|
+
*/
|
330
|
+
table: string;
|
331
|
+
};
|
332
|
+
};
|
333
|
+
/**
|
334
|
+
* @minItems 1
|
335
|
+
*/
|
336
|
+
type MigrationDescription = MigrationOperationDescription[];
|
87
337
|
type MigrationJobStatusResponse = {
|
88
338
|
/**
|
89
339
|
* The id of the migration job
|
@@ -97,11 +347,69 @@ type MigrationJobStatusResponse = {
|
|
97
347
|
* The status of the migration job
|
98
348
|
*/
|
99
349
|
status: MigrationJobStatus;
|
350
|
+
/**
|
351
|
+
* The effect of any active migration on the schema
|
352
|
+
*/
|
353
|
+
description?: MigrationDescription;
|
354
|
+
/**
|
355
|
+
* The timestamp at which the migration job completed or failed
|
356
|
+
*
|
357
|
+
* @format date-time
|
358
|
+
*/
|
359
|
+
completedAt?: string;
|
100
360
|
/**
|
101
361
|
* The error message associated with the migration job
|
102
362
|
*/
|
103
363
|
error?: string;
|
104
364
|
};
|
365
|
+
type MigrationJobItem = {
|
366
|
+
/**
|
367
|
+
* The id of the migration job
|
368
|
+
*/
|
369
|
+
jobID: string;
|
370
|
+
/**
|
371
|
+
* The type of the migration job
|
372
|
+
*/
|
373
|
+
type: MigrationJobType;
|
374
|
+
/**
|
375
|
+
* The status of the migration job
|
376
|
+
*/
|
377
|
+
status: MigrationJobStatus;
|
378
|
+
/**
|
379
|
+
* The pgroll migration that was applied
|
380
|
+
*/
|
381
|
+
migration?: string;
|
382
|
+
/**
|
383
|
+
* The effect of any active migration on the schema
|
384
|
+
*/
|
385
|
+
description?: MigrationDescription;
|
386
|
+
/**
|
387
|
+
* The timestamp at which the migration job was enqueued
|
388
|
+
*
|
389
|
+
* @format date-time
|
390
|
+
*/
|
391
|
+
enqueuedAt: string;
|
392
|
+
/**
|
393
|
+
* The timestamp at which the migration job completed or failed
|
394
|
+
*
|
395
|
+
* @format date-time
|
396
|
+
*/
|
397
|
+
completedAt?: string;
|
398
|
+
/**
|
399
|
+
* The error message associated with the migration job
|
400
|
+
*/
|
401
|
+
error?: string;
|
402
|
+
};
|
403
|
+
type GetMigrationJobsResponse = {
|
404
|
+
/**
|
405
|
+
* The list of migration jobs
|
406
|
+
*/
|
407
|
+
jobs: MigrationJobItem[];
|
408
|
+
/**
|
409
|
+
* The cursor (timestamp) for the next page of results
|
410
|
+
*/
|
411
|
+
cursor?: string;
|
412
|
+
};
|
105
413
|
/**
|
106
414
|
* @maxLength 255
|
107
415
|
* @minLength 1
|
@@ -114,6 +422,10 @@ type MigrationHistoryItem = {
|
|
114
422
|
* The name of the migration
|
115
423
|
*/
|
116
424
|
name: string;
|
425
|
+
/**
|
426
|
+
* The schema in which the migration was applied
|
427
|
+
*/
|
428
|
+
schema: string;
|
117
429
|
/**
|
118
430
|
* The pgroll migration that was applied
|
119
431
|
*/
|
@@ -142,6 +454,10 @@ type MigrationHistoryResponse = {
|
|
142
454
|
* The migrations that have been applied to the branch
|
143
455
|
*/
|
144
456
|
migrations: MigrationHistoryItem[];
|
457
|
+
/**
|
458
|
+
* The cursor (timestamp) for the next page of results
|
459
|
+
*/
|
460
|
+
cursor?: string;
|
145
461
|
};
|
146
462
|
/**
|
147
463
|
* @maxLength 255
|
@@ -150,10 +466,9 @@ type MigrationHistoryResponse = {
|
|
150
466
|
*/
|
151
467
|
type DBName$1 = string;
|
152
468
|
/**
|
153
|
-
*
|
154
|
-
* @x-go-type string
|
469
|
+
* Represent the state of the branch, used for branch lifecycle management
|
155
470
|
*/
|
156
|
-
type
|
471
|
+
type BranchState = 'active' | 'move_scheduled' | 'moving';
|
157
472
|
type Branch = {
|
158
473
|
name: string;
|
159
474
|
/**
|
@@ -162,7 +477,10 @@ type Branch = {
|
|
162
477
|
* @minLength 1
|
163
478
|
*/
|
164
479
|
clusterID?: string;
|
480
|
+
state: BranchState;
|
165
481
|
createdAt: DateTime$1;
|
482
|
+
searchDisabled?: boolean;
|
483
|
+
inactiveSharedCluster?: boolean;
|
166
484
|
};
|
167
485
|
type ListBranchesResponse = {
|
168
486
|
databaseName: string;
|
@@ -252,6 +570,7 @@ type DBBranch = {
|
|
252
570
|
*/
|
253
571
|
clusterID?: string;
|
254
572
|
version: number;
|
573
|
+
state: BranchState;
|
255
574
|
lastMigrationID: string;
|
256
575
|
metadata?: BranchMetadata$1;
|
257
576
|
startedFrom?: StartedFromMetadata;
|
@@ -1487,6 +1806,57 @@ type FileSignature = string;
|
|
1487
1806
|
type SQLRecord = {
|
1488
1807
|
[key: string]: any;
|
1489
1808
|
};
|
1809
|
+
/**
|
1810
|
+
* @default strong
|
1811
|
+
*/
|
1812
|
+
type SQLConsistency = 'strong' | 'eventual';
|
1813
|
+
/**
|
1814
|
+
* @default json
|
1815
|
+
*/
|
1816
|
+
type SQLResponseType$1 = 'json' | 'array';
|
1817
|
+
type PreparedStatement = {
|
1818
|
+
/**
|
1819
|
+
* The SQL statement.
|
1820
|
+
*
|
1821
|
+
* @minLength 1
|
1822
|
+
*/
|
1823
|
+
statement: string;
|
1824
|
+
/**
|
1825
|
+
* The query parameter list.
|
1826
|
+
*
|
1827
|
+
* @x-go-type []any
|
1828
|
+
*/
|
1829
|
+
params?: any[] | null;
|
1830
|
+
};
|
1831
|
+
type SQLResponseBase = {
|
1832
|
+
/**
|
1833
|
+
* Name of the column and its PostgreSQL type
|
1834
|
+
*
|
1835
|
+
* @x-go-type []sqlproxy.ColumnMeta
|
1836
|
+
*/
|
1837
|
+
columns: {
|
1838
|
+
name: string;
|
1839
|
+
type: string;
|
1840
|
+
}[];
|
1841
|
+
/**
|
1842
|
+
* Number of selected columns
|
1843
|
+
*/
|
1844
|
+
total: number;
|
1845
|
+
warning?: string;
|
1846
|
+
};
|
1847
|
+
type SQLResponseJSON = SQLResponseBase & {
|
1848
|
+
/**
|
1849
|
+
* @x-go-type []xata.Record
|
1850
|
+
*/
|
1851
|
+
records: SQLRecord[];
|
1852
|
+
};
|
1853
|
+
type SQLResponseArray = SQLResponseBase & {
|
1854
|
+
/**
|
1855
|
+
* @x-go-type []xata.Row
|
1856
|
+
*/
|
1857
|
+
rows: any[][];
|
1858
|
+
};
|
1859
|
+
type SQLResponse$1 = SQLResponseJSON | SQLResponseArray;
|
1490
1860
|
/**
|
1491
1861
|
* Xata Table Record Metadata
|
1492
1862
|
*/
|
@@ -1589,21 +1959,9 @@ type AggResponse = {
|
|
1589
1959
|
[key: string]: AggResponse$1;
|
1590
1960
|
};
|
1591
1961
|
};
|
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;
|
1962
|
+
type SQLResponse = SQLResponse$1;
|
1963
|
+
type SQLBatchResponse = {
|
1964
|
+
results: SQLResponse$1[];
|
1607
1965
|
};
|
1608
1966
|
|
1609
1967
|
/**
|
@@ -1700,7 +2058,6 @@ type Workspace = WorkspaceMeta & {
|
|
1700
2058
|
plan: WorkspacePlan;
|
1701
2059
|
};
|
1702
2060
|
type WorkspaceSettings = {
|
1703
|
-
postgresEnabled: boolean;
|
1704
2061
|
dedicatedClusters: boolean;
|
1705
2062
|
};
|
1706
2063
|
type WorkspaceMember = {
|
@@ -1769,6 +2126,8 @@ type ClusterShortMetadata = {
|
|
1769
2126
|
* @format int64
|
1770
2127
|
*/
|
1771
2128
|
branches: number;
|
2129
|
+
createdAt: DateTime;
|
2130
|
+
terminatedAt?: DateTime;
|
1772
2131
|
};
|
1773
2132
|
/**
|
1774
2133
|
* @x-internal true
|
@@ -1968,6 +2327,19 @@ type ClusterMetadata = {
|
|
1968
2327
|
branches: number;
|
1969
2328
|
configuration: ClusterConfigurationResponse;
|
1970
2329
|
};
|
2330
|
+
/**
|
2331
|
+
* @x-internal true
|
2332
|
+
*/
|
2333
|
+
type ClusterDeleteMetadata = {
|
2334
|
+
id: ClusterID;
|
2335
|
+
state: string;
|
2336
|
+
region: string;
|
2337
|
+
name: string;
|
2338
|
+
/**
|
2339
|
+
* @format int64
|
2340
|
+
*/
|
2341
|
+
branches: number;
|
2342
|
+
};
|
1971
2343
|
/**
|
1972
2344
|
* @x-internal true
|
1973
2345
|
*/
|
@@ -2445,6 +2817,7 @@ type GetWorkspacesListError = ErrorWrapper$1<{
|
|
2445
2817
|
type GetWorkspacesListResponse = {
|
2446
2818
|
workspaces: {
|
2447
2819
|
id: WorkspaceID;
|
2820
|
+
unique_id: string;
|
2448
2821
|
name: string;
|
2449
2822
|
slug: string;
|
2450
2823
|
role: Role;
|
@@ -2597,11 +2970,8 @@ type UpdateWorkspaceSettingsError = ErrorWrapper$1<{
|
|
2597
2970
|
status: 404;
|
2598
2971
|
payload: SimpleError;
|
2599
2972
|
}>;
|
2600
|
-
type UpdateWorkspaceSettingsRequestBody = {
|
2601
|
-
postgresEnabled: boolean;
|
2602
|
-
};
|
2603
2973
|
type UpdateWorkspaceSettingsVariables = {
|
2604
|
-
body
|
2974
|
+
body?: Record<string, any>;
|
2605
2975
|
pathParams: UpdateWorkspaceSettingsPathParams;
|
2606
2976
|
} & ControlPlaneFetcherExtraProps;
|
2607
2977
|
/**
|
@@ -2966,6 +3336,30 @@ type UpdateClusterVariables = {
|
|
2966
3336
|
* Update cluster for given cluster ID
|
2967
3337
|
*/
|
2968
3338
|
declare const updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterUpdateMetadata>;
|
3339
|
+
type DeleteClusterPathParams = {
|
3340
|
+
/**
|
3341
|
+
* Workspace ID
|
3342
|
+
*/
|
3343
|
+
workspaceId: WorkspaceID;
|
3344
|
+
/**
|
3345
|
+
* Cluster ID
|
3346
|
+
*/
|
3347
|
+
clusterId: ClusterID;
|
3348
|
+
};
|
3349
|
+
type DeleteClusterError = ErrorWrapper$1<{
|
3350
|
+
status: 400;
|
3351
|
+
payload: BadRequestError;
|
3352
|
+
} | {
|
3353
|
+
status: 401;
|
3354
|
+
payload: AuthError;
|
3355
|
+
}>;
|
3356
|
+
type DeleteClusterVariables = {
|
3357
|
+
pathParams: DeleteClusterPathParams;
|
3358
|
+
} & ControlPlaneFetcherExtraProps;
|
3359
|
+
/**
|
3360
|
+
* Delete cluster with given cluster ID
|
3361
|
+
*/
|
3362
|
+
declare const deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal) => Promise<ClusterDeleteMetadata>;
|
2969
3363
|
type GetDatabaseListPathParams = {
|
2970
3364
|
/**
|
2971
3365
|
* Workspace ID
|
@@ -3314,6 +3708,174 @@ type ErrorWrapper<TError> = TError | {
|
|
3314
3708
|
* @version 1.0
|
3315
3709
|
*/
|
3316
3710
|
|
3711
|
+
type ListClusterBranchesPathParams = {
|
3712
|
+
/**
|
3713
|
+
* Cluster ID
|
3714
|
+
*/
|
3715
|
+
clusterId: ClusterID$1;
|
3716
|
+
workspace: string;
|
3717
|
+
region: string;
|
3718
|
+
};
|
3719
|
+
type ListClusterBranchesQueryParams = {
|
3720
|
+
/**
|
3721
|
+
* Page size
|
3722
|
+
*/
|
3723
|
+
page?: PageSize$1;
|
3724
|
+
/**
|
3725
|
+
* Page token
|
3726
|
+
*/
|
3727
|
+
token?: PageToken$1;
|
3728
|
+
};
|
3729
|
+
type ListClusterBranchesError = ErrorWrapper<{
|
3730
|
+
status: 400;
|
3731
|
+
payload: BadRequestError$1;
|
3732
|
+
} | {
|
3733
|
+
status: 401;
|
3734
|
+
payload: AuthError$1;
|
3735
|
+
}>;
|
3736
|
+
type ListClusterBranchesVariables = {
|
3737
|
+
pathParams: ListClusterBranchesPathParams;
|
3738
|
+
queryParams?: ListClusterBranchesQueryParams;
|
3739
|
+
} & DataPlaneFetcherExtraProps;
|
3740
|
+
/**
|
3741
|
+
* Retrieve branches for given cluster ID
|
3742
|
+
*/
|
3743
|
+
declare const listClusterBranches: (variables: ListClusterBranchesVariables, signal?: AbortSignal) => Promise<ListClusterBranchesResponse>;
|
3744
|
+
type ListClusterExtensionsPathParams = {
|
3745
|
+
/**
|
3746
|
+
* Cluster ID
|
3747
|
+
*/
|
3748
|
+
clusterId: ClusterID$1;
|
3749
|
+
workspace: string;
|
3750
|
+
region: string;
|
3751
|
+
};
|
3752
|
+
type ListClusterExtensionsQueryParams = {
|
3753
|
+
extensionType: 'available' | 'installed';
|
3754
|
+
};
|
3755
|
+
type ListClusterExtensionsError = ErrorWrapper<{
|
3756
|
+
status: 400;
|
3757
|
+
payload: BadRequestError$1;
|
3758
|
+
} | {
|
3759
|
+
status: 401;
|
3760
|
+
payload: AuthError$1;
|
3761
|
+
}>;
|
3762
|
+
type ListClusterExtensionsVariables = {
|
3763
|
+
pathParams: ListClusterExtensionsPathParams;
|
3764
|
+
queryParams: ListClusterExtensionsQueryParams;
|
3765
|
+
} & DataPlaneFetcherExtraProps;
|
3766
|
+
/**
|
3767
|
+
* Retrieve extensions for given cluster ID
|
3768
|
+
*/
|
3769
|
+
declare const listClusterExtensions: (variables: ListClusterExtensionsVariables, signal?: AbortSignal) => Promise<ListClusterExtensionsResponse>;
|
3770
|
+
type InstallClusterExtensionPathParams = {
|
3771
|
+
/**
|
3772
|
+
* Cluster ID
|
3773
|
+
*/
|
3774
|
+
clusterId: ClusterID$1;
|
3775
|
+
workspace: string;
|
3776
|
+
region: string;
|
3777
|
+
};
|
3778
|
+
type InstallClusterExtensionError = ErrorWrapper<{
|
3779
|
+
status: 400;
|
3780
|
+
payload: BadRequestError$1;
|
3781
|
+
} | {
|
3782
|
+
status: 401;
|
3783
|
+
payload: AuthError$1;
|
3784
|
+
}>;
|
3785
|
+
type InstallClusterExtensionRequestBody = {
|
3786
|
+
/**
|
3787
|
+
* Extension name
|
3788
|
+
*/
|
3789
|
+
extension: string;
|
3790
|
+
/**
|
3791
|
+
* Schema name
|
3792
|
+
*/
|
3793
|
+
schema?: string;
|
3794
|
+
/**
|
3795
|
+
* install with cascade option
|
3796
|
+
*/
|
3797
|
+
cascade?: boolean;
|
3798
|
+
};
|
3799
|
+
type InstallClusterExtensionVariables = {
|
3800
|
+
body: InstallClusterExtensionRequestBody;
|
3801
|
+
pathParams: InstallClusterExtensionPathParams;
|
3802
|
+
} & DataPlaneFetcherExtraProps;
|
3803
|
+
/**
|
3804
|
+
* Install an extension for given cluster ID
|
3805
|
+
*/
|
3806
|
+
declare const installClusterExtension: (variables: InstallClusterExtensionVariables, signal?: AbortSignal) => Promise<ClusterExtensionInstallationResponse>;
|
3807
|
+
type DropClusterExtensionPathParams = {
|
3808
|
+
/**
|
3809
|
+
* Cluster ID
|
3810
|
+
*/
|
3811
|
+
clusterId: ClusterID$1;
|
3812
|
+
workspace: string;
|
3813
|
+
region: string;
|
3814
|
+
};
|
3815
|
+
type DropClusterExtensionError = ErrorWrapper<{
|
3816
|
+
status: 400;
|
3817
|
+
payload: BadRequestError$1;
|
3818
|
+
} | {
|
3819
|
+
status: 401;
|
3820
|
+
payload: AuthError$1;
|
3821
|
+
}>;
|
3822
|
+
type DropClusterExtensionRequestBody = {
|
3823
|
+
/**
|
3824
|
+
* Extension name
|
3825
|
+
*/
|
3826
|
+
extension: string;
|
3827
|
+
/**
|
3828
|
+
* drop with cascade option, true by default
|
3829
|
+
*/
|
3830
|
+
cascade?: boolean;
|
3831
|
+
};
|
3832
|
+
type DropClusterExtensionVariables = {
|
3833
|
+
body: DropClusterExtensionRequestBody;
|
3834
|
+
pathParams: DropClusterExtensionPathParams;
|
3835
|
+
} & DataPlaneFetcherExtraProps;
|
3836
|
+
/**
|
3837
|
+
* Drop an extension for given cluster ID
|
3838
|
+
*/
|
3839
|
+
declare const dropClusterExtension: (variables: DropClusterExtensionVariables, signal?: AbortSignal) => Promise<undefined>;
|
3840
|
+
type GetClusterMetricsPathParams = {
|
3841
|
+
/**
|
3842
|
+
* Cluster ID
|
3843
|
+
*/
|
3844
|
+
clusterId: ClusterID$1;
|
3845
|
+
workspace: string;
|
3846
|
+
region: string;
|
3847
|
+
};
|
3848
|
+
type GetClusterMetricsQueryParams = {
|
3849
|
+
startTime: string;
|
3850
|
+
endTime: string;
|
3851
|
+
period: '5min' | '15min' | '1hour';
|
3852
|
+
/**
|
3853
|
+
* Page size
|
3854
|
+
*/
|
3855
|
+
page?: PageSize$1;
|
3856
|
+
/**
|
3857
|
+
* Page token
|
3858
|
+
*/
|
3859
|
+
token?: PageToken$1;
|
3860
|
+
};
|
3861
|
+
type GetClusterMetricsError = ErrorWrapper<{
|
3862
|
+
status: 400;
|
3863
|
+
payload: BadRequestError$1;
|
3864
|
+
} | {
|
3865
|
+
status: 401;
|
3866
|
+
payload: AuthError$1;
|
3867
|
+
} | {
|
3868
|
+
status: 404;
|
3869
|
+
payload: SimpleError$1;
|
3870
|
+
}>;
|
3871
|
+
type GetClusterMetricsVariables = {
|
3872
|
+
pathParams: GetClusterMetricsPathParams;
|
3873
|
+
queryParams: GetClusterMetricsQueryParams;
|
3874
|
+
} & DataPlaneFetcherExtraProps;
|
3875
|
+
/**
|
3876
|
+
* retrieve a standard set of RDS cluster metrics
|
3877
|
+
*/
|
3878
|
+
declare const getClusterMetrics: (variables: GetClusterMetricsVariables, signal?: AbortSignal) => Promise<MetricsResponse>;
|
3317
3879
|
type ApplyMigrationPathParams = {
|
3318
3880
|
/**
|
3319
3881
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3340,6 +3902,12 @@ type ApplyMigrationRequestBody = {
|
|
3340
3902
|
operations: {
|
3341
3903
|
[key: string]: any;
|
3342
3904
|
}[];
|
3905
|
+
/**
|
3906
|
+
* The schema in which the migration should be applied
|
3907
|
+
*
|
3908
|
+
* @default public
|
3909
|
+
*/
|
3910
|
+
schema?: string;
|
3343
3911
|
adaptTables?: boolean;
|
3344
3912
|
};
|
3345
3913
|
type ApplyMigrationVariables = {
|
@@ -3350,6 +3918,115 @@ type ApplyMigrationVariables = {
|
|
3350
3918
|
* Applies a pgroll migration to the specified database.
|
3351
3919
|
*/
|
3352
3920
|
declare const applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
3921
|
+
type StartMigrationPathParams = {
|
3922
|
+
/**
|
3923
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3924
|
+
*/
|
3925
|
+
dbBranchName: DBBranchName;
|
3926
|
+
workspace: string;
|
3927
|
+
region: string;
|
3928
|
+
};
|
3929
|
+
type StartMigrationError = ErrorWrapper<{
|
3930
|
+
status: 400;
|
3931
|
+
payload: BadRequestError$1;
|
3932
|
+
} | {
|
3933
|
+
status: 401;
|
3934
|
+
payload: AuthError$1;
|
3935
|
+
} | {
|
3936
|
+
status: 404;
|
3937
|
+
payload: SimpleError$1;
|
3938
|
+
}>;
|
3939
|
+
type StartMigrationRequestBody = {
|
3940
|
+
/**
|
3941
|
+
* Migration name
|
3942
|
+
*/
|
3943
|
+
name?: string;
|
3944
|
+
operations: {
|
3945
|
+
[key: string]: any;
|
3946
|
+
}[];
|
3947
|
+
/**
|
3948
|
+
* The schema in which the migration should be started
|
3949
|
+
*
|
3950
|
+
* @default public
|
3951
|
+
*/
|
3952
|
+
schema?: string;
|
3953
|
+
};
|
3954
|
+
type StartMigrationVariables = {
|
3955
|
+
body: StartMigrationRequestBody;
|
3956
|
+
pathParams: StartMigrationPathParams;
|
3957
|
+
} & DataPlaneFetcherExtraProps;
|
3958
|
+
/**
|
3959
|
+
* Starts a pgroll migration on the specified database.
|
3960
|
+
*/
|
3961
|
+
declare const startMigration: (variables: StartMigrationVariables, signal?: AbortSignal) => Promise<StartMigrationResponse>;
|
3962
|
+
type CompleteMigrationPathParams = {
|
3963
|
+
/**
|
3964
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3965
|
+
*/
|
3966
|
+
dbBranchName: DBBranchName;
|
3967
|
+
workspace: string;
|
3968
|
+
region: string;
|
3969
|
+
};
|
3970
|
+
type CompleteMigrationError = ErrorWrapper<{
|
3971
|
+
status: 400;
|
3972
|
+
payload: BadRequestError$1;
|
3973
|
+
} | {
|
3974
|
+
status: 401;
|
3975
|
+
payload: AuthError$1;
|
3976
|
+
} | {
|
3977
|
+
status: 404;
|
3978
|
+
payload: SimpleError$1;
|
3979
|
+
}>;
|
3980
|
+
type CompleteMigrationRequestBody = {
|
3981
|
+
/**
|
3982
|
+
* The schema in which the migration should be completed
|
3983
|
+
*
|
3984
|
+
* @default public
|
3985
|
+
*/
|
3986
|
+
schema?: string;
|
3987
|
+
};
|
3988
|
+
type CompleteMigrationVariables = {
|
3989
|
+
body?: CompleteMigrationRequestBody;
|
3990
|
+
pathParams: CompleteMigrationPathParams;
|
3991
|
+
} & DataPlaneFetcherExtraProps;
|
3992
|
+
/**
|
3993
|
+
* Complete an active migration on the specified database
|
3994
|
+
*/
|
3995
|
+
declare const completeMigration: (variables: CompleteMigrationVariables, signal?: AbortSignal) => Promise<CompleteMigrationResponse>;
|
3996
|
+
type RollbackMigrationPathParams = {
|
3997
|
+
/**
|
3998
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3999
|
+
*/
|
4000
|
+
dbBranchName: DBBranchName;
|
4001
|
+
workspace: string;
|
4002
|
+
region: string;
|
4003
|
+
};
|
4004
|
+
type RollbackMigrationError = ErrorWrapper<{
|
4005
|
+
status: 400;
|
4006
|
+
payload: BadRequestError$1;
|
4007
|
+
} | {
|
4008
|
+
status: 401;
|
4009
|
+
payload: AuthError$1;
|
4010
|
+
} | {
|
4011
|
+
status: 404;
|
4012
|
+
payload: SimpleError$1;
|
4013
|
+
}>;
|
4014
|
+
type RollbackMigrationRequestBody = {
|
4015
|
+
/**
|
4016
|
+
* The schema in which the migration should be rolled back
|
4017
|
+
*
|
4018
|
+
* @default public
|
4019
|
+
*/
|
4020
|
+
schema?: string;
|
4021
|
+
};
|
4022
|
+
type RollbackMigrationVariables = {
|
4023
|
+
body?: RollbackMigrationRequestBody;
|
4024
|
+
pathParams: RollbackMigrationPathParams;
|
4025
|
+
} & DataPlaneFetcherExtraProps;
|
4026
|
+
/**
|
4027
|
+
* Roll back an active migration on the specified database
|
4028
|
+
*/
|
4029
|
+
declare const rollbackMigration: (variables: RollbackMigrationVariables, signal?: AbortSignal) => Promise<RollbackMigrationResponse>;
|
3353
4030
|
type AdaptTablePathParams = {
|
3354
4031
|
/**
|
3355
4032
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3406,13 +4083,45 @@ type AdaptAllTablesVariables = {
|
|
3406
4083
|
declare const adaptAllTables: (variables: AdaptAllTablesVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
3407
4084
|
type GetBranchMigrationJobStatusPathParams = {
|
3408
4085
|
/**
|
3409
|
-
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4086
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4087
|
+
*/
|
4088
|
+
dbBranchName: DBBranchName;
|
4089
|
+
workspace: string;
|
4090
|
+
region: string;
|
4091
|
+
};
|
4092
|
+
type GetBranchMigrationJobStatusError = ErrorWrapper<{
|
4093
|
+
status: 400;
|
4094
|
+
payload: BadRequestError$1;
|
4095
|
+
} | {
|
4096
|
+
status: 401;
|
4097
|
+
payload: AuthError$1;
|
4098
|
+
} | {
|
4099
|
+
status: 404;
|
4100
|
+
payload: SimpleError$1;
|
4101
|
+
}>;
|
4102
|
+
type GetBranchMigrationJobStatusVariables = {
|
4103
|
+
pathParams: GetBranchMigrationJobStatusPathParams;
|
4104
|
+
} & DataPlaneFetcherExtraProps;
|
4105
|
+
declare const getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
4106
|
+
type GetMigrationJobsPathParams = {
|
4107
|
+
/**
|
4108
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4109
|
+
*/
|
4110
|
+
dbBranchName: DBBranchName;
|
4111
|
+
workspace: string;
|
4112
|
+
region: string;
|
4113
|
+
};
|
4114
|
+
type GetMigrationJobsQueryParams = {
|
4115
|
+
/**
|
4116
|
+
* @format date-time
|
4117
|
+
*/
|
4118
|
+
cursor?: string;
|
4119
|
+
/**
|
4120
|
+
* Page size
|
3410
4121
|
*/
|
3411
|
-
|
3412
|
-
workspace: string;
|
3413
|
-
region: string;
|
4122
|
+
limit?: PageSize$1;
|
3414
4123
|
};
|
3415
|
-
type
|
4124
|
+
type GetMigrationJobsError = ErrorWrapper<{
|
3416
4125
|
status: 400;
|
3417
4126
|
payload: BadRequestError$1;
|
3418
4127
|
} | {
|
@@ -3422,10 +4131,11 @@ type GetBranchMigrationJobStatusError = ErrorWrapper<{
|
|
3422
4131
|
status: 404;
|
3423
4132
|
payload: SimpleError$1;
|
3424
4133
|
}>;
|
3425
|
-
type
|
3426
|
-
pathParams:
|
4134
|
+
type GetMigrationJobsVariables = {
|
4135
|
+
pathParams: GetMigrationJobsPathParams;
|
4136
|
+
queryParams?: GetMigrationJobsQueryParams;
|
3427
4137
|
} & DataPlaneFetcherExtraProps;
|
3428
|
-
declare const
|
4138
|
+
declare const getMigrationJobs: (variables: GetMigrationJobsVariables, signal?: AbortSignal) => Promise<GetMigrationJobsResponse>;
|
3429
4139
|
type GetMigrationJobStatusPathParams = {
|
3430
4140
|
/**
|
3431
4141
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3460,6 +4170,16 @@ type GetMigrationHistoryPathParams = {
|
|
3460
4170
|
workspace: string;
|
3461
4171
|
region: string;
|
3462
4172
|
};
|
4173
|
+
type GetMigrationHistoryQueryParams = {
|
4174
|
+
/**
|
4175
|
+
* @format date-time
|
4176
|
+
*/
|
4177
|
+
cursor?: string;
|
4178
|
+
/**
|
4179
|
+
* Page size
|
4180
|
+
*/
|
4181
|
+
limit?: PageSize$1;
|
4182
|
+
};
|
3463
4183
|
type GetMigrationHistoryError = ErrorWrapper<{
|
3464
4184
|
status: 400;
|
3465
4185
|
payload: BadRequestError$1;
|
@@ -3472,6 +4192,7 @@ type GetMigrationHistoryError = ErrorWrapper<{
|
|
3472
4192
|
}>;
|
3473
4193
|
type GetMigrationHistoryVariables = {
|
3474
4194
|
pathParams: GetMigrationHistoryPathParams;
|
4195
|
+
queryParams?: GetMigrationHistoryQueryParams;
|
3475
4196
|
} & DataPlaneFetcherExtraProps;
|
3476
4197
|
declare const getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal) => Promise<MigrationHistoryResponse>;
|
3477
4198
|
type GetBranchListPathParams = {
|
@@ -3686,6 +4407,31 @@ type GetSchemaVariables = {
|
|
3686
4407
|
pathParams: GetSchemaPathParams;
|
3687
4408
|
} & DataPlaneFetcherExtraProps;
|
3688
4409
|
declare const getSchema: (variables: GetSchemaVariables, signal?: AbortSignal) => Promise<GetSchemaResponse>;
|
4410
|
+
type GetSchemasPathParams = {
|
4411
|
+
/**
|
4412
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4413
|
+
*/
|
4414
|
+
dbBranchName: DBBranchName;
|
4415
|
+
workspace: string;
|
4416
|
+
region: string;
|
4417
|
+
};
|
4418
|
+
type GetSchemasError = ErrorWrapper<{
|
4419
|
+
status: 400;
|
4420
|
+
payload: BadRequestError$1;
|
4421
|
+
} | {
|
4422
|
+
status: 401;
|
4423
|
+
payload: AuthError$1;
|
4424
|
+
} | {
|
4425
|
+
status: 404;
|
4426
|
+
payload: SimpleError$1;
|
4427
|
+
}>;
|
4428
|
+
type GetSchemasResponse = {
|
4429
|
+
schemas: BranchSchema[];
|
4430
|
+
};
|
4431
|
+
type GetSchemasVariables = {
|
4432
|
+
pathParams: GetSchemasPathParams;
|
4433
|
+
} & DataPlaneFetcherExtraProps;
|
4434
|
+
declare const getSchemas: (variables: GetSchemasVariables, signal?: AbortSignal) => Promise<GetSchemasResponse>;
|
3689
4435
|
type CopyBranchPathParams = {
|
3690
4436
|
/**
|
3691
4437
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3716,6 +4462,73 @@ type CopyBranchVariables = {
|
|
3716
4462
|
* Create a copy of the branch
|
3717
4463
|
*/
|
3718
4464
|
declare const copyBranch: (variables: CopyBranchVariables, signal?: AbortSignal) => Promise<BranchWithCopyID>;
|
4465
|
+
type GetBranchMoveStatusPathParams = {
|
4466
|
+
/**
|
4467
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4468
|
+
*/
|
4469
|
+
dbBranchName: DBBranchName;
|
4470
|
+
workspace: string;
|
4471
|
+
region: string;
|
4472
|
+
};
|
4473
|
+
type GetBranchMoveStatusError = ErrorWrapper<{
|
4474
|
+
status: 400;
|
4475
|
+
payload: BadRequestError$1;
|
4476
|
+
} | {
|
4477
|
+
status: 401;
|
4478
|
+
payload: AuthError$1;
|
4479
|
+
} | {
|
4480
|
+
status: 404;
|
4481
|
+
payload: SimpleError$1;
|
4482
|
+
}>;
|
4483
|
+
type GetBranchMoveStatusResponse = {
|
4484
|
+
state: string;
|
4485
|
+
pendingBytes: number;
|
4486
|
+
};
|
4487
|
+
type GetBranchMoveStatusVariables = {
|
4488
|
+
pathParams: GetBranchMoveStatusPathParams;
|
4489
|
+
} & DataPlaneFetcherExtraProps;
|
4490
|
+
/**
|
4491
|
+
* Get the branch move status (if a move is happening)
|
4492
|
+
*/
|
4493
|
+
declare const getBranchMoveStatus: (variables: GetBranchMoveStatusVariables, signal?: AbortSignal) => Promise<GetBranchMoveStatusResponse>;
|
4494
|
+
type MoveBranchPathParams = {
|
4495
|
+
/**
|
4496
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4497
|
+
*/
|
4498
|
+
dbBranchName: DBBranchName;
|
4499
|
+
workspace: string;
|
4500
|
+
region: string;
|
4501
|
+
};
|
4502
|
+
type MoveBranchError = ErrorWrapper<{
|
4503
|
+
status: 400;
|
4504
|
+
payload: BadRequestError$1;
|
4505
|
+
} | {
|
4506
|
+
status: 401;
|
4507
|
+
payload: AuthError$1;
|
4508
|
+
} | {
|
4509
|
+
status: 404;
|
4510
|
+
payload: SimpleError$1;
|
4511
|
+
} | {
|
4512
|
+
status: 423;
|
4513
|
+
payload: SimpleError$1;
|
4514
|
+
}>;
|
4515
|
+
type MoveBranchResponse = {
|
4516
|
+
state: string;
|
4517
|
+
};
|
4518
|
+
type MoveBranchRequestBody = {
|
4519
|
+
/**
|
4520
|
+
* Select the cluster to move the branch to. Must be different from the current cluster.
|
4521
|
+
*
|
4522
|
+
* @minLength 1
|
4523
|
+
* @x-internal true
|
4524
|
+
*/
|
4525
|
+
to: string;
|
4526
|
+
};
|
4527
|
+
type MoveBranchVariables = {
|
4528
|
+
body: MoveBranchRequestBody;
|
4529
|
+
pathParams: MoveBranchPathParams;
|
4530
|
+
} & DataPlaneFetcherExtraProps;
|
4531
|
+
declare const moveBranch: (variables: MoveBranchVariables, signal?: AbortSignal) => Promise<MoveBranchResponse>;
|
3719
4532
|
type UpdateBranchMetadataPathParams = {
|
3720
4533
|
/**
|
3721
4534
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -6890,187 +7703,222 @@ type SqlQueryError = ErrorWrapper<{
|
|
6890
7703
|
status: 503;
|
6891
7704
|
payload: ServiceUnavailableError;
|
6892
7705
|
}>;
|
6893
|
-
type SqlQueryRequestBody = {
|
6894
|
-
|
6895
|
-
|
6896
|
-
|
6897
|
-
|
6898
|
-
|
6899
|
-
|
6900
|
-
|
6901
|
-
|
6902
|
-
|
6903
|
-
|
7706
|
+
type SqlQueryRequestBody = PreparedStatement & {
|
7707
|
+
consistency?: SQLConsistency;
|
7708
|
+
responseType?: SQLResponseType$1;
|
7709
|
+
};
|
7710
|
+
type SqlQueryVariables = {
|
7711
|
+
body: SqlQueryRequestBody;
|
7712
|
+
pathParams: SqlQueryPathParams;
|
7713
|
+
} & DataPlaneFetcherExtraProps;
|
7714
|
+
/**
|
7715
|
+
* Run an SQL query across the database branch.
|
7716
|
+
*/
|
7717
|
+
declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse$1>;
|
7718
|
+
type SqlBatchQueryPathParams = {
|
6904
7719
|
/**
|
6905
|
-
* The
|
6906
|
-
*
|
6907
|
-
* @default strong
|
7720
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
6908
7721
|
*/
|
6909
|
-
|
7722
|
+
dbBranchName: DBBranchName;
|
7723
|
+
workspace: string;
|
7724
|
+
region: string;
|
7725
|
+
};
|
7726
|
+
type SqlBatchQueryError = ErrorWrapper<{
|
7727
|
+
status: 400;
|
7728
|
+
payload: BadRequestError$1;
|
7729
|
+
} | {
|
7730
|
+
status: 401;
|
7731
|
+
payload: AuthError$1;
|
7732
|
+
} | {
|
7733
|
+
status: 404;
|
7734
|
+
payload: SimpleError$1;
|
7735
|
+
} | {
|
7736
|
+
status: 503;
|
7737
|
+
payload: ServiceUnavailableError;
|
7738
|
+
}>;
|
7739
|
+
type SqlBatchQueryRequestBody = {
|
6910
7740
|
/**
|
6911
|
-
* The
|
7741
|
+
* The SQL statements.
|
6912
7742
|
*
|
6913
|
-
* @
|
7743
|
+
* @x-go-type []sqlproxy.PreparedStatement
|
6914
7744
|
*/
|
6915
|
-
|
7745
|
+
statements: PreparedStatement[];
|
7746
|
+
consistency?: SQLConsistency;
|
7747
|
+
responseType?: SQLResponseType$1;
|
6916
7748
|
};
|
6917
|
-
type
|
6918
|
-
body:
|
6919
|
-
pathParams:
|
7749
|
+
type SqlBatchQueryVariables = {
|
7750
|
+
body: SqlBatchQueryRequestBody;
|
7751
|
+
pathParams: SqlBatchQueryPathParams;
|
6920
7752
|
} & DataPlaneFetcherExtraProps;
|
6921
7753
|
/**
|
6922
|
-
* Run
|
7754
|
+
* Run multiple SQL queries across the database branch.
|
6923
7755
|
*/
|
6924
|
-
declare const
|
7756
|
+
declare const sqlBatchQuery: (variables: SqlBatchQueryVariables, signal?: AbortSignal) => Promise<SQLBatchResponse>;
|
6925
7757
|
|
6926
7758
|
declare const operationsByTag: {
|
6927
7759
|
branch: {
|
6928
|
-
getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal
|
6929
|
-
getBranchDetails: (variables: GetBranchDetailsVariables, signal?: AbortSignal
|
6930
|
-
createBranch: (variables: CreateBranchVariables, signal?: AbortSignal
|
6931
|
-
deleteBranch: (variables: DeleteBranchVariables, signal?: AbortSignal
|
6932
|
-
copyBranch: (variables: CopyBranchVariables, signal?: AbortSignal
|
6933
|
-
|
6934
|
-
|
6935
|
-
|
6936
|
-
|
6937
|
-
|
6938
|
-
|
6939
|
-
|
7760
|
+
getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal) => Promise<ListBranchesResponse>;
|
7761
|
+
getBranchDetails: (variables: GetBranchDetailsVariables, signal?: AbortSignal) => Promise<DBBranch>;
|
7762
|
+
createBranch: (variables: CreateBranchVariables, signal?: AbortSignal) => Promise<CreateBranchResponse>;
|
7763
|
+
deleteBranch: (variables: DeleteBranchVariables, signal?: AbortSignal) => Promise<DeleteBranchResponse>;
|
7764
|
+
copyBranch: (variables: CopyBranchVariables, signal?: AbortSignal) => Promise<BranchWithCopyID>;
|
7765
|
+
getBranchMoveStatus: (variables: GetBranchMoveStatusVariables, signal?: AbortSignal) => Promise<GetBranchMoveStatusResponse>;
|
7766
|
+
moveBranch: (variables: MoveBranchVariables, signal?: AbortSignal) => Promise<MoveBranchResponse>;
|
7767
|
+
updateBranchMetadata: (variables: UpdateBranchMetadataVariables, signal?: AbortSignal) => Promise<undefined>;
|
7768
|
+
getBranchMetadata: (variables: GetBranchMetadataVariables, signal?: AbortSignal) => Promise<BranchMetadata$1>;
|
7769
|
+
getBranchStats: (variables: GetBranchStatsVariables, signal?: AbortSignal) => Promise<GetBranchStatsResponse>;
|
7770
|
+
getGitBranchesMapping: (variables: GetGitBranchesMappingVariables, signal?: AbortSignal) => Promise<ListGitBranchesResponse>;
|
7771
|
+
addGitBranchesEntry: (variables: AddGitBranchesEntryVariables, signal?: AbortSignal) => Promise<AddGitBranchesEntryResponse>;
|
7772
|
+
removeGitBranchesEntry: (variables: RemoveGitBranchesEntryVariables, signal?: AbortSignal) => Promise<undefined>;
|
7773
|
+
resolveBranch: (variables: ResolveBranchVariables, signal?: AbortSignal) => Promise<ResolveBranchResponse>;
|
6940
7774
|
};
|
6941
7775
|
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
|
7776
|
+
getWorkspacesList: (variables: GetWorkspacesListVariables, signal?: AbortSignal) => Promise<GetWorkspacesListResponse>;
|
7777
|
+
createWorkspace: (variables: CreateWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7778
|
+
getWorkspace: (variables: GetWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7779
|
+
updateWorkspace: (variables: UpdateWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7780
|
+
deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal) => Promise<undefined>;
|
7781
|
+
getWorkspaceSettings: (variables: GetWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
|
7782
|
+
updateWorkspaceSettings: (variables: UpdateWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
|
7783
|
+
getWorkspaceMembersList: (variables: GetWorkspaceMembersListVariables, signal?: AbortSignal) => Promise<WorkspaceMembers>;
|
7784
|
+
updateWorkspaceMemberRole: (variables: UpdateWorkspaceMemberRoleVariables, signal?: AbortSignal) => Promise<undefined>;
|
7785
|
+
removeWorkspaceMember: (variables: RemoveWorkspaceMemberVariables, signal?: AbortSignal) => Promise<undefined>;
|
7786
|
+
};
|
7787
|
+
table: {
|
7788
|
+
createTable: (variables: CreateTableVariables, signal?: AbortSignal) => Promise<CreateTableResponse>;
|
7789
|
+
deleteTable: (variables: DeleteTableVariables, signal?: AbortSignal) => Promise<DeleteTableResponse>;
|
7790
|
+
updateTable: (variables: UpdateTableVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7791
|
+
getTableSchema: (variables: GetTableSchemaVariables, signal?: AbortSignal) => Promise<GetTableSchemaResponse>;
|
7792
|
+
setTableSchema: (variables: SetTableSchemaVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7793
|
+
getTableColumns: (variables: GetTableColumnsVariables, signal?: AbortSignal) => Promise<GetTableColumnsResponse>;
|
7794
|
+
addTableColumn: (variables: AddTableColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7795
|
+
getColumn: (variables: GetColumnVariables, signal?: AbortSignal) => Promise<Column>;
|
7796
|
+
updateColumn: (variables: UpdateColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7797
|
+
deleteColumn: (variables: DeleteColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
6952
7798
|
};
|
6953
7799
|
migrations: {
|
6954
|
-
applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal
|
6955
|
-
|
6956
|
-
|
6957
|
-
|
6958
|
-
|
6959
|
-
|
6960
|
-
|
6961
|
-
|
6962
|
-
|
6963
|
-
|
6964
|
-
|
6965
|
-
|
6966
|
-
|
6967
|
-
|
6968
|
-
|
6969
|
-
|
6970
|
-
|
7800
|
+
applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7801
|
+
startMigration: (variables: StartMigrationVariables, signal?: AbortSignal) => Promise<StartMigrationResponse>;
|
7802
|
+
completeMigration: (variables: CompleteMigrationVariables, signal?: AbortSignal) => Promise<CompleteMigrationResponse>;
|
7803
|
+
rollbackMigration: (variables: RollbackMigrationVariables, signal?: AbortSignal) => Promise<RollbackMigrationResponse>;
|
7804
|
+
adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7805
|
+
adaptAllTables: (variables: AdaptAllTablesVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7806
|
+
getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
7807
|
+
getMigrationJobs: (variables: GetMigrationJobsVariables, signal?: AbortSignal) => Promise<GetMigrationJobsResponse>;
|
7808
|
+
getMigrationJobStatus: (variables: GetMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
7809
|
+
getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal) => Promise<MigrationHistoryResponse>;
|
7810
|
+
getSchema: (variables: GetSchemaVariables, signal?: AbortSignal) => Promise<GetSchemaResponse>;
|
7811
|
+
getSchemas: (variables: GetSchemasVariables, signal?: AbortSignal) => Promise<GetSchemasResponse>;
|
7812
|
+
getBranchMigrationHistory: (variables: GetBranchMigrationHistoryVariables, signal?: AbortSignal) => Promise<GetBranchMigrationHistoryResponse>;
|
7813
|
+
getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables, signal?: AbortSignal) => Promise<BranchMigrationPlan>;
|
7814
|
+
executeBranchMigrationPlan: (variables: ExecuteBranchMigrationPlanVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7815
|
+
getBranchSchemaHistory: (variables: GetBranchSchemaHistoryVariables, signal?: AbortSignal) => Promise<GetBranchSchemaHistoryResponse>;
|
7816
|
+
compareBranchWithUserSchema: (variables: CompareBranchWithUserSchemaVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
7817
|
+
compareBranchSchemas: (variables: CompareBranchSchemasVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
7818
|
+
updateBranchSchema: (variables: UpdateBranchSchemaVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7819
|
+
previewBranchSchemaEdit: (variables: PreviewBranchSchemaEditVariables, signal?: AbortSignal) => Promise<PreviewBranchSchemaEditResponse>;
|
7820
|
+
applyBranchSchemaEdit: (variables: ApplyBranchSchemaEditVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7821
|
+
pushBranchMigrations: (variables: PushBranchMigrationsVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
6971
7822
|
};
|
6972
7823
|
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
|
7824
|
+
branchTransaction: (variables: BranchTransactionVariables, signal?: AbortSignal) => Promise<TransactionSuccess>;
|
7825
|
+
insertRecord: (variables: InsertRecordVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
7826
|
+
getRecord: (variables: GetRecordVariables, signal?: AbortSignal) => Promise<XataRecord$1>;
|
7827
|
+
insertRecordWithID: (variables: InsertRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
7828
|
+
updateRecordWithID: (variables: UpdateRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
7829
|
+
upsertRecordWithID: (variables: UpsertRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
7830
|
+
deleteRecord: (variables: DeleteRecordVariables, signal?: AbortSignal) => Promise<XataRecord$1>;
|
7831
|
+
bulkInsertTableRecords: (variables: BulkInsertTableRecordsVariables, signal?: AbortSignal) => Promise<BulkInsertResponse>;
|
7832
|
+
};
|
7833
|
+
cluster: {
|
7834
|
+
listClusterBranches: (variables: ListClusterBranchesVariables, signal?: AbortSignal) => Promise<ListClusterBranchesResponse>;
|
7835
|
+
listClusterExtensions: (variables: ListClusterExtensionsVariables, signal?: AbortSignal) => Promise<ListClusterExtensionsResponse>;
|
7836
|
+
installClusterExtension: (variables: InstallClusterExtensionVariables, signal?: AbortSignal) => Promise<ClusterExtensionInstallationResponse>;
|
7837
|
+
dropClusterExtension: (variables: DropClusterExtensionVariables, signal?: AbortSignal) => Promise<undefined>;
|
7838
|
+
getClusterMetrics: (variables: GetClusterMetricsVariables, signal?: AbortSignal) => Promise<MetricsResponse>;
|
6981
7839
|
};
|
6982
7840
|
database: {
|
6983
|
-
getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal
|
6984
|
-
updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal
|
7841
|
+
getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
7842
|
+
updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
6985
7843
|
};
|
6986
7844
|
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>;
|
7845
|
+
queryMigrationRequests: (variables: QueryMigrationRequestsVariables, signal?: AbortSignal) => Promise<QueryMigrationRequestsResponse>;
|
7846
|
+
createMigrationRequest: (variables: CreateMigrationRequestVariables, signal?: AbortSignal) => Promise<CreateMigrationRequestResponse>;
|
7847
|
+
getMigrationRequest: (variables: GetMigrationRequestVariables, signal?: AbortSignal) => Promise<MigrationRequest>;
|
7848
|
+
updateMigrationRequest: (variables: UpdateMigrationRequestVariables, signal?: AbortSignal) => Promise<undefined>;
|
7849
|
+
listMigrationRequestsCommits: (variables: ListMigrationRequestsCommitsVariables, signal?: AbortSignal) => Promise<ListMigrationRequestsCommitsResponse>;
|
7850
|
+
compareMigrationRequest: (variables: CompareMigrationRequestVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
7851
|
+
getMigrationRequestIsMerged: (variables: GetMigrationRequestIsMergedVariables, signal?: AbortSignal) => Promise<GetMigrationRequestIsMergedResponse>;
|
7852
|
+
mergeMigrationRequest: (variables: MergeMigrationRequestVariables, signal?: AbortSignal) => Promise<BranchOp>;
|
7007
7853
|
};
|
7008
7854
|
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
|
7855
|
+
getFileItem: (variables: GetFileItemVariables, signal?: AbortSignal) => Promise<Blob>;
|
7856
|
+
putFileItem: (variables: PutFileItemVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
7857
|
+
deleteFileItem: (variables: DeleteFileItemVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
7858
|
+
getFile: (variables: GetFileVariables, signal?: AbortSignal) => Promise<Blob>;
|
7859
|
+
putFile: (variables: PutFileVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
7860
|
+
deleteFile: (variables: DeleteFileVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
7861
|
+
fileAccess: (variables: FileAccessVariables, signal?: AbortSignal) => Promise<Blob>;
|
7862
|
+
fileUpload: (variables: FileUploadVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
7017
7863
|
};
|
7018
7864
|
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
|
7865
|
+
queryTable: (variables: QueryTableVariables, signal?: AbortSignal) => Promise<QueryResponse>;
|
7866
|
+
searchBranch: (variables: SearchBranchVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
7867
|
+
searchTable: (variables: SearchTableVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
7868
|
+
vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
7869
|
+
askTable: (variables: AskTableVariables, signal?: AbortSignal) => Promise<AskTableResponse>;
|
7870
|
+
askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal) => Promise<AskTableSessionResponse>;
|
7871
|
+
summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal) => Promise<SummarizeResponse>;
|
7872
|
+
aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal) => Promise<AggResponse>;
|
7027
7873
|
};
|
7028
7874
|
sql: {
|
7029
|
-
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal
|
7875
|
+
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse$1>;
|
7876
|
+
sqlBatchQuery: (variables: SqlBatchQueryVariables, signal?: AbortSignal) => Promise<SQLBatchResponse>;
|
7030
7877
|
};
|
7031
7878
|
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
|
7879
|
+
getAuthorizationCode: (variables: GetAuthorizationCodeVariables, signal?: AbortSignal) => Promise<AuthorizationCodeResponse>;
|
7880
|
+
grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal) => Promise<AuthorizationCodeResponse>;
|
7881
|
+
getUserOAuthClients: (variables: GetUserOAuthClientsVariables, signal?: AbortSignal) => Promise<GetUserOAuthClientsResponse>;
|
7882
|
+
deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal) => Promise<undefined>;
|
7883
|
+
getUserOAuthAccessTokens: (variables: GetUserOAuthAccessTokensVariables, signal?: AbortSignal) => Promise<GetUserOAuthAccessTokensResponse>;
|
7884
|
+
deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<undefined>;
|
7885
|
+
updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<OAuthAccessToken>;
|
7039
7886
|
};
|
7040
7887
|
users: {
|
7041
|
-
getUser: (variables:
|
7042
|
-
updateUser: (variables: UpdateUserVariables, signal?: AbortSignal
|
7043
|
-
deleteUser: (variables:
|
7888
|
+
getUser: (variables: GetUserVariables, signal?: AbortSignal) => Promise<UserWithID>;
|
7889
|
+
updateUser: (variables: UpdateUserVariables, signal?: AbortSignal) => Promise<UserWithID>;
|
7890
|
+
deleteUser: (variables: DeleteUserVariables, signal?: AbortSignal) => Promise<undefined>;
|
7044
7891
|
};
|
7045
7892
|
authentication: {
|
7046
|
-
getUserAPIKeys: (variables:
|
7047
|
-
createUserAPIKey: (variables: CreateUserAPIKeyVariables, signal?: AbortSignal
|
7048
|
-
deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables, signal?: AbortSignal
|
7893
|
+
getUserAPIKeys: (variables: GetUserAPIKeysVariables, signal?: AbortSignal) => Promise<GetUserAPIKeysResponse>;
|
7894
|
+
createUserAPIKey: (variables: CreateUserAPIKeyVariables, signal?: AbortSignal) => Promise<CreateUserAPIKeyResponse>;
|
7895
|
+
deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables, signal?: AbortSignal) => Promise<undefined>;
|
7049
7896
|
};
|
7050
7897
|
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
|
7898
|
+
inviteWorkspaceMember: (variables: InviteWorkspaceMemberVariables, signal?: AbortSignal) => Promise<WorkspaceInvite>;
|
7899
|
+
updateWorkspaceMemberInvite: (variables: UpdateWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<WorkspaceInvite>;
|
7900
|
+
cancelWorkspaceMemberInvite: (variables: CancelWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
7901
|
+
acceptWorkspaceMemberInvite: (variables: AcceptWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
7902
|
+
resendWorkspaceMemberInvite: (variables: ResendWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
7056
7903
|
};
|
7057
7904
|
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
|
7905
|
+
listClusters: (variables: ListClustersVariables, signal?: AbortSignal) => Promise<ListClustersResponse>;
|
7906
|
+
createCluster: (variables: CreateClusterVariables, signal?: AbortSignal) => Promise<ClusterResponse>;
|
7907
|
+
getCluster: (variables: GetClusterVariables, signal?: AbortSignal) => Promise<ClusterMetadata>;
|
7908
|
+
updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterUpdateMetadata>;
|
7909
|
+
deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal) => Promise<ClusterDeleteMetadata>;
|
7062
7910
|
};
|
7063
7911
|
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
|
7912
|
+
getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal) => Promise<ListDatabasesResponse>;
|
7913
|
+
createDatabase: (variables: CreateDatabaseVariables, signal?: AbortSignal) => Promise<CreateDatabaseResponse>;
|
7914
|
+
deleteDatabase: (variables: DeleteDatabaseVariables, signal?: AbortSignal) => Promise<DeleteDatabaseResponse>;
|
7915
|
+
getDatabaseMetadata: (variables: GetDatabaseMetadataVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
7916
|
+
updateDatabaseMetadata: (variables: UpdateDatabaseMetadataVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
7917
|
+
renameDatabase: (variables: RenameDatabaseVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
7918
|
+
getDatabaseGithubSettings: (variables: GetDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<DatabaseGithubSettings>;
|
7919
|
+
updateDatabaseGithubSettings: (variables: UpdateDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<DatabaseGithubSettings>;
|
7920
|
+
deleteDatabaseGithubSettings: (variables: DeleteDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<undefined>;
|
7921
|
+
listRegions: (variables: ListRegionsVariables, signal?: AbortSignal) => Promise<ListRegionsResponse>;
|
7074
7922
|
};
|
7075
7923
|
};
|
7076
7924
|
|
@@ -7093,6 +7941,27 @@ declare function parseWorkspacesUrlParts(url: string): {
|
|
7093
7941
|
host: HostAliases;
|
7094
7942
|
} | null;
|
7095
7943
|
|
7944
|
+
type ApiExtraProps = Omit<FetcherExtraProps, 'endpoint'>;
|
7945
|
+
interface XataApiClientOptions {
|
7946
|
+
fetch?: FetchImpl;
|
7947
|
+
apiKey?: string;
|
7948
|
+
host?: HostProvider;
|
7949
|
+
trace?: TraceFunction;
|
7950
|
+
clientName?: string;
|
7951
|
+
xataAgentExtra?: Record<string, string>;
|
7952
|
+
}
|
7953
|
+
type UserProps = {
|
7954
|
+
headers?: Record<string, unknown>;
|
7955
|
+
};
|
7956
|
+
type XataApiProxy = {
|
7957
|
+
[Tag in keyof typeof operationsByTag]: {
|
7958
|
+
[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;
|
7959
|
+
};
|
7960
|
+
};
|
7961
|
+
declare const XataApiClient_base: new (options?: XataApiClientOptions) => XataApiProxy;
|
7962
|
+
declare class XataApiClient extends XataApiClient_base {
|
7963
|
+
}
|
7964
|
+
|
7096
7965
|
type responses_AggResponse = AggResponse;
|
7097
7966
|
type responses_BranchMigrationPlan = BranchMigrationPlan;
|
7098
7967
|
type responses_BulkError = BulkError;
|
@@ -7102,6 +7971,7 @@ type responses_QueryResponse = QueryResponse;
|
|
7102
7971
|
type responses_RateLimitError = RateLimitError;
|
7103
7972
|
type responses_RecordResponse = RecordResponse;
|
7104
7973
|
type responses_RecordUpdateResponse = RecordUpdateResponse;
|
7974
|
+
type responses_SQLBatchResponse = SQLBatchResponse;
|
7105
7975
|
type responses_SQLResponse = SQLResponse;
|
7106
7976
|
type responses_SchemaCompareResponse = SchemaCompareResponse;
|
7107
7977
|
type responses_SchemaUpdateResponse = SchemaUpdateResponse;
|
@@ -7109,7 +7979,7 @@ type responses_SearchResponse = SearchResponse;
|
|
7109
7979
|
type responses_ServiceUnavailableError = ServiceUnavailableError;
|
7110
7980
|
type responses_SummarizeResponse = SummarizeResponse;
|
7111
7981
|
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 };
|
7982
|
+
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
7983
|
}
|
7114
7984
|
|
7115
7985
|
type schemas_APIKeyName = APIKeyName;
|
@@ -7124,14 +7994,17 @@ type schemas_AutoscalingConfigResponse = AutoscalingConfigResponse;
|
|
7124
7994
|
type schemas_AverageAgg = AverageAgg;
|
7125
7995
|
type schemas_BoosterExpression = BoosterExpression;
|
7126
7996
|
type schemas_Branch = Branch;
|
7997
|
+
type schemas_BranchDetails = BranchDetails;
|
7127
7998
|
type schemas_BranchMigration = BranchMigration;
|
7128
7999
|
type schemas_BranchOp = BranchOp;
|
7129
8000
|
type schemas_BranchSchema = BranchSchema;
|
8001
|
+
type schemas_BranchState = BranchState;
|
7130
8002
|
type schemas_BranchWithCopyID = BranchWithCopyID;
|
7131
8003
|
type schemas_ClusterConfiguration = ClusterConfiguration;
|
7132
8004
|
type schemas_ClusterConfigurationResponse = ClusterConfigurationResponse;
|
7133
8005
|
type schemas_ClusterCreateDetails = ClusterCreateDetails;
|
7134
|
-
type
|
8006
|
+
type schemas_ClusterDeleteMetadata = ClusterDeleteMetadata;
|
8007
|
+
type schemas_ClusterExtensionInstallationResponse = ClusterExtensionInstallationResponse;
|
7135
8008
|
type schemas_ClusterMetadata = ClusterMetadata;
|
7136
8009
|
type schemas_ClusterResponse = ClusterResponse;
|
7137
8010
|
type schemas_ClusterShortMetadata = ClusterShortMetadata;
|
@@ -7148,6 +8021,7 @@ type schemas_ColumnOpRename = ColumnOpRename;
|
|
7148
8021
|
type schemas_ColumnVector = ColumnVector;
|
7149
8022
|
type schemas_ColumnsProjection = ColumnsProjection;
|
7150
8023
|
type schemas_Commit = Commit;
|
8024
|
+
type schemas_CompleteMigrationResponse = CompleteMigrationResponse;
|
7151
8025
|
type schemas_CountAgg = CountAgg;
|
7152
8026
|
type schemas_DBBranch = DBBranch;
|
7153
8027
|
type schemas_DBBranchName = DBBranchName;
|
@@ -7157,6 +8031,7 @@ type schemas_DatabaseGithubSettings = DatabaseGithubSettings;
|
|
7157
8031
|
type schemas_DatabaseMetadata = DatabaseMetadata;
|
7158
8032
|
type schemas_DatabaseSettings = DatabaseSettings;
|
7159
8033
|
type schemas_DateHistogramAgg = DateHistogramAgg;
|
8034
|
+
type schemas_ExtensionDetails = ExtensionDetails;
|
7160
8035
|
type schemas_FileAccessID = FileAccessID;
|
7161
8036
|
type schemas_FileItemID = FileItemID;
|
7162
8037
|
type schemas_FileName = FileName;
|
@@ -7172,6 +8047,7 @@ type schemas_FilterPredicateRangeOp = FilterPredicateRangeOp;
|
|
7172
8047
|
type schemas_FilterRangeValue = FilterRangeValue;
|
7173
8048
|
type schemas_FilterValue = FilterValue;
|
7174
8049
|
type schemas_FuzzinessExpression = FuzzinessExpression;
|
8050
|
+
type schemas_GetMigrationJobsResponse = GetMigrationJobsResponse;
|
7175
8051
|
type schemas_HighlightExpression = HighlightExpression;
|
7176
8052
|
type schemas_InputFile = InputFile;
|
7177
8053
|
type schemas_InputFileArray = InputFileArray;
|
@@ -7179,6 +8055,8 @@ type schemas_InputFileEntry = InputFileEntry;
|
|
7179
8055
|
type schemas_InviteID = InviteID;
|
7180
8056
|
type schemas_InviteKey = InviteKey;
|
7181
8057
|
type schemas_ListBranchesResponse = ListBranchesResponse;
|
8058
|
+
type schemas_ListClusterBranchesResponse = ListClusterBranchesResponse;
|
8059
|
+
type schemas_ListClusterExtensionsResponse = ListClusterExtensionsResponse;
|
7182
8060
|
type schemas_ListClustersResponse = ListClustersResponse;
|
7183
8061
|
type schemas_ListDatabasesResponse = ListDatabasesResponse;
|
7184
8062
|
type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
|
@@ -7187,18 +8065,24 @@ type schemas_MaintenanceConfig = MaintenanceConfig;
|
|
7187
8065
|
type schemas_MaintenanceConfigResponse = MaintenanceConfigResponse;
|
7188
8066
|
type schemas_MaxAgg = MaxAgg;
|
7189
8067
|
type schemas_MediaType = MediaType;
|
8068
|
+
type schemas_MetricData = MetricData;
|
8069
|
+
type schemas_MetricMessage = MetricMessage;
|
7190
8070
|
type schemas_MetricsDatapoint = MetricsDatapoint;
|
7191
8071
|
type schemas_MetricsLatency = MetricsLatency;
|
8072
|
+
type schemas_MetricsResponse = MetricsResponse;
|
7192
8073
|
type schemas_Migration = Migration;
|
7193
8074
|
type schemas_MigrationColumnOp = MigrationColumnOp;
|
8075
|
+
type schemas_MigrationDescription = MigrationDescription;
|
7194
8076
|
type schemas_MigrationHistoryItem = MigrationHistoryItem;
|
7195
8077
|
type schemas_MigrationHistoryResponse = MigrationHistoryResponse;
|
7196
8078
|
type schemas_MigrationJobID = MigrationJobID;
|
8079
|
+
type schemas_MigrationJobItem = MigrationJobItem;
|
7197
8080
|
type schemas_MigrationJobStatus = MigrationJobStatus;
|
7198
8081
|
type schemas_MigrationJobStatusResponse = MigrationJobStatusResponse;
|
7199
8082
|
type schemas_MigrationJobType = MigrationJobType;
|
7200
8083
|
type schemas_MigrationObject = MigrationObject;
|
7201
8084
|
type schemas_MigrationOp = MigrationOp;
|
8085
|
+
type schemas_MigrationOperationDescription = MigrationOperationDescription;
|
7202
8086
|
type schemas_MigrationRequest = MigrationRequest;
|
7203
8087
|
type schemas_MigrationRequestNumber = MigrationRequestNumber;
|
7204
8088
|
type schemas_MigrationTableOp = MigrationTableOp;
|
@@ -7212,11 +8096,9 @@ type schemas_OAuthResponseType = OAuthResponseType;
|
|
7212
8096
|
type schemas_OAuthScope = OAuthScope;
|
7213
8097
|
type schemas_ObjectValue = ObjectValue;
|
7214
8098
|
type schemas_PageConfig = PageConfig;
|
7215
|
-
type schemas_PageResponse = PageResponse;
|
7216
|
-
type schemas_PageSize = PageSize;
|
7217
|
-
type schemas_PageToken = PageToken;
|
7218
8099
|
type schemas_PercentilesAgg = PercentilesAgg;
|
7219
8100
|
type schemas_PrefixExpression = PrefixExpression;
|
8101
|
+
type schemas_PreparedStatement = PreparedStatement;
|
7220
8102
|
type schemas_ProjectionConfig = ProjectionConfig;
|
7221
8103
|
type schemas_QueryColumnsProjection = QueryColumnsProjection;
|
7222
8104
|
type schemas_RecordID = RecordID;
|
@@ -7225,12 +8107,18 @@ type schemas_RecordsMetadata = RecordsMetadata;
|
|
7225
8107
|
type schemas_Region = Region;
|
7226
8108
|
type schemas_RevLink = RevLink;
|
7227
8109
|
type schemas_Role = Role;
|
8110
|
+
type schemas_RollbackMigrationResponse = RollbackMigrationResponse;
|
8111
|
+
type schemas_SQLConsistency = SQLConsistency;
|
7228
8112
|
type schemas_SQLRecord = SQLRecord;
|
8113
|
+
type schemas_SQLResponseArray = SQLResponseArray;
|
8114
|
+
type schemas_SQLResponseBase = SQLResponseBase;
|
8115
|
+
type schemas_SQLResponseJSON = SQLResponseJSON;
|
7229
8116
|
type schemas_Schema = Schema;
|
7230
8117
|
type schemas_SchemaEditScript = SchemaEditScript;
|
7231
8118
|
type schemas_SearchPageConfig = SearchPageConfig;
|
7232
8119
|
type schemas_SortExpression = SortExpression;
|
7233
8120
|
type schemas_SortOrder = SortOrder;
|
8121
|
+
type schemas_StartMigrationResponse = StartMigrationResponse;
|
7234
8122
|
type schemas_StartedFromMetadata = StartedFromMetadata;
|
7235
8123
|
type schemas_SumAgg = SumAgg;
|
7236
8124
|
type schemas_SummaryExpression = SummaryExpression;
|
@@ -7270,772 +8158,13 @@ type schemas_WorkspaceMeta = WorkspaceMeta;
|
|
7270
8158
|
type schemas_WorkspacePlan = WorkspacePlan;
|
7271
8159
|
type schemas_WorkspaceSettings = WorkspaceSettings;
|
7272
8160
|
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>;
|
8161
|
+
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, 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_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_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
8162
|
}
|
8001
8163
|
|
8002
8164
|
declare class XataApiPlugin implements XataPlugin {
|
8003
8165
|
build(options: XataPluginOptions): XataApiClient;
|
8004
8166
|
}
|
8005
8167
|
|
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
8168
|
interface ImageTransformations {
|
8040
8169
|
/**
|
8041
8170
|
* Whether to preserve animation frames from input files. Default is true.
|
@@ -9021,13 +9150,13 @@ type XataRecordMetadata = {
|
|
9021
9150
|
declare function isIdentifiable(x: any): x is Identifiable & Record<string, unknown>;
|
9022
9151
|
declare function isXataRecord(x: any): x is XataRecord & Record<string, unknown>;
|
9023
9152
|
type NumericOperator = ExclusiveOr<{
|
9024
|
-
$increment
|
9153
|
+
$increment: number;
|
9025
9154
|
}, ExclusiveOr<{
|
9026
|
-
$decrement
|
9155
|
+
$decrement: number;
|
9027
9156
|
}, ExclusiveOr<{
|
9028
|
-
$multiply
|
9157
|
+
$multiply: number;
|
9029
9158
|
}, {
|
9030
|
-
$divide
|
9159
|
+
$divide: number;
|
9031
9160
|
}>>>;
|
9032
9161
|
type InputXataFile = Partial<XataArrayFile> | Promise<Partial<XataArrayFile>>;
|
9033
9162
|
type EditableDataFields<T> = T extends XataRecord ? {
|
@@ -10896,10 +11025,37 @@ type SQLQueryParams<T = any[]> = {
|
|
10896
11025
|
params?: T;
|
10897
11026
|
/**
|
10898
11027
|
* The consistency level to use when executing the query.
|
11028
|
+
* @default 'strong'
|
10899
11029
|
*/
|
10900
11030
|
consistency?: 'strong' | 'eventual';
|
10901
11031
|
/**
|
10902
11032
|
* The response type to use when executing the query.
|
11033
|
+
* @default 'json'
|
11034
|
+
*/
|
11035
|
+
responseType?: 'json' | 'array';
|
11036
|
+
};
|
11037
|
+
type SQLBatchQuery = {
|
11038
|
+
/**
|
11039
|
+
* The SQL statements to execute.
|
11040
|
+
*/
|
11041
|
+
statements: {
|
11042
|
+
/**
|
11043
|
+
* The SQL statement to execute.
|
11044
|
+
*/
|
11045
|
+
statement: string;
|
11046
|
+
/**
|
11047
|
+
* The parameters to pass to the SQL statement.
|
11048
|
+
*/
|
11049
|
+
params?: any[];
|
11050
|
+
}[];
|
11051
|
+
/**
|
11052
|
+
* The consistency level to use when executing the queries.
|
11053
|
+
* @default 'strong'
|
11054
|
+
*/
|
11055
|
+
consistency?: 'strong' | 'eventual';
|
11056
|
+
/**
|
11057
|
+
* The response type to use when executing the queries.
|
11058
|
+
* @default 'json'
|
10903
11059
|
*/
|
10904
11060
|
responseType?: 'json' | 'array';
|
10905
11061
|
};
|
@@ -10948,6 +11104,13 @@ type SQLPluginResult = SQLPluginFunction & {
|
|
10948
11104
|
* Connects with the same credentials as the Xata client.
|
10949
11105
|
*/
|
10950
11106
|
connectionString: string;
|
11107
|
+
/**
|
11108
|
+
* Executes a batch of SQL statements.
|
11109
|
+
* @param query The batch of SQL statements to execute.
|
11110
|
+
*/
|
11111
|
+
batch: <Query extends SQLBatchQuery = SQLBatchQuery>(query: Query) => Promise<{
|
11112
|
+
results: Array<SQLQueryResult<any, Query extends SQLBatchQuery ? Query['responseType'] extends SQLResponseType ? NonNullable<Query['responseType']> : 'json' : 'json'>>;
|
11113
|
+
}>;
|
10951
11114
|
};
|
10952
11115
|
declare class SQLPlugin extends XataPlugin {
|
10953
11116
|
build(pluginOptions: XataPluginOptions): SQLPluginResult;
|
@@ -11115,4 +11278,4 @@ declare class XataError extends Error {
|
|
11115
11278
|
constructor(message: string, status: number);
|
11116
11279
|
}
|
11117
11280
|
|
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 };
|
11281
|
+
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 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 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, 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, 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 };
|