@xata.io/client 0.0.0-alpha.vfc08a49f5b2f1e93114c76b97e7da90408e84709 → 0.0.0-alpha.vfc23fb79f4c306cca5d6635f1a27f9ba55522696
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-add-version.log +1 -1
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +52 -6
- package/dist/index.cjs +2752 -657
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2340 -261
- package/dist/index.mjs +2725 -655
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -28,6 +28,8 @@ declare abstract class XataPlugin {
|
|
28
28
|
type XataPluginOptions = ApiExtraProps & {
|
29
29
|
cache: CacheImpl;
|
30
30
|
host: HostProvider;
|
31
|
+
tables: Table[];
|
32
|
+
branch: string;
|
31
33
|
};
|
32
34
|
|
33
35
|
type AttributeDictionary = Record<string, string | number | boolean | undefined>;
|
@@ -96,6 +98,139 @@ type RequiredKeys<T> = {
|
|
96
98
|
*
|
97
99
|
* @version 1.0
|
98
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
|
+
};
|
99
234
|
/**
|
100
235
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
101
236
|
*
|
@@ -104,15 +239,156 @@ type RequiredKeys<T> = {
|
|
104
239
|
* @pattern [a-zA-Z0-9_\-~]+:[a-zA-Z0-9_\-~]+
|
105
240
|
*/
|
106
241
|
type DBBranchName = string;
|
107
|
-
type
|
242
|
+
type ApplyMigrationResponse = {
|
243
|
+
/**
|
244
|
+
* The id of the migration job
|
245
|
+
*/
|
246
|
+
jobID: string;
|
247
|
+
};
|
248
|
+
type StartMigrationResponse = {
|
249
|
+
/**
|
250
|
+
* The id of the migration job
|
251
|
+
*/
|
252
|
+
jobID: string;
|
253
|
+
};
|
254
|
+
type CompleteMigrationResponse = {
|
255
|
+
/**
|
256
|
+
* The id of the migration job
|
257
|
+
*/
|
258
|
+
jobID: string;
|
259
|
+
};
|
260
|
+
type RollbackMigrationResponse = {
|
261
|
+
/**
|
262
|
+
* The id of the migration job
|
263
|
+
*/
|
264
|
+
jobID: string;
|
265
|
+
};
|
266
|
+
/**
|
267
|
+
* @maxLength 255
|
268
|
+
* @minLength 1
|
269
|
+
* @pattern [a-zA-Z0-9_\-~]+
|
270
|
+
*/
|
271
|
+
type TableName = string;
|
272
|
+
type MigrationJobType = 'apply' | 'start' | 'complete' | 'rollback';
|
273
|
+
type MigrationJobStatus = 'pending' | 'in_progress' | 'completed' | 'failed';
|
274
|
+
/**
|
275
|
+
* The effect of a migration operation in terms of CRUD operations on the underlying schema
|
276
|
+
*/
|
277
|
+
type MigrationOperationDescription = {
|
278
|
+
/**
|
279
|
+
* A new database object created by the operation
|
280
|
+
*/
|
281
|
+
create?: {
|
282
|
+
/**
|
283
|
+
* The type of object created
|
284
|
+
*/
|
285
|
+
type: 'table' | 'column' | 'index';
|
286
|
+
/**
|
287
|
+
* The name of the object created
|
288
|
+
*/
|
289
|
+
name: string;
|
290
|
+
/**
|
291
|
+
* The name of the table on which the object is created, if applicable
|
292
|
+
*/
|
293
|
+
table?: string;
|
294
|
+
/**
|
295
|
+
* The mapping between the virtual and physical name of the new object, if applicable
|
296
|
+
*/
|
297
|
+
mapping?: Record<string, any>;
|
298
|
+
};
|
299
|
+
/**
|
300
|
+
* A database object updated by the operation
|
301
|
+
*/
|
302
|
+
update?: {
|
303
|
+
/**
|
304
|
+
* The type of updated object
|
305
|
+
*/
|
306
|
+
type: 'table' | 'column';
|
307
|
+
/**
|
308
|
+
* The name of the updated object
|
309
|
+
*/
|
310
|
+
name: string;
|
311
|
+
/**
|
312
|
+
* The name of the table on which the object is updated, if applicable
|
313
|
+
*/
|
314
|
+
table?: string;
|
315
|
+
/**
|
316
|
+
* The mapping between the virtual and physical name of the updated object, if applicable
|
317
|
+
*/
|
318
|
+
mapping?: Record<string, any>;
|
319
|
+
};
|
320
|
+
/**
|
321
|
+
* A database object renamed by the operation
|
322
|
+
*/
|
323
|
+
rename?: {
|
324
|
+
/**
|
325
|
+
* The type of the renamed object
|
326
|
+
*/
|
327
|
+
type: 'table' | 'column' | 'constraint';
|
328
|
+
/**
|
329
|
+
* The name of the table on which the object is renamed, if applicable
|
330
|
+
*/
|
331
|
+
table?: string;
|
332
|
+
/**
|
333
|
+
* The old name of the renamed object
|
334
|
+
*/
|
335
|
+
from: string;
|
336
|
+
/**
|
337
|
+
* The new name of the renamed object
|
338
|
+
*/
|
339
|
+
to: string;
|
340
|
+
};
|
341
|
+
/**
|
342
|
+
* A database object deleted by the operation
|
343
|
+
*/
|
344
|
+
['delete']?: {
|
345
|
+
/**
|
346
|
+
* The type of the deleted object
|
347
|
+
*/
|
348
|
+
type: 'table' | 'column' | 'constraint' | 'index';
|
349
|
+
/**
|
350
|
+
* The name of the deleted object
|
351
|
+
*/
|
352
|
+
name: string;
|
353
|
+
/**
|
354
|
+
* The name of the table on which the object is deleted, if applicable
|
355
|
+
*/
|
356
|
+
table: string;
|
357
|
+
};
|
358
|
+
};
|
359
|
+
/**
|
360
|
+
* @minItems 1
|
361
|
+
*/
|
362
|
+
type MigrationDescription = MigrationOperationDescription[];
|
363
|
+
type MigrationJobStatusResponse = {
|
108
364
|
/**
|
109
365
|
* The id of the migration job
|
110
366
|
*/
|
111
367
|
jobID: string;
|
368
|
+
/**
|
369
|
+
* The type of the migration job
|
370
|
+
*/
|
371
|
+
type: MigrationJobType;
|
372
|
+
/**
|
373
|
+
* The status of the migration job
|
374
|
+
*/
|
375
|
+
status: MigrationJobStatus;
|
376
|
+
/**
|
377
|
+
* The effect of any active migration on the schema
|
378
|
+
*/
|
379
|
+
description?: MigrationDescription;
|
380
|
+
/**
|
381
|
+
* The timestamp at which the migration job completed or failed
|
382
|
+
*
|
383
|
+
* @format date-time
|
384
|
+
*/
|
385
|
+
completedAt?: string;
|
386
|
+
/**
|
387
|
+
* The error message associated with the migration job
|
388
|
+
*/
|
389
|
+
error?: string;
|
112
390
|
};
|
113
|
-
type
|
114
|
-
type PgRollJobStatus = 'pending' | 'in_progress' | 'completed' | 'failed';
|
115
|
-
type PgRollJobStatusResponse = {
|
391
|
+
type MigrationJobItem = {
|
116
392
|
/**
|
117
393
|
* The id of the migration job
|
118
394
|
*/
|
@@ -120,28 +396,62 @@ type PgRollJobStatusResponse = {
|
|
120
396
|
/**
|
121
397
|
* The type of the migration job
|
122
398
|
*/
|
123
|
-
type:
|
399
|
+
type: MigrationJobType;
|
124
400
|
/**
|
125
401
|
* The status of the migration job
|
126
402
|
*/
|
127
|
-
status:
|
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;
|
128
424
|
/**
|
129
425
|
* The error message associated with the migration job
|
130
426
|
*/
|
131
427
|
error?: string;
|
132
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
|
+
};
|
133
439
|
/**
|
134
440
|
* @maxLength 255
|
135
441
|
* @minLength 1
|
136
442
|
* @pattern [a-zA-Z0-9_\-~]+
|
137
443
|
*/
|
138
|
-
type
|
139
|
-
type
|
140
|
-
type
|
444
|
+
type MigrationJobID = string;
|
445
|
+
type MigrationType = 'pgroll' | 'inferred';
|
446
|
+
type MigrationHistoryItem = {
|
141
447
|
/**
|
142
448
|
* The name of the migration
|
143
449
|
*/
|
144
450
|
name: string;
|
451
|
+
/**
|
452
|
+
* The schema in which the migration was applied
|
453
|
+
*/
|
454
|
+
schema: string;
|
145
455
|
/**
|
146
456
|
* The pgroll migration that was applied
|
147
457
|
*/
|
@@ -163,13 +473,17 @@ type PgRollMigrationHistoryItem = {
|
|
163
473
|
/**
|
164
474
|
* The type of the migration
|
165
475
|
*/
|
166
|
-
migrationType:
|
476
|
+
migrationType: MigrationType;
|
167
477
|
};
|
168
|
-
type
|
478
|
+
type MigrationHistoryResponse = {
|
169
479
|
/**
|
170
480
|
* The migrations that have been applied to the branch
|
171
481
|
*/
|
172
|
-
migrations:
|
482
|
+
migrations: MigrationHistoryItem[];
|
483
|
+
/**
|
484
|
+
* The cursor (timestamp) for the next page of results
|
485
|
+
*/
|
486
|
+
cursor?: string;
|
173
487
|
};
|
174
488
|
/**
|
175
489
|
* @maxLength 255
|
@@ -178,25 +492,29 @@ type PgRollMigrationHistoryResponse = {
|
|
178
492
|
*/
|
179
493
|
type DBName$1 = string;
|
180
494
|
/**
|
181
|
-
*
|
182
|
-
* @x-go-type string
|
495
|
+
* Represent the state of the branch, used for branch lifecycle management
|
183
496
|
*/
|
184
|
-
type
|
497
|
+
type BranchState = 'active' | 'move_scheduled' | 'moving';
|
185
498
|
type Branch = {
|
186
499
|
name: string;
|
187
500
|
/**
|
188
501
|
* The cluster where this branch resides. Value of 'shared-cluster' for branches in shared clusters
|
189
502
|
*
|
190
503
|
* @minLength 1
|
191
|
-
* @x-internal true
|
192
504
|
*/
|
193
505
|
clusterID?: string;
|
506
|
+
state: BranchState;
|
194
507
|
createdAt: DateTime$1;
|
508
|
+
searchDisabled?: boolean;
|
509
|
+
inactiveSharedCluster?: boolean;
|
195
510
|
};
|
196
511
|
type ListBranchesResponse = {
|
197
512
|
databaseName: string;
|
198
513
|
branches: Branch[];
|
199
514
|
};
|
515
|
+
type DatabaseSettings = {
|
516
|
+
searchEnabled: boolean;
|
517
|
+
};
|
200
518
|
/**
|
201
519
|
* @maxLength 255
|
202
520
|
* @minLength 1
|
@@ -219,17 +537,17 @@ type BranchMetadata$1 = {
|
|
219
537
|
stage?: string;
|
220
538
|
labels?: string[];
|
221
539
|
};
|
540
|
+
type CreateBranchResponse$1 = {
|
541
|
+
/**
|
542
|
+
* The id of the branch creation task
|
543
|
+
*/
|
544
|
+
taskID: string;
|
545
|
+
};
|
222
546
|
type StartedFromMetadata = {
|
223
547
|
branchName: BranchName$1;
|
224
548
|
dbBranchID: string;
|
225
549
|
migrationID: string;
|
226
550
|
};
|
227
|
-
/**
|
228
|
-
* @maxLength 255
|
229
|
-
* @minLength 1
|
230
|
-
* @pattern [a-zA-Z0-9_\-~]+
|
231
|
-
*/
|
232
|
-
type TableName = string;
|
233
551
|
type ColumnLink = {
|
234
552
|
table: string;
|
235
553
|
};
|
@@ -245,7 +563,7 @@ type ColumnFile = {
|
|
245
563
|
};
|
246
564
|
type Column = {
|
247
565
|
name: string;
|
248
|
-
type:
|
566
|
+
type: string;
|
249
567
|
link?: ColumnLink;
|
250
568
|
vector?: ColumnVector;
|
251
569
|
file?: ColumnFile;
|
@@ -284,12 +602,63 @@ type DBBranch = {
|
|
284
602
|
*/
|
285
603
|
clusterID?: string;
|
286
604
|
version: number;
|
605
|
+
state: BranchState;
|
287
606
|
lastMigrationID: string;
|
288
607
|
metadata?: BranchMetadata$1;
|
289
608
|
startedFrom?: StartedFromMetadata;
|
290
609
|
schema: Schema;
|
291
610
|
};
|
292
611
|
type MigrationStatus$1 = 'completed' | 'pending' | 'failed';
|
612
|
+
type BranchSchema = {
|
613
|
+
name: string;
|
614
|
+
tables: {
|
615
|
+
[key: string]: {
|
616
|
+
oid: string;
|
617
|
+
name: string;
|
618
|
+
xataCompatible: boolean;
|
619
|
+
comment: string;
|
620
|
+
columns: {
|
621
|
+
[key: string]: {
|
622
|
+
name: string;
|
623
|
+
type: string;
|
624
|
+
['default']: string | null;
|
625
|
+
nullable: boolean;
|
626
|
+
unique: boolean;
|
627
|
+
comment: string;
|
628
|
+
};
|
629
|
+
};
|
630
|
+
indexes: {
|
631
|
+
[key: string]: {
|
632
|
+
name: string;
|
633
|
+
unique: boolean;
|
634
|
+
columns: string[];
|
635
|
+
};
|
636
|
+
};
|
637
|
+
primaryKey: string[];
|
638
|
+
foreignKeys: {
|
639
|
+
[key: string]: {
|
640
|
+
name: string;
|
641
|
+
columns: string[];
|
642
|
+
referencedTable: string;
|
643
|
+
referencedColumns: string[];
|
644
|
+
};
|
645
|
+
};
|
646
|
+
checkConstraints: {
|
647
|
+
[key: string]: {
|
648
|
+
name: string;
|
649
|
+
columns: string[];
|
650
|
+
definition: string;
|
651
|
+
};
|
652
|
+
};
|
653
|
+
uniqueConstraints: {
|
654
|
+
[key: string]: {
|
655
|
+
name: string;
|
656
|
+
columns: string[];
|
657
|
+
};
|
658
|
+
};
|
659
|
+
};
|
660
|
+
};
|
661
|
+
};
|
293
662
|
type BranchWithCopyID = {
|
294
663
|
branchName: BranchName$1;
|
295
664
|
dbBranchID: string;
|
@@ -942,6 +1311,40 @@ type RecordMeta = {
|
|
942
1311
|
*/
|
943
1312
|
warnings?: string[];
|
944
1313
|
};
|
1314
|
+
} | {
|
1315
|
+
xata_id: RecordID;
|
1316
|
+
/**
|
1317
|
+
* The record's version. Can be used for optimistic concurrency control.
|
1318
|
+
*/
|
1319
|
+
xata_version: number;
|
1320
|
+
/**
|
1321
|
+
* The time when the record was created.
|
1322
|
+
*/
|
1323
|
+
xata_createdat?: string;
|
1324
|
+
/**
|
1325
|
+
* The time when the record was last updated.
|
1326
|
+
*/
|
1327
|
+
xata_updatedat?: string;
|
1328
|
+
/**
|
1329
|
+
* The record's table name. APIs that return records from multiple tables will set this field accordingly.
|
1330
|
+
*/
|
1331
|
+
xata_table?: string;
|
1332
|
+
/**
|
1333
|
+
* Highlights of the record. This is used by the search APIs to indicate which fields and parts of the fields have matched the search.
|
1334
|
+
*/
|
1335
|
+
xata_highlight?: {
|
1336
|
+
[key: string]: string[] | {
|
1337
|
+
[key: string]: any;
|
1338
|
+
};
|
1339
|
+
};
|
1340
|
+
/**
|
1341
|
+
* The record's relevancy score. This is returned by the search APIs.
|
1342
|
+
*/
|
1343
|
+
xata_score?: number;
|
1344
|
+
/**
|
1345
|
+
* Encoding/Decoding errors
|
1346
|
+
*/
|
1347
|
+
xata_warnings?: string[];
|
945
1348
|
};
|
946
1349
|
/**
|
947
1350
|
* File metadata
|
@@ -951,13 +1354,43 @@ type FileResponse = {
|
|
951
1354
|
name: FileName;
|
952
1355
|
mediaType: MediaType;
|
953
1356
|
/**
|
954
|
-
*
|
1357
|
+
* Enable public access to the file
|
1358
|
+
*/
|
1359
|
+
enablePublicUrl: boolean;
|
1360
|
+
/**
|
1361
|
+
* Time to live for signed URLs
|
1362
|
+
*/
|
1363
|
+
signedUrlTimeout: number;
|
1364
|
+
/**
|
1365
|
+
* Time to live for signed URLs
|
1366
|
+
*/
|
1367
|
+
uploadUrlTimeout: number;
|
1368
|
+
/**
|
1369
|
+
* @format int64
|
955
1370
|
*/
|
956
1371
|
size: number;
|
957
1372
|
/**
|
958
1373
|
* @format int64
|
959
1374
|
*/
|
960
1375
|
version: number;
|
1376
|
+
/**
|
1377
|
+
* File access URL
|
1378
|
+
*
|
1379
|
+
* @format uri
|
1380
|
+
*/
|
1381
|
+
url: string;
|
1382
|
+
/**
|
1383
|
+
* Signed file access URL
|
1384
|
+
*
|
1385
|
+
* @format uri
|
1386
|
+
*/
|
1387
|
+
signedUrl: string;
|
1388
|
+
/**
|
1389
|
+
* Upload file URL
|
1390
|
+
*
|
1391
|
+
* @format uri
|
1392
|
+
*/
|
1393
|
+
uploadUrl: string;
|
961
1394
|
attributes?: Record<string, any>;
|
962
1395
|
};
|
963
1396
|
type QueryColumnsProjection = (string | ProjectionConfig)[];
|
@@ -1405,6 +1838,57 @@ type FileSignature = string;
|
|
1405
1838
|
type SQLRecord = {
|
1406
1839
|
[key: string]: any;
|
1407
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;
|
1408
1892
|
/**
|
1409
1893
|
* Xata Table Record Metadata
|
1410
1894
|
*/
|
@@ -1461,6 +1945,11 @@ type RecordUpdateResponse = XataRecord$1 | {
|
|
1461
1945
|
createdAt: string;
|
1462
1946
|
updatedAt: string;
|
1463
1947
|
};
|
1948
|
+
} | {
|
1949
|
+
xata_id: string;
|
1950
|
+
xata_version: number;
|
1951
|
+
xata_createdat: string;
|
1952
|
+
xata_updatedat: string;
|
1464
1953
|
};
|
1465
1954
|
type PutFileResponse = FileResponse;
|
1466
1955
|
type RecordResponse = XataRecord$1;
|
@@ -1502,17 +1991,9 @@ type AggResponse = {
|
|
1502
1991
|
[key: string]: AggResponse$1;
|
1503
1992
|
};
|
1504
1993
|
};
|
1505
|
-
type SQLResponse =
|
1506
|
-
|
1507
|
-
|
1508
|
-
* Name of the column and its PostgreSQL type
|
1509
|
-
*/
|
1510
|
-
columns?: Record<string, any>;
|
1511
|
-
/**
|
1512
|
-
* Number of selected columns
|
1513
|
-
*/
|
1514
|
-
total?: number;
|
1515
|
-
warning?: string;
|
1994
|
+
type SQLResponse = SQLResponse$1;
|
1995
|
+
type SQLBatchResponse = {
|
1996
|
+
results: SQLResponse$1[];
|
1516
1997
|
};
|
1517
1998
|
|
1518
1999
|
/**
|
@@ -1608,6 +2089,9 @@ type Workspace = WorkspaceMeta & {
|
|
1608
2089
|
memberCount: number;
|
1609
2090
|
plan: WorkspacePlan;
|
1610
2091
|
};
|
2092
|
+
type WorkspaceSettings = {
|
2093
|
+
dedicatedClusters: boolean;
|
2094
|
+
};
|
1611
2095
|
type WorkspaceMember = {
|
1612
2096
|
userId: UserID;
|
1613
2097
|
fullname: string;
|
@@ -1674,6 +2158,8 @@ type ClusterShortMetadata = {
|
|
1674
2158
|
* @format int64
|
1675
2159
|
*/
|
1676
2160
|
branches: number;
|
2161
|
+
createdAt: DateTime;
|
2162
|
+
terminatedAt?: DateTime;
|
1677
2163
|
};
|
1678
2164
|
/**
|
1679
2165
|
* @x-internal true
|
@@ -1761,22 +2247,57 @@ type MaintenanceConfig = {
|
|
1761
2247
|
maintenanceWindow?: WeeklyTimeWindow;
|
1762
2248
|
backupWindow?: DailyTimeWindow;
|
1763
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
|
+
};
|
1764
2273
|
/**
|
1765
2274
|
* @x-internal true
|
1766
2275
|
*/
|
1767
2276
|
type ClusterConfiguration = {
|
1768
2277
|
engineVersion: string;
|
2278
|
+
/**
|
2279
|
+
* @default aurora
|
2280
|
+
*/
|
2281
|
+
engineType?: 'aurora' | 'rds';
|
1769
2282
|
instanceType: string;
|
1770
2283
|
/**
|
1771
2284
|
* @format int64
|
1772
2285
|
*/
|
1773
2286
|
replicas?: number;
|
2287
|
+
/**
|
2288
|
+
* @format int64
|
2289
|
+
* @default 1
|
2290
|
+
* @maximum 3
|
2291
|
+
* @minimum 1
|
2292
|
+
*/
|
2293
|
+
instanceCount?: number;
|
1774
2294
|
/**
|
1775
2295
|
* @default false
|
1776
2296
|
*/
|
1777
2297
|
deletionProtection?: boolean;
|
1778
2298
|
autoscaling?: AutoscalingConfig;
|
1779
2299
|
maintenance?: MaintenanceConfig;
|
2300
|
+
storage?: StorageConfig;
|
1780
2301
|
};
|
1781
2302
|
/**
|
1782
2303
|
* @x-internal true
|
@@ -1789,7 +2310,7 @@ type ClusterCreateDetails = {
|
|
1789
2310
|
/**
|
1790
2311
|
* @maxLength 63
|
1791
2312
|
* @minLength 1
|
1792
|
-
* @pattern [a-
|
2313
|
+
* @pattern [a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*
|
1793
2314
|
*/
|
1794
2315
|
name: string;
|
1795
2316
|
configuration: ClusterConfiguration;
|
@@ -1801,6 +2322,82 @@ type ClusterResponse = {
|
|
1801
2322
|
state: string;
|
1802
2323
|
clusterID: string;
|
1803
2324
|
};
|
2325
|
+
/**
|
2326
|
+
* @x-internal true
|
2327
|
+
*/
|
2328
|
+
type AutoscalingConfigResponse = {
|
2329
|
+
/**
|
2330
|
+
* @format double
|
2331
|
+
* @default 0.5
|
2332
|
+
*/
|
2333
|
+
minCapacity: number;
|
2334
|
+
/**
|
2335
|
+
* @format double
|
2336
|
+
* @default 4
|
2337
|
+
*/
|
2338
|
+
maxCapacity: number;
|
2339
|
+
};
|
2340
|
+
/**
|
2341
|
+
* @x-internal true
|
2342
|
+
*/
|
2343
|
+
type MaintenanceConfigResponse = {
|
2344
|
+
/**
|
2345
|
+
* @default false
|
2346
|
+
*/
|
2347
|
+
autoMinorVersionUpgrade: boolean;
|
2348
|
+
/**
|
2349
|
+
* @default false
|
2350
|
+
*/
|
2351
|
+
applyImmediately: boolean;
|
2352
|
+
maintenanceWindow: WeeklyTimeWindow;
|
2353
|
+
backupWindow: DailyTimeWindow;
|
2354
|
+
};
|
2355
|
+
/**
|
2356
|
+
* @x-internal true
|
2357
|
+
*/
|
2358
|
+
type StorageConfigResponse = {
|
2359
|
+
/**
|
2360
|
+
* @default gp3
|
2361
|
+
*/
|
2362
|
+
storageType: 'gp3' | 'io1' | 'io2';
|
2363
|
+
/**
|
2364
|
+
* @format int64
|
2365
|
+
* @default 50
|
2366
|
+
* @maximum 65536
|
2367
|
+
* @minimum 20
|
2368
|
+
*/
|
2369
|
+
allocatedStorageGB?: number;
|
2370
|
+
/**
|
2371
|
+
* @format int64
|
2372
|
+
* @default 3000
|
2373
|
+
* @maximum 256000
|
2374
|
+
* @minimum 1000
|
2375
|
+
*/
|
2376
|
+
provisionedIOPS?: number;
|
2377
|
+
};
|
2378
|
+
/**
|
2379
|
+
* @x-internal true
|
2380
|
+
*/
|
2381
|
+
type ClusterConfigurationResponse = {
|
2382
|
+
engineVersion: string;
|
2383
|
+
engineType: 'aurora' | 'rds';
|
2384
|
+
instanceType: string;
|
2385
|
+
/**
|
2386
|
+
* @format int64
|
2387
|
+
*/
|
2388
|
+
replicas: number;
|
2389
|
+
/**
|
2390
|
+
* @format int64
|
2391
|
+
*/
|
2392
|
+
instanceCount: number;
|
2393
|
+
/**
|
2394
|
+
* @default false
|
2395
|
+
*/
|
2396
|
+
deletionProtection: boolean;
|
2397
|
+
autoscaling?: AutoscalingConfigResponse;
|
2398
|
+
maintenance: MaintenanceConfigResponse;
|
2399
|
+
storage?: StorageConfigResponse;
|
2400
|
+
};
|
1804
2401
|
/**
|
1805
2402
|
* @x-internal true
|
1806
2403
|
*/
|
@@ -1813,22 +2410,36 @@ type ClusterMetadata = {
|
|
1813
2410
|
* @format int64
|
1814
2411
|
*/
|
1815
2412
|
branches: number;
|
1816
|
-
configuration
|
2413
|
+
configuration: ClusterConfigurationResponse;
|
1817
2414
|
};
|
1818
2415
|
/**
|
1819
2416
|
* @x-internal true
|
1820
2417
|
*/
|
1821
|
-
type
|
2418
|
+
type ClusterDeleteMetadata = {
|
1822
2419
|
id: ClusterID;
|
2420
|
+
state: string;
|
2421
|
+
region: string;
|
2422
|
+
name: string;
|
1823
2423
|
/**
|
1824
|
-
* @
|
1825
|
-
* @minLength 1
|
1826
|
-
* @pattern [a-zA-Z0-9_-~:]+
|
2424
|
+
* @format int64
|
1827
2425
|
*/
|
1828
|
-
|
1829
|
-
|
1830
|
-
|
1831
|
-
|
2426
|
+
branches: number;
|
2427
|
+
};
|
2428
|
+
/**
|
2429
|
+
* @x-internal true
|
2430
|
+
*/
|
2431
|
+
type ClusterUpdateDetails = {
|
2432
|
+
/**
|
2433
|
+
* @pattern ^[Ss][Tt][Oo][Pp]|[Ss][Tt][Aa][Rr][Tt]$
|
2434
|
+
*/
|
2435
|
+
command: string;
|
2436
|
+
};
|
2437
|
+
/**
|
2438
|
+
* @x-internal true
|
2439
|
+
*/
|
2440
|
+
type ClusterUpdateMetadata = {
|
2441
|
+
id: ClusterID;
|
2442
|
+
state: string;
|
1832
2443
|
};
|
1833
2444
|
/**
|
1834
2445
|
* Metadata of databases
|
@@ -1851,9 +2462,13 @@ type DatabaseMetadata = {
|
|
1851
2462
|
*/
|
1852
2463
|
newMigrations?: boolean;
|
1853
2464
|
/**
|
1854
|
-
*
|
2465
|
+
* The default cluster ID where branches from this database reside. Value of 'shared-cluster' for branches in shared clusters.
|
1855
2466
|
*/
|
1856
2467
|
defaultClusterID?: string;
|
2468
|
+
/**
|
2469
|
+
* The database is accessible via the Postgres protocol
|
2470
|
+
*/
|
2471
|
+
postgresEnabled?: boolean;
|
1857
2472
|
/**
|
1858
2473
|
* Metadata about the database for display in Xata user interfaces
|
1859
2474
|
*/
|
@@ -2287,6 +2902,7 @@ type GetWorkspacesListError = ErrorWrapper$1<{
|
|
2287
2902
|
type GetWorkspacesListResponse = {
|
2288
2903
|
workspaces: {
|
2289
2904
|
id: WorkspaceID;
|
2905
|
+
unique_id: string;
|
2290
2906
|
name: string;
|
2291
2907
|
slug: string;
|
2292
2908
|
role: Role;
|
@@ -2394,6 +3010,59 @@ type DeleteWorkspaceVariables = {
|
|
2394
3010
|
* Delete the workspace with the provided ID
|
2395
3011
|
*/
|
2396
3012
|
declare const deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal) => Promise<undefined>;
|
3013
|
+
type GetWorkspaceSettingsPathParams = {
|
3014
|
+
/**
|
3015
|
+
* Workspace ID
|
3016
|
+
*/
|
3017
|
+
workspaceId: WorkspaceID;
|
3018
|
+
};
|
3019
|
+
type GetWorkspaceSettingsError = ErrorWrapper$1<{
|
3020
|
+
status: 400;
|
3021
|
+
payload: BadRequestError;
|
3022
|
+
} | {
|
3023
|
+
status: 401;
|
3024
|
+
payload: AuthError;
|
3025
|
+
} | {
|
3026
|
+
status: 403;
|
3027
|
+
payload: AuthError;
|
3028
|
+
} | {
|
3029
|
+
status: 404;
|
3030
|
+
payload: SimpleError;
|
3031
|
+
}>;
|
3032
|
+
type GetWorkspaceSettingsVariables = {
|
3033
|
+
pathParams: GetWorkspaceSettingsPathParams;
|
3034
|
+
} & ControlPlaneFetcherExtraProps;
|
3035
|
+
/**
|
3036
|
+
* Retrieve workspace settings from a workspace ID
|
3037
|
+
*/
|
3038
|
+
declare const getWorkspaceSettings: (variables: GetWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
|
3039
|
+
type UpdateWorkspaceSettingsPathParams = {
|
3040
|
+
/**
|
3041
|
+
* Workspace ID
|
3042
|
+
*/
|
3043
|
+
workspaceId: WorkspaceID;
|
3044
|
+
};
|
3045
|
+
type UpdateWorkspaceSettingsError = ErrorWrapper$1<{
|
3046
|
+
status: 400;
|
3047
|
+
payload: BadRequestError;
|
3048
|
+
} | {
|
3049
|
+
status: 401;
|
3050
|
+
payload: AuthError;
|
3051
|
+
} | {
|
3052
|
+
status: 403;
|
3053
|
+
payload: AuthError;
|
3054
|
+
} | {
|
3055
|
+
status: 404;
|
3056
|
+
payload: SimpleError;
|
3057
|
+
}>;
|
3058
|
+
type UpdateWorkspaceSettingsVariables = {
|
3059
|
+
body?: Record<string, any>;
|
3060
|
+
pathParams: UpdateWorkspaceSettingsPathParams;
|
3061
|
+
} & ControlPlaneFetcherExtraProps;
|
3062
|
+
/**
|
3063
|
+
* Update workspace settings
|
3064
|
+
*/
|
3065
|
+
declare const updateWorkspaceSettings: (variables: UpdateWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
|
2397
3066
|
type GetWorkspaceMembersListPathParams = {
|
2398
3067
|
/**
|
2399
3068
|
* Workspace ID
|
@@ -2751,7 +3420,31 @@ type UpdateClusterVariables = {
|
|
2751
3420
|
/**
|
2752
3421
|
* Update cluster for given cluster ID
|
2753
3422
|
*/
|
2754
|
-
declare const updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<
|
3423
|
+
declare const updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterUpdateMetadata>;
|
3424
|
+
type DeleteClusterPathParams = {
|
3425
|
+
/**
|
3426
|
+
* Workspace ID
|
3427
|
+
*/
|
3428
|
+
workspaceId: WorkspaceID;
|
3429
|
+
/**
|
3430
|
+
* Cluster ID
|
3431
|
+
*/
|
3432
|
+
clusterId: ClusterID;
|
3433
|
+
};
|
3434
|
+
type DeleteClusterError = ErrorWrapper$1<{
|
3435
|
+
status: 400;
|
3436
|
+
payload: BadRequestError;
|
3437
|
+
} | {
|
3438
|
+
status: 401;
|
3439
|
+
payload: AuthError;
|
3440
|
+
}>;
|
3441
|
+
type DeleteClusterVariables = {
|
3442
|
+
pathParams: DeleteClusterPathParams;
|
3443
|
+
} & ControlPlaneFetcherExtraProps;
|
3444
|
+
/**
|
3445
|
+
* Delete cluster with given cluster ID
|
3446
|
+
*/
|
3447
|
+
declare const deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal) => Promise<ClusterDeleteMetadata>;
|
2755
3448
|
type GetDatabaseListPathParams = {
|
2756
3449
|
/**
|
2757
3450
|
* Workspace ID
|
@@ -2812,6 +3505,12 @@ type CreateDatabaseRequestBody = {
|
|
2812
3505
|
* @minLength 1
|
2813
3506
|
*/
|
2814
3507
|
region: string;
|
3508
|
+
/**
|
3509
|
+
* Enable postgres access for this database
|
3510
|
+
*
|
3511
|
+
* @default false
|
3512
|
+
*/
|
3513
|
+
postgresEnabled?: boolean;
|
2815
3514
|
/**
|
2816
3515
|
* The dedicated cluster where branches from this database will be created. Defaults to 'shared-cluster'.
|
2817
3516
|
*
|
@@ -3099,16 +3798,380 @@ type ErrorWrapper<TError> = TError | {
|
|
3099
3798
|
*
|
3100
3799
|
* @version 1.0
|
3101
3800
|
*/
|
3102
|
-
|
3103
|
-
type
|
3801
|
+
|
3802
|
+
type GetTasksPathParams = {
|
3803
|
+
workspace: string;
|
3804
|
+
region: string;
|
3805
|
+
};
|
3806
|
+
type GetTasksError = ErrorWrapper<{
|
3807
|
+
status: 400;
|
3808
|
+
payload: BadRequestError$1;
|
3809
|
+
} | {
|
3810
|
+
status: 401;
|
3811
|
+
payload: AuthError$1;
|
3812
|
+
} | {
|
3813
|
+
status: 404;
|
3814
|
+
payload: SimpleError$1;
|
3815
|
+
}>;
|
3816
|
+
type GetTasksResponse = TaskStatusResponse[];
|
3817
|
+
type GetTasksVariables = {
|
3818
|
+
pathParams: GetTasksPathParams;
|
3819
|
+
} & DataPlaneFetcherExtraProps;
|
3820
|
+
declare const getTasks: (variables: GetTasksVariables, signal?: AbortSignal) => Promise<GetTasksResponse>;
|
3821
|
+
type GetTaskStatusPathParams = {
|
3822
|
+
/**
|
3823
|
+
* The id of the branch creation task
|
3824
|
+
*/
|
3825
|
+
taskId: TaskID;
|
3826
|
+
workspace: string;
|
3827
|
+
region: string;
|
3828
|
+
};
|
3829
|
+
type GetTaskStatusError = ErrorWrapper<{
|
3830
|
+
status: 400;
|
3831
|
+
payload: BadRequestError$1;
|
3832
|
+
} | {
|
3833
|
+
status: 401;
|
3834
|
+
payload: AuthError$1;
|
3835
|
+
} | {
|
3836
|
+
status: 404;
|
3837
|
+
payload: SimpleError$1;
|
3838
|
+
}>;
|
3839
|
+
type GetTaskStatusVariables = {
|
3840
|
+
pathParams: GetTaskStatusPathParams;
|
3841
|
+
} & DataPlaneFetcherExtraProps;
|
3842
|
+
declare const getTaskStatus: (variables: GetTaskStatusVariables, signal?: AbortSignal) => Promise<TaskStatusResponse>;
|
3843
|
+
type ListClusterBranchesPathParams = {
|
3844
|
+
/**
|
3845
|
+
* Cluster ID
|
3846
|
+
*/
|
3847
|
+
clusterId: ClusterID$1;
|
3848
|
+
workspace: string;
|
3849
|
+
region: string;
|
3850
|
+
};
|
3851
|
+
type ListClusterBranchesQueryParams = {
|
3852
|
+
/**
|
3853
|
+
* Page size
|
3854
|
+
*/
|
3855
|
+
page?: PageSize$1;
|
3856
|
+
/**
|
3857
|
+
* Page token
|
3858
|
+
*/
|
3859
|
+
token?: PageToken$1;
|
3860
|
+
};
|
3861
|
+
type ListClusterBranchesError = ErrorWrapper<{
|
3862
|
+
status: 400;
|
3863
|
+
payload: BadRequestError$1;
|
3864
|
+
} | {
|
3865
|
+
status: 401;
|
3866
|
+
payload: AuthError$1;
|
3867
|
+
}>;
|
3868
|
+
type ListClusterBranchesVariables = {
|
3869
|
+
pathParams: ListClusterBranchesPathParams;
|
3870
|
+
queryParams?: ListClusterBranchesQueryParams;
|
3871
|
+
} & DataPlaneFetcherExtraProps;
|
3872
|
+
/**
|
3873
|
+
* Retrieve branches for given cluster ID
|
3874
|
+
*/
|
3875
|
+
declare const listClusterBranches: (variables: ListClusterBranchesVariables, signal?: AbortSignal) => Promise<ListClusterBranchesResponse>;
|
3876
|
+
type ListClusterExtensionsPathParams = {
|
3877
|
+
/**
|
3878
|
+
* Cluster ID
|
3879
|
+
*/
|
3880
|
+
clusterId: ClusterID$1;
|
3881
|
+
workspace: string;
|
3882
|
+
region: string;
|
3883
|
+
};
|
3884
|
+
type ListClusterExtensionsQueryParams = {
|
3885
|
+
extensionType: 'available' | 'installed';
|
3886
|
+
};
|
3887
|
+
type ListClusterExtensionsError = ErrorWrapper<{
|
3888
|
+
status: 400;
|
3889
|
+
payload: BadRequestError$1;
|
3890
|
+
} | {
|
3891
|
+
status: 401;
|
3892
|
+
payload: AuthError$1;
|
3893
|
+
}>;
|
3894
|
+
type ListClusterExtensionsVariables = {
|
3895
|
+
pathParams: ListClusterExtensionsPathParams;
|
3896
|
+
queryParams: ListClusterExtensionsQueryParams;
|
3897
|
+
} & DataPlaneFetcherExtraProps;
|
3898
|
+
/**
|
3899
|
+
* Retrieve extensions for given cluster ID
|
3900
|
+
*/
|
3901
|
+
declare const listClusterExtensions: (variables: ListClusterExtensionsVariables, signal?: AbortSignal) => Promise<ListClusterExtensionsResponse>;
|
3902
|
+
type InstallClusterExtensionPathParams = {
|
3903
|
+
/**
|
3904
|
+
* Cluster ID
|
3905
|
+
*/
|
3906
|
+
clusterId: ClusterID$1;
|
3907
|
+
workspace: string;
|
3908
|
+
region: string;
|
3909
|
+
};
|
3910
|
+
type InstallClusterExtensionError = ErrorWrapper<{
|
3911
|
+
status: 400;
|
3912
|
+
payload: BadRequestError$1;
|
3913
|
+
} | {
|
3914
|
+
status: 401;
|
3915
|
+
payload: AuthError$1;
|
3916
|
+
}>;
|
3917
|
+
type InstallClusterExtensionRequestBody = {
|
3918
|
+
/**
|
3919
|
+
* Extension name
|
3920
|
+
*/
|
3921
|
+
extension: string;
|
3922
|
+
/**
|
3923
|
+
* Schema name
|
3924
|
+
*/
|
3925
|
+
schema?: string;
|
3926
|
+
/**
|
3927
|
+
* install with cascade option
|
3928
|
+
*/
|
3929
|
+
cascade?: boolean;
|
3930
|
+
};
|
3931
|
+
type InstallClusterExtensionVariables = {
|
3932
|
+
body: InstallClusterExtensionRequestBody;
|
3933
|
+
pathParams: InstallClusterExtensionPathParams;
|
3934
|
+
} & DataPlaneFetcherExtraProps;
|
3935
|
+
/**
|
3936
|
+
* Install an extension for given cluster ID
|
3937
|
+
*/
|
3938
|
+
declare const installClusterExtension: (variables: InstallClusterExtensionVariables, signal?: AbortSignal) => Promise<ClusterExtensionInstallationResponse>;
|
3939
|
+
type DropClusterExtensionPathParams = {
|
3940
|
+
/**
|
3941
|
+
* Cluster ID
|
3942
|
+
*/
|
3943
|
+
clusterId: ClusterID$1;
|
3944
|
+
workspace: string;
|
3945
|
+
region: string;
|
3946
|
+
};
|
3947
|
+
type DropClusterExtensionError = ErrorWrapper<{
|
3948
|
+
status: 400;
|
3949
|
+
payload: BadRequestError$1;
|
3950
|
+
} | {
|
3951
|
+
status: 401;
|
3952
|
+
payload: AuthError$1;
|
3953
|
+
}>;
|
3954
|
+
type DropClusterExtensionRequestBody = {
|
3955
|
+
/**
|
3956
|
+
* Extension name
|
3957
|
+
*/
|
3958
|
+
extension: string;
|
3959
|
+
/**
|
3960
|
+
* drop with cascade option, true by default
|
3961
|
+
*/
|
3962
|
+
cascade?: boolean;
|
3963
|
+
};
|
3964
|
+
type DropClusterExtensionVariables = {
|
3965
|
+
body: DropClusterExtensionRequestBody;
|
3966
|
+
pathParams: DropClusterExtensionPathParams;
|
3967
|
+
} & DataPlaneFetcherExtraProps;
|
3968
|
+
/**
|
3969
|
+
* Drop an extension for given cluster ID
|
3970
|
+
*/
|
3971
|
+
declare const dropClusterExtension: (variables: DropClusterExtensionVariables, signal?: AbortSignal) => Promise<undefined>;
|
3972
|
+
type GetClusterMetricsPathParams = {
|
3973
|
+
/**
|
3974
|
+
* Cluster ID
|
3975
|
+
*/
|
3976
|
+
clusterId: ClusterID$1;
|
3977
|
+
workspace: string;
|
3978
|
+
region: string;
|
3979
|
+
};
|
3980
|
+
type GetClusterMetricsQueryParams = {
|
3981
|
+
startTime: string;
|
3982
|
+
endTime: string;
|
3983
|
+
period: '5min' | '15min' | '1hour';
|
3984
|
+
/**
|
3985
|
+
* Page size
|
3986
|
+
*/
|
3987
|
+
page?: PageSize$1;
|
3988
|
+
/**
|
3989
|
+
* Page token
|
3990
|
+
*/
|
3991
|
+
token?: PageToken$1;
|
3992
|
+
};
|
3993
|
+
type GetClusterMetricsError = ErrorWrapper<{
|
3994
|
+
status: 400;
|
3995
|
+
payload: BadRequestError$1;
|
3996
|
+
} | {
|
3997
|
+
status: 401;
|
3998
|
+
payload: AuthError$1;
|
3999
|
+
} | {
|
4000
|
+
status: 404;
|
4001
|
+
payload: SimpleError$1;
|
4002
|
+
}>;
|
4003
|
+
type GetClusterMetricsVariables = {
|
4004
|
+
pathParams: GetClusterMetricsPathParams;
|
4005
|
+
queryParams: GetClusterMetricsQueryParams;
|
4006
|
+
} & DataPlaneFetcherExtraProps;
|
4007
|
+
/**
|
4008
|
+
* retrieve a standard set of RDS cluster metrics
|
4009
|
+
*/
|
4010
|
+
declare const getClusterMetrics: (variables: GetClusterMetricsVariables, signal?: AbortSignal) => Promise<MetricsResponse>;
|
4011
|
+
type ApplyMigrationPathParams = {
|
4012
|
+
/**
|
4013
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4014
|
+
*/
|
4015
|
+
dbBranchName: DBBranchName;
|
4016
|
+
workspace: string;
|
4017
|
+
region: string;
|
4018
|
+
};
|
4019
|
+
type ApplyMigrationError = ErrorWrapper<{
|
4020
|
+
status: 400;
|
4021
|
+
payload: BadRequestError$1;
|
4022
|
+
} | {
|
4023
|
+
status: 401;
|
4024
|
+
payload: AuthError$1;
|
4025
|
+
} | {
|
4026
|
+
status: 404;
|
4027
|
+
payload: SimpleError$1;
|
4028
|
+
}>;
|
4029
|
+
type ApplyMigrationRequestBody = {
|
4030
|
+
/**
|
4031
|
+
* Migration name
|
4032
|
+
*/
|
4033
|
+
name?: string;
|
4034
|
+
operations: {
|
4035
|
+
[key: string]: any;
|
4036
|
+
}[];
|
4037
|
+
/**
|
4038
|
+
* The schema in which the migration should be applied
|
4039
|
+
*
|
4040
|
+
* @default public
|
4041
|
+
*/
|
4042
|
+
schema?: string;
|
4043
|
+
adaptTables?: boolean;
|
4044
|
+
};
|
4045
|
+
type ApplyMigrationVariables = {
|
4046
|
+
body: ApplyMigrationRequestBody;
|
4047
|
+
pathParams: ApplyMigrationPathParams;
|
4048
|
+
} & DataPlaneFetcherExtraProps;
|
4049
|
+
/**
|
4050
|
+
* Applies a pgroll migration to the specified database.
|
4051
|
+
*/
|
4052
|
+
declare const applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
4053
|
+
type StartMigrationPathParams = {
|
4054
|
+
/**
|
4055
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4056
|
+
*/
|
4057
|
+
dbBranchName: DBBranchName;
|
4058
|
+
workspace: string;
|
4059
|
+
region: string;
|
4060
|
+
};
|
4061
|
+
type StartMigrationError = ErrorWrapper<{
|
4062
|
+
status: 400;
|
4063
|
+
payload: BadRequestError$1;
|
4064
|
+
} | {
|
4065
|
+
status: 401;
|
4066
|
+
payload: AuthError$1;
|
4067
|
+
} | {
|
4068
|
+
status: 404;
|
4069
|
+
payload: SimpleError$1;
|
4070
|
+
}>;
|
4071
|
+
type StartMigrationRequestBody = {
|
4072
|
+
/**
|
4073
|
+
* Migration name
|
4074
|
+
*/
|
4075
|
+
name?: string;
|
4076
|
+
operations: {
|
4077
|
+
[key: string]: any;
|
4078
|
+
}[];
|
4079
|
+
/**
|
4080
|
+
* The schema in which the migration should be started
|
4081
|
+
*
|
4082
|
+
* @default public
|
4083
|
+
*/
|
4084
|
+
schema?: string;
|
4085
|
+
};
|
4086
|
+
type StartMigrationVariables = {
|
4087
|
+
body: StartMigrationRequestBody;
|
4088
|
+
pathParams: StartMigrationPathParams;
|
4089
|
+
} & DataPlaneFetcherExtraProps;
|
4090
|
+
/**
|
4091
|
+
* Starts a pgroll migration on the specified database.
|
4092
|
+
*/
|
4093
|
+
declare const startMigration: (variables: StartMigrationVariables, signal?: AbortSignal) => Promise<StartMigrationResponse>;
|
4094
|
+
type CompleteMigrationPathParams = {
|
4095
|
+
/**
|
4096
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4097
|
+
*/
|
4098
|
+
dbBranchName: DBBranchName;
|
4099
|
+
workspace: string;
|
4100
|
+
region: string;
|
4101
|
+
};
|
4102
|
+
type CompleteMigrationError = ErrorWrapper<{
|
4103
|
+
status: 400;
|
4104
|
+
payload: BadRequestError$1;
|
4105
|
+
} | {
|
4106
|
+
status: 401;
|
4107
|
+
payload: AuthError$1;
|
4108
|
+
} | {
|
4109
|
+
status: 404;
|
4110
|
+
payload: SimpleError$1;
|
4111
|
+
}>;
|
4112
|
+
type CompleteMigrationRequestBody = {
|
4113
|
+
/**
|
4114
|
+
* The schema in which the migration should be completed
|
4115
|
+
*
|
4116
|
+
* @default public
|
4117
|
+
*/
|
4118
|
+
schema?: string;
|
4119
|
+
};
|
4120
|
+
type CompleteMigrationVariables = {
|
4121
|
+
body?: CompleteMigrationRequestBody;
|
4122
|
+
pathParams: CompleteMigrationPathParams;
|
4123
|
+
} & DataPlaneFetcherExtraProps;
|
4124
|
+
/**
|
4125
|
+
* Complete an active migration on the specified database
|
4126
|
+
*/
|
4127
|
+
declare const completeMigration: (variables: CompleteMigrationVariables, signal?: AbortSignal) => Promise<CompleteMigrationResponse>;
|
4128
|
+
type RollbackMigrationPathParams = {
|
4129
|
+
/**
|
4130
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4131
|
+
*/
|
4132
|
+
dbBranchName: DBBranchName;
|
4133
|
+
workspace: string;
|
4134
|
+
region: string;
|
4135
|
+
};
|
4136
|
+
type RollbackMigrationError = ErrorWrapper<{
|
4137
|
+
status: 400;
|
4138
|
+
payload: BadRequestError$1;
|
4139
|
+
} | {
|
4140
|
+
status: 401;
|
4141
|
+
payload: AuthError$1;
|
4142
|
+
} | {
|
4143
|
+
status: 404;
|
4144
|
+
payload: SimpleError$1;
|
4145
|
+
}>;
|
4146
|
+
type RollbackMigrationRequestBody = {
|
4147
|
+
/**
|
4148
|
+
* The schema in which the migration should be rolled back
|
4149
|
+
*
|
4150
|
+
* @default public
|
4151
|
+
*/
|
4152
|
+
schema?: string;
|
4153
|
+
};
|
4154
|
+
type RollbackMigrationVariables = {
|
4155
|
+
body?: RollbackMigrationRequestBody;
|
4156
|
+
pathParams: RollbackMigrationPathParams;
|
4157
|
+
} & DataPlaneFetcherExtraProps;
|
4158
|
+
/**
|
4159
|
+
* Roll back an active migration on the specified database
|
4160
|
+
*/
|
4161
|
+
declare const rollbackMigration: (variables: RollbackMigrationVariables, signal?: AbortSignal) => Promise<RollbackMigrationResponse>;
|
4162
|
+
type AdaptTablePathParams = {
|
3104
4163
|
/**
|
3105
4164
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3106
4165
|
*/
|
3107
4166
|
dbBranchName: DBBranchName;
|
4167
|
+
/**
|
4168
|
+
* The Table name
|
4169
|
+
*/
|
4170
|
+
tableName: TableName;
|
3108
4171
|
workspace: string;
|
3109
4172
|
region: string;
|
3110
4173
|
};
|
3111
|
-
type
|
4174
|
+
type AdaptTableError = ErrorWrapper<{
|
3112
4175
|
status: 400;
|
3113
4176
|
payload: BadRequestError$1;
|
3114
4177
|
} | {
|
@@ -3118,24 +4181,61 @@ type ApplyMigrationError = ErrorWrapper<{
|
|
3118
4181
|
status: 404;
|
3119
4182
|
payload: SimpleError$1;
|
3120
4183
|
}>;
|
3121
|
-
type
|
4184
|
+
type AdaptTableVariables = {
|
4185
|
+
pathParams: AdaptTablePathParams;
|
4186
|
+
} & DataPlaneFetcherExtraProps;
|
4187
|
+
/**
|
4188
|
+
* Adapt a table to be used from Xata, this will add the Xata metadata fields to the table, making it accessible through the data API.
|
4189
|
+
*/
|
4190
|
+
declare const adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
4191
|
+
type AdaptAllTablesPathParams = {
|
3122
4192
|
/**
|
3123
|
-
*
|
4193
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3124
4194
|
*/
|
3125
|
-
|
3126
|
-
|
3127
|
-
|
3128
|
-
}[];
|
4195
|
+
dbBranchName: DBBranchName;
|
4196
|
+
workspace: string;
|
4197
|
+
region: string;
|
3129
4198
|
};
|
3130
|
-
type
|
3131
|
-
|
3132
|
-
|
4199
|
+
type AdaptAllTablesError = ErrorWrapper<{
|
4200
|
+
status: 400;
|
4201
|
+
payload: BadRequestError$1;
|
4202
|
+
} | {
|
4203
|
+
status: 401;
|
4204
|
+
payload: AuthError$1;
|
4205
|
+
} | {
|
4206
|
+
status: 404;
|
4207
|
+
payload: SimpleError$1;
|
4208
|
+
}>;
|
4209
|
+
type AdaptAllTablesVariables = {
|
4210
|
+
pathParams: AdaptAllTablesPathParams;
|
3133
4211
|
} & DataPlaneFetcherExtraProps;
|
3134
4212
|
/**
|
3135
|
-
*
|
4213
|
+
* Adapt all xata incompatible tables present in the branch, this will add the Xata metadata fields to the table, making them accessible through the data API.
|
3136
4214
|
*/
|
3137
|
-
declare const
|
3138
|
-
type
|
4215
|
+
declare const adaptAllTables: (variables: AdaptAllTablesVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
4216
|
+
type GetBranchMigrationJobStatusPathParams = {
|
4217
|
+
/**
|
4218
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4219
|
+
*/
|
4220
|
+
dbBranchName: DBBranchName;
|
4221
|
+
workspace: string;
|
4222
|
+
region: string;
|
4223
|
+
};
|
4224
|
+
type GetBranchMigrationJobStatusError = ErrorWrapper<{
|
4225
|
+
status: 400;
|
4226
|
+
payload: BadRequestError$1;
|
4227
|
+
} | {
|
4228
|
+
status: 401;
|
4229
|
+
payload: AuthError$1;
|
4230
|
+
} | {
|
4231
|
+
status: 404;
|
4232
|
+
payload: SimpleError$1;
|
4233
|
+
}>;
|
4234
|
+
type GetBranchMigrationJobStatusVariables = {
|
4235
|
+
pathParams: GetBranchMigrationJobStatusPathParams;
|
4236
|
+
} & DataPlaneFetcherExtraProps;
|
4237
|
+
declare const getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
4238
|
+
type GetMigrationJobsPathParams = {
|
3139
4239
|
/**
|
3140
4240
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3141
4241
|
*/
|
@@ -3143,7 +4243,17 @@ type PgRollStatusPathParams = {
|
|
3143
4243
|
workspace: string;
|
3144
4244
|
region: string;
|
3145
4245
|
};
|
3146
|
-
type
|
4246
|
+
type GetMigrationJobsQueryParams = {
|
4247
|
+
/**
|
4248
|
+
* @format date-time
|
4249
|
+
*/
|
4250
|
+
cursor?: string;
|
4251
|
+
/**
|
4252
|
+
* Page size
|
4253
|
+
*/
|
4254
|
+
limit?: PageSize$1;
|
4255
|
+
};
|
4256
|
+
type GetMigrationJobsError = ErrorWrapper<{
|
3147
4257
|
status: 400;
|
3148
4258
|
payload: BadRequestError$1;
|
3149
4259
|
} | {
|
@@ -3153,11 +4263,12 @@ type PgRollStatusError = ErrorWrapper<{
|
|
3153
4263
|
status: 404;
|
3154
4264
|
payload: SimpleError$1;
|
3155
4265
|
}>;
|
3156
|
-
type
|
3157
|
-
pathParams:
|
4266
|
+
type GetMigrationJobsVariables = {
|
4267
|
+
pathParams: GetMigrationJobsPathParams;
|
4268
|
+
queryParams?: GetMigrationJobsQueryParams;
|
3158
4269
|
} & DataPlaneFetcherExtraProps;
|
3159
|
-
declare const
|
3160
|
-
type
|
4270
|
+
declare const getMigrationJobs: (variables: GetMigrationJobsVariables, signal?: AbortSignal) => Promise<GetMigrationJobsResponse>;
|
4271
|
+
type GetMigrationJobStatusPathParams = {
|
3161
4272
|
/**
|
3162
4273
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3163
4274
|
*/
|
@@ -3165,11 +4276,11 @@ type PgRollJobStatusPathParams = {
|
|
3165
4276
|
/**
|
3166
4277
|
* The id of the migration job
|
3167
4278
|
*/
|
3168
|
-
jobId:
|
4279
|
+
jobId: MigrationJobID;
|
3169
4280
|
workspace: string;
|
3170
4281
|
region: string;
|
3171
4282
|
};
|
3172
|
-
type
|
4283
|
+
type GetMigrationJobStatusError = ErrorWrapper<{
|
3173
4284
|
status: 400;
|
3174
4285
|
payload: BadRequestError$1;
|
3175
4286
|
} | {
|
@@ -3179,11 +4290,11 @@ type PgRollJobStatusError = ErrorWrapper<{
|
|
3179
4290
|
status: 404;
|
3180
4291
|
payload: SimpleError$1;
|
3181
4292
|
}>;
|
3182
|
-
type
|
3183
|
-
pathParams:
|
4293
|
+
type GetMigrationJobStatusVariables = {
|
4294
|
+
pathParams: GetMigrationJobStatusPathParams;
|
3184
4295
|
} & DataPlaneFetcherExtraProps;
|
3185
|
-
declare const
|
3186
|
-
type
|
4296
|
+
declare const getMigrationJobStatus: (variables: GetMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
4297
|
+
type GetMigrationHistoryPathParams = {
|
3187
4298
|
/**
|
3188
4299
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3189
4300
|
*/
|
@@ -3191,7 +4302,17 @@ type PgRollMigrationHistoryPathParams = {
|
|
3191
4302
|
workspace: string;
|
3192
4303
|
region: string;
|
3193
4304
|
};
|
3194
|
-
type
|
4305
|
+
type GetMigrationHistoryQueryParams = {
|
4306
|
+
/**
|
4307
|
+
* @format date-time
|
4308
|
+
*/
|
4309
|
+
cursor?: string;
|
4310
|
+
/**
|
4311
|
+
* Page size
|
4312
|
+
*/
|
4313
|
+
limit?: PageSize$1;
|
4314
|
+
};
|
4315
|
+
type GetMigrationHistoryError = ErrorWrapper<{
|
3195
4316
|
status: 400;
|
3196
4317
|
payload: BadRequestError$1;
|
3197
4318
|
} | {
|
@@ -3201,10 +4322,11 @@ type PgRollMigrationHistoryError = ErrorWrapper<{
|
|
3201
4322
|
status: 404;
|
3202
4323
|
payload: SimpleError$1;
|
3203
4324
|
}>;
|
3204
|
-
type
|
3205
|
-
pathParams:
|
4325
|
+
type GetMigrationHistoryVariables = {
|
4326
|
+
pathParams: GetMigrationHistoryPathParams;
|
4327
|
+
queryParams?: GetMigrationHistoryQueryParams;
|
3206
4328
|
} & DataPlaneFetcherExtraProps;
|
3207
|
-
declare const
|
4329
|
+
declare const getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal) => Promise<MigrationHistoryResponse>;
|
3208
4330
|
type GetBranchListPathParams = {
|
3209
4331
|
/**
|
3210
4332
|
* The Database Name
|
@@ -3230,6 +4352,107 @@ type GetBranchListVariables = {
|
|
3230
4352
|
* List all available Branches
|
3231
4353
|
*/
|
3232
4354
|
declare const getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal) => Promise<ListBranchesResponse>;
|
4355
|
+
type GetDatabaseSettingsPathParams = {
|
4356
|
+
/**
|
4357
|
+
* The Database Name
|
4358
|
+
*/
|
4359
|
+
dbName: DBName$1;
|
4360
|
+
workspace: string;
|
4361
|
+
region: string;
|
4362
|
+
};
|
4363
|
+
type GetDatabaseSettingsError = ErrorWrapper<{
|
4364
|
+
status: 400;
|
4365
|
+
payload: SimpleError$1;
|
4366
|
+
} | {
|
4367
|
+
status: 401;
|
4368
|
+
payload: AuthError$1;
|
4369
|
+
} | {
|
4370
|
+
status: 404;
|
4371
|
+
payload: SimpleError$1;
|
4372
|
+
}>;
|
4373
|
+
type GetDatabaseSettingsVariables = {
|
4374
|
+
pathParams: GetDatabaseSettingsPathParams;
|
4375
|
+
} & DataPlaneFetcherExtraProps;
|
4376
|
+
/**
|
4377
|
+
* Get database settings
|
4378
|
+
*/
|
4379
|
+
declare const getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
4380
|
+
type UpdateDatabaseSettingsPathParams = {
|
4381
|
+
/**
|
4382
|
+
* The Database Name
|
4383
|
+
*/
|
4384
|
+
dbName: DBName$1;
|
4385
|
+
workspace: string;
|
4386
|
+
region: string;
|
4387
|
+
};
|
4388
|
+
type UpdateDatabaseSettingsError = ErrorWrapper<{
|
4389
|
+
status: 400;
|
4390
|
+
payload: SimpleError$1;
|
4391
|
+
} | {
|
4392
|
+
status: 401;
|
4393
|
+
payload: AuthError$1;
|
4394
|
+
} | {
|
4395
|
+
status: 404;
|
4396
|
+
payload: SimpleError$1;
|
4397
|
+
}>;
|
4398
|
+
type UpdateDatabaseSettingsRequestBody = {
|
4399
|
+
searchEnabled?: boolean;
|
4400
|
+
};
|
4401
|
+
type UpdateDatabaseSettingsVariables = {
|
4402
|
+
body?: UpdateDatabaseSettingsRequestBody;
|
4403
|
+
pathParams: UpdateDatabaseSettingsPathParams;
|
4404
|
+
} & DataPlaneFetcherExtraProps;
|
4405
|
+
/**
|
4406
|
+
* Update database settings, this endpoint can be used to disable search
|
4407
|
+
*/
|
4408
|
+
declare const updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
4409
|
+
type CreateBranchAsyncPathParams = {
|
4410
|
+
/**
|
4411
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4412
|
+
*/
|
4413
|
+
dbBranchName: DBBranchName;
|
4414
|
+
workspace: string;
|
4415
|
+
region: string;
|
4416
|
+
};
|
4417
|
+
type CreateBranchAsyncQueryParams = {
|
4418
|
+
/**
|
4419
|
+
* Name of source branch to branch the new schema from
|
4420
|
+
*/
|
4421
|
+
from?: string;
|
4422
|
+
};
|
4423
|
+
type CreateBranchAsyncError = ErrorWrapper<{
|
4424
|
+
status: 400;
|
4425
|
+
payload: BadRequestError$1;
|
4426
|
+
} | {
|
4427
|
+
status: 401;
|
4428
|
+
payload: AuthError$1;
|
4429
|
+
} | {
|
4430
|
+
status: 404;
|
4431
|
+
payload: SimpleError$1;
|
4432
|
+
} | {
|
4433
|
+
status: 423;
|
4434
|
+
payload: SimpleError$1;
|
4435
|
+
}>;
|
4436
|
+
type CreateBranchAsyncRequestBody = {
|
4437
|
+
/**
|
4438
|
+
* Select the branch to fork from. Defaults to 'main'
|
4439
|
+
*/
|
4440
|
+
from?: string;
|
4441
|
+
/**
|
4442
|
+
* Select the dedicated cluster to create on. Defaults to 'xata-cloud'
|
4443
|
+
*
|
4444
|
+
* @minLength 1
|
4445
|
+
* @x-internal true
|
4446
|
+
*/
|
4447
|
+
clusterID?: string;
|
4448
|
+
metadata?: BranchMetadata$1;
|
4449
|
+
};
|
4450
|
+
type CreateBranchAsyncVariables = {
|
4451
|
+
body?: CreateBranchAsyncRequestBody;
|
4452
|
+
pathParams: CreateBranchAsyncPathParams;
|
4453
|
+
queryParams?: CreateBranchAsyncQueryParams;
|
4454
|
+
} & DataPlaneFetcherExtraProps;
|
4455
|
+
declare const createBranchAsync: (variables: CreateBranchAsyncVariables, signal?: AbortSignal) => Promise<CreateBranchResponse$1>;
|
3233
4456
|
type GetBranchDetailsPathParams = {
|
3234
4457
|
/**
|
3235
4458
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3357,12 +4580,37 @@ type GetSchemaError = ErrorWrapper<{
|
|
3357
4580
|
payload: SimpleError$1;
|
3358
4581
|
}>;
|
3359
4582
|
type GetSchemaResponse = {
|
3360
|
-
schema:
|
4583
|
+
schema: BranchSchema;
|
3361
4584
|
};
|
3362
4585
|
type GetSchemaVariables = {
|
3363
4586
|
pathParams: GetSchemaPathParams;
|
3364
4587
|
} & DataPlaneFetcherExtraProps;
|
3365
4588
|
declare const getSchema: (variables: GetSchemaVariables, signal?: AbortSignal) => Promise<GetSchemaResponse>;
|
4589
|
+
type GetSchemasPathParams = {
|
4590
|
+
/**
|
4591
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4592
|
+
*/
|
4593
|
+
dbBranchName: DBBranchName;
|
4594
|
+
workspace: string;
|
4595
|
+
region: string;
|
4596
|
+
};
|
4597
|
+
type GetSchemasError = ErrorWrapper<{
|
4598
|
+
status: 400;
|
4599
|
+
payload: BadRequestError$1;
|
4600
|
+
} | {
|
4601
|
+
status: 401;
|
4602
|
+
payload: AuthError$1;
|
4603
|
+
} | {
|
4604
|
+
status: 404;
|
4605
|
+
payload: SimpleError$1;
|
4606
|
+
}>;
|
4607
|
+
type GetSchemasResponse = {
|
4608
|
+
schemas: BranchSchema[];
|
4609
|
+
};
|
4610
|
+
type GetSchemasVariables = {
|
4611
|
+
pathParams: GetSchemasPathParams;
|
4612
|
+
} & DataPlaneFetcherExtraProps;
|
4613
|
+
declare const getSchemas: (variables: GetSchemasVariables, signal?: AbortSignal) => Promise<GetSchemasResponse>;
|
3366
4614
|
type CopyBranchPathParams = {
|
3367
4615
|
/**
|
3368
4616
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3393,6 +4641,73 @@ type CopyBranchVariables = {
|
|
3393
4641
|
* Create a copy of the branch
|
3394
4642
|
*/
|
3395
4643
|
declare const copyBranch: (variables: CopyBranchVariables, signal?: AbortSignal) => Promise<BranchWithCopyID>;
|
4644
|
+
type GetBranchMoveStatusPathParams = {
|
4645
|
+
/**
|
4646
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4647
|
+
*/
|
4648
|
+
dbBranchName: DBBranchName;
|
4649
|
+
workspace: string;
|
4650
|
+
region: string;
|
4651
|
+
};
|
4652
|
+
type GetBranchMoveStatusError = ErrorWrapper<{
|
4653
|
+
status: 400;
|
4654
|
+
payload: BadRequestError$1;
|
4655
|
+
} | {
|
4656
|
+
status: 401;
|
4657
|
+
payload: AuthError$1;
|
4658
|
+
} | {
|
4659
|
+
status: 404;
|
4660
|
+
payload: SimpleError$1;
|
4661
|
+
}>;
|
4662
|
+
type GetBranchMoveStatusResponse = {
|
4663
|
+
state: string;
|
4664
|
+
pendingBytes: number;
|
4665
|
+
};
|
4666
|
+
type GetBranchMoveStatusVariables = {
|
4667
|
+
pathParams: GetBranchMoveStatusPathParams;
|
4668
|
+
} & DataPlaneFetcherExtraProps;
|
4669
|
+
/**
|
4670
|
+
* Get the branch move status (if a move is happening)
|
4671
|
+
*/
|
4672
|
+
declare const getBranchMoveStatus: (variables: GetBranchMoveStatusVariables, signal?: AbortSignal) => Promise<GetBranchMoveStatusResponse>;
|
4673
|
+
type MoveBranchPathParams = {
|
4674
|
+
/**
|
4675
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
4676
|
+
*/
|
4677
|
+
dbBranchName: DBBranchName;
|
4678
|
+
workspace: string;
|
4679
|
+
region: string;
|
4680
|
+
};
|
4681
|
+
type MoveBranchError = ErrorWrapper<{
|
4682
|
+
status: 400;
|
4683
|
+
payload: BadRequestError$1;
|
4684
|
+
} | {
|
4685
|
+
status: 401;
|
4686
|
+
payload: AuthError$1;
|
4687
|
+
} | {
|
4688
|
+
status: 404;
|
4689
|
+
payload: SimpleError$1;
|
4690
|
+
} | {
|
4691
|
+
status: 423;
|
4692
|
+
payload: SimpleError$1;
|
4693
|
+
}>;
|
4694
|
+
type MoveBranchResponse = {
|
4695
|
+
state: string;
|
4696
|
+
};
|
4697
|
+
type MoveBranchRequestBody = {
|
4698
|
+
/**
|
4699
|
+
* Select the cluster to move the branch to. Must be different from the current cluster.
|
4700
|
+
*
|
4701
|
+
* @minLength 1
|
4702
|
+
* @x-internal true
|
4703
|
+
*/
|
4704
|
+
to: string;
|
4705
|
+
};
|
4706
|
+
type MoveBranchVariables = {
|
4707
|
+
body: MoveBranchRequestBody;
|
4708
|
+
pathParams: MoveBranchPathParams;
|
4709
|
+
} & DataPlaneFetcherExtraProps;
|
4710
|
+
declare const moveBranch: (variables: MoveBranchVariables, signal?: AbortSignal) => Promise<MoveBranchResponse>;
|
3396
4711
|
type UpdateBranchMetadataPathParams = {
|
3397
4712
|
/**
|
3398
4713
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3581,7 +4896,7 @@ type RemoveGitBranchesEntryPathParams = {
|
|
3581
4896
|
};
|
3582
4897
|
type RemoveGitBranchesEntryQueryParams = {
|
3583
4898
|
/**
|
3584
|
-
* The
|
4899
|
+
* The git branch to remove from the mapping
|
3585
4900
|
*/
|
3586
4901
|
gitBranch: string;
|
3587
4902
|
};
|
@@ -3644,7 +4959,7 @@ type ResolveBranchVariables = {
|
|
3644
4959
|
} & DataPlaneFetcherExtraProps;
|
3645
4960
|
/**
|
3646
4961
|
* In order to resolve the database branch, the following algorithm is used:
|
3647
|
-
* * if the `gitBranch` was provided and is found in the [git branches mapping](/api-reference/dbs/db_name/gitBranches), the associated Xata branch is returned
|
4962
|
+
* * if the `gitBranch` was provided and is found in the [git branches mapping](/docs/api-reference/dbs/db_name/gitBranches), the associated Xata branch is returned
|
3648
4963
|
* * else, if a Xata branch with the exact same name as `gitBranch` exists, return it
|
3649
4964
|
* * else, if `fallbackBranch` is provided and a branch with that name exists, return it
|
3650
4965
|
* * else, return the default branch of the DB (`main` or the first branch)
|
@@ -5245,7 +6560,7 @@ type QueryTableVariables = {
|
|
5245
6560
|
* }
|
5246
6561
|
* ```
|
5247
6562
|
*
|
5248
|
-
* For usage, see also the [
|
6563
|
+
* For usage, see also the [Xata SDK documentation](https://xata.io/docs/sdk/get).
|
5249
6564
|
*
|
5250
6565
|
* ### Column selection
|
5251
6566
|
*
|
@@ -6117,7 +7432,7 @@ type SearchTableVariables = {
|
|
6117
7432
|
/**
|
6118
7433
|
* Run a free text search operation in a particular table.
|
6119
7434
|
*
|
6120
|
-
* The endpoint accepts a `query` parameter that is used for the free text search and a set of structured filters (via the `filter` parameter) that are applied before the search. The `filter` parameter uses the same syntax as the [query endpoint](/api-reference/db/db_branch_name/tables/table_name/) with the following exceptions:
|
7435
|
+
* The endpoint accepts a `query` parameter that is used for the free text search and a set of structured filters (via the `filter` parameter) that are applied before the search. The `filter` parameter uses the same syntax as the [query endpoint](/docs/api-reference/db/db_branch_name/tables/table_name/query#filtering) with the following exceptions:
|
6121
7436
|
* * filters `$contains`, `$startsWith`, `$endsWith` don't work on columns of type `text`
|
6122
7437
|
* * filtering on columns of type `multiple` is currently unsupported
|
6123
7438
|
*/
|
@@ -6478,7 +7793,7 @@ type AggregateTableVariables = {
|
|
6478
7793
|
* store that is more appropriate for analytics, makes use of approximation algorithms
|
6479
7794
|
* (e.g for cardinality), and is generally faster and can do more complex aggregations.
|
6480
7795
|
*
|
6481
|
-
* For usage, see the [
|
7796
|
+
* For usage, see the [Aggregation documentation](https://xata.io/docs/sdk/aggregate).
|
6482
7797
|
*/
|
6483
7798
|
declare const aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal) => Promise<AggResponse>;
|
6484
7799
|
type FileAccessPathParams = {
|
@@ -6567,173 +7882,227 @@ type SqlQueryError = ErrorWrapper<{
|
|
6567
7882
|
status: 503;
|
6568
7883
|
payload: ServiceUnavailableError;
|
6569
7884
|
}>;
|
6570
|
-
type SqlQueryRequestBody = {
|
6571
|
-
|
6572
|
-
|
6573
|
-
|
6574
|
-
|
6575
|
-
|
6576
|
-
|
7885
|
+
type SqlQueryRequestBody = PreparedStatement & {
|
7886
|
+
consistency?: SQLConsistency;
|
7887
|
+
responseType?: SQLResponseType$1;
|
7888
|
+
};
|
7889
|
+
type SqlQueryVariables = {
|
7890
|
+
body: SqlQueryRequestBody;
|
7891
|
+
pathParams: SqlQueryPathParams;
|
7892
|
+
} & DataPlaneFetcherExtraProps;
|
7893
|
+
/**
|
7894
|
+
* Run an SQL query across the database branch.
|
7895
|
+
*/
|
7896
|
+
declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse$1>;
|
7897
|
+
type SqlBatchQueryPathParams = {
|
6577
7898
|
/**
|
6578
|
-
* The
|
7899
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
6579
7900
|
*/
|
6580
|
-
|
7901
|
+
dbBranchName: DBBranchName;
|
7902
|
+
workspace: string;
|
7903
|
+
region: string;
|
7904
|
+
};
|
7905
|
+
type SqlBatchQueryError = ErrorWrapper<{
|
7906
|
+
status: 400;
|
7907
|
+
payload: BadRequestError$1;
|
7908
|
+
} | {
|
7909
|
+
status: 401;
|
7910
|
+
payload: AuthError$1;
|
7911
|
+
} | {
|
7912
|
+
status: 404;
|
7913
|
+
payload: SimpleError$1;
|
7914
|
+
} | {
|
7915
|
+
status: 503;
|
7916
|
+
payload: ServiceUnavailableError;
|
7917
|
+
}>;
|
7918
|
+
type SqlBatchQueryRequestBody = {
|
6581
7919
|
/**
|
6582
|
-
* The
|
7920
|
+
* The SQL statements.
|
6583
7921
|
*
|
6584
|
-
* @
|
7922
|
+
* @x-go-type []sqlproxy.PreparedStatement
|
6585
7923
|
*/
|
6586
|
-
|
7924
|
+
statements: PreparedStatement[];
|
7925
|
+
consistency?: SQLConsistency;
|
7926
|
+
responseType?: SQLResponseType$1;
|
6587
7927
|
};
|
6588
|
-
type
|
6589
|
-
body:
|
6590
|
-
pathParams:
|
7928
|
+
type SqlBatchQueryVariables = {
|
7929
|
+
body: SqlBatchQueryRequestBody;
|
7930
|
+
pathParams: SqlBatchQueryPathParams;
|
6591
7931
|
} & DataPlaneFetcherExtraProps;
|
6592
7932
|
/**
|
6593
|
-
* Run
|
7933
|
+
* Run multiple SQL queries across the database branch.
|
6594
7934
|
*/
|
6595
|
-
declare const
|
7935
|
+
declare const sqlBatchQuery: (variables: SqlBatchQueryVariables, signal?: AbortSignal) => Promise<SQLBatchResponse>;
|
6596
7936
|
|
6597
7937
|
declare const operationsByTag: {
|
6598
7938
|
branch: {
|
6599
|
-
|
6600
|
-
|
6601
|
-
|
6602
|
-
|
6603
|
-
|
6604
|
-
|
6605
|
-
|
6606
|
-
|
6607
|
-
|
6608
|
-
|
6609
|
-
|
6610
|
-
|
6611
|
-
|
6612
|
-
|
6613
|
-
|
6614
|
-
resolveBranch: (variables: ResolveBranchVariables, signal?: AbortSignal | undefined) => Promise<ResolveBranchResponse>;
|
7939
|
+
getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal) => Promise<ListBranchesResponse>;
|
7940
|
+
createBranchAsync: (variables: CreateBranchAsyncVariables, signal?: AbortSignal) => Promise<CreateBranchResponse$1>;
|
7941
|
+
getBranchDetails: (variables: GetBranchDetailsVariables, signal?: AbortSignal) => Promise<DBBranch>;
|
7942
|
+
createBranch: (variables: CreateBranchVariables, signal?: AbortSignal) => Promise<CreateBranchResponse>;
|
7943
|
+
deleteBranch: (variables: DeleteBranchVariables, signal?: AbortSignal) => Promise<DeleteBranchResponse>;
|
7944
|
+
copyBranch: (variables: CopyBranchVariables, signal?: AbortSignal) => Promise<BranchWithCopyID>;
|
7945
|
+
getBranchMoveStatus: (variables: GetBranchMoveStatusVariables, signal?: AbortSignal) => Promise<GetBranchMoveStatusResponse>;
|
7946
|
+
moveBranch: (variables: MoveBranchVariables, signal?: AbortSignal) => Promise<MoveBranchResponse>;
|
7947
|
+
updateBranchMetadata: (variables: UpdateBranchMetadataVariables, signal?: AbortSignal) => Promise<undefined>;
|
7948
|
+
getBranchMetadata: (variables: GetBranchMetadataVariables, signal?: AbortSignal) => Promise<BranchMetadata$1>;
|
7949
|
+
getBranchStats: (variables: GetBranchStatsVariables, signal?: AbortSignal) => Promise<GetBranchStatsResponse>;
|
7950
|
+
getGitBranchesMapping: (variables: GetGitBranchesMappingVariables, signal?: AbortSignal) => Promise<ListGitBranchesResponse>;
|
7951
|
+
addGitBranchesEntry: (variables: AddGitBranchesEntryVariables, signal?: AbortSignal) => Promise<AddGitBranchesEntryResponse>;
|
7952
|
+
removeGitBranchesEntry: (variables: RemoveGitBranchesEntryVariables, signal?: AbortSignal) => Promise<undefined>;
|
7953
|
+
resolveBranch: (variables: ResolveBranchVariables, signal?: AbortSignal) => Promise<ResolveBranchResponse>;
|
6615
7954
|
};
|
6616
7955
|
workspaces: {
|
6617
|
-
getWorkspacesList: (variables:
|
6618
|
-
createWorkspace: (variables: CreateWorkspaceVariables, signal?: AbortSignal
|
6619
|
-
getWorkspace: (variables: GetWorkspaceVariables, signal?: AbortSignal
|
6620
|
-
updateWorkspace: (variables: UpdateWorkspaceVariables, signal?: AbortSignal
|
6621
|
-
deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal
|
6622
|
-
|
6623
|
-
|
6624
|
-
|
7956
|
+
getWorkspacesList: (variables: GetWorkspacesListVariables, signal?: AbortSignal) => Promise<GetWorkspacesListResponse>;
|
7957
|
+
createWorkspace: (variables: CreateWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7958
|
+
getWorkspace: (variables: GetWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7959
|
+
updateWorkspace: (variables: UpdateWorkspaceVariables, signal?: AbortSignal) => Promise<Workspace>;
|
7960
|
+
deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal) => Promise<undefined>;
|
7961
|
+
getWorkspaceSettings: (variables: GetWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
|
7962
|
+
updateWorkspaceSettings: (variables: UpdateWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
|
7963
|
+
getWorkspaceMembersList: (variables: GetWorkspaceMembersListVariables, signal?: AbortSignal) => Promise<WorkspaceMembers>;
|
7964
|
+
updateWorkspaceMemberRole: (variables: UpdateWorkspaceMemberRoleVariables, signal?: AbortSignal) => Promise<undefined>;
|
7965
|
+
removeWorkspaceMember: (variables: RemoveWorkspaceMemberVariables, signal?: AbortSignal) => Promise<undefined>;
|
7966
|
+
};
|
7967
|
+
table: {
|
7968
|
+
createTable: (variables: CreateTableVariables, signal?: AbortSignal) => Promise<CreateTableResponse>;
|
7969
|
+
deleteTable: (variables: DeleteTableVariables, signal?: AbortSignal) => Promise<DeleteTableResponse>;
|
7970
|
+
updateTable: (variables: UpdateTableVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7971
|
+
getTableSchema: (variables: GetTableSchemaVariables, signal?: AbortSignal) => Promise<GetTableSchemaResponse>;
|
7972
|
+
setTableSchema: (variables: SetTableSchemaVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7973
|
+
getTableColumns: (variables: GetTableColumnsVariables, signal?: AbortSignal) => Promise<GetTableColumnsResponse>;
|
7974
|
+
addTableColumn: (variables: AddTableColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7975
|
+
getColumn: (variables: GetColumnVariables, signal?: AbortSignal) => Promise<Column>;
|
7976
|
+
updateColumn: (variables: UpdateColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7977
|
+
deleteColumn: (variables: DeleteColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7978
|
+
};
|
7979
|
+
migrations: {
|
7980
|
+
applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7981
|
+
startMigration: (variables: StartMigrationVariables, signal?: AbortSignal) => Promise<StartMigrationResponse>;
|
7982
|
+
completeMigration: (variables: CompleteMigrationVariables, signal?: AbortSignal) => Promise<CompleteMigrationResponse>;
|
7983
|
+
rollbackMigration: (variables: RollbackMigrationVariables, signal?: AbortSignal) => Promise<RollbackMigrationResponse>;
|
7984
|
+
adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7985
|
+
adaptAllTables: (variables: AdaptAllTablesVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
7986
|
+
getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
7987
|
+
getMigrationJobs: (variables: GetMigrationJobsVariables, signal?: AbortSignal) => Promise<GetMigrationJobsResponse>;
|
7988
|
+
getMigrationJobStatus: (variables: GetMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
7989
|
+
getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal) => Promise<MigrationHistoryResponse>;
|
7990
|
+
getSchema: (variables: GetSchemaVariables, signal?: AbortSignal) => Promise<GetSchemaResponse>;
|
7991
|
+
getSchemas: (variables: GetSchemasVariables, signal?: AbortSignal) => Promise<GetSchemasResponse>;
|
7992
|
+
getBranchMigrationHistory: (variables: GetBranchMigrationHistoryVariables, signal?: AbortSignal) => Promise<GetBranchMigrationHistoryResponse>;
|
7993
|
+
getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables, signal?: AbortSignal) => Promise<BranchMigrationPlan>;
|
7994
|
+
executeBranchMigrationPlan: (variables: ExecuteBranchMigrationPlanVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7995
|
+
getBranchSchemaHistory: (variables: GetBranchSchemaHistoryVariables, signal?: AbortSignal) => Promise<GetBranchSchemaHistoryResponse>;
|
7996
|
+
compareBranchWithUserSchema: (variables: CompareBranchWithUserSchemaVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
7997
|
+
compareBranchSchemas: (variables: CompareBranchSchemasVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
7998
|
+
updateBranchSchema: (variables: UpdateBranchSchemaVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
7999
|
+
previewBranchSchemaEdit: (variables: PreviewBranchSchemaEditVariables, signal?: AbortSignal) => Promise<PreviewBranchSchemaEditResponse>;
|
8000
|
+
applyBranchSchemaEdit: (variables: ApplyBranchSchemaEditVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
8001
|
+
pushBranchMigrations: (variables: PushBranchMigrationsVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
8002
|
+
};
|
8003
|
+
records: {
|
8004
|
+
branchTransaction: (variables: BranchTransactionVariables, signal?: AbortSignal) => Promise<TransactionSuccess>;
|
8005
|
+
insertRecord: (variables: InsertRecordVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
8006
|
+
getRecord: (variables: GetRecordVariables, signal?: AbortSignal) => Promise<XataRecord$1>;
|
8007
|
+
insertRecordWithID: (variables: InsertRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
8008
|
+
updateRecordWithID: (variables: UpdateRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
8009
|
+
upsertRecordWithID: (variables: UpsertRecordWithIDVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
8010
|
+
deleteRecord: (variables: DeleteRecordVariables, signal?: AbortSignal) => Promise<XataRecord$1>;
|
8011
|
+
bulkInsertTableRecords: (variables: BulkInsertTableRecordsVariables, signal?: AbortSignal) => Promise<BulkInsertResponse>;
|
8012
|
+
};
|
8013
|
+
tasks: {
|
8014
|
+
getTasks: (variables: GetTasksVariables, signal?: AbortSignal) => Promise<GetTasksResponse>;
|
8015
|
+
getTaskStatus: (variables: GetTaskStatusVariables, signal?: AbortSignal) => Promise<TaskStatusResponse>;
|
6625
8016
|
};
|
6626
|
-
|
6627
|
-
|
6628
|
-
|
6629
|
-
|
6630
|
-
|
6631
|
-
|
6632
|
-
compareBranchWithUserSchema: (variables: CompareBranchWithUserSchemaVariables, signal?: AbortSignal | undefined) => Promise<SchemaCompareResponse>;
|
6633
|
-
compareBranchSchemas: (variables: CompareBranchSchemasVariables, signal?: AbortSignal | undefined) => Promise<SchemaCompareResponse>;
|
6634
|
-
updateBranchSchema: (variables: UpdateBranchSchemaVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
6635
|
-
previewBranchSchemaEdit: (variables: PreviewBranchSchemaEditVariables, signal?: AbortSignal | undefined) => Promise<PreviewBranchSchemaEditResponse>;
|
6636
|
-
applyBranchSchemaEdit: (variables: ApplyBranchSchemaEditVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
6637
|
-
pushBranchMigrations: (variables: PushBranchMigrationsVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
8017
|
+
cluster: {
|
8018
|
+
listClusterBranches: (variables: ListClusterBranchesVariables, signal?: AbortSignal) => Promise<ListClusterBranchesResponse>;
|
8019
|
+
listClusterExtensions: (variables: ListClusterExtensionsVariables, signal?: AbortSignal) => Promise<ListClusterExtensionsResponse>;
|
8020
|
+
installClusterExtension: (variables: InstallClusterExtensionVariables, signal?: AbortSignal) => Promise<ClusterExtensionInstallationResponse>;
|
8021
|
+
dropClusterExtension: (variables: DropClusterExtensionVariables, signal?: AbortSignal) => Promise<undefined>;
|
8022
|
+
getClusterMetrics: (variables: GetClusterMetricsVariables, signal?: AbortSignal) => Promise<MetricsResponse>;
|
6638
8023
|
};
|
6639
|
-
|
6640
|
-
|
6641
|
-
|
6642
|
-
getRecord: (variables: GetRecordVariables, signal?: AbortSignal | undefined) => Promise<XataRecord$1>;
|
6643
|
-
insertRecordWithID: (variables: InsertRecordWithIDVariables, signal?: AbortSignal | undefined) => Promise<RecordUpdateResponse>;
|
6644
|
-
updateRecordWithID: (variables: UpdateRecordWithIDVariables, signal?: AbortSignal | undefined) => Promise<RecordUpdateResponse>;
|
6645
|
-
upsertRecordWithID: (variables: UpsertRecordWithIDVariables, signal?: AbortSignal | undefined) => Promise<RecordUpdateResponse>;
|
6646
|
-
deleteRecord: (variables: DeleteRecordVariables, signal?: AbortSignal | undefined) => Promise<XataRecord$1>;
|
6647
|
-
bulkInsertTableRecords: (variables: BulkInsertTableRecordsVariables, signal?: AbortSignal | undefined) => Promise<BulkInsertResponse>;
|
8024
|
+
database: {
|
8025
|
+
getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
8026
|
+
updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
6648
8027
|
};
|
6649
8028
|
migrationRequests: {
|
6650
|
-
queryMigrationRequests: (variables: QueryMigrationRequestsVariables, signal?: AbortSignal
|
6651
|
-
createMigrationRequest: (variables: CreateMigrationRequestVariables, signal?: AbortSignal
|
6652
|
-
getMigrationRequest: (variables: GetMigrationRequestVariables, signal?: AbortSignal
|
6653
|
-
updateMigrationRequest: (variables: UpdateMigrationRequestVariables, signal?: AbortSignal
|
6654
|
-
listMigrationRequestsCommits: (variables: ListMigrationRequestsCommitsVariables, signal?: AbortSignal
|
6655
|
-
compareMigrationRequest: (variables: CompareMigrationRequestVariables, signal?: AbortSignal
|
6656
|
-
getMigrationRequestIsMerged: (variables: GetMigrationRequestIsMergedVariables, signal?: AbortSignal
|
6657
|
-
mergeMigrationRequest: (variables: MergeMigrationRequestVariables, signal?: AbortSignal
|
6658
|
-
};
|
6659
|
-
table: {
|
6660
|
-
createTable: (variables: CreateTableVariables, signal?: AbortSignal | undefined) => Promise<CreateTableResponse>;
|
6661
|
-
deleteTable: (variables: DeleteTableVariables, signal?: AbortSignal | undefined) => Promise<DeleteTableResponse>;
|
6662
|
-
updateTable: (variables: UpdateTableVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
6663
|
-
getTableSchema: (variables: GetTableSchemaVariables, signal?: AbortSignal | undefined) => Promise<GetTableSchemaResponse>;
|
6664
|
-
setTableSchema: (variables: SetTableSchemaVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
6665
|
-
getTableColumns: (variables: GetTableColumnsVariables, signal?: AbortSignal | undefined) => Promise<GetTableColumnsResponse>;
|
6666
|
-
addTableColumn: (variables: AddTableColumnVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
6667
|
-
getColumn: (variables: GetColumnVariables, signal?: AbortSignal | undefined) => Promise<Column>;
|
6668
|
-
updateColumn: (variables: UpdateColumnVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
6669
|
-
deleteColumn: (variables: DeleteColumnVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
8029
|
+
queryMigrationRequests: (variables: QueryMigrationRequestsVariables, signal?: AbortSignal) => Promise<QueryMigrationRequestsResponse>;
|
8030
|
+
createMigrationRequest: (variables: CreateMigrationRequestVariables, signal?: AbortSignal) => Promise<CreateMigrationRequestResponse>;
|
8031
|
+
getMigrationRequest: (variables: GetMigrationRequestVariables, signal?: AbortSignal) => Promise<MigrationRequest>;
|
8032
|
+
updateMigrationRequest: (variables: UpdateMigrationRequestVariables, signal?: AbortSignal) => Promise<undefined>;
|
8033
|
+
listMigrationRequestsCommits: (variables: ListMigrationRequestsCommitsVariables, signal?: AbortSignal) => Promise<ListMigrationRequestsCommitsResponse>;
|
8034
|
+
compareMigrationRequest: (variables: CompareMigrationRequestVariables, signal?: AbortSignal) => Promise<SchemaCompareResponse>;
|
8035
|
+
getMigrationRequestIsMerged: (variables: GetMigrationRequestIsMergedVariables, signal?: AbortSignal) => Promise<GetMigrationRequestIsMergedResponse>;
|
8036
|
+
mergeMigrationRequest: (variables: MergeMigrationRequestVariables, signal?: AbortSignal) => Promise<BranchOp>;
|
6670
8037
|
};
|
6671
8038
|
files: {
|
6672
|
-
getFileItem: (variables: GetFileItemVariables, signal?: AbortSignal
|
6673
|
-
putFileItem: (variables: PutFileItemVariables, signal?: AbortSignal
|
6674
|
-
deleteFileItem: (variables: DeleteFileItemVariables, signal?: AbortSignal
|
6675
|
-
getFile: (variables: GetFileVariables, signal?: AbortSignal
|
6676
|
-
putFile: (variables: PutFileVariables, signal?: AbortSignal
|
6677
|
-
deleteFile: (variables: DeleteFileVariables, signal?: AbortSignal
|
6678
|
-
fileAccess: (variables: FileAccessVariables, signal?: AbortSignal
|
6679
|
-
fileUpload: (variables: FileUploadVariables, signal?: AbortSignal
|
8039
|
+
getFileItem: (variables: GetFileItemVariables, signal?: AbortSignal) => Promise<Blob>;
|
8040
|
+
putFileItem: (variables: PutFileItemVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8041
|
+
deleteFileItem: (variables: DeleteFileItemVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8042
|
+
getFile: (variables: GetFileVariables, signal?: AbortSignal) => Promise<Blob>;
|
8043
|
+
putFile: (variables: PutFileVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8044
|
+
deleteFile: (variables: DeleteFileVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
8045
|
+
fileAccess: (variables: FileAccessVariables, signal?: AbortSignal) => Promise<Blob>;
|
8046
|
+
fileUpload: (variables: FileUploadVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
6680
8047
|
};
|
6681
8048
|
searchAndFilter: {
|
6682
|
-
queryTable: (variables: QueryTableVariables, signal?: AbortSignal
|
6683
|
-
searchBranch: (variables: SearchBranchVariables, signal?: AbortSignal
|
6684
|
-
searchTable: (variables: SearchTableVariables, signal?: AbortSignal
|
6685
|
-
vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal
|
6686
|
-
askTable: (variables: AskTableVariables, signal?: AbortSignal
|
6687
|
-
askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal
|
6688
|
-
summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal
|
6689
|
-
aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal
|
8049
|
+
queryTable: (variables: QueryTableVariables, signal?: AbortSignal) => Promise<QueryResponse>;
|
8050
|
+
searchBranch: (variables: SearchBranchVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
8051
|
+
searchTable: (variables: SearchTableVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
8052
|
+
vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
8053
|
+
askTable: (variables: AskTableVariables, signal?: AbortSignal) => Promise<AskTableResponse>;
|
8054
|
+
askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal) => Promise<AskTableSessionResponse>;
|
8055
|
+
summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal) => Promise<SummarizeResponse>;
|
8056
|
+
aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal) => Promise<AggResponse>;
|
6690
8057
|
};
|
6691
8058
|
sql: {
|
6692
|
-
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal
|
8059
|
+
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse$1>;
|
8060
|
+
sqlBatchQuery: (variables: SqlBatchQueryVariables, signal?: AbortSignal) => Promise<SQLBatchResponse>;
|
6693
8061
|
};
|
6694
8062
|
oAuth: {
|
6695
|
-
getAuthorizationCode: (variables: GetAuthorizationCodeVariables, signal?: AbortSignal
|
6696
|
-
grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal
|
6697
|
-
getUserOAuthClients: (variables:
|
6698
|
-
deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal
|
6699
|
-
getUserOAuthAccessTokens: (variables:
|
6700
|
-
deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal
|
6701
|
-
updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal
|
8063
|
+
getAuthorizationCode: (variables: GetAuthorizationCodeVariables, signal?: AbortSignal) => Promise<AuthorizationCodeResponse>;
|
8064
|
+
grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal) => Promise<AuthorizationCodeResponse>;
|
8065
|
+
getUserOAuthClients: (variables: GetUserOAuthClientsVariables, signal?: AbortSignal) => Promise<GetUserOAuthClientsResponse>;
|
8066
|
+
deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal) => Promise<undefined>;
|
8067
|
+
getUserOAuthAccessTokens: (variables: GetUserOAuthAccessTokensVariables, signal?: AbortSignal) => Promise<GetUserOAuthAccessTokensResponse>;
|
8068
|
+
deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<undefined>;
|
8069
|
+
updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<OAuthAccessToken>;
|
6702
8070
|
};
|
6703
8071
|
users: {
|
6704
|
-
getUser: (variables:
|
6705
|
-
updateUser: (variables: UpdateUserVariables, signal?: AbortSignal
|
6706
|
-
deleteUser: (variables:
|
8072
|
+
getUser: (variables: GetUserVariables, signal?: AbortSignal) => Promise<UserWithID>;
|
8073
|
+
updateUser: (variables: UpdateUserVariables, signal?: AbortSignal) => Promise<UserWithID>;
|
8074
|
+
deleteUser: (variables: DeleteUserVariables, signal?: AbortSignal) => Promise<undefined>;
|
6707
8075
|
};
|
6708
8076
|
authentication: {
|
6709
|
-
getUserAPIKeys: (variables:
|
6710
|
-
createUserAPIKey: (variables: CreateUserAPIKeyVariables, signal?: AbortSignal
|
6711
|
-
deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables, signal?: AbortSignal
|
8077
|
+
getUserAPIKeys: (variables: GetUserAPIKeysVariables, signal?: AbortSignal) => Promise<GetUserAPIKeysResponse>;
|
8078
|
+
createUserAPIKey: (variables: CreateUserAPIKeyVariables, signal?: AbortSignal) => Promise<CreateUserAPIKeyResponse>;
|
8079
|
+
deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables, signal?: AbortSignal) => Promise<undefined>;
|
6712
8080
|
};
|
6713
8081
|
invites: {
|
6714
|
-
inviteWorkspaceMember: (variables: InviteWorkspaceMemberVariables, signal?: AbortSignal
|
6715
|
-
updateWorkspaceMemberInvite: (variables: UpdateWorkspaceMemberInviteVariables, signal?: AbortSignal
|
6716
|
-
cancelWorkspaceMemberInvite: (variables: CancelWorkspaceMemberInviteVariables, signal?: AbortSignal
|
6717
|
-
acceptWorkspaceMemberInvite: (variables: AcceptWorkspaceMemberInviteVariables, signal?: AbortSignal
|
6718
|
-
resendWorkspaceMemberInvite: (variables: ResendWorkspaceMemberInviteVariables, signal?: AbortSignal
|
8082
|
+
inviteWorkspaceMember: (variables: InviteWorkspaceMemberVariables, signal?: AbortSignal) => Promise<WorkspaceInvite>;
|
8083
|
+
updateWorkspaceMemberInvite: (variables: UpdateWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<WorkspaceInvite>;
|
8084
|
+
cancelWorkspaceMemberInvite: (variables: CancelWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
8085
|
+
acceptWorkspaceMemberInvite: (variables: AcceptWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
8086
|
+
resendWorkspaceMemberInvite: (variables: ResendWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
6719
8087
|
};
|
6720
8088
|
xbcontrolOther: {
|
6721
|
-
listClusters: (variables: ListClustersVariables, signal?: AbortSignal
|
6722
|
-
createCluster: (variables: CreateClusterVariables, signal?: AbortSignal
|
6723
|
-
getCluster: (variables: GetClusterVariables, signal?: AbortSignal
|
6724
|
-
updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal
|
8089
|
+
listClusters: (variables: ListClustersVariables, signal?: AbortSignal) => Promise<ListClustersResponse>;
|
8090
|
+
createCluster: (variables: CreateClusterVariables, signal?: AbortSignal) => Promise<ClusterResponse>;
|
8091
|
+
getCluster: (variables: GetClusterVariables, signal?: AbortSignal) => Promise<ClusterMetadata>;
|
8092
|
+
updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterUpdateMetadata>;
|
8093
|
+
deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal) => Promise<ClusterDeleteMetadata>;
|
6725
8094
|
};
|
6726
8095
|
databases: {
|
6727
|
-
getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal
|
6728
|
-
createDatabase: (variables: CreateDatabaseVariables, signal?: AbortSignal
|
6729
|
-
deleteDatabase: (variables: DeleteDatabaseVariables, signal?: AbortSignal
|
6730
|
-
getDatabaseMetadata: (variables: GetDatabaseMetadataVariables, signal?: AbortSignal
|
6731
|
-
updateDatabaseMetadata: (variables: UpdateDatabaseMetadataVariables, signal?: AbortSignal
|
6732
|
-
renameDatabase: (variables: RenameDatabaseVariables, signal?: AbortSignal
|
6733
|
-
getDatabaseGithubSettings: (variables: GetDatabaseGithubSettingsVariables, signal?: AbortSignal
|
6734
|
-
updateDatabaseGithubSettings: (variables: UpdateDatabaseGithubSettingsVariables, signal?: AbortSignal
|
6735
|
-
deleteDatabaseGithubSettings: (variables: DeleteDatabaseGithubSettingsVariables, signal?: AbortSignal
|
6736
|
-
listRegions: (variables: ListRegionsVariables, signal?: AbortSignal
|
8096
|
+
getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal) => Promise<ListDatabasesResponse>;
|
8097
|
+
createDatabase: (variables: CreateDatabaseVariables, signal?: AbortSignal) => Promise<CreateDatabaseResponse>;
|
8098
|
+
deleteDatabase: (variables: DeleteDatabaseVariables, signal?: AbortSignal) => Promise<DeleteDatabaseResponse>;
|
8099
|
+
getDatabaseMetadata: (variables: GetDatabaseMetadataVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
8100
|
+
updateDatabaseMetadata: (variables: UpdateDatabaseMetadataVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
8101
|
+
renameDatabase: (variables: RenameDatabaseVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
8102
|
+
getDatabaseGithubSettings: (variables: GetDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<DatabaseGithubSettings>;
|
8103
|
+
updateDatabaseGithubSettings: (variables: UpdateDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<DatabaseGithubSettings>;
|
8104
|
+
deleteDatabaseGithubSettings: (variables: DeleteDatabaseGithubSettingsVariables, signal?: AbortSignal) => Promise<undefined>;
|
8105
|
+
listRegions: (variables: ListRegionsVariables, signal?: AbortSignal) => Promise<ListRegionsResponse>;
|
6737
8106
|
};
|
6738
8107
|
};
|
6739
8108
|
|
@@ -6751,6 +8120,8 @@ declare function buildProviderString(provider: HostProvider): string;
|
|
6751
8120
|
declare function parseWorkspacesUrlParts(url: string): {
|
6752
8121
|
workspace: string;
|
6753
8122
|
region: string;
|
8123
|
+
database: string;
|
8124
|
+
branch?: string;
|
6754
8125
|
host: HostAliases;
|
6755
8126
|
} | null;
|
6756
8127
|
|
@@ -6771,7 +8142,7 @@ type XataApiProxy = {
|
|
6771
8142
|
[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;
|
6772
8143
|
};
|
6773
8144
|
};
|
6774
|
-
declare const XataApiClient_base: new (options?: XataApiClientOptions
|
8145
|
+
declare const XataApiClient_base: new (options?: XataApiClientOptions) => XataApiProxy;
|
6775
8146
|
declare class XataApiClient extends XataApiClient_base {
|
6776
8147
|
}
|
6777
8148
|
|
@@ -6784,6 +8155,7 @@ type responses_QueryResponse = QueryResponse;
|
|
6784
8155
|
type responses_RateLimitError = RateLimitError;
|
6785
8156
|
type responses_RecordResponse = RecordResponse;
|
6786
8157
|
type responses_RecordUpdateResponse = RecordUpdateResponse;
|
8158
|
+
type responses_SQLBatchResponse = SQLBatchResponse;
|
6787
8159
|
type responses_SQLResponse = SQLResponse;
|
6788
8160
|
type responses_SchemaCompareResponse = SchemaCompareResponse;
|
6789
8161
|
type responses_SchemaUpdateResponse = SchemaUpdateResponse;
|
@@ -6791,29 +8163,37 @@ type responses_SearchResponse = SearchResponse;
|
|
6791
8163
|
type responses_ServiceUnavailableError = ServiceUnavailableError;
|
6792
8164
|
type responses_SummarizeResponse = SummarizeResponse;
|
6793
8165
|
declare namespace responses {
|
6794
|
-
export type { responses_AggResponse as AggResponse, AuthError$1 as AuthError, BadRequestError$1 as BadRequestError, responses_BranchMigrationPlan as BranchMigrationPlan, responses_BulkError as BulkError, responses_BulkInsertResponse as BulkInsertResponse, responses_PutFileResponse as PutFileResponse, responses_QueryResponse as QueryResponse, responses_RateLimitError as RateLimitError, responses_RecordResponse as RecordResponse, responses_RecordUpdateResponse as RecordUpdateResponse, responses_SQLResponse as SQLResponse, responses_SchemaCompareResponse as SchemaCompareResponse, responses_SchemaUpdateResponse as SchemaUpdateResponse, responses_SearchResponse as SearchResponse, responses_ServiceUnavailableError as ServiceUnavailableError, SimpleError$1 as SimpleError, responses_SummarizeResponse as SummarizeResponse };
|
8166
|
+
export type { responses_AggResponse as AggResponse, AuthError$1 as AuthError, BadRequestError$1 as BadRequestError, responses_BranchMigrationPlan as BranchMigrationPlan, responses_BulkError as BulkError, responses_BulkInsertResponse as BulkInsertResponse, responses_PutFileResponse as PutFileResponse, responses_QueryResponse as QueryResponse, responses_RateLimitError as RateLimitError, responses_RecordResponse as RecordResponse, responses_RecordUpdateResponse as RecordUpdateResponse, responses_SQLBatchResponse as SQLBatchResponse, responses_SQLResponse as SQLResponse, responses_SchemaCompareResponse as SchemaCompareResponse, responses_SchemaUpdateResponse as SchemaUpdateResponse, responses_SearchResponse as SearchResponse, responses_ServiceUnavailableError as ServiceUnavailableError, SimpleError$1 as SimpleError, responses_SummarizeResponse as SummarizeResponse };
|
6795
8167
|
}
|
6796
8168
|
|
6797
8169
|
type schemas_APIKeyName = APIKeyName;
|
6798
8170
|
type schemas_AccessToken = AccessToken;
|
6799
8171
|
type schemas_AggExpression = AggExpression;
|
6800
8172
|
type schemas_AggExpressionMap = AggExpressionMap;
|
8173
|
+
type schemas_ApplyMigrationResponse = ApplyMigrationResponse;
|
6801
8174
|
type schemas_AuthorizationCodeRequest = AuthorizationCodeRequest;
|
6802
8175
|
type schemas_AuthorizationCodeResponse = AuthorizationCodeResponse;
|
6803
8176
|
type schemas_AutoscalingConfig = AutoscalingConfig;
|
8177
|
+
type schemas_AutoscalingConfigResponse = AutoscalingConfigResponse;
|
6804
8178
|
type schemas_AverageAgg = AverageAgg;
|
6805
8179
|
type schemas_BoosterExpression = BoosterExpression;
|
6806
8180
|
type schemas_Branch = Branch;
|
8181
|
+
type schemas_BranchDetails = BranchDetails;
|
6807
8182
|
type schemas_BranchMigration = BranchMigration;
|
6808
8183
|
type schemas_BranchOp = BranchOp;
|
8184
|
+
type schemas_BranchSchema = BranchSchema;
|
8185
|
+
type schemas_BranchState = BranchState;
|
6809
8186
|
type schemas_BranchWithCopyID = BranchWithCopyID;
|
6810
8187
|
type schemas_ClusterConfiguration = ClusterConfiguration;
|
8188
|
+
type schemas_ClusterConfigurationResponse = ClusterConfigurationResponse;
|
6811
8189
|
type schemas_ClusterCreateDetails = ClusterCreateDetails;
|
6812
|
-
type
|
8190
|
+
type schemas_ClusterDeleteMetadata = ClusterDeleteMetadata;
|
8191
|
+
type schemas_ClusterExtensionInstallationResponse = ClusterExtensionInstallationResponse;
|
6813
8192
|
type schemas_ClusterMetadata = ClusterMetadata;
|
6814
8193
|
type schemas_ClusterResponse = ClusterResponse;
|
6815
8194
|
type schemas_ClusterShortMetadata = ClusterShortMetadata;
|
6816
8195
|
type schemas_ClusterUpdateDetails = ClusterUpdateDetails;
|
8196
|
+
type schemas_ClusterUpdateMetadata = ClusterUpdateMetadata;
|
6817
8197
|
type schemas_Column = Column;
|
6818
8198
|
type schemas_ColumnFile = ColumnFile;
|
6819
8199
|
type schemas_ColumnLink = ColumnLink;
|
@@ -6825,6 +8205,7 @@ type schemas_ColumnOpRename = ColumnOpRename;
|
|
6825
8205
|
type schemas_ColumnVector = ColumnVector;
|
6826
8206
|
type schemas_ColumnsProjection = ColumnsProjection;
|
6827
8207
|
type schemas_Commit = Commit;
|
8208
|
+
type schemas_CompleteMigrationResponse = CompleteMigrationResponse;
|
6828
8209
|
type schemas_CountAgg = CountAgg;
|
6829
8210
|
type schemas_DBBranch = DBBranch;
|
6830
8211
|
type schemas_DBBranchName = DBBranchName;
|
@@ -6832,7 +8213,9 @@ type schemas_DailyTimeWindow = DailyTimeWindow;
|
|
6832
8213
|
type schemas_DataInputRecord = DataInputRecord;
|
6833
8214
|
type schemas_DatabaseGithubSettings = DatabaseGithubSettings;
|
6834
8215
|
type schemas_DatabaseMetadata = DatabaseMetadata;
|
8216
|
+
type schemas_DatabaseSettings = DatabaseSettings;
|
6835
8217
|
type schemas_DateHistogramAgg = DateHistogramAgg;
|
8218
|
+
type schemas_ExtensionDetails = ExtensionDetails;
|
6836
8219
|
type schemas_FileAccessID = FileAccessID;
|
6837
8220
|
type schemas_FileItemID = FileItemID;
|
6838
8221
|
type schemas_FileName = FileName;
|
@@ -6848,6 +8231,7 @@ type schemas_FilterPredicateRangeOp = FilterPredicateRangeOp;
|
|
6848
8231
|
type schemas_FilterRangeValue = FilterRangeValue;
|
6849
8232
|
type schemas_FilterValue = FilterValue;
|
6850
8233
|
type schemas_FuzzinessExpression = FuzzinessExpression;
|
8234
|
+
type schemas_GetMigrationJobsResponse = GetMigrationJobsResponse;
|
6851
8235
|
type schemas_HighlightExpression = HighlightExpression;
|
6852
8236
|
type schemas_InputFile = InputFile;
|
6853
8237
|
type schemas_InputFileArray = InputFileArray;
|
@@ -6855,22 +8239,38 @@ type schemas_InputFileEntry = InputFileEntry;
|
|
6855
8239
|
type schemas_InviteID = InviteID;
|
6856
8240
|
type schemas_InviteKey = InviteKey;
|
6857
8241
|
type schemas_ListBranchesResponse = ListBranchesResponse;
|
8242
|
+
type schemas_ListClusterBranchesResponse = ListClusterBranchesResponse;
|
8243
|
+
type schemas_ListClusterExtensionsResponse = ListClusterExtensionsResponse;
|
6858
8244
|
type schemas_ListClustersResponse = ListClustersResponse;
|
6859
8245
|
type schemas_ListDatabasesResponse = ListDatabasesResponse;
|
6860
8246
|
type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
|
6861
8247
|
type schemas_ListRegionsResponse = ListRegionsResponse;
|
6862
8248
|
type schemas_MaintenanceConfig = MaintenanceConfig;
|
8249
|
+
type schemas_MaintenanceConfigResponse = MaintenanceConfigResponse;
|
6863
8250
|
type schemas_MaxAgg = MaxAgg;
|
6864
8251
|
type schemas_MediaType = MediaType;
|
8252
|
+
type schemas_MetricData = MetricData;
|
8253
|
+
type schemas_MetricMessage = MetricMessage;
|
6865
8254
|
type schemas_MetricsDatapoint = MetricsDatapoint;
|
6866
8255
|
type schemas_MetricsLatency = MetricsLatency;
|
8256
|
+
type schemas_MetricsResponse = MetricsResponse;
|
6867
8257
|
type schemas_Migration = Migration;
|
6868
8258
|
type schemas_MigrationColumnOp = MigrationColumnOp;
|
8259
|
+
type schemas_MigrationDescription = MigrationDescription;
|
8260
|
+
type schemas_MigrationHistoryItem = MigrationHistoryItem;
|
8261
|
+
type schemas_MigrationHistoryResponse = MigrationHistoryResponse;
|
8262
|
+
type schemas_MigrationJobID = MigrationJobID;
|
8263
|
+
type schemas_MigrationJobItem = MigrationJobItem;
|
8264
|
+
type schemas_MigrationJobStatus = MigrationJobStatus;
|
8265
|
+
type schemas_MigrationJobStatusResponse = MigrationJobStatusResponse;
|
8266
|
+
type schemas_MigrationJobType = MigrationJobType;
|
6869
8267
|
type schemas_MigrationObject = MigrationObject;
|
6870
8268
|
type schemas_MigrationOp = MigrationOp;
|
8269
|
+
type schemas_MigrationOperationDescription = MigrationOperationDescription;
|
6871
8270
|
type schemas_MigrationRequest = MigrationRequest;
|
6872
8271
|
type schemas_MigrationRequestNumber = MigrationRequestNumber;
|
6873
8272
|
type schemas_MigrationTableOp = MigrationTableOp;
|
8273
|
+
type schemas_MigrationType = MigrationType;
|
6874
8274
|
type schemas_MinAgg = MinAgg;
|
6875
8275
|
type schemas_NumericHistogramAgg = NumericHistogramAgg;
|
6876
8276
|
type schemas_OAuthAccessToken = OAuthAccessToken;
|
@@ -6880,19 +8280,9 @@ type schemas_OAuthResponseType = OAuthResponseType;
|
|
6880
8280
|
type schemas_OAuthScope = OAuthScope;
|
6881
8281
|
type schemas_ObjectValue = ObjectValue;
|
6882
8282
|
type schemas_PageConfig = PageConfig;
|
6883
|
-
type schemas_PageResponse = PageResponse;
|
6884
|
-
type schemas_PageSize = PageSize;
|
6885
|
-
type schemas_PageToken = PageToken;
|
6886
8283
|
type schemas_PercentilesAgg = PercentilesAgg;
|
6887
|
-
type schemas_PgRollApplyMigrationResponse = PgRollApplyMigrationResponse;
|
6888
|
-
type schemas_PgRollJobStatus = PgRollJobStatus;
|
6889
|
-
type schemas_PgRollJobStatusResponse = PgRollJobStatusResponse;
|
6890
|
-
type schemas_PgRollJobType = PgRollJobType;
|
6891
|
-
type schemas_PgRollMigrationHistoryItem = PgRollMigrationHistoryItem;
|
6892
|
-
type schemas_PgRollMigrationHistoryResponse = PgRollMigrationHistoryResponse;
|
6893
|
-
type schemas_PgRollMigrationJobID = PgRollMigrationJobID;
|
6894
|
-
type schemas_PgRollMigrationType = PgRollMigrationType;
|
6895
8284
|
type schemas_PrefixExpression = PrefixExpression;
|
8285
|
+
type schemas_PreparedStatement = PreparedStatement;
|
6896
8286
|
type schemas_ProjectionConfig = ProjectionConfig;
|
6897
8287
|
type schemas_QueryColumnsProjection = QueryColumnsProjection;
|
6898
8288
|
type schemas_RecordID = RecordID;
|
@@ -6901,13 +8291,21 @@ type schemas_RecordsMetadata = RecordsMetadata;
|
|
6901
8291
|
type schemas_Region = Region;
|
6902
8292
|
type schemas_RevLink = RevLink;
|
6903
8293
|
type schemas_Role = Role;
|
8294
|
+
type schemas_RollbackMigrationResponse = RollbackMigrationResponse;
|
8295
|
+
type schemas_SQLConsistency = SQLConsistency;
|
6904
8296
|
type schemas_SQLRecord = SQLRecord;
|
8297
|
+
type schemas_SQLResponseArray = SQLResponseArray;
|
8298
|
+
type schemas_SQLResponseBase = SQLResponseBase;
|
8299
|
+
type schemas_SQLResponseJSON = SQLResponseJSON;
|
6905
8300
|
type schemas_Schema = Schema;
|
6906
8301
|
type schemas_SchemaEditScript = SchemaEditScript;
|
6907
8302
|
type schemas_SearchPageConfig = SearchPageConfig;
|
6908
8303
|
type schemas_SortExpression = SortExpression;
|
6909
8304
|
type schemas_SortOrder = SortOrder;
|
8305
|
+
type schemas_StartMigrationResponse = StartMigrationResponse;
|
6910
8306
|
type schemas_StartedFromMetadata = StartedFromMetadata;
|
8307
|
+
type schemas_StorageConfig = StorageConfig;
|
8308
|
+
type schemas_StorageConfigResponse = StorageConfigResponse;
|
6911
8309
|
type schemas_SumAgg = SumAgg;
|
6912
8310
|
type schemas_SummaryExpression = SummaryExpression;
|
6913
8311
|
type schemas_SummaryExpressionList = SummaryExpressionList;
|
@@ -6919,6 +8317,9 @@ type schemas_TableOpRemove = TableOpRemove;
|
|
6919
8317
|
type schemas_TableOpRename = TableOpRename;
|
6920
8318
|
type schemas_TableRename = TableRename;
|
6921
8319
|
type schemas_TargetExpression = TargetExpression;
|
8320
|
+
type schemas_TaskID = TaskID;
|
8321
|
+
type schemas_TaskStatus = TaskStatus;
|
8322
|
+
type schemas_TaskStatusResponse = TaskStatusResponse;
|
6922
8323
|
type schemas_TopValuesAgg = TopValuesAgg;
|
6923
8324
|
type schemas_TransactionDeleteOp = TransactionDeleteOp;
|
6924
8325
|
type schemas_TransactionError = TransactionError;
|
@@ -6944,8 +8345,9 @@ type schemas_WorkspaceMember = WorkspaceMember;
|
|
6944
8345
|
type schemas_WorkspaceMembers = WorkspaceMembers;
|
6945
8346
|
type schemas_WorkspaceMeta = WorkspaceMeta;
|
6946
8347
|
type schemas_WorkspacePlan = WorkspacePlan;
|
8348
|
+
type schemas_WorkspaceSettings = WorkspaceSettings;
|
6947
8349
|
declare namespace schemas {
|
6948
|
-
export type { schemas_APIKeyName as APIKeyName, schemas_AccessToken as AccessToken, schemas_AggExpression as AggExpression, schemas_AggExpressionMap as AggExpressionMap, AggResponse$1 as AggResponse, schemas_AuthorizationCodeRequest as AuthorizationCodeRequest, schemas_AuthorizationCodeResponse as AuthorizationCodeResponse, schemas_AutoscalingConfig as AutoscalingConfig, 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_BranchWithCopyID as BranchWithCopyID, schemas_ClusterConfiguration as ClusterConfiguration, schemas_ClusterCreateDetails as ClusterCreateDetails,
|
8350
|
+
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 };
|
6949
8351
|
}
|
6950
8352
|
|
6951
8353
|
declare class XataApiPlugin implements XataPlugin {
|
@@ -7117,6 +8519,580 @@ interface ImageTransformations {
|
|
7117
8519
|
declare function transformImage(url: string, ...transformations: ImageTransformations[]): string;
|
7118
8520
|
declare function transformImage(url: string | undefined, ...transformations: ImageTransformations[]): string | undefined;
|
7119
8521
|
|
8522
|
+
declare class Buffer extends Uint8Array {
|
8523
|
+
/**
|
8524
|
+
* Allocates a new buffer containing the given `str`.
|
8525
|
+
*
|
8526
|
+
* @param str String to store in buffer.
|
8527
|
+
* @param encoding Encoding to use, optional. Default is `utf8`.
|
8528
|
+
*/
|
8529
|
+
constructor(str: string, encoding?: Encoding);
|
8530
|
+
/**
|
8531
|
+
* Allocates a new buffer of `size` octets.
|
8532
|
+
*
|
8533
|
+
* @param size Count of octets to allocate.
|
8534
|
+
*/
|
8535
|
+
constructor(size: number);
|
8536
|
+
/**
|
8537
|
+
* Allocates a new buffer containing the given `array` of octets.
|
8538
|
+
*
|
8539
|
+
* @param array The octets to store.
|
8540
|
+
*/
|
8541
|
+
constructor(array: Uint8Array);
|
8542
|
+
/**
|
8543
|
+
* Allocates a new buffer containing the given `array` of octet values.
|
8544
|
+
*
|
8545
|
+
* @param array
|
8546
|
+
*/
|
8547
|
+
constructor(array: number[]);
|
8548
|
+
/**
|
8549
|
+
* Allocates a new buffer containing the given `array` of octet values.
|
8550
|
+
*
|
8551
|
+
* @param array
|
8552
|
+
* @param encoding
|
8553
|
+
*/
|
8554
|
+
constructor(array: number[], encoding: Encoding);
|
8555
|
+
/**
|
8556
|
+
* Copies the passed `buffer` data onto a new `Buffer` instance.
|
8557
|
+
*
|
8558
|
+
* @param buffer
|
8559
|
+
*/
|
8560
|
+
constructor(buffer: Buffer);
|
8561
|
+
/**
|
8562
|
+
* When passed a reference to the .buffer property of a TypedArray instance, the newly created Buffer will share
|
8563
|
+
* the same allocated memory as the TypedArray. The optional `byteOffset` and `length` arguments specify a memory
|
8564
|
+
* range within the `arrayBuffer` that will be shared by the Buffer.
|
8565
|
+
*
|
8566
|
+
* @param buffer The .buffer property of a TypedArray or a new ArrayBuffer().
|
8567
|
+
* @param byteOffset
|
8568
|
+
* @param length
|
8569
|
+
*/
|
8570
|
+
constructor(buffer: ArrayBuffer, byteOffset?: number, length?: number);
|
8571
|
+
/**
|
8572
|
+
* Return JSON representation of the buffer.
|
8573
|
+
*/
|
8574
|
+
toJSON(): {
|
8575
|
+
type: 'Buffer';
|
8576
|
+
data: number[];
|
8577
|
+
};
|
8578
|
+
/**
|
8579
|
+
* Writes `string` to the buffer at `offset` according to the character encoding in `encoding`. The `length`
|
8580
|
+
* parameter is the number of bytes to write. If the buffer does not contain enough space to fit the entire string,
|
8581
|
+
* only part of `string` will be written. However, partially encoded characters will not be written.
|
8582
|
+
*
|
8583
|
+
* @param string String to write to `buf`.
|
8584
|
+
* @param encoding The character encoding of `string`. Default: `utf8`.
|
8585
|
+
*/
|
8586
|
+
write(string: string, encoding?: Encoding): number;
|
8587
|
+
/**
|
8588
|
+
* Writes `string` to the buffer at `offset` according to the character encoding in `encoding`. The `length`
|
8589
|
+
* parameter is the number of bytes to write. If the buffer does not contain enough space to fit the entire string,
|
8590
|
+
* only part of `string` will be written. However, partially encoded characters will not be written.
|
8591
|
+
*
|
8592
|
+
* @param string String to write to `buf`.
|
8593
|
+
* @param offset Number of bytes to skip before starting to write `string`. Default: `0`.
|
8594
|
+
* @param length Maximum number of bytes to write: Default: `buf.length - offset`.
|
8595
|
+
* @param encoding The character encoding of `string`. Default: `utf8`.
|
8596
|
+
*/
|
8597
|
+
write(string: string, offset?: number, length?: number, encoding?: Encoding): number;
|
8598
|
+
/**
|
8599
|
+
* Decodes the buffer to a string according to the specified character encoding.
|
8600
|
+
* Passing `start` and `end` will decode only a subset of the buffer.
|
8601
|
+
*
|
8602
|
+
* Note that if the encoding is `utf8` and a byte sequence in the input is not valid UTF-8, then each invalid byte
|
8603
|
+
* will be replaced with `U+FFFD`.
|
8604
|
+
*
|
8605
|
+
* @param encoding
|
8606
|
+
* @param start
|
8607
|
+
* @param end
|
8608
|
+
*/
|
8609
|
+
toString(encoding?: Encoding, start?: number, end?: number): string;
|
8610
|
+
/**
|
8611
|
+
* Returns true if this buffer's is equal to the provided buffer, meaning they share the same exact data.
|
8612
|
+
*
|
8613
|
+
* @param otherBuffer
|
8614
|
+
*/
|
8615
|
+
equals(otherBuffer: Buffer): boolean;
|
8616
|
+
/**
|
8617
|
+
* Compares the buffer with `otherBuffer` and returns a number indicating whether the buffer comes before, after,
|
8618
|
+
* or is the same as `otherBuffer` in sort order. Comparison is based on the actual sequence of bytes in each
|
8619
|
+
* buffer.
|
8620
|
+
*
|
8621
|
+
* - `0` is returned if `otherBuffer` is the same as this buffer.
|
8622
|
+
* - `1` is returned if `otherBuffer` should come before this buffer when sorted.
|
8623
|
+
* - `-1` is returned if `otherBuffer` should come after this buffer when sorted.
|
8624
|
+
*
|
8625
|
+
* @param otherBuffer The buffer to compare to.
|
8626
|
+
* @param targetStart The offset within `otherBuffer` at which to begin comparison.
|
8627
|
+
* @param targetEnd The offset within `otherBuffer` at which to end comparison (exclusive).
|
8628
|
+
* @param sourceStart The offset within this buffer at which to begin comparison.
|
8629
|
+
* @param sourceEnd The offset within this buffer at which to end the comparison (exclusive).
|
8630
|
+
*/
|
8631
|
+
compare(otherBuffer: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
|
8632
|
+
/**
|
8633
|
+
* Copies data from a region of this buffer to a region in `targetBuffer`, even if the `targetBuffer` memory
|
8634
|
+
* region overlaps with this buffer.
|
8635
|
+
*
|
8636
|
+
* @param targetBuffer The target buffer to copy into.
|
8637
|
+
* @param targetStart The offset within `targetBuffer` at which to begin writing.
|
8638
|
+
* @param sourceStart The offset within this buffer at which to begin copying.
|
8639
|
+
* @param sourceEnd The offset within this buffer at which to end copying (exclusive).
|
8640
|
+
*/
|
8641
|
+
copy(targetBuffer: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
|
8642
|
+
/**
|
8643
|
+
* Returns a new `Buffer` that references the same memory as the original, but offset and cropped by the `start`
|
8644
|
+
* and `end` indices. This is the same behavior as `buf.subarray()`.
|
8645
|
+
*
|
8646
|
+
* This method is not compatible with the `Uint8Array.prototype.slice()`, which is a superclass of Buffer. To copy
|
8647
|
+
* the slice, use `Uint8Array.prototype.slice()`.
|
8648
|
+
*
|
8649
|
+
* @param start
|
8650
|
+
* @param end
|
8651
|
+
*/
|
8652
|
+
slice(start?: number, end?: number): Buffer;
|
8653
|
+
/**
|
8654
|
+
* Writes `byteLength` bytes of `value` to `buf` at the specified `offset` as little-endian. Supports up to 48 bits
|
8655
|
+
* of accuracy. Behavior is undefined when value is anything other than an unsigned integer.
|
8656
|
+
*
|
8657
|
+
* @param value Number to write.
|
8658
|
+
* @param offset Number of bytes to skip before starting to write.
|
8659
|
+
* @param byteLength Number of bytes to write, between 0 and 6.
|
8660
|
+
* @param noAssert
|
8661
|
+
* @returns `offset` plus the number of bytes written.
|
8662
|
+
*/
|
8663
|
+
writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
|
8664
|
+
/**
|
8665
|
+
* Writes `byteLength` bytes of `value` to `buf` at the specified `offset` as big-endian. Supports up to 48 bits of
|
8666
|
+
* accuracy. Behavior is undefined when `value` is anything other than an unsigned integer.
|
8667
|
+
*
|
8668
|
+
* @param value Number to write.
|
8669
|
+
* @param offset Number of bytes to skip before starting to write.
|
8670
|
+
* @param byteLength Number of bytes to write, between 0 and 6.
|
8671
|
+
* @param noAssert
|
8672
|
+
* @returns `offset` plus the number of bytes written.
|
8673
|
+
*/
|
8674
|
+
writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
|
8675
|
+
/**
|
8676
|
+
* Writes `byteLength` bytes of `value` to `buf` at the specified `offset` as little-endian. Supports up to 48 bits
|
8677
|
+
* of accuracy. Behavior is undefined when `value` is anything other than a signed integer.
|
8678
|
+
*
|
8679
|
+
* @param value Number to write.
|
8680
|
+
* @param offset Number of bytes to skip before starting to write.
|
8681
|
+
* @param byteLength Number of bytes to write, between 0 and 6.
|
8682
|
+
* @param noAssert
|
8683
|
+
* @returns `offset` plus the number of bytes written.
|
8684
|
+
*/
|
8685
|
+
writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
|
8686
|
+
/**
|
8687
|
+
* Writes `byteLength` bytes of `value` to `buf` at the specified `offset` as big-endian. Supports up to 48 bits
|
8688
|
+
* of accuracy. Behavior is undefined when `value` is anything other than a signed integer.
|
8689
|
+
*
|
8690
|
+
* @param value Number to write.
|
8691
|
+
* @param offset Number of bytes to skip before starting to write.
|
8692
|
+
* @param byteLength Number of bytes to write, between 0 and 6.
|
8693
|
+
* @param noAssert
|
8694
|
+
* @returns `offset` plus the number of bytes written.
|
8695
|
+
*/
|
8696
|
+
writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
|
8697
|
+
/**
|
8698
|
+
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an
|
8699
|
+
* unsigned, little-endian integer supporting up to 48 bits of accuracy.
|
8700
|
+
*
|
8701
|
+
* @param offset Number of bytes to skip before starting to read.
|
8702
|
+
* @param byteLength Number of bytes to read, between 0 and 6.
|
8703
|
+
* @param noAssert
|
8704
|
+
*/
|
8705
|
+
readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
|
8706
|
+
/**
|
8707
|
+
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an
|
8708
|
+
* unsigned, big-endian integer supporting up to 48 bits of accuracy.
|
8709
|
+
*
|
8710
|
+
* @param offset Number of bytes to skip before starting to read.
|
8711
|
+
* @param byteLength Number of bytes to read, between 0 and 6.
|
8712
|
+
* @param noAssert
|
8713
|
+
*/
|
8714
|
+
readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
|
8715
|
+
/**
|
8716
|
+
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a
|
8717
|
+
* little-endian, two's complement signed value supporting up to 48 bits of accuracy.
|
8718
|
+
*
|
8719
|
+
* @param offset Number of bytes to skip before starting to read.
|
8720
|
+
* @param byteLength Number of bytes to read, between 0 and 6.
|
8721
|
+
* @param noAssert
|
8722
|
+
*/
|
8723
|
+
readIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
|
8724
|
+
/**
|
8725
|
+
* Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a
|
8726
|
+
* big-endian, two's complement signed value supporting up to 48 bits of accuracy.
|
8727
|
+
*
|
8728
|
+
* @param offset Number of bytes to skip before starting to read.
|
8729
|
+
* @param byteLength Number of bytes to read, between 0 and 6.
|
8730
|
+
* @param noAssert
|
8731
|
+
*/
|
8732
|
+
readIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
|
8733
|
+
/**
|
8734
|
+
* Reads an unsigned 8-bit integer from `buf` at the specified `offset`.
|
8735
|
+
*
|
8736
|
+
* @param offset Number of bytes to skip before starting to read.
|
8737
|
+
* @param noAssert
|
8738
|
+
*/
|
8739
|
+
readUInt8(offset: number, noAssert?: boolean): number;
|
8740
|
+
/**
|
8741
|
+
* Reads an unsigned, little-endian 16-bit integer from `buf` at the specified `offset`.
|
8742
|
+
*
|
8743
|
+
* @param offset Number of bytes to skip before starting to read.
|
8744
|
+
* @param noAssert
|
8745
|
+
*/
|
8746
|
+
readUInt16LE(offset: number, noAssert?: boolean): number;
|
8747
|
+
/**
|
8748
|
+
* Reads an unsigned, big-endian 16-bit integer from `buf` at the specified `offset`.
|
8749
|
+
*
|
8750
|
+
* @param offset Number of bytes to skip before starting to read.
|
8751
|
+
* @param noAssert
|
8752
|
+
*/
|
8753
|
+
readUInt16BE(offset: number, noAssert?: boolean): number;
|
8754
|
+
/**
|
8755
|
+
* Reads an unsigned, little-endian 32-bit integer from `buf` at the specified `offset`.
|
8756
|
+
*
|
8757
|
+
* @param offset Number of bytes to skip before starting to read.
|
8758
|
+
* @param noAssert
|
8759
|
+
*/
|
8760
|
+
readUInt32LE(offset: number, noAssert?: boolean): number;
|
8761
|
+
/**
|
8762
|
+
* Reads an unsigned, big-endian 32-bit integer from `buf` at the specified `offset`.
|
8763
|
+
*
|
8764
|
+
* @param offset Number of bytes to skip before starting to read.
|
8765
|
+
* @param noAssert
|
8766
|
+
*/
|
8767
|
+
readUInt32BE(offset: number, noAssert?: boolean): number;
|
8768
|
+
/**
|
8769
|
+
* Reads a signed 8-bit integer from `buf` at the specified `offset`. Integers read from a `Buffer` are interpreted
|
8770
|
+
* as two's complement signed values.
|
8771
|
+
*
|
8772
|
+
* @param offset Number of bytes to skip before starting to read.
|
8773
|
+
* @param noAssert
|
8774
|
+
*/
|
8775
|
+
readInt8(offset: number, noAssert?: boolean): number;
|
8776
|
+
/**
|
8777
|
+
* Reads a signed, little-endian 16-bit integer from `buf` at the specified `offset`. Integers read from a `Buffer`
|
8778
|
+
* are interpreted as two's complement signed values.
|
8779
|
+
*
|
8780
|
+
* @param offset Number of bytes to skip before starting to read.
|
8781
|
+
* @param noAssert
|
8782
|
+
*/
|
8783
|
+
readInt16LE(offset: number, noAssert?: boolean): number;
|
8784
|
+
/**
|
8785
|
+
* Reads a signed, big-endian 16-bit integer from `buf` at the specified `offset`. Integers read from a `Buffer`
|
8786
|
+
* are interpreted as two's complement signed values.
|
8787
|
+
*
|
8788
|
+
* @param offset Number of bytes to skip before starting to read.
|
8789
|
+
* @param noAssert
|
8790
|
+
*/
|
8791
|
+
readInt16BE(offset: number, noAssert?: boolean): number;
|
8792
|
+
/**
|
8793
|
+
* Reads a signed, little-endian 32-bit integer from `buf` at the specified `offset`. Integers read from a `Buffer`
|
8794
|
+
* are interpreted as two's complement signed values.
|
8795
|
+
*
|
8796
|
+
* @param offset Number of bytes to skip before starting to read.
|
8797
|
+
* @param noAssert
|
8798
|
+
*/
|
8799
|
+
readInt32LE(offset: number, noAssert?: boolean): number;
|
8800
|
+
/**
|
8801
|
+
* Reads a signed, big-endian 32-bit integer from `buf` at the specified `offset`. Integers read from a `Buffer`
|
8802
|
+
* are interpreted as two's complement signed values.
|
8803
|
+
*
|
8804
|
+
* @param offset Number of bytes to skip before starting to read.
|
8805
|
+
* @param noAssert
|
8806
|
+
*/
|
8807
|
+
readInt32BE(offset: number, noAssert?: boolean): number;
|
8808
|
+
/**
|
8809
|
+
* Interprets `buf` as an array of unsigned 16-bit integers and swaps the byte order in-place.
|
8810
|
+
* Throws a `RangeError` if `buf.length` is not a multiple of 2.
|
8811
|
+
*/
|
8812
|
+
swap16(): Buffer;
|
8813
|
+
/**
|
8814
|
+
* Interprets `buf` as an array of unsigned 32-bit integers and swaps the byte order in-place.
|
8815
|
+
* Throws a `RangeError` if `buf.length` is not a multiple of 4.
|
8816
|
+
*/
|
8817
|
+
swap32(): Buffer;
|
8818
|
+
/**
|
8819
|
+
* Interprets `buf` as an array of unsigned 64-bit integers and swaps the byte order in-place.
|
8820
|
+
* Throws a `RangeError` if `buf.length` is not a multiple of 8.
|
8821
|
+
*/
|
8822
|
+
swap64(): Buffer;
|
8823
|
+
/**
|
8824
|
+
* Swaps two octets.
|
8825
|
+
*
|
8826
|
+
* @param b
|
8827
|
+
* @param n
|
8828
|
+
* @param m
|
8829
|
+
*/
|
8830
|
+
private _swap;
|
8831
|
+
/**
|
8832
|
+
* Writes `value` to `buf` at the specified `offset`. The `value` must be a valid unsigned 8-bit integer.
|
8833
|
+
* Behavior is undefined when `value` is anything other than an unsigned 8-bit integer.
|
8834
|
+
*
|
8835
|
+
* @param value Number to write.
|
8836
|
+
* @param offset Number of bytes to skip before starting to write.
|
8837
|
+
* @param noAssert
|
8838
|
+
* @returns `offset` plus the number of bytes written.
|
8839
|
+
*/
|
8840
|
+
writeUInt8(value: number, offset: number, noAssert?: boolean): number;
|
8841
|
+
/**
|
8842
|
+
* Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 16-bit
|
8843
|
+
* integer. Behavior is undefined when `value` is anything other than an unsigned 16-bit integer.
|
8844
|
+
*
|
8845
|
+
* @param value Number to write.
|
8846
|
+
* @param offset Number of bytes to skip before starting to write.
|
8847
|
+
* @param noAssert
|
8848
|
+
* @returns `offset` plus the number of bytes written.
|
8849
|
+
*/
|
8850
|
+
writeUInt16LE(value: number | string, offset: number, noAssert?: boolean): number;
|
8851
|
+
/**
|
8852
|
+
* Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 16-bit
|
8853
|
+
* integer. Behavior is undefined when `value` is anything other than an unsigned 16-bit integer.
|
8854
|
+
*
|
8855
|
+
* @param value Number to write.
|
8856
|
+
* @param offset Number of bytes to skip before starting to write.
|
8857
|
+
* @param noAssert
|
8858
|
+
* @returns `offset` plus the number of bytes written.
|
8859
|
+
*/
|
8860
|
+
writeUInt16BE(value: number, offset: number, noAssert?: boolean): number;
|
8861
|
+
/**
|
8862
|
+
* Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 32-bit
|
8863
|
+
* integer. Behavior is undefined when `value` is anything other than an unsigned 32-bit integer.
|
8864
|
+
*
|
8865
|
+
* @param value Number to write.
|
8866
|
+
* @param offset Number of bytes to skip before starting to write.
|
8867
|
+
* @param noAssert
|
8868
|
+
* @returns `offset` plus the number of bytes written.
|
8869
|
+
*/
|
8870
|
+
writeUInt32LE(value: number, offset: number, noAssert?: boolean): number;
|
8871
|
+
/**
|
8872
|
+
* Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 32-bit
|
8873
|
+
* integer. Behavior is undefined when `value` is anything other than an unsigned 32-bit integer.
|
8874
|
+
*
|
8875
|
+
* @param value Number to write.
|
8876
|
+
* @param offset Number of bytes to skip before starting to write.
|
8877
|
+
* @param noAssert
|
8878
|
+
* @returns `offset` plus the number of bytes written.
|
8879
|
+
*/
|
8880
|
+
writeUInt32BE(value: number, offset: number, noAssert?: boolean): number;
|
8881
|
+
/**
|
8882
|
+
* Writes `value` to `buf` at the specified `offset`. The `value` must be a valid signed 8-bit integer.
|
8883
|
+
* Behavior is undefined when `value` is anything other than a signed 8-bit integer.
|
8884
|
+
*
|
8885
|
+
* @param value Number to write.
|
8886
|
+
* @param offset Number of bytes to skip before starting to write.
|
8887
|
+
* @param noAssert
|
8888
|
+
* @returns `offset` plus the number of bytes written.
|
8889
|
+
*/
|
8890
|
+
writeInt8(value: number, offset: number, noAssert?: boolean): number;
|
8891
|
+
/**
|
8892
|
+
* Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid signed 16-bit
|
8893
|
+
* integer. Behavior is undefined when `value` is anything other than a signed 16-bit integer.
|
8894
|
+
*
|
8895
|
+
* @param value Number to write.
|
8896
|
+
* @param offset Number of bytes to skip before starting to write.
|
8897
|
+
* @param noAssert
|
8898
|
+
* @returns `offset` plus the number of bytes written.
|
8899
|
+
*/
|
8900
|
+
writeInt16LE(value: number, offset: number, noAssert?: boolean): number;
|
8901
|
+
/**
|
8902
|
+
* Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid signed 16-bit
|
8903
|
+
* integer. Behavior is undefined when `value` is anything other than a signed 16-bit integer.
|
8904
|
+
*
|
8905
|
+
* @param value Number to write.
|
8906
|
+
* @param offset Number of bytes to skip before starting to write.
|
8907
|
+
* @param noAssert
|
8908
|
+
* @returns `offset` plus the number of bytes written.
|
8909
|
+
*/
|
8910
|
+
writeInt16BE(value: number, offset: number, noAssert?: boolean): number;
|
8911
|
+
/**
|
8912
|
+
* Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid signed 32-bit
|
8913
|
+
* integer. Behavior is undefined when `value` is anything other than a signed 32-bit integer.
|
8914
|
+
*
|
8915
|
+
* @param value Number to write.
|
8916
|
+
* @param offset Number of bytes to skip before starting to write.
|
8917
|
+
* @param noAssert
|
8918
|
+
* @returns `offset` plus the number of bytes written.
|
8919
|
+
*/
|
8920
|
+
writeInt32LE(value: number, offset: number, noAssert?: boolean): number;
|
8921
|
+
/**
|
8922
|
+
* Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid signed 32-bit
|
8923
|
+
* integer. Behavior is undefined when `value` is anything other than a signed 32-bit integer.
|
8924
|
+
*
|
8925
|
+
* @param value Number to write.
|
8926
|
+
* @param offset Number of bytes to skip before starting to write.
|
8927
|
+
* @param noAssert
|
8928
|
+
* @returns `offset` plus the number of bytes written.
|
8929
|
+
*/
|
8930
|
+
writeInt32BE(value: number, offset: number, noAssert?: boolean): number;
|
8931
|
+
/**
|
8932
|
+
* Fills `buf` with the specified `value`. If the `offset` and `end` are not given, the entire `buf` will be
|
8933
|
+
* filled. The `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or integer. If the resulting
|
8934
|
+
* integer is greater than `255` (decimal), then `buf` will be filled with `value & 255`.
|
8935
|
+
*
|
8936
|
+
* If the final write of a `fill()` operation falls on a multi-byte character, then only the bytes of that
|
8937
|
+
* character that fit into `buf` are written.
|
8938
|
+
*
|
8939
|
+
* If `value` contains invalid characters, it is truncated; if no valid fill data remains, an exception is thrown.
|
8940
|
+
*
|
8941
|
+
* @param value
|
8942
|
+
* @param encoding
|
8943
|
+
*/
|
8944
|
+
fill(value: any, offset?: number, end?: number, encoding?: Encoding): this;
|
8945
|
+
/**
|
8946
|
+
* Returns the index of the specified value.
|
8947
|
+
*
|
8948
|
+
* If `value` is:
|
8949
|
+
* - a string, `value` is interpreted according to the character encoding in `encoding`.
|
8950
|
+
* - a `Buffer` or `Uint8Array`, `value` will be used in its entirety. To compare a partial Buffer, use `slice()`.
|
8951
|
+
* - a number, `value` will be interpreted as an unsigned 8-bit integer value between `0` and `255`.
|
8952
|
+
*
|
8953
|
+
* Any other types will throw a `TypeError`.
|
8954
|
+
*
|
8955
|
+
* @param value What to search for.
|
8956
|
+
* @param byteOffset Where to begin searching in `buf`. If negative, then calculated from the end.
|
8957
|
+
* @param encoding If `value` is a string, this is the encoding used to search.
|
8958
|
+
* @returns The index of the first occurrence of `value` in `buf`, or `-1` if not found.
|
8959
|
+
*/
|
8960
|
+
indexOf(value: string | number | Buffer, byteOffset?: number, encoding?: Encoding): number;
|
8961
|
+
/**
|
8962
|
+
* Gets the last index of the specified value.
|
8963
|
+
*
|
8964
|
+
* @see indexOf()
|
8965
|
+
* @param value
|
8966
|
+
* @param byteOffset
|
8967
|
+
* @param encoding
|
8968
|
+
*/
|
8969
|
+
lastIndexOf(value: string | number | Buffer, byteOffset?: number, encoding?: Encoding): number;
|
8970
|
+
private _bidirectionalIndexOf;
|
8971
|
+
/**
|
8972
|
+
* Equivalent to `buf.indexOf() !== -1`.
|
8973
|
+
*
|
8974
|
+
* @param value
|
8975
|
+
* @param byteOffset
|
8976
|
+
* @param encoding
|
8977
|
+
*/
|
8978
|
+
includes(value: string | number | Buffer, byteOffset?: number, encoding?: Encoding): boolean;
|
8979
|
+
/**
|
8980
|
+
* Allocates a new Buffer using an `array` of octet values.
|
8981
|
+
*
|
8982
|
+
* @param array
|
8983
|
+
*/
|
8984
|
+
static from(array: number[]): Buffer;
|
8985
|
+
/**
|
8986
|
+
* When passed a reference to the .buffer property of a TypedArray instance, the newly created Buffer will share
|
8987
|
+
* the same allocated memory as the TypedArray. The optional `byteOffset` and `length` arguments specify a memory
|
8988
|
+
* range within the `arrayBuffer` that will be shared by the Buffer.
|
8989
|
+
*
|
8990
|
+
* @param buffer The .buffer property of a TypedArray or a new ArrayBuffer().
|
8991
|
+
* @param byteOffset
|
8992
|
+
* @param length
|
8993
|
+
*/
|
8994
|
+
static from(buffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
|
8995
|
+
/**
|
8996
|
+
* Copies the passed `buffer` data onto a new Buffer instance.
|
8997
|
+
*
|
8998
|
+
* @param buffer
|
8999
|
+
*/
|
9000
|
+
static from(buffer: Buffer | Uint8Array): Buffer;
|
9001
|
+
/**
|
9002
|
+
* Creates a new Buffer containing the given string `str`. If provided, the `encoding` parameter identifies the
|
9003
|
+
* character encoding.
|
9004
|
+
*
|
9005
|
+
* @param str String to store in buffer.
|
9006
|
+
* @param encoding Encoding to use, optional. Default is `utf8`.
|
9007
|
+
*/
|
9008
|
+
static from(str: string, encoding?: Encoding): Buffer;
|
9009
|
+
/**
|
9010
|
+
* Returns true if `obj` is a Buffer.
|
9011
|
+
*
|
9012
|
+
* @param obj
|
9013
|
+
*/
|
9014
|
+
static isBuffer(obj: any): obj is Buffer;
|
9015
|
+
/**
|
9016
|
+
* Returns true if `encoding` is a supported encoding.
|
9017
|
+
*
|
9018
|
+
* @param encoding
|
9019
|
+
*/
|
9020
|
+
static isEncoding(encoding: string): encoding is Encoding;
|
9021
|
+
/**
|
9022
|
+
* Gives the actual byte length of a string for an encoding. This is not the same as `string.length` since that
|
9023
|
+
* returns the number of characters in the string.
|
9024
|
+
*
|
9025
|
+
* @param string The string to test.
|
9026
|
+
* @param encoding The encoding to use for calculation. Defaults is `utf8`.
|
9027
|
+
*/
|
9028
|
+
static byteLength(string: string | Buffer | ArrayBuffer, encoding?: Encoding): number;
|
9029
|
+
/**
|
9030
|
+
* Returns a Buffer which is the result of concatenating all the buffers in the list together.
|
9031
|
+
*
|
9032
|
+
* - If the list has no items, or if the `totalLength` is 0, then it returns a zero-length buffer.
|
9033
|
+
* - If the list has exactly one item, then the first item is returned.
|
9034
|
+
* - If the list has more than one item, then a new buffer is created.
|
9035
|
+
*
|
9036
|
+
* It is faster to provide the `totalLength` if it is known. However, it will be calculated if not provided at
|
9037
|
+
* a small computational expense.
|
9038
|
+
*
|
9039
|
+
* @param list An array of Buffer objects to concatenate.
|
9040
|
+
* @param totalLength Total length of the buffers when concatenated.
|
9041
|
+
*/
|
9042
|
+
static concat(list: Uint8Array[], totalLength?: number): Buffer;
|
9043
|
+
/**
|
9044
|
+
* The same as `buf1.compare(buf2)`.
|
9045
|
+
*/
|
9046
|
+
static compare(buf1: Uint8Array, buf2: Uint8Array): number;
|
9047
|
+
/**
|
9048
|
+
* Allocates a new buffer of `size` octets.
|
9049
|
+
*
|
9050
|
+
* @param size The number of octets to allocate.
|
9051
|
+
* @param fill If specified, the buffer will be initialized by calling `buf.fill(fill)`, or with zeroes otherwise.
|
9052
|
+
* @param encoding The encoding used for the call to `buf.fill()` while initializing.
|
9053
|
+
*/
|
9054
|
+
static alloc(size: number, fill?: string | Buffer | number, encoding?: Encoding): Buffer;
|
9055
|
+
/**
|
9056
|
+
* Allocates a new buffer of `size` octets without initializing memory. The contents of the buffer are unknown.
|
9057
|
+
*
|
9058
|
+
* @param size
|
9059
|
+
*/
|
9060
|
+
static allocUnsafe(size: number): Buffer;
|
9061
|
+
/**
|
9062
|
+
* Returns true if the given `obj` is an instance of `type`.
|
9063
|
+
*
|
9064
|
+
* @param obj
|
9065
|
+
* @param type
|
9066
|
+
*/
|
9067
|
+
private static _isInstance;
|
9068
|
+
private static _checked;
|
9069
|
+
private static _blitBuffer;
|
9070
|
+
private static _utf8Write;
|
9071
|
+
private static _asciiWrite;
|
9072
|
+
private static _base64Write;
|
9073
|
+
private static _ucs2Write;
|
9074
|
+
private static _hexWrite;
|
9075
|
+
private static _utf8ToBytes;
|
9076
|
+
private static _base64ToBytes;
|
9077
|
+
private static _asciiToBytes;
|
9078
|
+
private static _utf16leToBytes;
|
9079
|
+
private static _hexSlice;
|
9080
|
+
private static _base64Slice;
|
9081
|
+
private static _utf8Slice;
|
9082
|
+
private static _decodeCodePointsArray;
|
9083
|
+
private static _asciiSlice;
|
9084
|
+
private static _latin1Slice;
|
9085
|
+
private static _utf16leSlice;
|
9086
|
+
private static _arrayIndexOf;
|
9087
|
+
private static _checkOffset;
|
9088
|
+
private static _checkInt;
|
9089
|
+
private static _getEncoding;
|
9090
|
+
}
|
9091
|
+
/**
|
9092
|
+
* The encodings that are supported in both native and polyfilled `Buffer` instances.
|
9093
|
+
*/
|
9094
|
+
type Encoding = 'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'binary' | 'hex' | 'latin1' | 'base64';
|
9095
|
+
|
7120
9096
|
type XataFileEditableFields = Partial<Pick<XataArrayFile, keyof InputFileEntry>>;
|
7121
9097
|
type XataFileFields = Partial<Pick<XataArrayFile, {
|
7122
9098
|
[K in StringKeys<XataArrayFile>]: XataArrayFile[K] extends Function ? never : K;
|
@@ -7230,9 +9206,9 @@ type SelectedPick<O extends XataRecord, Key extends SelectableColumnWithObjectNo
|
|
7230
9206
|
};
|
7231
9207
|
};
|
7232
9208
|
}>>;
|
7233
|
-
type ValueAtColumn<
|
9209
|
+
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> ? {
|
7234
9210
|
V: ValueAtColumn<Item, V, [...RecursivePath, Item]>;
|
7235
|
-
} : never :
|
9211
|
+
} : never : Obj[K] : never> : never : never;
|
7236
9212
|
type MAX_RECURSION = 3;
|
7237
9213
|
type NestedColumns<O, RecursivePath extends any[]> = RecursivePath['length'] extends MAX_RECURSION ? never : If<IsObject<O>, Values<{
|
7238
9214
|
[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
|
@@ -7363,13 +9339,13 @@ type XataRecordMetadata = {
|
|
7363
9339
|
declare function isIdentifiable(x: any): x is Identifiable & Record<string, unknown>;
|
7364
9340
|
declare function isXataRecord(x: any): x is XataRecord & Record<string, unknown>;
|
7365
9341
|
type NumericOperator = ExclusiveOr<{
|
7366
|
-
$increment
|
9342
|
+
$increment: number;
|
7367
9343
|
}, ExclusiveOr<{
|
7368
|
-
$decrement
|
9344
|
+
$decrement: number;
|
7369
9345
|
}, ExclusiveOr<{
|
7370
|
-
$multiply
|
9346
|
+
$multiply: number;
|
7371
9347
|
}, {
|
7372
|
-
$divide
|
9348
|
+
$divide: number;
|
7373
9349
|
}>>>;
|
7374
9350
|
type InputXataFile = Partial<XataArrayFile> | Promise<Partial<XataArrayFile>>;
|
7375
9351
|
type EditableDataFields<T> = T extends XataRecord ? {
|
@@ -7637,10 +9613,11 @@ type SearchPluginResult<Schemas extends Record<string, BaseData>> = {
|
|
7637
9613
|
declare class SearchPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
|
7638
9614
|
#private;
|
7639
9615
|
private db;
|
7640
|
-
constructor(db: SchemaPluginResult<Schemas
|
9616
|
+
constructor(db: SchemaPluginResult<Schemas>);
|
7641
9617
|
build(pluginOptions: XataPluginOptions): SearchPluginResult<Schemas>;
|
7642
9618
|
}
|
7643
|
-
type SearchXataRecord<Record extends XataRecord> = Omit<Record, 'getMetadata'> & {
|
9619
|
+
type SearchXataRecord<Record extends XataRecord> = Omit<Record, 'getMetadata' | 'xata'> & {
|
9620
|
+
xata: XataRecordMetadata & SearchExtraProperties;
|
7644
9621
|
getMetadata: () => XataRecordMetadata & SearchExtraProperties;
|
7645
9622
|
};
|
7646
9623
|
type SearchExtraProperties = {
|
@@ -7961,7 +9938,7 @@ type QueryOptions<T extends XataRecord> = BaseOptions<T> & (CursorQueryOptions |
|
|
7961
9938
|
declare class Query<Record extends XataRecord, Result extends XataRecord = Record> implements Paginable<Record, Result> {
|
7962
9939
|
#private;
|
7963
9940
|
readonly meta: PaginationQueryMeta;
|
7964
|
-
readonly records:
|
9941
|
+
readonly records: PageRecordArray<Result>;
|
7965
9942
|
constructor(repository: RestRepository<Record> | null, table: {
|
7966
9943
|
name: string;
|
7967
9944
|
schema?: Table;
|
@@ -8089,25 +10066,25 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
8089
10066
|
* Performs the query in the database and returns a set of results.
|
8090
10067
|
* @returns An array of records from the database.
|
8091
10068
|
*/
|
8092
|
-
getMany(): Promise<
|
10069
|
+
getMany(): Promise<PageRecordArray<Result>>;
|
8093
10070
|
/**
|
8094
10071
|
* Performs the query in the database and returns a set of results.
|
8095
10072
|
* @param options Additional options to be used when performing the query.
|
8096
10073
|
* @returns An array of records from the database.
|
8097
10074
|
*/
|
8098
|
-
getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<
|
10075
|
+
getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<PageRecordArray<SelectedPick<Record, (typeof options)['columns']>>>;
|
8099
10076
|
/**
|
8100
10077
|
* Performs the query in the database and returns a set of results.
|
8101
10078
|
* @param options Additional options to be used when performing the query.
|
8102
10079
|
* @returns An array of records from the database.
|
8103
10080
|
*/
|
8104
|
-
getMany(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<
|
10081
|
+
getMany(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<PageRecordArray<Result>>;
|
8105
10082
|
/**
|
8106
10083
|
* Performs the query in the database and returns all the results.
|
8107
10084
|
* Warning: If there are a large number of results, this method can have performance implications.
|
8108
10085
|
* @returns An array of records from the database.
|
8109
10086
|
*/
|
8110
|
-
getAll(): Promise<Result
|
10087
|
+
getAll(): Promise<RecordArray<Result>>;
|
8111
10088
|
/**
|
8112
10089
|
* Performs the query in the database and returns all the results.
|
8113
10090
|
* Warning: If there are a large number of results, this method can have performance implications.
|
@@ -8116,7 +10093,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
8116
10093
|
*/
|
8117
10094
|
getAll<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'> & {
|
8118
10095
|
batchSize?: number;
|
8119
|
-
}>(options: Options): Promise<SelectedPick<Record, (typeof options)['columns']
|
10096
|
+
}>(options: Options): Promise<RecordArray<SelectedPick<Record, (typeof options)['columns']>>>;
|
8120
10097
|
/**
|
8121
10098
|
* Performs the query in the database and returns all the results.
|
8122
10099
|
* Warning: If there are a large number of results, this method can have performance implications.
|
@@ -8125,7 +10102,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
8125
10102
|
*/
|
8126
10103
|
getAll(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'> & {
|
8127
10104
|
batchSize?: number;
|
8128
|
-
}): Promise<Result
|
10105
|
+
}): Promise<RecordArray<Result>>;
|
8129
10106
|
/**
|
8130
10107
|
* Performs the query in the database and returns the first result.
|
8131
10108
|
* @returns The first record that matches the query, or null if no record matched the query.
|
@@ -8209,7 +10186,7 @@ type PaginationQueryMeta = {
|
|
8209
10186
|
};
|
8210
10187
|
interface Paginable<Record extends XataRecord, Result extends XataRecord = Record> {
|
8211
10188
|
meta: PaginationQueryMeta;
|
8212
|
-
records:
|
10189
|
+
records: PageRecordArray<Result>;
|
8213
10190
|
nextPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
|
8214
10191
|
previousPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
|
8215
10192
|
startPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
|
@@ -8229,7 +10206,7 @@ declare class Page<Record extends XataRecord, Result extends XataRecord = Record
|
|
8229
10206
|
/**
|
8230
10207
|
* The set of results for this page.
|
8231
10208
|
*/
|
8232
|
-
readonly records:
|
10209
|
+
readonly records: PageRecordArray<Result>;
|
8233
10210
|
constructor(query: Query<Record, Result>, meta: PaginationQueryMeta, records?: Result[]);
|
8234
10211
|
/**
|
8235
10212
|
* Retrieves the next page of results.
|
@@ -8283,6 +10260,14 @@ declare const PAGINATION_MAX_OFFSET = 49000;
|
|
8283
10260
|
declare const PAGINATION_DEFAULT_OFFSET = 0;
|
8284
10261
|
declare function isCursorPaginationOptions(options: Record<string, unknown> | undefined | null): options is CursorNavigationOptions;
|
8285
10262
|
declare class RecordArray<Result extends XataRecord> extends Array<Result> {
|
10263
|
+
constructor(overrideRecords?: Result[]);
|
10264
|
+
static parseConstructorParams(...args: any[]): any[];
|
10265
|
+
toArray(): Result[];
|
10266
|
+
toSerializable(): JSONData<Result>[];
|
10267
|
+
toString(): string;
|
10268
|
+
map<U>(callbackfn: (value: Result, index: number, array: Result[]) => U, thisArg?: any): U[];
|
10269
|
+
}
|
10270
|
+
declare class PageRecordArray<Result extends XataRecord> extends Array<Result> {
|
8286
10271
|
#private;
|
8287
10272
|
constructor(page: Paginable<any, Result>, overrideRecords?: Result[]);
|
8288
10273
|
static parseConstructorParams(...args: any[]): any[];
|
@@ -8295,25 +10280,25 @@ declare class RecordArray<Result extends XataRecord> extends Array<Result> {
|
|
8295
10280
|
*
|
8296
10281
|
* @returns A new array of objects
|
8297
10282
|
*/
|
8298
|
-
nextPage(size?: number, offset?: number): Promise<
|
10283
|
+
nextPage(size?: number, offset?: number): Promise<PageRecordArray<Result>>;
|
8299
10284
|
/**
|
8300
10285
|
* Retrieve previous page of records
|
8301
10286
|
*
|
8302
10287
|
* @returns A new array of objects
|
8303
10288
|
*/
|
8304
|
-
previousPage(size?: number, offset?: number): Promise<
|
10289
|
+
previousPage(size?: number, offset?: number): Promise<PageRecordArray<Result>>;
|
8305
10290
|
/**
|
8306
10291
|
* Retrieve start page of records
|
8307
10292
|
*
|
8308
10293
|
* @returns A new array of objects
|
8309
10294
|
*/
|
8310
|
-
startPage(size?: number, offset?: number): Promise<
|
10295
|
+
startPage(size?: number, offset?: number): Promise<PageRecordArray<Result>>;
|
8311
10296
|
/**
|
8312
10297
|
* Retrieve end page of records
|
8313
10298
|
*
|
8314
10299
|
* @returns A new array of objects
|
8315
10300
|
*/
|
8316
|
-
endPage(size?: number, offset?: number): Promise<
|
10301
|
+
endPage(size?: number, offset?: number): Promise<PageRecordArray<Result>>;
|
8317
10302
|
/**
|
8318
10303
|
* @returns Boolean indicating if there is a next page
|
8319
10304
|
*/
|
@@ -9050,7 +11035,7 @@ type PropertyType<Tables, Properties, PropertyName extends PropertyKey> = Proper
|
|
9050
11035
|
} : {
|
9051
11036
|
[K in PropertyName]?: InnerType<Type, Tables, LinkedTable> | null;
|
9052
11037
|
} : never : never;
|
9053
|
-
type InnerType<Type, Tables, LinkedTable> = Type extends 'string' | 'text' | 'email' ? string : Type extends 'int' | 'float' ? number : Type extends 'bool' ? boolean : Type extends 'datetime' ? Date : Type extends 'multiple' ? string[] : Type extends 'vector' ? number[] : Type extends 'file' ? XataFile : Type extends 'file[]' ? XataArrayFile[] : Type extends 'json' ? JSONValue<any> : Type extends 'link' ? TableType<Tables, LinkedTable> & XataRecord :
|
11038
|
+
type InnerType<Type, Tables, LinkedTable> = Type extends 'string' | 'text' | 'email' | 'character' | 'varchar' | 'character varying' | `varchar(${number})` | `character(${number})` ? string : Type extends 'int' | 'float' | 'bigint' | 'int8' | 'integer' | 'int4' | 'smallint' | 'double precision' | 'float8' | 'real' | 'numeric' ? number : Type extends 'bool' | 'boolean' ? boolean : Type extends 'datetime' | 'timestamptz' ? Date : Type extends 'multiple' | 'text[]' ? string[] : Type extends 'vector' | 'real[]' | 'float[]' | 'double precision[]' | 'float8[]' | 'numeric[]' ? number[] : Type extends 'int[]' | 'bigint[]' | 'int8[]' | 'integer[]' | 'int4[]' | 'smallint[]' ? number[] : Type extends 'bool[]' | 'boolean[]' ? boolean[] : Type extends 'file' | 'xata_file' ? XataFile : Type extends 'file[]' | 'xata_file_array' ? XataArrayFile[] : Type extends 'json' | 'jsonb' ? JSONValue<any> : Type extends 'link' ? TableType<Tables, LinkedTable> & XataRecord : string;
|
9054
11039
|
|
9055
11040
|
/**
|
9056
11041
|
* Operator to restrict results to only values that are greater than the given value.
|
@@ -9103,11 +11088,11 @@ declare const le: <T extends ComparableType>(value: T) => ComparableTypeFilter<T
|
|
9103
11088
|
/**
|
9104
11089
|
* Operator to restrict results to only values that are not null.
|
9105
11090
|
*/
|
9106
|
-
declare const exists: <T>(column?: FilterColumns<T>
|
11091
|
+
declare const exists: <T>(column?: FilterColumns<T>) => ExistanceFilter<T>;
|
9107
11092
|
/**
|
9108
11093
|
* Operator to restrict results to only values that are null.
|
9109
11094
|
*/
|
9110
|
-
declare const notExists: <T>(column?: FilterColumns<T>
|
11095
|
+
declare const notExists: <T>(column?: FilterColumns<T>) => ExistanceFilter<T>;
|
9111
11096
|
/**
|
9112
11097
|
* Operator to restrict results to only values that start with the given prefix.
|
9113
11098
|
*/
|
@@ -9169,7 +11154,7 @@ type SchemaPluginResult<Schemas extends Record<string, XataRecord>> = {
|
|
9169
11154
|
};
|
9170
11155
|
declare class SchemaPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
|
9171
11156
|
#private;
|
9172
|
-
constructor(
|
11157
|
+
constructor();
|
9173
11158
|
build(pluginOptions: XataPluginOptions): SchemaPluginResult<Schemas>;
|
9174
11159
|
}
|
9175
11160
|
|
@@ -9210,18 +11195,112 @@ declare class FilesPlugin<Schemas extends Record<string, XataRecord>> extends Xa
|
|
9210
11195
|
}
|
9211
11196
|
|
9212
11197
|
type SQLQueryParams<T = any[]> = {
|
11198
|
+
/**
|
11199
|
+
* The SQL statement to execute.
|
11200
|
+
* @example
|
11201
|
+
* ```ts
|
11202
|
+
* const { records } = await xata.sql<TeamsRecord>({
|
11203
|
+
* statement: `SELECT * FROM teams WHERE name = $1`,
|
11204
|
+
* params: ['A name']
|
11205
|
+
* });
|
11206
|
+
* ```
|
11207
|
+
*
|
11208
|
+
* Be careful when using this with user input and use parametrized statements to avoid SQL injection.
|
11209
|
+
*/
|
9213
11210
|
statement: string;
|
11211
|
+
/**
|
11212
|
+
* The parameters to pass to the SQL statement.
|
11213
|
+
*/
|
9214
11214
|
params?: T;
|
11215
|
+
/**
|
11216
|
+
* The consistency level to use when executing the query.
|
11217
|
+
* @default 'strong'
|
11218
|
+
*/
|
11219
|
+
consistency?: 'strong' | 'eventual';
|
11220
|
+
/**
|
11221
|
+
* The response type to use when executing the query.
|
11222
|
+
* @default 'json'
|
11223
|
+
*/
|
11224
|
+
responseType?: 'json' | 'array';
|
11225
|
+
};
|
11226
|
+
type SQLBatchQuery = {
|
11227
|
+
/**
|
11228
|
+
* The SQL statements to execute.
|
11229
|
+
*/
|
11230
|
+
statements: {
|
11231
|
+
/**
|
11232
|
+
* The SQL statement to execute.
|
11233
|
+
*/
|
11234
|
+
statement: string;
|
11235
|
+
/**
|
11236
|
+
* The parameters to pass to the SQL statement.
|
11237
|
+
*/
|
11238
|
+
params?: any[];
|
11239
|
+
}[];
|
11240
|
+
/**
|
11241
|
+
* The consistency level to use when executing the queries.
|
11242
|
+
* @default 'strong'
|
11243
|
+
*/
|
9215
11244
|
consistency?: 'strong' | 'eventual';
|
11245
|
+
/**
|
11246
|
+
* The response type to use when executing the queries.
|
11247
|
+
* @default 'json'
|
11248
|
+
*/
|
11249
|
+
responseType?: 'json' | 'array';
|
9216
11250
|
};
|
9217
|
-
type SQLQuery = TemplateStringsArray | SQLQueryParams
|
9218
|
-
type
|
11251
|
+
type SQLQuery = TemplateStringsArray | SQLQueryParams;
|
11252
|
+
type SQLResponseType = 'json' | 'array';
|
11253
|
+
type SQLQueryResultJSON<T> = {
|
11254
|
+
/**
|
11255
|
+
* The records returned by the query.
|
11256
|
+
*/
|
9219
11257
|
records: T[];
|
9220
|
-
|
9221
|
-
|
11258
|
+
/**
|
11259
|
+
* The columns metadata returned by the query.
|
11260
|
+
*/
|
11261
|
+
columns: Array<{
|
11262
|
+
name: string;
|
11263
|
+
type: string;
|
9222
11264
|
}>;
|
11265
|
+
/**
|
11266
|
+
* Optional warning message returned by the query.
|
11267
|
+
*/
|
9223
11268
|
warning?: string;
|
9224
|
-
}
|
11269
|
+
};
|
11270
|
+
type SQLQueryResultArray = {
|
11271
|
+
/**
|
11272
|
+
* The records returned by the query.
|
11273
|
+
*/
|
11274
|
+
rows: any[][];
|
11275
|
+
/**
|
11276
|
+
* The columns metadata returned by the query.
|
11277
|
+
*/
|
11278
|
+
columns: Array<{
|
11279
|
+
name: string;
|
11280
|
+
type: string;
|
11281
|
+
}>;
|
11282
|
+
/**
|
11283
|
+
* Optional warning message returned by the query.
|
11284
|
+
*/
|
11285
|
+
warning?: string;
|
11286
|
+
};
|
11287
|
+
type SQLQueryResult<T, Mode extends SQLResponseType = 'json'> = Mode extends 'json' ? SQLQueryResultJSON<T> : Mode extends 'array' ? SQLQueryResultArray : never;
|
11288
|
+
type SQLPluginFunction = <T, Query extends SQLQuery = SQLQuery>(query: Query, ...parameters: any[]) => Promise<SQLQueryResult<T, Query extends SQLQueryParams<any> ? Query['responseType'] extends SQLResponseType ? NonNullable<Query['responseType']> : 'json' : 'json'>>;
|
11289
|
+
type SQLPluginResult = SQLPluginFunction & {
|
11290
|
+
/**
|
11291
|
+
* Connection string to use when connecting to the database.
|
11292
|
+
* It includes the workspace, region, database and branch.
|
11293
|
+
* Connects with the same credentials as the Xata client.
|
11294
|
+
*/
|
11295
|
+
connectionString: string;
|
11296
|
+
/**
|
11297
|
+
* Executes a batch of SQL statements.
|
11298
|
+
* @param query The batch of SQL statements to execute.
|
11299
|
+
*/
|
11300
|
+
batch: <Query extends SQLBatchQuery = SQLBatchQuery>(query: Query) => Promise<{
|
11301
|
+
results: Array<SQLQueryResult<any, Query extends SQLBatchQuery ? Query['responseType'] extends SQLResponseType ? NonNullable<Query['responseType']> : 'json' : 'json'>>;
|
11302
|
+
}>;
|
11303
|
+
};
|
9225
11304
|
declare class SQLPlugin extends XataPlugin {
|
9226
11305
|
build(pluginOptions: XataPluginOptions): SQLPluginResult;
|
9227
11306
|
}
|
@@ -9337,7 +11416,7 @@ type BaseClientOptions = {
|
|
9337
11416
|
clientName?: string;
|
9338
11417
|
xataAgentExtra?: Record<string, string>;
|
9339
11418
|
};
|
9340
|
-
declare const buildClient: <Plugins extends Record<string, XataPlugin> = {}>(plugins?: Plugins
|
11419
|
+
declare const buildClient: <Plugins extends Record<string, XataPlugin> = {}>(plugins?: Plugins) => ClientConstructor<Plugins>;
|
9341
11420
|
interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
|
9342
11421
|
new <Schemas extends Record<string, XataRecord> = {}>(options?: Partial<BaseClientOptions>, schemaTables?: readonly BaseSchema[]): Omit<{
|
9343
11422
|
db: Awaited<ReturnType<SchemaPlugin<Schemas>['build']>>;
|
@@ -9388,4 +11467,4 @@ declare class XataError extends Error {
|
|
9388
11467
|
constructor(message: string, status: number);
|
9389
11468
|
}
|
9390
11469
|
|
9391
|
-
export { type AcceptWorkspaceMemberInviteError, type AcceptWorkspaceMemberInvitePathParams, type AcceptWorkspaceMemberInviteVariables, 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, type BulkInsertTableRecordsError, type BulkInsertTableRecordsPathParams, type BulkInsertTableRecordsQueryParams, type BulkInsertTableRecordsRequestBody, type BulkInsertTableRecordsVariables, type CacheImpl, type CancelWorkspaceMemberInviteError, type CancelWorkspaceMemberInvitePathParams, type CancelWorkspaceMemberInviteVariables, type ClientConstructor, type ColumnsByValue, type CompareBranchSchemasError, type CompareBranchSchemasPathParams, type CompareBranchSchemasRequestBody, type CompareBranchSchemasVariables, type CompareBranchWithUserSchemaError, type CompareBranchWithUserSchemaPathParams, type CompareBranchWithUserSchemaRequestBody, type CompareBranchWithUserSchemaVariables, type CompareMigrationRequestError, type CompareMigrationRequestPathParams, type CompareMigrationRequestVariables, type CopyBranchError, type CopyBranchPathParams, type CopyBranchRequestBody, type CopyBranchVariables, type CreateBranchError, type CreateBranchPathParams, type CreateBranchQueryParams, type CreateBranchRequestBody, type CreateBranchResponse, type CreateBranchVariables, type CreateClusterError, type CreateClusterPathParams, type CreateClusterVariables, type CreateDatabaseError, type CreateDatabasePathParams, type CreateDatabaseRequestBody, type CreateDatabaseResponse, type CreateDatabaseVariables, type CreateMigrationRequestError, type CreateMigrationRequestPathParams, type CreateMigrationRequestRequestBody, type CreateMigrationRequestResponse, type CreateMigrationRequestVariables, type CreateTableError, type CreateTablePathParams, type CreateTableResponse, type CreateTableVariables, type CreateUserAPIKeyError, type CreateUserAPIKeyPathParams, type CreateUserAPIKeyResponse, type CreateUserAPIKeyVariables, type CreateWorkspaceError, type CreateWorkspaceVariables, type CursorNavigationOptions, type DeleteBranchError, type DeleteBranchPathParams, type DeleteBranchResponse, type DeleteBranchVariables, type DeleteColumnError, type DeleteColumnPathParams, type DeleteColumnVariables, type DeleteDatabaseError, type DeleteDatabaseGithubSettingsError, type DeleteDatabaseGithubSettingsPathParams, type DeleteDatabaseGithubSettingsVariables, type DeleteDatabasePathParams, type DeleteDatabaseResponse, type DeleteDatabaseVariables, type DeleteFileError, type DeleteFileItemError, type DeleteFileItemPathParams, type DeleteFileItemVariables, type DeleteFilePathParams, type DeleteFileVariables, type DeleteOAuthAccessTokenError, type DeleteOAuthAccessTokenPathParams, type DeleteOAuthAccessTokenVariables, type DeleteRecordError, type DeleteRecordPathParams, type DeleteRecordQueryParams, type DeleteRecordVariables, type DeleteTableError, type DeleteTablePathParams, type DeleteTableResponse, type DeleteTableVariables, type DeleteTransactionOperation, type DeleteUserAPIKeyError, type DeleteUserAPIKeyPathParams, type DeleteUserAPIKeyVariables, type DeleteUserError, type DeleteUserOAuthClientError, type DeleteUserOAuthClientPathParams, type DeleteUserOAuthClientVariables, type DeleteUserVariables, type DeleteWorkspaceError, type DeleteWorkspacePathParams, type DeleteWorkspaceVariables, type DeserializedType, type DownloadDestination, type EditableData, type ExecuteBranchMigrationPlanError, type ExecuteBranchMigrationPlanPathParams, type ExecuteBranchMigrationPlanRequestBody, type ExecuteBranchMigrationPlanVariables, type FetchImpl, FetcherError, type FetcherExtraProps, type FileAccessError, type FileAccessPathParams, type FileAccessQueryParams, type FileAccessVariables, type FileUploadError, type FileUploadPathParams, type FileUploadQueryParams, type FileUploadVariables, FilesPlugin, type FilesPluginResult, type GetAuthorizationCodeError, type GetAuthorizationCodeQueryParams, type GetAuthorizationCodeVariables, type GetBranchDetailsError, type GetBranchDetailsPathParams, type GetBranchDetailsVariables, type GetBranchListError, type GetBranchListPathParams, type GetBranchListVariables, type GetBranchMetadataError, type GetBranchMetadataPathParams, type GetBranchMetadataVariables, type GetBranchMigrationHistoryError, type GetBranchMigrationHistoryPathParams, type GetBranchMigrationHistoryRequestBody, type GetBranchMigrationHistoryResponse, type GetBranchMigrationHistoryVariables, type 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 GetFileError, type GetFileItemError, type GetFileItemPathParams, type GetFileItemVariables, type GetFilePathParams, type GetFileVariables, type GetGitBranchesMappingError, type GetGitBranchesMappingPathParams, type GetGitBranchesMappingVariables, 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 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, type Paginable, type PaginationQueryMeta, type PgRollJobStatusError, type PgRollJobStatusPathParams, type PgRollJobStatusVariables, type PgRollMigrationHistoryError, type PgRollMigrationHistoryPathParams, type PgRollMigrationHistoryVariables, type PgRollStatusError, type PgRollStatusPathParams, type PgRollStatusVariables, type PreviewBranchSchemaEditError, type PreviewBranchSchemaEditPathParams, type PreviewBranchSchemaEditRequestBody, type PreviewBranchSchemaEditResponse, type PreviewBranchSchemaEditVariables, type PushBranchMigrationsError, type PushBranchMigrationsPathParams, type PushBranchMigrationsRequestBody, type PushBranchMigrationsVariables, type PutFileError, type PutFileItemError, type PutFileItemPathParams, type PutFileItemVariables, type PutFilePathParams, type PutFileVariables, Query, type QueryMigrationRequestsError, type QueryMigrationRequestsPathParams, type QueryMigrationRequestsRequestBody, type QueryMigrationRequestsResponse, type QueryMigrationRequestsVariables, type QueryTableError, type QueryTablePathParams, type QueryTableRequestBody, type QueryTableVariables, RecordArray, RecordColumnTypes, type RemoveGitBranchesEntryError, type RemoveGitBranchesEntryPathParams, type RemoveGitBranchesEntryQueryParams, type RemoveGitBranchesEntryVariables, type RemoveWorkspaceMemberError, type RemoveWorkspaceMemberPathParams, type RemoveWorkspaceMemberVariables, type RenameDatabaseError, type RenameDatabasePathParams, type RenameDatabaseRequestBody, type RenameDatabaseVariables, Repository, type ResendWorkspaceMemberInviteError, type ResendWorkspaceMemberInvitePathParams, type ResendWorkspaceMemberInviteVariables, type ResolveBranchError, type ResolveBranchPathParams, type ResolveBranchQueryParams, type ResolveBranchResponse, type ResolveBranchVariables, responses as Responses, RestRepository, SQLPlugin, type SQLPluginResult, type SQLQuery, type SQLQueryParams, type SchemaDefinition, type SchemaInference, SchemaPlugin, type SchemaPluginResult, schemas as Schemas, type SearchBranchError, type SearchBranchPathParams, type SearchBranchRequestBody, type SearchBranchVariables, type SearchOptions, SearchPlugin, type SearchPluginResult, type SearchTableError, type SearchTablePathParams, type SearchTableRequestBody, type SearchTableVariables, type SearchXataRecord, type SelectableColumn, type SelectableColumnWithObjectNotation, type SelectedPick, type SerializedString, Serializer, type SerializerResult, type SetTableSchemaError, type SetTableSchemaPathParams, type SetTableSchemaRequestBody, type SetTableSchemaVariables, SimpleCache, type SimpleCacheOptions, type SqlQueryError, type SqlQueryPathParams, type SqlQueryRequestBody, type SqlQueryVariables, type SummarizeTableError, type SummarizeTablePathParams, type SummarizeTableRequestBody, type SummarizeTableVariables, type TotalCount, type TransactionOperation, TransactionPlugin, type TransactionPluginResult, type TransactionResults, type UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, type UpdateClusterError, type UpdateClusterPathParams, type UpdateClusterVariables, type UpdateColumnError, type UpdateColumnPathParams, type UpdateColumnRequestBody, type UpdateColumnVariables, type UpdateDatabaseGithubSettingsError, type UpdateDatabaseGithubSettingsPathParams, type UpdateDatabaseGithubSettingsVariables, type UpdateDatabaseMetadataError, type UpdateDatabaseMetadataPathParams, type UpdateDatabaseMetadataRequestBody, type UpdateDatabaseMetadataVariables, type 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 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, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, applyMigration, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createCluster, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, fileUpload, ge, getAPIKey, getAuthorizationCode, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getCluster, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getSchema, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, 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, pgRollJobStatus, pgRollMigrationHistory, pgRollStatus, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, sqlQuery, startsWith, summarizeTable, transformImage, updateBranchMetadata, updateBranchSchema, updateCluster, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };
|
11470
|
+
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 };
|