@xata.io/client 0.0.0-next.v6c9e627772cbacc1977ba6ba82e6b403ac64c0b2 → 0.0.0-next.v75d167190643613f39533f83608bd5d30cc66dcf

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
@@ -4,6 +4,7 @@ declare abstract class XataPlugin {
4
4
  type XataPluginOptions = ApiExtraProps & {
5
5
  host: HostProvider;
6
6
  tables: Table[];
7
+ branch: string;
7
8
  };
8
9
 
9
10
  type AttributeDictionary = Record<string, string | number | boolean | undefined>;
@@ -170,7 +171,6 @@ type Branch = {
170
171
  * The cluster where this branch resides. Value of 'shared-cluster' for branches in shared clusters
171
172
  *
172
173
  * @minLength 1
173
- * @x-internal true
174
174
  */
175
175
  clusterID?: string;
176
176
  createdAt: DateTime$1;
@@ -180,7 +180,7 @@ type ListBranchesResponse = {
180
180
  branches: Branch[];
181
181
  };
182
182
  type DatabaseSettings = {
183
- search_enabled: boolean;
183
+ searchEnabled: boolean;
184
184
  };
185
185
  /**
186
186
  * @maxLength 255
@@ -224,7 +224,7 @@ type ColumnFile = {
224
224
  };
225
225
  type Column = {
226
226
  name: string;
227
- type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'datetime' | 'vector' | 'file[]' | 'file' | 'json';
227
+ type: string;
228
228
  link?: ColumnLink;
229
229
  vector?: ColumnVector;
230
230
  file?: ColumnFile;
@@ -1710,6 +1710,10 @@ type Workspace = WorkspaceMeta & {
1710
1710
  memberCount: number;
1711
1711
  plan: WorkspacePlan;
1712
1712
  };
1713
+ type WorkspaceSettings = {
1714
+ postgresEnabled: boolean;
1715
+ dedicatedClusters: boolean;
1716
+ };
1713
1717
  type WorkspaceMember = {
1714
1718
  userId: UserID;
1715
1719
  fullname: string;
@@ -1873,6 +1877,13 @@ type ClusterConfiguration = {
1873
1877
  * @format int64
1874
1878
  */
1875
1879
  replicas?: number;
1880
+ /**
1881
+ * @format int64
1882
+ * @default 1
1883
+ * @maximum 3
1884
+ * @minimum 1
1885
+ */
1886
+ instanceCount?: number;
1876
1887
  /**
1877
1888
  * @default false
1878
1889
  */
@@ -1891,7 +1902,7 @@ type ClusterCreateDetails = {
1891
1902
  /**
1892
1903
  * @maxLength 63
1893
1904
  * @minLength 1
1894
- * @pattern [a-zA-Z0-9_-~:]+
1905
+ * @pattern [a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*
1895
1906
  */
1896
1907
  name: string;
1897
1908
  configuration: ClusterConfiguration;
@@ -1943,6 +1954,10 @@ type ClusterConfigurationResponse = {
1943
1954
  * @format int64
1944
1955
  */
1945
1956
  replicas: number;
1957
+ /**
1958
+ * @format int64
1959
+ */
1960
+ instanceCount: number;
1946
1961
  /**
1947
1962
  * @default false
1948
1963
  */
@@ -1967,15 +1982,18 @@ type ClusterMetadata = {
1967
1982
  /**
1968
1983
  * @x-internal true
1969
1984
  */
1970
- type ClusterUpdateDetails = {
1971
- command: string;
1985
+ type ClusterUpdateMetadata = {
1986
+ id: ClusterID;
1987
+ state: string;
1972
1988
  };
1973
1989
  /**
1974
1990
  * @x-internal true
1975
1991
  */
1976
- type ClusterUpdateMetadata = {
1977
- id: ClusterID;
1978
- state: string;
1992
+ type ClusterUpdateDetails = {
1993
+ /**
1994
+ * @pattern ^[Ss][Tt][Oo][Pp]|[Ss][Tt][Aa][Rr][Tt]$
1995
+ */
1996
+ command: string;
1979
1997
  };
1980
1998
  /**
1981
1999
  * Metadata of databases
@@ -1998,9 +2016,13 @@ type DatabaseMetadata = {
1998
2016
  */
1999
2017
  newMigrations?: boolean;
2000
2018
  /**
2001
- * @x-internal true
2019
+ * The default cluster ID where branches from this database reside. Value of 'shared-cluster' for branches in shared clusters.
2002
2020
  */
2003
2021
  defaultClusterID?: string;
2022
+ /**
2023
+ * The database is accessible via the Postgres protocol
2024
+ */
2025
+ postgresEnabled?: boolean;
2004
2026
  /**
2005
2027
  * Metadata about the database for display in Xata user interfaces
2006
2028
  */
@@ -2541,6 +2563,62 @@ type DeleteWorkspaceVariables = {
2541
2563
  * Delete the workspace with the provided ID
2542
2564
  */
2543
2565
  declare const deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal) => Promise<undefined>;
2566
+ type GetWorkspaceSettingsPathParams = {
2567
+ /**
2568
+ * Workspace ID
2569
+ */
2570
+ workspaceId: WorkspaceID;
2571
+ };
2572
+ type GetWorkspaceSettingsError = ErrorWrapper$1<{
2573
+ status: 400;
2574
+ payload: BadRequestError;
2575
+ } | {
2576
+ status: 401;
2577
+ payload: AuthError;
2578
+ } | {
2579
+ status: 403;
2580
+ payload: AuthError;
2581
+ } | {
2582
+ status: 404;
2583
+ payload: SimpleError;
2584
+ }>;
2585
+ type GetWorkspaceSettingsVariables = {
2586
+ pathParams: GetWorkspaceSettingsPathParams;
2587
+ } & ControlPlaneFetcherExtraProps;
2588
+ /**
2589
+ * Retrieve workspace settings from a workspace ID
2590
+ */
2591
+ declare const getWorkspaceSettings: (variables: GetWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
2592
+ type UpdateWorkspaceSettingsPathParams = {
2593
+ /**
2594
+ * Workspace ID
2595
+ */
2596
+ workspaceId: WorkspaceID;
2597
+ };
2598
+ type UpdateWorkspaceSettingsError = ErrorWrapper$1<{
2599
+ status: 400;
2600
+ payload: BadRequestError;
2601
+ } | {
2602
+ status: 401;
2603
+ payload: AuthError;
2604
+ } | {
2605
+ status: 403;
2606
+ payload: AuthError;
2607
+ } | {
2608
+ status: 404;
2609
+ payload: SimpleError;
2610
+ }>;
2611
+ type UpdateWorkspaceSettingsRequestBody = {
2612
+ postgresEnabled: boolean;
2613
+ };
2614
+ type UpdateWorkspaceSettingsVariables = {
2615
+ body: UpdateWorkspaceSettingsRequestBody;
2616
+ pathParams: UpdateWorkspaceSettingsPathParams;
2617
+ } & ControlPlaneFetcherExtraProps;
2618
+ /**
2619
+ * Update workspace settings
2620
+ */
2621
+ declare const updateWorkspaceSettings: (variables: UpdateWorkspaceSettingsVariables, signal?: AbortSignal) => Promise<WorkspaceSettings>;
2544
2622
  type GetWorkspaceMembersListPathParams = {
2545
2623
  /**
2546
2624
  * Workspace ID
@@ -2899,6 +2977,30 @@ type UpdateClusterVariables = {
2899
2977
  * Update cluster for given cluster ID
2900
2978
  */
2901
2979
  declare const updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterUpdateMetadata>;
2980
+ type DeleteClusterPathParams = {
2981
+ /**
2982
+ * Workspace ID
2983
+ */
2984
+ workspaceId: WorkspaceID;
2985
+ /**
2986
+ * Cluster ID
2987
+ */
2988
+ clusterId: ClusterID;
2989
+ };
2990
+ type DeleteClusterError = ErrorWrapper$1<{
2991
+ status: 400;
2992
+ payload: BadRequestError;
2993
+ } | {
2994
+ status: 401;
2995
+ payload: AuthError;
2996
+ }>;
2997
+ type DeleteClusterVariables = {
2998
+ pathParams: DeleteClusterPathParams;
2999
+ } & ControlPlaneFetcherExtraProps;
3000
+ /**
3001
+ * Delete cluster with given cluster ID
3002
+ */
3003
+ declare const deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal) => Promise<ClusterUpdateMetadata>;
2902
3004
  type GetDatabaseListPathParams = {
2903
3005
  /**
2904
3006
  * Workspace ID
@@ -3273,6 +3375,7 @@ type ApplyMigrationRequestBody = {
3273
3375
  operations: {
3274
3376
  [key: string]: any;
3275
3377
  }[];
3378
+ adaptTables?: boolean;
3276
3379
  };
3277
3380
  type ApplyMigrationVariables = {
3278
3381
  body: ApplyMigrationRequestBody;
@@ -3311,6 +3414,31 @@ type AdaptTableVariables = {
3311
3414
  * Adapt a table to be used from Xata, this will add the Xata metadata fields to the table, making it accessible through the data API.
3312
3415
  */
3313
3416
  declare const adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
3417
+ type AdaptAllTablesPathParams = {
3418
+ /**
3419
+ * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
3420
+ */
3421
+ dbBranchName: DBBranchName;
3422
+ workspace: string;
3423
+ region: string;
3424
+ };
3425
+ type AdaptAllTablesError = ErrorWrapper<{
3426
+ status: 400;
3427
+ payload: BadRequestError$1;
3428
+ } | {
3429
+ status: 401;
3430
+ payload: AuthError$1;
3431
+ } | {
3432
+ status: 404;
3433
+ payload: SimpleError$1;
3434
+ }>;
3435
+ type AdaptAllTablesVariables = {
3436
+ pathParams: AdaptAllTablesPathParams;
3437
+ } & DataPlaneFetcherExtraProps;
3438
+ /**
3439
+ * Adapt all xata incompatible tables present in the branch, this will add the Xata metadata fields to the table, making them accessible through the data API.
3440
+ */
3441
+ declare const adaptAllTables: (variables: AdaptAllTablesVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
3314
3442
  type GetBranchMigrationJobStatusPathParams = {
3315
3443
  /**
3316
3444
  * The DBBranchName matches the pattern `{db_name}:{branch_name}`.
@@ -3449,8 +3577,11 @@ type UpdateDatabaseSettingsError = ErrorWrapper<{
3449
3577
  status: 404;
3450
3578
  payload: SimpleError$1;
3451
3579
  }>;
3580
+ type UpdateDatabaseSettingsRequestBody = {
3581
+ searchEnabled?: boolean;
3582
+ };
3452
3583
  type UpdateDatabaseSettingsVariables = {
3453
- body: DatabaseSettings;
3584
+ body?: UpdateDatabaseSettingsRequestBody;
3454
3585
  pathParams: UpdateDatabaseSettingsPathParams;
3455
3586
  } & DataPlaneFetcherExtraProps;
3456
3587
  /**
@@ -6848,6 +6979,8 @@ declare const operationsByTag: {
6848
6979
  getWorkspace: (variables: GetWorkspaceVariables, signal?: AbortSignal | undefined) => Promise<Workspace>;
6849
6980
  updateWorkspace: (variables: UpdateWorkspaceVariables, signal?: AbortSignal | undefined) => Promise<Workspace>;
6850
6981
  deleteWorkspace: (variables: DeleteWorkspaceVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
6982
+ getWorkspaceSettings: (variables: GetWorkspaceSettingsVariables, signal?: AbortSignal | undefined) => Promise<WorkspaceSettings>;
6983
+ updateWorkspaceSettings: (variables: UpdateWorkspaceSettingsVariables, signal?: AbortSignal | undefined) => Promise<WorkspaceSettings>;
6851
6984
  getWorkspaceMembersList: (variables: GetWorkspaceMembersListVariables, signal?: AbortSignal | undefined) => Promise<WorkspaceMembers>;
6852
6985
  updateWorkspaceMemberRole: (variables: UpdateWorkspaceMemberRoleVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
6853
6986
  removeWorkspaceMember: (variables: RemoveWorkspaceMemberVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
@@ -6855,6 +6988,7 @@ declare const operationsByTag: {
6855
6988
  migrations: {
6856
6989
  applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal | undefined) => Promise<ApplyMigrationResponse>;
6857
6990
  adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal | undefined) => Promise<ApplyMigrationResponse>;
6991
+ adaptAllTables: (variables: AdaptAllTablesVariables, signal?: AbortSignal | undefined) => Promise<ApplyMigrationResponse>;
6858
6992
  getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal | undefined) => Promise<MigrationJobStatusResponse>;
6859
6993
  getMigrationJobStatus: (variables: GetMigrationJobStatusVariables, signal?: AbortSignal | undefined) => Promise<MigrationJobStatusResponse>;
6860
6994
  getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal | undefined) => Promise<MigrationHistoryResponse>;
@@ -6960,6 +7094,7 @@ declare const operationsByTag: {
6960
7094
  createCluster: (variables: CreateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterResponse>;
6961
7095
  getCluster: (variables: GetClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterMetadata>;
6962
7096
  updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterUpdateMetadata>;
7097
+ deleteCluster: (variables: DeleteClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterUpdateMetadata>;
6963
7098
  };
6964
7099
  databases: {
6965
7100
  getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal | undefined) => Promise<ListDatabasesResponse>;
@@ -6989,6 +7124,8 @@ declare function buildProviderString(provider: HostProvider): string;
6989
7124
  declare function parseWorkspacesUrlParts(url: string): {
6990
7125
  workspace: string;
6991
7126
  region: string;
7127
+ database: string;
7128
+ branch?: string;
6992
7129
  host: HostAliases;
6993
7130
  } | null;
6994
7131
 
@@ -7188,8 +7325,9 @@ type schemas_WorkspaceMember = WorkspaceMember;
7188
7325
  type schemas_WorkspaceMembers = WorkspaceMembers;
7189
7326
  type schemas_WorkspaceMeta = WorkspaceMeta;
7190
7327
  type schemas_WorkspacePlan = WorkspacePlan;
7328
+ type schemas_WorkspaceSettings = WorkspaceSettings;
7191
7329
  declare namespace schemas {
7192
- export type { schemas_APIKeyName as APIKeyName, schemas_AccessToken as AccessToken, schemas_AggExpression as AggExpression, schemas_AggExpressionMap as AggExpressionMap, AggResponse$1 as AggResponse, schemas_ApplyMigrationResponse as ApplyMigrationResponse, schemas_AuthorizationCodeRequest as AuthorizationCodeRequest, schemas_AuthorizationCodeResponse as AuthorizationCodeResponse, schemas_AutoscalingConfig as AutoscalingConfig, schemas_AutoscalingConfigResponse as AutoscalingConfigResponse, schemas_AverageAgg as AverageAgg, schemas_BoosterExpression as BoosterExpression, schemas_Branch as Branch, BranchMetadata$1 as BranchMetadata, schemas_BranchMigration as BranchMigration, BranchName$1 as BranchName, schemas_BranchOp as BranchOp, schemas_BranchSchema as BranchSchema, schemas_BranchWithCopyID as BranchWithCopyID, schemas_ClusterConfiguration as ClusterConfiguration, schemas_ClusterConfigurationResponse as ClusterConfigurationResponse, schemas_ClusterCreateDetails as ClusterCreateDetails, schemas_ClusterID as ClusterID, schemas_ClusterMetadata as ClusterMetadata, schemas_ClusterResponse as ClusterResponse, schemas_ClusterShortMetadata as ClusterShortMetadata, schemas_ClusterUpdateDetails as ClusterUpdateDetails, schemas_ClusterUpdateMetadata as ClusterUpdateMetadata, schemas_Column as Column, schemas_ColumnFile as ColumnFile, schemas_ColumnLink as ColumnLink, schemas_ColumnMigration as ColumnMigration, schemas_ColumnName as ColumnName, schemas_ColumnOpAdd as ColumnOpAdd, schemas_ColumnOpRemove as ColumnOpRemove, schemas_ColumnOpRename as ColumnOpRename, schemas_ColumnVector as ColumnVector, schemas_ColumnsProjection as ColumnsProjection, schemas_Commit as Commit, schemas_CountAgg as CountAgg, schemas_DBBranch as DBBranch, schemas_DBBranchName as DBBranchName, DBName$1 as DBName, schemas_DailyTimeWindow as DailyTimeWindow, schemas_DataInputRecord as DataInputRecord, schemas_DatabaseGithubSettings as DatabaseGithubSettings, schemas_DatabaseMetadata as DatabaseMetadata, schemas_DatabaseSettings as DatabaseSettings, DateBooster$1 as DateBooster, schemas_DateHistogramAgg as DateHistogramAgg, DateTime$1 as DateTime, schemas_FileAccessID as FileAccessID, schemas_FileItemID as FileItemID, schemas_FileName as FileName, schemas_FileResponse as FileResponse, schemas_FileSignature as FileSignature, schemas_FilterColumn as FilterColumn, schemas_FilterColumnIncludes as FilterColumnIncludes, schemas_FilterExpression as FilterExpression, schemas_FilterList as FilterList, schemas_FilterPredicate as FilterPredicate, schemas_FilterPredicateOp as FilterPredicateOp, schemas_FilterPredicateRangeOp as FilterPredicateRangeOp, schemas_FilterRangeValue as FilterRangeValue, schemas_FilterValue as FilterValue, schemas_FuzzinessExpression as FuzzinessExpression, schemas_HighlightExpression as HighlightExpression, schemas_InputFile as InputFile, schemas_InputFileArray as InputFileArray, schemas_InputFileEntry as InputFileEntry, schemas_InviteID as InviteID, schemas_InviteKey as InviteKey, schemas_ListBranchesResponse as ListBranchesResponse, schemas_ListClustersResponse as ListClustersResponse, schemas_ListDatabasesResponse as ListDatabasesResponse, schemas_ListGitBranchesResponse as ListGitBranchesResponse, schemas_ListRegionsResponse as ListRegionsResponse, schemas_MaintenanceConfig as MaintenanceConfig, schemas_MaintenanceConfigResponse as MaintenanceConfigResponse, schemas_MaxAgg as MaxAgg, schemas_MediaType as MediaType, schemas_MetricsDatapoint as MetricsDatapoint, schemas_MetricsLatency as MetricsLatency, schemas_Migration as Migration, schemas_MigrationColumnOp as MigrationColumnOp, schemas_MigrationHistoryItem as MigrationHistoryItem, schemas_MigrationHistoryResponse as MigrationHistoryResponse, schemas_MigrationJobID as MigrationJobID, schemas_MigrationJobStatus as MigrationJobStatus, schemas_MigrationJobStatusResponse as MigrationJobStatusResponse, schemas_MigrationJobType as MigrationJobType, schemas_MigrationObject as MigrationObject, schemas_MigrationOp as MigrationOp, schemas_MigrationRequest as MigrationRequest, schemas_MigrationRequestNumber as MigrationRequestNumber, MigrationStatus$1 as MigrationStatus, schemas_MigrationTableOp as MigrationTableOp, schemas_MigrationType as MigrationType, schemas_MinAgg as MinAgg, NumericBooster$1 as NumericBooster, schemas_NumericHistogramAgg as NumericHistogramAgg, schemas_OAuthAccessToken as OAuthAccessToken, schemas_OAuthClientID as OAuthClientID, schemas_OAuthClientPublicDetails as OAuthClientPublicDetails, schemas_OAuthResponseType as OAuthResponseType, schemas_OAuthScope as OAuthScope, schemas_ObjectValue as ObjectValue, schemas_PageConfig as PageConfig, schemas_PageResponse as PageResponse, schemas_PageSize as PageSize, schemas_PageToken as PageToken, schemas_PercentilesAgg as PercentilesAgg, schemas_PrefixExpression as PrefixExpression, schemas_ProjectionConfig as ProjectionConfig, schemas_QueryColumnsProjection as QueryColumnsProjection, schemas_RecordID as RecordID, schemas_RecordMeta as RecordMeta, schemas_RecordsMetadata as RecordsMetadata, schemas_Region as Region, schemas_RevLink as RevLink, schemas_Role as Role, schemas_SQLRecord as SQLRecord, schemas_Schema as Schema, schemas_SchemaEditScript as SchemaEditScript, schemas_SearchPageConfig as SearchPageConfig, schemas_SortExpression as SortExpression, schemas_SortOrder as SortOrder, schemas_StartedFromMetadata as StartedFromMetadata, schemas_SumAgg as SumAgg, schemas_SummaryExpression as SummaryExpression, schemas_SummaryExpressionList as SummaryExpressionList, schemas_Table as Table, schemas_TableMigration as TableMigration, schemas_TableName as TableName, schemas_TableOpAdd as TableOpAdd, schemas_TableOpRemove as TableOpRemove, schemas_TableOpRename as TableOpRename, schemas_TableRename as TableRename, schemas_TargetExpression as TargetExpression, schemas_TopValuesAgg as TopValuesAgg, schemas_TransactionDeleteOp as TransactionDeleteOp, schemas_TransactionError as TransactionError, schemas_TransactionFailure as TransactionFailure, schemas_TransactionGetOp as TransactionGetOp, schemas_TransactionInsertOp as TransactionInsertOp, TransactionOperation$1 as TransactionOperation, schemas_TransactionResultColumns as TransactionResultColumns, schemas_TransactionResultDelete as TransactionResultDelete, schemas_TransactionResultGet as TransactionResultGet, schemas_TransactionResultInsert as TransactionResultInsert, schemas_TransactionResultUpdate as TransactionResultUpdate, schemas_TransactionSuccess as TransactionSuccess, schemas_TransactionUpdateOp as TransactionUpdateOp, schemas_UniqueCountAgg as UniqueCountAgg, schemas_User as User, schemas_UserID as UserID, schemas_UserWithID as UserWithID, ValueBooster$1 as ValueBooster, schemas_WeeklyTimeWindow as WeeklyTimeWindow, schemas_Workspace as Workspace, schemas_WorkspaceID as WorkspaceID, schemas_WorkspaceInvite as WorkspaceInvite, schemas_WorkspaceMember as WorkspaceMember, schemas_WorkspaceMembers as WorkspaceMembers, schemas_WorkspaceMeta as WorkspaceMeta, schemas_WorkspacePlan as WorkspacePlan, XataRecord$1 as XataRecord };
7330
+ export type { schemas_APIKeyName as APIKeyName, schemas_AccessToken as AccessToken, schemas_AggExpression as AggExpression, schemas_AggExpressionMap as AggExpressionMap, AggResponse$1 as AggResponse, schemas_ApplyMigrationResponse as ApplyMigrationResponse, schemas_AuthorizationCodeRequest as AuthorizationCodeRequest, schemas_AuthorizationCodeResponse as AuthorizationCodeResponse, schemas_AutoscalingConfig as AutoscalingConfig, schemas_AutoscalingConfigResponse as AutoscalingConfigResponse, schemas_AverageAgg as AverageAgg, schemas_BoosterExpression as BoosterExpression, schemas_Branch as Branch, BranchMetadata$1 as BranchMetadata, schemas_BranchMigration as BranchMigration, BranchName$1 as BranchName, schemas_BranchOp as BranchOp, schemas_BranchSchema as BranchSchema, schemas_BranchWithCopyID as BranchWithCopyID, schemas_ClusterConfiguration as ClusterConfiguration, schemas_ClusterConfigurationResponse as ClusterConfigurationResponse, schemas_ClusterCreateDetails as ClusterCreateDetails, schemas_ClusterID as ClusterID, schemas_ClusterMetadata as ClusterMetadata, schemas_ClusterResponse as ClusterResponse, schemas_ClusterShortMetadata as ClusterShortMetadata, schemas_ClusterUpdateDetails as ClusterUpdateDetails, schemas_ClusterUpdateMetadata as ClusterUpdateMetadata, schemas_Column as Column, schemas_ColumnFile as ColumnFile, schemas_ColumnLink as ColumnLink, schemas_ColumnMigration as ColumnMigration, schemas_ColumnName as ColumnName, schemas_ColumnOpAdd as ColumnOpAdd, schemas_ColumnOpRemove as ColumnOpRemove, schemas_ColumnOpRename as ColumnOpRename, schemas_ColumnVector as ColumnVector, schemas_ColumnsProjection as ColumnsProjection, schemas_Commit as Commit, schemas_CountAgg as CountAgg, schemas_DBBranch as DBBranch, schemas_DBBranchName as DBBranchName, DBName$1 as DBName, schemas_DailyTimeWindow as DailyTimeWindow, schemas_DataInputRecord as DataInputRecord, schemas_DatabaseGithubSettings as DatabaseGithubSettings, schemas_DatabaseMetadata as DatabaseMetadata, schemas_DatabaseSettings as DatabaseSettings, DateBooster$1 as DateBooster, schemas_DateHistogramAgg as DateHistogramAgg, DateTime$1 as DateTime, schemas_FileAccessID as FileAccessID, schemas_FileItemID as FileItemID, schemas_FileName as FileName, schemas_FileResponse as FileResponse, schemas_FileSignature as FileSignature, schemas_FilterColumn as FilterColumn, schemas_FilterColumnIncludes as FilterColumnIncludes, schemas_FilterExpression as FilterExpression, schemas_FilterList as FilterList, schemas_FilterPredicate as FilterPredicate, schemas_FilterPredicateOp as FilterPredicateOp, schemas_FilterPredicateRangeOp as FilterPredicateRangeOp, schemas_FilterRangeValue as FilterRangeValue, schemas_FilterValue as FilterValue, schemas_FuzzinessExpression as FuzzinessExpression, schemas_HighlightExpression as HighlightExpression, schemas_InputFile as InputFile, schemas_InputFileArray as InputFileArray, schemas_InputFileEntry as InputFileEntry, schemas_InviteID as InviteID, schemas_InviteKey as InviteKey, schemas_ListBranchesResponse as ListBranchesResponse, schemas_ListClustersResponse as ListClustersResponse, schemas_ListDatabasesResponse as ListDatabasesResponse, schemas_ListGitBranchesResponse as ListGitBranchesResponse, schemas_ListRegionsResponse as ListRegionsResponse, schemas_MaintenanceConfig as MaintenanceConfig, schemas_MaintenanceConfigResponse as MaintenanceConfigResponse, schemas_MaxAgg as MaxAgg, schemas_MediaType as MediaType, schemas_MetricsDatapoint as MetricsDatapoint, schemas_MetricsLatency as MetricsLatency, schemas_Migration as Migration, schemas_MigrationColumnOp as MigrationColumnOp, schemas_MigrationHistoryItem as MigrationHistoryItem, schemas_MigrationHistoryResponse as MigrationHistoryResponse, schemas_MigrationJobID as MigrationJobID, schemas_MigrationJobStatus as MigrationJobStatus, schemas_MigrationJobStatusResponse as MigrationJobStatusResponse, schemas_MigrationJobType as MigrationJobType, schemas_MigrationObject as MigrationObject, schemas_MigrationOp as MigrationOp, schemas_MigrationRequest as MigrationRequest, schemas_MigrationRequestNumber as MigrationRequestNumber, MigrationStatus$1 as MigrationStatus, schemas_MigrationTableOp as MigrationTableOp, schemas_MigrationType as MigrationType, schemas_MinAgg as MinAgg, NumericBooster$1 as NumericBooster, schemas_NumericHistogramAgg as NumericHistogramAgg, schemas_OAuthAccessToken as OAuthAccessToken, schemas_OAuthClientID as OAuthClientID, schemas_OAuthClientPublicDetails as OAuthClientPublicDetails, schemas_OAuthResponseType as OAuthResponseType, schemas_OAuthScope as OAuthScope, schemas_ObjectValue as ObjectValue, schemas_PageConfig as PageConfig, schemas_PageResponse as PageResponse, schemas_PageSize as PageSize, schemas_PageToken as PageToken, schemas_PercentilesAgg as PercentilesAgg, schemas_PrefixExpression as PrefixExpression, schemas_ProjectionConfig as ProjectionConfig, schemas_QueryColumnsProjection as QueryColumnsProjection, schemas_RecordID as RecordID, schemas_RecordMeta as RecordMeta, schemas_RecordsMetadata as RecordsMetadata, schemas_Region as Region, schemas_RevLink as RevLink, schemas_Role as Role, schemas_SQLRecord as SQLRecord, schemas_Schema as Schema, schemas_SchemaEditScript as SchemaEditScript, schemas_SearchPageConfig as SearchPageConfig, schemas_SortExpression as SortExpression, schemas_SortOrder as SortOrder, schemas_StartedFromMetadata as StartedFromMetadata, schemas_SumAgg as SumAgg, schemas_SummaryExpression as SummaryExpression, schemas_SummaryExpressionList as SummaryExpressionList, schemas_Table as Table, schemas_TableMigration as TableMigration, schemas_TableName as TableName, schemas_TableOpAdd as TableOpAdd, schemas_TableOpRemove as TableOpRemove, schemas_TableOpRename as TableOpRename, schemas_TableRename as TableRename, schemas_TargetExpression as TargetExpression, schemas_TopValuesAgg as TopValuesAgg, schemas_TransactionDeleteOp as TransactionDeleteOp, schemas_TransactionError as TransactionError, schemas_TransactionFailure as TransactionFailure, schemas_TransactionGetOp as TransactionGetOp, schemas_TransactionInsertOp as TransactionInsertOp, TransactionOperation$1 as TransactionOperation, schemas_TransactionResultColumns as TransactionResultColumns, schemas_TransactionResultDelete as TransactionResultDelete, schemas_TransactionResultGet as TransactionResultGet, schemas_TransactionResultInsert as TransactionResultInsert, schemas_TransactionResultUpdate as TransactionResultUpdate, schemas_TransactionSuccess as TransactionSuccess, schemas_TransactionUpdateOp as TransactionUpdateOp, schemas_UniqueCountAgg as UniqueCountAgg, schemas_User as User, schemas_UserID as UserID, schemas_UserWithID as UserWithID, ValueBooster$1 as ValueBooster, schemas_WeeklyTimeWindow as WeeklyTimeWindow, schemas_Workspace as Workspace, schemas_WorkspaceID as WorkspaceID, schemas_WorkspaceInvite as WorkspaceInvite, schemas_WorkspaceMember as WorkspaceMember, schemas_WorkspaceMembers as WorkspaceMembers, schemas_WorkspaceMeta as WorkspaceMeta, schemas_WorkspacePlan as WorkspacePlan, schemas_WorkspaceSettings as WorkspaceSettings, XataRecord$1 as XataRecord };
7193
7331
  }
7194
7332
 
7195
7333
  declare class XataApiPlugin implements XataPlugin {
@@ -7361,6 +7499,580 @@ interface ImageTransformations {
7361
7499
  declare function transformImage(url: string, ...transformations: ImageTransformations[]): string;
7362
7500
  declare function transformImage(url: string | undefined, ...transformations: ImageTransformations[]): string | undefined;
7363
7501
 
7502
+ declare class Buffer extends Uint8Array {
7503
+ /**
7504
+ * Allocates a new buffer containing the given `str`.
7505
+ *
7506
+ * @param str String to store in buffer.
7507
+ * @param encoding Encoding to use, optional. Default is `utf8`.
7508
+ */
7509
+ constructor(str: string, encoding?: Encoding);
7510
+ /**
7511
+ * Allocates a new buffer of `size` octets.
7512
+ *
7513
+ * @param size Count of octets to allocate.
7514
+ */
7515
+ constructor(size: number);
7516
+ /**
7517
+ * Allocates a new buffer containing the given `array` of octets.
7518
+ *
7519
+ * @param array The octets to store.
7520
+ */
7521
+ constructor(array: Uint8Array);
7522
+ /**
7523
+ * Allocates a new buffer containing the given `array` of octet values.
7524
+ *
7525
+ * @param array
7526
+ */
7527
+ constructor(array: number[]);
7528
+ /**
7529
+ * Allocates a new buffer containing the given `array` of octet values.
7530
+ *
7531
+ * @param array
7532
+ * @param encoding
7533
+ */
7534
+ constructor(array: number[], encoding: Encoding);
7535
+ /**
7536
+ * Copies the passed `buffer` data onto a new `Buffer` instance.
7537
+ *
7538
+ * @param buffer
7539
+ */
7540
+ constructor(buffer: Buffer);
7541
+ /**
7542
+ * When passed a reference to the .buffer property of a TypedArray instance, the newly created Buffer will share
7543
+ * the same allocated memory as the TypedArray. The optional `byteOffset` and `length` arguments specify a memory
7544
+ * range within the `arrayBuffer` that will be shared by the Buffer.
7545
+ *
7546
+ * @param buffer The .buffer property of a TypedArray or a new ArrayBuffer().
7547
+ * @param byteOffset
7548
+ * @param length
7549
+ */
7550
+ constructor(buffer: ArrayBuffer, byteOffset?: number, length?: number);
7551
+ /**
7552
+ * Return JSON representation of the buffer.
7553
+ */
7554
+ toJSON(): {
7555
+ type: 'Buffer';
7556
+ data: number[];
7557
+ };
7558
+ /**
7559
+ * Writes `string` to the buffer at `offset` according to the character encoding in `encoding`. The `length`
7560
+ * parameter is the number of bytes to write. If the buffer does not contain enough space to fit the entire string,
7561
+ * only part of `string` will be written. However, partially encoded characters will not be written.
7562
+ *
7563
+ * @param string String to write to `buf`.
7564
+ * @param encoding The character encoding of `string`. Default: `utf8`.
7565
+ */
7566
+ write(string: string, encoding?: Encoding): number;
7567
+ /**
7568
+ * Writes `string` to the buffer at `offset` according to the character encoding in `encoding`. The `length`
7569
+ * parameter is the number of bytes to write. If the buffer does not contain enough space to fit the entire string,
7570
+ * only part of `string` will be written. However, partially encoded characters will not be written.
7571
+ *
7572
+ * @param string String to write to `buf`.
7573
+ * @param offset Number of bytes to skip before starting to write `string`. Default: `0`.
7574
+ * @param length Maximum number of bytes to write: Default: `buf.length - offset`.
7575
+ * @param encoding The character encoding of `string`. Default: `utf8`.
7576
+ */
7577
+ write(string: string, offset?: number, length?: number, encoding?: Encoding): number;
7578
+ /**
7579
+ * Decodes the buffer to a string according to the specified character encoding.
7580
+ * Passing `start` and `end` will decode only a subset of the buffer.
7581
+ *
7582
+ * Note that if the encoding is `utf8` and a byte sequence in the input is not valid UTF-8, then each invalid byte
7583
+ * will be replaced with `U+FFFD`.
7584
+ *
7585
+ * @param encoding
7586
+ * @param start
7587
+ * @param end
7588
+ */
7589
+ toString(encoding?: Encoding, start?: number, end?: number): string;
7590
+ /**
7591
+ * Returns true if this buffer's is equal to the provided buffer, meaning they share the same exact data.
7592
+ *
7593
+ * @param otherBuffer
7594
+ */
7595
+ equals(otherBuffer: Buffer): boolean;
7596
+ /**
7597
+ * Compares the buffer with `otherBuffer` and returns a number indicating whether the buffer comes before, after,
7598
+ * or is the same as `otherBuffer` in sort order. Comparison is based on the actual sequence of bytes in each
7599
+ * buffer.
7600
+ *
7601
+ * - `0` is returned if `otherBuffer` is the same as this buffer.
7602
+ * - `1` is returned if `otherBuffer` should come before this buffer when sorted.
7603
+ * - `-1` is returned if `otherBuffer` should come after this buffer when sorted.
7604
+ *
7605
+ * @param otherBuffer The buffer to compare to.
7606
+ * @param targetStart The offset within `otherBuffer` at which to begin comparison.
7607
+ * @param targetEnd The offset within `otherBuffer` at which to end comparison (exclusive).
7608
+ * @param sourceStart The offset within this buffer at which to begin comparison.
7609
+ * @param sourceEnd The offset within this buffer at which to end the comparison (exclusive).
7610
+ */
7611
+ compare(otherBuffer: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
7612
+ /**
7613
+ * Copies data from a region of this buffer to a region in `targetBuffer`, even if the `targetBuffer` memory
7614
+ * region overlaps with this buffer.
7615
+ *
7616
+ * @param targetBuffer The target buffer to copy into.
7617
+ * @param targetStart The offset within `targetBuffer` at which to begin writing.
7618
+ * @param sourceStart The offset within this buffer at which to begin copying.
7619
+ * @param sourceEnd The offset within this buffer at which to end copying (exclusive).
7620
+ */
7621
+ copy(targetBuffer: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
7622
+ /**
7623
+ * Returns a new `Buffer` that references the same memory as the original, but offset and cropped by the `start`
7624
+ * and `end` indices. This is the same behavior as `buf.subarray()`.
7625
+ *
7626
+ * This method is not compatible with the `Uint8Array.prototype.slice()`, which is a superclass of Buffer. To copy
7627
+ * the slice, use `Uint8Array.prototype.slice()`.
7628
+ *
7629
+ * @param start
7630
+ * @param end
7631
+ */
7632
+ slice(start?: number, end?: number): Buffer;
7633
+ /**
7634
+ * Writes `byteLength` bytes of `value` to `buf` at the specified `offset` as little-endian. Supports up to 48 bits
7635
+ * of accuracy. Behavior is undefined when value is anything other than an unsigned integer.
7636
+ *
7637
+ * @param value Number to write.
7638
+ * @param offset Number of bytes to skip before starting to write.
7639
+ * @param byteLength Number of bytes to write, between 0 and 6.
7640
+ * @param noAssert
7641
+ * @returns `offset` plus the number of bytes written.
7642
+ */
7643
+ writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
7644
+ /**
7645
+ * Writes `byteLength` bytes of `value` to `buf` at the specified `offset` as big-endian. Supports up to 48 bits of
7646
+ * accuracy. Behavior is undefined when `value` is anything other than an unsigned integer.
7647
+ *
7648
+ * @param value Number to write.
7649
+ * @param offset Number of bytes to skip before starting to write.
7650
+ * @param byteLength Number of bytes to write, between 0 and 6.
7651
+ * @param noAssert
7652
+ * @returns `offset` plus the number of bytes written.
7653
+ */
7654
+ writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
7655
+ /**
7656
+ * Writes `byteLength` bytes of `value` to `buf` at the specified `offset` as little-endian. Supports up to 48 bits
7657
+ * of accuracy. Behavior is undefined when `value` is anything other than a signed integer.
7658
+ *
7659
+ * @param value Number to write.
7660
+ * @param offset Number of bytes to skip before starting to write.
7661
+ * @param byteLength Number of bytes to write, between 0 and 6.
7662
+ * @param noAssert
7663
+ * @returns `offset` plus the number of bytes written.
7664
+ */
7665
+ writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
7666
+ /**
7667
+ * Writes `byteLength` bytes of `value` to `buf` at the specified `offset` as big-endian. Supports up to 48 bits
7668
+ * of accuracy. Behavior is undefined when `value` is anything other than a signed integer.
7669
+ *
7670
+ * @param value Number to write.
7671
+ * @param offset Number of bytes to skip before starting to write.
7672
+ * @param byteLength Number of bytes to write, between 0 and 6.
7673
+ * @param noAssert
7674
+ * @returns `offset` plus the number of bytes written.
7675
+ */
7676
+ writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
7677
+ /**
7678
+ * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an
7679
+ * unsigned, little-endian integer supporting up to 48 bits of accuracy.
7680
+ *
7681
+ * @param offset Number of bytes to skip before starting to read.
7682
+ * @param byteLength Number of bytes to read, between 0 and 6.
7683
+ * @param noAssert
7684
+ */
7685
+ readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
7686
+ /**
7687
+ * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as an
7688
+ * unsigned, big-endian integer supporting up to 48 bits of accuracy.
7689
+ *
7690
+ * @param offset Number of bytes to skip before starting to read.
7691
+ * @param byteLength Number of bytes to read, between 0 and 6.
7692
+ * @param noAssert
7693
+ */
7694
+ readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
7695
+ /**
7696
+ * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a
7697
+ * little-endian, two's complement signed value supporting up to 48 bits of accuracy.
7698
+ *
7699
+ * @param offset Number of bytes to skip before starting to read.
7700
+ * @param byteLength Number of bytes to read, between 0 and 6.
7701
+ * @param noAssert
7702
+ */
7703
+ readIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
7704
+ /**
7705
+ * Reads `byteLength` number of bytes from `buf` at the specified `offset` and interprets the result as a
7706
+ * big-endian, two's complement signed value supporting up to 48 bits of accuracy.
7707
+ *
7708
+ * @param offset Number of bytes to skip before starting to read.
7709
+ * @param byteLength Number of bytes to read, between 0 and 6.
7710
+ * @param noAssert
7711
+ */
7712
+ readIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
7713
+ /**
7714
+ * Reads an unsigned 8-bit integer from `buf` at the specified `offset`.
7715
+ *
7716
+ * @param offset Number of bytes to skip before starting to read.
7717
+ * @param noAssert
7718
+ */
7719
+ readUInt8(offset: number, noAssert?: boolean): number;
7720
+ /**
7721
+ * Reads an unsigned, little-endian 16-bit integer from `buf` at the specified `offset`.
7722
+ *
7723
+ * @param offset Number of bytes to skip before starting to read.
7724
+ * @param noAssert
7725
+ */
7726
+ readUInt16LE(offset: number, noAssert?: boolean): number;
7727
+ /**
7728
+ * Reads an unsigned, big-endian 16-bit integer from `buf` at the specified `offset`.
7729
+ *
7730
+ * @param offset Number of bytes to skip before starting to read.
7731
+ * @param noAssert
7732
+ */
7733
+ readUInt16BE(offset: number, noAssert?: boolean): number;
7734
+ /**
7735
+ * Reads an unsigned, little-endian 32-bit integer from `buf` at the specified `offset`.
7736
+ *
7737
+ * @param offset Number of bytes to skip before starting to read.
7738
+ * @param noAssert
7739
+ */
7740
+ readUInt32LE(offset: number, noAssert?: boolean): number;
7741
+ /**
7742
+ * Reads an unsigned, big-endian 32-bit integer from `buf` at the specified `offset`.
7743
+ *
7744
+ * @param offset Number of bytes to skip before starting to read.
7745
+ * @param noAssert
7746
+ */
7747
+ readUInt32BE(offset: number, noAssert?: boolean): number;
7748
+ /**
7749
+ * Reads a signed 8-bit integer from `buf` at the specified `offset`. Integers read from a `Buffer` are interpreted
7750
+ * as two's complement signed values.
7751
+ *
7752
+ * @param offset Number of bytes to skip before starting to read.
7753
+ * @param noAssert
7754
+ */
7755
+ readInt8(offset: number, noAssert?: boolean): number;
7756
+ /**
7757
+ * Reads a signed, little-endian 16-bit integer from `buf` at the specified `offset`. Integers read from a `Buffer`
7758
+ * are interpreted as two's complement signed values.
7759
+ *
7760
+ * @param offset Number of bytes to skip before starting to read.
7761
+ * @param noAssert
7762
+ */
7763
+ readInt16LE(offset: number, noAssert?: boolean): number;
7764
+ /**
7765
+ * Reads a signed, big-endian 16-bit integer from `buf` at the specified `offset`. Integers read from a `Buffer`
7766
+ * are interpreted as two's complement signed values.
7767
+ *
7768
+ * @param offset Number of bytes to skip before starting to read.
7769
+ * @param noAssert
7770
+ */
7771
+ readInt16BE(offset: number, noAssert?: boolean): number;
7772
+ /**
7773
+ * Reads a signed, little-endian 32-bit integer from `buf` at the specified `offset`. Integers read from a `Buffer`
7774
+ * are interpreted as two's complement signed values.
7775
+ *
7776
+ * @param offset Number of bytes to skip before starting to read.
7777
+ * @param noAssert
7778
+ */
7779
+ readInt32LE(offset: number, noAssert?: boolean): number;
7780
+ /**
7781
+ * Reads a signed, big-endian 32-bit integer from `buf` at the specified `offset`. Integers read from a `Buffer`
7782
+ * are interpreted as two's complement signed values.
7783
+ *
7784
+ * @param offset Number of bytes to skip before starting to read.
7785
+ * @param noAssert
7786
+ */
7787
+ readInt32BE(offset: number, noAssert?: boolean): number;
7788
+ /**
7789
+ * Interprets `buf` as an array of unsigned 16-bit integers and swaps the byte order in-place.
7790
+ * Throws a `RangeError` if `buf.length` is not a multiple of 2.
7791
+ */
7792
+ swap16(): Buffer;
7793
+ /**
7794
+ * Interprets `buf` as an array of unsigned 32-bit integers and swaps the byte order in-place.
7795
+ * Throws a `RangeError` if `buf.length` is not a multiple of 4.
7796
+ */
7797
+ swap32(): Buffer;
7798
+ /**
7799
+ * Interprets `buf` as an array of unsigned 64-bit integers and swaps the byte order in-place.
7800
+ * Throws a `RangeError` if `buf.length` is not a multiple of 8.
7801
+ */
7802
+ swap64(): Buffer;
7803
+ /**
7804
+ * Swaps two octets.
7805
+ *
7806
+ * @param b
7807
+ * @param n
7808
+ * @param m
7809
+ */
7810
+ private _swap;
7811
+ /**
7812
+ * Writes `value` to `buf` at the specified `offset`. The `value` must be a valid unsigned 8-bit integer.
7813
+ * Behavior is undefined when `value` is anything other than an unsigned 8-bit integer.
7814
+ *
7815
+ * @param value Number to write.
7816
+ * @param offset Number of bytes to skip before starting to write.
7817
+ * @param noAssert
7818
+ * @returns `offset` plus the number of bytes written.
7819
+ */
7820
+ writeUInt8(value: number, offset: number, noAssert?: boolean): number;
7821
+ /**
7822
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 16-bit
7823
+ * integer. Behavior is undefined when `value` is anything other than an unsigned 16-bit integer.
7824
+ *
7825
+ * @param value Number to write.
7826
+ * @param offset Number of bytes to skip before starting to write.
7827
+ * @param noAssert
7828
+ * @returns `offset` plus the number of bytes written.
7829
+ */
7830
+ writeUInt16LE(value: number | string, offset: number, noAssert?: boolean): number;
7831
+ /**
7832
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 16-bit
7833
+ * integer. Behavior is undefined when `value` is anything other than an unsigned 16-bit integer.
7834
+ *
7835
+ * @param value Number to write.
7836
+ * @param offset Number of bytes to skip before starting to write.
7837
+ * @param noAssert
7838
+ * @returns `offset` plus the number of bytes written.
7839
+ */
7840
+ writeUInt16BE(value: number, offset: number, noAssert?: boolean): number;
7841
+ /**
7842
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid unsigned 32-bit
7843
+ * integer. Behavior is undefined when `value` is anything other than an unsigned 32-bit integer.
7844
+ *
7845
+ * @param value Number to write.
7846
+ * @param offset Number of bytes to skip before starting to write.
7847
+ * @param noAssert
7848
+ * @returns `offset` plus the number of bytes written.
7849
+ */
7850
+ writeUInt32LE(value: number, offset: number, noAssert?: boolean): number;
7851
+ /**
7852
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid unsigned 32-bit
7853
+ * integer. Behavior is undefined when `value` is anything other than an unsigned 32-bit integer.
7854
+ *
7855
+ * @param value Number to write.
7856
+ * @param offset Number of bytes to skip before starting to write.
7857
+ * @param noAssert
7858
+ * @returns `offset` plus the number of bytes written.
7859
+ */
7860
+ writeUInt32BE(value: number, offset: number, noAssert?: boolean): number;
7861
+ /**
7862
+ * Writes `value` to `buf` at the specified `offset`. The `value` must be a valid signed 8-bit integer.
7863
+ * Behavior is undefined when `value` is anything other than a signed 8-bit integer.
7864
+ *
7865
+ * @param value Number to write.
7866
+ * @param offset Number of bytes to skip before starting to write.
7867
+ * @param noAssert
7868
+ * @returns `offset` plus the number of bytes written.
7869
+ */
7870
+ writeInt8(value: number, offset: number, noAssert?: boolean): number;
7871
+ /**
7872
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid signed 16-bit
7873
+ * integer. Behavior is undefined when `value` is anything other than a signed 16-bit integer.
7874
+ *
7875
+ * @param value Number to write.
7876
+ * @param offset Number of bytes to skip before starting to write.
7877
+ * @param noAssert
7878
+ * @returns `offset` plus the number of bytes written.
7879
+ */
7880
+ writeInt16LE(value: number, offset: number, noAssert?: boolean): number;
7881
+ /**
7882
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid signed 16-bit
7883
+ * integer. Behavior is undefined when `value` is anything other than a signed 16-bit integer.
7884
+ *
7885
+ * @param value Number to write.
7886
+ * @param offset Number of bytes to skip before starting to write.
7887
+ * @param noAssert
7888
+ * @returns `offset` plus the number of bytes written.
7889
+ */
7890
+ writeInt16BE(value: number, offset: number, noAssert?: boolean): number;
7891
+ /**
7892
+ * Writes `value` to `buf` at the specified `offset` as little-endian. The `value` must be a valid signed 32-bit
7893
+ * integer. Behavior is undefined when `value` is anything other than a signed 32-bit integer.
7894
+ *
7895
+ * @param value Number to write.
7896
+ * @param offset Number of bytes to skip before starting to write.
7897
+ * @param noAssert
7898
+ * @returns `offset` plus the number of bytes written.
7899
+ */
7900
+ writeInt32LE(value: number, offset: number, noAssert?: boolean): number;
7901
+ /**
7902
+ * Writes `value` to `buf` at the specified `offset` as big-endian. The `value` must be a valid signed 32-bit
7903
+ * integer. Behavior is undefined when `value` is anything other than a signed 32-bit integer.
7904
+ *
7905
+ * @param value Number to write.
7906
+ * @param offset Number of bytes to skip before starting to write.
7907
+ * @param noAssert
7908
+ * @returns `offset` plus the number of bytes written.
7909
+ */
7910
+ writeInt32BE(value: number, offset: number, noAssert?: boolean): number;
7911
+ /**
7912
+ * Fills `buf` with the specified `value`. If the `offset` and `end` are not given, the entire `buf` will be
7913
+ * filled. The `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or integer. If the resulting
7914
+ * integer is greater than `255` (decimal), then `buf` will be filled with `value & 255`.
7915
+ *
7916
+ * If the final write of a `fill()` operation falls on a multi-byte character, then only the bytes of that
7917
+ * character that fit into `buf` are written.
7918
+ *
7919
+ * If `value` contains invalid characters, it is truncated; if no valid fill data remains, an exception is thrown.
7920
+ *
7921
+ * @param value
7922
+ * @param encoding
7923
+ */
7924
+ fill(value: any, offset?: number, end?: number, encoding?: Encoding): this;
7925
+ /**
7926
+ * Returns the index of the specified value.
7927
+ *
7928
+ * If `value` is:
7929
+ * - a string, `value` is interpreted according to the character encoding in `encoding`.
7930
+ * - a `Buffer` or `Uint8Array`, `value` will be used in its entirety. To compare a partial Buffer, use `slice()`.
7931
+ * - a number, `value` will be interpreted as an unsigned 8-bit integer value between `0` and `255`.
7932
+ *
7933
+ * Any other types will throw a `TypeError`.
7934
+ *
7935
+ * @param value What to search for.
7936
+ * @param byteOffset Where to begin searching in `buf`. If negative, then calculated from the end.
7937
+ * @param encoding If `value` is a string, this is the encoding used to search.
7938
+ * @returns The index of the first occurrence of `value` in `buf`, or `-1` if not found.
7939
+ */
7940
+ indexOf(value: string | number | Buffer, byteOffset?: number, encoding?: Encoding): number;
7941
+ /**
7942
+ * Gets the last index of the specified value.
7943
+ *
7944
+ * @see indexOf()
7945
+ * @param value
7946
+ * @param byteOffset
7947
+ * @param encoding
7948
+ */
7949
+ lastIndexOf(value: string | number | Buffer, byteOffset?: number, encoding?: Encoding): number;
7950
+ private _bidirectionalIndexOf;
7951
+ /**
7952
+ * Equivalent to `buf.indexOf() !== -1`.
7953
+ *
7954
+ * @param value
7955
+ * @param byteOffset
7956
+ * @param encoding
7957
+ */
7958
+ includes(value: string | number | Buffer, byteOffset?: number, encoding?: Encoding): boolean;
7959
+ /**
7960
+ * Allocates a new Buffer using an `array` of octet values.
7961
+ *
7962
+ * @param array
7963
+ */
7964
+ static from(array: number[]): Buffer;
7965
+ /**
7966
+ * When passed a reference to the .buffer property of a TypedArray instance, the newly created Buffer will share
7967
+ * the same allocated memory as the TypedArray. The optional `byteOffset` and `length` arguments specify a memory
7968
+ * range within the `arrayBuffer` that will be shared by the Buffer.
7969
+ *
7970
+ * @param buffer The .buffer property of a TypedArray or a new ArrayBuffer().
7971
+ * @param byteOffset
7972
+ * @param length
7973
+ */
7974
+ static from(buffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer;
7975
+ /**
7976
+ * Copies the passed `buffer` data onto a new Buffer instance.
7977
+ *
7978
+ * @param buffer
7979
+ */
7980
+ static from(buffer: Buffer | Uint8Array): Buffer;
7981
+ /**
7982
+ * Creates a new Buffer containing the given string `str`. If provided, the `encoding` parameter identifies the
7983
+ * character encoding.
7984
+ *
7985
+ * @param str String to store in buffer.
7986
+ * @param encoding Encoding to use, optional. Default is `utf8`.
7987
+ */
7988
+ static from(str: string, encoding?: Encoding): Buffer;
7989
+ /**
7990
+ * Returns true if `obj` is a Buffer.
7991
+ *
7992
+ * @param obj
7993
+ */
7994
+ static isBuffer(obj: any): obj is Buffer;
7995
+ /**
7996
+ * Returns true if `encoding` is a supported encoding.
7997
+ *
7998
+ * @param encoding
7999
+ */
8000
+ static isEncoding(encoding: string): encoding is Encoding;
8001
+ /**
8002
+ * Gives the actual byte length of a string for an encoding. This is not the same as `string.length` since that
8003
+ * returns the number of characters in the string.
8004
+ *
8005
+ * @param string The string to test.
8006
+ * @param encoding The encoding to use for calculation. Defaults is `utf8`.
8007
+ */
8008
+ static byteLength(string: string | Buffer | ArrayBuffer, encoding?: Encoding): number;
8009
+ /**
8010
+ * Returns a Buffer which is the result of concatenating all the buffers in the list together.
8011
+ *
8012
+ * - If the list has no items, or if the `totalLength` is 0, then it returns a zero-length buffer.
8013
+ * - If the list has exactly one item, then the first item is returned.
8014
+ * - If the list has more than one item, then a new buffer is created.
8015
+ *
8016
+ * It is faster to provide the `totalLength` if it is known. However, it will be calculated if not provided at
8017
+ * a small computational expense.
8018
+ *
8019
+ * @param list An array of Buffer objects to concatenate.
8020
+ * @param totalLength Total length of the buffers when concatenated.
8021
+ */
8022
+ static concat(list: Uint8Array[], totalLength?: number): Buffer;
8023
+ /**
8024
+ * The same as `buf1.compare(buf2)`.
8025
+ */
8026
+ static compare(buf1: Uint8Array, buf2: Uint8Array): number;
8027
+ /**
8028
+ * Allocates a new buffer of `size` octets.
8029
+ *
8030
+ * @param size The number of octets to allocate.
8031
+ * @param fill If specified, the buffer will be initialized by calling `buf.fill(fill)`, or with zeroes otherwise.
8032
+ * @param encoding The encoding used for the call to `buf.fill()` while initializing.
8033
+ */
8034
+ static alloc(size: number, fill?: string | Buffer | number, encoding?: Encoding): Buffer;
8035
+ /**
8036
+ * Allocates a new buffer of `size` octets without initializing memory. The contents of the buffer are unknown.
8037
+ *
8038
+ * @param size
8039
+ */
8040
+ static allocUnsafe(size: number): Buffer;
8041
+ /**
8042
+ * Returns true if the given `obj` is an instance of `type`.
8043
+ *
8044
+ * @param obj
8045
+ * @param type
8046
+ */
8047
+ private static _isInstance;
8048
+ private static _checked;
8049
+ private static _blitBuffer;
8050
+ private static _utf8Write;
8051
+ private static _asciiWrite;
8052
+ private static _base64Write;
8053
+ private static _ucs2Write;
8054
+ private static _hexWrite;
8055
+ private static _utf8ToBytes;
8056
+ private static _base64ToBytes;
8057
+ private static _asciiToBytes;
8058
+ private static _utf16leToBytes;
8059
+ private static _hexSlice;
8060
+ private static _base64Slice;
8061
+ private static _utf8Slice;
8062
+ private static _decodeCodePointsArray;
8063
+ private static _asciiSlice;
8064
+ private static _latin1Slice;
8065
+ private static _utf16leSlice;
8066
+ private static _arrayIndexOf;
8067
+ private static _checkOffset;
8068
+ private static _checkInt;
8069
+ private static _getEncoding;
8070
+ }
8071
+ /**
8072
+ * The encodings that are supported in both native and polyfilled `Buffer` instances.
8073
+ */
8074
+ type Encoding = 'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'binary' | 'hex' | 'latin1' | 'base64';
8075
+
7364
8076
  type XataFileEditableFields = Partial<Pick<XataArrayFile, keyof InputFileEntry>>;
7365
8077
  type XataFileFields = Partial<Pick<XataArrayFile, {
7366
8078
  [K in StringKeys<XataArrayFile>]: XataArrayFile[K] extends Function ? never : K;
@@ -7440,7 +8152,7 @@ declare class XataFile {
7440
8152
  }
7441
8153
  type XataArrayFile = Identifiable & XataFile;
7442
8154
 
7443
- type SelectableColumn<O, RecursivePath extends any[] = []> = '*' | 'id' | `xata.${'version' | 'createdAt' | 'updatedAt'}` | DataProps<O> | NestedColumns<O, RecursivePath>;
8155
+ type SelectableColumn<O, RecursivePath extends any[] = []> = '*' | DataProps<O> | NestedColumns<O, RecursivePath>;
7444
8156
  type ExpandedColumnNotation = {
7445
8157
  name: string;
7446
8158
  columns?: SelectableColumn<any>[];
@@ -7474,7 +8186,7 @@ type SelectedPick<O extends XataRecord, Key extends SelectableColumnWithObjectNo
7474
8186
  };
7475
8187
  };
7476
8188
  }>>;
7477
- 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> ? {
8189
+ type ValueAtColumn<Object, Key, RecursivePath extends any[] = []> = RecursivePath['length'] extends MAX_RECURSION ? never : Key extends '*' ? Values<Object> : 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> ? {
7478
8190
  V: ValueAtColumn<Item, V, [...RecursivePath, Item]>;
7479
8191
  } : never : Object[K] : never> : never : never;
7480
8192
  type MAX_RECURSION = 3;
@@ -7482,11 +8194,11 @@ type NestedColumns<O, RecursivePath extends any[]> = RecursivePath['length'] ext
7482
8194
  [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
7483
8195
  K>> : never;
7484
8196
  }>, never>;
7485
- type DataProps<O> = Exclude<StringKeys<O>, StringKeys<XataRecord>>;
8197
+ type DataProps<O> = Exclude<StringKeys<O>, StringKeys<Omit<XataRecord, 'xata_id'>>>;
7486
8198
  type NestedValueAtColumn<O, Key extends SelectableColumn<O>> = Key extends `${infer N}.${infer M}` ? N extends DataProps<O> ? {
7487
8199
  [K in N]: M extends SelectableColumn<NonNullable<O[K]>> ? NonNullable<O[K]> extends XataFile ? ForwardNullable<O[K], XataFile> : NonNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], NestedValueAtColumn<NonNullable<O[K]>, M> & XataRecord> : ForwardNullable<O[K], NestedValueAtColumn<NonNullable<O[K]>, M>> : NonNullable<O[K]> extends (infer ArrayType)[] ? ArrayType extends XataArrayFile ? ForwardNullable<O[K], XataArrayFile[]> : M extends SelectableColumn<NonNullable<ArrayType>> ? ForwardNullable<O[K], NestedValueAtColumn<NonNullable<ArrayType>, M>[]> : unknown : unknown;
7488
8200
  } : unknown : Key extends DataProps<O> ? {
7489
- [K in Key]: NonNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], Omit<SelectedPick<NonNullable<O[K]>, ['*']>, 'xata' | 'getMetadata'>> : O[K];
8201
+ [K in Key]: NonNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], SelectedPick<NonNullable<O[K]>, ['*']>> : O[K];
7490
8202
  } : Key extends '*' ? {
7491
8203
  [K in StringKeys<O>]: NonNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], Link<NonNullable<O[K]>>> : O[K];
7492
8204
  } : unknown;
@@ -7501,7 +8213,7 @@ interface Identifiable {
7501
8213
  /**
7502
8214
  * Unique id of this record.
7503
8215
  */
7504
- id: Identifier;
8216
+ xata_id: Identifier;
7505
8217
  }
7506
8218
  interface BaseData {
7507
8219
  [key: string]: any;
@@ -7510,15 +8222,6 @@ interface BaseData {
7510
8222
  * Represents a persisted record from the database.
7511
8223
  */
7512
8224
  interface XataRecord<OriginalRecord extends XataRecord<any> = XataRecord<any>> extends Identifiable {
7513
- /**
7514
- * Metadata of this record.
7515
- */
7516
- xata: XataRecordMetadata;
7517
- /**
7518
- * Get metadata of this record.
7519
- * @deprecated Use `xata` property instead.
7520
- */
7521
- getMetadata(): XataRecordMetadata;
7522
8225
  /**
7523
8226
  * Get an object representation of this record.
7524
8227
  */
@@ -7590,22 +8293,7 @@ interface XataRecord<OriginalRecord extends XataRecord<any> = XataRecord<any>> e
7590
8293
  delete(): Promise<Readonly<SelectedPick<OriginalRecord, ['*']>> | null>;
7591
8294
  }
7592
8295
  type Link<Record extends XataRecord> = XataRecord<Record>;
7593
- type XataRecordMetadata = {
7594
- /**
7595
- * Number that is increased every time the record is updated.
7596
- */
7597
- version: number;
7598
- /**
7599
- * Timestamp when the record was created.
7600
- */
7601
- createdAt: Date;
7602
- /**
7603
- * Timestamp when the record was last updated.
7604
- */
7605
- updatedAt: Date;
7606
- };
7607
8296
  declare function isIdentifiable(x: any): x is Identifiable & Record<string, unknown>;
7608
- declare function isXataRecord(x: any): x is XataRecord & Record<string, unknown>;
7609
8297
  type NumericOperator = ExclusiveOr<{
7610
8298
  $increment?: number;
7611
8299
  }, ExclusiveOr<{
@@ -7617,9 +8305,9 @@ type NumericOperator = ExclusiveOr<{
7617
8305
  }>>>;
7618
8306
  type InputXataFile = Partial<XataArrayFile> | Promise<Partial<XataArrayFile>>;
7619
8307
  type EditableDataFields<T> = T extends XataRecord ? {
7620
- id: Identifier;
8308
+ xata_id: Identifier;
7621
8309
  } | Identifier : NonNullable<T> extends XataRecord ? {
7622
- id: Identifier;
8310
+ xata_id: Identifier;
7623
8311
  } | Identifier | null | undefined : T extends Date ? string | Date : NonNullable<T> extends Date ? string | Date | null | undefined : T extends XataFile ? InputXataFile : T extends XataFile[] ? InputXataFile[] : T extends number ? number | NumericOperator : T;
7624
8312
  type EditableData<O extends XataRecord> = Identifiable & Partial<Omit<{
7625
8313
  [K in keyof O]: EditableDataFields<O[K]>;
@@ -7627,25 +8315,20 @@ type EditableData<O extends XataRecord> = Identifiable & Partial<Omit<{
7627
8315
  type JSONDataFile = {
7628
8316
  [K in keyof XataFile]: XataFile[K] extends Function ? never : XataFile[K];
7629
8317
  };
7630
- 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;
8318
+ type JSONDataFields<T> = T extends null | undefined | void ? null | undefined : 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;
7631
8319
  type JSONDataBase = Identifiable & {
7632
8320
  /**
7633
- * Metadata about the record.
8321
+ * Timestamp when the record was created.
7634
8322
  */
7635
- xata: {
7636
- /**
7637
- * Timestamp when the record was created.
7638
- */
7639
- createdAt: string;
7640
- /**
7641
- * Timestamp when the record was last updated.
7642
- */
7643
- updatedAt: string;
7644
- /**
7645
- * Number that is increased every time the record is updated.
7646
- */
7647
- version: number;
7648
- };
8323
+ xata_createdat: string;
8324
+ /**
8325
+ * Timestamp when the record was last updated.
8326
+ */
8327
+ xata_updatedat: string;
8328
+ /**
8329
+ * Number that is increased every time the record is updated.
8330
+ */
8331
+ xata_version: number;
7649
8332
  };
7650
8333
  type JSONData<O> = JSONDataBase & Partial<Omit<{
7651
8334
  [K in keyof O]: JSONDataFields<O[K]>;
@@ -7658,7 +8341,7 @@ type JSONValue<Value> = Value & {
7658
8341
  type JSONFilterColumns<Record> = Values<{
7659
8342
  [K in keyof Record]: NonNullable<Record[K]> extends JSONValue<any> ? K extends string ? `${K}->${string}` : never : never;
7660
8343
  }>;
7661
- type FilterColumns<T> = ColumnsByValue<T, any> | `xata.${keyof XataRecordMetadata}`;
8344
+ type FilterColumns<T> = ColumnsByValue<T, any>;
7662
8345
  type FilterValueAtColumn<Record, F> = NonNullable<ValueAtColumn<Record, F>> extends JSONValue<any> ? PropertyFilter<any> : Filter<NonNullable<ValueAtColumn<Record, F>>>;
7663
8346
  /**
7664
8347
  * PropertyMatchFilter
@@ -7884,18 +8567,15 @@ declare class SearchPlugin<Schemas extends Record<string, XataRecord>> extends X
7884
8567
  constructor(db: SchemaPluginResult<Schemas>);
7885
8568
  build(pluginOptions: XataPluginOptions): SearchPluginResult<Schemas>;
7886
8569
  }
7887
- type SearchXataRecord<Record extends XataRecord> = Omit<Record, 'getMetadata' | 'xata'> & {
7888
- xata: XataRecordMetadata & SearchExtraProperties;
7889
- getMetadata: () => XataRecordMetadata & SearchExtraProperties;
7890
- };
8570
+ type SearchXataRecord<Record extends XataRecord> = Record & SearchExtraProperties;
7891
8571
  type SearchExtraProperties = {
7892
- table: string;
7893
- highlight?: {
8572
+ xata_table: string;
8573
+ xata_highlight?: {
7894
8574
  [key: string]: string[] | {
7895
8575
  [key: string]: any;
7896
8576
  };
7897
8577
  };
7898
- score?: number;
8578
+ xata_score?: number;
7899
8579
  };
7900
8580
  type ReturnTable<Table, Tables> = Table extends Tables ? Table : never;
7901
8581
  type ExtractTables<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>, TableOptions extends GetArrayInnerType<NonNullable<NonNullable<SearchOptions<Schemas, Tables>>['tables']>>> = TableOptions extends `${infer Table}` ? ReturnTable<Table, Tables> : TableOptions extends {
@@ -8133,7 +8813,7 @@ type RandomFilterExtended = {
8133
8813
  column: '*';
8134
8814
  direction: 'random';
8135
8815
  };
8136
- type SortColumns<T extends XataRecord> = ColumnsByValue<T, any> | `xata.${keyof XataRecordMetadata}`;
8816
+ type SortColumns<T extends XataRecord> = ColumnsByValue<T, any>;
8137
8817
  type SortFilterExtended<T extends XataRecord, Columns extends string = SortColumns<T>> = RandomFilterExtended | {
8138
8818
  column: Columns;
8139
8819
  direction?: SortDirection;
@@ -8570,10 +9250,10 @@ declare class PageRecordArray<Result extends XataRecord> extends Array<Result> {
8570
9250
  * Common interface for performing operations on a table.
8571
9251
  */
8572
9252
  declare abstract class Repository<Record extends XataRecord> extends Query<Record, Readonly<SelectedPick<Record, ['*']>>> {
8573
- abstract create<K extends SelectableColumn<Record>>(object: Omit<EditableData<Record>, 'id'> & Partial<Identifiable>, columns: K[], options?: {
9253
+ abstract create<K extends SelectableColumn<Record>>(object: Omit<EditableData<Record>, 'xata_id'> & Partial<Identifiable>, columns: K[], options?: {
8574
9254
  ifVersion?: number;
8575
9255
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8576
- abstract create(object: Omit<EditableData<Record>, 'id'> & Partial<Identifiable>, options?: {
9256
+ abstract create(object: Omit<EditableData<Record>, 'xata_id'> & Partial<Identifiable>, options?: {
8577
9257
  ifVersion?: number;
8578
9258
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8579
9259
  /**
@@ -8583,7 +9263,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8583
9263
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8584
9264
  * @returns The full persisted record.
8585
9265
  */
8586
- abstract create<K extends SelectableColumn<Record>>(id: Identifier, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
9266
+ abstract create<K extends SelectableColumn<Record>>(id: Identifier, object: Omit<EditableData<Record>, 'xata_id'>, columns: K[], options?: {
8587
9267
  ifVersion?: number;
8588
9268
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8589
9269
  /**
@@ -8592,7 +9272,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8592
9272
  * @param object Object containing the column names with their values to be stored in the table.
8593
9273
  * @returns The full persisted record.
8594
9274
  */
8595
- abstract create(id: Identifier, object: Omit<EditableData<Record>, 'id'>, options?: {
9275
+ abstract create(id: Identifier, object: Omit<EditableData<Record>, 'xata_id'>, options?: {
8596
9276
  ifVersion?: number;
8597
9277
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8598
9278
  /**
@@ -8601,13 +9281,13 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8601
9281
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8602
9282
  * @returns Array of the persisted records in order.
8603
9283
  */
8604
- abstract create<K extends SelectableColumn<Record>>(objects: Array<Omit<EditableData<Record>, 'id'> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
9284
+ abstract create<K extends SelectableColumn<Record>>(objects: Array<Omit<EditableData<Record>, 'xata_id'> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
8605
9285
  /**
8606
9286
  * Creates multiple records in the table.
8607
9287
  * @param objects Array of objects with the column names and the values to be stored in the table.
8608
9288
  * @returns Array of the persisted records in order.
8609
9289
  */
8610
- abstract create(objects: Array<Omit<EditableData<Record>, 'id'> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
9290
+ abstract create(objects: Array<Omit<EditableData<Record>, 'xata_id'> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
8611
9291
  /**
8612
9292
  * Queries a single record from the table given its unique id.
8613
9293
  * @param id The unique id.
@@ -8831,7 +9511,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8831
9511
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8832
9512
  * @returns The full persisted record.
8833
9513
  */
8834
- abstract createOrUpdate<K extends SelectableColumn<Record>>(object: Omit<EditableData<Record>, 'id'> & Partial<Identifiable>, columns: K[], options?: {
9514
+ abstract createOrUpdate<K extends SelectableColumn<Record>>(object: Omit<EditableData<Record>, 'xata_id'> & Partial<Identifiable>, columns: K[], options?: {
8835
9515
  ifVersion?: number;
8836
9516
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8837
9517
  /**
@@ -8840,7 +9520,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8840
9520
  * @param object Object containing the column names with their values to be persisted in the table.
8841
9521
  * @returns The full persisted record.
8842
9522
  */
8843
- abstract createOrUpdate(object: Omit<EditableData<Record>, 'id'> & Partial<Identifiable>, options?: {
9523
+ abstract createOrUpdate(object: Omit<EditableData<Record>, 'xata_id'> & Partial<Identifiable>, options?: {
8844
9524
  ifVersion?: number;
8845
9525
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8846
9526
  /**
@@ -8851,7 +9531,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8851
9531
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8852
9532
  * @returns The full persisted record.
8853
9533
  */
8854
- abstract createOrUpdate<K extends SelectableColumn<Record>>(id: Identifier | undefined, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
9534
+ abstract createOrUpdate<K extends SelectableColumn<Record>>(id: Identifier | undefined, object: Omit<EditableData<Record>, 'xata_id'>, columns: K[], options?: {
8855
9535
  ifVersion?: number;
8856
9536
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8857
9537
  /**
@@ -8861,7 +9541,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8861
9541
  * @param object The column names and the values to be persisted.
8862
9542
  * @returns The full persisted record.
8863
9543
  */
8864
- abstract createOrUpdate(id: Identifier | undefined, object: Omit<EditableData<Record>, 'id'>, options?: {
9544
+ abstract createOrUpdate(id: Identifier | undefined, object: Omit<EditableData<Record>, 'xata_id'>, options?: {
8865
9545
  ifVersion?: number;
8866
9546
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8867
9547
  /**
@@ -8871,14 +9551,14 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8871
9551
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8872
9552
  * @returns Array of the persisted records.
8873
9553
  */
8874
- abstract createOrUpdate<K extends SelectableColumn<Record>>(objects: Array<Omit<EditableData<Record>, 'id'> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
9554
+ abstract createOrUpdate<K extends SelectableColumn<Record>>(objects: Array<Omit<EditableData<Record>, 'xata_id'> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
8875
9555
  /**
8876
9556
  * Creates or updates a single record. If a record exists with the given id,
8877
9557
  * it will be partially updated, otherwise a new record will be created.
8878
9558
  * @param objects Array of objects with the column names and the values to be stored in the table.
8879
9559
  * @returns Array of the persisted records.
8880
9560
  */
8881
- abstract createOrUpdate(objects: Array<Omit<EditableData<Record>, 'id'> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
9561
+ abstract createOrUpdate(objects: Array<Omit<EditableData<Record>, 'xata_id'> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
8882
9562
  /**
8883
9563
  * Creates or replaces a single record. If a record exists with the given id,
8884
9564
  * it will be replaced, otherwise a new record will be created.
@@ -8886,7 +9566,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8886
9566
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8887
9567
  * @returns The full persisted record.
8888
9568
  */
8889
- abstract createOrReplace<K extends SelectableColumn<Record>>(object: Omit<EditableData<Record>, 'id'> & Partial<Identifiable>, columns: K[], options?: {
9569
+ abstract createOrReplace<K extends SelectableColumn<Record>>(object: Omit<EditableData<Record>, 'xata_id'> & Partial<Identifiable>, columns: K[], options?: {
8890
9570
  ifVersion?: number;
8891
9571
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8892
9572
  /**
@@ -8895,7 +9575,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8895
9575
  * @param object Object containing the column names with their values to be persisted in the table.
8896
9576
  * @returns The full persisted record.
8897
9577
  */
8898
- abstract createOrReplace(object: Omit<EditableData<Record>, 'id'> & Partial<Identifiable>, options?: {
9578
+ abstract createOrReplace(object: Omit<EditableData<Record>, 'xata_id'> & Partial<Identifiable>, options?: {
8899
9579
  ifVersion?: number;
8900
9580
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8901
9581
  /**
@@ -8906,7 +9586,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8906
9586
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8907
9587
  * @returns The full persisted record.
8908
9588
  */
8909
- abstract createOrReplace<K extends SelectableColumn<Record>>(id: Identifier | undefined, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
9589
+ abstract createOrReplace<K extends SelectableColumn<Record>>(id: Identifier | undefined, object: Omit<EditableData<Record>, 'xata_id'>, columns: K[], options?: {
8910
9590
  ifVersion?: number;
8911
9591
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
8912
9592
  /**
@@ -8916,7 +9596,7 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8916
9596
  * @param object The column names and the values to be persisted.
8917
9597
  * @returns The full persisted record.
8918
9598
  */
8919
- abstract createOrReplace(id: Identifier | undefined, object: Omit<EditableData<Record>, 'id'>, options?: {
9599
+ abstract createOrReplace(id: Identifier | undefined, object: Omit<EditableData<Record>, 'xata_id'>, options?: {
8920
9600
  ifVersion?: number;
8921
9601
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
8922
9602
  /**
@@ -8926,14 +9606,14 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
8926
9606
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
8927
9607
  * @returns Array of the persisted records.
8928
9608
  */
8929
- abstract createOrReplace<K extends SelectableColumn<Record>>(objects: Array<Omit<EditableData<Record>, 'id'> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
9609
+ abstract createOrReplace<K extends SelectableColumn<Record>>(objects: Array<Omit<EditableData<Record>, 'xata_id'> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
8930
9610
  /**
8931
9611
  * Creates or replaces a single record. If a record exists with the given id,
8932
9612
  * it will be replaced, otherwise a new record will be created.
8933
9613
  * @param objects Array of objects with the column names and the values to be stored in the table.
8934
9614
  * @returns Array of the persisted records.
8935
9615
  */
8936
- abstract createOrReplace(objects: Array<Omit<EditableData<Record>, 'id'> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
9616
+ abstract createOrReplace(objects: Array<Omit<EditableData<Record>, 'xata_id'> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
8937
9617
  /**
8938
9618
  * Deletes a record given its unique id.
8939
9619
  * @param object An object with a unique id.
@@ -9184,10 +9864,10 @@ declare class RestRepository<Record extends XataRecord> extends Query<Record, Se
9184
9864
  createOrUpdate(object: EditableData<Record> & Partial<Identifiable>, options?: {
9185
9865
  ifVersion?: number;
9186
9866
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
9187
- createOrUpdate<K extends SelectableColumn<Record>>(id: Identifier, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
9867
+ createOrUpdate<K extends SelectableColumn<Record>>(id: Identifier, object: Omit<EditableData<Record>, 'xata_id'>, columns: K[], options?: {
9188
9868
  ifVersion?: number;
9189
9869
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
9190
- createOrUpdate(id: Identifier, object: Omit<EditableData<Record>, 'id'>, options?: {
9870
+ createOrUpdate(id: Identifier, object: Omit<EditableData<Record>, 'xata_id'>, options?: {
9191
9871
  ifVersion?: number;
9192
9872
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
9193
9873
  createOrUpdate<K extends SelectableColumn<Record>>(objects: Array<EditableData<Record> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
@@ -9198,10 +9878,10 @@ declare class RestRepository<Record extends XataRecord> extends Query<Record, Se
9198
9878
  createOrReplace(object: EditableData<Record> & Partial<Identifiable>, options?: {
9199
9879
  ifVersion?: number;
9200
9880
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
9201
- createOrReplace<K extends SelectableColumn<Record>>(id: Identifier | undefined, object: Omit<EditableData<Record>, 'id'>, columns: K[], options?: {
9881
+ createOrReplace<K extends SelectableColumn<Record>>(id: Identifier | undefined, object: Omit<EditableData<Record>, 'xata_id'>, columns: K[], options?: {
9202
9882
  ifVersion?: number;
9203
9883
  }): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
9204
- createOrReplace(id: Identifier | undefined, object: Omit<EditableData<Record>, 'id'>, options?: {
9884
+ createOrReplace(id: Identifier | undefined, object: Omit<EditableData<Record>, 'xata_id'>, options?: {
9205
9885
  ifVersion?: number;
9206
9886
  }): Promise<Readonly<SelectedPick<Record, ['*']>>>;
9207
9887
  createOrReplace<K extends SelectableColumn<Record>>(objects: Array<EditableData<Record> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
@@ -9296,7 +9976,7 @@ type PropertyType<Tables, Properties, PropertyName extends PropertyKey> = Proper
9296
9976
  } : {
9297
9977
  [K in PropertyName]?: InnerType<Type, Tables, LinkedTable> | null;
9298
9978
  } : never : never;
9299
- type InnerType<Type, Tables, LinkedTable> = Type extends 'string' | 'text' | 'email' ? string : Type extends 'int' | 'float' ? number : Type extends 'bool' ? boolean : Type extends 'datetime' ? Date : Type extends 'multiple' ? string[] : Type extends 'vector' ? number[] : Type extends 'file' ? XataFile : Type extends 'file[]' ? XataArrayFile[] : Type extends 'json' ? JSONValue<any> : Type extends 'link' ? TableType<Tables, LinkedTable> & XataRecord : never;
9979
+ type InnerType<Type, Tables, LinkedTable> = Type extends 'string' | 'text' | 'email' | 'character' | 'varchar' | 'character varying' | `varchar(${number})` | `character(${number})` ? string : Type extends 'int' | 'float' | 'bigint' | 'int8' | 'integer' | 'int4' | 'smallint' | 'double precision' | 'float8' | 'real' | 'numeric' ? number : Type extends 'bool' | 'boolean' ? boolean : Type extends 'datetime' | 'timestamptz' ? Date : Type extends 'multiple' | 'text[]' ? string[] : Type extends 'vector' | 'real[]' | 'float[]' | 'double precision[]' | 'float8[]' | 'numeric[]' ? number[] : Type extends 'int[]' | 'bigint[]' | 'int8[]' | 'integer[]' | 'int4[]' | 'smallint[]' ? number[] : Type extends 'bool[]' | 'boolean[]' ? boolean[] : Type extends 'file' | 'xata_file' ? XataFile : Type extends 'file[]' | 'xata_file_array' ? XataArrayFile[] : Type extends 'json' | 'jsonb' ? JSONValue<any> : Type extends 'link' ? TableType<Tables, LinkedTable> & XataRecord : string;
9300
9980
 
9301
9981
  /**
9302
9982
  * Operator to restrict results to only values that are greater than the given value.
@@ -9349,11 +10029,11 @@ declare const le: <T extends ComparableType>(value: T) => ComparableTypeFilter<T
9349
10029
  /**
9350
10030
  * Operator to restrict results to only values that are not null.
9351
10031
  */
9352
- declare const exists: <T>(column?: FilterColumns<T> | undefined) => ExistanceFilter<T>;
10032
+ declare const exists: <T>(column?: FilterColumns<T>) => ExistanceFilter<T>;
9353
10033
  /**
9354
10034
  * Operator to restrict results to only values that are null.
9355
10035
  */
9356
- declare const notExists: <T>(column?: FilterColumns<T> | undefined) => ExistanceFilter<T>;
10036
+ declare const notExists: <T>(column?: FilterColumns<T>) => ExistanceFilter<T>;
9357
10037
  /**
9358
10038
  * Operator to restrict results to only values that start with the given prefix.
9359
10039
  */
@@ -9519,7 +10199,15 @@ type SQLQueryResultArray = {
9519
10199
  warning?: string;
9520
10200
  };
9521
10201
  type SQLQueryResult<T, Mode extends SQLResponseType = 'json'> = Mode extends 'json' ? SQLQueryResultJSON<T> : Mode extends 'array' ? SQLQueryResultArray : never;
9522
- type SQLPluginResult = <T, Query extends SQLQuery = SQLQuery>(query: Query, ...parameters: any[]) => Promise<SQLQueryResult<T, Query extends SQLQueryParams<any> ? Query['responseType'] extends SQLResponseType ? NonNullable<Query['responseType']> : 'json' : 'json'>>;
10202
+ type SQLPluginFunction = <T, Query extends SQLQuery = SQLQuery>(query: Query, ...parameters: any[]) => Promise<SQLQueryResult<T, Query extends SQLQueryParams<any> ? Query['responseType'] extends SQLResponseType ? NonNullable<Query['responseType']> : 'json' : 'json'>>;
10203
+ type SQLPluginResult = SQLPluginFunction & {
10204
+ /**
10205
+ * Connection string to use when connecting to the database.
10206
+ * It includes the workspace, region, database and branch.
10207
+ * Connects with the same credentials as the Xata client.
10208
+ */
10209
+ connectionString: string;
10210
+ };
9523
10211
  declare class SQLPlugin extends XataPlugin {
9524
10212
  build(pluginOptions: XataPluginOptions): SQLPluginResult;
9525
10213
  }
@@ -9634,7 +10322,7 @@ type BaseClientOptions = {
9634
10322
  clientName?: string;
9635
10323
  xataAgentExtra?: Record<string, string>;
9636
10324
  };
9637
- declare const buildClient: <Plugins extends Record<string, XataPlugin> = {}>(plugins?: Plugins | undefined) => ClientConstructor<Plugins>;
10325
+ declare const buildClient: <Plugins extends Record<string, XataPlugin> = {}>(plugins?: Plugins) => ClientConstructor<Plugins>;
9638
10326
  interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
9639
10327
  new <Schemas extends Record<string, XataRecord> = {}>(options?: Partial<BaseClientOptions>, schemaTables?: readonly BaseSchema[]): Omit<{
9640
10328
  db: Awaited<ReturnType<SchemaPlugin<Schemas>['build']>>;
@@ -9685,4 +10373,4 @@ declare class XataError extends Error {
9685
10373
  constructor(message: string, status: number);
9686
10374
  }
9687
10375
 
9688
- export { type AcceptWorkspaceMemberInviteError, type AcceptWorkspaceMemberInvitePathParams, type AcceptWorkspaceMemberInviteVariables, type AdaptTableError, type AdaptTablePathParams, type AdaptTableVariables, type AddGitBranchesEntryError, type AddGitBranchesEntryPathParams, type AddGitBranchesEntryRequestBody, type AddGitBranchesEntryResponse, type AddGitBranchesEntryVariables, type AddTableColumnError, type AddTableColumnPathParams, type AddTableColumnVariables, type AggregateTableError, type AggregateTablePathParams, type AggregateTableRequestBody, type AggregateTableVariables, type ApiExtraProps, type ApplyBranchSchemaEditError, type ApplyBranchSchemaEditPathParams, type ApplyBranchSchemaEditRequestBody, type ApplyBranchSchemaEditVariables, type ApplyMigrationError, type ApplyMigrationPathParams, type ApplyMigrationRequestBody, type ApplyMigrationVariables, type AskOptions, type AskResult, type AskTableError, type AskTablePathParams, type AskTableRequestBody, type AskTableResponse, type AskTableSessionError, type AskTableSessionPathParams, type AskTableSessionRequestBody, type AskTableSessionResponse, type AskTableSessionVariables, type AskTableVariables, BaseClient, type BaseClientOptions, type BaseData, type BaseSchema, type BinaryFile, type BranchTransactionError, type BranchTransactionPathParams, type BranchTransactionRequestBody, type BranchTransactionVariables, type BulkInsertTableRecordsError, type BulkInsertTableRecordsPathParams, type BulkInsertTableRecordsQueryParams, type BulkInsertTableRecordsRequestBody, type BulkInsertTableRecordsVariables, type CancelWorkspaceMemberInviteError, type CancelWorkspaceMemberInvitePathParams, type CancelWorkspaceMemberInviteVariables, type ClientConstructor, type ColumnsByValue, type CompareBranchSchemasError, type CompareBranchSchemasPathParams, type CompareBranchSchemasRequestBody, type CompareBranchSchemasVariables, type CompareBranchWithUserSchemaError, type CompareBranchWithUserSchemaPathParams, type CompareBranchWithUserSchemaRequestBody, type CompareBranchWithUserSchemaVariables, type CompareMigrationRequestError, type CompareMigrationRequestPathParams, type CompareMigrationRequestVariables, type CopyBranchError, type CopyBranchPathParams, type CopyBranchRequestBody, type CopyBranchVariables, type CreateBranchError, type CreateBranchPathParams, type CreateBranchQueryParams, type CreateBranchRequestBody, type CreateBranchResponse, type CreateBranchVariables, type CreateClusterError, type CreateClusterPathParams, type CreateClusterVariables, type CreateDatabaseError, type CreateDatabasePathParams, type CreateDatabaseRequestBody, type CreateDatabaseResponse, type CreateDatabaseVariables, type CreateMigrationRequestError, type CreateMigrationRequestPathParams, type CreateMigrationRequestRequestBody, type CreateMigrationRequestResponse, type CreateMigrationRequestVariables, type CreateTableError, type CreateTablePathParams, type CreateTableResponse, type CreateTableVariables, type CreateUserAPIKeyError, type CreateUserAPIKeyPathParams, type CreateUserAPIKeyResponse, type CreateUserAPIKeyVariables, type CreateWorkspaceError, type CreateWorkspaceVariables, type CursorNavigationOptions, type DeleteBranchError, type DeleteBranchPathParams, type DeleteBranchResponse, type DeleteBranchVariables, type DeleteColumnError, type DeleteColumnPathParams, type DeleteColumnVariables, type DeleteDatabaseError, type DeleteDatabaseGithubSettingsError, type DeleteDatabaseGithubSettingsPathParams, type DeleteDatabaseGithubSettingsVariables, type DeleteDatabasePathParams, type DeleteDatabaseResponse, type DeleteDatabaseVariables, type DeleteFileError, type DeleteFileItemError, type DeleteFileItemPathParams, type DeleteFileItemVariables, type DeleteFilePathParams, type DeleteFileVariables, type DeleteOAuthAccessTokenError, type DeleteOAuthAccessTokenPathParams, type DeleteOAuthAccessTokenVariables, type DeleteRecordError, type DeleteRecordPathParams, type DeleteRecordQueryParams, type DeleteRecordVariables, type DeleteTableError, type DeleteTablePathParams, type DeleteTableResponse, type DeleteTableVariables, type DeleteTransactionOperation, type DeleteUserAPIKeyError, type DeleteUserAPIKeyPathParams, type DeleteUserAPIKeyVariables, type DeleteUserError, type DeleteUserOAuthClientError, type DeleteUserOAuthClientPathParams, type DeleteUserOAuthClientVariables, type DeleteUserVariables, type DeleteWorkspaceError, type DeleteWorkspacePathParams, type DeleteWorkspaceVariables, type DeserializedType, type DownloadDestination, type EditableData, type ExecuteBranchMigrationPlanError, type ExecuteBranchMigrationPlanPathParams, type ExecuteBranchMigrationPlanRequestBody, type ExecuteBranchMigrationPlanVariables, type FetchImpl, FetcherError, type FetcherExtraProps, type FileAccessError, type FileAccessPathParams, type FileAccessQueryParams, type FileAccessVariables, type FileUploadError, type FileUploadPathParams, type FileUploadQueryParams, type FileUploadVariables, FilesPlugin, type FilesPluginResult, type GetAuthorizationCodeError, type GetAuthorizationCodeQueryParams, type GetAuthorizationCodeVariables, type GetBranchDetailsError, type GetBranchDetailsPathParams, type GetBranchDetailsVariables, type GetBranchListError, type GetBranchListPathParams, type GetBranchListVariables, type GetBranchMetadataError, type GetBranchMetadataPathParams, type GetBranchMetadataVariables, type GetBranchMigrationHistoryError, type GetBranchMigrationHistoryPathParams, type GetBranchMigrationHistoryRequestBody, type GetBranchMigrationHistoryResponse, type GetBranchMigrationHistoryVariables, type GetBranchMigrationJobStatusError, type GetBranchMigrationJobStatusPathParams, type GetBranchMigrationJobStatusVariables, type GetBranchMigrationPlanError, type GetBranchMigrationPlanPathParams, type GetBranchMigrationPlanVariables, type GetBranchSchemaHistoryError, type GetBranchSchemaHistoryPathParams, type GetBranchSchemaHistoryRequestBody, type GetBranchSchemaHistoryResponse, type GetBranchSchemaHistoryVariables, type GetBranchStatsError, type GetBranchStatsPathParams, type GetBranchStatsResponse, type GetBranchStatsVariables, type GetClusterError, type GetClusterPathParams, type GetClusterVariables, type GetColumnError, type GetColumnPathParams, type GetColumnVariables, type GetDatabaseGithubSettingsError, type GetDatabaseGithubSettingsPathParams, type GetDatabaseGithubSettingsVariables, type GetDatabaseListError, type GetDatabaseListPathParams, type GetDatabaseListVariables, type GetDatabaseMetadataError, type GetDatabaseMetadataPathParams, type GetDatabaseMetadataVariables, type GetDatabaseSettingsError, type GetDatabaseSettingsPathParams, type GetDatabaseSettingsVariables, type GetFileError, type GetFileItemError, type GetFileItemPathParams, type GetFileItemVariables, type GetFilePathParams, type GetFileVariables, type GetGitBranchesMappingError, type GetGitBranchesMappingPathParams, type GetGitBranchesMappingVariables, type GetMigrationHistoryError, type GetMigrationHistoryPathParams, type GetMigrationHistoryVariables, type GetMigrationJobStatusError, type GetMigrationJobStatusPathParams, type GetMigrationJobStatusVariables, type GetMigrationRequestError, type GetMigrationRequestIsMergedError, type GetMigrationRequestIsMergedPathParams, type GetMigrationRequestIsMergedResponse, type GetMigrationRequestIsMergedVariables, type GetMigrationRequestPathParams, type GetMigrationRequestVariables, type GetRecordError, type GetRecordPathParams, type GetRecordQueryParams, type GetRecordVariables, type GetSchemaError, type GetSchemaPathParams, type GetSchemaResponse, type GetSchemaVariables, type GetTableColumnsError, type GetTableColumnsPathParams, type GetTableColumnsResponse, type GetTableColumnsVariables, type GetTableSchemaError, type GetTableSchemaPathParams, type GetTableSchemaResponse, type GetTableSchemaVariables, type GetTransactionOperation, type GetUserAPIKeysError, type GetUserAPIKeysResponse, type GetUserAPIKeysVariables, type GetUserError, type GetUserOAuthAccessTokensError, type GetUserOAuthAccessTokensResponse, type GetUserOAuthAccessTokensVariables, type GetUserOAuthClientsError, type GetUserOAuthClientsResponse, type GetUserOAuthClientsVariables, type GetUserVariables, type GetWorkspaceError, type GetWorkspaceMembersListError, type GetWorkspaceMembersListPathParams, type GetWorkspaceMembersListVariables, type GetWorkspacePathParams, type GetWorkspaceVariables, type GetWorkspacesListError, type GetWorkspacesListResponse, type GetWorkspacesListVariables, type GrantAuthorizationCodeError, type GrantAuthorizationCodeVariables, type HostProvider, type Identifiable, type ImageTransformations, type InsertRecordError, type InsertRecordPathParams, type InsertRecordQueryParams, type InsertRecordVariables, type InsertRecordWithIDError, type InsertRecordWithIDPathParams, type InsertRecordWithIDQueryParams, type InsertRecordWithIDVariables, type InsertTransactionOperation, type InviteWorkspaceMemberError, type InviteWorkspaceMemberPathParams, type InviteWorkspaceMemberRequestBody, type InviteWorkspaceMemberVariables, type JSONData, type KeywordAskOptions, type Link, type ListClustersError, type ListClustersPathParams, type ListClustersQueryParams, type ListClustersVariables, type ListMigrationRequestsCommitsError, type ListMigrationRequestsCommitsPathParams, type ListMigrationRequestsCommitsRequestBody, type ListMigrationRequestsCommitsResponse, type ListMigrationRequestsCommitsVariables, type ListRegionsError, type ListRegionsPathParams, type ListRegionsVariables, type MergeMigrationRequestError, type MergeMigrationRequestPathParams, type MergeMigrationRequestVariables, type OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, PageRecordArray, type Paginable, type PaginationQueryMeta, type PreviewBranchSchemaEditError, type PreviewBranchSchemaEditPathParams, type PreviewBranchSchemaEditRequestBody, type PreviewBranchSchemaEditResponse, type PreviewBranchSchemaEditVariables, type PushBranchMigrationsError, type PushBranchMigrationsPathParams, type PushBranchMigrationsRequestBody, type PushBranchMigrationsVariables, type PutFileError, type PutFileItemError, type PutFileItemPathParams, type PutFileItemVariables, type PutFilePathParams, type PutFileVariables, Query, type QueryMigrationRequestsError, type QueryMigrationRequestsPathParams, type QueryMigrationRequestsRequestBody, type QueryMigrationRequestsResponse, type QueryMigrationRequestsVariables, type QueryTableError, type QueryTablePathParams, type QueryTableRequestBody, type QueryTableVariables, RecordArray, RecordColumnTypes, type RemoveGitBranchesEntryError, type RemoveGitBranchesEntryPathParams, type RemoveGitBranchesEntryQueryParams, type RemoveGitBranchesEntryVariables, type RemoveWorkspaceMemberError, type RemoveWorkspaceMemberPathParams, type RemoveWorkspaceMemberVariables, type RenameDatabaseError, type RenameDatabasePathParams, type RenameDatabaseRequestBody, type RenameDatabaseVariables, Repository, type ResendWorkspaceMemberInviteError, type ResendWorkspaceMemberInvitePathParams, type ResendWorkspaceMemberInviteVariables, type ResolveBranchError, type ResolveBranchPathParams, type ResolveBranchQueryParams, type ResolveBranchResponse, type ResolveBranchVariables, responses as Responses, RestRepository, SQLPlugin, type SQLPluginResult, type SQLQuery, type SQLQueryParams, type SQLQueryResult, type SchemaDefinition, type SchemaInference, SchemaPlugin, type SchemaPluginResult, schemas as Schemas, type SearchBranchError, type SearchBranchPathParams, type SearchBranchRequestBody, type SearchBranchVariables, type SearchOptions, SearchPlugin, type SearchPluginResult, type SearchTableError, type SearchTablePathParams, type SearchTableRequestBody, type SearchTableVariables, type SearchXataRecord, type SelectableColumn, type SelectableColumnWithObjectNotation, type SelectedPick, type SerializedString, Serializer, type SerializerResult, type SetTableSchemaError, type SetTableSchemaPathParams, type SetTableSchemaRequestBody, type SetTableSchemaVariables, type SqlQueryError, type SqlQueryPathParams, type SqlQueryRequestBody, type SqlQueryVariables, type SummarizeTableError, type SummarizeTablePathParams, type SummarizeTableRequestBody, type SummarizeTableVariables, type TotalCount, type TransactionOperation, TransactionPlugin, type TransactionPluginResult, type TransactionResults, type UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, type UpdateClusterError, type UpdateClusterPathParams, type UpdateClusterVariables, type UpdateColumnError, type UpdateColumnPathParams, type UpdateColumnRequestBody, type UpdateColumnVariables, type UpdateDatabaseGithubSettingsError, type UpdateDatabaseGithubSettingsPathParams, type UpdateDatabaseGithubSettingsVariables, type UpdateDatabaseMetadataError, type UpdateDatabaseMetadataPathParams, type UpdateDatabaseMetadataRequestBody, type UpdateDatabaseMetadataVariables, type UpdateDatabaseSettingsError, type UpdateDatabaseSettingsPathParams, type UpdateDatabaseSettingsVariables, type UpdateMigrationRequestError, type UpdateMigrationRequestPathParams, type UpdateMigrationRequestRequestBody, type UpdateMigrationRequestVariables, type UpdateOAuthAccessTokenError, type UpdateOAuthAccessTokenPathParams, type UpdateOAuthAccessTokenRequestBody, type UpdateOAuthAccessTokenVariables, type UpdateRecordWithIDError, type UpdateRecordWithIDPathParams, type UpdateRecordWithIDQueryParams, type UpdateRecordWithIDVariables, type UpdateTableError, type UpdateTablePathParams, type UpdateTableRequestBody, type UpdateTableVariables, type UpdateTransactionOperation, type UpdateUserError, type UpdateUserVariables, type UpdateWorkspaceError, type UpdateWorkspaceMemberInviteError, type UpdateWorkspaceMemberInvitePathParams, type UpdateWorkspaceMemberInviteRequestBody, type UpdateWorkspaceMemberInviteVariables, type UpdateWorkspaceMemberRoleError, type UpdateWorkspaceMemberRolePathParams, type UpdateWorkspaceMemberRoleRequestBody, type UpdateWorkspaceMemberRoleVariables, type UpdateWorkspacePathParams, type UpdateWorkspaceVariables, type UploadDestination, type UpsertRecordWithIDError, type UpsertRecordWithIDPathParams, type UpsertRecordWithIDQueryParams, type UpsertRecordWithIDVariables, type ValueAtColumn, type VectorAskOptions, type VectorSearchTableError, type VectorSearchTablePathParams, type VectorSearchTableRequestBody, type VectorSearchTableVariables, XataApiClient, type XataApiClientOptions, XataApiPlugin, type XataArrayFile, XataError, XataFile, XataPlugin, type XataPluginOptions, type XataRecord, acceptWorkspaceMemberInvite, adaptTable, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, applyMigration, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createCluster, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, fileUpload, ge, getAPIKey, getAuthorizationCode, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationJobStatus, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getCluster, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseSettings, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationHistory, getMigrationJobStatus, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getSchema, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, getWorkspacesList, grantAuthorizationCode, greaterEquals, greaterThan, greaterThanEquals, gt, gte, iContains, iPattern, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isValidExpandedColumn, isValidSelectableColumns, isXataRecord, le, lessEquals, lessThan, lessThanEquals, listClusters, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, sqlQuery, startsWith, summarizeTable, transformImage, updateBranchMetadata, updateBranchSchema, updateCluster, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateDatabaseSettings, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };
10376
+ export { type AcceptWorkspaceMemberInviteError, type AcceptWorkspaceMemberInvitePathParams, type AcceptWorkspaceMemberInviteVariables, type AdaptAllTablesError, type AdaptAllTablesPathParams, type AdaptAllTablesVariables, type AdaptTableError, type AdaptTablePathParams, type AdaptTableVariables, type AddGitBranchesEntryError, type AddGitBranchesEntryPathParams, type AddGitBranchesEntryRequestBody, type AddGitBranchesEntryResponse, type AddGitBranchesEntryVariables, type AddTableColumnError, type AddTableColumnPathParams, type AddTableColumnVariables, type AggregateTableError, type AggregateTablePathParams, type AggregateTableRequestBody, type AggregateTableVariables, type ApiExtraProps, type ApplyBranchSchemaEditError, type ApplyBranchSchemaEditPathParams, type ApplyBranchSchemaEditRequestBody, type ApplyBranchSchemaEditVariables, type ApplyMigrationError, type ApplyMigrationPathParams, type ApplyMigrationRequestBody, type ApplyMigrationVariables, type AskOptions, type AskResult, type AskTableError, type AskTablePathParams, type AskTableRequestBody, type AskTableResponse, type AskTableSessionError, type AskTableSessionPathParams, type AskTableSessionRequestBody, type AskTableSessionResponse, type AskTableSessionVariables, type AskTableVariables, BaseClient, type BaseClientOptions, type BaseData, type BaseSchema, type BinaryFile, type BranchTransactionError, type BranchTransactionPathParams, type BranchTransactionRequestBody, type BranchTransactionVariables, Buffer, type BulkInsertTableRecordsError, type BulkInsertTableRecordsPathParams, type BulkInsertTableRecordsQueryParams, type BulkInsertTableRecordsRequestBody, type BulkInsertTableRecordsVariables, type 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 DeleteClusterError, type DeleteClusterPathParams, type DeleteClusterVariables, type DeleteColumnError, type DeleteColumnPathParams, type DeleteColumnVariables, type DeleteDatabaseError, type DeleteDatabaseGithubSettingsError, type DeleteDatabaseGithubSettingsPathParams, type DeleteDatabaseGithubSettingsVariables, type DeleteDatabasePathParams, type DeleteDatabaseResponse, type DeleteDatabaseVariables, type DeleteFileError, type DeleteFileItemError, type DeleteFileItemPathParams, type DeleteFileItemVariables, type DeleteFilePathParams, type DeleteFileVariables, type DeleteOAuthAccessTokenError, type DeleteOAuthAccessTokenPathParams, type DeleteOAuthAccessTokenVariables, type DeleteRecordError, type DeleteRecordPathParams, type DeleteRecordQueryParams, type DeleteRecordVariables, type DeleteTableError, type DeleteTablePathParams, type DeleteTableResponse, type DeleteTableVariables, type DeleteTransactionOperation, type DeleteUserAPIKeyError, type DeleteUserAPIKeyPathParams, type DeleteUserAPIKeyVariables, type DeleteUserError, type DeleteUserOAuthClientError, type DeleteUserOAuthClientPathParams, type DeleteUserOAuthClientVariables, type DeleteUserVariables, type DeleteWorkspaceError, type DeleteWorkspacePathParams, type DeleteWorkspaceVariables, type DeserializedType, type DownloadDestination, type EditableData, type ExecuteBranchMigrationPlanError, type ExecuteBranchMigrationPlanPathParams, type ExecuteBranchMigrationPlanRequestBody, type ExecuteBranchMigrationPlanVariables, type FetchImpl, FetcherError, type FetcherExtraProps, type FileAccessError, type FileAccessPathParams, type FileAccessQueryParams, type FileAccessVariables, type FileUploadError, type FileUploadPathParams, type FileUploadQueryParams, type FileUploadVariables, FilesPlugin, type FilesPluginResult, type GetAuthorizationCodeError, type GetAuthorizationCodeQueryParams, type GetAuthorizationCodeVariables, type GetBranchDetailsError, type GetBranchDetailsPathParams, type GetBranchDetailsVariables, type GetBranchListError, type GetBranchListPathParams, type GetBranchListVariables, type GetBranchMetadataError, type GetBranchMetadataPathParams, type GetBranchMetadataVariables, type GetBranchMigrationHistoryError, type GetBranchMigrationHistoryPathParams, type GetBranchMigrationHistoryRequestBody, type GetBranchMigrationHistoryResponse, type GetBranchMigrationHistoryVariables, type GetBranchMigrationJobStatusError, type GetBranchMigrationJobStatusPathParams, type GetBranchMigrationJobStatusVariables, type GetBranchMigrationPlanError, type GetBranchMigrationPlanPathParams, type GetBranchMigrationPlanVariables, type GetBranchSchemaHistoryError, type GetBranchSchemaHistoryPathParams, type GetBranchSchemaHistoryRequestBody, type GetBranchSchemaHistoryResponse, type GetBranchSchemaHistoryVariables, type GetBranchStatsError, type GetBranchStatsPathParams, type GetBranchStatsResponse, type GetBranchStatsVariables, type GetClusterError, type GetClusterPathParams, type GetClusterVariables, type GetColumnError, type GetColumnPathParams, type GetColumnVariables, type GetDatabaseGithubSettingsError, type GetDatabaseGithubSettingsPathParams, type GetDatabaseGithubSettingsVariables, type GetDatabaseListError, type GetDatabaseListPathParams, type GetDatabaseListVariables, type GetDatabaseMetadataError, type GetDatabaseMetadataPathParams, type GetDatabaseMetadataVariables, type GetDatabaseSettingsError, type GetDatabaseSettingsPathParams, type GetDatabaseSettingsVariables, type GetFileError, type GetFileItemError, type GetFileItemPathParams, type GetFileItemVariables, type GetFilePathParams, type GetFileVariables, type GetGitBranchesMappingError, type GetGitBranchesMappingPathParams, type GetGitBranchesMappingVariables, type GetMigrationHistoryError, type GetMigrationHistoryPathParams, type GetMigrationHistoryVariables, type GetMigrationJobStatusError, type GetMigrationJobStatusPathParams, type GetMigrationJobStatusVariables, type GetMigrationRequestError, type GetMigrationRequestIsMergedError, type GetMigrationRequestIsMergedPathParams, type GetMigrationRequestIsMergedResponse, type GetMigrationRequestIsMergedVariables, type GetMigrationRequestPathParams, type GetMigrationRequestVariables, type GetRecordError, type GetRecordPathParams, type GetRecordQueryParams, type GetRecordVariables, type GetSchemaError, type GetSchemaPathParams, type GetSchemaResponse, type GetSchemaVariables, type GetTableColumnsError, type GetTableColumnsPathParams, type GetTableColumnsResponse, type GetTableColumnsVariables, type GetTableSchemaError, type GetTableSchemaPathParams, type GetTableSchemaResponse, type GetTableSchemaVariables, type GetTransactionOperation, type GetUserAPIKeysError, type GetUserAPIKeysResponse, type GetUserAPIKeysVariables, type GetUserError, type GetUserOAuthAccessTokensError, type GetUserOAuthAccessTokensResponse, type GetUserOAuthAccessTokensVariables, type GetUserOAuthClientsError, type GetUserOAuthClientsResponse, type GetUserOAuthClientsVariables, type GetUserVariables, type GetWorkspaceError, type GetWorkspaceMembersListError, type GetWorkspaceMembersListPathParams, type GetWorkspaceMembersListVariables, type GetWorkspacePathParams, type GetWorkspaceSettingsError, type GetWorkspaceSettingsPathParams, type GetWorkspaceSettingsVariables, type GetWorkspaceVariables, type GetWorkspacesListError, type GetWorkspacesListResponse, type GetWorkspacesListVariables, type GrantAuthorizationCodeError, type GrantAuthorizationCodeVariables, type HostProvider, type Identifiable, type ImageTransformations, type InsertRecordError, type InsertRecordPathParams, type InsertRecordQueryParams, type InsertRecordVariables, type InsertRecordWithIDError, type InsertRecordWithIDPathParams, type InsertRecordWithIDQueryParams, type InsertRecordWithIDVariables, type InsertTransactionOperation, type InviteWorkspaceMemberError, type InviteWorkspaceMemberPathParams, type InviteWorkspaceMemberRequestBody, type InviteWorkspaceMemberVariables, type JSONData, type KeywordAskOptions, type Link, type ListClustersError, type ListClustersPathParams, type ListClustersQueryParams, type ListClustersVariables, type ListMigrationRequestsCommitsError, type ListMigrationRequestsCommitsPathParams, type ListMigrationRequestsCommitsRequestBody, type ListMigrationRequestsCommitsResponse, type ListMigrationRequestsCommitsVariables, type ListRegionsError, type ListRegionsPathParams, type ListRegionsVariables, type MergeMigrationRequestError, type MergeMigrationRequestPathParams, type MergeMigrationRequestVariables, type OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, PageRecordArray, type Paginable, type PaginationQueryMeta, type PreviewBranchSchemaEditError, type PreviewBranchSchemaEditPathParams, type PreviewBranchSchemaEditRequestBody, type PreviewBranchSchemaEditResponse, type PreviewBranchSchemaEditVariables, type PushBranchMigrationsError, type PushBranchMigrationsPathParams, type PushBranchMigrationsRequestBody, type PushBranchMigrationsVariables, type PutFileError, type PutFileItemError, type PutFileItemPathParams, type PutFileItemVariables, type PutFilePathParams, type PutFileVariables, Query, type QueryMigrationRequestsError, type QueryMigrationRequestsPathParams, type QueryMigrationRequestsRequestBody, type QueryMigrationRequestsResponse, type QueryMigrationRequestsVariables, type QueryTableError, type QueryTablePathParams, type QueryTableRequestBody, type QueryTableVariables, RecordArray, RecordColumnTypes, type RemoveGitBranchesEntryError, type RemoveGitBranchesEntryPathParams, type RemoveGitBranchesEntryQueryParams, type RemoveGitBranchesEntryVariables, type RemoveWorkspaceMemberError, type RemoveWorkspaceMemberPathParams, type RemoveWorkspaceMemberVariables, type RenameDatabaseError, type RenameDatabasePathParams, type RenameDatabaseRequestBody, type RenameDatabaseVariables, Repository, type ResendWorkspaceMemberInviteError, type ResendWorkspaceMemberInvitePathParams, type ResendWorkspaceMemberInviteVariables, type ResolveBranchError, type ResolveBranchPathParams, type ResolveBranchQueryParams, type ResolveBranchResponse, type ResolveBranchVariables, responses as Responses, RestRepository, SQLPlugin, type SQLPluginResult, type SQLQuery, type SQLQueryParams, type SQLQueryResult, type SchemaDefinition, type SchemaInference, SchemaPlugin, type SchemaPluginResult, schemas as Schemas, type SearchBranchError, type SearchBranchPathParams, type SearchBranchRequestBody, type SearchBranchVariables, type SearchOptions, SearchPlugin, type SearchPluginResult, type SearchTableError, type SearchTablePathParams, type SearchTableRequestBody, type SearchTableVariables, type SearchXataRecord, type SelectableColumn, type SelectableColumnWithObjectNotation, type SelectedPick, type SerializedString, Serializer, type SerializerResult, type SetTableSchemaError, type SetTableSchemaPathParams, type SetTableSchemaRequestBody, type SetTableSchemaVariables, type SqlQueryError, type SqlQueryPathParams, type SqlQueryRequestBody, type SqlQueryVariables, type SummarizeTableError, type SummarizeTablePathParams, type SummarizeTableRequestBody, type SummarizeTableVariables, type TotalCount, type TransactionOperation, TransactionPlugin, type TransactionPluginResult, type TransactionResults, type UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, type UpdateClusterError, type UpdateClusterPathParams, type UpdateClusterVariables, type UpdateColumnError, type UpdateColumnPathParams, type UpdateColumnRequestBody, type UpdateColumnVariables, type UpdateDatabaseGithubSettingsError, type UpdateDatabaseGithubSettingsPathParams, type UpdateDatabaseGithubSettingsVariables, type UpdateDatabaseMetadataError, type UpdateDatabaseMetadataPathParams, type UpdateDatabaseMetadataRequestBody, type UpdateDatabaseMetadataVariables, type UpdateDatabaseSettingsError, type UpdateDatabaseSettingsPathParams, type UpdateDatabaseSettingsRequestBody, type UpdateDatabaseSettingsVariables, type UpdateMigrationRequestError, type UpdateMigrationRequestPathParams, type UpdateMigrationRequestRequestBody, type UpdateMigrationRequestVariables, type UpdateOAuthAccessTokenError, type UpdateOAuthAccessTokenPathParams, type UpdateOAuthAccessTokenRequestBody, type UpdateOAuthAccessTokenVariables, type UpdateRecordWithIDError, type UpdateRecordWithIDPathParams, type UpdateRecordWithIDQueryParams, type UpdateRecordWithIDVariables, type UpdateTableError, type UpdateTablePathParams, type UpdateTableRequestBody, type UpdateTableVariables, type UpdateTransactionOperation, type UpdateUserError, type UpdateUserVariables, type UpdateWorkspaceError, type UpdateWorkspaceMemberInviteError, type UpdateWorkspaceMemberInvitePathParams, type UpdateWorkspaceMemberInviteRequestBody, type UpdateWorkspaceMemberInviteVariables, type UpdateWorkspaceMemberRoleError, type UpdateWorkspaceMemberRolePathParams, type UpdateWorkspaceMemberRoleRequestBody, type UpdateWorkspaceMemberRoleVariables, type UpdateWorkspacePathParams, type UpdateWorkspaceSettingsError, type UpdateWorkspaceSettingsPathParams, type UpdateWorkspaceSettingsRequestBody, type UpdateWorkspaceSettingsVariables, type UpdateWorkspaceVariables, type UploadDestination, type UpsertRecordWithIDError, type UpsertRecordWithIDPathParams, type UpsertRecordWithIDQueryParams, type UpsertRecordWithIDVariables, type ValueAtColumn, type VectorAskOptions, type VectorSearchTableError, type VectorSearchTablePathParams, type VectorSearchTableRequestBody, type VectorSearchTableVariables, XataApiClient, type XataApiClientOptions, XataApiPlugin, type XataArrayFile, XataError, XataFile, XataPlugin, type XataPluginOptions, type XataRecord, acceptWorkspaceMemberInvite, adaptAllTables, adaptTable, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, applyMigration, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createCluster, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteCluster, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, fileUpload, ge, getAPIKey, getAuthorizationCode, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationJobStatus, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getCluster, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseSettings, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationHistory, getMigrationJobStatus, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getSchema, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, getWorkspaceSettings, getWorkspacesList, grantAuthorizationCode, greaterEquals, greaterThan, greaterThanEquals, gt, gte, iContains, iPattern, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isValidExpandedColumn, isValidSelectableColumns, le, lessEquals, lessThan, lessThanEquals, listClusters, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, sqlQuery, startsWith, summarizeTable, transformImage, updateBranchMetadata, updateBranchSchema, updateCluster, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateDatabaseSettings, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, updateWorkspaceSettings, upsertRecordWithID, vectorSearchTable };