@xata.io/client 0.29.1 → 0.29.3

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/dist/index.d.ts CHANGED
@@ -29,6 +29,7 @@ type XataPluginOptions = ApiExtraProps & {
29
29
  cache: CacheImpl;
30
30
  host: HostProvider;
31
31
  tables: Table[];
32
+ branch: string;
32
33
  };
33
34
 
34
35
  type AttributeDictionary = Record<string, string | number | boolean | undefined>;
@@ -69,15 +70,21 @@ type FetchImpl = (url: string, init?: RequestInit) => Promise<Response>;
69
70
  * @pattern [a-zA-Z0-9_\-~]+:[a-zA-Z0-9_\-~]+
70
71
  */
71
72
  type DBBranchName = string;
72
- type PgRollApplyMigrationResponse = {
73
+ type ApplyMigrationResponse = {
73
74
  /**
74
75
  * The id of the migration job
75
76
  */
76
77
  jobID: string;
77
78
  };
78
- type PgRollJobType = 'apply' | 'start' | 'complete' | 'rollback';
79
- type PgRollJobStatus = 'pending' | 'in_progress' | 'completed' | 'failed';
80
- type PgRollJobStatusResponse = {
79
+ /**
80
+ * @maxLength 255
81
+ * @minLength 1
82
+ * @pattern [a-zA-Z0-9_\-~]+
83
+ */
84
+ type TableName = string;
85
+ type MigrationJobType = 'apply' | 'start' | 'complete' | 'rollback';
86
+ type MigrationJobStatus = 'pending' | 'in_progress' | 'completed' | 'failed';
87
+ type MigrationJobStatusResponse = {
81
88
  /**
82
89
  * The id of the migration job
83
90
  */
@@ -85,11 +92,11 @@ type PgRollJobStatusResponse = {
85
92
  /**
86
93
  * The type of the migration job
87
94
  */
88
- type: PgRollJobType;
95
+ type: MigrationJobType;
89
96
  /**
90
97
  * The status of the migration job
91
98
  */
92
- status: PgRollJobStatus;
99
+ status: MigrationJobStatus;
93
100
  /**
94
101
  * The error message associated with the migration job
95
102
  */
@@ -100,9 +107,9 @@ type PgRollJobStatusResponse = {
100
107
  * @minLength 1
101
108
  * @pattern [a-zA-Z0-9_\-~]+
102
109
  */
103
- type PgRollMigrationJobID = string;
104
- type PgRollMigrationType = 'pgroll' | 'inferred';
105
- type PgRollMigrationHistoryItem = {
110
+ type MigrationJobID = string;
111
+ type MigrationType = 'pgroll' | 'inferred';
112
+ type MigrationHistoryItem = {
106
113
  /**
107
114
  * The name of the migration
108
115
  */
@@ -128,13 +135,13 @@ type PgRollMigrationHistoryItem = {
128
135
  /**
129
136
  * The type of the migration
130
137
  */
131
- migrationType: PgRollMigrationType;
138
+ migrationType: MigrationType;
132
139
  };
133
- type PgRollMigrationHistoryResponse = {
140
+ type MigrationHistoryResponse = {
134
141
  /**
135
142
  * The migrations that have been applied to the branch
136
143
  */
137
- migrations: PgRollMigrationHistoryItem[];
144
+ migrations: MigrationHistoryItem[];
138
145
  };
139
146
  /**
140
147
  * @maxLength 255
@@ -162,6 +169,9 @@ type ListBranchesResponse = {
162
169
  databaseName: string;
163
170
  branches: Branch[];
164
171
  };
172
+ type DatabaseSettings = {
173
+ searchEnabled: boolean;
174
+ };
165
175
  /**
166
176
  * @maxLength 255
167
177
  * @minLength 1
@@ -189,12 +199,6 @@ type StartedFromMetadata = {
189
199
  dbBranchID: string;
190
200
  migrationID: string;
191
201
  };
192
- /**
193
- * @maxLength 255
194
- * @minLength 1
195
- * @pattern [a-zA-Z0-9_\-~]+
196
- */
197
- type TableName = string;
198
202
  type ColumnLink = {
199
203
  table: string;
200
204
  };
@@ -255,15 +259,13 @@ type DBBranch = {
255
259
  schema: Schema;
256
260
  };
257
261
  type MigrationStatus$1 = 'completed' | 'pending' | 'failed';
258
- /**
259
- * @x-go-type schema.Schema
260
- */
261
- type PgRollSchema = {
262
+ type BranchSchema = {
262
263
  name: string;
263
264
  tables: {
264
265
  [key: string]: {
265
266
  oid: string;
266
267
  name: string;
268
+ xataCompatible: boolean;
267
269
  comment: string;
268
270
  columns: {
269
271
  [key: string]: {
@@ -959,6 +961,40 @@ type RecordMeta = {
959
961
  */
960
962
  warnings?: string[];
961
963
  };
964
+ } | {
965
+ xata_id: RecordID;
966
+ /**
967
+ * The record's version. Can be used for optimistic concurrency control.
968
+ */
969
+ xata_version: number;
970
+ /**
971
+ * The time when the record was created.
972
+ */
973
+ xata_createdat?: string;
974
+ /**
975
+ * The time when the record was last updated.
976
+ */
977
+ xata_updatedat?: string;
978
+ /**
979
+ * The record's table name. APIs that return records from multiple tables will set this field accordingly.
980
+ */
981
+ xata_table?: string;
982
+ /**
983
+ * Highlights of the record. This is used by the search APIs to indicate which fields and parts of the fields have matched the search.
984
+ */
985
+ xata_highlight?: {
986
+ [key: string]: string[] | {
987
+ [key: string]: any;
988
+ };
989
+ };
990
+ /**
991
+ * The record's relevancy score. This is returned by the search APIs.
992
+ */
993
+ xata_score?: number;
994
+ /**
995
+ * Encoding/Decoding errors
996
+ */
997
+ xata_warnings?: string[];
962
998
  };
963
999
  /**
964
1000
  * File metadata
@@ -1508,6 +1544,11 @@ type RecordUpdateResponse = XataRecord$1 | {
1508
1544
  createdAt: string;
1509
1545
  updatedAt: string;
1510
1546
  };
1547
+ } | {
1548
+ xata_id: string;
1549
+ xata_version: number;
1550
+ xata_createdat: string;
1551
+ xata_updatedat: string;
1511
1552
  };
1512
1553
  type PutFileResponse = FileResponse;
1513
1554
  type RecordResponse = XataRecord$1;
@@ -1551,10 +1592,14 @@ type AggResponse = {
1551
1592
  };
1552
1593
  type SQLResponse = {
1553
1594
  records?: SQLRecord[];
1595
+ rows?: any[][];
1554
1596
  /**
1555
1597
  * Name of the column and its PostgreSQL type
1556
1598
  */
1557
- columns?: Record<string, any>;
1599
+ columns?: {
1600
+ name?: string;
1601
+ type?: string;
1602
+ }[];
1558
1603
  /**
1559
1604
  * Number of selected columns
1560
1605
  */
@@ -1655,6 +1700,9 @@ type Workspace = WorkspaceMeta & {
1655
1700
  memberCount: number;
1656
1701
  plan: WorkspacePlan;
1657
1702
  };
1703
+ type WorkspaceSettings = {
1704
+ postgresEnabled: boolean;
1705
+ };
1658
1706
  type WorkspaceMember = {
1659
1707
  userId: UserID;
1660
1708
  fullname: string;
@@ -1848,6 +1896,53 @@ type ClusterResponse = {
1848
1896
  state: string;
1849
1897
  clusterID: string;
1850
1898
  };
1899
+ /**
1900
+ * @x-internal true
1901
+ */
1902
+ type AutoscalingConfigResponse = {
1903
+ /**
1904
+ * @format double
1905
+ * @default 0.5
1906
+ */
1907
+ minCapacity: number;
1908
+ /**
1909
+ * @format double
1910
+ * @default 4
1911
+ */
1912
+ maxCapacity: number;
1913
+ };
1914
+ /**
1915
+ * @x-internal true
1916
+ */
1917
+ type MaintenanceConfigResponse = {
1918
+ /**
1919
+ * @default false
1920
+ */
1921
+ autoMinorVersionUpgrade: boolean;
1922
+ /**
1923
+ * @default false
1924
+ */
1925
+ applyImmediately: boolean;
1926
+ maintenanceWindow: WeeklyTimeWindow;
1927
+ backupWindow: DailyTimeWindow;
1928
+ };
1929
+ /**
1930
+ * @x-internal true
1931
+ */
1932
+ type ClusterConfigurationResponse = {
1933
+ engineVersion: string;
1934
+ instanceType: string;
1935
+ /**
1936
+ * @format int64
1937
+ */
1938
+ replicas: number;
1939
+ /**
1940
+ * @default false
1941
+ */
1942
+ deletionProtection: boolean;
1943
+ autoscaling?: AutoscalingConfigResponse;
1944
+ maintenance: MaintenanceConfigResponse;
1945
+ };
1851
1946
  /**
1852
1947
  * @x-internal true
1853
1948
  */
@@ -1860,22 +1955,23 @@ type ClusterMetadata = {
1860
1955
  * @format int64
1861
1956
  */
1862
1957
  branches: number;
1863
- configuration?: ClusterConfiguration;
1958
+ configuration: ClusterConfigurationResponse;
1864
1959
  };
1865
1960
  /**
1866
1961
  * @x-internal true
1867
1962
  */
1868
1963
  type ClusterUpdateDetails = {
1869
- id: ClusterID;
1870
1964
  /**
1871
- * @maxLength 63
1872
- * @minLength 1
1873
- * @pattern [a-zA-Z0-9_-~:]+
1965
+ * @pattern ^[Ss][Tt][Oo][Pp]|[Ss][Tt][Aa][Rr][Tt]$
1874
1966
  */
1875
- name?: string;
1876
- configuration?: ClusterConfiguration;
1877
- state?: string;
1878
- region?: string;
1967
+ command: string;
1968
+ };
1969
+ /**
1970
+ * @x-internal true
1971
+ */
1972
+ type ClusterUpdateMetadata = {
1973
+ id: ClusterID;
1974
+ state: string;
1879
1975
  };
1880
1976
  /**
1881
1977
  * Metadata of databases
@@ -1901,6 +1997,10 @@ type DatabaseMetadata = {
1901
1997
  * @x-internal true
1902
1998
  */
1903
1999
  defaultClusterID?: string;
2000
+ /**
2001
+ * The database is accessible via the Postgres protocol
2002
+ */
2003
+ postgresEnabled?: boolean;
1904
2004
  /**
1905
2005
  * Metadata about the database for display in Xata user interfaces
1906
2006
  */
@@ -2441,6 +2541,62 @@ type DeleteWorkspaceVariables = {
2441
2541
  * Delete the workspace with the provided ID
2442
2542
  */
2443
2543
  declare const deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal) => Promise<undefined>;
2544
+ type GetWorkspaceSettingsPathParams = {
2545
+ /**
2546
+ * Workspace ID
2547
+ */
2548
+ workspaceId: WorkspaceID;
2549
+ };
2550
+ type GetWorkspaceSettingsError = ErrorWrapper$1<{
2551
+ status: 400;
2552
+ payload: BadRequestError;
2553
+ } | {
2554
+ status: 401;
2555
+ payload: AuthError;
2556
+ } | {
2557
+ status: 403;
2558
+ payload: AuthError;
2559
+ } | {
2560
+ status: 404;
2561
+ payload: SimpleError;
2562
+ }>;
2563
+ type GetWorkspaceSettingsVariables = {
2564
+ pathParams: GetWorkspaceSettingsPathParams;
2565
+ } & ControlPlaneFetcherExtraProps;
2566
+ /**
2567
+ * Retrieve workspace settings from a workspace ID
2568
+ */
2569
+ declare const getWorkspaceSettings: (variables: GetWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
2570
+ type UpdateWorkspaceSettingsPathParams = {
2571
+ /**
2572
+ * Workspace ID
2573
+ */
2574
+ workspaceId: WorkspaceID;
2575
+ };
2576
+ type UpdateWorkspaceSettingsError = ErrorWrapper$1<{
2577
+ status: 400;
2578
+ payload: BadRequestError;
2579
+ } | {
2580
+ status: 401;
2581
+ payload: AuthError;
2582
+ } | {
2583
+ status: 403;
2584
+ payload: AuthError;
2585
+ } | {
2586
+ status: 404;
2587
+ payload: SimpleError;
2588
+ }>;
2589
+ type UpdateWorkspaceSettingsRequestBody = {
2590
+ postgresEnabled: boolean;
2591
+ };
2592
+ type UpdateWorkspaceSettingsVariables = {
2593
+ body: UpdateWorkspaceSettingsRequestBody;
2594
+ pathParams: UpdateWorkspaceSettingsPathParams;
2595
+ } & ControlPlaneFetcherExtraProps;
2596
+ /**
2597
+ * Update workspace settings
2598
+ */
2599
+ declare const updateWorkspaceSettings: (variables: UpdateWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
2444
2600
  type GetWorkspaceMembersListPathParams = {
2445
2601
  /**
2446
2602
  * Workspace ID
@@ -2798,7 +2954,7 @@ type UpdateClusterVariables = {
2798
2954
  /**
2799
2955
  * Update cluster for given cluster ID
2800
2956
  */
2801
- declare const updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterMetadata>;
2957
+ declare const updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterUpdateMetadata>;
2802
2958
  type GetDatabaseListPathParams = {
2803
2959
  /**
2804
2960
  * Workspace ID
@@ -3173,6 +3329,7 @@ type ApplyMigrationRequestBody = {
3173
3329
  operations: {
3174
3330
  [key: string]: any;
3175
3331
  }[];
3332
+ adaptTables?: boolean;
3176
3333
  };
3177
3334
  type ApplyMigrationVariables = {
3178
3335
  body: ApplyMigrationRequestBody;
@@ -3181,16 +3338,20 @@ type ApplyMigrationVariables = {
3181
3338
  /**
3182
3339
  * Applies a pgroll migration to the specified database.
3183
3340
  */
3184
- declare const applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<PgRollApplyMigrationResponse>;
3185
- type PgRollStatusPathParams = {
3341
+ declare const applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
3342
+ type AdaptTablePathParams = {
3186
3343
  /**
3187
3344
  * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
3188
3345
  */
3189
3346
  dbBranchName: DBBranchName;
3347
+ /**
3348
+ * The Table name
3349
+ */
3350
+ tableName: TableName;
3190
3351
  workspace: string;
3191
3352
  region: string;
3192
3353
  };
3193
- type PgRollStatusError = ErrorWrapper<{
3354
+ type AdaptTableError = ErrorWrapper<{
3194
3355
  status: 400;
3195
3356
  payload: BadRequestError$1;
3196
3357
  } | {
@@ -3200,11 +3361,36 @@ type PgRollStatusError = ErrorWrapper<{
3200
3361
  status: 404;
3201
3362
  payload: SimpleError$1;
3202
3363
  }>;
3203
- type PgRollStatusVariables = {
3204
- pathParams: PgRollStatusPathParams;
3364
+ type AdaptTableVariables = {
3365
+ pathParams: AdaptTablePathParams;
3205
3366
  } & DataPlaneFetcherExtraProps;
3206
- declare const pgRollStatus: (variables: PgRollStatusVariables, signal?: AbortSignal) => Promise<PgRollJobStatusResponse>;
3207
- type PgRollJobStatusPathParams = {
3367
+ /**
3368
+ * 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.
3369
+ */
3370
+ declare const adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
3371
+ type GetBranchMigrationJobStatusPathParams = {
3372
+ /**
3373
+ * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
3374
+ */
3375
+ dbBranchName: DBBranchName;
3376
+ workspace: string;
3377
+ region: string;
3378
+ };
3379
+ type GetBranchMigrationJobStatusError = ErrorWrapper<{
3380
+ status: 400;
3381
+ payload: BadRequestError$1;
3382
+ } | {
3383
+ status: 401;
3384
+ payload: AuthError$1;
3385
+ } | {
3386
+ status: 404;
3387
+ payload: SimpleError$1;
3388
+ }>;
3389
+ type GetBranchMigrationJobStatusVariables = {
3390
+ pathParams: GetBranchMigrationJobStatusPathParams;
3391
+ } & DataPlaneFetcherExtraProps;
3392
+ declare const getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
3393
+ type GetMigrationJobStatusPathParams = {
3208
3394
  /**
3209
3395
  * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
3210
3396
  */
@@ -3212,11 +3398,11 @@ type PgRollJobStatusPathParams = {
3212
3398
  /**
3213
3399
  * The id of the migration job
3214
3400
  */
3215
- jobId: PgRollMigrationJobID;
3401
+ jobId: MigrationJobID;
3216
3402
  workspace: string;
3217
3403
  region: string;
3218
3404
  };
3219
- type PgRollJobStatusError = ErrorWrapper<{
3405
+ type GetMigrationJobStatusError = ErrorWrapper<{
3220
3406
  status: 400;
3221
3407
  payload: BadRequestError$1;
3222
3408
  } | {
@@ -3226,11 +3412,11 @@ type PgRollJobStatusError = ErrorWrapper<{
3226
3412
  status: 404;
3227
3413
  payload: SimpleError$1;
3228
3414
  }>;
3229
- type PgRollJobStatusVariables = {
3230
- pathParams: PgRollJobStatusPathParams;
3415
+ type GetMigrationJobStatusVariables = {
3416
+ pathParams: GetMigrationJobStatusPathParams;
3231
3417
  } & DataPlaneFetcherExtraProps;
3232
- declare const pgRollJobStatus: (variables: PgRollJobStatusVariables, signal?: AbortSignal) => Promise<PgRollJobStatusResponse>;
3233
- type PgRollMigrationHistoryPathParams = {
3418
+ declare const getMigrationJobStatus: (variables: GetMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
3419
+ type GetMigrationHistoryPathParams = {
3234
3420
  /**
3235
3421
  * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
3236
3422
  */
@@ -3238,7 +3424,7 @@ type PgRollMigrationHistoryPathParams = {
3238
3424
  workspace: string;
3239
3425
  region: string;
3240
3426
  };
3241
- type PgRollMigrationHistoryError = ErrorWrapper<{
3427
+ type GetMigrationHistoryError = ErrorWrapper<{
3242
3428
  status: 400;
3243
3429
  payload: BadRequestError$1;
3244
3430
  } | {
@@ -3248,10 +3434,10 @@ type PgRollMigrationHistoryError = ErrorWrapper<{
3248
3434
  status: 404;
3249
3435
  payload: SimpleError$1;
3250
3436
  }>;
3251
- type PgRollMigrationHistoryVariables = {
3252
- pathParams: PgRollMigrationHistoryPathParams;
3437
+ type GetMigrationHistoryVariables = {
3438
+ pathParams: GetMigrationHistoryPathParams;
3253
3439
  } & DataPlaneFetcherExtraProps;
3254
- declare const pgRollMigrationHistory: (variables: PgRollMigrationHistoryVariables, signal?: AbortSignal) => Promise<PgRollMigrationHistoryResponse>;
3440
+ declare const getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal) => Promise<MigrationHistoryResponse>;
3255
3441
  type GetBranchListPathParams = {
3256
3442
  /**
3257
3443
  * The Database Name
@@ -3277,6 +3463,60 @@ type GetBranchListVariables = {
3277
3463
  * List all available Branches
3278
3464
  */
3279
3465
  declare const getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal) => Promise<ListBranchesResponse>;
3466
+ type GetDatabaseSettingsPathParams = {
3467
+ /**
3468
+ * The Database Name
3469
+ */
3470
+ dbName: DBName$1;
3471
+ workspace: string;
3472
+ region: string;
3473
+ };
3474
+ type GetDatabaseSettingsError = ErrorWrapper<{
3475
+ status: 400;
3476
+ payload: SimpleError$1;
3477
+ } | {
3478
+ status: 401;
3479
+ payload: AuthError$1;
3480
+ } | {
3481
+ status: 404;
3482
+ payload: SimpleError$1;
3483
+ }>;
3484
+ type GetDatabaseSettingsVariables = {
3485
+ pathParams: GetDatabaseSettingsPathParams;
3486
+ } & DataPlaneFetcherExtraProps;
3487
+ /**
3488
+ * Get database settings
3489
+ */
3490
+ declare const getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
3491
+ type UpdateDatabaseSettingsPathParams = {
3492
+ /**
3493
+ * The Database Name
3494
+ */
3495
+ dbName: DBName$1;
3496
+ workspace: string;
3497
+ region: string;
3498
+ };
3499
+ type UpdateDatabaseSettingsError = ErrorWrapper<{
3500
+ status: 400;
3501
+ payload: SimpleError$1;
3502
+ } | {
3503
+ status: 401;
3504
+ payload: AuthError$1;
3505
+ } | {
3506
+ status: 404;
3507
+ payload: SimpleError$1;
3508
+ }>;
3509
+ type UpdateDatabaseSettingsRequestBody = {
3510
+ searchEnabled?: boolean;
3511
+ };
3512
+ type UpdateDatabaseSettingsVariables = {
3513
+ body?: UpdateDatabaseSettingsRequestBody;
3514
+ pathParams: UpdateDatabaseSettingsPathParams;
3515
+ } & DataPlaneFetcherExtraProps;
3516
+ /**
3517
+ * Update database settings, this endpoint can be used to disable search
3518
+ */
3519
+ declare const updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
3280
3520
  type GetBranchDetailsPathParams = {
3281
3521
  /**
3282
3522
  * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
@@ -3404,7 +3644,7 @@ type GetSchemaError = ErrorWrapper<{
3404
3644
  payload: SimpleError$1;
3405
3645
  }>;
3406
3646
  type GetSchemaResponse = {
3407
- schema: PgRollSchema;
3647
+ schema: BranchSchema;
3408
3648
  };
3409
3649
  type GetSchemaVariables = {
3410
3650
  pathParams: GetSchemaPathParams;
@@ -6631,6 +6871,12 @@ type SqlQueryRequestBody = {
6631
6871
  * @default strong
6632
6872
  */
6633
6873
  consistency?: 'strong' | 'eventual';
6874
+ /**
6875
+ * The response type.
6876
+ *
6877
+ * @default json
6878
+ */
6879
+ responseType?: 'json' | 'array';
6634
6880
  };
6635
6881
  type SqlQueryVariables = {
6636
6882
  body: SqlQueryRequestBody;
@@ -6643,10 +6889,6 @@ declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) =>
6643
6889
 
6644
6890
  declare const operationsByTag: {
6645
6891
  branch: {
6646
- applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal | undefined) => Promise<PgRollApplyMigrationResponse>;
6647
- pgRollStatus: (variables: PgRollStatusVariables, signal?: AbortSignal | undefined) => Promise<PgRollJobStatusResponse>;
6648
- pgRollJobStatus: (variables: PgRollJobStatusVariables, signal?: AbortSignal | undefined) => Promise<PgRollJobStatusResponse>;
6649
- pgRollMigrationHistory: (variables: PgRollMigrationHistoryVariables, signal?: AbortSignal | undefined) => Promise<PgRollMigrationHistoryResponse>;
6650
6892
  getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal | undefined) => Promise<ListBranchesResponse>;
6651
6893
  getBranchDetails: (variables: GetBranchDetailsVariables, signal?: AbortSignal | undefined) => Promise<DBBranch>;
6652
6894
  createBranch: (variables: CreateBranchVariables, signal?: AbortSignal | undefined) => Promise<CreateBranchResponse>;
@@ -6666,11 +6908,18 @@ declare const operationsByTag: {
6666
6908
  getWorkspace: (variables: GetWorkspaceVariables, signal?: AbortSignal | undefined) => Promise<Workspace>;
6667
6909
  updateWorkspace: (variables: UpdateWorkspaceVariables, signal?: AbortSignal | undefined) => Promise<Workspace>;
6668
6910
  deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
6911
+ getWorkspaceSettings: (variables: GetWorkspaceSettingsVariables, signal?: AbortSignal | undefined) => Promise<WorkspaceSettings>;
6912
+ updateWorkspaceSettings: (variables: UpdateWorkspaceSettingsVariables, signal?: AbortSignal | undefined) => Promise<WorkspaceSettings>;
6669
6913
  getWorkspaceMembersList: (variables: GetWorkspaceMembersListVariables, signal?: AbortSignal | undefined) => Promise<WorkspaceMembers>;
6670
6914
  updateWorkspaceMemberRole: (variables: UpdateWorkspaceMemberRoleVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
6671
6915
  removeWorkspaceMember: (variables: RemoveWorkspaceMemberVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
6672
6916
  };
6673
6917
  migrations: {
6918
+ applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal | undefined) => Promise<ApplyMigrationResponse>;
6919
+ adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal | undefined) => Promise<ApplyMigrationResponse>;
6920
+ getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal | undefined) => Promise<MigrationJobStatusResponse>;
6921
+ getMigrationJobStatus: (variables: GetMigrationJobStatusVariables, signal?: AbortSignal | undefined) => Promise<MigrationJobStatusResponse>;
6922
+ getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal | undefined) => Promise<MigrationHistoryResponse>;
6674
6923
  getSchema: (variables: GetSchemaVariables, signal?: AbortSignal | undefined) => Promise<GetSchemaResponse>;
6675
6924
  getBranchMigrationHistory: (variables: GetBranchMigrationHistoryVariables, signal?: AbortSignal | undefined) => Promise<GetBranchMigrationHistoryResponse>;
6676
6925
  getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables, signal?: AbortSignal | undefined) => Promise<BranchMigrationPlan>;
@@ -6693,6 +6942,10 @@ declare const operationsByTag: {
6693
6942
  deleteRecord: (variables: DeleteRecordVariables, signal?: AbortSignal | undefined) => Promise<XataRecord$1>;
6694
6943
  bulkInsertTableRecords: (variables: BulkInsertTableRecordsVariables, signal?: AbortSignal | undefined) => Promise<BulkInsertResponse>;
6695
6944
  };
6945
+ database: {
6946
+ getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal | undefined) => Promise<DatabaseSettings>;
6947
+ updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal | undefined) => Promise<DatabaseSettings>;
6948
+ };
6696
6949
  migrationRequests: {
6697
6950
  queryMigrationRequests: (variables: QueryMigrationRequestsVariables, signal?: AbortSignal | undefined) => Promise<QueryMigrationRequestsResponse>;
6698
6951
  createMigrationRequest: (variables: CreateMigrationRequestVariables, signal?: AbortSignal | undefined) => Promise<CreateMigrationRequestResponse>;
@@ -6768,7 +7021,7 @@ declare const operationsByTag: {
6768
7021
  listClusters: (variables: ListClustersVariables, signal?: AbortSignal | undefined) => Promise<ListClustersResponse>;
6769
7022
  createCluster: (variables: CreateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterResponse>;
6770
7023
  getCluster: (variables: GetClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterMetadata>;
6771
- updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterMetadata>;
7024
+ updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterUpdateMetadata>;
6772
7025
  };
6773
7026
  databases: {
6774
7027
  getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal | undefined) => Promise<ListDatabasesResponse>;
@@ -6798,6 +7051,8 @@ declare function buildProviderString(provider: HostProvider): string;
6798
7051
  declare function parseWorkspacesUrlParts(url: string): {
6799
7052
  workspace: string;
6800
7053
  region: string;
7054
+ database: string;
7055
+ branch?: string;
6801
7056
  host: HostAliases;
6802
7057
  } | null;
6803
7058
 
@@ -6824,22 +7079,27 @@ type schemas_APIKeyName = APIKeyName;
6824
7079
  type schemas_AccessToken = AccessToken;
6825
7080
  type schemas_AggExpression = AggExpression;
6826
7081
  type schemas_AggExpressionMap = AggExpressionMap;
7082
+ type schemas_ApplyMigrationResponse = ApplyMigrationResponse;
6827
7083
  type schemas_AuthorizationCodeRequest = AuthorizationCodeRequest;
6828
7084
  type schemas_AuthorizationCodeResponse = AuthorizationCodeResponse;
6829
7085
  type schemas_AutoscalingConfig = AutoscalingConfig;
7086
+ type schemas_AutoscalingConfigResponse = AutoscalingConfigResponse;
6830
7087
  type schemas_AverageAgg = AverageAgg;
6831
7088
  type schemas_BoosterExpression = BoosterExpression;
6832
7089
  type schemas_Branch = Branch;
6833
7090
  type schemas_BranchMigration = BranchMigration;
6834
7091
  type schemas_BranchOp = BranchOp;
7092
+ type schemas_BranchSchema = BranchSchema;
6835
7093
  type schemas_BranchWithCopyID = BranchWithCopyID;
6836
7094
  type schemas_ClusterConfiguration = ClusterConfiguration;
7095
+ type schemas_ClusterConfigurationResponse = ClusterConfigurationResponse;
6837
7096
  type schemas_ClusterCreateDetails = ClusterCreateDetails;
6838
7097
  type schemas_ClusterID = ClusterID;
6839
7098
  type schemas_ClusterMetadata = ClusterMetadata;
6840
7099
  type schemas_ClusterResponse = ClusterResponse;
6841
7100
  type schemas_ClusterShortMetadata = ClusterShortMetadata;
6842
7101
  type schemas_ClusterUpdateDetails = ClusterUpdateDetails;
7102
+ type schemas_ClusterUpdateMetadata = ClusterUpdateMetadata;
6843
7103
  type schemas_Column = Column;
6844
7104
  type schemas_ColumnFile = ColumnFile;
6845
7105
  type schemas_ColumnLink = ColumnLink;
@@ -6858,6 +7118,7 @@ type schemas_DailyTimeWindow = DailyTimeWindow;
6858
7118
  type schemas_DataInputRecord = DataInputRecord;
6859
7119
  type schemas_DatabaseGithubSettings = DatabaseGithubSettings;
6860
7120
  type schemas_DatabaseMetadata = DatabaseMetadata;
7121
+ type schemas_DatabaseSettings = DatabaseSettings;
6861
7122
  type schemas_DateHistogramAgg = DateHistogramAgg;
6862
7123
  type schemas_FileAccessID = FileAccessID;
6863
7124
  type schemas_FileItemID = FileItemID;
@@ -6886,17 +7147,25 @@ type schemas_ListDatabasesResponse = ListDatabasesResponse;
6886
7147
  type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
6887
7148
  type schemas_ListRegionsResponse = ListRegionsResponse;
6888
7149
  type schemas_MaintenanceConfig = MaintenanceConfig;
7150
+ type schemas_MaintenanceConfigResponse = MaintenanceConfigResponse;
6889
7151
  type schemas_MaxAgg = MaxAgg;
6890
7152
  type schemas_MediaType = MediaType;
6891
7153
  type schemas_MetricsDatapoint = MetricsDatapoint;
6892
7154
  type schemas_MetricsLatency = MetricsLatency;
6893
7155
  type schemas_Migration = Migration;
6894
7156
  type schemas_MigrationColumnOp = MigrationColumnOp;
7157
+ type schemas_MigrationHistoryItem = MigrationHistoryItem;
7158
+ type schemas_MigrationHistoryResponse = MigrationHistoryResponse;
7159
+ type schemas_MigrationJobID = MigrationJobID;
7160
+ type schemas_MigrationJobStatus = MigrationJobStatus;
7161
+ type schemas_MigrationJobStatusResponse = MigrationJobStatusResponse;
7162
+ type schemas_MigrationJobType = MigrationJobType;
6895
7163
  type schemas_MigrationObject = MigrationObject;
6896
7164
  type schemas_MigrationOp = MigrationOp;
6897
7165
  type schemas_MigrationRequest = MigrationRequest;
6898
7166
  type schemas_MigrationRequestNumber = MigrationRequestNumber;
6899
7167
  type schemas_MigrationTableOp = MigrationTableOp;
7168
+ type schemas_MigrationType = MigrationType;
6900
7169
  type schemas_MinAgg = MinAgg;
6901
7170
  type schemas_NumericHistogramAgg = NumericHistogramAgg;
6902
7171
  type schemas_OAuthAccessToken = OAuthAccessToken;
@@ -6910,15 +7179,6 @@ type schemas_PageResponse = PageResponse;
6910
7179
  type schemas_PageSize = PageSize;
6911
7180
  type schemas_PageToken = PageToken;
6912
7181
  type schemas_PercentilesAgg = PercentilesAgg;
6913
- type schemas_PgRollApplyMigrationResponse = PgRollApplyMigrationResponse;
6914
- type schemas_PgRollJobStatus = PgRollJobStatus;
6915
- type schemas_PgRollJobStatusResponse = PgRollJobStatusResponse;
6916
- type schemas_PgRollJobType = PgRollJobType;
6917
- type schemas_PgRollMigrationHistoryItem = PgRollMigrationHistoryItem;
6918
- type schemas_PgRollMigrationHistoryResponse = PgRollMigrationHistoryResponse;
6919
- type schemas_PgRollMigrationJobID = PgRollMigrationJobID;
6920
- type schemas_PgRollMigrationType = PgRollMigrationType;
6921
- type schemas_PgRollSchema = PgRollSchema;
6922
7182
  type schemas_PrefixExpression = PrefixExpression;
6923
7183
  type schemas_ProjectionConfig = ProjectionConfig;
6924
7184
  type schemas_QueryColumnsProjection = QueryColumnsProjection;
@@ -6971,8 +7231,9 @@ type schemas_WorkspaceMember = WorkspaceMember;
6971
7231
  type schemas_WorkspaceMembers = WorkspaceMembers;
6972
7232
  type schemas_WorkspaceMeta = WorkspaceMeta;
6973
7233
  type schemas_WorkspacePlan = WorkspacePlan;
7234
+ type schemas_WorkspaceSettings = WorkspaceSettings;
6974
7235
  declare namespace schemas {
6975
- 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, schemas_ClusterID as ClusterID, schemas_ClusterMetadata as ClusterMetadata, schemas_ClusterResponse as ClusterResponse, schemas_ClusterShortMetadata as ClusterShortMetadata, schemas_ClusterUpdateDetails as ClusterUpdateDetails, 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_CountAgg as CountAgg, schemas_DBBranch as DBBranch, schemas_DBBranchName as DBBranchName, DBName$1 as DBName, schemas_DailyTimeWindow as DailyTimeWindow, schemas_DataInputRecord as DataInputRecord, schemas_DatabaseGithubSettings as DatabaseGithubSettings, schemas_DatabaseMetadata as DatabaseMetadata, DateBooster$1 as DateBooster, schemas_DateHistogramAgg as DateHistogramAgg, DateTime$1 as DateTime, 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_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_ListClustersResponse as ListClustersResponse, schemas_ListDatabasesResponse as ListDatabasesResponse, schemas_ListGitBranchesResponse as ListGitBranchesResponse, schemas_ListRegionsResponse as ListRegionsResponse, schemas_MaintenanceConfig as MaintenanceConfig, schemas_MaxAgg as MaxAgg, schemas_MediaType as MediaType, schemas_MetricsDatapoint as MetricsDatapoint, schemas_MetricsLatency as MetricsLatency, schemas_Migration as Migration, schemas_MigrationColumnOp as MigrationColumnOp, schemas_MigrationObject as MigrationObject, schemas_MigrationOp as MigrationOp, schemas_MigrationRequest as MigrationRequest, schemas_MigrationRequestNumber as MigrationRequestNumber, MigrationStatus$1 as MigrationStatus, schemas_MigrationTableOp as MigrationTableOp, 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, schemas_PageResponse as PageResponse, schemas_PageSize as PageSize, schemas_PageToken as PageToken, schemas_PercentilesAgg as PercentilesAgg, schemas_PgRollApplyMigrationResponse as PgRollApplyMigrationResponse, schemas_PgRollJobStatus as PgRollJobStatus, schemas_PgRollJobStatusResponse as PgRollJobStatusResponse, schemas_PgRollJobType as PgRollJobType, schemas_PgRollMigrationHistoryItem as PgRollMigrationHistoryItem, schemas_PgRollMigrationHistoryResponse as PgRollMigrationHistoryResponse, schemas_PgRollMigrationJobID as PgRollMigrationJobID, schemas_PgRollMigrationType as PgRollMigrationType, schemas_PgRollSchema as PgRollSchema, schemas_PrefixExpression as PrefixExpression, 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_SQLRecord as SQLRecord, schemas_Schema as Schema, schemas_SchemaEditScript as SchemaEditScript, schemas_SearchPageConfig as SearchPageConfig, schemas_SortExpression as SortExpression, schemas_SortOrder as SortOrder, schemas_StartedFromMetadata as StartedFromMetadata, schemas_SumAgg as SumAgg, schemas_SummaryExpression as SummaryExpression, schemas_SummaryExpressionList as SummaryExpressionList, schemas_Table as Table, schemas_TableMigration as TableMigration, schemas_TableName as TableName, schemas_TableOpAdd as TableOpAdd, schemas_TableOpRemove as TableOpRemove, schemas_TableOpRename as TableOpRename, schemas_TableRename as TableRename, schemas_TargetExpression as TargetExpression, schemas_TopValuesAgg as TopValuesAgg, schemas_TransactionDeleteOp as TransactionDeleteOp, schemas_TransactionError as TransactionError, schemas_TransactionFailure as TransactionFailure, schemas_TransactionGetOp as TransactionGetOp, schemas_TransactionInsertOp as TransactionInsertOp, TransactionOperation$1 as TransactionOperation, schemas_TransactionResultColumns as TransactionResultColumns, schemas_TransactionResultDelete as TransactionResultDelete, schemas_TransactionResultGet as TransactionResultGet, schemas_TransactionResultInsert as TransactionResultInsert, schemas_TransactionResultUpdate as TransactionResultUpdate, schemas_TransactionSuccess as TransactionSuccess, schemas_TransactionUpdateOp as TransactionUpdateOp, schemas_UniqueCountAgg as UniqueCountAgg, schemas_User as User, schemas_UserID as UserID, schemas_UserWithID as UserWithID, ValueBooster$1 as ValueBooster, schemas_WeeklyTimeWindow as WeeklyTimeWindow, schemas_Workspace as Workspace, schemas_WorkspaceID as WorkspaceID, schemas_WorkspaceInvite as WorkspaceInvite, schemas_WorkspaceMember as WorkspaceMember, schemas_WorkspaceMembers as WorkspaceMembers, schemas_WorkspaceMeta as WorkspaceMeta, schemas_WorkspacePlan as WorkspacePlan, XataRecord$1 as XataRecord };
7236
+ export type { schemas_APIKeyName as APIKeyName, schemas_AccessToken as AccessToken, schemas_AggExpression as AggExpression, schemas_AggExpressionMap as AggExpressionMap, AggResponse$1 as AggResponse, schemas_ApplyMigrationResponse as ApplyMigrationResponse, schemas_AuthorizationCodeRequest as AuthorizationCodeRequest, schemas_AuthorizationCodeResponse as AuthorizationCodeResponse, schemas_AutoscalingConfig as AutoscalingConfig, schemas_AutoscalingConfigResponse as AutoscalingConfigResponse, schemas_AverageAgg as AverageAgg, schemas_BoosterExpression as BoosterExpression, schemas_Branch as Branch, BranchMetadata$1 as BranchMetadata, schemas_BranchMigration as BranchMigration, BranchName$1 as BranchName, schemas_BranchOp as BranchOp, schemas_BranchSchema as BranchSchema, schemas_BranchWithCopyID as BranchWithCopyID, schemas_ClusterConfiguration as ClusterConfiguration, schemas_ClusterConfigurationResponse as ClusterConfigurationResponse, schemas_ClusterCreateDetails as ClusterCreateDetails, schemas_ClusterID 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_CountAgg as CountAgg, schemas_DBBranch as DBBranch, schemas_DBBranchName as DBBranchName, DBName$1 as DBName, schemas_DailyTimeWindow as DailyTimeWindow, schemas_DataInputRecord as DataInputRecord, schemas_DatabaseGithubSettings as DatabaseGithubSettings, schemas_DatabaseMetadata as DatabaseMetadata, schemas_DatabaseSettings as DatabaseSettings, DateBooster$1 as DateBooster, schemas_DateHistogramAgg as DateHistogramAgg, DateTime$1 as DateTime, schemas_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_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_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_MetricsDatapoint as MetricsDatapoint, schemas_MetricsLatency as MetricsLatency, schemas_Migration as Migration, schemas_MigrationColumnOp as MigrationColumnOp, schemas_MigrationHistoryItem as MigrationHistoryItem, schemas_MigrationHistoryResponse as MigrationHistoryResponse, schemas_MigrationJobID as MigrationJobID, schemas_MigrationJobStatus as MigrationJobStatus, schemas_MigrationJobStatusResponse as MigrationJobStatusResponse, schemas_MigrationJobType as MigrationJobType, schemas_MigrationObject as MigrationObject, schemas_MigrationOp as MigrationOp, 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, schemas_PageResponse as PageResponse, schemas_PageSize as PageSize, schemas_PageToken as PageToken, schemas_PercentilesAgg as PercentilesAgg, schemas_PrefixExpression as PrefixExpression, 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_SQLRecord as SQLRecord, schemas_Schema as Schema, schemas_SchemaEditScript as SchemaEditScript, schemas_SearchPageConfig as SearchPageConfig, schemas_SortExpression as SortExpression, schemas_SortOrder as SortOrder, schemas_StartedFromMetadata as StartedFromMetadata, schemas_SumAgg as SumAgg, schemas_SummaryExpression as SummaryExpression, schemas_SummaryExpressionList as SummaryExpressionList, schemas_Table as Table, schemas_TableMigration as TableMigration, schemas_TableName as TableName, schemas_TableOpAdd as TableOpAdd, schemas_TableOpRemove as TableOpRemove, schemas_TableOpRename as TableOpRename, schemas_TableRename as TableRename, schemas_TargetExpression as TargetExpression, schemas_TopValuesAgg as TopValuesAgg, schemas_TransactionDeleteOp as TransactionDeleteOp, schemas_TransactionError as TransactionError, schemas_TransactionFailure as TransactionFailure, schemas_TransactionGetOp as TransactionGetOp, schemas_TransactionInsertOp as TransactionInsertOp, TransactionOperation$1 as TransactionOperation, schemas_TransactionResultColumns as TransactionResultColumns, schemas_TransactionResultDelete as TransactionResultDelete, schemas_TransactionResultGet as TransactionResultGet, schemas_TransactionResultInsert as TransactionResultInsert, schemas_TransactionResultUpdate as TransactionResultUpdate, schemas_TransactionSuccess as TransactionSuccess, schemas_TransactionUpdateOp as TransactionUpdateOp, schemas_UniqueCountAgg as UniqueCountAgg, schemas_User as User, schemas_UserID as UserID, schemas_UserWithID as UserWithID, ValueBooster$1 as ValueBooster, schemas_WeeklyTimeWindow as WeeklyTimeWindow, schemas_Workspace as Workspace, schemas_WorkspaceID as WorkspaceID, schemas_WorkspaceInvite as WorkspaceInvite, schemas_WorkspaceMember as WorkspaceMember, schemas_WorkspaceMembers as WorkspaceMembers, schemas_WorkspaceMeta as WorkspaceMeta, schemas_WorkspacePlan as WorkspacePlan, schemas_WorkspaceSettings as WorkspaceSettings, XataRecord$1 as XataRecord };
6976
7237
  }
6977
7238
 
6978
7239
  type ApiExtraProps = Omit<FetcherExtraProps, 'endpoint'>;
@@ -7161,14 +7422,14 @@ declare class BranchApi {
7161
7422
  region: string;
7162
7423
  database: DBName$1;
7163
7424
  branch: BranchName$1;
7164
- }): Promise<PgRollMigrationHistoryResponse>;
7425
+ }): Promise<MigrationHistoryResponse>;
7165
7426
  applyMigration({ workspace, region, database, branch, migration }: {
7166
7427
  workspace: WorkspaceID;
7167
7428
  region: string;
7168
7429
  database: DBName$1;
7169
7430
  branch: BranchName$1;
7170
7431
  migration: Migration;
7171
- }): Promise<PgRollApplyMigrationResponse>;
7432
+ }): Promise<ApplyMigrationResponse>;
7172
7433
  }
7173
7434
  declare class TableApi {
7174
7435
  private extraProps;
@@ -10026,9 +10287,14 @@ type SQLQueryParams<T = any[]> = {
10026
10287
  * The consistency level to use when executing the query.
10027
10288
  */
10028
10289
  consistency?: 'strong' | 'eventual';
10290
+ /**
10291
+ * The response type to use when executing the query.
10292
+ */
10293
+ responseType?: 'json' | 'array';
10029
10294
  };
10030
10295
  type SQLQuery = TemplateStringsArray | SQLQueryParams;
10031
- type SQLQueryResult<T> = {
10296
+ type SQLResponseType = 'json' | 'array';
10297
+ type SQLQueryResultJSON<T> = {
10032
10298
  /**
10033
10299
  * The records returned by the query.
10034
10300
  */
@@ -10036,15 +10302,42 @@ type SQLQueryResult<T> = {
10036
10302
  /**
10037
10303
  * The columns metadata returned by the query.
10038
10304
  */
10039
- columns?: Record<string, {
10040
- type_name: string;
10305
+ columns: Array<{
10306
+ name: string;
10307
+ type: string;
10308
+ }>;
10309
+ /**
10310
+ * Optional warning message returned by the query.
10311
+ */
10312
+ warning?: string;
10313
+ };
10314
+ type SQLQueryResultArray = {
10315
+ /**
10316
+ * The records returned by the query.
10317
+ */
10318
+ rows: any[][];
10319
+ /**
10320
+ * The columns metadata returned by the query.
10321
+ */
10322
+ columns: Array<{
10323
+ name: string;
10324
+ type: string;
10041
10325
  }>;
10042
10326
  /**
10043
10327
  * Optional warning message returned by the query.
10044
10328
  */
10045
10329
  warning?: string;
10046
10330
  };
10047
- type SQLPluginResult = <T>(query: SQLQuery, ...parameters: any[]) => Promise<SQLQueryResult<T>>;
10331
+ type SQLQueryResult<T, Mode extends SQLResponseType = 'json'> = Mode extends 'json' ? SQLQueryResultJSON<T> : Mode extends 'array' ? SQLQueryResultArray : never;
10332
+ 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'>>;
10333
+ type SQLPluginResult = SQLPluginFunction & {
10334
+ /**
10335
+ * Connection string to use when connecting to the database.
10336
+ * It includes the workspace, region, database and branch.
10337
+ * Connects with the same credentials as the Xata client.
10338
+ */
10339
+ connectionString: string;
10340
+ };
10048
10341
  declare class SQLPlugin extends XataPlugin {
10049
10342
  build(pluginOptions: XataPluginOptions): SQLPluginResult;
10050
10343
  }
@@ -10211,4 +10504,4 @@ declare class XataError extends Error {
10211
10504
  constructor(message: string, status: number);
10212
10505
  }
10213
10506
 
10214
- 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, PageRecordArray, 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 SQLQueryResult, type SchemaDefinition, type SchemaInference, SchemaPlugin, type SchemaPluginResult, schemas as Schemas, type SearchBranchError, type SearchBranchPathParams, type SearchBranchRequestBody, type SearchBranchVariables, type SearchOptions, SearchPlugin, type SearchPluginResult, type SearchTableError, type SearchTablePathParams, type SearchTableRequestBody, type SearchTableVariables, type SearchXataRecord, type SelectableColumn, type SelectableColumnWithObjectNotation, type SelectedPick, type SerializedString, Serializer, type SerializerResult, type SetTableSchemaError, type SetTableSchemaPathParams, type SetTableSchemaRequestBody, type SetTableSchemaVariables, SimpleCache, type SimpleCacheOptions, type SqlQueryError, type SqlQueryPathParams, type SqlQueryRequestBody, type SqlQueryVariables, type SummarizeTableError, type SummarizeTablePathParams, type SummarizeTableRequestBody, type SummarizeTableVariables, type TotalCount, type TransactionOperation, TransactionPlugin, type TransactionPluginResult, type TransactionResults, type UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, type UpdateClusterError, type UpdateClusterPathParams, type UpdateClusterVariables, type UpdateColumnError, type UpdateColumnPathParams, type UpdateColumnRequestBody, type UpdateColumnVariables, type UpdateDatabaseGithubSettingsError, type UpdateDatabaseGithubSettingsPathParams, type UpdateDatabaseGithubSettingsVariables, type UpdateDatabaseMetadataError, type UpdateDatabaseMetadataPathParams, type UpdateDatabaseMetadataRequestBody, type UpdateDatabaseMetadataVariables, type 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 };
10507
+ export { type AcceptWorkspaceMemberInviteError, type AcceptWorkspaceMemberInvitePathParams, type AcceptWorkspaceMemberInviteVariables, 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, type BulkInsertTableRecordsError, type BulkInsertTableRecordsPathParams, type BulkInsertTableRecordsQueryParams, type BulkInsertTableRecordsRequestBody, type BulkInsertTableRecordsVariables, type CacheImpl, type CancelWorkspaceMemberInviteError, type CancelWorkspaceMemberInvitePathParams, type CancelWorkspaceMemberInviteVariables, type ClientConstructor, type ColumnsByValue, type CompareBranchSchemasError, type CompareBranchSchemasPathParams, type CompareBranchSchemasRequestBody, type CompareBranchSchemasVariables, type CompareBranchWithUserSchemaError, type CompareBranchWithUserSchemaPathParams, type CompareBranchWithUserSchemaRequestBody, type CompareBranchWithUserSchemaVariables, type CompareMigrationRequestError, type CompareMigrationRequestPathParams, type CompareMigrationRequestVariables, type CopyBranchError, type CopyBranchPathParams, type CopyBranchRequestBody, type CopyBranchVariables, type CreateBranchError, type CreateBranchPathParams, type CreateBranchQueryParams, type CreateBranchRequestBody, type CreateBranchResponse, type CreateBranchVariables, type CreateClusterError, type CreateClusterPathParams, type CreateClusterVariables, type CreateDatabaseError, type CreateDatabasePathParams, type CreateDatabaseRequestBody, type CreateDatabaseResponse, type CreateDatabaseVariables, type CreateMigrationRequestError, type CreateMigrationRequestPathParams, type CreateMigrationRequestRequestBody, type CreateMigrationRequestResponse, type CreateMigrationRequestVariables, type CreateTableError, type CreateTablePathParams, type CreateTableResponse, type CreateTableVariables, type CreateUserAPIKeyError, type CreateUserAPIKeyPathParams, type CreateUserAPIKeyResponse, type CreateUserAPIKeyVariables, type CreateWorkspaceError, type CreateWorkspaceVariables, type CursorNavigationOptions, type DeleteBranchError, type DeleteBranchPathParams, type DeleteBranchResponse, type DeleteBranchVariables, type DeleteColumnError, type DeleteColumnPathParams, type DeleteColumnVariables, type DeleteDatabaseError, type DeleteDatabaseGithubSettingsError, type DeleteDatabaseGithubSettingsPathParams, type DeleteDatabaseGithubSettingsVariables, type DeleteDatabasePathParams, type DeleteDatabaseResponse, type DeleteDatabaseVariables, type DeleteFileError, type DeleteFileItemError, type DeleteFileItemPathParams, type DeleteFileItemVariables, type DeleteFilePathParams, type DeleteFileVariables, type DeleteOAuthAccessTokenError, type DeleteOAuthAccessTokenPathParams, type DeleteOAuthAccessTokenVariables, type DeleteRecordError, type DeleteRecordPathParams, type DeleteRecordQueryParams, type DeleteRecordVariables, type DeleteTableError, type DeleteTablePathParams, type DeleteTableResponse, type DeleteTableVariables, type DeleteTransactionOperation, type DeleteUserAPIKeyError, type DeleteUserAPIKeyPathParams, type DeleteUserAPIKeyVariables, type DeleteUserError, type DeleteUserOAuthClientError, type DeleteUserOAuthClientPathParams, type DeleteUserOAuthClientVariables, type DeleteUserVariables, type DeleteWorkspaceError, type DeleteWorkspacePathParams, type DeleteWorkspaceVariables, type DeserializedType, type DownloadDestination, type EditableData, type ExecuteBranchMigrationPlanError, type ExecuteBranchMigrationPlanPathParams, type ExecuteBranchMigrationPlanRequestBody, type ExecuteBranchMigrationPlanVariables, type FetchImpl, FetcherError, type FetcherExtraProps, type FileAccessError, type FileAccessPathParams, type FileAccessQueryParams, type FileAccessVariables, type FileUploadError, type FileUploadPathParams, type FileUploadQueryParams, type FileUploadVariables, FilesPlugin, type FilesPluginResult, type GetAuthorizationCodeError, type GetAuthorizationCodeQueryParams, type GetAuthorizationCodeVariables, type GetBranchDetailsError, type GetBranchDetailsPathParams, type GetBranchDetailsVariables, type GetBranchListError, type GetBranchListPathParams, type GetBranchListVariables, type GetBranchMetadataError, type GetBranchMetadataPathParams, type GetBranchMetadataVariables, type GetBranchMigrationHistoryError, type GetBranchMigrationHistoryPathParams, type GetBranchMigrationHistoryRequestBody, type GetBranchMigrationHistoryResponse, type GetBranchMigrationHistoryVariables, type GetBranchMigrationJobStatusError, type GetBranchMigrationJobStatusPathParams, type GetBranchMigrationJobStatusVariables, type GetBranchMigrationPlanError, type GetBranchMigrationPlanPathParams, type GetBranchMigrationPlanVariables, type GetBranchSchemaHistoryError, type GetBranchSchemaHistoryPathParams, type GetBranchSchemaHistoryRequestBody, type GetBranchSchemaHistoryResponse, type GetBranchSchemaHistoryVariables, type GetBranchStatsError, type GetBranchStatsPathParams, type GetBranchStatsResponse, type GetBranchStatsVariables, type GetClusterError, type GetClusterPathParams, type GetClusterVariables, type GetColumnError, type GetColumnPathParams, type GetColumnVariables, type GetDatabaseGithubSettingsError, type GetDatabaseGithubSettingsPathParams, type GetDatabaseGithubSettingsVariables, type GetDatabaseListError, type GetDatabaseListPathParams, type GetDatabaseListVariables, type GetDatabaseMetadataError, type GetDatabaseMetadataPathParams, type GetDatabaseMetadataVariables, type GetDatabaseSettingsError, type GetDatabaseSettingsPathParams, type GetDatabaseSettingsVariables, type GetFileError, type GetFileItemError, type GetFileItemPathParams, type GetFileItemVariables, type GetFilePathParams, type GetFileVariables, type GetGitBranchesMappingError, type GetGitBranchesMappingPathParams, type GetGitBranchesMappingVariables, type GetMigrationHistoryError, type GetMigrationHistoryPathParams, type GetMigrationHistoryVariables, type GetMigrationJobStatusError, type GetMigrationJobStatusPathParams, type GetMigrationJobStatusVariables, type GetMigrationRequestError, type GetMigrationRequestIsMergedError, type GetMigrationRequestIsMergedPathParams, type GetMigrationRequestIsMergedResponse, type GetMigrationRequestIsMergedVariables, type GetMigrationRequestPathParams, type GetMigrationRequestVariables, type GetRecordError, type GetRecordPathParams, type GetRecordQueryParams, type GetRecordVariables, type GetSchemaError, type GetSchemaPathParams, type GetSchemaResponse, type GetSchemaVariables, type GetTableColumnsError, type GetTableColumnsPathParams, type GetTableColumnsResponse, type GetTableColumnsVariables, type GetTableSchemaError, type GetTableSchemaPathParams, type GetTableSchemaResponse, type GetTableSchemaVariables, type GetTransactionOperation, type GetUserAPIKeysError, type GetUserAPIKeysResponse, type GetUserAPIKeysVariables, type GetUserError, type GetUserOAuthAccessTokensError, type GetUserOAuthAccessTokensResponse, type GetUserOAuthAccessTokensVariables, type GetUserOAuthClientsError, type GetUserOAuthClientsResponse, type GetUserOAuthClientsVariables, type GetUserVariables, type GetWorkspaceError, type GetWorkspaceMembersListError, type GetWorkspaceMembersListPathParams, type GetWorkspaceMembersListVariables, type GetWorkspacePathParams, type GetWorkspaceSettingsError, type GetWorkspaceSettingsPathParams, type GetWorkspaceSettingsVariables, type GetWorkspaceVariables, type GetWorkspacesListError, type GetWorkspacesListResponse, type GetWorkspacesListVariables, type GrantAuthorizationCodeError, type GrantAuthorizationCodeVariables, type HostProvider, type Identifiable, type ImageTransformations, type InsertRecordError, type InsertRecordPathParams, type InsertRecordQueryParams, type InsertRecordVariables, type InsertRecordWithIDError, type InsertRecordWithIDPathParams, type InsertRecordWithIDQueryParams, type InsertRecordWithIDVariables, type InsertTransactionOperation, type InviteWorkspaceMemberError, type InviteWorkspaceMemberPathParams, type InviteWorkspaceMemberRequestBody, type InviteWorkspaceMemberVariables, type JSONData, type KeywordAskOptions, type Link, type ListClustersError, type ListClustersPathParams, type ListClustersQueryParams, type ListClustersVariables, type ListMigrationRequestsCommitsError, type ListMigrationRequestsCommitsPathParams, type ListMigrationRequestsCommitsRequestBody, type ListMigrationRequestsCommitsResponse, type ListMigrationRequestsCommitsVariables, type ListRegionsError, type ListRegionsPathParams, type ListRegionsVariables, type MergeMigrationRequestError, type MergeMigrationRequestPathParams, type MergeMigrationRequestVariables, type OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, PageRecordArray, type Paginable, type PaginationQueryMeta, type PreviewBranchSchemaEditError, type PreviewBranchSchemaEditPathParams, type PreviewBranchSchemaEditRequestBody, type PreviewBranchSchemaEditResponse, type PreviewBranchSchemaEditVariables, type PushBranchMigrationsError, type PushBranchMigrationsPathParams, type PushBranchMigrationsRequestBody, type PushBranchMigrationsVariables, type PutFileError, type PutFileItemError, type PutFileItemPathParams, type PutFileItemVariables, type PutFilePathParams, type PutFileVariables, Query, type QueryMigrationRequestsError, type QueryMigrationRequestsPathParams, type QueryMigrationRequestsRequestBody, type QueryMigrationRequestsResponse, type QueryMigrationRequestsVariables, type QueryTableError, type QueryTablePathParams, type QueryTableRequestBody, type QueryTableVariables, RecordArray, RecordColumnTypes, type RemoveGitBranchesEntryError, type RemoveGitBranchesEntryPathParams, type RemoveGitBranchesEntryQueryParams, type RemoveGitBranchesEntryVariables, type RemoveWorkspaceMemberError, type RemoveWorkspaceMemberPathParams, type RemoveWorkspaceMemberVariables, type RenameDatabaseError, type RenameDatabasePathParams, type RenameDatabaseRequestBody, type RenameDatabaseVariables, Repository, type ResendWorkspaceMemberInviteError, type ResendWorkspaceMemberInvitePathParams, type ResendWorkspaceMemberInviteVariables, type ResolveBranchError, type ResolveBranchPathParams, type ResolveBranchQueryParams, type ResolveBranchResponse, type ResolveBranchVariables, responses as Responses, RestRepository, SQLPlugin, type SQLPluginResult, type SQLQuery, type SQLQueryParams, type SQLQueryResult, type SchemaDefinition, type SchemaInference, SchemaPlugin, type SchemaPluginResult, schemas as Schemas, type SearchBranchError, type SearchBranchPathParams, type SearchBranchRequestBody, type SearchBranchVariables, type SearchOptions, SearchPlugin, type SearchPluginResult, type SearchTableError, type SearchTablePathParams, type SearchTableRequestBody, type SearchTableVariables, type SearchXataRecord, type SelectableColumn, type SelectableColumnWithObjectNotation, type SelectedPick, type SerializedString, Serializer, type SerializerResult, type SetTableSchemaError, type SetTableSchemaPathParams, type SetTableSchemaRequestBody, type SetTableSchemaVariables, SimpleCache, type SimpleCacheOptions, type SqlQueryError, type SqlQueryPathParams, type SqlQueryRequestBody, type SqlQueryVariables, type SummarizeTableError, type SummarizeTablePathParams, type SummarizeTableRequestBody, type SummarizeTableVariables, type TotalCount, type TransactionOperation, TransactionPlugin, type TransactionPluginResult, type TransactionResults, type UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, type UpdateClusterError, type UpdateClusterPathParams, type UpdateClusterVariables, type UpdateColumnError, type UpdateColumnPathParams, type UpdateColumnRequestBody, type UpdateColumnVariables, type UpdateDatabaseGithubSettingsError, type UpdateDatabaseGithubSettingsPathParams, type UpdateDatabaseGithubSettingsVariables, type UpdateDatabaseMetadataError, type UpdateDatabaseMetadataPathParams, type UpdateDatabaseMetadataRequestBody, type UpdateDatabaseMetadataVariables, type UpdateDatabaseSettingsError, type UpdateDatabaseSettingsPathParams, type UpdateDatabaseSettingsRequestBody, type UpdateDatabaseSettingsVariables, type UpdateMigrationRequestError, type UpdateMigrationRequestPathParams, type UpdateMigrationRequestRequestBody, type UpdateMigrationRequestVariables, type UpdateOAuthAccessTokenError, type UpdateOAuthAccessTokenPathParams, type UpdateOAuthAccessTokenRequestBody, type UpdateOAuthAccessTokenVariables, type UpdateRecordWithIDError, type UpdateRecordWithIDPathParams, type UpdateRecordWithIDQueryParams, type UpdateRecordWithIDVariables, type UpdateTableError, type UpdateTablePathParams, type UpdateTableRequestBody, type UpdateTableVariables, type UpdateTransactionOperation, type UpdateUserError, type UpdateUserVariables, type UpdateWorkspaceError, type UpdateWorkspaceMemberInviteError, type UpdateWorkspaceMemberInvitePathParams, type UpdateWorkspaceMemberInviteRequestBody, type UpdateWorkspaceMemberInviteVariables, type UpdateWorkspaceMemberRoleError, type UpdateWorkspaceMemberRolePathParams, type UpdateWorkspaceMemberRoleRequestBody, type UpdateWorkspaceMemberRoleVariables, type UpdateWorkspacePathParams, type UpdateWorkspaceSettingsError, type UpdateWorkspaceSettingsPathParams, type UpdateWorkspaceSettingsRequestBody, type UpdateWorkspaceSettingsVariables, type UpdateWorkspaceVariables, type UploadDestination, type UpsertRecordWithIDError, type UpsertRecordWithIDPathParams, type UpsertRecordWithIDQueryParams, type UpsertRecordWithIDVariables, type ValueAtColumn, type VectorAskOptions, type VectorSearchTableError, type VectorSearchTablePathParams, type VectorSearchTableRequestBody, type VectorSearchTableVariables, XataApiClient, type XataApiClientOptions, XataApiPlugin, type XataArrayFile, XataError, XataFile, XataPlugin, type XataPluginOptions, type XataRecord, acceptWorkspaceMemberInvite, adaptTable, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, applyMigration, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createCluster, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, fileUpload, ge, getAPIKey, getAuthorizationCode, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationJobStatus, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getCluster, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseSettings, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationHistory, getMigrationJobStatus, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getSchema, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, getWorkspaceSettings, getWorkspacesList, grantAuthorizationCode, greaterEquals, greaterThan, greaterThanEquals, gt, gte, iContains, iPattern, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isValidExpandedColumn, isValidSelectableColumns, isXataRecord, le, lessEquals, lessThan, lessThanEquals, listClusters, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, sqlQuery, startsWith, summarizeTable, transformImage, updateBranchMetadata, updateBranchSchema, updateCluster, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateDatabaseSettings, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, updateWorkspaceSettings, upsertRecordWithID, vectorSearchTable };