@xata.io/client 0.29.5 → 0.30.1
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 +138 -1336
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +966 -1009
- package/dist/index.mjs +127 -1337
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -57,11 +57,180 @@ type Response = {
|
|
57
57
|
};
|
58
58
|
type FetchImpl = (url: string, init?: RequestInit) => Promise<Response>;
|
59
59
|
|
60
|
+
type StringKeys<O> = Extract<keyof O, string>;
|
61
|
+
type Values<O> = O[StringKeys<O>];
|
62
|
+
type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never;
|
63
|
+
type If<Condition, Then, Else> = Condition extends true ? Then : Else;
|
64
|
+
type IsObject<T> = T extends Record<string, any> ? true : false;
|
65
|
+
type IsArray<T> = T extends Array<any> ? true : false;
|
66
|
+
type RequiredBy<T, K extends keyof T> = T & {
|
67
|
+
[P in K]-?: NonNullable<T[P]>;
|
68
|
+
};
|
69
|
+
type GetArrayInnerType<T extends readonly any[]> = T[number];
|
70
|
+
type SingleOrArray<T> = T | T[];
|
71
|
+
type Dictionary<T> = Record<string, T>;
|
72
|
+
type OmitBy<T, K extends keyof T> = T extends any ? Omit<T, K> : never;
|
73
|
+
type Without<T, U> = {
|
74
|
+
[P in Exclude<keyof T, keyof U>]?: never;
|
75
|
+
};
|
76
|
+
type ExclusiveOr<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
|
77
|
+
type Explode<T> = keyof T extends infer K ? K extends unknown ? {
|
78
|
+
[I in keyof T]: I extends K ? T[I] : never;
|
79
|
+
} : never : never;
|
80
|
+
type AtMostOne<T> = Explode<Partial<T>>;
|
81
|
+
type AtLeastOne<T, U = {
|
82
|
+
[K in keyof T]: Pick<T, K>;
|
83
|
+
}> = Partial<T> & U[keyof U];
|
84
|
+
type ExactlyOne<T> = AtMostOne<T> & AtLeastOne<T>;
|
85
|
+
type Fn = (...args: any[]) => any;
|
86
|
+
type NarrowRaw<A> = (A extends [] ? [] : never) | (A extends Narrowable ? A : never) | {
|
87
|
+
[K in keyof A]: A[K] extends Fn ? A[K] : NarrowRaw<A[K]>;
|
88
|
+
};
|
89
|
+
type Narrowable = string | number | bigint | boolean;
|
90
|
+
type Try<A1, A2, Catch = never> = A1 extends A2 ? A1 : Catch;
|
91
|
+
type Narrow<A> = Try<A, [], NarrowRaw<A>>;
|
92
|
+
type RequiredKeys<T> = {
|
93
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? never : K;
|
94
|
+
}[keyof T];
|
95
|
+
|
60
96
|
/**
|
61
97
|
* Generated by @openapi-codegen
|
62
98
|
*
|
63
99
|
* @version 1.0
|
64
100
|
*/
|
101
|
+
type TaskStatus = 'scheduled' | 'pending' | 'active' | 'retry' | 'archived' | 'completed';
|
102
|
+
type TaskStatusResponse = {
|
103
|
+
/**
|
104
|
+
* The id of the task
|
105
|
+
*/
|
106
|
+
taskID: string;
|
107
|
+
/**
|
108
|
+
* The type of the task
|
109
|
+
*/
|
110
|
+
type: string;
|
111
|
+
/**
|
112
|
+
* The status of the task
|
113
|
+
*/
|
114
|
+
status: TaskStatus;
|
115
|
+
/**
|
116
|
+
* Any error message associated with the task
|
117
|
+
*/
|
118
|
+
error?: string;
|
119
|
+
};
|
120
|
+
/**
|
121
|
+
* @maxLength 255
|
122
|
+
* @minLength 1
|
123
|
+
* @pattern [a-zA-Z0-9_\-~]+
|
124
|
+
*/
|
125
|
+
type TaskID = string;
|
126
|
+
/**
|
127
|
+
* @x-internal true
|
128
|
+
* @pattern [a-zA-Z0-9_-~:]+
|
129
|
+
*/
|
130
|
+
type ClusterID$1 = string;
|
131
|
+
/**
|
132
|
+
* Page size.
|
133
|
+
*
|
134
|
+
* @x-internal true
|
135
|
+
* @default 25
|
136
|
+
* @minimum 0
|
137
|
+
*/
|
138
|
+
type PageSize$1 = number;
|
139
|
+
/**
|
140
|
+
* Page token
|
141
|
+
*
|
142
|
+
* @x-internal true
|
143
|
+
* @maxLength 255
|
144
|
+
* @minLength 24
|
145
|
+
*/
|
146
|
+
type PageToken$1 = string;
|
147
|
+
/**
|
148
|
+
* @format date-time
|
149
|
+
* @x-go-type string
|
150
|
+
*/
|
151
|
+
type DateTime$1 = string;
|
152
|
+
/**
|
153
|
+
* @x-internal true
|
154
|
+
*/
|
155
|
+
type BranchDetails = {
|
156
|
+
name: string;
|
157
|
+
id: string;
|
158
|
+
/**
|
159
|
+
* The cluster where this branch resides.
|
160
|
+
*
|
161
|
+
* @minLength 1
|
162
|
+
*/
|
163
|
+
clusterID: string;
|
164
|
+
state: string;
|
165
|
+
createdAt: DateTime$1;
|
166
|
+
databaseName: string;
|
167
|
+
databaseID: string;
|
168
|
+
};
|
169
|
+
/**
|
170
|
+
* @x-internal true
|
171
|
+
*/
|
172
|
+
type PageResponse$1 = {
|
173
|
+
size: number;
|
174
|
+
hasMore: boolean;
|
175
|
+
token?: string;
|
176
|
+
};
|
177
|
+
/**
|
178
|
+
* @x-internal true
|
179
|
+
*/
|
180
|
+
type ListClusterBranchesResponse = {
|
181
|
+
branches: BranchDetails[];
|
182
|
+
page?: PageResponse$1;
|
183
|
+
};
|
184
|
+
/**
|
185
|
+
* @x-internal true
|
186
|
+
*/
|
187
|
+
type ExtensionDetails = {
|
188
|
+
name: string;
|
189
|
+
description: string;
|
190
|
+
builtIn: boolean;
|
191
|
+
status: 'installed' | 'not_installed';
|
192
|
+
version: string;
|
193
|
+
};
|
194
|
+
/**
|
195
|
+
* @x-internal true
|
196
|
+
*/
|
197
|
+
type ListClusterExtensionsResponse = {
|
198
|
+
extensions: ExtensionDetails[];
|
199
|
+
};
|
200
|
+
/**
|
201
|
+
* @x-internal true
|
202
|
+
*/
|
203
|
+
type ClusterExtensionInstallationResponse = {
|
204
|
+
extension: string;
|
205
|
+
status: 'success' | 'failure';
|
206
|
+
reason?: string;
|
207
|
+
};
|
208
|
+
/**
|
209
|
+
* @x-internal true
|
210
|
+
*/
|
211
|
+
type MetricMessage = {
|
212
|
+
code?: string;
|
213
|
+
value?: string;
|
214
|
+
};
|
215
|
+
/**
|
216
|
+
* @x-internal true
|
217
|
+
*/
|
218
|
+
type MetricData = {
|
219
|
+
id?: string;
|
220
|
+
label?: string;
|
221
|
+
messages?: MetricMessage[] | null;
|
222
|
+
status: 'complete' | 'error' | 'partial' | 'forbidden';
|
223
|
+
timestamps: string[];
|
224
|
+
values: number[];
|
225
|
+
};
|
226
|
+
/**
|
227
|
+
* @x-internal true
|
228
|
+
*/
|
229
|
+
type MetricsResponse = {
|
230
|
+
metrics: MetricData[];
|
231
|
+
messages: MetricMessage[];
|
232
|
+
page?: PageResponse$1;
|
233
|
+
};
|
65
234
|
/**
|
66
235
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
67
236
|
*
|
@@ -208,11 +377,65 @@ type MigrationJobStatusResponse = {
|
|
208
377
|
* The effect of any active migration on the schema
|
209
378
|
*/
|
210
379
|
description?: MigrationDescription;
|
380
|
+
/**
|
381
|
+
* The timestamp at which the migration job completed or failed
|
382
|
+
*
|
383
|
+
* @format date-time
|
384
|
+
*/
|
385
|
+
completedAt?: string;
|
386
|
+
/**
|
387
|
+
* The error message associated with the migration job
|
388
|
+
*/
|
389
|
+
error?: string;
|
390
|
+
};
|
391
|
+
type MigrationJobItem = {
|
392
|
+
/**
|
393
|
+
* The id of the migration job
|
394
|
+
*/
|
395
|
+
jobID: string;
|
396
|
+
/**
|
397
|
+
* The type of the migration job
|
398
|
+
*/
|
399
|
+
type: MigrationJobType;
|
400
|
+
/**
|
401
|
+
* The status of the migration job
|
402
|
+
*/
|
403
|
+
status: MigrationJobStatus;
|
404
|
+
/**
|
405
|
+
* The pgroll migration that was applied
|
406
|
+
*/
|
407
|
+
migration?: string;
|
408
|
+
/**
|
409
|
+
* The effect of any active migration on the schema
|
410
|
+
*/
|
411
|
+
description?: MigrationDescription;
|
412
|
+
/**
|
413
|
+
* The timestamp at which the migration job was enqueued
|
414
|
+
*
|
415
|
+
* @format date-time
|
416
|
+
*/
|
417
|
+
enqueuedAt: string;
|
418
|
+
/**
|
419
|
+
* The timestamp at which the migration job completed or failed
|
420
|
+
*
|
421
|
+
* @format date-time
|
422
|
+
*/
|
423
|
+
completedAt?: string;
|
211
424
|
/**
|
212
425
|
* The error message associated with the migration job
|
213
426
|
*/
|
214
427
|
error?: string;
|
215
428
|
};
|
429
|
+
type GetMigrationJobsResponse = {
|
430
|
+
/**
|
431
|
+
* The list of migration jobs
|
432
|
+
*/
|
433
|
+
jobs: MigrationJobItem[];
|
434
|
+
/**
|
435
|
+
* The cursor (timestamp) for the next page of results
|
436
|
+
*/
|
437
|
+
cursor?: string;
|
438
|
+
};
|
216
439
|
/**
|
217
440
|
* @maxLength 255
|
218
441
|
* @minLength 1
|
@@ -225,6 +448,10 @@ type MigrationHistoryItem = {
|
|
225
448
|
* The name of the migration
|
226
449
|
*/
|
227
450
|
name: string;
|
451
|
+
/**
|
452
|
+
* The schema in which the migration was applied
|
453
|
+
*/
|
454
|
+
schema: string;
|
228
455
|
/**
|
229
456
|
* The pgroll migration that was applied
|
230
457
|
*/
|
@@ -265,10 +492,9 @@ type MigrationHistoryResponse = {
|
|
265
492
|
*/
|
266
493
|
type DBName$1 = string;
|
267
494
|
/**
|
268
|
-
*
|
269
|
-
* @x-go-type string
|
495
|
+
* Represent the state of the branch, used for branch lifecycle management
|
270
496
|
*/
|
271
|
-
type
|
497
|
+
type BranchState = 'active' | 'move_scheduled' | 'moving';
|
272
498
|
type Branch = {
|
273
499
|
name: string;
|
274
500
|
/**
|
@@ -277,7 +503,10 @@ type Branch = {
|
|
277
503
|
* @minLength 1
|
278
504
|
*/
|
279
505
|
clusterID?: string;
|
506
|
+
state: BranchState;
|
280
507
|
createdAt: DateTime$1;
|
508
|
+
searchDisabled?: boolean;
|
509
|
+
inactiveSharedCluster?: boolean;
|
281
510
|
};
|
282
511
|
type ListBranchesResponse = {
|
283
512
|
databaseName: string;
|
@@ -308,6 +537,12 @@ type BranchMetadata$1 = {
|
|
308
537
|
stage?: string;
|
309
538
|
labels?: string[];
|
310
539
|
};
|
540
|
+
type CreateBranchResponse$1 = {
|
541
|
+
/**
|
542
|
+
* The id of the branch creation task
|
543
|
+
*/
|
544
|
+
taskID: string;
|
545
|
+
};
|
311
546
|
type StartedFromMetadata = {
|
312
547
|
branchName: BranchName$1;
|
313
548
|
dbBranchID: string;
|
@@ -367,6 +602,7 @@ type DBBranch = {
|
|
367
602
|
*/
|
368
603
|
clusterID?: string;
|
369
604
|
version: number;
|
605
|
+
state: BranchState;
|
370
606
|
lastMigrationID: string;
|
371
607
|
metadata?: BranchMetadata$1;
|
372
608
|
startedFrom?: StartedFromMetadata;
|
@@ -1602,20 +1838,63 @@ type FileSignature = string;
|
|
1602
1838
|
type SQLRecord = {
|
1603
1839
|
[key: string]: any;
|
1604
1840
|
};
|
1841
|
+
/**
|
1842
|
+
* @default strong
|
1843
|
+
*/
|
1844
|
+
type SQLConsistency = 'strong' | 'eventual';
|
1845
|
+
/**
|
1846
|
+
* @default json
|
1847
|
+
*/
|
1848
|
+
type SQLResponseType$1 = 'json' | 'array';
|
1849
|
+
type PreparedStatement = {
|
1850
|
+
/**
|
1851
|
+
* The SQL statement.
|
1852
|
+
*
|
1853
|
+
* @minLength 1
|
1854
|
+
*/
|
1855
|
+
statement: string;
|
1856
|
+
/**
|
1857
|
+
* The query parameter list.
|
1858
|
+
*
|
1859
|
+
* @x-go-type []any
|
1860
|
+
*/
|
1861
|
+
params?: any[] | null;
|
1862
|
+
};
|
1863
|
+
type SQLResponseBase = {
|
1864
|
+
/**
|
1865
|
+
* Name of the column and its PostgreSQL type
|
1866
|
+
*
|
1867
|
+
* @x-go-type []sqlproxy.ColumnMeta
|
1868
|
+
*/
|
1869
|
+
columns: {
|
1870
|
+
name: string;
|
1871
|
+
type: string;
|
1872
|
+
}[];
|
1873
|
+
/**
|
1874
|
+
* Number of selected columns
|
1875
|
+
*/
|
1876
|
+
total: number;
|
1877
|
+
warning?: string;
|
1878
|
+
};
|
1879
|
+
type SQLResponseJSON = SQLResponseBase & {
|
1880
|
+
/**
|
1881
|
+
* @x-go-type []xata.Record
|
1882
|
+
*/
|
1883
|
+
records: SQLRecord[];
|
1884
|
+
};
|
1885
|
+
type SQLResponseArray = SQLResponseBase & {
|
1886
|
+
/**
|
1887
|
+
* @x-go-type []xata.Row
|
1888
|
+
*/
|
1889
|
+
rows: any[][];
|
1890
|
+
};
|
1891
|
+
type SQLResponse$1 = SQLResponseJSON | SQLResponseArray;
|
1605
1892
|
/**
|
1606
1893
|
* Xata Table Record Metadata
|
1607
1894
|
*/
|
1608
1895
|
type XataRecord$1 = RecordMeta & {
|
1609
1896
|
[key: string]: any;
|
1610
1897
|
};
|
1611
|
-
/**
|
1612
|
-
* Page size.
|
1613
|
-
*
|
1614
|
-
* @x-internal true
|
1615
|
-
* @default 25
|
1616
|
-
* @minimum 0
|
1617
|
-
*/
|
1618
|
-
type PaginationPageSize = number;
|
1619
1898
|
|
1620
1899
|
/**
|
1621
1900
|
* Generated by @openapi-codegen
|
@@ -1712,39 +1991,9 @@ type AggResponse = {
|
|
1712
1991
|
[key: string]: AggResponse$1;
|
1713
1992
|
};
|
1714
1993
|
};
|
1715
|
-
type SQLResponse =
|
1716
|
-
records?: SQLRecord[];
|
1717
|
-
rows?: any[][];
|
1718
|
-
/**
|
1719
|
-
* Name of the column and its PostgreSQL type
|
1720
|
-
*/
|
1721
|
-
columns?: {
|
1722
|
-
name?: string;
|
1723
|
-
type?: string;
|
1724
|
-
}[];
|
1725
|
-
/**
|
1726
|
-
* Number of selected columns
|
1727
|
-
*/
|
1728
|
-
total?: number;
|
1729
|
-
warning?: string;
|
1730
|
-
};
|
1994
|
+
type SQLResponse = SQLResponse$1;
|
1731
1995
|
type SQLBatchResponse = {
|
1732
|
-
results:
|
1733
|
-
records?: SQLRecord[];
|
1734
|
-
rows?: any[][];
|
1735
|
-
/**
|
1736
|
-
* Name of the column and its PostgreSQL type
|
1737
|
-
*/
|
1738
|
-
columns?: {
|
1739
|
-
name?: string;
|
1740
|
-
type?: string;
|
1741
|
-
}[];
|
1742
|
-
/**
|
1743
|
-
* Number of selected columns
|
1744
|
-
*/
|
1745
|
-
total?: number;
|
1746
|
-
warning?: string;
|
1747
|
-
}[];
|
1996
|
+
results: SQLResponse$1[];
|
1748
1997
|
};
|
1749
1998
|
|
1750
1999
|
/**
|
@@ -1841,7 +2090,6 @@ type Workspace = WorkspaceMeta & {
|
|
1841
2090
|
plan: WorkspacePlan;
|
1842
2091
|
};
|
1843
2092
|
type WorkspaceSettings = {
|
1844
|
-
postgresEnabled: boolean;
|
1845
2093
|
dedicatedClusters: boolean;
|
1846
2094
|
};
|
1847
2095
|
type WorkspaceMember = {
|
@@ -1910,6 +2158,8 @@ type ClusterShortMetadata = {
|
|
1910
2158
|
* @format int64
|
1911
2159
|
*/
|
1912
2160
|
branches: number;
|
2161
|
+
createdAt: DateTime;
|
2162
|
+
terminatedAt?: DateTime;
|
1913
2163
|
};
|
1914
2164
|
/**
|
1915
2165
|
* @x-internal true
|
@@ -1997,16 +2247,39 @@ type MaintenanceConfig = {
|
|
1997
2247
|
maintenanceWindow?: WeeklyTimeWindow;
|
1998
2248
|
backupWindow?: DailyTimeWindow;
|
1999
2249
|
};
|
2250
|
+
/**
|
2251
|
+
* @x-internal true
|
2252
|
+
*/
|
2253
|
+
type StorageConfig = {
|
2254
|
+
/**
|
2255
|
+
* @default gp3
|
2256
|
+
*/
|
2257
|
+
storageType: 'gp3' | 'io1' | 'io2';
|
2258
|
+
/**
|
2259
|
+
* @format int64
|
2260
|
+
* @default 50
|
2261
|
+
* @maximum 65536
|
2262
|
+
* @minimum 20
|
2263
|
+
*/
|
2264
|
+
allocatedStorageGB?: number;
|
2265
|
+
/**
|
2266
|
+
* @format int64
|
2267
|
+
* @default 3000
|
2268
|
+
* @maximum 256000
|
2269
|
+
* @minimum 1000
|
2270
|
+
*/
|
2271
|
+
provisionedIOPS?: number;
|
2272
|
+
};
|
2000
2273
|
/**
|
2001
2274
|
* @x-internal true
|
2002
2275
|
*/
|
2003
2276
|
type ClusterConfiguration = {
|
2004
2277
|
engineVersion: string;
|
2005
|
-
instanceType: string;
|
2006
2278
|
/**
|
2007
|
-
* @
|
2279
|
+
* @default aurora
|
2008
2280
|
*/
|
2009
|
-
|
2281
|
+
engineType?: 'aurora' | 'rds';
|
2282
|
+
instanceType: string;
|
2010
2283
|
/**
|
2011
2284
|
* @format int64
|
2012
2285
|
* @default 1
|
@@ -2020,6 +2293,7 @@ type ClusterConfiguration = {
|
|
2020
2293
|
deletionProtection?: boolean;
|
2021
2294
|
autoscaling?: AutoscalingConfig;
|
2022
2295
|
maintenance?: MaintenanceConfig;
|
2296
|
+
storage?: StorageConfig;
|
2023
2297
|
};
|
2024
2298
|
/**
|
2025
2299
|
* @x-internal true
|
@@ -2077,13 +2351,33 @@ type MaintenanceConfigResponse = {
|
|
2077
2351
|
/**
|
2078
2352
|
* @x-internal true
|
2079
2353
|
*/
|
2080
|
-
type
|
2081
|
-
|
2082
|
-
|
2354
|
+
type StorageConfigResponse = {
|
2355
|
+
/**
|
2356
|
+
* @default gp3
|
2357
|
+
*/
|
2358
|
+
storageType: 'gp3' | 'io1' | 'io2';
|
2083
2359
|
/**
|
2084
2360
|
* @format int64
|
2361
|
+
* @default 50
|
2362
|
+
* @maximum 65536
|
2363
|
+
* @minimum 20
|
2085
2364
|
*/
|
2086
|
-
|
2365
|
+
allocatedStorageGB?: number;
|
2366
|
+
/**
|
2367
|
+
* @format int64
|
2368
|
+
* @default 3000
|
2369
|
+
* @maximum 256000
|
2370
|
+
* @minimum 1000
|
2371
|
+
*/
|
2372
|
+
provisionedIOPS?: number;
|
2373
|
+
};
|
2374
|
+
/**
|
2375
|
+
* @x-internal true
|
2376
|
+
*/
|
2377
|
+
type ClusterConfigurationResponse = {
|
2378
|
+
engineVersion: string;
|
2379
|
+
engineType: 'aurora' | 'rds';
|
2380
|
+
instanceType: string;
|
2087
2381
|
/**
|
2088
2382
|
* @format int64
|
2089
2383
|
*/
|
@@ -2094,6 +2388,7 @@ type ClusterConfigurationResponse = {
|
|
2094
2388
|
deletionProtection: boolean;
|
2095
2389
|
autoscaling?: AutoscalingConfigResponse;
|
2096
2390
|
maintenance: MaintenanceConfigResponse;
|
2391
|
+
storage?: StorageConfigResponse;
|
2097
2392
|
};
|
2098
2393
|
/**
|
2099
2394
|
* @x-internal true
|
@@ -2126,10 +2421,7 @@ type ClusterDeleteMetadata = {
|
|
2126
2421
|
* @x-internal true
|
2127
2422
|
*/
|
2128
2423
|
type ClusterUpdateDetails = {
|
2129
|
-
|
2130
|
-
* @pattern ^[Ss][Tt][Oo][Pp]|[Ss][Tt][Aa][Rr][Tt]$
|
2131
|
-
*/
|
2132
|
-
command: string;
|
2424
|
+
configuration: ClusterConfiguration;
|
2133
2425
|
};
|
2134
2426
|
/**
|
2135
2427
|
* @x-internal true
|
@@ -2154,10 +2446,6 @@ type DatabaseMetadata = {
|
|
2154
2446
|
* The time this database was created
|
2155
2447
|
*/
|
2156
2448
|
createdAt: DateTime;
|
2157
|
-
/**
|
2158
|
-
* @x-internal true
|
2159
|
-
*/
|
2160
|
-
newMigrations?: boolean;
|
2161
2449
|
/**
|
2162
2450
|
* The default cluster ID where branches from this database reside. Value of 'shared-cluster' for branches in shared clusters.
|
2163
2451
|
*/
|
@@ -2599,6 +2887,7 @@ type GetWorkspacesListError = ErrorWrapper$1<{
|
|
2599
2887
|
type GetWorkspacesListResponse = {
|
2600
2888
|
workspaces: {
|
2601
2889
|
id: WorkspaceID;
|
2890
|
+
unique_id: string;
|
2602
2891
|
name: string;
|
2603
2892
|
slug: string;
|
2604
2893
|
role: Role;
|
@@ -2751,11 +3040,8 @@ type UpdateWorkspaceSettingsError = ErrorWrapper$1<{
|
|
2751
3040
|
status: 404;
|
2752
3041
|
payload: SimpleError;
|
2753
3042
|
}>;
|
2754
|
-
type UpdateWorkspaceSettingsRequestBody = {
|
2755
|
-
postgresEnabled: boolean;
|
2756
|
-
};
|
2757
3043
|
type UpdateWorkspaceSettingsVariables = {
|
2758
|
-
body
|
3044
|
+
body?: Record<string, any>;
|
2759
3045
|
pathParams: UpdateWorkspaceSettingsPathParams;
|
2760
3046
|
} & ControlPlaneFetcherExtraProps;
|
2761
3047
|
/**
|
@@ -3204,6 +3490,12 @@ type CreateDatabaseRequestBody = {
|
|
3204
3490
|
* @minLength 1
|
3205
3491
|
*/
|
3206
3492
|
region: string;
|
3493
|
+
/**
|
3494
|
+
* Enable postgres access for this database
|
3495
|
+
*
|
3496
|
+
* @default false
|
3497
|
+
*/
|
3498
|
+
postgresEnabled?: boolean;
|
3207
3499
|
/**
|
3208
3500
|
* The dedicated cluster where branches from this database will be created. Defaults to 'shared-cluster'.
|
3209
3501
|
*
|
@@ -3492,6 +3784,215 @@ type ErrorWrapper<TError> = TError | {
|
|
3492
3784
|
* @version 1.0
|
3493
3785
|
*/
|
3494
3786
|
|
3787
|
+
type GetTasksPathParams = {
|
3788
|
+
workspace: string;
|
3789
|
+
region: string;
|
3790
|
+
};
|
3791
|
+
type GetTasksError = ErrorWrapper<{
|
3792
|
+
status: 400;
|
3793
|
+
payload: BadRequestError$1;
|
3794
|
+
} | {
|
3795
|
+
status: 401;
|
3796
|
+
payload: AuthError$1;
|
3797
|
+
} | {
|
3798
|
+
status: 404;
|
3799
|
+
payload: SimpleError$1;
|
3800
|
+
}>;
|
3801
|
+
type GetTasksResponse = TaskStatusResponse[];
|
3802
|
+
type GetTasksVariables = {
|
3803
|
+
pathParams: GetTasksPathParams;
|
3804
|
+
} & DataPlaneFetcherExtraProps;
|
3805
|
+
declare const getTasks: (variables: GetTasksVariables, signal?: AbortSignal) => Promise<GetTasksResponse>;
|
3806
|
+
type GetTaskStatusPathParams = {
|
3807
|
+
/**
|
3808
|
+
* The id of the branch creation task
|
3809
|
+
*/
|
3810
|
+
taskId: TaskID;
|
3811
|
+
workspace: string;
|
3812
|
+
region: string;
|
3813
|
+
};
|
3814
|
+
type GetTaskStatusError = ErrorWrapper<{
|
3815
|
+
status: 400;
|
3816
|
+
payload: BadRequestError$1;
|
3817
|
+
} | {
|
3818
|
+
status: 401;
|
3819
|
+
payload: AuthError$1;
|
3820
|
+
} | {
|
3821
|
+
status: 404;
|
3822
|
+
payload: SimpleError$1;
|
3823
|
+
}>;
|
3824
|
+
type GetTaskStatusVariables = {
|
3825
|
+
pathParams: GetTaskStatusPathParams;
|
3826
|
+
} & DataPlaneFetcherExtraProps;
|
3827
|
+
declare const getTaskStatus: (variables: GetTaskStatusVariables, signal?: AbortSignal) => Promise<TaskStatusResponse>;
|
3828
|
+
type ListClusterBranchesPathParams = {
|
3829
|
+
/**
|
3830
|
+
* Cluster ID
|
3831
|
+
*/
|
3832
|
+
clusterId: ClusterID$1;
|
3833
|
+
workspace: string;
|
3834
|
+
region: string;
|
3835
|
+
};
|
3836
|
+
type ListClusterBranchesQueryParams = {
|
3837
|
+
/**
|
3838
|
+
* Page size
|
3839
|
+
*/
|
3840
|
+
page?: PageSize$1;
|
3841
|
+
/**
|
3842
|
+
* Page token
|
3843
|
+
*/
|
3844
|
+
token?: PageToken$1;
|
3845
|
+
};
|
3846
|
+
type ListClusterBranchesError = ErrorWrapper<{
|
3847
|
+
status: 400;
|
3848
|
+
payload: BadRequestError$1;
|
3849
|
+
} | {
|
3850
|
+
status: 401;
|
3851
|
+
payload: AuthError$1;
|
3852
|
+
}>;
|
3853
|
+
type ListClusterBranchesVariables = {
|
3854
|
+
pathParams: ListClusterBranchesPathParams;
|
3855
|
+
queryParams?: ListClusterBranchesQueryParams;
|
3856
|
+
} & DataPlaneFetcherExtraProps;
|
3857
|
+
/**
|
3858
|
+
* Retrieve branches for given cluster ID
|
3859
|
+
*/
|
3860
|
+
declare const listClusterBranches: (variables: ListClusterBranchesVariables, signal?: AbortSignal) => Promise<ListClusterBranchesResponse>;
|
3861
|
+
type ListClusterExtensionsPathParams = {
|
3862
|
+
/**
|
3863
|
+
* Cluster ID
|
3864
|
+
*/
|
3865
|
+
clusterId: ClusterID$1;
|
3866
|
+
workspace: string;
|
3867
|
+
region: string;
|
3868
|
+
};
|
3869
|
+
type ListClusterExtensionsQueryParams = {
|
3870
|
+
extensionType: 'available' | 'installed';
|
3871
|
+
};
|
3872
|
+
type ListClusterExtensionsError = ErrorWrapper<{
|
3873
|
+
status: 400;
|
3874
|
+
payload: BadRequestError$1;
|
3875
|
+
} | {
|
3876
|
+
status: 401;
|
3877
|
+
payload: AuthError$1;
|
3878
|
+
}>;
|
3879
|
+
type ListClusterExtensionsVariables = {
|
3880
|
+
pathParams: ListClusterExtensionsPathParams;
|
3881
|
+
queryParams: ListClusterExtensionsQueryParams;
|
3882
|
+
} & DataPlaneFetcherExtraProps;
|
3883
|
+
/**
|
3884
|
+
* Retrieve extensions for given cluster ID
|
3885
|
+
*/
|
3886
|
+
declare const listClusterExtensions: (variables: ListClusterExtensionsVariables, signal?: AbortSignal) => Promise<ListClusterExtensionsResponse>;
|
3887
|
+
type InstallClusterExtensionPathParams = {
|
3888
|
+
/**
|
3889
|
+
* Cluster ID
|
3890
|
+
*/
|
3891
|
+
clusterId: ClusterID$1;
|
3892
|
+
workspace: string;
|
3893
|
+
region: string;
|
3894
|
+
};
|
3895
|
+
type InstallClusterExtensionError = ErrorWrapper<{
|
3896
|
+
status: 400;
|
3897
|
+
payload: BadRequestError$1;
|
3898
|
+
} | {
|
3899
|
+
status: 401;
|
3900
|
+
payload: AuthError$1;
|
3901
|
+
}>;
|
3902
|
+
type InstallClusterExtensionRequestBody = {
|
3903
|
+
/**
|
3904
|
+
* Extension name
|
3905
|
+
*/
|
3906
|
+
extension: string;
|
3907
|
+
/**
|
3908
|
+
* Schema name
|
3909
|
+
*/
|
3910
|
+
schema?: string;
|
3911
|
+
/**
|
3912
|
+
* install with cascade option
|
3913
|
+
*/
|
3914
|
+
cascade?: boolean;
|
3915
|
+
};
|
3916
|
+
type InstallClusterExtensionVariables = {
|
3917
|
+
body: InstallClusterExtensionRequestBody;
|
3918
|
+
pathParams: InstallClusterExtensionPathParams;
|
3919
|
+
} & DataPlaneFetcherExtraProps;
|
3920
|
+
/**
|
3921
|
+
* Install an extension for given cluster ID
|
3922
|
+
*/
|
3923
|
+
declare const installClusterExtension: (variables: InstallClusterExtensionVariables, signal?: AbortSignal) => Promise<ClusterExtensionInstallationResponse>;
|
3924
|
+
type DropClusterExtensionPathParams = {
|
3925
|
+
/**
|
3926
|
+
* Cluster ID
|
3927
|
+
*/
|
3928
|
+
clusterId: ClusterID$1;
|
3929
|
+
workspace: string;
|
3930
|
+
region: string;
|
3931
|
+
};
|
3932
|
+
type DropClusterExtensionError = ErrorWrapper<{
|
3933
|
+
status: 400;
|
3934
|
+
payload: BadRequestError$1;
|
3935
|
+
} | {
|
3936
|
+
status: 401;
|
3937
|
+
payload: AuthError$1;
|
3938
|
+
}>;
|
3939
|
+
type DropClusterExtensionRequestBody = {
|
3940
|
+
/**
|
3941
|
+
* Extension name
|
3942
|
+
*/
|
3943
|
+
extension: string;
|
3944
|
+
/**
|
3945
|
+
* drop with cascade option, true by default
|
3946
|
+
*/
|
3947
|
+
cascade?: boolean;
|
3948
|
+
};
|
3949
|
+
type DropClusterExtensionVariables = {
|
3950
|
+
body: DropClusterExtensionRequestBody;
|
3951
|
+
pathParams: DropClusterExtensionPathParams;
|
3952
|
+
} & DataPlaneFetcherExtraProps;
|
3953
|
+
/**
|
3954
|
+
* Drop an extension for given cluster ID
|
3955
|
+
*/
|
3956
|
+
declare const dropClusterExtension: (variables: DropClusterExtensionVariables, signal?: AbortSignal) => Promise<undefined>;
|
3957
|
+
type GetClusterMetricsPathParams = {
|
3958
|
+
/**
|
3959
|
+
* Cluster ID
|
3960
|
+
*/
|
3961
|
+
clusterId: ClusterID$1;
|
3962
|
+
workspace: string;
|
3963
|
+
region: string;
|
3964
|
+
};
|
3965
|
+
type GetClusterMetricsQueryParams = {
|
3966
|
+
startTime: string;
|
3967
|
+
endTime: string;
|
3968
|
+
period: '5min' | '15min' | '1hour';
|
3969
|
+
/**
|
3970
|
+
* Page size
|
3971
|
+
*/
|
3972
|
+
page?: PageSize$1;
|
3973
|
+
/**
|
3974
|
+
* Page token
|
3975
|
+
*/
|
3976
|
+
token?: PageToken$1;
|
3977
|
+
};
|
3978
|
+
type GetClusterMetricsError = ErrorWrapper<{
|
3979
|
+
status: 400;
|
3980
|
+
payload: BadRequestError$1;
|
3981
|
+
} | {
|
3982
|
+
status: 401;
|
3983
|
+
payload: AuthError$1;
|
3984
|
+
} | {
|
3985
|
+
status: 404;
|
3986
|
+
payload: SimpleError$1;
|
3987
|
+
}>;
|
3988
|
+
type GetClusterMetricsVariables = {
|
3989
|
+
pathParams: GetClusterMetricsPathParams;
|
3990
|
+
queryParams: GetClusterMetricsQueryParams;
|
3991
|
+
} & DataPlaneFetcherExtraProps;
|
3992
|
+
/**
|
3993
|
+
* retrieve a standard set of RDS cluster metrics
|
3994
|
+
*/
|
3995
|
+
declare const getClusterMetrics: (variables: GetClusterMetricsVariables, signal?: AbortSignal) => Promise<MetricsResponse>;
|
3495
3996
|
type ApplyMigrationPathParams = {
|
3496
3997
|
/**
|
3497
3998
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3518,6 +4019,12 @@ type ApplyMigrationRequestBody = {
|
|
3518
4019
|
operations: {
|
3519
4020
|
[key: string]: any;
|
3520
4021
|
}[];
|
4022
|
+
/**
|
4023
|
+
* The schema in which the migration should be applied
|
4024
|
+
*
|
4025
|
+
* @default public
|
4026
|
+
*/
|
4027
|
+
schema?: string;
|
3521
4028
|
adaptTables?: boolean;
|
3522
4029
|
};
|
3523
4030
|
type ApplyMigrationVariables = {
|
@@ -3554,7 +4061,12 @@ type StartMigrationRequestBody = {
|
|
3554
4061
|
operations: {
|
3555
4062
|
[key: string]: any;
|
3556
4063
|
}[];
|
3557
|
-
|
4064
|
+
/**
|
4065
|
+
* The schema in which the migration should be started
|
4066
|
+
*
|
4067
|
+
* @default public
|
4068
|
+
*/
|
4069
|
+
schema?: string;
|
3558
4070
|
};
|
3559
4071
|
type StartMigrationVariables = {
|
3560
4072
|
body: StartMigrationRequestBody;
|
@@ -3582,7 +4094,16 @@ type CompleteMigrationError = ErrorWrapper<{
|
|
3582
4094
|
status: 404;
|
3583
4095
|
payload: SimpleError$1;
|
3584
4096
|
}>;
|
4097
|
+
type CompleteMigrationRequestBody = {
|
4098
|
+
/**
|
4099
|
+
* The schema in which the migration should be completed
|
4100
|
+
*
|
4101
|
+
* @default public
|
4102
|
+
*/
|
4103
|
+
schema?: string;
|
4104
|
+
};
|
3585
4105
|
type CompleteMigrationVariables = {
|
4106
|
+
body?: CompleteMigrationRequestBody;
|
3586
4107
|
pathParams: CompleteMigrationPathParams;
|
3587
4108
|
} & DataPlaneFetcherExtraProps;
|
3588
4109
|
/**
|
@@ -3607,7 +4128,16 @@ type RollbackMigrationError = ErrorWrapper<{
|
|
3607
4128
|
status: 404;
|
3608
4129
|
payload: SimpleError$1;
|
3609
4130
|
}>;
|
4131
|
+
type RollbackMigrationRequestBody = {
|
4132
|
+
/**
|
4133
|
+
* The schema in which the migration should be rolled back
|
4134
|
+
*
|
4135
|
+
* @default public
|
4136
|
+
*/
|
4137
|
+
schema?: string;
|
4138
|
+
};
|
3610
4139
|
type RollbackMigrationVariables = {
|
4140
|
+
body?: RollbackMigrationRequestBody;
|
3611
4141
|
pathParams: RollbackMigrationPathParams;
|
3612
4142
|
} & DataPlaneFetcherExtraProps;
|
3613
4143
|
/**
|
@@ -3676,7 +4206,39 @@ type GetBranchMigrationJobStatusPathParams = {
|
|
3676
4206
|
workspace: string;
|
3677
4207
|
region: string;
|
3678
4208
|
};
|
3679
|
-
type GetBranchMigrationJobStatusError = ErrorWrapper<{
|
4209
|
+
type GetBranchMigrationJobStatusError = ErrorWrapper<{
|
4210
|
+
status: 400;
|
4211
|
+
payload: BadRequestError$1;
|
4212
|
+
} | {
|
4213
|
+
status: 401;
|
4214
|
+
payload: AuthError$1;
|
4215
|
+
} | {
|
4216
|
+
status: 404;
|
4217
|
+
payload: SimpleError$1;
|
4218
|
+
}>;
|
4219
|
+
type GetBranchMigrationJobStatusVariables = {
|
4220
|
+
pathParams: GetBranchMigrationJobStatusPathParams;
|
4221
|
+
} & DataPlaneFetcherExtraProps;
|
4222
|
+
declare const getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
4223
|
+
type GetMigrationJobsPathParams = {
|
4224
|
+
/**
|
4225
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4226
|
+
*/
|
4227
|
+
dbBranchName: DBBranchName;
|
4228
|
+
workspace: string;
|
4229
|
+
region: string;
|
4230
|
+
};
|
4231
|
+
type GetMigrationJobsQueryParams = {
|
4232
|
+
/**
|
4233
|
+
* @format date-time
|
4234
|
+
*/
|
4235
|
+
cursor?: string;
|
4236
|
+
/**
|
4237
|
+
* Page size
|
4238
|
+
*/
|
4239
|
+
limit?: PageSize$1;
|
4240
|
+
};
|
4241
|
+
type GetMigrationJobsError = ErrorWrapper<{
|
3680
4242
|
status: 400;
|
3681
4243
|
payload: BadRequestError$1;
|
3682
4244
|
} | {
|
@@ -3686,10 +4248,11 @@ type GetBranchMigrationJobStatusError = ErrorWrapper<{
|
|
3686
4248
|
status: 404;
|
3687
4249
|
payload: SimpleError$1;
|
3688
4250
|
}>;
|
3689
|
-
type
|
3690
|
-
pathParams:
|
4251
|
+
type GetMigrationJobsVariables = {
|
4252
|
+
pathParams: GetMigrationJobsPathParams;
|
4253
|
+
queryParams?: GetMigrationJobsQueryParams;
|
3691
4254
|
} & DataPlaneFetcherExtraProps;
|
3692
|
-
declare const
|
4255
|
+
declare const getMigrationJobs: (variables: GetMigrationJobsVariables, signal?: AbortSignal) => Promise<GetMigrationJobsResponse>;
|
3693
4256
|
type GetMigrationJobStatusPathParams = {
|
3694
4257
|
/**
|
3695
4258
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3732,7 +4295,7 @@ type GetMigrationHistoryQueryParams = {
|
|
3732
4295
|
/**
|
3733
4296
|
* Page size
|
3734
4297
|
*/
|
3735
|
-
limit?:
|
4298
|
+
limit?: PageSize$1;
|
3736
4299
|
};
|
3737
4300
|
type GetMigrationHistoryError = ErrorWrapper<{
|
3738
4301
|
status: 400;
|
@@ -3828,6 +4391,53 @@ type UpdateDatabaseSettingsVariables = {
|
|
3828
4391
|
* Update database settings, this endpoint can be used to disable search
|
3829
4392
|
*/
|
3830
4393
|
declare const updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
4394
|
+
type CreateBranchAsyncPathParams = {
|
4395
|
+
/**
|
4396
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4397
|
+
*/
|
4398
|
+
dbBranchName: DBBranchName;
|
4399
|
+
workspace: string;
|
4400
|
+
region: string;
|
4401
|
+
};
|
4402
|
+
type CreateBranchAsyncQueryParams = {
|
4403
|
+
/**
|
4404
|
+
* Name of source branch to branch the new schema from
|
4405
|
+
*/
|
4406
|
+
from?: string;
|
4407
|
+
};
|
4408
|
+
type CreateBranchAsyncError = ErrorWrapper<{
|
4409
|
+
status: 400;
|
4410
|
+
payload: BadRequestError$1;
|
4411
|
+
} | {
|
4412
|
+
status: 401;
|
4413
|
+
payload: AuthError$1;
|
4414
|
+
} | {
|
4415
|
+
status: 404;
|
4416
|
+
payload: SimpleError$1;
|
4417
|
+
} | {
|
4418
|
+
status: 423;
|
4419
|
+
payload: SimpleError$1;
|
4420
|
+
}>;
|
4421
|
+
type CreateBranchAsyncRequestBody = {
|
4422
|
+
/**
|
4423
|
+
* Select the branch to fork from. Defaults to 'main'
|
4424
|
+
*/
|
4425
|
+
from?: string;
|
4426
|
+
/**
|
4427
|
+
* Select the dedicated cluster to create on. Defaults to 'xata-cloud'
|
4428
|
+
*
|
4429
|
+
* @minLength 1
|
4430
|
+
* @x-internal true
|
4431
|
+
*/
|
4432
|
+
clusterID?: string;
|
4433
|
+
metadata?: BranchMetadata$1;
|
4434
|
+
};
|
4435
|
+
type CreateBranchAsyncVariables = {
|
4436
|
+
body?: CreateBranchAsyncRequestBody;
|
4437
|
+
pathParams: CreateBranchAsyncPathParams;
|
4438
|
+
queryParams?: CreateBranchAsyncQueryParams;
|
4439
|
+
} & DataPlaneFetcherExtraProps;
|
4440
|
+
declare const createBranchAsync: (variables: CreateBranchAsyncVariables, signal?: AbortSignal) => Promise<CreateBranchResponse$1>;
|
3831
4441
|
type GetBranchDetailsPathParams = {
|
3832
4442
|
/**
|
3833
4443
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3961,6 +4571,31 @@ type GetSchemaVariables = {
|
|
3961
4571
|
pathParams: GetSchemaPathParams;
|
3962
4572
|
} & DataPlaneFetcherExtraProps;
|
3963
4573
|
declare const getSchema: (variables: GetSchemaVariables, signal?: AbortSignal) => Promise<GetSchemaResponse>;
|
4574
|
+
type GetSchemasPathParams = {
|
4575
|
+
/**
|
4576
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4577
|
+
*/
|
4578
|
+
dbBranchName: DBBranchName;
|
4579
|
+
workspace: string;
|
4580
|
+
region: string;
|
4581
|
+
};
|
4582
|
+
type GetSchemasError = ErrorWrapper<{
|
4583
|
+
status: 400;
|
4584
|
+
payload: BadRequestError$1;
|
4585
|
+
} | {
|
4586
|
+
status: 401;
|
4587
|
+
payload: AuthError$1;
|
4588
|
+
} | {
|
4589
|
+
status: 404;
|
4590
|
+
payload: SimpleError$1;
|
4591
|
+
}>;
|
4592
|
+
type GetSchemasResponse = {
|
4593
|
+
schemas: BranchSchema[];
|
4594
|
+
};
|
4595
|
+
type GetSchemasVariables = {
|
4596
|
+
pathParams: GetSchemasPathParams;
|
4597
|
+
} & DataPlaneFetcherExtraProps;
|
4598
|
+
declare const getSchemas: (variables: GetSchemasVariables, signal?: AbortSignal) => Promise<GetSchemasResponse>;
|
3964
4599
|
type CopyBranchPathParams = {
|
3965
4600
|
/**
|
3966
4601
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3991,6 +4626,73 @@ type CopyBranchVariables = {
|
|
3991
4626
|
* Create a copy of the branch
|
3992
4627
|
*/
|
3993
4628
|
declare const copyBranch: (variables: CopyBranchVariables, signal?: AbortSignal) => Promise<BranchWithCopyID>;
|
4629
|
+
type GetBranchMoveStatusPathParams = {
|
4630
|
+
/**
|
4631
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4632
|
+
*/
|
4633
|
+
dbBranchName: DBBranchName;
|
4634
|
+
workspace: string;
|
4635
|
+
region: string;
|
4636
|
+
};
|
4637
|
+
type GetBranchMoveStatusError = ErrorWrapper<{
|
4638
|
+
status: 400;
|
4639
|
+
payload: BadRequestError$1;
|
4640
|
+
} | {
|
4641
|
+
status: 401;
|
4642
|
+
payload: AuthError$1;
|
4643
|
+
} | {
|
4644
|
+
status: 404;
|
4645
|
+
payload: SimpleError$1;
|
4646
|
+
}>;
|
4647
|
+
type GetBranchMoveStatusResponse = {
|
4648
|
+
state: string;
|
4649
|
+
pendingBytes: number;
|
4650
|
+
};
|
4651
|
+
type GetBranchMoveStatusVariables = {
|
4652
|
+
pathParams: GetBranchMoveStatusPathParams;
|
4653
|
+
} & DataPlaneFetcherExtraProps;
|
4654
|
+
/**
|
4655
|
+
* Get the branch move status (if a move is happening)
|
4656
|
+
*/
|
4657
|
+
declare const getBranchMoveStatus: (variables: GetBranchMoveStatusVariables, signal?: AbortSignal) => Promise<GetBranchMoveStatusResponse>;
|
4658
|
+
type MoveBranchPathParams = {
|
4659
|
+
/**
|
4660
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4661
|
+
*/
|
4662
|
+
dbBranchName: DBBranchName;
|
4663
|
+
workspace: string;
|
4664
|
+
region: string;
|
4665
|
+
};
|
4666
|
+
type MoveBranchError = ErrorWrapper<{
|
4667
|
+
status: 400;
|
4668
|
+
payload: BadRequestError$1;
|
4669
|
+
} | {
|
4670
|
+
status: 401;
|
4671
|
+
payload: AuthError$1;
|
4672
|
+
} | {
|
4673
|
+
status: 404;
|
4674
|
+
payload: SimpleError$1;
|
4675
|
+
} | {
|
4676
|
+
status: 423;
|
4677
|
+
payload: SimpleError$1;
|
4678
|
+
}>;
|
4679
|
+
type MoveBranchResponse = {
|
4680
|
+
state: string;
|
4681
|
+
};
|
4682
|
+
type MoveBranchRequestBody = {
|
4683
|
+
/**
|
4684
|
+
* Select the cluster to move the branch to. Must be different from the current cluster.
|
4685
|
+
*
|
4686
|
+
* @minLength 1
|
4687
|
+
* @x-internal true
|
4688
|
+
*/
|
4689
|
+
to: string;
|
4690
|
+
};
|
4691
|
+
type MoveBranchVariables = {
|
4692
|
+
body: MoveBranchRequestBody;
|
4693
|
+
pathParams: MoveBranchPathParams;
|
4694
|
+
} & DataPlaneFetcherExtraProps;
|
4695
|
+
declare const moveBranch: (variables: MoveBranchVariables, signal?: AbortSignal) => Promise<MoveBranchResponse>;
|
3994
4696
|
type UpdateBranchMetadataPathParams = {
|
3995
4697
|
/**
|
3996
4698
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -7165,29 +7867,9 @@ type SqlQueryError = ErrorWrapper<{
|
|
7165
7867
|
status: 503;
|
7166
7868
|
payload: ServiceUnavailableError;
|
7167
7869
|
}>;
|
7168
|
-
type SqlQueryRequestBody = {
|
7169
|
-
|
7170
|
-
|
7171
|
-
*
|
7172
|
-
* @minLength 1
|
7173
|
-
*/
|
7174
|
-
statement: string;
|
7175
|
-
/**
|
7176
|
-
* The query parameter list.
|
7177
|
-
*/
|
7178
|
-
params?: any[] | null;
|
7179
|
-
/**
|
7180
|
-
* The consistency level for this request.
|
7181
|
-
*
|
7182
|
-
* @default strong
|
7183
|
-
*/
|
7184
|
-
consistency?: 'strong' | 'eventual';
|
7185
|
-
/**
|
7186
|
-
* The response type.
|
7187
|
-
*
|
7188
|
-
* @default json
|
7189
|
-
*/
|
7190
|
-
responseType?: 'json' | 'array';
|
7870
|
+
type SqlQueryRequestBody = PreparedStatement & {
|
7871
|
+
consistency?: SQLConsistency;
|
7872
|
+
responseType?: SQLResponseType$1;
|
7191
7873
|
};
|
7192
7874
|
type SqlQueryVariables = {
|
7193
7875
|
body: SqlQueryRequestBody;
|
@@ -7196,7 +7878,7 @@ type SqlQueryVariables = {
|
|
7196
7878
|
/**
|
7197
7879
|
* Run an SQL query across the database branch.
|
7198
7880
|
*/
|
7199
|
-
declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse>;
|
7881
|
+
declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse$1>;
|
7200
7882
|
type SqlBatchQueryPathParams = {
|
7201
7883
|
/**
|
7202
7884
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -7221,31 +7903,12 @@ type SqlBatchQueryError = ErrorWrapper<{
|
|
7221
7903
|
type SqlBatchQueryRequestBody = {
|
7222
7904
|
/**
|
7223
7905
|
* The SQL statements.
|
7224
|
-
*/
|
7225
|
-
statements: {
|
7226
|
-
/**
|
7227
|
-
* The SQL statement.
|
7228
|
-
*
|
7229
|
-
* @minLength 1
|
7230
|
-
*/
|
7231
|
-
statement?: string;
|
7232
|
-
/**
|
7233
|
-
* The query parameter list.
|
7234
|
-
*/
|
7235
|
-
params?: any[] | null;
|
7236
|
-
}[];
|
7237
|
-
/**
|
7238
|
-
* The consistency level for this request.
|
7239
|
-
*
|
7240
|
-
* @default strong
|
7241
|
-
*/
|
7242
|
-
consistency?: 'strong' | 'eventual';
|
7243
|
-
/**
|
7244
|
-
* The response type.
|
7245
7906
|
*
|
7246
|
-
* @
|
7907
|
+
* @x-go-type []sqlproxy.PreparedStatement
|
7247
7908
|
*/
|
7248
|
-
|
7909
|
+
statements: PreparedStatement[];
|
7910
|
+
consistency?: SQLConsistency;
|
7911
|
+
responseType?: SQLResponseType$1;
|
7249
7912
|
};
|
7250
7913
|
type SqlBatchQueryVariables = {
|
7251
7914
|
body: SqlBatchQueryRequestBody;
|
@@ -7258,157 +7921,173 @@ declare const sqlBatchQuery: (variables: SqlBatchQueryVariables, signal?: AbortS
|
|
7258
7921
|
|
7259
7922
|
declare const operationsByTag: {
|
7260
7923
|
branch: {
|
7261
|
-
getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal
|
7262
|
-
|
7263
|
-
|
7264
|
-
|
7265
|
-
|
7266
|
-
|
7267
|
-
|
7268
|
-
|
7269
|
-
|
7270
|
-
|
7271
|
-
|
7272
|
-
|
7924
|
+
getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal) => Promise<ListBranchesResponse>;
|
7925
|
+
createBranchAsync: (variables: CreateBranchAsyncVariables, signal?: AbortSignal) => Promise<CreateBranchResponse$1>;
|
7926
|
+
getBranchDetails: (variables: GetBranchDetailsVariables, signal?: AbortSignal) => Promise<DBBranch>;
|
7927
|
+
createBranch: (variables: CreateBranchVariables, signal?: AbortSignal) => Promise<CreateBranchResponse>;
|
7928
|
+
deleteBranch: (variables: DeleteBranchVariables, signal?: AbortSignal) => Promise<DeleteBranchResponse>;
|
7929
|
+
copyBranch: (variables: CopyBranchVariables, signal?: AbortSignal) => Promise<BranchWithCopyID>;
|
7930
|
+
getBranchMoveStatus: (variables: GetBranchMoveStatusVariables, signal?: AbortSignal) => Promise<GetBranchMoveStatusResponse>;
|
7931
|
+
moveBranch: (variables: MoveBranchVariables, signal?: AbortSignal) => Promise<MoveBranchResponse>;
|
7932
|
+
updateBranchMetadata: (variables: UpdateBranchMetadataVariables, signal?: AbortSignal) => Promise<undefined>;
|
7933
|
+
getBranchMetadata: (variables: GetBranchMetadataVariables, signal?: AbortSignal) => Promise<BranchMetadata$1>;
|
7934
|
+
getBranchStats: (variables: GetBranchStatsVariables, signal?: AbortSignal) => Promise<GetBranchStatsResponse>;
|
7935
|
+
getGitBranchesMapping: (variables: GetGitBranchesMappingVariables, signal?: AbortSignal) => Promise<ListGitBranchesResponse>;
|
7936
|
+
addGitBranchesEntry: (variables: AddGitBranchesEntryVariables, signal?: AbortSignal) => Promise<AddGitBranchesEntryResponse>;
|
7937
|
+
removeGitBranchesEntry: (variables: RemoveGitBranchesEntryVariables, signal?: AbortSignal) => Promise<undefined>;
|
7938
|
+
resolveBranch: (variables: ResolveBranchVariables, signal?: AbortSignal) => Promise<ResolveBranchResponse>;
|
7273
7939
|
};
|
7274
7940
|
workspaces: {
|
7275
|
-
getWorkspacesList: (variables:
|
7276
|
-
createWorkspace: (variables: CreateWorkspaceVariables, signal?: AbortSignal
|
7277
|
-
getWorkspace: (variables: GetWorkspaceVariables, signal?: AbortSignal
|
7278
|
-
updateWorkspace: (variables: UpdateWorkspaceVariables, signal?: AbortSignal
|
7279
|
-
deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal
|
7280
|
-
getWorkspaceSettings: (variables: GetWorkspaceSettingsVariables, signal?: AbortSignal
|
7281
|
-
updateWorkspaceSettings: (variables: UpdateWorkspaceSettingsVariables, signal?: AbortSignal
|
7282
|
-
getWorkspaceMembersList: (variables: GetWorkspaceMembersListVariables, signal?: AbortSignal
|
7283
|
-
updateWorkspaceMemberRole: (variables: UpdateWorkspaceMemberRoleVariables, signal?: AbortSignal
|
7284
|
-
removeWorkspaceMember: (variables: RemoveWorkspaceMemberVariables, signal?: AbortSignal
|
7941
|
+
getWorkspacesList: (variables: GetWorkspacesListVariables, signal?: AbortSignal) => Promise<GetWorkspacesListResponse>;
|
7942
|
+
createWorkspace: (variables: CreateWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7943
|
+
getWorkspace: (variables: GetWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7944
|
+
updateWorkspace: (variables: UpdateWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7945
|
+
deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal) => Promise<undefined>;
|
7946
|
+
getWorkspaceSettings: (variables: GetWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
|
7947
|
+
updateWorkspaceSettings: (variables: UpdateWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
|
7948
|
+
getWorkspaceMembersList: (variables: GetWorkspaceMembersListVariables, signal?: AbortSignal) => Promise<WorkspaceMembers>;
|
7949
|
+
updateWorkspaceMemberRole: (variables: UpdateWorkspaceMemberRoleVariables, signal?: AbortSignal) => Promise<undefined>;
|
7950
|
+
removeWorkspaceMember: (variables: RemoveWorkspaceMemberVariables, signal?: AbortSignal) => Promise<undefined>;
|
7285
7951
|
};
|
7286
7952
|
table: {
|
7287
|
-
createTable: (variables: CreateTableVariables, signal?: AbortSignal
|
7288
|
-
deleteTable: (variables: DeleteTableVariables, signal?: AbortSignal
|
7289
|
-
updateTable: (variables: UpdateTableVariables, signal?: AbortSignal
|
7290
|
-
getTableSchema: (variables: GetTableSchemaVariables, signal?: AbortSignal
|
7291
|
-
setTableSchema: (variables: SetTableSchemaVariables, signal?: AbortSignal
|
7292
|
-
getTableColumns: (variables: GetTableColumnsVariables, signal?: AbortSignal
|
7293
|
-
addTableColumn: (variables: AddTableColumnVariables, signal?: AbortSignal
|
7294
|
-
getColumn: (variables: GetColumnVariables, signal?: AbortSignal
|
7295
|
-
updateColumn: (variables: UpdateColumnVariables, signal?: AbortSignal
|
7296
|
-
deleteColumn: (variables: DeleteColumnVariables, signal?: AbortSignal
|
7953
|
+
createTable: (variables: CreateTableVariables, signal?: AbortSignal) => Promise<CreateTableResponse>;
|
7954
|
+
deleteTable: (variables: DeleteTableVariables, signal?: AbortSignal) => Promise<DeleteTableResponse>;
|
7955
|
+
updateTable: (variables: UpdateTableVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7956
|
+
getTableSchema: (variables: GetTableSchemaVariables, signal?: AbortSignal) => Promise<GetTableSchemaResponse>;
|
7957
|
+
setTableSchema: (variables: SetTableSchemaVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7958
|
+
getTableColumns: (variables: GetTableColumnsVariables, signal?: AbortSignal) => Promise<GetTableColumnsResponse>;
|
7959
|
+
addTableColumn: (variables: AddTableColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7960
|
+
getColumn: (variables: GetColumnVariables, signal?: AbortSignal) => Promise<Column>;
|
7961
|
+
updateColumn: (variables: UpdateColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7962
|
+
deleteColumn: (variables: DeleteColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7297
7963
|
};
|
7298
7964
|
migrations: {
|
7299
|
-
applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal
|
7300
|
-
startMigration: (variables: StartMigrationVariables, signal?: AbortSignal
|
7301
|
-
completeMigration: (variables: CompleteMigrationVariables, signal?: AbortSignal
|
7302
|
-
rollbackMigration: (variables: RollbackMigrationVariables, signal?: AbortSignal
|
7303
|
-
adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal
|
7304
|
-
adaptAllTables: (variables: AdaptAllTablesVariables, signal?: AbortSignal
|
7305
|
-
getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal
|
7306
|
-
|
7307
|
-
|
7308
|
-
|
7309
|
-
|
7310
|
-
|
7311
|
-
|
7312
|
-
|
7313
|
-
|
7314
|
-
|
7315
|
-
|
7316
|
-
|
7317
|
-
|
7318
|
-
|
7965
|
+
applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7966
|
+
startMigration: (variables: StartMigrationVariables, signal?: AbortSignal) => Promise<StartMigrationResponse>;
|
7967
|
+
completeMigration: (variables: CompleteMigrationVariables, signal?: AbortSignal) => Promise<CompleteMigrationResponse>;
|
7968
|
+
rollbackMigration: (variables: RollbackMigrationVariables, signal?: AbortSignal) => Promise<RollbackMigrationResponse>;
|
7969
|
+
adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7970
|
+
adaptAllTables: (variables: AdaptAllTablesVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7971
|
+
getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
7972
|
+
getMigrationJobs: (variables: GetMigrationJobsVariables, signal?: AbortSignal) => Promise<GetMigrationJobsResponse>;
|
7973
|
+
getMigrationJobStatus: (variables: GetMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
7974
|
+
getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal) => Promise<MigrationHistoryResponse>;
|
7975
|
+
getSchema: (variables: GetSchemaVariables, signal?: AbortSignal) => Promise<GetSchemaResponse>;
|
7976
|
+
getSchemas: (variables: GetSchemasVariables, signal?: AbortSignal) => Promise<GetSchemasResponse>;
|
7977
|
+
getBranchMigrationHistory: (variables: GetBranchMigrationHistoryVariables, signal?: AbortSignal) => Promise<GetBranchMigrationHistoryResponse>;
|
7978
|
+
getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables, signal?: AbortSignal) => Promise<BranchMigrationPlan>;
|
7979
|
+
executeBranchMigrationPlan: (variables: ExecuteBranchMigrationPlanVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7980
|
+
getBranchSchemaHistory: (variables: GetBranchSchemaHistoryVariables, signal?: AbortSignal) => Promise<GetBranchSchemaHistoryResponse>;
|
7981
|
+
compareBranchWithUserSchema: (variables: CompareBranchWithUserSchemaVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
7982
|
+
compareBranchSchemas: (variables: CompareBranchSchemasVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
7983
|
+
updateBranchSchema: (variables: UpdateBranchSchemaVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7984
|
+
previewBranchSchemaEdit: (variables: PreviewBranchSchemaEditVariables, signal?: AbortSignal) => Promise<PreviewBranchSchemaEditResponse>;
|
7985
|
+
applyBranchSchemaEdit: (variables: ApplyBranchSchemaEditVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7986
|
+
pushBranchMigrations: (variables: PushBranchMigrationsVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7319
7987
|
};
|
7320
7988
|
records: {
|
7321
|
-
branchTransaction: (variables: BranchTransactionVariables, signal?: AbortSignal
|
7322
|
-
insertRecord: (variables: InsertRecordVariables, signal?: AbortSignal
|
7323
|
-
getRecord: (variables: GetRecordVariables, signal?: AbortSignal
|
7324
|
-
insertRecordWithID: (variables: InsertRecordWithIDVariables, signal?: AbortSignal
|
7325
|
-
updateRecordWithID: (variables: UpdateRecordWithIDVariables, signal?: AbortSignal
|
7326
|
-
upsertRecordWithID: (variables: UpsertRecordWithIDVariables, signal?: AbortSignal
|
7327
|
-
deleteRecord: (variables: DeleteRecordVariables, signal?: AbortSignal
|
7328
|
-
bulkInsertTableRecords: (variables: BulkInsertTableRecordsVariables, signal?: AbortSignal
|
7989
|
+
branchTransaction: (variables: BranchTransactionVariables, signal?: AbortSignal) => Promise<TransactionSuccess>;
|
7990
|
+
insertRecord: (variables: InsertRecordVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
7991
|
+
getRecord: (variables: GetRecordVariables, signal?: AbortSignal) => Promise<XataRecord$1>;
|
7992
|
+
insertRecordWithID: (variables: InsertRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
7993
|
+
updateRecordWithID: (variables: UpdateRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
7994
|
+
upsertRecordWithID: (variables: UpsertRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
7995
|
+
deleteRecord: (variables: DeleteRecordVariables, signal?: AbortSignal) => Promise<XataRecord$1>;
|
7996
|
+
bulkInsertTableRecords: (variables: BulkInsertTableRecordsVariables, signal?: AbortSignal) => Promise<BulkInsertResponse>;
|
7997
|
+
};
|
7998
|
+
tasks: {
|
7999
|
+
getTasks: (variables: GetTasksVariables, signal?: AbortSignal) => Promise<GetTasksResponse>;
|
8000
|
+
getTaskStatus: (variables: GetTaskStatusVariables, signal?: AbortSignal) => Promise<TaskStatusResponse>;
|
8001
|
+
};
|
8002
|
+
cluster: {
|
8003
|
+
listClusterBranches: (variables: ListClusterBranchesVariables, signal?: AbortSignal) => Promise<ListClusterBranchesResponse>;
|
8004
|
+
listClusterExtensions: (variables: ListClusterExtensionsVariables, signal?: AbortSignal) => Promise<ListClusterExtensionsResponse>;
|
8005
|
+
installClusterExtension: (variables: InstallClusterExtensionVariables, signal?: AbortSignal) => Promise<ClusterExtensionInstallationResponse>;
|
8006
|
+
dropClusterExtension: (variables: DropClusterExtensionVariables, signal?: AbortSignal) => Promise<undefined>;
|
8007
|
+
getClusterMetrics: (variables: GetClusterMetricsVariables, signal?: AbortSignal) => Promise<MetricsResponse>;
|
7329
8008
|
};
|
7330
8009
|
database: {
|
7331
|
-
getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal
|
7332
|
-
updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal
|
8010
|
+
getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
8011
|
+
updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
7333
8012
|
};
|
7334
8013
|
migrationRequests: {
|
7335
|
-
queryMigrationRequests: (variables: QueryMigrationRequestsVariables, signal?: AbortSignal
|
7336
|
-
createMigrationRequest: (variables: CreateMigrationRequestVariables, signal?: AbortSignal
|
7337
|
-
getMigrationRequest: (variables: GetMigrationRequestVariables, signal?: AbortSignal
|
7338
|
-
updateMigrationRequest: (variables: UpdateMigrationRequestVariables, signal?: AbortSignal
|
7339
|
-
listMigrationRequestsCommits: (variables: ListMigrationRequestsCommitsVariables, signal?: AbortSignal
|
7340
|
-
compareMigrationRequest: (variables: CompareMigrationRequestVariables, signal?: AbortSignal
|
7341
|
-
getMigrationRequestIsMerged: (variables: GetMigrationRequestIsMergedVariables, signal?: AbortSignal
|
7342
|
-
mergeMigrationRequest: (variables: MergeMigrationRequestVariables, signal?: AbortSignal
|
8014
|
+
queryMigrationRequests: (variables: QueryMigrationRequestsVariables, signal?: AbortSignal) => Promise<QueryMigrationRequestsResponse>;
|
8015
|
+
createMigrationRequest: (variables: CreateMigrationRequestVariables, signal?: AbortSignal) => Promise<CreateMigrationRequestResponse>;
|
8016
|
+
getMigrationRequest: (variables: GetMigrationRequestVariables, signal?: AbortSignal) => Promise<MigrationRequest>;
|
8017
|
+
updateMigrationRequest: (variables: UpdateMigrationRequestVariables, signal?: AbortSignal) => Promise<undefined>;
|
8018
|
+
listMigrationRequestsCommits: (variables: ListMigrationRequestsCommitsVariables, signal?: AbortSignal) => Promise<ListMigrationRequestsCommitsResponse>;
|
8019
|
+
compareMigrationRequest: (variables: CompareMigrationRequestVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
8020
|
+
getMigrationRequestIsMerged: (variables: GetMigrationRequestIsMergedVariables, signal?: AbortSignal) => Promise<GetMigrationRequestIsMergedResponse>;
|
8021
|
+
mergeMigrationRequest: (variables: MergeMigrationRequestVariables, signal?: AbortSignal) => Promise<BranchOp>;
|
7343
8022
|
};
|
7344
8023
|
files: {
|
7345
|
-
getFileItem: (variables: GetFileItemVariables, signal?: AbortSignal
|
7346
|
-
putFileItem: (variables: PutFileItemVariables, signal?: AbortSignal
|
7347
|
-
deleteFileItem: (variables: DeleteFileItemVariables, signal?: AbortSignal
|
7348
|
-
getFile: (variables: GetFileVariables, signal?: AbortSignal
|
7349
|
-
putFile: (variables: PutFileVariables, signal?: AbortSignal
|
7350
|
-
deleteFile: (variables: DeleteFileVariables, signal?: AbortSignal
|
7351
|
-
fileAccess: (variables: FileAccessVariables, signal?: AbortSignal
|
7352
|
-
fileUpload: (variables: FileUploadVariables, signal?: AbortSignal
|
8024
|
+
getFileItem: (variables: GetFileItemVariables, signal?: AbortSignal) => Promise<Blob>;
|
8025
|
+
putFileItem: (variables: PutFileItemVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8026
|
+
deleteFileItem: (variables: DeleteFileItemVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8027
|
+
getFile: (variables: GetFileVariables, signal?: AbortSignal) => Promise<Blob>;
|
8028
|
+
putFile: (variables: PutFileVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8029
|
+
deleteFile: (variables: DeleteFileVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8030
|
+
fileAccess: (variables: FileAccessVariables, signal?: AbortSignal) => Promise<Blob>;
|
8031
|
+
fileUpload: (variables: FileUploadVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
7353
8032
|
};
|
7354
8033
|
searchAndFilter: {
|
7355
|
-
queryTable: (variables: QueryTableVariables, signal?: AbortSignal
|
7356
|
-
searchBranch: (variables: SearchBranchVariables, signal?: AbortSignal
|
7357
|
-
searchTable: (variables: SearchTableVariables, signal?: AbortSignal
|
7358
|
-
vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal
|
7359
|
-
askTable: (variables: AskTableVariables, signal?: AbortSignal
|
7360
|
-
askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal
|
7361
|
-
summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal
|
7362
|
-
aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal
|
8034
|
+
queryTable: (variables: QueryTableVariables, signal?: AbortSignal) => Promise<QueryResponse>;
|
8035
|
+
searchBranch: (variables: SearchBranchVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
8036
|
+
searchTable: (variables: SearchTableVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
8037
|
+
vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
8038
|
+
askTable: (variables: AskTableVariables, signal?: AbortSignal) => Promise<AskTableResponse>;
|
8039
|
+
askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal) => Promise<AskTableSessionResponse>;
|
8040
|
+
summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal) => Promise<SummarizeResponse>;
|
8041
|
+
aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal) => Promise<AggResponse>;
|
7363
8042
|
};
|
7364
8043
|
sql: {
|
7365
|
-
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal
|
7366
|
-
sqlBatchQuery: (variables: SqlBatchQueryVariables, signal?: AbortSignal
|
8044
|
+
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse$1>;
|
8045
|
+
sqlBatchQuery: (variables: SqlBatchQueryVariables, signal?: AbortSignal) => Promise<SQLBatchResponse>;
|
7367
8046
|
};
|
7368
8047
|
oAuth: {
|
7369
|
-
getAuthorizationCode: (variables: GetAuthorizationCodeVariables, signal?: AbortSignal
|
7370
|
-
grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal
|
7371
|
-
getUserOAuthClients: (variables:
|
7372
|
-
deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal
|
7373
|
-
getUserOAuthAccessTokens: (variables:
|
7374
|
-
deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal
|
7375
|
-
updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal
|
8048
|
+
getAuthorizationCode: (variables: GetAuthorizationCodeVariables, signal?: AbortSignal) => Promise<AuthorizationCodeResponse>;
|
8049
|
+
grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal) => Promise<AuthorizationCodeResponse>;
|
8050
|
+
getUserOAuthClients: (variables: GetUserOAuthClientsVariables, signal?: AbortSignal) => Promise<GetUserOAuthClientsResponse>;
|
8051
|
+
deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal) => Promise<undefined>;
|
8052
|
+
getUserOAuthAccessTokens: (variables: GetUserOAuthAccessTokensVariables, signal?: AbortSignal) => Promise<GetUserOAuthAccessTokensResponse>;
|
8053
|
+
deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<undefined>;
|
8054
|
+
updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<OAuthAccessToken>;
|
7376
8055
|
};
|
7377
8056
|
users: {
|
7378
|
-
getUser: (variables:
|
7379
|
-
updateUser: (variables: UpdateUserVariables, signal?: AbortSignal
|
7380
|
-
deleteUser: (variables:
|
8057
|
+
getUser: (variables: GetUserVariables, signal?: AbortSignal) => Promise<UserWithID>;
|
8058
|
+
updateUser: (variables: UpdateUserVariables, signal?: AbortSignal) => Promise<UserWithID>;
|
8059
|
+
deleteUser: (variables: DeleteUserVariables, signal?: AbortSignal) => Promise<undefined>;
|
7381
8060
|
};
|
7382
8061
|
authentication: {
|
7383
|
-
getUserAPIKeys: (variables:
|
7384
|
-
createUserAPIKey: (variables: CreateUserAPIKeyVariables, signal?: AbortSignal
|
7385
|
-
deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables, signal?: AbortSignal
|
8062
|
+
getUserAPIKeys: (variables: GetUserAPIKeysVariables, signal?: AbortSignal) => Promise<GetUserAPIKeysResponse>;
|
8063
|
+
createUserAPIKey: (variables: CreateUserAPIKeyVariables, signal?: AbortSignal) => Promise<CreateUserAPIKeyResponse>;
|
8064
|
+
deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables, signal?: AbortSignal) => Promise<undefined>;
|
7386
8065
|
};
|
7387
8066
|
invites: {
|
7388
|
-
inviteWorkspaceMember: (variables: InviteWorkspaceMemberVariables, signal?: AbortSignal
|
7389
|
-
updateWorkspaceMemberInvite: (variables: UpdateWorkspaceMemberInviteVariables, signal?: AbortSignal
|
7390
|
-
cancelWorkspaceMemberInvite: (variables: CancelWorkspaceMemberInviteVariables, signal?: AbortSignal
|
7391
|
-
acceptWorkspaceMemberInvite: (variables: AcceptWorkspaceMemberInviteVariables, signal?: AbortSignal
|
7392
|
-
resendWorkspaceMemberInvite: (variables: ResendWorkspaceMemberInviteVariables, signal?: AbortSignal
|
8067
|
+
inviteWorkspaceMember: (variables: InviteWorkspaceMemberVariables, signal?: AbortSignal) => Promise<WorkspaceInvite>;
|
8068
|
+
updateWorkspaceMemberInvite: (variables: UpdateWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<WorkspaceInvite>;
|
8069
|
+
cancelWorkspaceMemberInvite: (variables: CancelWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
8070
|
+
acceptWorkspaceMemberInvite: (variables: AcceptWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
8071
|
+
resendWorkspaceMemberInvite: (variables: ResendWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
7393
8072
|
};
|
7394
8073
|
xbcontrolOther: {
|
7395
|
-
listClusters: (variables: ListClustersVariables, signal?: AbortSignal
|
7396
|
-
createCluster: (variables: CreateClusterVariables, signal?: AbortSignal
|
7397
|
-
getCluster: (variables: GetClusterVariables, signal?: AbortSignal
|
7398
|
-
updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal
|
7399
|
-
deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal
|
8074
|
+
listClusters: (variables: ListClustersVariables, signal?: AbortSignal) => Promise<ListClustersResponse>;
|
8075
|
+
createCluster: (variables: CreateClusterVariables, signal?: AbortSignal) => Promise<ClusterResponse>;
|
8076
|
+
getCluster: (variables: GetClusterVariables, signal?: AbortSignal) => Promise<ClusterMetadata>;
|
8077
|
+
updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterUpdateMetadata>;
|
8078
|
+
deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal) => Promise<ClusterDeleteMetadata>;
|
7400
8079
|
};
|
7401
8080
|
databases: {
|
7402
|
-
getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal
|
7403
|
-
createDatabase: (variables: CreateDatabaseVariables, signal?: AbortSignal
|
7404
|
-
deleteDatabase: (variables: DeleteDatabaseVariables, signal?: AbortSignal
|
7405
|
-
getDatabaseMetadata: (variables: GetDatabaseMetadataVariables, signal?: AbortSignal
|
7406
|
-
updateDatabaseMetadata: (variables: UpdateDatabaseMetadataVariables, signal?: AbortSignal
|
7407
|
-
renameDatabase: (variables: RenameDatabaseVariables, signal?: AbortSignal
|
7408
|
-
getDatabaseGithubSettings: (variables: GetDatabaseGithubSettingsVariables, signal?: AbortSignal
|
7409
|
-
updateDatabaseGithubSettings: (variables: UpdateDatabaseGithubSettingsVariables, signal?: AbortSignal
|
7410
|
-
deleteDatabaseGithubSettings: (variables: DeleteDatabaseGithubSettingsVariables, signal?: AbortSignal
|
7411
|
-
listRegions: (variables: ListRegionsVariables, signal?: AbortSignal
|
8081
|
+
getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal) => Promise<ListDatabasesResponse>;
|
8082
|
+
createDatabase: (variables: CreateDatabaseVariables, signal?: AbortSignal) => Promise<CreateDatabaseResponse>;
|
8083
|
+
deleteDatabase: (variables: DeleteDatabaseVariables, signal?: AbortSignal) => Promise<DeleteDatabaseResponse>;
|
8084
|
+
getDatabaseMetadata: (variables: GetDatabaseMetadataVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
8085
|
+
updateDatabaseMetadata: (variables: UpdateDatabaseMetadataVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
8086
|
+
renameDatabase: (variables: RenameDatabaseVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
8087
|
+
getDatabaseGithubSettings: (variables: GetDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<DatabaseGithubSettings>;
|
8088
|
+
updateDatabaseGithubSettings: (variables: UpdateDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<DatabaseGithubSettings>;
|
8089
|
+
deleteDatabaseGithubSettings: (variables: DeleteDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<undefined>;
|
8090
|
+
listRegions: (variables: ListRegionsVariables, signal?: AbortSignal) => Promise<ListRegionsResponse>;
|
7412
8091
|
};
|
7413
8092
|
};
|
7414
8093
|
|
@@ -7431,6 +8110,27 @@ declare function parseWorkspacesUrlParts(url: string): {
|
|
7431
8110
|
host: HostAliases;
|
7432
8111
|
} | null;
|
7433
8112
|
|
8113
|
+
type ApiExtraProps = Omit<FetcherExtraProps, 'endpoint'>;
|
8114
|
+
interface XataApiClientOptions {
|
8115
|
+
fetch?: FetchImpl;
|
8116
|
+
apiKey?: string;
|
8117
|
+
host?: HostProvider;
|
8118
|
+
trace?: TraceFunction;
|
8119
|
+
clientName?: string;
|
8120
|
+
xataAgentExtra?: Record<string, string>;
|
8121
|
+
}
|
8122
|
+
type UserProps = {
|
8123
|
+
headers?: Record<string, unknown>;
|
8124
|
+
};
|
8125
|
+
type XataApiProxy = {
|
8126
|
+
[Tag in keyof typeof operationsByTag]: {
|
8127
|
+
[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;
|
8128
|
+
};
|
8129
|
+
};
|
8130
|
+
declare const XataApiClient_base: new (options?: XataApiClientOptions) => XataApiProxy;
|
8131
|
+
declare class XataApiClient extends XataApiClient_base {
|
8132
|
+
}
|
8133
|
+
|
7434
8134
|
type responses_AggResponse = AggResponse;
|
7435
8135
|
type responses_BranchMigrationPlan = BranchMigrationPlan;
|
7436
8136
|
type responses_BulkError = BulkError;
|
@@ -7463,15 +8163,17 @@ type schemas_AutoscalingConfigResponse = AutoscalingConfigResponse;
|
|
7463
8163
|
type schemas_AverageAgg = AverageAgg;
|
7464
8164
|
type schemas_BoosterExpression = BoosterExpression;
|
7465
8165
|
type schemas_Branch = Branch;
|
8166
|
+
type schemas_BranchDetails = BranchDetails;
|
7466
8167
|
type schemas_BranchMigration = BranchMigration;
|
7467
8168
|
type schemas_BranchOp = BranchOp;
|
7468
8169
|
type schemas_BranchSchema = BranchSchema;
|
8170
|
+
type schemas_BranchState = BranchState;
|
7469
8171
|
type schemas_BranchWithCopyID = BranchWithCopyID;
|
7470
8172
|
type schemas_ClusterConfiguration = ClusterConfiguration;
|
7471
8173
|
type schemas_ClusterConfigurationResponse = ClusterConfigurationResponse;
|
7472
8174
|
type schemas_ClusterCreateDetails = ClusterCreateDetails;
|
7473
8175
|
type schemas_ClusterDeleteMetadata = ClusterDeleteMetadata;
|
7474
|
-
type
|
8176
|
+
type schemas_ClusterExtensionInstallationResponse = ClusterExtensionInstallationResponse;
|
7475
8177
|
type schemas_ClusterMetadata = ClusterMetadata;
|
7476
8178
|
type schemas_ClusterResponse = ClusterResponse;
|
7477
8179
|
type schemas_ClusterShortMetadata = ClusterShortMetadata;
|
@@ -7498,6 +8200,7 @@ type schemas_DatabaseGithubSettings = DatabaseGithubSettings;
|
|
7498
8200
|
type schemas_DatabaseMetadata = DatabaseMetadata;
|
7499
8201
|
type schemas_DatabaseSettings = DatabaseSettings;
|
7500
8202
|
type schemas_DateHistogramAgg = DateHistogramAgg;
|
8203
|
+
type schemas_ExtensionDetails = ExtensionDetails;
|
7501
8204
|
type schemas_FileAccessID = FileAccessID;
|
7502
8205
|
type schemas_FileItemID = FileItemID;
|
7503
8206
|
type schemas_FileName = FileName;
|
@@ -7513,6 +8216,7 @@ type schemas_FilterPredicateRangeOp = FilterPredicateRangeOp;
|
|
7513
8216
|
type schemas_FilterRangeValue = FilterRangeValue;
|
7514
8217
|
type schemas_FilterValue = FilterValue;
|
7515
8218
|
type schemas_FuzzinessExpression = FuzzinessExpression;
|
8219
|
+
type schemas_GetMigrationJobsResponse = GetMigrationJobsResponse;
|
7516
8220
|
type schemas_HighlightExpression = HighlightExpression;
|
7517
8221
|
type schemas_InputFile = InputFile;
|
7518
8222
|
type schemas_InputFileArray = InputFileArray;
|
@@ -7520,6 +8224,8 @@ type schemas_InputFileEntry = InputFileEntry;
|
|
7520
8224
|
type schemas_InviteID = InviteID;
|
7521
8225
|
type schemas_InviteKey = InviteKey;
|
7522
8226
|
type schemas_ListBranchesResponse = ListBranchesResponse;
|
8227
|
+
type schemas_ListClusterBranchesResponse = ListClusterBranchesResponse;
|
8228
|
+
type schemas_ListClusterExtensionsResponse = ListClusterExtensionsResponse;
|
7523
8229
|
type schemas_ListClustersResponse = ListClustersResponse;
|
7524
8230
|
type schemas_ListDatabasesResponse = ListDatabasesResponse;
|
7525
8231
|
type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
|
@@ -7528,14 +8234,18 @@ type schemas_MaintenanceConfig = MaintenanceConfig;
|
|
7528
8234
|
type schemas_MaintenanceConfigResponse = MaintenanceConfigResponse;
|
7529
8235
|
type schemas_MaxAgg = MaxAgg;
|
7530
8236
|
type schemas_MediaType = MediaType;
|
8237
|
+
type schemas_MetricData = MetricData;
|
8238
|
+
type schemas_MetricMessage = MetricMessage;
|
7531
8239
|
type schemas_MetricsDatapoint = MetricsDatapoint;
|
7532
8240
|
type schemas_MetricsLatency = MetricsLatency;
|
8241
|
+
type schemas_MetricsResponse = MetricsResponse;
|
7533
8242
|
type schemas_Migration = Migration;
|
7534
8243
|
type schemas_MigrationColumnOp = MigrationColumnOp;
|
7535
8244
|
type schemas_MigrationDescription = MigrationDescription;
|
7536
8245
|
type schemas_MigrationHistoryItem = MigrationHistoryItem;
|
7537
8246
|
type schemas_MigrationHistoryResponse = MigrationHistoryResponse;
|
7538
8247
|
type schemas_MigrationJobID = MigrationJobID;
|
8248
|
+
type schemas_MigrationJobItem = MigrationJobItem;
|
7539
8249
|
type schemas_MigrationJobStatus = MigrationJobStatus;
|
7540
8250
|
type schemas_MigrationJobStatusResponse = MigrationJobStatusResponse;
|
7541
8251
|
type schemas_MigrationJobType = MigrationJobType;
|
@@ -7555,12 +8265,9 @@ type schemas_OAuthResponseType = OAuthResponseType;
|
|
7555
8265
|
type schemas_OAuthScope = OAuthScope;
|
7556
8266
|
type schemas_ObjectValue = ObjectValue;
|
7557
8267
|
type schemas_PageConfig = PageConfig;
|
7558
|
-
type schemas_PageResponse = PageResponse;
|
7559
|
-
type schemas_PageSize = PageSize;
|
7560
|
-
type schemas_PageToken = PageToken;
|
7561
|
-
type schemas_PaginationPageSize = PaginationPageSize;
|
7562
8268
|
type schemas_PercentilesAgg = PercentilesAgg;
|
7563
8269
|
type schemas_PrefixExpression = PrefixExpression;
|
8270
|
+
type schemas_PreparedStatement = PreparedStatement;
|
7564
8271
|
type schemas_ProjectionConfig = ProjectionConfig;
|
7565
8272
|
type schemas_QueryColumnsProjection = QueryColumnsProjection;
|
7566
8273
|
type schemas_RecordID = RecordID;
|
@@ -7570,7 +8277,11 @@ type schemas_Region = Region;
|
|
7570
8277
|
type schemas_RevLink = RevLink;
|
7571
8278
|
type schemas_Role = Role;
|
7572
8279
|
type schemas_RollbackMigrationResponse = RollbackMigrationResponse;
|
8280
|
+
type schemas_SQLConsistency = SQLConsistency;
|
7573
8281
|
type schemas_SQLRecord = SQLRecord;
|
8282
|
+
type schemas_SQLResponseArray = SQLResponseArray;
|
8283
|
+
type schemas_SQLResponseBase = SQLResponseBase;
|
8284
|
+
type schemas_SQLResponseJSON = SQLResponseJSON;
|
7574
8285
|
type schemas_Schema = Schema;
|
7575
8286
|
type schemas_SchemaEditScript = SchemaEditScript;
|
7576
8287
|
type schemas_SearchPageConfig = SearchPageConfig;
|
@@ -7578,6 +8289,8 @@ type schemas_SortExpression = SortExpression;
|
|
7578
8289
|
type schemas_SortOrder = SortOrder;
|
7579
8290
|
type schemas_StartMigrationResponse = StartMigrationResponse;
|
7580
8291
|
type schemas_StartedFromMetadata = StartedFromMetadata;
|
8292
|
+
type schemas_StorageConfig = StorageConfig;
|
8293
|
+
type schemas_StorageConfigResponse = StorageConfigResponse;
|
7581
8294
|
type schemas_SumAgg = SumAgg;
|
7582
8295
|
type schemas_SummaryExpression = SummaryExpression;
|
7583
8296
|
type schemas_SummaryExpressionList = SummaryExpressionList;
|
@@ -7589,6 +8302,9 @@ type schemas_TableOpRemove = TableOpRemove;
|
|
7589
8302
|
type schemas_TableOpRename = TableOpRename;
|
7590
8303
|
type schemas_TableRename = TableRename;
|
7591
8304
|
type schemas_TargetExpression = TargetExpression;
|
8305
|
+
type schemas_TaskID = TaskID;
|
8306
|
+
type schemas_TaskStatus = TaskStatus;
|
8307
|
+
type schemas_TaskStatusResponse = TaskStatusResponse;
|
7592
8308
|
type schemas_TopValuesAgg = TopValuesAgg;
|
7593
8309
|
type schemas_TransactionDeleteOp = TransactionDeleteOp;
|
7594
8310
|
type schemas_TransactionError = TransactionError;
|
@@ -7616,772 +8332,13 @@ type schemas_WorkspaceMeta = WorkspaceMeta;
|
|
7616
8332
|
type schemas_WorkspacePlan = WorkspacePlan;
|
7617
8333
|
type schemas_WorkspaceSettings = WorkspaceSettings;
|
7618
8334
|
declare namespace schemas {
|
7619
|
-
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, schemas_ClusterDeleteMetadata as ClusterDeleteMetadata,
|
7620
|
-
}
|
7621
|
-
|
7622
|
-
type ApiExtraProps = Omit<FetcherExtraProps, 'endpoint'>;
|
7623
|
-
interface XataApiClientOptions {
|
7624
|
-
fetch?: FetchImpl;
|
7625
|
-
apiKey?: string;
|
7626
|
-
host?: HostProvider;
|
7627
|
-
trace?: TraceFunction;
|
7628
|
-
clientName?: string;
|
7629
|
-
xataAgentExtra?: Record<string, string>;
|
7630
|
-
}
|
7631
|
-
declare class XataApiClient {
|
7632
|
-
#private;
|
7633
|
-
constructor(options?: XataApiClientOptions);
|
7634
|
-
get user(): UserApi;
|
7635
|
-
get authentication(): AuthenticationApi;
|
7636
|
-
get workspaces(): WorkspaceApi;
|
7637
|
-
get invites(): InvitesApi;
|
7638
|
-
get database(): DatabaseApi;
|
7639
|
-
get branches(): BranchApi;
|
7640
|
-
get migrations(): MigrationsApi;
|
7641
|
-
get migrationRequests(): MigrationRequestsApi;
|
7642
|
-
get tables(): TableApi;
|
7643
|
-
get records(): RecordsApi;
|
7644
|
-
get files(): FilesApi;
|
7645
|
-
get searchAndFilter(): SearchAndFilterApi;
|
7646
|
-
}
|
7647
|
-
declare class UserApi {
|
7648
|
-
private extraProps;
|
7649
|
-
constructor(extraProps: ApiExtraProps);
|
7650
|
-
getUser(): Promise<UserWithID>;
|
7651
|
-
updateUser({ user }: {
|
7652
|
-
user: User;
|
7653
|
-
}): Promise<UserWithID>;
|
7654
|
-
deleteUser(): Promise<void>;
|
7655
|
-
}
|
7656
|
-
declare class AuthenticationApi {
|
7657
|
-
private extraProps;
|
7658
|
-
constructor(extraProps: ApiExtraProps);
|
7659
|
-
getUserAPIKeys(): Promise<GetUserAPIKeysResponse>;
|
7660
|
-
createUserAPIKey({ name }: {
|
7661
|
-
name: APIKeyName;
|
7662
|
-
}): Promise<CreateUserAPIKeyResponse>;
|
7663
|
-
deleteUserAPIKey({ name }: {
|
7664
|
-
name: APIKeyName;
|
7665
|
-
}): Promise<void>;
|
7666
|
-
}
|
7667
|
-
declare class WorkspaceApi {
|
7668
|
-
private extraProps;
|
7669
|
-
constructor(extraProps: ApiExtraProps);
|
7670
|
-
getWorkspacesList(): Promise<GetWorkspacesListResponse>;
|
7671
|
-
createWorkspace({ data }: {
|
7672
|
-
data: WorkspaceMeta;
|
7673
|
-
}): Promise<Workspace>;
|
7674
|
-
getWorkspace({ workspace }: {
|
7675
|
-
workspace: WorkspaceID;
|
7676
|
-
}): Promise<Workspace>;
|
7677
|
-
updateWorkspace({ workspace, update }: {
|
7678
|
-
workspace: WorkspaceID;
|
7679
|
-
update: WorkspaceMeta;
|
7680
|
-
}): Promise<Workspace>;
|
7681
|
-
deleteWorkspace({ workspace }: {
|
7682
|
-
workspace: WorkspaceID;
|
7683
|
-
}): Promise<void>;
|
7684
|
-
getWorkspaceMembersList({ workspace }: {
|
7685
|
-
workspace: WorkspaceID;
|
7686
|
-
}): Promise<WorkspaceMembers>;
|
7687
|
-
updateWorkspaceMemberRole({ workspace, user, role }: {
|
7688
|
-
workspace: WorkspaceID;
|
7689
|
-
user: UserID;
|
7690
|
-
role: Role;
|
7691
|
-
}): Promise<void>;
|
7692
|
-
removeWorkspaceMember({ workspace, user }: {
|
7693
|
-
workspace: WorkspaceID;
|
7694
|
-
user: UserID;
|
7695
|
-
}): Promise<void>;
|
7696
|
-
}
|
7697
|
-
declare class InvitesApi {
|
7698
|
-
private extraProps;
|
7699
|
-
constructor(extraProps: ApiExtraProps);
|
7700
|
-
inviteWorkspaceMember({ workspace, email, role }: {
|
7701
|
-
workspace: WorkspaceID;
|
7702
|
-
email: string;
|
7703
|
-
role: Role;
|
7704
|
-
}): Promise<WorkspaceInvite>;
|
7705
|
-
updateWorkspaceMemberInvite({ workspace, invite, role }: {
|
7706
|
-
workspace: WorkspaceID;
|
7707
|
-
invite: InviteID;
|
7708
|
-
role: Role;
|
7709
|
-
}): Promise<WorkspaceInvite>;
|
7710
|
-
cancelWorkspaceMemberInvite({ workspace, invite }: {
|
7711
|
-
workspace: WorkspaceID;
|
7712
|
-
invite: InviteID;
|
7713
|
-
}): Promise<void>;
|
7714
|
-
acceptWorkspaceMemberInvite({ workspace, key }: {
|
7715
|
-
workspace: WorkspaceID;
|
7716
|
-
key: InviteKey;
|
7717
|
-
}): Promise<void>;
|
7718
|
-
resendWorkspaceMemberInvite({ workspace, invite }: {
|
7719
|
-
workspace: WorkspaceID;
|
7720
|
-
invite: InviteID;
|
7721
|
-
}): Promise<void>;
|
7722
|
-
}
|
7723
|
-
declare class BranchApi {
|
7724
|
-
private extraProps;
|
7725
|
-
constructor(extraProps: ApiExtraProps);
|
7726
|
-
getBranchList({ workspace, region, database }: {
|
7727
|
-
workspace: WorkspaceID;
|
7728
|
-
region: string;
|
7729
|
-
database: DBName$1;
|
7730
|
-
}): Promise<ListBranchesResponse>;
|
7731
|
-
getBranchDetails({ workspace, region, database, branch }: {
|
7732
|
-
workspace: WorkspaceID;
|
7733
|
-
region: string;
|
7734
|
-
database: DBName$1;
|
7735
|
-
branch: BranchName$1;
|
7736
|
-
}): Promise<DBBranch>;
|
7737
|
-
createBranch({ workspace, region, database, branch, from, metadata }: {
|
7738
|
-
workspace: WorkspaceID;
|
7739
|
-
region: string;
|
7740
|
-
database: DBName$1;
|
7741
|
-
branch: BranchName$1;
|
7742
|
-
from?: string;
|
7743
|
-
metadata?: BranchMetadata$1;
|
7744
|
-
}): Promise<CreateBranchResponse>;
|
7745
|
-
deleteBranch({ workspace, region, database, branch }: {
|
7746
|
-
workspace: WorkspaceID;
|
7747
|
-
region: string;
|
7748
|
-
database: DBName$1;
|
7749
|
-
branch: BranchName$1;
|
7750
|
-
}): Promise<DeleteBranchResponse>;
|
7751
|
-
copyBranch({ workspace, region, database, branch, destinationBranch, limit }: {
|
7752
|
-
workspace: WorkspaceID;
|
7753
|
-
region: string;
|
7754
|
-
database: DBName$1;
|
7755
|
-
branch: BranchName$1;
|
7756
|
-
destinationBranch: BranchName$1;
|
7757
|
-
limit?: number;
|
7758
|
-
}): Promise<BranchWithCopyID>;
|
7759
|
-
updateBranchMetadata({ workspace, region, database, branch, metadata }: {
|
7760
|
-
workspace: WorkspaceID;
|
7761
|
-
region: string;
|
7762
|
-
database: DBName$1;
|
7763
|
-
branch: BranchName$1;
|
7764
|
-
metadata: BranchMetadata$1;
|
7765
|
-
}): Promise<void>;
|
7766
|
-
getBranchMetadata({ workspace, region, database, branch }: {
|
7767
|
-
workspace: WorkspaceID;
|
7768
|
-
region: string;
|
7769
|
-
database: DBName$1;
|
7770
|
-
branch: BranchName$1;
|
7771
|
-
}): Promise<BranchMetadata$1>;
|
7772
|
-
getBranchStats({ workspace, region, database, branch }: {
|
7773
|
-
workspace: WorkspaceID;
|
7774
|
-
region: string;
|
7775
|
-
database: DBName$1;
|
7776
|
-
branch: BranchName$1;
|
7777
|
-
}): Promise<GetBranchStatsResponse>;
|
7778
|
-
getGitBranchesMapping({ workspace, region, database }: {
|
7779
|
-
workspace: WorkspaceID;
|
7780
|
-
region: string;
|
7781
|
-
database: DBName$1;
|
7782
|
-
}): Promise<ListGitBranchesResponse>;
|
7783
|
-
addGitBranchesEntry({ workspace, region, database, gitBranch, xataBranch }: {
|
7784
|
-
workspace: WorkspaceID;
|
7785
|
-
region: string;
|
7786
|
-
database: DBName$1;
|
7787
|
-
gitBranch: string;
|
7788
|
-
xataBranch: BranchName$1;
|
7789
|
-
}): Promise<AddGitBranchesEntryResponse>;
|
7790
|
-
removeGitBranchesEntry({ workspace, region, database, gitBranch }: {
|
7791
|
-
workspace: WorkspaceID;
|
7792
|
-
region: string;
|
7793
|
-
database: DBName$1;
|
7794
|
-
gitBranch: string;
|
7795
|
-
}): Promise<void>;
|
7796
|
-
resolveBranch({ workspace, region, database, gitBranch, fallbackBranch }: {
|
7797
|
-
workspace: WorkspaceID;
|
7798
|
-
region: string;
|
7799
|
-
database: DBName$1;
|
7800
|
-
gitBranch?: string;
|
7801
|
-
fallbackBranch?: string;
|
7802
|
-
}): Promise<ResolveBranchResponse>;
|
7803
|
-
pgRollMigrationHistory({ workspace, region, database, branch }: {
|
7804
|
-
workspace: WorkspaceID;
|
7805
|
-
region: string;
|
7806
|
-
database: DBName$1;
|
7807
|
-
branch: BranchName$1;
|
7808
|
-
}): Promise<MigrationHistoryResponse>;
|
7809
|
-
applyMigration({ workspace, region, database, branch, migration }: {
|
7810
|
-
workspace: WorkspaceID;
|
7811
|
-
region: string;
|
7812
|
-
database: DBName$1;
|
7813
|
-
branch: BranchName$1;
|
7814
|
-
migration: Migration;
|
7815
|
-
}): Promise<ApplyMigrationResponse>;
|
7816
|
-
}
|
7817
|
-
declare class TableApi {
|
7818
|
-
private extraProps;
|
7819
|
-
constructor(extraProps: ApiExtraProps);
|
7820
|
-
createTable({ workspace, region, database, branch, table }: {
|
7821
|
-
workspace: WorkspaceID;
|
7822
|
-
region: string;
|
7823
|
-
database: DBName$1;
|
7824
|
-
branch: BranchName$1;
|
7825
|
-
table: TableName;
|
7826
|
-
}): Promise<CreateTableResponse>;
|
7827
|
-
deleteTable({ workspace, region, database, branch, table }: {
|
7828
|
-
workspace: WorkspaceID;
|
7829
|
-
region: string;
|
7830
|
-
database: DBName$1;
|
7831
|
-
branch: BranchName$1;
|
7832
|
-
table: TableName;
|
7833
|
-
}): Promise<DeleteTableResponse>;
|
7834
|
-
updateTable({ workspace, region, database, branch, table, update }: {
|
7835
|
-
workspace: WorkspaceID;
|
7836
|
-
region: string;
|
7837
|
-
database: DBName$1;
|
7838
|
-
branch: BranchName$1;
|
7839
|
-
table: TableName;
|
7840
|
-
update: UpdateTableRequestBody;
|
7841
|
-
}): Promise<SchemaUpdateResponse>;
|
7842
|
-
getTableSchema({ workspace, region, database, branch, table }: {
|
7843
|
-
workspace: WorkspaceID;
|
7844
|
-
region: string;
|
7845
|
-
database: DBName$1;
|
7846
|
-
branch: BranchName$1;
|
7847
|
-
table: TableName;
|
7848
|
-
}): Promise<GetTableSchemaResponse>;
|
7849
|
-
setTableSchema({ workspace, region, database, branch, table, schema }: {
|
7850
|
-
workspace: WorkspaceID;
|
7851
|
-
region: string;
|
7852
|
-
database: DBName$1;
|
7853
|
-
branch: BranchName$1;
|
7854
|
-
table: TableName;
|
7855
|
-
schema: SetTableSchemaRequestBody;
|
7856
|
-
}): Promise<SchemaUpdateResponse>;
|
7857
|
-
getTableColumns({ workspace, region, database, branch, table }: {
|
7858
|
-
workspace: WorkspaceID;
|
7859
|
-
region: string;
|
7860
|
-
database: DBName$1;
|
7861
|
-
branch: BranchName$1;
|
7862
|
-
table: TableName;
|
7863
|
-
}): Promise<GetTableColumnsResponse>;
|
7864
|
-
addTableColumn({ workspace, region, database, branch, table, column }: {
|
7865
|
-
workspace: WorkspaceID;
|
7866
|
-
region: string;
|
7867
|
-
database: DBName$1;
|
7868
|
-
branch: BranchName$1;
|
7869
|
-
table: TableName;
|
7870
|
-
column: Column;
|
7871
|
-
}): Promise<SchemaUpdateResponse>;
|
7872
|
-
getColumn({ workspace, region, database, branch, table, column }: {
|
7873
|
-
workspace: WorkspaceID;
|
7874
|
-
region: string;
|
7875
|
-
database: DBName$1;
|
7876
|
-
branch: BranchName$1;
|
7877
|
-
table: TableName;
|
7878
|
-
column: ColumnName;
|
7879
|
-
}): Promise<Column>;
|
7880
|
-
updateColumn({ workspace, region, database, branch, table, column, update }: {
|
7881
|
-
workspace: WorkspaceID;
|
7882
|
-
region: string;
|
7883
|
-
database: DBName$1;
|
7884
|
-
branch: BranchName$1;
|
7885
|
-
table: TableName;
|
7886
|
-
column: ColumnName;
|
7887
|
-
update: UpdateColumnRequestBody;
|
7888
|
-
}): Promise<SchemaUpdateResponse>;
|
7889
|
-
deleteColumn({ workspace, region, database, branch, table, column }: {
|
7890
|
-
workspace: WorkspaceID;
|
7891
|
-
region: string;
|
7892
|
-
database: DBName$1;
|
7893
|
-
branch: BranchName$1;
|
7894
|
-
table: TableName;
|
7895
|
-
column: ColumnName;
|
7896
|
-
}): Promise<SchemaUpdateResponse>;
|
7897
|
-
}
|
7898
|
-
declare class RecordsApi {
|
7899
|
-
private extraProps;
|
7900
|
-
constructor(extraProps: ApiExtraProps);
|
7901
|
-
insertRecord({ workspace, region, database, branch, table, record, columns }: {
|
7902
|
-
workspace: WorkspaceID;
|
7903
|
-
region: string;
|
7904
|
-
database: DBName$1;
|
7905
|
-
branch: BranchName$1;
|
7906
|
-
table: TableName;
|
7907
|
-
record: Record<string, any>;
|
7908
|
-
columns?: ColumnsProjection;
|
7909
|
-
}): Promise<RecordUpdateResponse>;
|
7910
|
-
getRecord({ workspace, region, database, branch, table, id, columns }: {
|
7911
|
-
workspace: WorkspaceID;
|
7912
|
-
region: string;
|
7913
|
-
database: DBName$1;
|
7914
|
-
branch: BranchName$1;
|
7915
|
-
table: TableName;
|
7916
|
-
id: RecordID;
|
7917
|
-
columns?: ColumnsProjection;
|
7918
|
-
}): Promise<XataRecord$1>;
|
7919
|
-
insertRecordWithID({ workspace, region, database, branch, table, id, record, columns, createOnly, ifVersion }: {
|
7920
|
-
workspace: WorkspaceID;
|
7921
|
-
region: string;
|
7922
|
-
database: DBName$1;
|
7923
|
-
branch: BranchName$1;
|
7924
|
-
table: TableName;
|
7925
|
-
id: RecordID;
|
7926
|
-
record: Record<string, any>;
|
7927
|
-
columns?: ColumnsProjection;
|
7928
|
-
createOnly?: boolean;
|
7929
|
-
ifVersion?: number;
|
7930
|
-
}): Promise<RecordUpdateResponse>;
|
7931
|
-
updateRecordWithID({ workspace, region, database, branch, table, id, record, columns, ifVersion }: {
|
7932
|
-
workspace: WorkspaceID;
|
7933
|
-
region: string;
|
7934
|
-
database: DBName$1;
|
7935
|
-
branch: BranchName$1;
|
7936
|
-
table: TableName;
|
7937
|
-
id: RecordID;
|
7938
|
-
record: Record<string, any>;
|
7939
|
-
columns?: ColumnsProjection;
|
7940
|
-
ifVersion?: number;
|
7941
|
-
}): Promise<RecordUpdateResponse>;
|
7942
|
-
upsertRecordWithID({ workspace, region, database, branch, table, id, record, columns, ifVersion }: {
|
7943
|
-
workspace: WorkspaceID;
|
7944
|
-
region: string;
|
7945
|
-
database: DBName$1;
|
7946
|
-
branch: BranchName$1;
|
7947
|
-
table: TableName;
|
7948
|
-
id: RecordID;
|
7949
|
-
record: Record<string, any>;
|
7950
|
-
columns?: ColumnsProjection;
|
7951
|
-
ifVersion?: number;
|
7952
|
-
}): Promise<RecordUpdateResponse>;
|
7953
|
-
deleteRecord({ workspace, region, database, branch, table, id, columns }: {
|
7954
|
-
workspace: WorkspaceID;
|
7955
|
-
region: string;
|
7956
|
-
database: DBName$1;
|
7957
|
-
branch: BranchName$1;
|
7958
|
-
table: TableName;
|
7959
|
-
id: RecordID;
|
7960
|
-
columns?: ColumnsProjection;
|
7961
|
-
}): Promise<RecordUpdateResponse>;
|
7962
|
-
bulkInsertTableRecords({ workspace, region, database, branch, table, records, columns }: {
|
7963
|
-
workspace: WorkspaceID;
|
7964
|
-
region: string;
|
7965
|
-
database: DBName$1;
|
7966
|
-
branch: BranchName$1;
|
7967
|
-
table: TableName;
|
7968
|
-
records: Record<string, any>[];
|
7969
|
-
columns?: ColumnsProjection;
|
7970
|
-
}): Promise<BulkInsertResponse>;
|
7971
|
-
branchTransaction({ workspace, region, database, branch, operations }: {
|
7972
|
-
workspace: WorkspaceID;
|
7973
|
-
region: string;
|
7974
|
-
database: DBName$1;
|
7975
|
-
branch: BranchName$1;
|
7976
|
-
operations: TransactionOperation$1[];
|
7977
|
-
}): Promise<TransactionSuccess>;
|
7978
|
-
}
|
7979
|
-
declare class FilesApi {
|
7980
|
-
private extraProps;
|
7981
|
-
constructor(extraProps: ApiExtraProps);
|
7982
|
-
getFileItem({ workspace, region, database, branch, table, record, column, fileId }: {
|
7983
|
-
workspace: WorkspaceID;
|
7984
|
-
region: string;
|
7985
|
-
database: DBName$1;
|
7986
|
-
branch: BranchName$1;
|
7987
|
-
table: TableName;
|
7988
|
-
record: RecordID;
|
7989
|
-
column: ColumnName;
|
7990
|
-
fileId: string;
|
7991
|
-
}): Promise<any>;
|
7992
|
-
putFileItem({ workspace, region, database, branch, table, record, column, fileId, file }: {
|
7993
|
-
workspace: WorkspaceID;
|
7994
|
-
region: string;
|
7995
|
-
database: DBName$1;
|
7996
|
-
branch: BranchName$1;
|
7997
|
-
table: TableName;
|
7998
|
-
record: RecordID;
|
7999
|
-
column: ColumnName;
|
8000
|
-
fileId: string;
|
8001
|
-
file: any;
|
8002
|
-
}): Promise<PutFileResponse>;
|
8003
|
-
deleteFileItem({ workspace, region, database, branch, table, record, column, fileId }: {
|
8004
|
-
workspace: WorkspaceID;
|
8005
|
-
region: string;
|
8006
|
-
database: DBName$1;
|
8007
|
-
branch: BranchName$1;
|
8008
|
-
table: TableName;
|
8009
|
-
record: RecordID;
|
8010
|
-
column: ColumnName;
|
8011
|
-
fileId: string;
|
8012
|
-
}): Promise<PutFileResponse>;
|
8013
|
-
getFile({ workspace, region, database, branch, table, record, column }: {
|
8014
|
-
workspace: WorkspaceID;
|
8015
|
-
region: string;
|
8016
|
-
database: DBName$1;
|
8017
|
-
branch: BranchName$1;
|
8018
|
-
table: TableName;
|
8019
|
-
record: RecordID;
|
8020
|
-
column: ColumnName;
|
8021
|
-
}): Promise<any>;
|
8022
|
-
putFile({ workspace, region, database, branch, table, record, column, file }: {
|
8023
|
-
workspace: WorkspaceID;
|
8024
|
-
region: string;
|
8025
|
-
database: DBName$1;
|
8026
|
-
branch: BranchName$1;
|
8027
|
-
table: TableName;
|
8028
|
-
record: RecordID;
|
8029
|
-
column: ColumnName;
|
8030
|
-
file: Blob;
|
8031
|
-
}): Promise<PutFileResponse>;
|
8032
|
-
deleteFile({ workspace, region, database, branch, table, record, column }: {
|
8033
|
-
workspace: WorkspaceID;
|
8034
|
-
region: string;
|
8035
|
-
database: DBName$1;
|
8036
|
-
branch: BranchName$1;
|
8037
|
-
table: TableName;
|
8038
|
-
record: RecordID;
|
8039
|
-
column: ColumnName;
|
8040
|
-
}): Promise<PutFileResponse>;
|
8041
|
-
fileAccess({ workspace, region, fileId, verify }: {
|
8042
|
-
workspace: WorkspaceID;
|
8043
|
-
region: string;
|
8044
|
-
fileId: string;
|
8045
|
-
verify?: FileSignature;
|
8046
|
-
}): Promise<any>;
|
8047
|
-
}
|
8048
|
-
declare class SearchAndFilterApi {
|
8049
|
-
private extraProps;
|
8050
|
-
constructor(extraProps: ApiExtraProps);
|
8051
|
-
queryTable({ workspace, region, database, branch, table, filter, sort, page, columns, consistency }: {
|
8052
|
-
workspace: WorkspaceID;
|
8053
|
-
region: string;
|
8054
|
-
database: DBName$1;
|
8055
|
-
branch: BranchName$1;
|
8056
|
-
table: TableName;
|
8057
|
-
filter?: FilterExpression;
|
8058
|
-
sort?: SortExpression;
|
8059
|
-
page?: PageConfig;
|
8060
|
-
columns?: ColumnsProjection;
|
8061
|
-
consistency?: 'strong' | 'eventual';
|
8062
|
-
}): Promise<QueryResponse>;
|
8063
|
-
searchTable({ workspace, region, database, branch, table, query, fuzziness, target, prefix, filter, highlight, boosters }: {
|
8064
|
-
workspace: WorkspaceID;
|
8065
|
-
region: string;
|
8066
|
-
database: DBName$1;
|
8067
|
-
branch: BranchName$1;
|
8068
|
-
table: TableName;
|
8069
|
-
query: string;
|
8070
|
-
fuzziness?: FuzzinessExpression;
|
8071
|
-
target?: TargetExpression;
|
8072
|
-
prefix?: PrefixExpression;
|
8073
|
-
filter?: FilterExpression;
|
8074
|
-
highlight?: HighlightExpression;
|
8075
|
-
boosters?: BoosterExpression[];
|
8076
|
-
}): Promise<SearchResponse>;
|
8077
|
-
searchBranch({ workspace, region, database, branch, tables, query, fuzziness, prefix, highlight }: {
|
8078
|
-
workspace: WorkspaceID;
|
8079
|
-
region: string;
|
8080
|
-
database: DBName$1;
|
8081
|
-
branch: BranchName$1;
|
8082
|
-
tables?: (string | {
|
8083
|
-
table: string;
|
8084
|
-
filter?: FilterExpression;
|
8085
|
-
target?: TargetExpression;
|
8086
|
-
boosters?: BoosterExpression[];
|
8087
|
-
})[];
|
8088
|
-
query: string;
|
8089
|
-
fuzziness?: FuzzinessExpression;
|
8090
|
-
prefix?: PrefixExpression;
|
8091
|
-
highlight?: HighlightExpression;
|
8092
|
-
}): Promise<SearchResponse>;
|
8093
|
-
vectorSearchTable({ workspace, region, database, branch, table, queryVector, column, similarityFunction, size, filter }: {
|
8094
|
-
workspace: WorkspaceID;
|
8095
|
-
region: string;
|
8096
|
-
database: DBName$1;
|
8097
|
-
branch: BranchName$1;
|
8098
|
-
table: TableName;
|
8099
|
-
queryVector: number[];
|
8100
|
-
column: string;
|
8101
|
-
similarityFunction?: string;
|
8102
|
-
size?: number;
|
8103
|
-
filter?: FilterExpression;
|
8104
|
-
}): Promise<SearchResponse>;
|
8105
|
-
askTable({ workspace, region, database, branch, table, options }: {
|
8106
|
-
workspace: WorkspaceID;
|
8107
|
-
region: string;
|
8108
|
-
database: DBName$1;
|
8109
|
-
branch: BranchName$1;
|
8110
|
-
table: TableName;
|
8111
|
-
options: AskTableRequestBody;
|
8112
|
-
}): Promise<AskTableResponse>;
|
8113
|
-
askTableSession({ workspace, region, database, branch, table, sessionId, message }: {
|
8114
|
-
workspace: WorkspaceID;
|
8115
|
-
region: string;
|
8116
|
-
database: DBName$1;
|
8117
|
-
branch: BranchName$1;
|
8118
|
-
table: TableName;
|
8119
|
-
sessionId: string;
|
8120
|
-
message: string;
|
8121
|
-
}): Promise<AskTableSessionResponse>;
|
8122
|
-
summarizeTable({ workspace, region, database, branch, table, filter, columns, summaries, sort, summariesFilter, page, consistency }: {
|
8123
|
-
workspace: WorkspaceID;
|
8124
|
-
region: string;
|
8125
|
-
database: DBName$1;
|
8126
|
-
branch: BranchName$1;
|
8127
|
-
table: TableName;
|
8128
|
-
filter?: FilterExpression;
|
8129
|
-
columns?: ColumnsProjection;
|
8130
|
-
summaries?: SummaryExpressionList;
|
8131
|
-
sort?: SortExpression;
|
8132
|
-
summariesFilter?: FilterExpression;
|
8133
|
-
page?: {
|
8134
|
-
size?: number;
|
8135
|
-
};
|
8136
|
-
consistency?: 'strong' | 'eventual';
|
8137
|
-
}): Promise<SummarizeResponse>;
|
8138
|
-
aggregateTable({ workspace, region, database, branch, table, filter, aggs }: {
|
8139
|
-
workspace: WorkspaceID;
|
8140
|
-
region: string;
|
8141
|
-
database: DBName$1;
|
8142
|
-
branch: BranchName$1;
|
8143
|
-
table: TableName;
|
8144
|
-
filter?: FilterExpression;
|
8145
|
-
aggs?: AggExpressionMap;
|
8146
|
-
}): Promise<AggResponse>;
|
8147
|
-
}
|
8148
|
-
declare class MigrationRequestsApi {
|
8149
|
-
private extraProps;
|
8150
|
-
constructor(extraProps: ApiExtraProps);
|
8151
|
-
queryMigrationRequests({ workspace, region, database, filter, sort, page, columns }: {
|
8152
|
-
workspace: WorkspaceID;
|
8153
|
-
region: string;
|
8154
|
-
database: DBName$1;
|
8155
|
-
filter?: FilterExpression;
|
8156
|
-
sort?: SortExpression;
|
8157
|
-
page?: PageConfig;
|
8158
|
-
columns?: ColumnsProjection;
|
8159
|
-
}): Promise<QueryMigrationRequestsResponse>;
|
8160
|
-
createMigrationRequest({ workspace, region, database, migration }: {
|
8161
|
-
workspace: WorkspaceID;
|
8162
|
-
region: string;
|
8163
|
-
database: DBName$1;
|
8164
|
-
migration: CreateMigrationRequestRequestBody;
|
8165
|
-
}): Promise<CreateMigrationRequestResponse>;
|
8166
|
-
getMigrationRequest({ workspace, region, database, migrationRequest }: {
|
8167
|
-
workspace: WorkspaceID;
|
8168
|
-
region: string;
|
8169
|
-
database: DBName$1;
|
8170
|
-
migrationRequest: MigrationRequestNumber;
|
8171
|
-
}): Promise<MigrationRequest>;
|
8172
|
-
updateMigrationRequest({ workspace, region, database, migrationRequest, update }: {
|
8173
|
-
workspace: WorkspaceID;
|
8174
|
-
region: string;
|
8175
|
-
database: DBName$1;
|
8176
|
-
migrationRequest: MigrationRequestNumber;
|
8177
|
-
update: UpdateMigrationRequestRequestBody;
|
8178
|
-
}): Promise<void>;
|
8179
|
-
listMigrationRequestsCommits({ workspace, region, database, migrationRequest, page }: {
|
8180
|
-
workspace: WorkspaceID;
|
8181
|
-
region: string;
|
8182
|
-
database: DBName$1;
|
8183
|
-
migrationRequest: MigrationRequestNumber;
|
8184
|
-
page?: {
|
8185
|
-
after?: string;
|
8186
|
-
before?: string;
|
8187
|
-
size?: number;
|
8188
|
-
};
|
8189
|
-
}): Promise<ListMigrationRequestsCommitsResponse>;
|
8190
|
-
compareMigrationRequest({ workspace, region, database, migrationRequest }: {
|
8191
|
-
workspace: WorkspaceID;
|
8192
|
-
region: string;
|
8193
|
-
database: DBName$1;
|
8194
|
-
migrationRequest: MigrationRequestNumber;
|
8195
|
-
}): Promise<SchemaCompareResponse>;
|
8196
|
-
getMigrationRequestIsMerged({ workspace, region, database, migrationRequest }: {
|
8197
|
-
workspace: WorkspaceID;
|
8198
|
-
region: string;
|
8199
|
-
database: DBName$1;
|
8200
|
-
migrationRequest: MigrationRequestNumber;
|
8201
|
-
}): Promise<GetMigrationRequestIsMergedResponse>;
|
8202
|
-
mergeMigrationRequest({ workspace, region, database, migrationRequest }: {
|
8203
|
-
workspace: WorkspaceID;
|
8204
|
-
region: string;
|
8205
|
-
database: DBName$1;
|
8206
|
-
migrationRequest: MigrationRequestNumber;
|
8207
|
-
}): Promise<BranchOp>;
|
8208
|
-
}
|
8209
|
-
declare class MigrationsApi {
|
8210
|
-
private extraProps;
|
8211
|
-
constructor(extraProps: ApiExtraProps);
|
8212
|
-
getBranchMigrationHistory({ workspace, region, database, branch, limit, startFrom }: {
|
8213
|
-
workspace: WorkspaceID;
|
8214
|
-
region: string;
|
8215
|
-
database: DBName$1;
|
8216
|
-
branch: BranchName$1;
|
8217
|
-
limit?: number;
|
8218
|
-
startFrom?: string;
|
8219
|
-
}): Promise<GetBranchMigrationHistoryResponse>;
|
8220
|
-
getBranchMigrationPlan({ workspace, region, database, branch, schema }: {
|
8221
|
-
workspace: WorkspaceID;
|
8222
|
-
region: string;
|
8223
|
-
database: DBName$1;
|
8224
|
-
branch: BranchName$1;
|
8225
|
-
schema: Schema;
|
8226
|
-
}): Promise<BranchMigrationPlan>;
|
8227
|
-
executeBranchMigrationPlan({ workspace, region, database, branch, plan }: {
|
8228
|
-
workspace: WorkspaceID;
|
8229
|
-
region: string;
|
8230
|
-
database: DBName$1;
|
8231
|
-
branch: BranchName$1;
|
8232
|
-
plan: ExecuteBranchMigrationPlanRequestBody;
|
8233
|
-
}): Promise<SchemaUpdateResponse>;
|
8234
|
-
getBranchSchemaHistory({ workspace, region, database, branch, page }: {
|
8235
|
-
workspace: WorkspaceID;
|
8236
|
-
region: string;
|
8237
|
-
database: DBName$1;
|
8238
|
-
branch: BranchName$1;
|
8239
|
-
page?: {
|
8240
|
-
after?: string;
|
8241
|
-
before?: string;
|
8242
|
-
size?: number;
|
8243
|
-
};
|
8244
|
-
}): Promise<GetBranchSchemaHistoryResponse>;
|
8245
|
-
compareBranchWithUserSchema({ workspace, region, database, branch, schema, schemaOperations, branchOperations }: {
|
8246
|
-
workspace: WorkspaceID;
|
8247
|
-
region: string;
|
8248
|
-
database: DBName$1;
|
8249
|
-
branch: BranchName$1;
|
8250
|
-
schema: Schema;
|
8251
|
-
schemaOperations?: MigrationOp[];
|
8252
|
-
branchOperations?: MigrationOp[];
|
8253
|
-
}): Promise<SchemaCompareResponse>;
|
8254
|
-
compareBranchSchemas({ workspace, region, database, branch, compare, sourceBranchOperations, targetBranchOperations }: {
|
8255
|
-
workspace: WorkspaceID;
|
8256
|
-
region: string;
|
8257
|
-
database: DBName$1;
|
8258
|
-
branch: BranchName$1;
|
8259
|
-
compare: BranchName$1;
|
8260
|
-
sourceBranchOperations?: MigrationOp[];
|
8261
|
-
targetBranchOperations?: MigrationOp[];
|
8262
|
-
}): Promise<SchemaCompareResponse>;
|
8263
|
-
updateBranchSchema({ workspace, region, database, branch, migration }: {
|
8264
|
-
workspace: WorkspaceID;
|
8265
|
-
region: string;
|
8266
|
-
database: DBName$1;
|
8267
|
-
branch: BranchName$1;
|
8268
|
-
migration: Migration;
|
8269
|
-
}): Promise<SchemaUpdateResponse>;
|
8270
|
-
previewBranchSchemaEdit({ workspace, region, database, branch, data }: {
|
8271
|
-
workspace: WorkspaceID;
|
8272
|
-
region: string;
|
8273
|
-
database: DBName$1;
|
8274
|
-
branch: BranchName$1;
|
8275
|
-
data: {
|
8276
|
-
edits?: SchemaEditScript;
|
8277
|
-
};
|
8278
|
-
}): Promise<PreviewBranchSchemaEditResponse>;
|
8279
|
-
applyBranchSchemaEdit({ workspace, region, database, branch, edits }: {
|
8280
|
-
workspace: WorkspaceID;
|
8281
|
-
region: string;
|
8282
|
-
database: DBName$1;
|
8283
|
-
branch: BranchName$1;
|
8284
|
-
edits: SchemaEditScript;
|
8285
|
-
}): Promise<SchemaUpdateResponse>;
|
8286
|
-
pushBranchMigrations({ workspace, region, database, branch, migrations }: {
|
8287
|
-
workspace: WorkspaceID;
|
8288
|
-
region: string;
|
8289
|
-
database: DBName$1;
|
8290
|
-
branch: BranchName$1;
|
8291
|
-
migrations: MigrationObject[];
|
8292
|
-
}): Promise<SchemaUpdateResponse>;
|
8293
|
-
getSchema({ workspace, region, database, branch }: {
|
8294
|
-
workspace: WorkspaceID;
|
8295
|
-
region: string;
|
8296
|
-
database: DBName$1;
|
8297
|
-
branch: BranchName$1;
|
8298
|
-
}): Promise<GetSchemaResponse>;
|
8299
|
-
}
|
8300
|
-
declare class DatabaseApi {
|
8301
|
-
private extraProps;
|
8302
|
-
constructor(extraProps: ApiExtraProps);
|
8303
|
-
getDatabaseList({ workspace }: {
|
8304
|
-
workspace: WorkspaceID;
|
8305
|
-
}): Promise<ListDatabasesResponse>;
|
8306
|
-
createDatabase({ workspace, database, data, headers }: {
|
8307
|
-
workspace: WorkspaceID;
|
8308
|
-
database: DBName$1;
|
8309
|
-
data: CreateDatabaseRequestBody;
|
8310
|
-
headers?: Record<string, string>;
|
8311
|
-
}): Promise<CreateDatabaseResponse>;
|
8312
|
-
deleteDatabase({ workspace, database }: {
|
8313
|
-
workspace: WorkspaceID;
|
8314
|
-
database: DBName$1;
|
8315
|
-
}): Promise<DeleteDatabaseResponse>;
|
8316
|
-
getDatabaseMetadata({ workspace, database }: {
|
8317
|
-
workspace: WorkspaceID;
|
8318
|
-
database: DBName$1;
|
8319
|
-
}): Promise<DatabaseMetadata>;
|
8320
|
-
updateDatabaseMetadata({ workspace, database, metadata }: {
|
8321
|
-
workspace: WorkspaceID;
|
8322
|
-
database: DBName$1;
|
8323
|
-
metadata: DatabaseMetadata;
|
8324
|
-
}): Promise<DatabaseMetadata>;
|
8325
|
-
renameDatabase({ workspace, database, newName }: {
|
8326
|
-
workspace: WorkspaceID;
|
8327
|
-
database: DBName$1;
|
8328
|
-
newName: DBName$1;
|
8329
|
-
}): Promise<DatabaseMetadata>;
|
8330
|
-
getDatabaseGithubSettings({ workspace, database }: {
|
8331
|
-
workspace: WorkspaceID;
|
8332
|
-
database: DBName$1;
|
8333
|
-
}): Promise<DatabaseGithubSettings>;
|
8334
|
-
updateDatabaseGithubSettings({ workspace, database, settings }: {
|
8335
|
-
workspace: WorkspaceID;
|
8336
|
-
database: DBName$1;
|
8337
|
-
settings: DatabaseGithubSettings;
|
8338
|
-
}): Promise<DatabaseGithubSettings>;
|
8339
|
-
deleteDatabaseGithubSettings({ workspace, database }: {
|
8340
|
-
workspace: WorkspaceID;
|
8341
|
-
database: DBName$1;
|
8342
|
-
}): Promise<void>;
|
8343
|
-
listRegions({ workspace }: {
|
8344
|
-
workspace: WorkspaceID;
|
8345
|
-
}): Promise<ListRegionsResponse>;
|
8335
|
+
export type { schemas_APIKeyName as APIKeyName, schemas_AccessToken as AccessToken, schemas_AggExpression as AggExpression, schemas_AggExpressionMap as AggExpressionMap, AggResponse$1 as AggResponse, schemas_ApplyMigrationResponse as ApplyMigrationResponse, schemas_AuthorizationCodeRequest as AuthorizationCodeRequest, schemas_AuthorizationCodeResponse as AuthorizationCodeResponse, schemas_AutoscalingConfig as AutoscalingConfig, schemas_AutoscalingConfigResponse as AutoscalingConfigResponse, schemas_AverageAgg as AverageAgg, schemas_BoosterExpression as BoosterExpression, schemas_Branch as Branch, schemas_BranchDetails as BranchDetails, BranchMetadata$1 as BranchMetadata, schemas_BranchMigration as BranchMigration, BranchName$1 as BranchName, schemas_BranchOp as BranchOp, schemas_BranchSchema as BranchSchema, schemas_BranchState as BranchState, schemas_BranchWithCopyID as BranchWithCopyID, schemas_ClusterConfiguration as ClusterConfiguration, schemas_ClusterConfigurationResponse as ClusterConfigurationResponse, schemas_ClusterCreateDetails as ClusterCreateDetails, schemas_ClusterDeleteMetadata as ClusterDeleteMetadata, schemas_ClusterExtensionInstallationResponse as ClusterExtensionInstallationResponse, ClusterID$1 as ClusterID, schemas_ClusterMetadata as ClusterMetadata, schemas_ClusterResponse as ClusterResponse, schemas_ClusterShortMetadata as ClusterShortMetadata, schemas_ClusterUpdateDetails as ClusterUpdateDetails, schemas_ClusterUpdateMetadata as ClusterUpdateMetadata, schemas_Column as Column, schemas_ColumnFile as ColumnFile, schemas_ColumnLink as ColumnLink, schemas_ColumnMigration as ColumnMigration, schemas_ColumnName as ColumnName, schemas_ColumnOpAdd as ColumnOpAdd, schemas_ColumnOpRemove as ColumnOpRemove, schemas_ColumnOpRename as ColumnOpRename, schemas_ColumnVector as ColumnVector, schemas_ColumnsProjection as ColumnsProjection, schemas_Commit as Commit, schemas_CompleteMigrationResponse as CompleteMigrationResponse, schemas_CountAgg as CountAgg, CreateBranchResponse$1 as CreateBranchResponse, schemas_DBBranch as DBBranch, schemas_DBBranchName as DBBranchName, DBName$1 as DBName, schemas_DailyTimeWindow as DailyTimeWindow, schemas_DataInputRecord as DataInputRecord, schemas_DatabaseGithubSettings as DatabaseGithubSettings, schemas_DatabaseMetadata as DatabaseMetadata, schemas_DatabaseSettings as DatabaseSettings, DateBooster$1 as DateBooster, schemas_DateHistogramAgg as DateHistogramAgg, DateTime$1 as DateTime, schemas_ExtensionDetails as ExtensionDetails, schemas_FileAccessID as FileAccessID, schemas_FileItemID as FileItemID, schemas_FileName as FileName, schemas_FileResponse as FileResponse, schemas_FileSignature as FileSignature, schemas_FilterColumn as FilterColumn, schemas_FilterColumnIncludes as FilterColumnIncludes, schemas_FilterExpression as FilterExpression, schemas_FilterList as FilterList, schemas_FilterPredicate as FilterPredicate, schemas_FilterPredicateOp as FilterPredicateOp, schemas_FilterPredicateRangeOp as FilterPredicateRangeOp, schemas_FilterRangeValue as FilterRangeValue, schemas_FilterValue as FilterValue, schemas_FuzzinessExpression as FuzzinessExpression, schemas_GetMigrationJobsResponse as GetMigrationJobsResponse, schemas_HighlightExpression as HighlightExpression, schemas_InputFile as InputFile, schemas_InputFileArray as InputFileArray, schemas_InputFileEntry as InputFileEntry, schemas_InviteID as InviteID, schemas_InviteKey as InviteKey, schemas_ListBranchesResponse as ListBranchesResponse, schemas_ListClusterBranchesResponse as ListClusterBranchesResponse, schemas_ListClusterExtensionsResponse as ListClusterExtensionsResponse, schemas_ListClustersResponse as ListClustersResponse, schemas_ListDatabasesResponse as ListDatabasesResponse, schemas_ListGitBranchesResponse as ListGitBranchesResponse, schemas_ListRegionsResponse as ListRegionsResponse, schemas_MaintenanceConfig as MaintenanceConfig, schemas_MaintenanceConfigResponse as MaintenanceConfigResponse, schemas_MaxAgg as MaxAgg, schemas_MediaType as MediaType, schemas_MetricData as MetricData, schemas_MetricMessage as MetricMessage, schemas_MetricsDatapoint as MetricsDatapoint, schemas_MetricsLatency as MetricsLatency, schemas_MetricsResponse as MetricsResponse, schemas_Migration as Migration, schemas_MigrationColumnOp as MigrationColumnOp, schemas_MigrationDescription as MigrationDescription, schemas_MigrationHistoryItem as MigrationHistoryItem, schemas_MigrationHistoryResponse as MigrationHistoryResponse, schemas_MigrationJobID as MigrationJobID, schemas_MigrationJobItem as MigrationJobItem, schemas_MigrationJobStatus as MigrationJobStatus, schemas_MigrationJobStatusResponse as MigrationJobStatusResponse, schemas_MigrationJobType as MigrationJobType, schemas_MigrationObject as MigrationObject, schemas_MigrationOp as MigrationOp, schemas_MigrationOperationDescription as MigrationOperationDescription, schemas_MigrationRequest as MigrationRequest, schemas_MigrationRequestNumber as MigrationRequestNumber, MigrationStatus$1 as MigrationStatus, schemas_MigrationTableOp as MigrationTableOp, schemas_MigrationType as MigrationType, schemas_MinAgg as MinAgg, NumericBooster$1 as NumericBooster, schemas_NumericHistogramAgg as NumericHistogramAgg, schemas_OAuthAccessToken as OAuthAccessToken, schemas_OAuthClientID as OAuthClientID, schemas_OAuthClientPublicDetails as OAuthClientPublicDetails, schemas_OAuthResponseType as OAuthResponseType, schemas_OAuthScope as OAuthScope, schemas_ObjectValue as ObjectValue, schemas_PageConfig as PageConfig, PageResponse$1 as PageResponse, PageSize$1 as PageSize, PageToken$1 as PageToken, schemas_PercentilesAgg as PercentilesAgg, schemas_PrefixExpression as PrefixExpression, schemas_PreparedStatement as PreparedStatement, schemas_ProjectionConfig as ProjectionConfig, schemas_QueryColumnsProjection as QueryColumnsProjection, schemas_RecordID as RecordID, schemas_RecordMeta as RecordMeta, schemas_RecordsMetadata as RecordsMetadata, schemas_Region as Region, schemas_RevLink as RevLink, schemas_Role as Role, schemas_RollbackMigrationResponse as RollbackMigrationResponse, schemas_SQLConsistency as SQLConsistency, schemas_SQLRecord as SQLRecord, SQLResponse$1 as SQLResponse, schemas_SQLResponseArray as SQLResponseArray, schemas_SQLResponseBase as SQLResponseBase, schemas_SQLResponseJSON as SQLResponseJSON, SQLResponseType$1 as SQLResponseType, schemas_Schema as Schema, schemas_SchemaEditScript as SchemaEditScript, schemas_SearchPageConfig as SearchPageConfig, schemas_SortExpression as SortExpression, schemas_SortOrder as SortOrder, schemas_StartMigrationResponse as StartMigrationResponse, schemas_StartedFromMetadata as StartedFromMetadata, schemas_StorageConfig as StorageConfig, schemas_StorageConfigResponse as StorageConfigResponse, schemas_SumAgg as SumAgg, schemas_SummaryExpression as SummaryExpression, schemas_SummaryExpressionList as SummaryExpressionList, schemas_Table as Table, schemas_TableMigration as TableMigration, schemas_TableName as TableName, schemas_TableOpAdd as TableOpAdd, schemas_TableOpRemove as TableOpRemove, schemas_TableOpRename as TableOpRename, schemas_TableRename as TableRename, schemas_TargetExpression as TargetExpression, schemas_TaskID as TaskID, schemas_TaskStatus as TaskStatus, schemas_TaskStatusResponse as TaskStatusResponse, schemas_TopValuesAgg as TopValuesAgg, schemas_TransactionDeleteOp as TransactionDeleteOp, schemas_TransactionError as TransactionError, schemas_TransactionFailure as TransactionFailure, schemas_TransactionGetOp as TransactionGetOp, schemas_TransactionInsertOp as TransactionInsertOp, TransactionOperation$1 as TransactionOperation, schemas_TransactionResultColumns as TransactionResultColumns, schemas_TransactionResultDelete as TransactionResultDelete, schemas_TransactionResultGet as TransactionResultGet, schemas_TransactionResultInsert as TransactionResultInsert, schemas_TransactionResultUpdate as TransactionResultUpdate, schemas_TransactionSuccess as TransactionSuccess, schemas_TransactionUpdateOp as TransactionUpdateOp, schemas_UniqueCountAgg as UniqueCountAgg, schemas_User as User, schemas_UserID as UserID, schemas_UserWithID as UserWithID, ValueBooster$1 as ValueBooster, schemas_WeeklyTimeWindow as WeeklyTimeWindow, schemas_Workspace as Workspace, schemas_WorkspaceID as WorkspaceID, schemas_WorkspaceInvite as WorkspaceInvite, schemas_WorkspaceMember as WorkspaceMember, schemas_WorkspaceMembers as WorkspaceMembers, schemas_WorkspaceMeta as WorkspaceMeta, schemas_WorkspacePlan as WorkspacePlan, schemas_WorkspaceSettings as WorkspaceSettings, XataRecord$1 as XataRecord };
|
8346
8336
|
}
|
8347
8337
|
|
8348
8338
|
declare class XataApiPlugin implements XataPlugin {
|
8349
8339
|
build(options: XataPluginOptions): XataApiClient;
|
8350
8340
|
}
|
8351
8341
|
|
8352
|
-
type StringKeys<O> = Extract<keyof O, string>;
|
8353
|
-
type Values<O> = O[StringKeys<O>];
|
8354
|
-
type UnionToIntersection<T> = (T extends any ? (x: T) => any : never) extends (x: infer R) => any ? R : never;
|
8355
|
-
type If<Condition, Then, Else> = Condition extends true ? Then : Else;
|
8356
|
-
type IsObject<T> = T extends Record<string, any> ? true : false;
|
8357
|
-
type IsArray<T> = T extends Array<any> ? true : false;
|
8358
|
-
type RequiredBy<T, K extends keyof T> = T & {
|
8359
|
-
[P in K]-?: NonNullable<T[P]>;
|
8360
|
-
};
|
8361
|
-
type GetArrayInnerType<T extends readonly any[]> = T[number];
|
8362
|
-
type SingleOrArray<T> = T | T[];
|
8363
|
-
type Dictionary<T> = Record<string, T>;
|
8364
|
-
type OmitBy<T, K extends keyof T> = T extends any ? Omit<T, K> : never;
|
8365
|
-
type Without<T, U> = {
|
8366
|
-
[P in Exclude<keyof T, keyof U>]?: never;
|
8367
|
-
};
|
8368
|
-
type ExclusiveOr<T, U> = T | U extends object ? (Without<T, U> & U) | (Without<U, T> & T) : T | U;
|
8369
|
-
type Explode<T> = keyof T extends infer K ? K extends unknown ? {
|
8370
|
-
[I in keyof T]: I extends K ? T[I] : never;
|
8371
|
-
} : never : never;
|
8372
|
-
type AtMostOne<T> = Explode<Partial<T>>;
|
8373
|
-
type AtLeastOne<T, U = {
|
8374
|
-
[K in keyof T]: Pick<T, K>;
|
8375
|
-
}> = Partial<T> & U[keyof U];
|
8376
|
-
type ExactlyOne<T> = AtMostOne<T> & AtLeastOne<T>;
|
8377
|
-
type Fn = (...args: any[]) => any;
|
8378
|
-
type NarrowRaw<A> = (A extends [] ? [] : never) | (A extends Narrowable ? A : never) | {
|
8379
|
-
[K in keyof A]: A[K] extends Fn ? A[K] : NarrowRaw<A[K]>;
|
8380
|
-
};
|
8381
|
-
type Narrowable = string | number | bigint | boolean;
|
8382
|
-
type Try<A1, A2, Catch = never> = A1 extends A2 ? A1 : Catch;
|
8383
|
-
type Narrow<A> = Try<A, [], NarrowRaw<A>>;
|
8384
|
-
|
8385
8342
|
interface ImageTransformations {
|
8386
8343
|
/**
|
8387
8344
|
* Whether to preserve animation frames from input files. Default is true.
|
@@ -9234,9 +9191,9 @@ type SelectedPick<O extends XataRecord, Key extends SelectableColumnWithObjectNo
|
|
9234
9191
|
};
|
9235
9192
|
};
|
9236
9193
|
}>>;
|
9237
|
-
type ValueAtColumn<
|
9194
|
+
type ValueAtColumn<Obj, Key, RecursivePath extends any[] = []> = RecursivePath['length'] extends MAX_RECURSION ? never : Key extends '*' ? Values<Obj> : Key extends 'id' ? string : Key extends 'xata.version' ? number : Key extends 'xata.createdAt' ? Date : Key extends 'xata.updatedAt' ? Date : Key extends keyof Obj ? Obj[Key] : Key extends `${infer K}.${infer V}` ? K extends keyof Obj ? Values<NonNullable<Obj[K]> extends infer Item ? Item extends Record<string, any> ? V extends SelectableColumn<Item> ? {
|
9238
9195
|
V: ValueAtColumn<Item, V, [...RecursivePath, Item]>;
|
9239
|
-
} : never :
|
9196
|
+
} : never : Obj[K] : never> : never : never;
|
9240
9197
|
type MAX_RECURSION = 3;
|
9241
9198
|
type NestedColumns<O, RecursivePath extends any[]> = RecursivePath['length'] extends MAX_RECURSION ? never : If<IsObject<O>, Values<{
|
9242
9199
|
[K in DataProps<O>]: NonNullable<O[K]> extends infer Item ? If<IsArray<Item>, Item extends (infer Type)[] ? Type extends XataArrayFile ? K | `${K}.${keyof XataFileFields | '*'}` : K | `${K}.${StringKeys<Type> | '*'}` : never, If<IsObject<Item>, Item extends XataRecord ? SelectableColumn<Item, [...RecursivePath, Item]> extends infer Column ? Column extends string ? K | `${K}.${Column}` : never : never : Item extends Date ? K : Item extends XataFile ? K | `${K}.${keyof XataFileFields | '*'}` : `${K}.${StringKeys<Item> | '*'}`, // This allows usage of objects that are not links
|
@@ -9367,13 +9324,13 @@ type XataRecordMetadata = {
|
|
9367
9324
|
declare function isIdentifiable(x: any): x is Identifiable & Record<string, unknown>;
|
9368
9325
|
declare function isXataRecord(x: any): x is XataRecord & Record<string, unknown>;
|
9369
9326
|
type NumericOperator = ExclusiveOr<{
|
9370
|
-
$increment
|
9327
|
+
$increment: number;
|
9371
9328
|
}, ExclusiveOr<{
|
9372
|
-
$decrement
|
9329
|
+
$decrement: number;
|
9373
9330
|
}, ExclusiveOr<{
|
9374
|
-
$multiply
|
9331
|
+
$multiply: number;
|
9375
9332
|
}, {
|
9376
|
-
$divide
|
9333
|
+
$divide: number;
|
9377
9334
|
}>>>;
|
9378
9335
|
type InputXataFile = Partial<XataArrayFile> | Promise<Partial<XataArrayFile>>;
|
9379
9336
|
type EditableDataFields<T> = T extends XataRecord ? {
|
@@ -11495,4 +11452,4 @@ declare class XataError extends Error {
|
|
11495
11452
|
constructor(message: string, status: number);
|
11496
11453
|
}
|
11497
11454
|
|
11498
|
-
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 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 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 GetMigrationHistoryQueryParams, 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, type RollbackMigrationError, type RollbackMigrationPathParams, 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 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, 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, 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, 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 };
|
11455
|
+
export { type AcceptWorkspaceMemberInviteError, type AcceptWorkspaceMemberInvitePathParams, type AcceptWorkspaceMemberInviteVariables, type AdaptAllTablesError, type AdaptAllTablesPathParams, type AdaptAllTablesVariables, type AdaptTableError, type AdaptTablePathParams, type AdaptTableVariables, type AddGitBranchesEntryError, type AddGitBranchesEntryPathParams, type AddGitBranchesEntryRequestBody, type AddGitBranchesEntryResponse, type AddGitBranchesEntryVariables, type AddTableColumnError, type AddTableColumnPathParams, type AddTableColumnVariables, type AggregateTableError, type AggregateTablePathParams, type AggregateTableRequestBody, type AggregateTableVariables, type ApiExtraProps, type ApplyBranchSchemaEditError, type ApplyBranchSchemaEditPathParams, type ApplyBranchSchemaEditRequestBody, type ApplyBranchSchemaEditVariables, type ApplyMigrationError, type ApplyMigrationPathParams, type ApplyMigrationRequestBody, type ApplyMigrationVariables, type AskOptions, type AskResult, type AskTableError, type AskTablePathParams, type AskTableRequestBody, type AskTableResponse, type AskTableSessionError, type AskTableSessionPathParams, type AskTableSessionRequestBody, type AskTableSessionResponse, type AskTableSessionVariables, type AskTableVariables, BaseClient, type BaseClientOptions, type BaseData, type BaseSchema, type BinaryFile, type BranchTransactionError, type BranchTransactionPathParams, type BranchTransactionRequestBody, type BranchTransactionVariables, Buffer, type BulkInsertTableRecordsError, type BulkInsertTableRecordsPathParams, type BulkInsertTableRecordsQueryParams, type BulkInsertTableRecordsRequestBody, type BulkInsertTableRecordsVariables, type CacheImpl, type CancelWorkspaceMemberInviteError, type CancelWorkspaceMemberInvitePathParams, type CancelWorkspaceMemberInviteVariables, type ClientConstructor, type ColumnsByValue, type CompareBranchSchemasError, type CompareBranchSchemasPathParams, type CompareBranchSchemasRequestBody, type CompareBranchSchemasVariables, type CompareBranchWithUserSchemaError, type CompareBranchWithUserSchemaPathParams, type CompareBranchWithUserSchemaRequestBody, type CompareBranchWithUserSchemaVariables, type CompareMigrationRequestError, type CompareMigrationRequestPathParams, type CompareMigrationRequestVariables, type CompleteMigrationError, type CompleteMigrationPathParams, type CompleteMigrationRequestBody, type CompleteMigrationVariables, type CopyBranchError, type CopyBranchPathParams, type CopyBranchRequestBody, type CopyBranchVariables, type CreateBranchAsyncError, type CreateBranchAsyncPathParams, type CreateBranchAsyncQueryParams, type CreateBranchAsyncRequestBody, type CreateBranchAsyncVariables, type CreateBranchError, type CreateBranchPathParams, type CreateBranchQueryParams, type CreateBranchRequestBody, type CreateBranchResponse, type CreateBranchVariables, type CreateClusterError, type CreateClusterPathParams, type CreateClusterVariables, type CreateDatabaseError, type CreateDatabasePathParams, type CreateDatabaseRequestBody, type CreateDatabaseResponse, type CreateDatabaseVariables, type CreateMigrationRequestError, type CreateMigrationRequestPathParams, type CreateMigrationRequestRequestBody, type CreateMigrationRequestResponse, type CreateMigrationRequestVariables, type CreateTableError, type CreateTablePathParams, type CreateTableResponse, type CreateTableVariables, type CreateUserAPIKeyError, type CreateUserAPIKeyPathParams, type CreateUserAPIKeyResponse, type CreateUserAPIKeyVariables, type CreateWorkspaceError, type CreateWorkspaceVariables, type CursorNavigationOptions, type DeleteBranchError, type DeleteBranchPathParams, type DeleteBranchResponse, type DeleteBranchVariables, type DeleteClusterError, type DeleteClusterPathParams, type DeleteClusterVariables, type DeleteColumnError, type DeleteColumnPathParams, type DeleteColumnVariables, type DeleteDatabaseError, type DeleteDatabaseGithubSettingsError, type DeleteDatabaseGithubSettingsPathParams, type DeleteDatabaseGithubSettingsVariables, type DeleteDatabasePathParams, type DeleteDatabaseResponse, type DeleteDatabaseVariables, type DeleteFileError, type DeleteFileItemError, type DeleteFileItemPathParams, type DeleteFileItemVariables, type DeleteFilePathParams, type DeleteFileVariables, type DeleteOAuthAccessTokenError, type DeleteOAuthAccessTokenPathParams, type DeleteOAuthAccessTokenVariables, type DeleteRecordError, type DeleteRecordPathParams, type DeleteRecordQueryParams, type DeleteRecordVariables, type DeleteTableError, type DeleteTablePathParams, type DeleteTableResponse, type DeleteTableVariables, type DeleteTransactionOperation, type DeleteUserAPIKeyError, type DeleteUserAPIKeyPathParams, type DeleteUserAPIKeyVariables, type DeleteUserError, type DeleteUserOAuthClientError, type DeleteUserOAuthClientPathParams, type DeleteUserOAuthClientVariables, type DeleteUserVariables, type DeleteWorkspaceError, type DeleteWorkspacePathParams, type DeleteWorkspaceVariables, type DeserializedType, type DownloadDestination, type DropClusterExtensionError, type DropClusterExtensionPathParams, type DropClusterExtensionRequestBody, type DropClusterExtensionVariables, type EditableData, type ExecuteBranchMigrationPlanError, type ExecuteBranchMigrationPlanPathParams, type ExecuteBranchMigrationPlanRequestBody, type ExecuteBranchMigrationPlanVariables, type FetchImpl, FetcherError, type FetcherExtraProps, type FileAccessError, type FileAccessPathParams, type FileAccessQueryParams, type FileAccessVariables, type FileUploadError, type FileUploadPathParams, type FileUploadQueryParams, type FileUploadVariables, FilesPlugin, type FilesPluginResult, type GetAuthorizationCodeError, type GetAuthorizationCodeQueryParams, type GetAuthorizationCodeVariables, type GetBranchDetailsError, type GetBranchDetailsPathParams, type GetBranchDetailsVariables, type GetBranchListError, type GetBranchListPathParams, type GetBranchListVariables, type GetBranchMetadataError, type GetBranchMetadataPathParams, type GetBranchMetadataVariables, type GetBranchMigrationHistoryError, type GetBranchMigrationHistoryPathParams, type GetBranchMigrationHistoryRequestBody, type GetBranchMigrationHistoryResponse, type GetBranchMigrationHistoryVariables, type GetBranchMigrationJobStatusError, type GetBranchMigrationJobStatusPathParams, type GetBranchMigrationJobStatusVariables, type GetBranchMigrationPlanError, type GetBranchMigrationPlanPathParams, type GetBranchMigrationPlanVariables, type GetBranchMoveStatusError, type GetBranchMoveStatusPathParams, type GetBranchMoveStatusResponse, type GetBranchMoveStatusVariables, type GetBranchSchemaHistoryError, type GetBranchSchemaHistoryPathParams, type GetBranchSchemaHistoryRequestBody, type GetBranchSchemaHistoryResponse, type GetBranchSchemaHistoryVariables, type GetBranchStatsError, type GetBranchStatsPathParams, type GetBranchStatsResponse, type GetBranchStatsVariables, type GetClusterError, type GetClusterMetricsError, type GetClusterMetricsPathParams, type GetClusterMetricsQueryParams, type GetClusterMetricsVariables, type GetClusterPathParams, type GetClusterVariables, type GetColumnError, type GetColumnPathParams, type GetColumnVariables, type GetDatabaseGithubSettingsError, type GetDatabaseGithubSettingsPathParams, type GetDatabaseGithubSettingsVariables, type GetDatabaseListError, type GetDatabaseListPathParams, type GetDatabaseListVariables, type GetDatabaseMetadataError, type GetDatabaseMetadataPathParams, type GetDatabaseMetadataVariables, type GetDatabaseSettingsError, type GetDatabaseSettingsPathParams, type GetDatabaseSettingsVariables, type GetFileError, type GetFileItemError, type GetFileItemPathParams, type GetFileItemVariables, type GetFilePathParams, type GetFileVariables, type GetGitBranchesMappingError, type GetGitBranchesMappingPathParams, type GetGitBranchesMappingVariables, type GetMigrationHistoryError, type GetMigrationHistoryPathParams, type GetMigrationHistoryQueryParams, type GetMigrationHistoryVariables, type GetMigrationJobStatusError, type GetMigrationJobStatusPathParams, type GetMigrationJobStatusVariables, type GetMigrationJobsError, type GetMigrationJobsPathParams, type GetMigrationJobsQueryParams, type GetMigrationJobsVariables, type GetMigrationRequestError, type GetMigrationRequestIsMergedError, type GetMigrationRequestIsMergedPathParams, type GetMigrationRequestIsMergedResponse, type GetMigrationRequestIsMergedVariables, type GetMigrationRequestPathParams, type GetMigrationRequestVariables, type GetRecordError, type GetRecordPathParams, type GetRecordQueryParams, type GetRecordVariables, type GetSchemaError, type GetSchemaPathParams, type GetSchemaResponse, type GetSchemaVariables, type GetSchemasError, type GetSchemasPathParams, type GetSchemasResponse, type GetSchemasVariables, type GetTableColumnsError, type GetTableColumnsPathParams, type GetTableColumnsResponse, type GetTableColumnsVariables, type GetTableSchemaError, type GetTableSchemaPathParams, type GetTableSchemaResponse, type GetTableSchemaVariables, type GetTaskStatusError, type GetTaskStatusPathParams, type GetTaskStatusVariables, type GetTasksError, type GetTasksPathParams, type GetTasksResponse, type GetTasksVariables, type GetTransactionOperation, type GetUserAPIKeysError, type GetUserAPIKeysResponse, type GetUserAPIKeysVariables, type GetUserError, type GetUserOAuthAccessTokensError, type GetUserOAuthAccessTokensResponse, type GetUserOAuthAccessTokensVariables, type GetUserOAuthClientsError, type GetUserOAuthClientsResponse, type GetUserOAuthClientsVariables, type GetUserVariables, type GetWorkspaceError, type GetWorkspaceMembersListError, type GetWorkspaceMembersListPathParams, type GetWorkspaceMembersListVariables, type GetWorkspacePathParams, type GetWorkspaceSettingsError, type GetWorkspaceSettingsPathParams, type GetWorkspaceSettingsVariables, type GetWorkspaceVariables, type GetWorkspacesListError, type GetWorkspacesListResponse, type GetWorkspacesListVariables, type GrantAuthorizationCodeError, type GrantAuthorizationCodeVariables, type HostProvider, type Identifiable, type ImageTransformations, type InsertRecordError, type InsertRecordPathParams, type InsertRecordQueryParams, type InsertRecordVariables, type InsertRecordWithIDError, type InsertRecordWithIDPathParams, type InsertRecordWithIDQueryParams, type InsertRecordWithIDVariables, type InsertTransactionOperation, type InstallClusterExtensionError, type InstallClusterExtensionPathParams, type InstallClusterExtensionRequestBody, type InstallClusterExtensionVariables, type InviteWorkspaceMemberError, type InviteWorkspaceMemberPathParams, type InviteWorkspaceMemberRequestBody, type InviteWorkspaceMemberVariables, type JSONData, type KeywordAskOptions, type Link, type ListClusterBranchesError, type ListClusterBranchesPathParams, type ListClusterBranchesQueryParams, type ListClusterBranchesVariables, type ListClusterExtensionsError, type ListClusterExtensionsPathParams, type ListClusterExtensionsQueryParams, type ListClusterExtensionsVariables, type ListClustersError, type ListClustersPathParams, type ListClustersQueryParams, type ListClustersVariables, type ListMigrationRequestsCommitsError, type ListMigrationRequestsCommitsPathParams, type ListMigrationRequestsCommitsRequestBody, type ListMigrationRequestsCommitsResponse, type ListMigrationRequestsCommitsVariables, type ListRegionsError, type ListRegionsPathParams, type ListRegionsVariables, type MergeMigrationRequestError, type MergeMigrationRequestPathParams, type MergeMigrationRequestVariables, type MoveBranchError, type MoveBranchPathParams, type MoveBranchRequestBody, type MoveBranchResponse, type MoveBranchVariables, type OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, PageRecordArray, type Paginable, type PaginationQueryMeta, type PreviewBranchSchemaEditError, type PreviewBranchSchemaEditPathParams, type PreviewBranchSchemaEditRequestBody, type PreviewBranchSchemaEditResponse, type PreviewBranchSchemaEditVariables, type PushBranchMigrationsError, type PushBranchMigrationsPathParams, type PushBranchMigrationsRequestBody, type PushBranchMigrationsVariables, type PutFileError, type PutFileItemError, type PutFileItemPathParams, type PutFileItemVariables, type PutFilePathParams, type PutFileVariables, Query, type QueryMigrationRequestsError, type QueryMigrationRequestsPathParams, type QueryMigrationRequestsRequestBody, type QueryMigrationRequestsResponse, type QueryMigrationRequestsVariables, type QueryTableError, type QueryTablePathParams, type QueryTableRequestBody, type QueryTableVariables, RecordArray, RecordColumnTypes, type RemoveGitBranchesEntryError, type RemoveGitBranchesEntryPathParams, type RemoveGitBranchesEntryQueryParams, type RemoveGitBranchesEntryVariables, type RemoveWorkspaceMemberError, type RemoveWorkspaceMemberPathParams, type RemoveWorkspaceMemberVariables, type RenameDatabaseError, type RenameDatabasePathParams, type RenameDatabaseRequestBody, type RenameDatabaseVariables, Repository, type ResendWorkspaceMemberInviteError, type ResendWorkspaceMemberInvitePathParams, type ResendWorkspaceMemberInviteVariables, type ResolveBranchError, type ResolveBranchPathParams, type ResolveBranchQueryParams, type ResolveBranchResponse, type ResolveBranchVariables, responses as Responses, RestRepository, type RollbackMigrationError, type RollbackMigrationPathParams, type RollbackMigrationRequestBody, type RollbackMigrationVariables, type SQLBatchQuery, SQLPlugin, type SQLPluginResult, type SQLQuery, type SQLQueryParams, type SQLQueryResult, type SchemaDefinition, type SchemaInference, SchemaPlugin, type SchemaPluginResult, schemas as Schemas, type SearchBranchError, type SearchBranchPathParams, type SearchBranchRequestBody, type SearchBranchVariables, type SearchOptions, SearchPlugin, type SearchPluginResult, type SearchTableError, type SearchTablePathParams, type SearchTableRequestBody, type SearchTableVariables, type SearchXataRecord, type SelectableColumn, type SelectableColumnWithObjectNotation, type SelectedPick, type SerializedString, Serializer, type SerializerResult, type SetTableSchemaError, type SetTableSchemaPathParams, type SetTableSchemaRequestBody, type SetTableSchemaVariables, SimpleCache, type SimpleCacheOptions, type SqlBatchQueryError, type SqlBatchQueryPathParams, type SqlBatchQueryRequestBody, type SqlBatchQueryVariables, type SqlQueryError, type SqlQueryPathParams, type SqlQueryRequestBody, type SqlQueryVariables, type StartMigrationError, type StartMigrationPathParams, type StartMigrationRequestBody, type StartMigrationVariables, type SummarizeTableError, type SummarizeTablePathParams, type SummarizeTableRequestBody, type SummarizeTableVariables, type TotalCount, type TransactionOperation, TransactionPlugin, type TransactionPluginResult, type TransactionResults, type UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, type UpdateClusterError, type UpdateClusterPathParams, type UpdateClusterVariables, type UpdateColumnError, type UpdateColumnPathParams, type UpdateColumnRequestBody, type UpdateColumnVariables, type UpdateDatabaseGithubSettingsError, type UpdateDatabaseGithubSettingsPathParams, type UpdateDatabaseGithubSettingsVariables, type UpdateDatabaseMetadataError, type UpdateDatabaseMetadataPathParams, type UpdateDatabaseMetadataRequestBody, type UpdateDatabaseMetadataVariables, type UpdateDatabaseSettingsError, type UpdateDatabaseSettingsPathParams, type UpdateDatabaseSettingsRequestBody, type UpdateDatabaseSettingsVariables, type UpdateMigrationRequestError, type UpdateMigrationRequestPathParams, type UpdateMigrationRequestRequestBody, type UpdateMigrationRequestVariables, type UpdateOAuthAccessTokenError, type UpdateOAuthAccessTokenPathParams, type UpdateOAuthAccessTokenRequestBody, type UpdateOAuthAccessTokenVariables, type UpdateRecordWithIDError, type UpdateRecordWithIDPathParams, type UpdateRecordWithIDQueryParams, type UpdateRecordWithIDVariables, type UpdateTableError, type UpdateTablePathParams, type UpdateTableRequestBody, type UpdateTableVariables, type UpdateTransactionOperation, type UpdateUserError, type UpdateUserVariables, type UpdateWorkspaceError, type UpdateWorkspaceMemberInviteError, type UpdateWorkspaceMemberInvitePathParams, type UpdateWorkspaceMemberInviteRequestBody, type UpdateWorkspaceMemberInviteVariables, type UpdateWorkspaceMemberRoleError, type UpdateWorkspaceMemberRolePathParams, type UpdateWorkspaceMemberRoleRequestBody, type UpdateWorkspaceMemberRoleVariables, type UpdateWorkspacePathParams, type UpdateWorkspaceSettingsError, type UpdateWorkspaceSettingsPathParams, type UpdateWorkspaceSettingsVariables, type UpdateWorkspaceVariables, type UploadDestination, type UpsertRecordWithIDError, type UpsertRecordWithIDPathParams, type UpsertRecordWithIDQueryParams, type UpsertRecordWithIDVariables, type ValueAtColumn, type VectorAskOptions, type VectorSearchTableError, type VectorSearchTablePathParams, type VectorSearchTableRequestBody, type VectorSearchTableVariables, XataApiClient, type XataApiClientOptions, XataApiPlugin, type XataArrayFile, XataError, XataFile, XataPlugin, type XataPluginOptions, type XataRecord, acceptWorkspaceMemberInvite, adaptAllTables, adaptTable, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, applyMigration, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, completeMigration, contains, copyBranch, createBranch, createBranchAsync, createCluster, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteCluster, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, dropClusterExtension, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, fileUpload, ge, getAPIKey, getAuthorizationCode, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationJobStatus, getBranchMigrationPlan, getBranchMoveStatus, getBranchSchemaHistory, getBranchStats, getCluster, getClusterMetrics, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseSettings, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationHistory, getMigrationJobStatus, getMigrationJobs, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getSchema, getSchemas, getTableColumns, getTableSchema, getTaskStatus, getTasks, getUser, getUserAPIKeys, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, getWorkspaceSettings, getWorkspacesList, grantAuthorizationCode, greaterEquals, greaterThan, greaterThanEquals, gt, gte, iContains, iPattern, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, installClusterExtension, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isValidExpandedColumn, isValidSelectableColumns, isXataRecord, le, lessEquals, lessThan, lessThanEquals, listClusterBranches, listClusterExtensions, listClusters, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, moveBranch, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, rollbackMigration, searchBranch, searchTable, serialize, setTableSchema, sqlBatchQuery, sqlQuery, startMigration, startsWith, summarizeTable, transformImage, updateBranchMetadata, updateBranchSchema, updateCluster, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateDatabaseSettings, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, updateWorkspaceSettings, upsertRecordWithID, vectorSearchTable };
|