@xata.io/client 0.0.0-alpha.vfc446ea → 0.0.0-alpha.vfc4cc60

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
@@ -159,6 +159,7 @@ type OAuthClientPublicDetails = {
159
159
  icon?: string;
160
160
  clientId: string;
161
161
  };
162
+ type OAuthClientID = string;
162
163
  type OAuthAccessToken = {
163
164
  token: string;
164
165
  scopes: string[];
@@ -186,6 +187,7 @@ type WorkspaceID = string;
186
187
  * @x-go-type auth.Role
187
188
  */
188
189
  type Role = 'owner' | 'maintainer';
190
+ type WorkspacePlan = 'free' | 'pro';
189
191
  type WorkspaceMeta = {
190
192
  name: string;
191
193
  slug?: string;
@@ -193,7 +195,7 @@ type WorkspaceMeta = {
193
195
  type Workspace = WorkspaceMeta & {
194
196
  id: WorkspaceID;
195
197
  memberCount: number;
196
- plan: 'free' | 'pro';
198
+ plan: WorkspacePlan;
197
199
  };
198
200
  type WorkspaceMember = {
199
201
  userId: UserID;
@@ -228,6 +230,170 @@ type WorkspaceMembers = {
228
230
  * @pattern ^ik_[a-zA-Z0-9]+
229
231
  */
230
232
  type InviteKey = string;
233
+ /**
234
+ * @x-internal true
235
+ * @pattern [a-zA-Z0-9_-~:]+
236
+ */
237
+ type ClusterID = string;
238
+ /**
239
+ * @x-internal true
240
+ */
241
+ type ClusterShortMetadata = {
242
+ id: ClusterID;
243
+ state: string;
244
+ region: string;
245
+ name: string;
246
+ /**
247
+ * @format int64
248
+ */
249
+ branches: number;
250
+ };
251
+ /**
252
+ * @x-internal true
253
+ */
254
+ type ListClustersResponse = {
255
+ clusters: ClusterShortMetadata[];
256
+ };
257
+ /**
258
+ * @x-internal true
259
+ */
260
+ type AutoscalingConfig = {
261
+ /**
262
+ * @format double
263
+ * @default 2
264
+ */
265
+ minCapacity?: number;
266
+ /**
267
+ * @format double
268
+ * @default 16
269
+ */
270
+ maxCapacity?: number;
271
+ };
272
+ /**
273
+ * @x-internal true
274
+ */
275
+ type WeeklyTimeWindow = {
276
+ day: 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun';
277
+ /**
278
+ * @maximum 24
279
+ * @minimum 0
280
+ */
281
+ hour: number;
282
+ /**
283
+ * @maximum 60
284
+ * @minimum 0
285
+ */
286
+ minute: number;
287
+ /**
288
+ * @format float
289
+ * @maximum 23.5
290
+ * @minimum 0.5
291
+ */
292
+ duration: number;
293
+ };
294
+ /**
295
+ * @x-internal true
296
+ */
297
+ type DailyTimeWindow = {
298
+ /**
299
+ * @maximum 24
300
+ * @minimum 0
301
+ */
302
+ hour: number;
303
+ /**
304
+ * @maximum 60
305
+ * @minimum 0
306
+ */
307
+ minute: number;
308
+ /**
309
+ * @format float
310
+ */
311
+ duration: number;
312
+ };
313
+ /**
314
+ * @x-internal true
315
+ */
316
+ type MaintenanceConfig = {
317
+ /**
318
+ * @default false
319
+ */
320
+ autoMinorVersionUpgrade?: boolean;
321
+ /**
322
+ * @default false
323
+ */
324
+ applyImmediately?: boolean;
325
+ maintenanceWindow?: WeeklyTimeWindow;
326
+ backupWindow?: DailyTimeWindow;
327
+ };
328
+ /**
329
+ * @x-internal true
330
+ */
331
+ type ClusterConfiguration = {
332
+ engineVersion: string;
333
+ instanceType: string;
334
+ /**
335
+ * @format int64
336
+ */
337
+ replicas?: number;
338
+ /**
339
+ * @default false
340
+ */
341
+ deletionProtection?: boolean;
342
+ autoscaling?: AutoscalingConfig;
343
+ maintenance?: MaintenanceConfig;
344
+ };
345
+ /**
346
+ * @x-internal true
347
+ */
348
+ type ClusterCreateDetails = {
349
+ /**
350
+ * @minLength 1
351
+ */
352
+ region: string;
353
+ /**
354
+ * @maxLength 63
355
+ * @minLength 1
356
+ * @pattern [a-zA-Z0-9_-~:]+
357
+ */
358
+ name: string;
359
+ configuration: ClusterConfiguration;
360
+ };
361
+ /**
362
+ * @x-internal true
363
+ */
364
+ type ClusterResponse = {
365
+ state: string;
366
+ clusterID: string;
367
+ };
368
+ /**
369
+ * @x-internal true
370
+ */
371
+ type ClusterMetadata = {
372
+ id: ClusterID;
373
+ state: string;
374
+ region: string;
375
+ name: string;
376
+ /**
377
+ * @format int64
378
+ */
379
+ branches: number;
380
+ configuration?: ClusterConfiguration;
381
+ };
382
+ /**
383
+ * @x-internal true
384
+ */
385
+ type ClusterUpdateDetails = {
386
+ id: ClusterID;
387
+ /**
388
+ * @maxLength 63
389
+ * @minLength 1
390
+ * @pattern [a-zA-Z0-9_-~:]+
391
+ */
392
+ name?: string;
393
+ configuration?: ClusterConfiguration;
394
+ state?: string;
395
+ region?: string;
396
+ };
231
397
  /**
232
398
  * Metadata of databases
233
399
  */
@@ -528,6 +694,26 @@ type GetUserOAuthClientsVariables = ControlPlaneFetcherExtraProps;
528
694
  * Retrieve the list of OAuth Clients that a user has authorized
529
695
  */
530
696
  declare const getUserOAuthClients: (variables: GetUserOAuthClientsVariables, signal?: AbortSignal) => Promise<GetUserOAuthClientsResponse>;
697
+ type DeleteUserOAuthClientPathParams = {
698
+ clientId: OAuthClientID;
699
+ };
700
+ type DeleteUserOAuthClientError = ErrorWrapper$1<{
701
+ status: 400;
702
+ payload: BadRequestError$1;
703
+ } | {
704
+ status: 401;
705
+ payload: AuthError$1;
706
+ } | {
707
+ status: 404;
708
+ payload: SimpleError$1;
709
+ }>;
710
+ type DeleteUserOAuthClientVariables = {
711
+ pathParams: DeleteUserOAuthClientPathParams;
712
+ } & ControlPlaneFetcherExtraProps;
713
+ /**
714
+ * Delete the oauth client for the user and revoke all access
715
+ */
716
+ declare const deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal) => Promise<undefined>;
531
717
  type GetUserOAuthAccessTokensError = ErrorWrapper$1<{
532
718
  status: 400;
533
719
  payload: BadRequestError$1;
@@ -615,6 +801,7 @@ type GetWorkspacesListResponse = {
615
801
  name: string;
616
802
  slug: string;
617
803
  role: Role;
804
+ plan: WorkspacePlan;
618
805
  }[];
619
806
  };
620
807
  type GetWorkspacesListVariables = ControlPlaneFetcherExtraProps;
@@ -972,6 +1159,99 @@ type ResendWorkspaceMemberInviteVariables = {
972
1159
  * This operation provides a way to resend an Invite notification. Invite notifications can only be sent for Invites not yet accepted.
973
1160
  */
974
1161
  declare const resendWorkspaceMemberInvite: (variables: ResendWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
1162
+ type ListClustersPathParams = {
1163
+ /**
1164
+ * Workspace ID
1165
+ */
1166
+ workspaceId: WorkspaceID;
1167
+ };
1168
+ type ListClustersError = ErrorWrapper$1<{
1169
+ status: 400;
1170
+ payload: BadRequestError$1;
1171
+ } | {
1172
+ status: 401;
1173
+ payload: AuthError$1;
1174
+ }>;
1175
+ type ListClustersVariables = {
1176
+ pathParams: ListClustersPathParams;
1177
+ } & ControlPlaneFetcherExtraProps;
1178
+ /**
1179
+ * List all clusters available in your Workspace.
1180
+ */
1181
+ declare const listClusters: (variables: ListClustersVariables, signal?: AbortSignal) => Promise<ListClustersResponse>;
1182
+ type CreateClusterPathParams = {
1183
+ /**
1184
+ * Workspace ID
1185
+ */
1186
+ workspaceId: WorkspaceID;
1187
+ };
1188
+ type CreateClusterError = ErrorWrapper$1<{
1189
+ status: 400;
1190
+ payload: BadRequestError$1;
1191
+ } | {
1192
+ status: 401;
1193
+ payload: AuthError$1;
1194
+ } | {
1195
+ status: 422;
1196
+ payload: SimpleError$1;
1197
+ } | {
1198
+ status: 423;
1199
+ payload: SimpleError$1;
1200
+ }>;
1201
+ type CreateClusterVariables = {
1202
+ body: ClusterCreateDetails;
1203
+ pathParams: CreateClusterPathParams;
1204
+ } & ControlPlaneFetcherExtraProps;
1205
+ declare const createCluster: (variables: CreateClusterVariables, signal?: AbortSignal) => Promise<ClusterResponse>;
1206
+ type GetClusterPathParams = {
1207
+ /**
1208
+ * Workspace ID
1209
+ */
1210
+ workspaceId: WorkspaceID;
1211
+ /**
1212
+ * Cluster ID
1213
+ */
1214
+ clusterId: ClusterID;
1215
+ };
1216
+ type GetClusterError = ErrorWrapper$1<{
1217
+ status: 400;
1218
+ payload: BadRequestError$1;
1219
+ } | {
1220
+ status: 401;
1221
+ payload: AuthError$1;
1222
+ }>;
1223
+ type GetClusterVariables = {
1224
+ pathParams: GetClusterPathParams;
1225
+ } & ControlPlaneFetcherExtraProps;
1226
+ /**
1227
+ * Retrieve metadata for given cluster ID
1228
+ */
1229
+ declare const getCluster: (variables: GetClusterVariables, signal?: AbortSignal) => Promise<ClusterMetadata>;
1230
+ type UpdateClusterPathParams = {
1231
+ /**
1232
+ * Workspace ID
1233
+ */
1234
+ workspaceId: WorkspaceID;
1235
+ /**
1236
+ * Cluster ID
1237
+ */
1238
+ clusterId: ClusterID;
1239
+ };
1240
+ type UpdateClusterError = ErrorWrapper$1<{
1241
+ status: 400;
1242
+ payload: BadRequestError$1;
1243
+ } | {
1244
+ status: 401;
1245
+ payload: AuthError$1;
1246
+ }>;
1247
+ type UpdateClusterVariables = {
1248
+ body: ClusterUpdateDetails;
1249
+ pathParams: UpdateClusterPathParams;
1250
+ } & ControlPlaneFetcherExtraProps;
1251
+ /**
1252
+ * Update cluster for given cluster ID
1253
+ */
1254
+ declare const updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterMetadata>;
975
1255
  type GetDatabaseListPathParams = {
976
1256
  /**
977
1257
  * Workspace ID
@@ -1032,6 +1312,13 @@ type CreateDatabaseRequestBody = {
1032
1312
  * @minLength 1
1033
1313
  */
1034
1314
  region: string;
1315
+ /**
1316
+ * The dedicated cluster where branches from this database will be created. Defaults to 'xata-cloud'.
1317
+ *
1318
+ * @minLength 1
1319
+ * @x-internal true
1320
+ */
1321
+ defaultClusterID?: string;
1035
1322
  ui?: {
1036
1323
  color?: string;
1037
1324
  };
@@ -1286,6 +1573,25 @@ declare const listRegions: (variables: ListRegionsVariables, signal?: AbortSigna
1286
1573
  *
1287
1574
  * @version 1.0
1288
1575
  */
1576
+ /**
1577
+ * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
1578
+ *
1579
+ * @maxLength 511
1580
+ * @minLength 1
1581
+ * @pattern [a-zA-Z0-9_\-~]+:[a-zA-Z0-9_\-~]+
1582
+ */
1583
+ type DBBranchName = string;
1584
+ type PgRollMigrationStatus = 'no migrations' | 'in progress' | 'complete';
1585
+ type PgRollStatusResponse = {
1586
+ /**
1587
+ * The status of the most recent migration
1588
+ */
1589
+ status: PgRollMigrationStatus;
1590
+ /**
1591
+ * The name of the most recent version
1592
+ */
1593
+ version: string;
1594
+ };
1289
1595
  /**
1290
1596
  * @maxLength 255
1291
1597
  * @minLength 1
@@ -1305,14 +1611,6 @@ type ListBranchesResponse = {
1305
1611
  databaseName: string;
1306
1612
  branches: Branch[];
1307
1613
  };
1308
- /**
1309
- * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
1310
- *
1311
- * @maxLength 511
1312
- * @minLength 1
1313
- * @pattern [a-zA-Z0-9_\-~]+:[a-zA-Z0-9_\-~]+
1314
- */
1315
- type DBBranchName = string;
1316
1614
  /**
1317
1615
  * @maxLength 255
1318
1616
  * @minLength 1
@@ -1361,7 +1659,7 @@ type ColumnFile = {
1361
1659
  };
1362
1660
  type Column = {
1363
1661
  name: string;
1364
- type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime' | 'vector' | 'file[]' | 'file';
1662
+ type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime' | 'vector' | 'file[]' | 'file' | 'json';
1365
1663
  link?: ColumnLink;
1366
1664
  vector?: ColumnVector;
1367
1665
  file?: ColumnFile;
@@ -1495,9 +1793,11 @@ type FilterPredicateOp = {
1495
1793
  $gt?: FilterRangeValue;
1496
1794
  $ge?: FilterRangeValue;
1497
1795
  $contains?: string;
1796
+ $iContains?: string;
1498
1797
  $startsWith?: string;
1499
1798
  $endsWith?: string;
1500
1799
  $pattern?: string;
1800
+ $iPattern?: string;
1501
1801
  };
1502
1802
  /**
1503
1803
  * @maxProperties 2
@@ -2342,6 +2642,16 @@ type AverageAgg = {
2342
2642
  */
2343
2643
  column: string;
2344
2644
  };
2645
+ /**
2646
+ * Calculate given percentiles of the numeric values in a particular column.
2647
+ */
2648
+ type PercentilesAgg = {
2649
+ /**
2650
+ * The column on which to compute the average. Must be a numeric type.
2651
+ */
2652
+ column: string;
2653
+ percentiles: number[];
2654
+ };
2345
2655
  /**
2346
2656
  * Count the number of distinct values in a particular column.
2347
2657
  */
@@ -2456,6 +2766,8 @@ type AggExpression = {
2456
2766
  min?: MinAgg;
2457
2767
  } | {
2458
2768
  average?: AverageAgg;
2769
+ } | {
2770
+ percentiles?: PercentilesAgg;
2459
2771
  } | {
2460
2772
  uniqueCount?: UniqueCountAgg;
2461
2773
  } | {
@@ -2471,7 +2783,9 @@ type AggResponse$1 = (number | null) | {
2471
2783
  $count: number;
2472
2784
  } & {
2473
2785
  [key: string]: AggResponse$1;
2474
- })[];
2786
+ })[] | {
2787
+ [key: string]: number;
2788
+ };
2475
2789
  };
2476
2790
  /**
2477
2791
  * File identifier in access URLs
@@ -2590,6 +2904,14 @@ type AggResponse = {
2590
2904
  };
2591
2905
  type SQLResponse = {
2592
2906
  records?: SQLRecord[];
2907
+ /**
2908
+ * Name of the column and its PostgreSQL type
2909
+ */
2910
+ columns?: Record<string, any>;
2911
+ /**
2912
+ * Number of selected columns
2913
+ */
2914
+ total?: number;
2593
2915
  warning?: string;
2594
2916
  };
2595
2917
 
@@ -2618,6 +2940,57 @@ type ErrorWrapper<TError> = TError | {
2618
2940
  * @version 1.0
2619
2941
  */
2620
2942
 
2943
+ type ApplyMigrationPathParams = {
2944
+ /**
2945
+ * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
2946
+ */
2947
+ dbBranchName: DBBranchName;
2948
+ workspace: string;
2949
+ region: string;
2950
+ };
2951
+ type ApplyMigrationError = ErrorWrapper<{
2952
+ status: 400;
2953
+ payload: BadRequestError;
2954
+ } | {
2955
+ status: 401;
2956
+ payload: AuthError;
2957
+ } | {
2958
+ status: 404;
2959
+ payload: SimpleError;
2960
+ }>;
2961
+ type ApplyMigrationRequestBody = {
2962
+ [key: string]: any;
2963
+ }[];
2964
+ type ApplyMigrationVariables = {
2965
+ body?: ApplyMigrationRequestBody;
2966
+ pathParams: ApplyMigrationPathParams;
2967
+ } & DataPlaneFetcherExtraProps;
2968
+ /**
2969
+ * Applies a pgroll migration to the specified database.
2970
+ */
2971
+ declare const applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<undefined>;
2972
+ type PgRollStatusPathParams = {
2973
+ /**
2974
+ * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
2975
+ */
2976
+ dbBranchName: DBBranchName;
2977
+ workspace: string;
2978
+ region: string;
2979
+ };
2980
+ type PgRollStatusError = ErrorWrapper<{
2981
+ status: 400;
2982
+ payload: BadRequestError;
2983
+ } | {
2984
+ status: 401;
2985
+ payload: AuthError;
2986
+ } | {
2987
+ status: 404;
2988
+ payload: SimpleError;
2989
+ }>;
2990
+ type PgRollStatusVariables = {
2991
+ pathParams: PgRollStatusPathParams;
2992
+ } & DataPlaneFetcherExtraProps;
2993
+ declare const pgRollStatus: (variables: PgRollStatusVariables, signal?: AbortSignal) => Promise<PgRollStatusResponse>;
2621
2994
  type GetBranchListPathParams = {
2622
2995
  /**
2623
2996
  * The Database Name
@@ -2705,6 +3078,13 @@ type CreateBranchRequestBody = {
2705
3078
  * Select the branch to fork from. Defaults to 'main'
2706
3079
  */
2707
3080
  from?: string;
3081
+ /**
3082
+ * Select the dedicated cluster to create on. Defaults to 'xata-cloud'
3083
+ *
3084
+ * @minLength 1
3085
+ * @x-internal true
3086
+ */
3087
+ clusterID?: string;
2708
3088
  metadata?: BranchMetadata;
2709
3089
  };
2710
3090
  type CreateBranchVariables = {
@@ -2744,6 +3124,31 @@ type DeleteBranchVariables = {
2744
3124
  * Delete the branch in the database and all its resources
2745
3125
  */
2746
3126
  declare const deleteBranch: (variables: DeleteBranchVariables, signal?: AbortSignal) => Promise<DeleteBranchResponse>;
3127
+ type GetSchemaPathParams = {
3128
+ /**
3129
+ * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
3130
+ */
3131
+ dbBranchName: DBBranchName;
3132
+ workspace: string;
3133
+ region: string;
3134
+ };
3135
+ type GetSchemaError = ErrorWrapper<{
3136
+ status: 400;
3137
+ payload: BadRequestError;
3138
+ } | {
3139
+ status: 401;
3140
+ payload: AuthError;
3141
+ } | {
3142
+ status: 404;
3143
+ payload: SimpleError;
3144
+ }>;
3145
+ type GetSchemaResponse = {
3146
+ schema: Record<string, any>;
3147
+ };
3148
+ type GetSchemaVariables = {
3149
+ pathParams: GetSchemaPathParams;
3150
+ } & DataPlaneFetcherExtraProps;
3151
+ declare const getSchema: (variables: GetSchemaVariables, signal?: AbortSignal) => Promise<GetSchemaResponse>;
2747
3152
  type CopyBranchPathParams = {
2748
3153
  /**
2749
3154
  * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
@@ -5374,12 +5779,12 @@ type QueryTableVariables = {
5374
5779
  * returned is empty, but `page.meta.cursor` will include a cursor that can be
5375
5780
  * used to "tail" the table from the end waiting for new data to be inserted.
5376
5781
  * - `page.before=end`: This cursor returns the last page.
5377
- * - `page.start=<cursor>`: Start at the beginning of the result set of the <cursor> query. This is equivalent to querying the
5782
+ * - `page.start=$cursor`: Start at the beginning of the result set of the $cursor query. This is equivalent to querying the
5378
5783
  * first page without a cursor but applying `filter` and `sort` . Yet the `page.start`
5379
5784
  * cursor can be convenient at times as user code does not need to remember the
5380
5785
  * filter, sort, columns or page size configuration. All these information are
5381
5786
  * read from the cursor.
5382
- * - `page.end=<cursor>`: Move to the end of the result set of the <cursor> query. This is equivalent to querying the
5787
+ * - `page.end=$cursor`: Move to the end of the result set of the $cursor query. This is equivalent to querying the
5383
5788
  * last page with `page.before=end`, `filter`, and `sort` . Yet the
5384
5789
  * `page.end` cursor can be more convenient at times as user code does not
5385
5790
  * need to remember the filter, sort, columns or page size configuration. All
@@ -5944,6 +6349,8 @@ declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) =>
5944
6349
 
5945
6350
  declare const operationsByTag: {
5946
6351
  branch: {
6352
+ applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
6353
+ pgRollStatus: (variables: PgRollStatusVariables, signal?: AbortSignal | undefined) => Promise<PgRollStatusResponse>;
5947
6354
  getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal | undefined) => Promise<ListBranchesResponse>;
5948
6355
  getBranchDetails: (variables: GetBranchDetailsVariables, signal?: AbortSignal | undefined) => Promise<DBBranch>;
5949
6356
  createBranch: (variables: CreateBranchVariables, signal?: AbortSignal | undefined) => Promise<CreateBranchResponse>;
@@ -5958,6 +6365,7 @@ declare const operationsByTag: {
5958
6365
  resolveBranch: (variables: ResolveBranchVariables, signal?: AbortSignal | undefined) => Promise<ResolveBranchResponse>;
5959
6366
  };
5960
6367
  migrations: {
6368
+ getSchema: (variables: GetSchemaVariables, signal?: AbortSignal | undefined) => Promise<GetSchemaResponse>;
5961
6369
  getBranchMigrationHistory: (variables: GetBranchMigrationHistoryVariables, signal?: AbortSignal | undefined) => Promise<GetBranchMigrationHistoryResponse>;
5962
6370
  getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables, signal?: AbortSignal | undefined) => Promise<BranchMigrationPlan>;
5963
6371
  executeBranchMigrationPlan: (variables: ExecuteBranchMigrationPlanVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
@@ -6023,9 +6431,12 @@ declare const operationsByTag: {
6023
6431
  sql: {
6024
6432
  sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal | undefined) => Promise<SQLResponse>;
6025
6433
  };
6026
- authOther: {
6434
+ oAuth: {
6027
6435
  getAuthorizationCode: (variables: GetAuthorizationCodeVariables, signal?: AbortSignal | undefined) => Promise<AuthorizationCodeResponse>;
6028
6436
  grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal | undefined) => Promise<AuthorizationCodeResponse>;
6437
+ getUserOAuthClients: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetUserOAuthClientsResponse>;
6438
+ deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
6439
+ getUserOAuthAccessTokens: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetUserOAuthAccessTokensResponse>;
6029
6440
  deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
6030
6441
  updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal | undefined) => Promise<OAuthAccessToken>;
6031
6442
  };
@@ -6038,8 +6449,6 @@ declare const operationsByTag: {
6038
6449
  getUserAPIKeys: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetUserAPIKeysResponse>;
6039
6450
  createUserAPIKey: (variables: CreateUserAPIKeyVariables, signal?: AbortSignal | undefined) => Promise<CreateUserAPIKeyResponse>;
6040
6451
  deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
6041
- getUserOAuthClients: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetUserOAuthClientsResponse>;
6042
- getUserOAuthAccessTokens: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetUserOAuthAccessTokensResponse>;
6043
6452
  };
6044
6453
  workspaces: {
6045
6454
  getWorkspacesList: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetWorkspacesListResponse>;
@@ -6058,6 +6467,12 @@ declare const operationsByTag: {
6058
6467
  acceptWorkspaceMemberInvite: (variables: AcceptWorkspaceMemberInviteVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
6059
6468
  resendWorkspaceMemberInvite: (variables: ResendWorkspaceMemberInviteVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
6060
6469
  };
6470
+ xbcontrolOther: {
6471
+ listClusters: (variables: ListClustersVariables, signal?: AbortSignal | undefined) => Promise<ListClustersResponse>;
6472
+ createCluster: (variables: CreateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterResponse>;
6473
+ getCluster: (variables: GetClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterMetadata>;
6474
+ updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterMetadata>;
6475
+ };
6061
6476
  databases: {
6062
6477
  getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal | undefined) => Promise<ListDatabasesResponse>;
6063
6478
  createDatabase: (variables: CreateDatabaseVariables, signal?: AbortSignal | undefined) => Promise<CreateDatabaseResponse>;
@@ -6116,6 +6531,7 @@ type schemas_AggExpression = AggExpression;
6116
6531
  type schemas_AggExpressionMap = AggExpressionMap;
6117
6532
  type schemas_AuthorizationCodeRequest = AuthorizationCodeRequest;
6118
6533
  type schemas_AuthorizationCodeResponse = AuthorizationCodeResponse;
6534
+ type schemas_AutoscalingConfig = AutoscalingConfig;
6119
6535
  type schemas_AverageAgg = AverageAgg;
6120
6536
  type schemas_BoosterExpression = BoosterExpression;
6121
6537
  type schemas_Branch = Branch;
@@ -6124,6 +6540,13 @@ type schemas_BranchMigration = BranchMigration;
6124
6540
  type schemas_BranchName = BranchName;
6125
6541
  type schemas_BranchOp = BranchOp;
6126
6542
  type schemas_BranchWithCopyID = BranchWithCopyID;
6543
+ type schemas_ClusterConfiguration = ClusterConfiguration;
6544
+ type schemas_ClusterCreateDetails = ClusterCreateDetails;
6545
+ type schemas_ClusterID = ClusterID;
6546
+ type schemas_ClusterMetadata = ClusterMetadata;
6547
+ type schemas_ClusterResponse = ClusterResponse;
6548
+ type schemas_ClusterShortMetadata = ClusterShortMetadata;
6549
+ type schemas_ClusterUpdateDetails = ClusterUpdateDetails;
6127
6550
  type schemas_Column = Column;
6128
6551
  type schemas_ColumnFile = ColumnFile;
6129
6552
  type schemas_ColumnLink = ColumnLink;
@@ -6139,6 +6562,7 @@ type schemas_CountAgg = CountAgg;
6139
6562
  type schemas_DBBranch = DBBranch;
6140
6563
  type schemas_DBBranchName = DBBranchName;
6141
6564
  type schemas_DBName = DBName;
6565
+ type schemas_DailyTimeWindow = DailyTimeWindow;
6142
6566
  type schemas_DataInputRecord = DataInputRecord;
6143
6567
  type schemas_DatabaseGithubSettings = DatabaseGithubSettings;
6144
6568
  type schemas_DatabaseMetadata = DatabaseMetadata;
@@ -6166,9 +6590,11 @@ type schemas_InputFileEntry = InputFileEntry;
6166
6590
  type schemas_InviteID = InviteID;
6167
6591
  type schemas_InviteKey = InviteKey;
6168
6592
  type schemas_ListBranchesResponse = ListBranchesResponse;
6593
+ type schemas_ListClustersResponse = ListClustersResponse;
6169
6594
  type schemas_ListDatabasesResponse = ListDatabasesResponse;
6170
6595
  type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
6171
6596
  type schemas_ListRegionsResponse = ListRegionsResponse;
6597
+ type schemas_MaintenanceConfig = MaintenanceConfig;
6172
6598
  type schemas_MaxAgg = MaxAgg;
6173
6599
  type schemas_MediaType = MediaType;
6174
6600
  type schemas_MetricsDatapoint = MetricsDatapoint;
@@ -6184,11 +6610,15 @@ type schemas_MigrationTableOp = MigrationTableOp;
6184
6610
  type schemas_MinAgg = MinAgg;
6185
6611
  type schemas_NumericHistogramAgg = NumericHistogramAgg;
6186
6612
  type schemas_OAuthAccessToken = OAuthAccessToken;
6613
+ type schemas_OAuthClientID = OAuthClientID;
6187
6614
  type schemas_OAuthClientPublicDetails = OAuthClientPublicDetails;
6188
6615
  type schemas_OAuthResponseType = OAuthResponseType;
6189
6616
  type schemas_OAuthScope = OAuthScope;
6190
6617
  type schemas_ObjectValue = ObjectValue;
6191
6618
  type schemas_PageConfig = PageConfig;
6619
+ type schemas_PercentilesAgg = PercentilesAgg;
6620
+ type schemas_PgRollMigrationStatus = PgRollMigrationStatus;
6621
+ type schemas_PgRollStatusResponse = PgRollStatusResponse;
6192
6622
  type schemas_PrefixExpression = PrefixExpression;
6193
6623
  type schemas_ProjectionConfig = ProjectionConfig;
6194
6624
  type schemas_QueryColumnsProjection = QueryColumnsProjection;
@@ -6233,14 +6663,16 @@ type schemas_UniqueCountAgg = UniqueCountAgg;
6233
6663
  type schemas_User = User;
6234
6664
  type schemas_UserID = UserID;
6235
6665
  type schemas_UserWithID = UserWithID;
6666
+ type schemas_WeeklyTimeWindow = WeeklyTimeWindow;
6236
6667
  type schemas_Workspace = Workspace;
6237
6668
  type schemas_WorkspaceID = WorkspaceID;
6238
6669
  type schemas_WorkspaceInvite = WorkspaceInvite;
6239
6670
  type schemas_WorkspaceMember = WorkspaceMember;
6240
6671
  type schemas_WorkspaceMembers = WorkspaceMembers;
6241
6672
  type schemas_WorkspaceMeta = WorkspaceMeta;
6673
+ type schemas_WorkspacePlan = WorkspacePlan;
6242
6674
  declare namespace schemas {
6243
- 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_AverageAgg as AverageAgg, schemas_BoosterExpression as BoosterExpression, schemas_Branch as Branch, schemas_BranchMetadata as BranchMetadata, schemas_BranchMigration as BranchMigration, schemas_BranchName as BranchName, schemas_BranchOp as BranchOp, schemas_BranchWithCopyID as BranchWithCopyID, 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, schemas_DBName as DBName, schemas_DataInputRecord as DataInputRecord, schemas_DatabaseGithubSettings as DatabaseGithubSettings, schemas_DatabaseMetadata as DatabaseMetadata, DateBooster$1 as DateBooster, schemas_DateHistogramAgg as DateHistogramAgg, schemas_DateTime 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_ListDatabasesResponse as ListDatabasesResponse, schemas_ListGitBranchesResponse as ListGitBranchesResponse, schemas_ListRegionsResponse as ListRegionsResponse, 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, schemas_MigrationStatus as MigrationStatus, schemas_MigrationTableOp as MigrationTableOp, schemas_MinAgg as MinAgg, NumericBooster$1 as NumericBooster, schemas_NumericHistogramAgg as NumericHistogramAgg, schemas_OAuthAccessToken as OAuthAccessToken, schemas_OAuthClientPublicDetails as OAuthClientPublicDetails, schemas_OAuthResponseType as OAuthResponseType, schemas_OAuthScope as OAuthScope, schemas_ObjectValue as ObjectValue, schemas_PageConfig as PageConfig, 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_Workspace as Workspace, schemas_WorkspaceID as WorkspaceID, schemas_WorkspaceInvite as WorkspaceInvite, schemas_WorkspaceMember as WorkspaceMember, schemas_WorkspaceMembers as WorkspaceMembers, schemas_WorkspaceMeta as WorkspaceMeta, XataRecord$1 as XataRecord };
6675
+ 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, schemas_BranchMetadata as BranchMetadata, schemas_BranchMigration as BranchMigration, schemas_BranchName 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, schemas_DBName 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, schemas_DateTime 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, schemas_MigrationStatus 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_PercentilesAgg as PercentilesAgg, schemas_PgRollMigrationStatus as PgRollMigrationStatus, schemas_PgRollStatusResponse as PgRollStatusResponse, 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 };
6244
6676
  }
6245
6677
 
6246
6678
  type ApiExtraProps = Omit<FetcherExtraProps, 'endpoint'>;
@@ -7029,6 +7461,11 @@ interface ImageTransformations {
7029
7461
  * ignored.
7030
7462
  */
7031
7463
  contrast?: number;
7464
+ /**
7465
+ * Download file. Forces browser to download the image.
7466
+ * Value is used for the download file name. Extension is optional.
7467
+ */
7468
+ download?: string;
7032
7469
  /**
7033
7470
  * Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
7034
7471
  * easier to specify higher-DPI sizes in <img srcset>.
@@ -7144,50 +7581,58 @@ interface ImageTransformations {
7144
7581
  */
7145
7582
  width?: number;
7146
7583
  }
7147
- declare function transformImage(url: string | undefined, transformations: ImageTransformations[]): string | undefined;
7584
+ declare function transformImage(url: string, ...transformations: ImageTransformations[]): string;
7585
+ declare function transformImage(url: string | undefined, ...transformations: ImageTransformations[]): string | undefined;
7148
7586
 
7149
7587
  type XataFileEditableFields = Partial<Pick<XataArrayFile, keyof InputFileEntry>>;
7588
+ type XataFileFields = Partial<Pick<XataArrayFile, {
7589
+ [K in StringKeys<XataArrayFile>]: XataArrayFile[K] extends Function ? never : K;
7590
+ }[keyof XataArrayFile]>>;
7150
7591
  declare class XataFile {
7151
7592
  /**
7152
- * Name of this file.
7593
+ * Identifier of the file.
7153
7594
  */
7154
- name?: string;
7595
+ id?: string;
7596
+ /**
7597
+ * Name of the file.
7598
+ */
7599
+ name: string;
7155
7600
  /**
7156
- * Media type of this file.
7601
+ * Media type of the file.
7157
7602
  */
7158
7603
  mediaType: string;
7159
7604
  /**
7160
- * Base64 encoded content of this file.
7605
+ * Base64 encoded content of the file.
7161
7606
  */
7162
7607
  base64Content?: string;
7163
7608
  /**
7164
- * Whether to enable public url for this file.
7609
+ * Whether to enable public url for the file.
7165
7610
  */
7166
- enablePublicUrl?: boolean;
7611
+ enablePublicUrl: boolean;
7167
7612
  /**
7168
7613
  * Timeout for the signed url.
7169
7614
  */
7170
- signedUrlTimeout?: number;
7615
+ signedUrlTimeout: number;
7171
7616
  /**
7172
- * Size of this file.
7617
+ * Size of the file.
7173
7618
  */
7174
7619
  size?: number;
7175
7620
  /**
7176
- * Version of this file.
7621
+ * Version of the file.
7177
7622
  */
7178
- version?: number;
7623
+ version: number;
7179
7624
  /**
7180
- * Url of this file.
7625
+ * Url of the file.
7181
7626
  */
7182
- url?: string;
7627
+ url: string;
7183
7628
  /**
7184
- * Signed url of this file.
7629
+ * Signed url of the file.
7185
7630
  */
7186
7631
  signedUrl?: string;
7187
7632
  /**
7188
- * Attributes of this file.
7633
+ * Attributes of the file.
7189
7634
  */
7190
- attributes?: Record<string, unknown>;
7635
+ attributes: Record<string, any>;
7191
7636
  constructor(file: Partial<XataFile>);
7192
7637
  static fromBuffer(buffer: Buffer, options?: XataFileEditableFields): XataFile;
7193
7638
  toBuffer(): Buffer;
@@ -7202,28 +7647,54 @@ declare class XataFile {
7202
7647
  static fromBase64(base64Content: string, options?: XataFileEditableFields): XataFile;
7203
7648
  toBase64(): string;
7204
7649
  transform(...options: ImageTransformations[]): {
7205
- url: string | undefined;
7650
+ url: string;
7206
7651
  signedUrl: string | undefined;
7652
+ metadataUrl: string;
7653
+ metadataSignedUrl: string | undefined;
7207
7654
  };
7208
7655
  }
7209
7656
  type XataArrayFile = Identifiable & XataFile;
7210
7657
 
7211
7658
  type SelectableColumn<O, RecursivePath extends any[] = []> = '*' | 'id' | `xata.${'version' | 'createdAt' | 'updatedAt'}` | DataProps<O> | NestedColumns<O, RecursivePath>;
7659
+ type ExpandedColumnNotation = {
7660
+ name: string;
7661
+ columns?: SelectableColumn<any>[];
7662
+ as?: string;
7663
+ limit?: number;
7664
+ offset?: number;
7665
+ order?: {
7666
+ column: string;
7667
+ order: 'asc' | 'desc';
7668
+ }[];
7669
+ };
7670
+ type SelectableColumnWithObjectNotation<O, RecursivePath extends any[] = []> = SelectableColumn<O, RecursivePath> | ExpandedColumnNotation;
7671
+ declare function isValidExpandedColumn(column: any): column is ExpandedColumnNotation;
7672
+ declare function isValidSelectableColumns(columns: any): columns is SelectableColumn<any>[];
7673
+ type StringColumns<T> = T extends string ? T : never;
7674
+ type ProjectionColumns<T> = T extends string ? never : T extends {
7675
+ as: infer As;
7676
+ } ? NonNullable<As> extends string ? NonNullable<As> : never : never;
7212
7677
  type WildcardColumns<O> = Values<{
7213
7678
  [K in SelectableColumn<O>]: K extends `${string}*` ? K : never;
7214
7679
  }>;
7215
7680
  type ColumnsByValue<O, Value> = Values<{
7216
7681
  [K in SelectableColumn<O>]: ValueAtColumn<O, K> extends infer C ? C extends Value ? K extends WildcardColumns<O> ? never : K : never : never;
7217
7682
  }>;
7218
- type SelectedPick<O extends XataRecord, Key extends SelectableColumn<O>[]> = XataRecord<O> & UnionToIntersection<Values<{
7219
- [K in Key[number]]: NestedValueAtColumn<O, K> & XataRecord<O>;
7683
+ type SelectedPick<O extends XataRecord, Key extends SelectableColumnWithObjectNotation<O>[]> = XataRecord<O> & UnionToIntersection<Values<{
7684
+ [K in StringColumns<Key[number]>]: NestedValueAtColumn<O, K> & XataRecord<O>;
7685
+ }>> & UnionToIntersection<Values<{
7686
+ [K in ProjectionColumns<Key[number]>]: {
7687
+ [Key in K]: {
7688
+ records: (Record<string, any> & XataRecord<O>)[];
7689
+ };
7690
+ };
7220
7691
  }>>;
7221
- type ValueAtColumn<Object, Key> = Key extends '*' ? Values<Object> : Key extends 'id' ? string : Key extends 'xata.version' ? number : Key extends 'xata.createdAt' ? Date : Key extends 'xata.updatedAt' ? Date : Key extends keyof Object ? Object[Key] : Key extends `${infer K}.${infer V}` ? K extends keyof Object ? Values<NonNullable<Object[K]> extends infer Item ? Item extends Record<string, any> ? V extends SelectableColumn<Item> ? {
7222
- V: ValueAtColumn<Item, V>;
7692
+ type ValueAtColumn<Object, Key, RecursivePath extends any[] = []> = RecursivePath['length'] extends MAX_RECURSION ? never : Key extends '*' ? Values<Object> : Key extends 'id' ? string : Key extends 'xata.version' ? number : Key extends 'xata.createdAt' ? Date : Key extends 'xata.updatedAt' ? Date : Key extends keyof Object ? Object[Key] : Key extends `${infer K}.${infer V}` ? K extends keyof Object ? Values<NonNullable<Object[K]> extends infer Item ? Item extends Record<string, any> ? V extends SelectableColumn<Item> ? {
7693
+ V: ValueAtColumn<Item, V, [...RecursivePath, Item]>;
7223
7694
  } : never : Object[K] : never> : never : never;
7224
- type MAX_RECURSION = 2;
7695
+ type MAX_RECURSION = 3;
7225
7696
  type NestedColumns<O, RecursivePath extends any[]> = RecursivePath['length'] extends MAX_RECURSION ? never : If<IsObject<O>, Values<{
7226
- [K in DataProps<O>]: NonNullable<O[K]> extends infer Item ? If<IsArray<Item>, Item extends (infer Type)[] ? Type extends XataArrayFile ? K | `${K}.${keyof XataFileEditableFields | '*'}` : K | `${K}.${StringKeys<Type> | '*'}` : never, If<IsObject<Item>, Item extends XataRecord ? SelectableColumn<Item, [...RecursivePath, Item]> extends infer Column ? Column extends string ? K | `${K}.${Column}` : never : never : Item extends Date ? K : Item extends XataFile ? K | `${K}.${keyof XataFileEditableFields | '*'}` : `${K}.${StringKeys<Item> | '*'}`, // This allows usage of objects that are not links
7697
+ [K in DataProps<O>]: NonNullable<O[K]> extends infer Item ? If<IsArray<Item>, Item extends (infer Type)[] ? Type extends XataArrayFile ? K | `${K}.${keyof XataFileFields | '*'}` : K | `${K}.${StringKeys<Type> | '*'}` : never, If<IsObject<Item>, Item extends XataRecord ? SelectableColumn<Item, [...RecursivePath, Item]> extends infer Column ? Column extends string ? K | `${K}.${Column}` : never : never : Item extends Date ? K : Item extends XataFile ? K | `${K}.${keyof XataFileFields | '*'}` : `${K}.${StringKeys<Item> | '*'}`, // This allows usage of objects that are not links
7227
7698
  K>> : never;
7228
7699
  }>, never>;
7229
7700
  type DataProps<O> = Exclude<StringKeys<O>, StringKeys<XataRecord>>;
@@ -7236,7 +7707,7 @@ type NestedValueAtColumn<O, Key extends SelectableColumn<O>> = Key extends `${in
7236
7707
  } : unknown;
7237
7708
  type ForwardNullable<T, R> = T extends NonNullable<T> ? R : R | null;
7238
7709
 
7239
- declare const RecordColumnTypes: readonly ["bool", "int", "float", "string", "text", "email", "multiple", "link", "object", "datetime", "vector", "file[]", "file"];
7710
+ declare const RecordColumnTypes: readonly ["bool", "int", "float", "string", "text", "email", "multiple", "link", "object", "datetime", "vector", "file[]", "file", "json"];
7240
7711
  type Identifier = string;
7241
7712
  /**
7242
7713
  * Represents an identifiable record from the database.
@@ -7368,7 +7839,10 @@ type EditableDataFields<T> = T extends XataRecord ? {
7368
7839
  type EditableData<O extends XataRecord> = Identifiable & Partial<Omit<{
7369
7840
  [K in keyof O]: EditableDataFields<O[K]>;
7370
7841
  }, keyof XataRecord>>;
7371
- type JSONDataFields<T> = T extends XataRecord ? string : NonNullable<T> extends XataRecord ? string | null | undefined : T extends Date ? string : NonNullable<T> extends Date ? string | null | undefined : T;
7842
+ type JSONDataFile = {
7843
+ [K in keyof XataFile]: XataFile[K] extends Function ? never : XataFile[K];
7844
+ };
7845
+ type JSONDataFields<T> = T extends XataFile ? JSONDataFile : NonNullable<T> extends XataFile ? JSONDataFile | null | undefined : T extends XataRecord ? JSONData<T> : NonNullable<T> extends XataRecord ? JSONData<T> | null | undefined : T extends Date ? string : NonNullable<T> extends Date ? string | null | undefined : T;
7372
7846
  type JSONDataBase = Identifiable & {
7373
7847
  /**
7374
7848
  * Metadata about the record.
@@ -7392,7 +7866,15 @@ type JSONData<O> = JSONDataBase & Partial<Omit<{
7392
7866
  [K in keyof O]: JSONDataFields<O[K]>;
7393
7867
  }, keyof XataRecord>>;
7394
7868
 
7869
+ type JSONValue<Value> = Value & {
7870
+ __json: true;
7871
+ };
7872
+
7873
+ type JSONFilterColumns<Record> = Values<{
7874
+ [K in keyof Record]: NonNullable<Record[K]> extends JSONValue<any> ? K extends string ? `${K}->${string}` : never : never;
7875
+ }>;
7395
7876
  type FilterColumns<T> = ColumnsByValue<T, any> | `xata.${keyof XataRecordMetadata}`;
7877
+ type FilterValueAtColumn<Record, F> = NonNullable<ValueAtColumn<Record, F>> extends JSONValue<any> ? PropertyFilter<any> : Filter<NonNullable<ValueAtColumn<Record, F>>>;
7396
7878
  /**
7397
7879
  * PropertyMatchFilter
7398
7880
  * Example:
@@ -7413,6 +7895,8 @@ type FilterColumns<T> = ColumnsByValue<T, any> | `xata.${keyof XataRecordMetadat
7413
7895
  */
7414
7896
  type PropertyAccessFilter<Record> = {
7415
7897
  [key in FilterColumns<Record>]?: NestedApiFilter<ValueAtColumn<Record, key>> | PropertyFilter<ValueAtColumn<Record, key>>;
7898
+ } & {
7899
+ [key in JSONFilterColumns<Record>]?: PropertyFilter<Record[keyof Record]>;
7416
7900
  };
7417
7901
  type PropertyFilter<T> = T | {
7418
7902
  $is: T;
@@ -7429,7 +7913,7 @@ type IncludesFilter<T> = PropertyFilter<T> | {
7429
7913
  }>;
7430
7914
  };
7431
7915
  type StringTypeFilter = {
7432
- [key in '$contains' | '$pattern' | '$startsWith' | '$endsWith']?: string;
7916
+ [key in '$contains' | '$iContains' | '$pattern' | '$iPattern' | '$startsWith' | '$endsWith']?: string;
7433
7917
  };
7434
7918
  type ComparableType = number | Date;
7435
7919
  type ComparableTypeFilter<T extends ComparableType> = {
@@ -7598,15 +8082,20 @@ type SearchOptions<Schemas extends Record<string, BaseData>, Tables extends Stri
7598
8082
  }>>;
7599
8083
  page?: SearchPageConfig;
7600
8084
  };
8085
+ type TotalCount = Pick<SearchResponse, 'totalCount'>;
7601
8086
  type SearchPluginResult<Schemas extends Record<string, BaseData>> = {
7602
- all: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<Values<{
7603
- [Model in ExtractTables<Schemas, Tables, GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>>]: {
7604
- table: Model;
7605
- record: Awaited<SearchXataRecord<SelectedPick<Schemas[Model] & XataRecord, ['*']>>>;
8087
+ all: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<TotalCount & {
8088
+ records: Values<{
8089
+ [Model in ExtractTables<Schemas, Tables, GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>>]: {
8090
+ table: Model;
8091
+ record: Awaited<SearchXataRecord<SelectedPick<Schemas[Model] & XataRecord, ['*']>>>;
8092
+ };
8093
+ }>[];
8094
+ }>;
8095
+ byTable: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<TotalCount & {
8096
+ records: {
8097
+ [Model in ExtractTables<Schemas, Tables, GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>>]?: Awaited<SearchXataRecord<SelectedPick<Schemas[Model] & XataRecord, ['*']>>[]>;
7606
8098
  };
7607
- }>[]>;
7608
- byTable: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<{
7609
- [Model in ExtractTables<Schemas, Tables, GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>>]?: Awaited<SearchXataRecord<SelectedPick<Schemas[Model] & XataRecord, ['*']>>[]>;
7610
8099
  }>;
7611
8100
  };
7612
8101
  declare class SearchPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
@@ -7641,6 +8130,7 @@ type AggregationExpression<O extends XataRecord> = ExactlyOne<{
7641
8130
  max: MaxAggregation<O>;
7642
8131
  min: MinAggregation<O>;
7643
8132
  average: AverageAggregation<O>;
8133
+ percentiles: PercentilesAggregation<O>;
7644
8134
  uniqueCount: UniqueCountAggregation<O>;
7645
8135
  dateHistogram: DateHistogramAggregation<O>;
7646
8136
  topValues: TopValuesAggregation<O>;
@@ -7695,6 +8185,16 @@ type AverageAggregation<O extends XataRecord> = {
7695
8185
  */
7696
8186
  column: ColumnsByValue<O, number>;
7697
8187
  };
8188
+ /**
8189
+ * Calculate given percentiles of the numeric values in a particular column.
8190
+ */
8191
+ type PercentilesAggregation<O extends XataRecord> = {
8192
+ /**
8193
+ * The column on which to compute the average. Must be a numeric type.
8194
+ */
8195
+ column: ColumnsByValue<O, number>;
8196
+ percentiles: number[];
8197
+ };
7698
8198
  /**
7699
8199
  * Count the number of distinct values in a particular column.
7700
8200
  */
@@ -7790,6 +8290,11 @@ type AggregationExpressionResultTypes = {
7790
8290
  max: number | null;
7791
8291
  min: number | null;
7792
8292
  average: number | null;
8293
+ percentiles: {
8294
+ values: {
8295
+ [key: string]: number;
8296
+ };
8297
+ };
7793
8298
  uniqueCount: number;
7794
8299
  dateHistogram: ComplexAggregationResult;
7795
8300
  topValues: ComplexAggregationResult;
@@ -7895,7 +8400,7 @@ type SummarizeFilter<Record extends XataRecord, Expression extends Dictionary<Su
7895
8400
  type SummarizeResultItem<Record extends XataRecord, Expression extends Dictionary<SummarizeExpression<Record>>, Columns extends SelectableColumn<Record>[]> = SummarizeValuePick<Record, Expression> & SelectedPick<Record, Columns>;
7896
8401
 
7897
8402
  type BaseOptions<T extends XataRecord> = {
7898
- columns?: SelectableColumn<T>[];
8403
+ columns?: SelectableColumnWithObjectNotation<T>[];
7899
8404
  consistency?: 'strong' | 'eventual';
7900
8405
  cache?: number;
7901
8406
  fetchOptions?: Record<string, unknown>;
@@ -7963,7 +8468,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
7963
8468
  * @param value The value to filter.
7964
8469
  * @returns A new Query object.
7965
8470
  */
7966
- filter<F extends SelectableColumn<Record>>(column: F, value: Filter<NonNullable<ValueAtColumn<Record, F>>>): Query<Record, Result>;
8471
+ filter<F extends FilterColumns<Record> | JSONFilterColumns<Record>>(column: F, value: FilterValueAtColumn<Record, F>): Query<Record, Result>;
7967
8472
  /**
7968
8473
  * Builds a new query object adding one or more constraints. Examples:
7969
8474
  *
@@ -7984,15 +8489,15 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
7984
8489
  * @param direction The direction. Either ascending or descending.
7985
8490
  * @returns A new Query object.
7986
8491
  */
7987
- sort<F extends ColumnsByValue<Record, any>>(column: F, direction: SortDirection): Query<Record, Result>;
8492
+ sort<F extends SortColumns<Record>>(column: F, direction: SortDirection): Query<Record, Result>;
7988
8493
  sort(column: '*', direction: 'random'): Query<Record, Result>;
7989
- sort<F extends ColumnsByValue<Record, any>>(column: F): Query<Record, Result>;
8494
+ sort<F extends SortColumns<Record>>(column: F): Query<Record, Result>;
7990
8495
  /**
7991
8496
  * Builds a new query specifying the set of columns to be returned in the query response.
7992
8497
  * @param columns Array of column names to be returned by the query.
7993
8498
  * @returns A new Query object.
7994
8499
  */
7995
- select<K extends SelectableColumn<Record>>(columns: K[]): Query<Record, SelectedPick<Record, K[]>>;
8500
+ select<K extends SelectableColumnWithObjectNotation<Record>>(columns: K[]): Query<Record, SelectedPick<Record, K[]>>;
7996
8501
  /**
7997
8502
  * Get paginated results
7998
8503
  *
@@ -8236,9 +8741,9 @@ type OffsetNavigationOptions = {
8236
8741
  size?: number;
8237
8742
  offset?: number;
8238
8743
  };
8239
- declare const PAGINATION_MAX_SIZE = 200;
8744
+ declare const PAGINATION_MAX_SIZE = 1000;
8240
8745
  declare const PAGINATION_DEFAULT_SIZE = 20;
8241
- declare const PAGINATION_MAX_OFFSET = 800;
8746
+ declare const PAGINATION_MAX_OFFSET = 49000;
8242
8747
  declare const PAGINATION_DEFAULT_OFFSET = 0;
8243
8748
  declare function isCursorPaginationOptions(options: Record<string, unknown> | undefined | null): options is CursorNavigationOptions;
8244
8749
  declare class RecordArray<Result extends XataRecord> extends Array<Result> {
@@ -8773,7 +9278,9 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8773
9278
  boosters?: Boosters<Record>[];
8774
9279
  page?: SearchPageConfig;
8775
9280
  target?: TargetColumn<Record>[];
8776
- }): Promise<SearchXataRecord<SelectedPick<Record, ['*']>>[]>;
9281
+ }): Promise<{
9282
+ records: SearchXataRecord<SelectedPick<Record, ['*']>>[];
9283
+ } & TotalCount>;
8777
9284
  /**
8778
9285
  * Search for vectors in the table.
8779
9286
  * @param column The column to search for.
@@ -8797,7 +9304,9 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8797
9304
  */
8798
9305
  size?: number;
8799
9306
  filter?: Filter<Record>;
8800
- }): Promise<SearchXataRecord<SelectedPick<Record, ['*']>>[]>;
9307
+ }): Promise<{
9308
+ records: SearchXataRecord<SelectedPick<Record, ['*']>>[];
9309
+ } & TotalCount>;
8801
9310
  /**
8802
9311
  * Aggregates records in the table.
8803
9312
  * @param expression The aggregations to perform.
@@ -8939,15 +9448,22 @@ declare class RestRepository<Record extends XataRecord> extends Query<Record, Se
8939
9448
  boosters?: Boosters<Record>[];
8940
9449
  page?: SearchPageConfig;
8941
9450
  target?: TargetColumn<Record>[];
8942
- }): Promise<any>;
9451
+ }): Promise<{
9452
+ records: any;
9453
+ totalCount: number;
9454
+ }>;
8943
9455
  vectorSearch<F extends ColumnsByValue<Record, number[]>>(column: F, query: number[], options?: {
8944
9456
  similarityFunction?: string | undefined;
8945
9457
  size?: number | undefined;
8946
9458
  filter?: Filter<Record> | undefined;
8947
- } | undefined): Promise<SearchXataRecord<SelectedPick<Record, ['*']>>[]>;
9459
+ } | undefined): Promise<{
9460
+ records: SearchXataRecord<SelectedPick<Record, ['*']>>[];
9461
+ } & TotalCount>;
8948
9462
  aggregate<Expression extends Dictionary<AggregationExpression<Record>>>(aggs?: Expression, filter?: Filter<Record>): Promise<any>;
8949
9463
  query<Result extends XataRecord>(query: Query<Record, Result>): Promise<Page<Record, Result>>;
8950
- summarizeTable<Result extends XataRecord>(query: Query<Record, Result>, summaries?: Dictionary<SummarizeExpression<Record>>, summariesFilter?: FilterExpression): Promise<SummarizeResponse>;
9464
+ summarizeTable<Result extends XataRecord>(query: Query<Record, Result>, summaries?: Dictionary<SummarizeExpression<Record>>, summariesFilter?: FilterExpression): Promise<{
9465
+ summaries: Record[];
9466
+ }>;
8951
9467
  ask(question: string, options?: AskOptions<Record> & {
8952
9468
  onMessage?: (message: AskResult) => void;
8953
9469
  }): any;
@@ -9006,7 +9522,7 @@ type PropertyType<Tables, Properties, PropertyName extends PropertyKey> = Proper
9006
9522
  } : {
9007
9523
  [K in PropertyName]?: InnerType<Type, ObjectColumns, Tables, LinkedTable> | null;
9008
9524
  } : never : never;
9009
- type InnerType<Type, ObjectColumns, Tables, LinkedTable> = Type extends 'string' | 'text' | 'email' ? string : Type extends 'int' | 'float' ? number : Type extends 'bool' ? boolean : Type extends 'datetime' ? Date : Type extends 'multiple' ? string[] : Type extends 'vector' ? number[] : Type extends 'file' ? XataFile : Type extends 'file[]' ? XataArrayFile[] : Type extends 'object' ? ObjectColumns extends readonly unknown[] ? ObjectColumns[number] extends {
9525
+ type InnerType<Type, ObjectColumns, Tables, LinkedTable> = Type extends 'string' | 'text' | 'email' ? string : Type extends 'int' | 'float' ? number : Type extends 'bool' ? boolean : Type extends 'datetime' ? Date : Type extends 'multiple' ? string[] : Type extends 'vector' ? number[] : Type extends 'file' ? XataFile : Type extends 'file[]' ? XataArrayFile[] : Type extends 'json' ? JSONValue<any> : Type extends 'object' ? ObjectColumns extends readonly unknown[] ? ObjectColumns[number] extends {
9010
9526
  name: string;
9011
9527
  type: string;
9012
9528
  } ? UnionToIntersection<Values<{
@@ -9081,6 +9597,10 @@ declare const endsWith: (value: string) => StringTypeFilter;
9081
9597
  * Operator to restrict results to only values that match the given pattern.
9082
9598
  */
9083
9599
  declare const pattern: (value: string) => StringTypeFilter;
9600
+ /**
9601
+ * Operator to restrict results to only values that match the given pattern (case insensitive).
9602
+ */
9603
+ declare const iPattern: (value: string) => StringTypeFilter;
9084
9604
  /**
9085
9605
  * Operator to restrict results to only values that are equal to the given value.
9086
9606
  */
@@ -9097,6 +9617,10 @@ declare const isNot: <T>(value: T) => PropertyFilter<T>;
9097
9617
  * Operator to restrict results to only values that contain the given value.
9098
9618
  */
9099
9619
  declare const contains: (value: string) => StringTypeFilter;
9620
+ /**
9621
+ * Operator to restrict results to only values that contain the given value (case insensitive).
9622
+ */
9623
+ declare const iContains: (value: string) => StringTypeFilter;
9100
9624
  /**
9101
9625
  * Operator to restrict results if some array items match the predicate.
9102
9626
  */
@@ -9126,10 +9650,12 @@ declare class SchemaPlugin<Schemas extends Record<string, XataRecord>> extends X
9126
9650
  build(pluginOptions: XataPluginOptions): SchemaPluginResult<Schemas>;
9127
9651
  }
9128
9652
 
9129
- type BinaryFile = string | Blob | ArrayBuffer;
9653
+ type BinaryFile = string | Blob | ArrayBuffer | XataFile | Promise<XataFile>;
9130
9654
  type FilesPluginResult<Schemas extends Record<string, BaseData>> = {
9131
9655
  download: <Tables extends StringKeys<Schemas>>(location: DownloadDestination<Schemas, Tables>) => Promise<Blob>;
9132
- upload: <Tables extends StringKeys<Schemas>>(location: UploadDestination<Schemas, Tables>, file: BinaryFile) => Promise<FileResponse>;
9656
+ upload: <Tables extends StringKeys<Schemas>>(location: UploadDestination<Schemas, Tables>, file: BinaryFile, options?: {
9657
+ mediaType?: string;
9658
+ }) => Promise<FileResponse>;
9133
9659
  delete: <Tables extends StringKeys<Schemas>>(location: DownloadDestination<Schemas, Tables>) => Promise<FileResponse>;
9134
9660
  };
9135
9661
  type UploadDestination<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = Values<{
@@ -9314,89 +9840,9 @@ declare function buildPreviewBranchName({ org, branch }: {
9314
9840
  }): string;
9315
9841
  declare function getPreviewBranch(): string | undefined;
9316
9842
 
9317
- interface Body {
9318
- arrayBuffer(): Promise<ArrayBuffer>;
9319
- blob(): Promise<Blob$1>;
9320
- formData(): Promise<FormData>;
9321
- json(): Promise<any>;
9322
- text(): Promise<string>;
9323
- }
9324
- interface Blob$1 {
9325
- readonly size: number;
9326
- readonly type: string;
9327
- arrayBuffer(): Promise<ArrayBuffer>;
9328
- slice(start?: number, end?: number, contentType?: string): Blob$1;
9329
- text(): Promise<string>;
9330
- }
9331
- /** Provides information about files and allows JavaScript in a web page to access their content. */
9332
- interface File extends Blob$1 {
9333
- readonly lastModified: number;
9334
- readonly name: string;
9335
- readonly webkitRelativePath: string;
9336
- }
9337
- type FormDataEntryValue = File | string;
9338
- /** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
9339
- interface FormData {
9340
- append(name: string, value: string | Blob$1, fileName?: string): void;
9341
- delete(name: string): void;
9342
- get(name: string): FormDataEntryValue | null;
9343
- getAll(name: string): FormDataEntryValue[];
9344
- has(name: string): boolean;
9345
- set(name: string, value: string | Blob$1, fileName?: string): void;
9346
- forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
9347
- }
9348
- /** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */
9349
- interface Headers {
9350
- append(name: string, value: string): void;
9351
- delete(name: string): void;
9352
- get(name: string): string | null;
9353
- has(name: string): boolean;
9354
- set(name: string, value: string): void;
9355
- forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
9356
- }
9357
- interface Request extends Body {
9358
- /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
9359
- readonly cache: 'default' | 'force-cache' | 'no-cache' | 'no-store' | 'only-if-cached' | 'reload';
9360
- /** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */
9361
- readonly credentials: 'include' | 'omit' | 'same-origin';
9362
- /** Returns the kind of resource requested by request, e.g., "document" or "script". */
9363
- readonly destination: '' | 'audio' | 'audioworklet' | 'document' | 'embed' | 'font' | 'frame' | 'iframe' | 'image' | 'manifest' | 'object' | 'paintworklet' | 'report' | 'script' | 'sharedworker' | 'style' | 'track' | 'video' | 'worker' | 'xslt';
9364
- /** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */
9365
- readonly headers: Headers;
9366
- /** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */
9367
- readonly integrity: string;
9368
- /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
9369
- readonly keepalive: boolean;
9370
- /** Returns request's HTTP method, which is "GET" by default. */
9371
- readonly method: string;
9372
- /** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */
9373
- readonly mode: 'cors' | 'navigate' | 'no-cors' | 'same-origin';
9374
- /** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */
9375
- readonly redirect: 'error' | 'follow' | 'manual';
9376
- /** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the `Referer` header of the request being made. */
9377
- readonly referrer: string;
9378
- /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
9379
- readonly referrerPolicy: '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
9380
- /** Returns the URL of request as a string. */
9381
- readonly url: string;
9382
- clone(): Request;
9383
- }
9384
-
9385
- type XataWorkerContext<XataClient> = {
9386
- xata: XataClient;
9387
- request: Request;
9388
- env: Record<string, string | undefined>;
9389
- };
9390
- type RemoveFirst<T> = T extends [any, ...infer U] ? U : never;
9391
- type WorkerRunnerConfig = {
9392
- workspace: string;
9393
- worker: string;
9394
- };
9395
- declare function buildWorkerRunner<XataClient>(config: WorkerRunnerConfig): <WorkerFunction extends (ctx: XataWorkerContext<XataClient>, ...args: any[]) => any>(name: string, worker: WorkerFunction) => (...args: RemoveFirst<Parameters<WorkerFunction>>) => Promise<SerializerResult<Awaited<ReturnType<WorkerFunction>>>>;
9396
-
9397
9843
  declare class XataError extends Error {
9398
9844
  readonly status: number;
9399
9845
  constructor(message: string, status: number);
9400
9846
  }
9401
9847
 
9402
- 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 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 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 DeleteUserAPIKeyError, type DeleteUserAPIKeyPathParams, type DeleteUserAPIKeyVariables, type DeleteUserError, 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, 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 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 GetTableColumnsError, type GetTableColumnsPathParams, type GetTableColumnsResponse, type GetTableColumnsVariables, type GetTableSchemaError, type GetTableSchemaPathParams, type GetTableSchemaResponse, type GetTableSchemaVariables, 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 InsertRecordError, type InsertRecordPathParams, type InsertRecordQueryParams, type InsertRecordVariables, type InsertRecordWithIDError, type InsertRecordWithIDPathParams, type InsertRecordWithIDQueryParams, type InsertRecordWithIDVariables, type InviteWorkspaceMemberError, type InviteWorkspaceMemberPathParams, type InviteWorkspaceMemberRequestBody, type InviteWorkspaceMemberVariables, type JSONData, type KeywordAskOptions, type Link, type ListMigrationRequestsCommitsError, type ListMigrationRequestsCommitsPathParams, type ListMigrationRequestsCommitsRequestBody, type ListMigrationRequestsCommitsResponse, type ListMigrationRequestsCommitsVariables, type ListRegionsError, type ListRegionsPathParams, type ListRegionsVariables, type MergeMigrationRequestError, type MergeMigrationRequestPathParams, type MergeMigrationRequestVariables, type OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, type Paginable, type PaginationQueryMeta, type PreviewBranchSchemaEditError, type PreviewBranchSchemaEditPathParams, type PreviewBranchSchemaEditRequestBody, type PreviewBranchSchemaEditResponse, type PreviewBranchSchemaEditVariables, type PushBranchMigrationsError, type PushBranchMigrationsPathParams, type PushBranchMigrationsRequestBody, type PushBranchMigrationsVariables, type PutFileError, type PutFileItemError, type PutFileItemPathParams, type PutFileItemVariables, type PutFilePathParams, type PutFileVariables, Query, type QueryMigrationRequestsError, type QueryMigrationRequestsPathParams, type QueryMigrationRequestsRequestBody, type QueryMigrationRequestsResponse, type QueryMigrationRequestsVariables, type QueryTableError, type QueryTablePathParams, type QueryTableRequestBody, type QueryTableVariables, RecordArray, RecordColumnTypes, type RemoveGitBranchesEntryError, type RemoveGitBranchesEntryPathParams, type RemoveGitBranchesEntryQueryParams, type RemoveGitBranchesEntryVariables, type RemoveWorkspaceMemberError, type RemoveWorkspaceMemberPathParams, type RemoveWorkspaceMemberVariables, type RenameDatabaseError, type RenameDatabasePathParams, type RenameDatabaseRequestBody, type RenameDatabaseVariables, Repository, type ResendWorkspaceMemberInviteError, type ResendWorkspaceMemberInvitePathParams, type ResendWorkspaceMemberInviteVariables, type ResolveBranchError, type ResolveBranchPathParams, type ResolveBranchQueryParams, type ResolveBranchResponse, type ResolveBranchVariables, responses as Responses, RestRepository, SQLPlugin, type SQLPluginResult, type SQLQuery, type SQLQueryParams, type SchemaDefinition, type SchemaInference, SchemaPlugin, type SchemaPluginResult, schemas as Schemas, type SearchBranchError, type SearchBranchPathParams, type SearchBranchRequestBody, type SearchBranchVariables, type SearchOptions, SearchPlugin, type SearchPluginResult, type SearchTableError, type SearchTablePathParams, type SearchTableRequestBody, type SearchTableVariables, type SearchXataRecord, type SelectableColumn, type 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 UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, 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 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, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, ge, getAPIKey, getAuthorizationCode, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, getWorkspacesList, grantAuthorizationCode, greaterEquals, greaterThan, greaterThanEquals, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isXataRecord, le, lessEquals, lessThan, lessThanEquals, 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, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };
9848
+ 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, 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 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 ListClustersVariables, type ListMigrationRequestsCommitsError, type ListMigrationRequestsCommitsPathParams, type ListMigrationRequestsCommitsRequestBody, type ListMigrationRequestsCommitsResponse, type ListMigrationRequestsCommitsVariables, type ListRegionsError, type ListRegionsPathParams, type ListRegionsVariables, type MergeMigrationRequestError, type MergeMigrationRequestPathParams, type MergeMigrationRequestVariables, type OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, type Paginable, type PaginationQueryMeta, type PgRollStatusError, type PgRollStatusPathParams, type PgRollStatusVariables, type PreviewBranchSchemaEditError, type PreviewBranchSchemaEditPathParams, type PreviewBranchSchemaEditRequestBody, type PreviewBranchSchemaEditResponse, type PreviewBranchSchemaEditVariables, type PushBranchMigrationsError, type PushBranchMigrationsPathParams, type PushBranchMigrationsRequestBody, type PushBranchMigrationsVariables, type PutFileError, type PutFileItemError, type PutFileItemPathParams, type PutFileItemVariables, type PutFilePathParams, type PutFileVariables, Query, type QueryMigrationRequestsError, type QueryMigrationRequestsPathParams, type QueryMigrationRequestsRequestBody, type QueryMigrationRequestsResponse, type QueryMigrationRequestsVariables, type QueryTableError, type QueryTablePathParams, type QueryTableRequestBody, type QueryTableVariables, RecordArray, RecordColumnTypes, type RemoveGitBranchesEntryError, type RemoveGitBranchesEntryPathParams, type RemoveGitBranchesEntryQueryParams, type RemoveGitBranchesEntryVariables, type RemoveWorkspaceMemberError, type RemoveWorkspaceMemberPathParams, type RemoveWorkspaceMemberVariables, type RenameDatabaseError, type RenameDatabasePathParams, type RenameDatabaseRequestBody, type RenameDatabaseVariables, Repository, type ResendWorkspaceMemberInviteError, type ResendWorkspaceMemberInvitePathParams, type ResendWorkspaceMemberInviteVariables, type ResolveBranchError, type ResolveBranchPathParams, type ResolveBranchQueryParams, type ResolveBranchResponse, type ResolveBranchVariables, responses as Responses, RestRepository, SQLPlugin, type SQLPluginResult, type SQLQuery, type SQLQueryParams, type SchemaDefinition, type SchemaInference, SchemaPlugin, type SchemaPluginResult, schemas as Schemas, type SearchBranchError, type SearchBranchPathParams, type SearchBranchRequestBody, type SearchBranchVariables, type SearchOptions, SearchPlugin, type SearchPluginResult, type SearchTableError, type SearchTablePathParams, type SearchTableRequestBody, type SearchTableVariables, type SearchXataRecord, type SelectableColumn, type SelectableColumnWithObjectNotation, type SelectedPick, type SerializedString, Serializer, type SerializerResult, type SetTableSchemaError, type SetTableSchemaPathParams, type SetTableSchemaRequestBody, type SetTableSchemaVariables, SimpleCache, type SimpleCacheOptions, type SqlQueryError, type SqlQueryPathParams, type SqlQueryRequestBody, type SqlQueryVariables, type SummarizeTableError, type SummarizeTablePathParams, type SummarizeTableRequestBody, type SummarizeTableVariables, type TotalCount, type TransactionOperation, TransactionPlugin, type TransactionPluginResult, type TransactionResults, type UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, type UpdateClusterError, type UpdateClusterPathParams, type UpdateClusterVariables, type UpdateColumnError, type UpdateColumnPathParams, type UpdateColumnRequestBody, type UpdateColumnVariables, type UpdateDatabaseGithubSettingsError, type UpdateDatabaseGithubSettingsPathParams, type UpdateDatabaseGithubSettingsVariables, type UpdateDatabaseMetadataError, type UpdateDatabaseMetadataPathParams, type UpdateDatabaseMetadataRequestBody, type UpdateDatabaseMetadataVariables, type UpdateMigrationRequestError, type UpdateMigrationRequestPathParams, type UpdateMigrationRequestRequestBody, type UpdateMigrationRequestVariables, type UpdateOAuthAccessTokenError, type UpdateOAuthAccessTokenPathParams, type UpdateOAuthAccessTokenRequestBody, type UpdateOAuthAccessTokenVariables, type UpdateRecordWithIDError, type UpdateRecordWithIDPathParams, type UpdateRecordWithIDQueryParams, type UpdateRecordWithIDVariables, type UpdateTableError, type UpdateTablePathParams, type UpdateTableRequestBody, type UpdateTableVariables, type UpdateTransactionOperation, type UpdateUserError, type UpdateUserVariables, type UpdateWorkspaceError, type UpdateWorkspaceMemberInviteError, type UpdateWorkspaceMemberInvitePathParams, type UpdateWorkspaceMemberInviteRequestBody, type UpdateWorkspaceMemberInviteVariables, type UpdateWorkspaceMemberRoleError, type UpdateWorkspaceMemberRolePathParams, type UpdateWorkspaceMemberRoleRequestBody, type UpdateWorkspaceMemberRoleVariables, type UpdateWorkspacePathParams, type UpdateWorkspaceVariables, type UploadDestination, type UpsertRecordWithIDError, type UpsertRecordWithIDPathParams, type UpsertRecordWithIDQueryParams, type UpsertRecordWithIDVariables, type ValueAtColumn, type VectorAskOptions, type VectorSearchTableError, type VectorSearchTablePathParams, type VectorSearchTableRequestBody, type VectorSearchTableVariables, XataApiClient, type XataApiClientOptions, XataApiPlugin, type XataArrayFile, XataError, XataFile, XataPlugin, type XataPluginOptions, type XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, applyMigration, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createCluster, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, 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, 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 };