@xata.io/client 0.29.1 → 0.29.2

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
@@ -69,15 +69,21 @@ type FetchImpl = (url: string, init?: RequestInit) => Promise<Response>;
69
69
  * @pattern [a-zA-Z0-9_\-~]+:[a-zA-Z0-9_\-~]+
70
70
  */
71
71
  type DBBranchName = string;
72
- type PgRollApplyMigrationResponse = {
72
+ type ApplyMigrationResponse = {
73
73
  /**
74
74
  * The id of the migration job
75
75
  */
76
76
  jobID: string;
77
77
  };
78
- type PgRollJobType = 'apply' | 'start' | 'complete' | 'rollback';
79
- type PgRollJobStatus = 'pending' | 'in_progress' | 'completed' | 'failed';
80
- type PgRollJobStatusResponse = {
78
+ /**
79
+ * @maxLength 255
80
+ * @minLength 1
81
+ * @pattern [a-zA-Z0-9_\-~]+
82
+ */
83
+ type TableName = string;
84
+ type MigrationJobType = 'apply' | 'start' | 'complete' | 'rollback';
85
+ type MigrationJobStatus = 'pending' | 'in_progress' | 'completed' | 'failed';
86
+ type MigrationJobStatusResponse = {
81
87
  /**
82
88
  * The id of the migration job
83
89
  */
@@ -85,11 +91,11 @@ type PgRollJobStatusResponse = {
85
91
  /**
86
92
  * The type of the migration job
87
93
  */
88
- type: PgRollJobType;
94
+ type: MigrationJobType;
89
95
  /**
90
96
  * The status of the migration job
91
97
  */
92
- status: PgRollJobStatus;
98
+ status: MigrationJobStatus;
93
99
  /**
94
100
  * The error message associated with the migration job
95
101
  */
@@ -100,9 +106,9 @@ type PgRollJobStatusResponse = {
100
106
  * @minLength 1
101
107
  * @pattern [a-zA-Z0-9_\-~]+
102
108
  */
103
- type PgRollMigrationJobID = string;
104
- type PgRollMigrationType = 'pgroll' | 'inferred';
105
- type PgRollMigrationHistoryItem = {
109
+ type MigrationJobID = string;
110
+ type MigrationType = 'pgroll' | 'inferred';
111
+ type MigrationHistoryItem = {
106
112
  /**
107
113
  * The name of the migration
108
114
  */
@@ -128,13 +134,13 @@ type PgRollMigrationHistoryItem = {
128
134
  /**
129
135
  * The type of the migration
130
136
  */
131
- migrationType: PgRollMigrationType;
137
+ migrationType: MigrationType;
132
138
  };
133
- type PgRollMigrationHistoryResponse = {
139
+ type MigrationHistoryResponse = {
134
140
  /**
135
141
  * The migrations that have been applied to the branch
136
142
  */
137
- migrations: PgRollMigrationHistoryItem[];
143
+ migrations: MigrationHistoryItem[];
138
144
  };
139
145
  /**
140
146
  * @maxLength 255
@@ -162,6 +168,9 @@ type ListBranchesResponse = {
162
168
  databaseName: string;
163
169
  branches: Branch[];
164
170
  };
171
+ type DatabaseSettings = {
172
+ search_enabled: boolean;
173
+ };
165
174
  /**
166
175
  * @maxLength 255
167
176
  * @minLength 1
@@ -189,12 +198,6 @@ type StartedFromMetadata = {
189
198
  dbBranchID: string;
190
199
  migrationID: string;
191
200
  };
192
- /**
193
- * @maxLength 255
194
- * @minLength 1
195
- * @pattern [a-zA-Z0-9_\-~]+
196
- */
197
- type TableName = string;
198
201
  type ColumnLink = {
199
202
  table: string;
200
203
  };
@@ -255,15 +258,13 @@ type DBBranch = {
255
258
  schema: Schema;
256
259
  };
257
260
  type MigrationStatus$1 = 'completed' | 'pending' | 'failed';
258
- /**
259
- * @x-go-type schema.Schema
260
- */
261
- type PgRollSchema = {
261
+ type BranchSchema = {
262
262
  name: string;
263
263
  tables: {
264
264
  [key: string]: {
265
265
  oid: string;
266
266
  name: string;
267
+ xataCompatible: boolean;
267
268
  comment: string;
268
269
  columns: {
269
270
  [key: string]: {
@@ -959,6 +960,40 @@ type RecordMeta = {
959
960
  */
960
961
  warnings?: string[];
961
962
  };
963
+ } | {
964
+ xata_id: RecordID;
965
+ /**
966
+ * The record's version. Can be used for optimistic concurrency control.
967
+ */
968
+ xata_version: number;
969
+ /**
970
+ * The time when the record was created.
971
+ */
972
+ xata_createdat?: string;
973
+ /**
974
+ * The time when the record was last updated.
975
+ */
976
+ xata_updatedat?: string;
977
+ /**
978
+ * The record's table name. APIs that return records from multiple tables will set this field accordingly.
979
+ */
980
+ xata_table?: string;
981
+ /**
982
+ * Highlights of the record. This is used by the search APIs to indicate which fields and parts of the fields have matched the search.
983
+ */
984
+ xata_highlight?: {
985
+ [key: string]: string[] | {
986
+ [key: string]: any;
987
+ };
988
+ };
989
+ /**
990
+ * The record's relevancy score. This is returned by the search APIs.
991
+ */
992
+ xata_score?: number;
993
+ /**
994
+ * Encoding/Decoding errors
995
+ */
996
+ xata_warnings?: string[];
962
997
  };
963
998
  /**
964
999
  * File metadata
@@ -1508,6 +1543,11 @@ type RecordUpdateResponse = XataRecord$1 | {
1508
1543
  createdAt: string;
1509
1544
  updatedAt: string;
1510
1545
  };
1546
+ } | {
1547
+ xata_id: string;
1548
+ xata_version: number;
1549
+ xata_createdat: string;
1550
+ xata_updatedat: string;
1511
1551
  };
1512
1552
  type PutFileResponse = FileResponse;
1513
1553
  type RecordResponse = XataRecord$1;
@@ -1551,10 +1591,14 @@ type AggResponse = {
1551
1591
  };
1552
1592
  type SQLResponse = {
1553
1593
  records?: SQLRecord[];
1594
+ rows?: any[][];
1554
1595
  /**
1555
1596
  * Name of the column and its PostgreSQL type
1556
1597
  */
1557
- columns?: Record<string, any>;
1598
+ columns?: {
1599
+ name?: string;
1600
+ type?: string;
1601
+ }[];
1558
1602
  /**
1559
1603
  * Number of selected columns
1560
1604
  */
@@ -1848,6 +1892,53 @@ type ClusterResponse = {
1848
1892
  state: string;
1849
1893
  clusterID: string;
1850
1894
  };
1895
+ /**
1896
+ * @x-internal true
1897
+ */
1898
+ type AutoscalingConfigResponse = {
1899
+ /**
1900
+ * @format double
1901
+ * @default 0.5
1902
+ */
1903
+ minCapacity: number;
1904
+ /**
1905
+ * @format double
1906
+ * @default 4
1907
+ */
1908
+ maxCapacity: number;
1909
+ };
1910
+ /**
1911
+ * @x-internal true
1912
+ */
1913
+ type MaintenanceConfigResponse = {
1914
+ /**
1915
+ * @default false
1916
+ */
1917
+ autoMinorVersionUpgrade: boolean;
1918
+ /**
1919
+ * @default false
1920
+ */
1921
+ applyImmediately: boolean;
1922
+ maintenanceWindow: WeeklyTimeWindow;
1923
+ backupWindow: DailyTimeWindow;
1924
+ };
1925
+ /**
1926
+ * @x-internal true
1927
+ */
1928
+ type ClusterConfigurationResponse = {
1929
+ engineVersion: string;
1930
+ instanceType: string;
1931
+ /**
1932
+ * @format int64
1933
+ */
1934
+ replicas: number;
1935
+ /**
1936
+ * @default false
1937
+ */
1938
+ deletionProtection: boolean;
1939
+ autoscaling?: AutoscalingConfigResponse;
1940
+ maintenance: MaintenanceConfigResponse;
1941
+ };
1851
1942
  /**
1852
1943
  * @x-internal true
1853
1944
  */
@@ -1860,22 +1951,20 @@ type ClusterMetadata = {
1860
1951
  * @format int64
1861
1952
  */
1862
1953
  branches: number;
1863
- configuration?: ClusterConfiguration;
1954
+ configuration: ClusterConfigurationResponse;
1864
1955
  };
1865
1956
  /**
1866
1957
  * @x-internal true
1867
1958
  */
1868
1959
  type ClusterUpdateDetails = {
1960
+ command: string;
1961
+ };
1962
+ /**
1963
+ * @x-internal true
1964
+ */
1965
+ type ClusterUpdateMetadata = {
1869
1966
  id: ClusterID;
1870
- /**
1871
- * @maxLength 63
1872
- * @minLength 1
1873
- * @pattern [a-zA-Z0-9_-~:]+
1874
- */
1875
- name?: string;
1876
- configuration?: ClusterConfiguration;
1877
- state?: string;
1878
- region?: string;
1967
+ state: string;
1879
1968
  };
1880
1969
  /**
1881
1970
  * Metadata of databases
@@ -2798,7 +2887,7 @@ type UpdateClusterVariables = {
2798
2887
  /**
2799
2888
  * Update cluster for given cluster ID
2800
2889
  */
2801
- declare const updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterMetadata>;
2890
+ declare const updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterUpdateMetadata>;
2802
2891
  type GetDatabaseListPathParams = {
2803
2892
  /**
2804
2893
  * Workspace ID
@@ -3181,8 +3270,37 @@ type ApplyMigrationVariables = {
3181
3270
  /**
3182
3271
  * Applies a pgroll migration to the specified database.
3183
3272
  */
3184
- declare const applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<PgRollApplyMigrationResponse>;
3185
- type PgRollStatusPathParams = {
3273
+ declare const applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
3274
+ type AdaptTablePathParams = {
3275
+ /**
3276
+ * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
3277
+ */
3278
+ dbBranchName: DBBranchName;
3279
+ /**
3280
+ * The Table name
3281
+ */
3282
+ tableName: TableName;
3283
+ workspace: string;
3284
+ region: string;
3285
+ };
3286
+ type AdaptTableError = ErrorWrapper<{
3287
+ status: 400;
3288
+ payload: BadRequestError$1;
3289
+ } | {
3290
+ status: 401;
3291
+ payload: AuthError$1;
3292
+ } | {
3293
+ status: 404;
3294
+ payload: SimpleError$1;
3295
+ }>;
3296
+ type AdaptTableVariables = {
3297
+ pathParams: AdaptTablePathParams;
3298
+ } & DataPlaneFetcherExtraProps;
3299
+ /**
3300
+ * 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.
3301
+ */
3302
+ declare const adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
3303
+ type GetBranchMigrationJobStatusPathParams = {
3186
3304
  /**
3187
3305
  * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
3188
3306
  */
@@ -3190,7 +3308,7 @@ type PgRollStatusPathParams = {
3190
3308
  workspace: string;
3191
3309
  region: string;
3192
3310
  };
3193
- type PgRollStatusError = ErrorWrapper<{
3311
+ type GetBranchMigrationJobStatusError = ErrorWrapper<{
3194
3312
  status: 400;
3195
3313
  payload: BadRequestError$1;
3196
3314
  } | {
@@ -3200,11 +3318,11 @@ type PgRollStatusError = ErrorWrapper<{
3200
3318
  status: 404;
3201
3319
  payload: SimpleError$1;
3202
3320
  }>;
3203
- type PgRollStatusVariables = {
3204
- pathParams: PgRollStatusPathParams;
3321
+ type GetBranchMigrationJobStatusVariables = {
3322
+ pathParams: GetBranchMigrationJobStatusPathParams;
3205
3323
  } & DataPlaneFetcherExtraProps;
3206
- declare const pgRollStatus: (variables: PgRollStatusVariables, signal?: AbortSignal) => Promise<PgRollJobStatusResponse>;
3207
- type PgRollJobStatusPathParams = {
3324
+ declare const getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
3325
+ type GetMigrationJobStatusPathParams = {
3208
3326
  /**
3209
3327
  * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
3210
3328
  */
@@ -3212,11 +3330,11 @@ type PgRollJobStatusPathParams = {
3212
3330
  /**
3213
3331
  * The id of the migration job
3214
3332
  */
3215
- jobId: PgRollMigrationJobID;
3333
+ jobId: MigrationJobID;
3216
3334
  workspace: string;
3217
3335
  region: string;
3218
3336
  };
3219
- type PgRollJobStatusError = ErrorWrapper<{
3337
+ type GetMigrationJobStatusError = ErrorWrapper<{
3220
3338
  status: 400;
3221
3339
  payload: BadRequestError$1;
3222
3340
  } | {
@@ -3226,11 +3344,11 @@ type PgRollJobStatusError = ErrorWrapper<{
3226
3344
  status: 404;
3227
3345
  payload: SimpleError$1;
3228
3346
  }>;
3229
- type PgRollJobStatusVariables = {
3230
- pathParams: PgRollJobStatusPathParams;
3347
+ type GetMigrationJobStatusVariables = {
3348
+ pathParams: GetMigrationJobStatusPathParams;
3231
3349
  } & DataPlaneFetcherExtraProps;
3232
- declare const pgRollJobStatus: (variables: PgRollJobStatusVariables, signal?: AbortSignal) => Promise<PgRollJobStatusResponse>;
3233
- type PgRollMigrationHistoryPathParams = {
3350
+ declare const getMigrationJobStatus: (variables: GetMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
3351
+ type GetMigrationHistoryPathParams = {
3234
3352
  /**
3235
3353
  * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
3236
3354
  */
@@ -3238,7 +3356,7 @@ type PgRollMigrationHistoryPathParams = {
3238
3356
  workspace: string;
3239
3357
  region: string;
3240
3358
  };
3241
- type PgRollMigrationHistoryError = ErrorWrapper<{
3359
+ type GetMigrationHistoryError = ErrorWrapper<{
3242
3360
  status: 400;
3243
3361
  payload: BadRequestError$1;
3244
3362
  } | {
@@ -3248,10 +3366,10 @@ type PgRollMigrationHistoryError = ErrorWrapper<{
3248
3366
  status: 404;
3249
3367
  payload: SimpleError$1;
3250
3368
  }>;
3251
- type PgRollMigrationHistoryVariables = {
3252
- pathParams: PgRollMigrationHistoryPathParams;
3369
+ type GetMigrationHistoryVariables = {
3370
+ pathParams: GetMigrationHistoryPathParams;
3253
3371
  } & DataPlaneFetcherExtraProps;
3254
- declare const pgRollMigrationHistory: (variables: PgRollMigrationHistoryVariables, signal?: AbortSignal) => Promise<PgRollMigrationHistoryResponse>;
3372
+ declare const getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal) => Promise<MigrationHistoryResponse>;
3255
3373
  type GetBranchListPathParams = {
3256
3374
  /**
3257
3375
  * The Database Name
@@ -3277,6 +3395,57 @@ type GetBranchListVariables = {
3277
3395
  * List all available Branches
3278
3396
  */
3279
3397
  declare const getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal) => Promise<ListBranchesResponse>;
3398
+ type GetDatabaseSettingsPathParams = {
3399
+ /**
3400
+ * The Database Name
3401
+ */
3402
+ dbName: DBName$1;
3403
+ workspace: string;
3404
+ region: string;
3405
+ };
3406
+ type GetDatabaseSettingsError = ErrorWrapper<{
3407
+ status: 400;
3408
+ payload: SimpleError$1;
3409
+ } | {
3410
+ status: 401;
3411
+ payload: AuthError$1;
3412
+ } | {
3413
+ status: 404;
3414
+ payload: SimpleError$1;
3415
+ }>;
3416
+ type GetDatabaseSettingsVariables = {
3417
+ pathParams: GetDatabaseSettingsPathParams;
3418
+ } & DataPlaneFetcherExtraProps;
3419
+ /**
3420
+ * Get database settings
3421
+ */
3422
+ declare const getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
3423
+ type UpdateDatabaseSettingsPathParams = {
3424
+ /**
3425
+ * The Database Name
3426
+ */
3427
+ dbName: DBName$1;
3428
+ workspace: string;
3429
+ region: string;
3430
+ };
3431
+ type UpdateDatabaseSettingsError = ErrorWrapper<{
3432
+ status: 400;
3433
+ payload: SimpleError$1;
3434
+ } | {
3435
+ status: 401;
3436
+ payload: AuthError$1;
3437
+ } | {
3438
+ status: 404;
3439
+ payload: SimpleError$1;
3440
+ }>;
3441
+ type UpdateDatabaseSettingsVariables = {
3442
+ body: DatabaseSettings;
3443
+ pathParams: UpdateDatabaseSettingsPathParams;
3444
+ } & DataPlaneFetcherExtraProps;
3445
+ /**
3446
+ * Update database settings, this endpoint can be used to disable search
3447
+ */
3448
+ declare const updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
3280
3449
  type GetBranchDetailsPathParams = {
3281
3450
  /**
3282
3451
  * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
@@ -3404,7 +3573,7 @@ type GetSchemaError = ErrorWrapper<{
3404
3573
  payload: SimpleError$1;
3405
3574
  }>;
3406
3575
  type GetSchemaResponse = {
3407
- schema: PgRollSchema;
3576
+ schema: BranchSchema;
3408
3577
  };
3409
3578
  type GetSchemaVariables = {
3410
3579
  pathParams: GetSchemaPathParams;
@@ -6631,6 +6800,12 @@ type SqlQueryRequestBody = {
6631
6800
  * @default strong
6632
6801
  */
6633
6802
  consistency?: 'strong' | 'eventual';
6803
+ /**
6804
+ * The response type.
6805
+ *
6806
+ * @default json
6807
+ */
6808
+ responseType?: 'json' | 'array';
6634
6809
  };
6635
6810
  type SqlQueryVariables = {
6636
6811
  body: SqlQueryRequestBody;
@@ -6643,10 +6818,6 @@ declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) =>
6643
6818
 
6644
6819
  declare const operationsByTag: {
6645
6820
  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
6821
  getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal | undefined) => Promise<ListBranchesResponse>;
6651
6822
  getBranchDetails: (variables: GetBranchDetailsVariables, signal?: AbortSignal | undefined) => Promise<DBBranch>;
6652
6823
  createBranch: (variables: CreateBranchVariables, signal?: AbortSignal | undefined) => Promise<CreateBranchResponse>;
@@ -6671,6 +6842,11 @@ declare const operationsByTag: {
6671
6842
  removeWorkspaceMember: (variables: RemoveWorkspaceMemberVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
6672
6843
  };
6673
6844
  migrations: {
6845
+ applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal | undefined) => Promise<ApplyMigrationResponse>;
6846
+ adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal | undefined) => Promise<ApplyMigrationResponse>;
6847
+ getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal | undefined) => Promise<MigrationJobStatusResponse>;
6848
+ getMigrationJobStatus: (variables: GetMigrationJobStatusVariables, signal?: AbortSignal | undefined) => Promise<MigrationJobStatusResponse>;
6849
+ getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal | undefined) => Promise<MigrationHistoryResponse>;
6674
6850
  getSchema: (variables: GetSchemaVariables, signal?: AbortSignal | undefined) => Promise<GetSchemaResponse>;
6675
6851
  getBranchMigrationHistory: (variables: GetBranchMigrationHistoryVariables, signal?: AbortSignal | undefined) => Promise<GetBranchMigrationHistoryResponse>;
6676
6852
  getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables, signal?: AbortSignal | undefined) => Promise<BranchMigrationPlan>;
@@ -6693,6 +6869,10 @@ declare const operationsByTag: {
6693
6869
  deleteRecord: (variables: DeleteRecordVariables, signal?: AbortSignal | undefined) => Promise<XataRecord$1>;
6694
6870
  bulkInsertTableRecords: (variables: BulkInsertTableRecordsVariables, signal?: AbortSignal | undefined) => Promise<BulkInsertResponse>;
6695
6871
  };
6872
+ database: {
6873
+ getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal | undefined) => Promise<DatabaseSettings>;
6874
+ updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal | undefined) => Promise<DatabaseSettings>;
6875
+ };
6696
6876
  migrationRequests: {
6697
6877
  queryMigrationRequests: (variables: QueryMigrationRequestsVariables, signal?: AbortSignal | undefined) => Promise<QueryMigrationRequestsResponse>;
6698
6878
  createMigrationRequest: (variables: CreateMigrationRequestVariables, signal?: AbortSignal | undefined) => Promise<CreateMigrationRequestResponse>;
@@ -6768,7 +6948,7 @@ declare const operationsByTag: {
6768
6948
  listClusters: (variables: ListClustersVariables, signal?: AbortSignal | undefined) => Promise<ListClustersResponse>;
6769
6949
  createCluster: (variables: CreateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterResponse>;
6770
6950
  getCluster: (variables: GetClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterMetadata>;
6771
- updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterMetadata>;
6951
+ updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterUpdateMetadata>;
6772
6952
  };
6773
6953
  databases: {
6774
6954
  getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal | undefined) => Promise<ListDatabasesResponse>;
@@ -6824,22 +7004,27 @@ type schemas_APIKeyName = APIKeyName;
6824
7004
  type schemas_AccessToken = AccessToken;
6825
7005
  type schemas_AggExpression = AggExpression;
6826
7006
  type schemas_AggExpressionMap = AggExpressionMap;
7007
+ type schemas_ApplyMigrationResponse = ApplyMigrationResponse;
6827
7008
  type schemas_AuthorizationCodeRequest = AuthorizationCodeRequest;
6828
7009
  type schemas_AuthorizationCodeResponse = AuthorizationCodeResponse;
6829
7010
  type schemas_AutoscalingConfig = AutoscalingConfig;
7011
+ type schemas_AutoscalingConfigResponse = AutoscalingConfigResponse;
6830
7012
  type schemas_AverageAgg = AverageAgg;
6831
7013
  type schemas_BoosterExpression = BoosterExpression;
6832
7014
  type schemas_Branch = Branch;
6833
7015
  type schemas_BranchMigration = BranchMigration;
6834
7016
  type schemas_BranchOp = BranchOp;
7017
+ type schemas_BranchSchema = BranchSchema;
6835
7018
  type schemas_BranchWithCopyID = BranchWithCopyID;
6836
7019
  type schemas_ClusterConfiguration = ClusterConfiguration;
7020
+ type schemas_ClusterConfigurationResponse = ClusterConfigurationResponse;
6837
7021
  type schemas_ClusterCreateDetails = ClusterCreateDetails;
6838
7022
  type schemas_ClusterID = ClusterID;
6839
7023
  type schemas_ClusterMetadata = ClusterMetadata;
6840
7024
  type schemas_ClusterResponse = ClusterResponse;
6841
7025
  type schemas_ClusterShortMetadata = ClusterShortMetadata;
6842
7026
  type schemas_ClusterUpdateDetails = ClusterUpdateDetails;
7027
+ type schemas_ClusterUpdateMetadata = ClusterUpdateMetadata;
6843
7028
  type schemas_Column = Column;
6844
7029
  type schemas_ColumnFile = ColumnFile;
6845
7030
  type schemas_ColumnLink = ColumnLink;
@@ -6858,6 +7043,7 @@ type schemas_DailyTimeWindow = DailyTimeWindow;
6858
7043
  type schemas_DataInputRecord = DataInputRecord;
6859
7044
  type schemas_DatabaseGithubSettings = DatabaseGithubSettings;
6860
7045
  type schemas_DatabaseMetadata = DatabaseMetadata;
7046
+ type schemas_DatabaseSettings = DatabaseSettings;
6861
7047
  type schemas_DateHistogramAgg = DateHistogramAgg;
6862
7048
  type schemas_FileAccessID = FileAccessID;
6863
7049
  type schemas_FileItemID = FileItemID;
@@ -6886,17 +7072,25 @@ type schemas_ListDatabasesResponse = ListDatabasesResponse;
6886
7072
  type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
6887
7073
  type schemas_ListRegionsResponse = ListRegionsResponse;
6888
7074
  type schemas_MaintenanceConfig = MaintenanceConfig;
7075
+ type schemas_MaintenanceConfigResponse = MaintenanceConfigResponse;
6889
7076
  type schemas_MaxAgg = MaxAgg;
6890
7077
  type schemas_MediaType = MediaType;
6891
7078
  type schemas_MetricsDatapoint = MetricsDatapoint;
6892
7079
  type schemas_MetricsLatency = MetricsLatency;
6893
7080
  type schemas_Migration = Migration;
6894
7081
  type schemas_MigrationColumnOp = MigrationColumnOp;
7082
+ type schemas_MigrationHistoryItem = MigrationHistoryItem;
7083
+ type schemas_MigrationHistoryResponse = MigrationHistoryResponse;
7084
+ type schemas_MigrationJobID = MigrationJobID;
7085
+ type schemas_MigrationJobStatus = MigrationJobStatus;
7086
+ type schemas_MigrationJobStatusResponse = MigrationJobStatusResponse;
7087
+ type schemas_MigrationJobType = MigrationJobType;
6895
7088
  type schemas_MigrationObject = MigrationObject;
6896
7089
  type schemas_MigrationOp = MigrationOp;
6897
7090
  type schemas_MigrationRequest = MigrationRequest;
6898
7091
  type schemas_MigrationRequestNumber = MigrationRequestNumber;
6899
7092
  type schemas_MigrationTableOp = MigrationTableOp;
7093
+ type schemas_MigrationType = MigrationType;
6900
7094
  type schemas_MinAgg = MinAgg;
6901
7095
  type schemas_NumericHistogramAgg = NumericHistogramAgg;
6902
7096
  type schemas_OAuthAccessToken = OAuthAccessToken;
@@ -6910,15 +7104,6 @@ type schemas_PageResponse = PageResponse;
6910
7104
  type schemas_PageSize = PageSize;
6911
7105
  type schemas_PageToken = PageToken;
6912
7106
  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
7107
  type schemas_PrefixExpression = PrefixExpression;
6923
7108
  type schemas_ProjectionConfig = ProjectionConfig;
6924
7109
  type schemas_QueryColumnsProjection = QueryColumnsProjection;
@@ -6972,7 +7157,7 @@ type schemas_WorkspaceMembers = WorkspaceMembers;
6972
7157
  type schemas_WorkspaceMeta = WorkspaceMeta;
6973
7158
  type schemas_WorkspacePlan = WorkspacePlan;
6974
7159
  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 };
7160
+ 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, XataRecord$1 as XataRecord };
6976
7161
  }
6977
7162
 
6978
7163
  type ApiExtraProps = Omit<FetcherExtraProps, 'endpoint'>;
@@ -7161,14 +7346,14 @@ declare class BranchApi {
7161
7346
  region: string;
7162
7347
  database: DBName$1;
7163
7348
  branch: BranchName$1;
7164
- }): Promise<PgRollMigrationHistoryResponse>;
7349
+ }): Promise<MigrationHistoryResponse>;
7165
7350
  applyMigration({ workspace, region, database, branch, migration }: {
7166
7351
  workspace: WorkspaceID;
7167
7352
  region: string;
7168
7353
  database: DBName$1;
7169
7354
  branch: BranchName$1;
7170
7355
  migration: Migration;
7171
- }): Promise<PgRollApplyMigrationResponse>;
7356
+ }): Promise<ApplyMigrationResponse>;
7172
7357
  }
7173
7358
  declare class TableApi {
7174
7359
  private extraProps;
@@ -10026,9 +10211,14 @@ type SQLQueryParams<T = any[]> = {
10026
10211
  * The consistency level to use when executing the query.
10027
10212
  */
10028
10213
  consistency?: 'strong' | 'eventual';
10214
+ /**
10215
+ * The response type to use when executing the query.
10216
+ */
10217
+ responseType?: 'json' | 'array';
10029
10218
  };
10030
10219
  type SQLQuery = TemplateStringsArray | SQLQueryParams;
10031
- type SQLQueryResult<T> = {
10220
+ type SQLResponseType = 'json' | 'array';
10221
+ type SQLQueryResultJSON<T> = {
10032
10222
  /**
10033
10223
  * The records returned by the query.
10034
10224
  */
@@ -10036,15 +10226,34 @@ type SQLQueryResult<T> = {
10036
10226
  /**
10037
10227
  * The columns metadata returned by the query.
10038
10228
  */
10039
- columns?: Record<string, {
10040
- type_name: string;
10229
+ columns: Array<{
10230
+ name: string;
10231
+ type: string;
10232
+ }>;
10233
+ /**
10234
+ * Optional warning message returned by the query.
10235
+ */
10236
+ warning?: string;
10237
+ };
10238
+ type SQLQueryResultArray = {
10239
+ /**
10240
+ * The records returned by the query.
10241
+ */
10242
+ rows: any[][];
10243
+ /**
10244
+ * The columns metadata returned by the query.
10245
+ */
10246
+ columns: Array<{
10247
+ name: string;
10248
+ type: string;
10041
10249
  }>;
10042
10250
  /**
10043
10251
  * Optional warning message returned by the query.
10044
10252
  */
10045
10253
  warning?: string;
10046
10254
  };
10047
- type SQLPluginResult = <T>(query: SQLQuery, ...parameters: any[]) => Promise<SQLQueryResult<T>>;
10255
+ type SQLQueryResult<T, Mode extends SQLResponseType = 'json'> = Mode extends 'json' ? SQLQueryResultJSON<T> : Mode extends 'array' ? SQLQueryResultArray : never;
10256
+ type SQLPluginResult = <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'>>;
10048
10257
  declare class SQLPlugin extends XataPlugin {
10049
10258
  build(pluginOptions: XataPluginOptions): SQLPluginResult;
10050
10259
  }
@@ -10211,4 +10420,4 @@ declare class XataError extends Error {
10211
10420
  constructor(message: string, status: number);
10212
10421
  }
10213
10422
 
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 };
10423
+ 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 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 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 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, 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, upsertRecordWithID, vectorSearchTable };