@xata.io/client 0.13.2 → 0.14.0

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
@@ -282,6 +282,10 @@ declare type SortOrder = 'asc' | 'desc';
282
282
  * @minimum 0
283
283
  */
284
284
  declare type FuzzinessExpression = number;
285
+ /**
286
+ * If the prefix type is set to "disabled" (the default), the search only matches full words. If the prefix type is set to "phrase", the search will return results that match prefixes of the search phrase.
287
+ */
288
+ declare type PrefixExpression = 'phrase' | 'disabled';
285
289
  /**
286
290
  * @minProperties 1
287
291
  */
@@ -433,6 +437,7 @@ type schemas_ColumnMigration = ColumnMigration;
433
437
  type schemas_SortExpression = SortExpression;
434
438
  type schemas_SortOrder = SortOrder;
435
439
  type schemas_FuzzinessExpression = FuzzinessExpression;
440
+ type schemas_PrefixExpression = PrefixExpression;
436
441
  type schemas_FilterExpression = FilterExpression;
437
442
  type schemas_HighlightExpression = HighlightExpression;
438
443
  type schemas_FilterList = FilterList;
@@ -488,6 +493,7 @@ declare namespace schemas {
488
493
  schemas_SortExpression as SortExpression,
489
494
  schemas_SortOrder as SortOrder,
490
495
  schemas_FuzzinessExpression as FuzzinessExpression,
496
+ schemas_PrefixExpression as PrefixExpression,
491
497
  schemas_FilterExpression as FilterExpression,
492
498
  schemas_HighlightExpression as HighlightExpression,
493
499
  schemas_FilterList as FilterList,
@@ -879,10 +885,14 @@ declare type InviteWorkspaceMemberError = ErrorWrapper<{
879
885
  } | {
880
886
  status: 404;
881
887
  payload: SimpleError;
888
+ } | {
889
+ status: 409;
890
+ payload: SimpleError;
882
891
  }>;
883
892
  declare type InviteWorkspaceMemberRequestBody = {
884
893
  email: string;
885
894
  role: Role;
895
+ overwrite_old?: boolean;
886
896
  };
887
897
  declare type InviteWorkspaceMemberVariables = {
888
898
  body: InviteWorkspaceMemberRequestBody;
@@ -1845,6 +1855,9 @@ declare type BulkInsertTableRecordsError = ErrorWrapper<{
1845
1855
  } | {
1846
1856
  status: 404;
1847
1857
  payload: SimpleError;
1858
+ } | {
1859
+ status: 422;
1860
+ payload: SimpleError;
1848
1861
  }>;
1849
1862
  declare type BulkInsertTableRecordsResponse = {
1850
1863
  recordIDs: string[];
@@ -2625,6 +2638,7 @@ declare type SearchTableError = ErrorWrapper<{
2625
2638
  declare type SearchTableRequestBody = {
2626
2639
  query: string;
2627
2640
  fuzziness?: FuzzinessExpression;
2641
+ prefix?: PrefixExpression;
2628
2642
  filter?: FilterExpression;
2629
2643
  highlight?: HighlightExpression;
2630
2644
  };
@@ -3214,13 +3228,13 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
3214
3228
  * @param options Additional options to be used when performing the query.
3215
3229
  * @returns An array of records from the database.
3216
3230
  */
3217
- getMany(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<RecordArray<Result>>;
3231
+ getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<RecordArray<SelectedPick<Record, typeof options['columns']>>>;
3218
3232
  /**
3219
3233
  * Performs the query in the database and returns a set of results.
3220
3234
  * @param options Additional options to be used when performing the query.
3221
3235
  * @returns An array of records from the database.
3222
3236
  */
3223
- getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<RecordArray<SelectedPick<Record, typeof options['columns']>>>;
3237
+ getMany(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<RecordArray<Result>>;
3224
3238
  /**
3225
3239
  * Performs the query in the database and returns all the results.
3226
3240
  * Warning: If there are a large number of results, this method can have performance implications.
@@ -3233,18 +3247,18 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
3233
3247
  * @param options Additional options to be used when performing the query.
3234
3248
  * @returns An array of records from the database.
3235
3249
  */
3236
- getAll(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'> & {
3250
+ getAll<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'> & {
3237
3251
  batchSize?: number;
3238
- }): Promise<Result[]>;
3252
+ }>(options: Options): Promise<SelectedPick<Record, typeof options['columns']>[]>;
3239
3253
  /**
3240
3254
  * Performs the query in the database and returns all the results.
3241
3255
  * Warning: If there are a large number of results, this method can have performance implications.
3242
3256
  * @param options Additional options to be used when performing the query.
3243
3257
  * @returns An array of records from the database.
3244
3258
  */
3245
- getAll<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'> & {
3259
+ getAll(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'> & {
3246
3260
  batchSize?: number;
3247
- }>(options: Options): Promise<SelectedPick<Record, typeof options['columns']>[]>;
3261
+ }): Promise<Result[]>;
3248
3262
  /**
3249
3263
  * Performs the query in the database and returns the first result.
3250
3264
  * @returns The first record that matches the query, or null if no record matched the query.
@@ -3255,13 +3269,13 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
3255
3269
  * @param options Additional options to be used when performing the query.
3256
3270
  * @returns The first record that matches the query, or null if no record matched the query.
3257
3271
  */
3258
- getFirst(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'>): Promise<Result | null>;
3272
+ getFirst<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']> | null>;
3259
3273
  /**
3260
3274
  * Performs the query in the database and returns the first result.
3261
3275
  * @param options Additional options to be used when performing the query.
3262
3276
  * @returns The first record that matches the query, or null if no record matched the query.
3263
3277
  */
3264
- getFirst<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']> | null>;
3278
+ getFirst(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'>): Promise<Result | null>;
3265
3279
  /**
3266
3280
  * Builds a new query object adding a cache TTL in milliseconds.
3267
3281
  * @param ttl The cache TTL in milliseconds.
@@ -3382,6 +3396,9 @@ declare function isCursorPaginationOptions(options: Record<string, unknown> | un
3382
3396
  declare class RecordArray<Result extends XataRecord> extends Array<Result> {
3383
3397
  #private;
3384
3398
  constructor(page: Paginable<any, Result>, overrideRecords?: Result[]);
3399
+ static parseConstructorParams(...args: any[]): any[];
3400
+ toArray(): Result[];
3401
+ map<U>(callbackfn: (value: Result, index: number, array: Result[]) => U, thisArg?: any): U[];
3385
3402
  /**
3386
3403
  * Retrieve next page of records
3387
3404
  *
@@ -3416,20 +3433,20 @@ declare class RecordArray<Result extends XataRecord> extends Array<Result> {
3416
3433
  * Common interface for performing operations on a table.
3417
3434
  */
3418
3435
  declare abstract class Repository<Data extends BaseData, Record extends XataRecord = Data & XataRecord> extends Query<Record, Readonly<SelectedPick<Record, ['*']>>> {
3419
- abstract create(object: EditableData<Data> & Partial<Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3436
+ abstract create(object: Omit<EditableData<Data>, 'id'> & Partial<Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3420
3437
  /**
3421
3438
  * Creates a single record in the table with a unique id.
3422
3439
  * @param id The unique id.
3423
3440
  * @param object Object containing the column names with their values to be stored in the table.
3424
3441
  * @returns The full persisted record.
3425
3442
  */
3426
- abstract create(id: string, object: EditableData<Data>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3443
+ abstract create(id: string, object: Omit<EditableData<Data>, 'id'>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3427
3444
  /**
3428
3445
  * Creates multiple records in the table.
3429
3446
  * @param objects Array of objects with the column names and the values to be stored in the table.
3430
3447
  * @returns Array of the persisted records.
3431
3448
  */
3432
- abstract create(objects: Array<EditableData<Data> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3449
+ abstract create(objects: Array<Omit<EditableData<Data>, 'id'> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3433
3450
  /**
3434
3451
  * Queries a single record from the table given its unique id.
3435
3452
  * @param id The unique id.
@@ -3487,7 +3504,7 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3487
3504
  * @param object The column names and the values to be persisted.
3488
3505
  * @returns The full persisted record.
3489
3506
  */
3490
- abstract createOrUpdate(id: string, object: EditableData<Data>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3507
+ abstract createOrUpdate(id: string, object: Omit<EditableData<Data>, 'id'>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3491
3508
  /**
3492
3509
  * Creates or updates a single record. If a record exists with the given id,
3493
3510
  * it will be update, otherwise a new record will be created.
@@ -3539,10 +3556,11 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
3539
3556
  table: string;
3540
3557
  db: SchemaPluginResult<any>;
3541
3558
  pluginOptions: XataPluginOptions;
3559
+ schemaTables?: Table[];
3542
3560
  });
3543
- create(object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3544
- create(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3545
- create(objects: EditableData<Data>[]): Promise<SelectedPick<Record, ['*']>[]>;
3561
+ create(object: EditableData<Data>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3562
+ create(recordId: string, object: EditableData<Data>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3563
+ create(objects: EditableData<Data>[]): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3546
3564
  read(recordId: string): Promise<SelectedPick<Record, ['*']> | null>;
3547
3565
  read(recordIds: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
3548
3566
  read(object: Identifiable): Promise<SelectedPick<Record, ['*']> | null>;
@@ -3562,6 +3580,59 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
3562
3580
  query<Result extends XataRecord>(query: Query<Record, Result>): Promise<Page<Record, Result>>;
3563
3581
  }
3564
3582
 
3583
+ declare type BaseSchema = {
3584
+ name: string;
3585
+ columns: readonly ({
3586
+ name: string;
3587
+ type: Column['type'];
3588
+ } | {
3589
+ name: string;
3590
+ type: 'link';
3591
+ link: {
3592
+ table: string;
3593
+ };
3594
+ } | {
3595
+ name: string;
3596
+ type: 'object';
3597
+ columns: {
3598
+ name: string;
3599
+ type: string;
3600
+ }[];
3601
+ })[];
3602
+ };
3603
+ declare type SchemaInference<T extends readonly BaseSchema[]> = T extends never[] ? Record<string, Record<string, any>> : T extends readonly unknown[] ? T[number] extends {
3604
+ name: string;
3605
+ columns: readonly unknown[];
3606
+ } ? {
3607
+ [K in T[number]['name']]: TableType<T[number], K>;
3608
+ } : never : never;
3609
+ declare type TableType<Tables, TableName> = Tables & {
3610
+ name: TableName;
3611
+ } extends infer Table ? Table extends {
3612
+ name: string;
3613
+ columns: infer Columns;
3614
+ } ? Columns extends readonly unknown[] ? Columns[number] extends {
3615
+ name: string;
3616
+ type: string;
3617
+ } ? Identifiable & {
3618
+ [K in Columns[number]['name']]?: PropertyType<Tables, Columns[number], K>;
3619
+ } : never : never : never : never;
3620
+ declare type PropertyType<Tables, Properties, PropertyName> = Properties & {
3621
+ name: PropertyName;
3622
+ } extends infer Property ? Property extends {
3623
+ name: string;
3624
+ type: infer Type;
3625
+ link?: {
3626
+ table: infer LinkedTable;
3627
+ };
3628
+ columns?: infer ObjectColumns;
3629
+ } ? (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 'object' ? ObjectColumns extends readonly unknown[] ? ObjectColumns[number] extends {
3630
+ name: string;
3631
+ type: string;
3632
+ } ? {
3633
+ [K in ObjectColumns[number]['name']]?: PropertyType<Tables, ObjectColumns[number], K>;
3634
+ } : never : never : Type extends 'link' ? TableType<Tables, LinkedTable> & XataRecord : never) | null : never : never;
3635
+
3565
3636
  /**
3566
3637
  * Operator to restrict results to only values that are greater than the given value.
3567
3638
  */
@@ -3645,8 +3716,7 @@ declare type SchemaPluginResult<Schemas extends Record<string, BaseData>> = {
3645
3716
  };
3646
3717
  declare class SchemaPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
3647
3718
  #private;
3648
- private tableNames?;
3649
- constructor(tableNames?: string[] | undefined);
3719
+ constructor(schemaTables?: Schemas.Table[]);
3650
3720
  build(pluginOptions: XataPluginOptions): SchemaPluginResult<Schemas>;
3651
3721
  }
3652
3722
 
@@ -3674,7 +3744,7 @@ declare type SearchPluginResult<Schemas extends Record<string, BaseData>> = {
3674
3744
  declare class SearchPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
3675
3745
  #private;
3676
3746
  private db;
3677
- constructor(db: SchemaPluginResult<Schemas>);
3747
+ constructor(db: SchemaPluginResult<Schemas>, schemaTables?: Schemas.Table[]);
3678
3748
  build({ getFetchProps }: XataPluginOptions): SearchPluginResult<Schemas>;
3679
3749
  }
3680
3750
  declare type SearchXataRecord = XataRecord<SearchExtraProperties>;
@@ -3705,15 +3775,15 @@ declare type BaseClientOptions = {
3705
3775
  };
3706
3776
  declare const buildClient: <Plugins extends Record<string, XataPlugin> = {}>(plugins?: Plugins | undefined) => ClientConstructor<Plugins>;
3707
3777
  interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
3708
- new <Schemas extends Record<string, BaseData> = {}>(options?: Partial<BaseClientOptions>, tables?: string[]): Omit<{
3709
- db: Awaited<ReturnType<SchemaPlugin<Schemas>['build']>>;
3710
- search: Awaited<ReturnType<SearchPlugin<Schemas>['build']>>;
3778
+ new <T extends readonly BaseSchema[]>(options?: Partial<BaseClientOptions>, schemaTables?: T): Omit<{
3779
+ db: Awaited<ReturnType<SchemaPlugin<SchemaInference<NonNullable<typeof schemaTables>>>['build']>>;
3780
+ search: Awaited<ReturnType<SearchPlugin<SchemaInference<NonNullable<typeof schemaTables>>>['build']>>;
3711
3781
  }, keyof Plugins> & {
3712
3782
  [Key in StringKeys<NonNullable<Plugins>>]: Awaited<ReturnType<NonNullable<Plugins>[Key]['build']>>;
3713
3783
  };
3714
3784
  }
3715
3785
  declare const BaseClient_base: ClientConstructor<{}>;
3716
- declare class BaseClient extends BaseClient_base<Record<string, any>> {
3786
+ declare class BaseClient extends BaseClient_base<[]> {
3717
3787
  }
3718
3788
 
3719
3789
  declare type BranchResolutionOptions = {
@@ -3732,4 +3802,4 @@ declare class XataError extends Error {
3732
3802
  constructor(message: string, status: number);
3733
3803
  }
3734
3804
 
3735
- export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsResponse, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTableError, CreateTablePathParams, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherExtraProps, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetRecordError, GetRecordPathParams, GetRecordRequestBody, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordResponse, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationQueryMeta, Query, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RecordArray, RemoveGitBranchesEntryError, RemoveGitBranchesEntryPathParams, RemoveGitBranchesEntryQueryParams, RemoveGitBranchesEntryVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, ResolveBranchError, ResolveBranchPathParams, ResolveBranchQueryParams, ResolveBranchResponse, ResolveBranchVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SearchTableError, SearchTablePathParams, SearchTableRequestBody, SearchTableVariables, SelectableColumn, SelectedPick, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, buildClient, bulkInsertTableRecords, cancelWorkspaceMemberInvite, contains, createBranch, createDatabase, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, endsWith, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchStats, getColumn, getCurrentBranchDetails, getCurrentBranchName, getDatabaseList, getDatabaseURL, getGitBranchesMapping, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isIdentifiable, isNot, isXataRecord, le, lt, lte, notExists, operationsByTag, pattern, queryTable, removeGitBranchesEntry, removeWorkspaceMember, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberRole, upsertRecordWithID };
3805
+ export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BaseSchema, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsResponse, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTableError, CreateTablePathParams, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherExtraProps, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetRecordError, GetRecordPathParams, GetRecordRequestBody, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordResponse, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, Link, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationQueryMeta, Query, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RecordArray, RemoveGitBranchesEntryError, RemoveGitBranchesEntryPathParams, RemoveGitBranchesEntryQueryParams, RemoveGitBranchesEntryVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, ResolveBranchError, ResolveBranchPathParams, ResolveBranchQueryParams, ResolveBranchResponse, ResolveBranchVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaInference, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SearchTableError, SearchTablePathParams, SearchTableRequestBody, SearchTableVariables, SelectableColumn, SelectedPick, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, buildClient, bulkInsertTableRecords, cancelWorkspaceMemberInvite, contains, createBranch, createDatabase, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, endsWith, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchStats, getColumn, getCurrentBranchDetails, getCurrentBranchName, getDatabaseList, getDatabaseURL, getGitBranchesMapping, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isIdentifiable, isNot, isXataRecord, le, lt, lte, notExists, operationsByTag, pattern, queryTable, removeGitBranchesEntry, removeWorkspaceMember, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberRole, upsertRecordWithID };