@xata.io/client 0.11.0 → 0.13.1

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
@@ -2798,7 +2798,7 @@ declare class DatabaseApi {
2798
2798
  getGitBranchesMapping(workspace: WorkspaceID, dbName: DBName): Promise<ListGitBranchesResponse>;
2799
2799
  addGitBranchesEntry(workspace: WorkspaceID, dbName: DBName, body: AddGitBranchesEntryRequestBody): Promise<AddGitBranchesEntryResponse>;
2800
2800
  removeGitBranchesEntry(workspace: WorkspaceID, dbName: DBName, gitBranch: string): Promise<void>;
2801
- resolveBranch(workspace: WorkspaceID, dbName: DBName, gitBranch: string): Promise<ResolveBranchResponse>;
2801
+ resolveBranch(workspace: WorkspaceID, dbName: DBName, gitBranch?: string, fallbackBranch?: string): Promise<ResolveBranchResponse>;
2802
2802
  }
2803
2803
  declare class BranchApi {
2804
2804
  private extraProps;
@@ -2873,7 +2873,7 @@ declare type ValueAtColumn<O, P extends SelectableColumn<O>> = P extends '*' ? V
2873
2873
  declare type MAX_RECURSION = 5;
2874
2874
  declare type NestedColumns<O, RecursivePath extends any[]> = RecursivePath['length'] extends MAX_RECURSION ? never : If<IsObject<O>, Values<{
2875
2875
  [K in DataProps<O>]: If<IsArray<RemoveNullable<O[K]>>, K, // If the property is an array, we stop recursion. We don't support object arrays yet
2876
- If<IsObject<RemoveNullable<O[K]>>, RemoveNullable<O[K]> extends XataRecord ? SelectableColumn<RemoveNullable<O[K]>, [...RecursivePath, O[K]]> extends string ? K | `${K}.${SelectableColumn<RemoveNullable<O[K]>, [...RecursivePath, O[K]]>}` : never : `${K}.${StringKeys<RemoveNullable<O[K]>> | '*'}`, // This allows usage of objects that are not links
2876
+ If<IsObject<RemoveNullable<O[K]>>, RemoveNullable<O[K]> extends XataRecord ? SelectableColumn<RemoveNullable<O[K]>, [...RecursivePath, O[K]]> extends infer Column ? Column extends string ? K | `${K}.${Column}` : never : never : RemoveNullable<O[K]> extends Date ? K : `${K}.${StringKeys<RemoveNullable<O[K]>> | '*'}`, // This allows usage of objects that are not links
2877
2877
  K>>;
2878
2878
  }>, never>;
2879
2879
  declare type DataProps<O> = Exclude<StringKeys<O>, StringKeys<XataRecord>>;
@@ -2902,16 +2902,11 @@ interface BaseData {
2902
2902
  /**
2903
2903
  * Represents a persisted record from the database.
2904
2904
  */
2905
- interface XataRecord extends Identifiable {
2905
+ interface XataRecord<ExtraMetadata extends Record<string, unknown> = Record<string, unknown>> extends Identifiable {
2906
2906
  /**
2907
- * Metadata of this record.
2907
+ * Get metadata of this record.
2908
2908
  */
2909
- xata: {
2910
- /**
2911
- * Number that is increased every time the record is updated.
2912
- */
2913
- version: number;
2914
- };
2909
+ getMetadata(): XataRecordMetadata & ExtraMetadata;
2915
2910
  /**
2916
2911
  * Retrieves a refreshed copy of the current record from the database.
2917
2912
  */
@@ -2919,7 +2914,7 @@ interface XataRecord extends Identifiable {
2919
2914
  /**
2920
2915
  * Performs a partial update of the current record. On success a new object is
2921
2916
  * returned and the current object is not mutated.
2922
- * @param data The columns and their values that have to be updated.
2917
+ * @param partialUpdate The columns and their values that have to be updated.
2923
2918
  * @returns A new record containing the latest values for all the columns of the current record.
2924
2919
  */
2925
2920
  update(partialUpdate: Partial<EditableData<Omit<this, keyof XataRecord>>>): Promise<Readonly<SelectedPick<this, ['*']>>>;
@@ -2938,19 +2933,26 @@ declare type Link<Record extends XataRecord> = Omit<XataRecord, 'read' | 'update
2938
2933
  /**
2939
2934
  * Performs a partial update of the current record. On success a new object is
2940
2935
  * returned and the current object is not mutated.
2941
- * @param data The columns and their values that have to be updated.
2936
+ * @param partialUpdate The columns and their values that have to be updated.
2942
2937
  * @returns A new record containing the latest values for all the columns of the current record.
2943
2938
  */
2944
2939
  update(partialUpdate: Partial<EditableData<Omit<Record, keyof XataRecord>>>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
2945
2940
  };
2941
+ declare type XataRecordMetadata = {
2942
+ /**
2943
+ * Number that is increased every time the record is updated.
2944
+ */
2945
+ version: number;
2946
+ warnings?: string[];
2947
+ };
2946
2948
  declare function isIdentifiable(x: any): x is Identifiable & Record<string, unknown>;
2947
2949
  declare function isXataRecord(x: any): x is XataRecord & Record<string, unknown>;
2948
2950
  declare type EditableData<O extends BaseData> = {
2949
2951
  [K in keyof O]: O[K] extends XataRecord ? {
2950
2952
  id: string;
2951
- } : NonNullable<O[K]> extends XataRecord ? {
2953
+ } | string : NonNullable<O[K]> extends XataRecord ? {
2952
2954
  id: string;
2953
- } | null | undefined : O[K];
2955
+ } | string | null | undefined : O[K];
2954
2956
  };
2955
2957
 
2956
2958
  /**
@@ -3081,7 +3083,7 @@ declare type QueryOptions<T extends XataRecord> = BaseOptions<T> & (CursorQueryO
3081
3083
  declare class Query<Record extends XataRecord, Result extends XataRecord = Record> implements Paginable<Record, Result> {
3082
3084
  #private;
3083
3085
  readonly meta: PaginationQueryMeta;
3084
- readonly records: Result[];
3086
+ readonly records: RecordArray<Result>;
3085
3087
  constructor(repository: Repository<Record> | null, table: string, data: Partial<QueryOptions<Record>>, rawParent?: Partial<QueryOptions<Record>>);
3086
3088
  getQueryOptions(): QueryOptions<Record>;
3087
3089
  key(): string;
@@ -3114,17 +3116,27 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
3114
3116
  *
3115
3117
  * ```
3116
3118
  * query.filter("columnName", columnValue)
3117
- * query.filter({
3118
- * "columnName": columnValue
3119
- * })
3119
+ * query.filter("columnName", operator(columnValue)) // Use gt, gte, lt, lte, startsWith,...
3120
+ * ```
3121
+ *
3122
+ * @param column The name of the column to filter.
3123
+ * @param value The value to filter.
3124
+ * @returns A new Query object.
3125
+ */
3126
+ filter<F extends SelectableColumn<Record>>(column: F, value: Filter<ValueAtColumn<Record, F>>): Query<Record, Result>;
3127
+ /**
3128
+ * Builds a new query object adding one or more constraints. Examples:
3129
+ *
3130
+ * ```
3131
+ * query.filter({ "columnName": columnValue })
3120
3132
  * query.filter({
3121
3133
  * "columnName": operator(columnValue) // Use gt, gte, lt, lte, startsWith,...
3122
3134
  * })
3123
3135
  * ```
3124
3136
  *
3137
+ * @param filters A filter object
3125
3138
  * @returns A new Query object.
3126
3139
  */
3127
- filter<F extends SelectableColumn<Record>>(column: F, value: Filter<ValueAtColumn<Record, F>>): Query<Record, Result>;
3128
3140
  filter(filters: Filter<Record>): Query<Record, Result>;
3129
3141
  /**
3130
3142
  * Builds a new query with a new sort option.
@@ -3139,45 +3151,114 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
3139
3151
  * @returns A new Query object.
3140
3152
  */
3141
3153
  select<K extends SelectableColumn<Record>>(columns: NonEmptyArray<K>): Query<Record, SelectedPick<Record, NonEmptyArray<K>>>;
3154
+ /**
3155
+ * Get paginated results
3156
+ *
3157
+ * @returns A page of results
3158
+ */
3142
3159
  getPaginated(): Promise<Page<Record, Result>>;
3160
+ /**
3161
+ * Get paginated results
3162
+ *
3163
+ * @param options Pagination options
3164
+ * @returns A page of results
3165
+ */
3143
3166
  getPaginated(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<Page<Record, Result>>;
3167
+ /**
3168
+ * Get paginated results
3169
+ *
3170
+ * @param options Pagination options
3171
+ * @returns A page of results
3172
+ */
3144
3173
  getPaginated<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<Page<Record, SelectedPick<Record, typeof options['columns']>>>;
3174
+ /**
3175
+ * Get results in an iterator
3176
+ *
3177
+ * @async
3178
+ * @returns Async interable of results
3179
+ */
3145
3180
  [Symbol.asyncIterator](): AsyncIterableIterator<Result>;
3181
+ /**
3182
+ * Build an iterator of results
3183
+ *
3184
+ * @returns Async generator of results array
3185
+ */
3146
3186
  getIterator(): AsyncGenerator<Result[]>;
3187
+ /**
3188
+ * Build an iterator of results
3189
+ *
3190
+ * @param options Pagination options with batchSize
3191
+ * @returns Async generator of results array
3192
+ */
3147
3193
  getIterator(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'> & {
3148
3194
  batchSize?: number;
3149
3195
  }): AsyncGenerator<Result[]>;
3196
+ /**
3197
+ * Build an iterator of results
3198
+ *
3199
+ * @param options Pagination options with batchSize
3200
+ * @returns Async generator of results array
3201
+ */
3150
3202
  getIterator<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'> & {
3151
3203
  batchSize?: number;
3152
3204
  }>(options: Options): AsyncGenerator<SelectedPick<Record, typeof options['columns']>[]>;
3205
+ /**
3206
+ * Performs the query in the database and returns a set of results.
3207
+ * @returns An array of records from the database.
3208
+ */
3209
+ getMany(): Promise<RecordArray<Result>>;
3153
3210
  /**
3154
3211
  * Performs the query in the database and returns a set of results.
3155
3212
  * @param options Additional options to be used when performing the query.
3156
3213
  * @returns An array of records from the database.
3157
3214
  */
3158
- getMany(): Promise<Result[]>;
3159
- getMany(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<Result[]>;
3160
- getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']>[]>;
3215
+ getMany(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<RecordArray<Result>>;
3216
+ /**
3217
+ * Performs the query in the database and returns a set of results.
3218
+ * @param options Additional options to be used when performing the query.
3219
+ * @returns An array of records from the database.
3220
+ */
3221
+ getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<RecordArray<SelectedPick<Record, typeof options['columns']>>>;
3161
3222
  /**
3162
3223
  * Performs the query in the database and returns all the results.
3163
3224
  * Warning: If there are a large number of results, this method can have performance implications.
3164
- * @param options Additional options to be used when performing the query.
3165
3225
  * @returns An array of records from the database.
3166
3226
  */
3167
3227
  getAll(): Promise<Result[]>;
3228
+ /**
3229
+ * Performs the query in the database and returns all the results.
3230
+ * Warning: If there are a large number of results, this method can have performance implications.
3231
+ * @param options Additional options to be used when performing the query.
3232
+ * @returns An array of records from the database.
3233
+ */
3168
3234
  getAll(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'> & {
3169
3235
  batchSize?: number;
3170
3236
  }): Promise<Result[]>;
3237
+ /**
3238
+ * Performs the query in the database and returns all the results.
3239
+ * Warning: If there are a large number of results, this method can have performance implications.
3240
+ * @param options Additional options to be used when performing the query.
3241
+ * @returns An array of records from the database.
3242
+ */
3171
3243
  getAll<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'> & {
3172
3244
  batchSize?: number;
3173
3245
  }>(options: Options): Promise<SelectedPick<Record, typeof options['columns']>[]>;
3174
3246
  /**
3175
3247
  * Performs the query in the database and returns the first result.
3176
- * @param options Additional options to be used when performing the query.
3177
3248
  * @returns The first record that matches the query, or null if no record matched the query.
3178
3249
  */
3179
3250
  getFirst(): Promise<Result | null>;
3251
+ /**
3252
+ * Performs the query in the database and returns the first result.
3253
+ * @param options Additional options to be used when performing the query.
3254
+ * @returns The first record that matches the query, or null if no record matched the query.
3255
+ */
3180
3256
  getFirst(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'>): Promise<Result | null>;
3257
+ /**
3258
+ * Performs the query in the database and returns the first result.
3259
+ * @param options Additional options to be used when performing the query.
3260
+ * @returns The first record that matches the query, or null if no record matched the query.
3261
+ */
3181
3262
  getFirst<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']> | null>;
3182
3263
  /**
3183
3264
  * Builds a new query object adding a cache TTL in milliseconds.
@@ -3185,10 +3266,33 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
3185
3266
  * @returns A new Query object.
3186
3267
  */
3187
3268
  cache(ttl: number): Query<Record, Result>;
3269
+ /**
3270
+ * Retrieve next page of records
3271
+ *
3272
+ * @returns A new page object.
3273
+ */
3188
3274
  nextPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
3275
+ /**
3276
+ * Retrieve previous page of records
3277
+ *
3278
+ * @returns A new page object
3279
+ */
3189
3280
  previousPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
3281
+ /**
3282
+ * Retrieve first page of records
3283
+ *
3284
+ * @returns A new page object
3285
+ */
3190
3286
  firstPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
3287
+ /**
3288
+ * Retrieve last page of records
3289
+ *
3290
+ * @returns A new page object
3291
+ */
3191
3292
  lastPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
3293
+ /**
3294
+ * @returns Boolean indicating if there is a next page
3295
+ */
3192
3296
  hasNextPage(): boolean;
3193
3297
  }
3194
3298
 
@@ -3200,7 +3304,7 @@ declare type PaginationQueryMeta = {
3200
3304
  };
3201
3305
  interface Paginable<Record extends XataRecord, Result extends XataRecord = Record> {
3202
3306
  meta: PaginationQueryMeta;
3203
- records: Result[];
3307
+ records: RecordArray<Result>;
3204
3308
  nextPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
3205
3309
  previousPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
3206
3310
  firstPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
@@ -3220,7 +3324,7 @@ declare class Page<Record extends XataRecord, Result extends XataRecord = Record
3220
3324
  /**
3221
3325
  * The set of results for this page.
3222
3326
  */
3223
- readonly records: Result[];
3327
+ readonly records: RecordArray<Result>;
3224
3328
  constructor(query: Query<Record, Result>, meta: PaginationQueryMeta, records?: Result[]);
3225
3329
  /**
3226
3330
  * Retrieves the next page of results.
@@ -3269,10 +3373,42 @@ declare type OffsetNavigationOptions = {
3269
3373
  offset?: number;
3270
3374
  };
3271
3375
  declare const PAGINATION_MAX_SIZE = 200;
3272
- declare const PAGINATION_DEFAULT_SIZE = 200;
3376
+ declare const PAGINATION_DEFAULT_SIZE = 20;
3273
3377
  declare const PAGINATION_MAX_OFFSET = 800;
3274
3378
  declare const PAGINATION_DEFAULT_OFFSET = 0;
3275
3379
  declare function isCursorPaginationOptions(options: Record<string, unknown> | undefined | null): options is CursorNavigationOptions;
3380
+ declare class RecordArray<Result extends XataRecord> extends Array<Result> {
3381
+ #private;
3382
+ constructor(page: Paginable<any, Result>, overrideRecords?: Result[]);
3383
+ /**
3384
+ * Retrieve next page of records
3385
+ *
3386
+ * @returns A new array of objects
3387
+ */
3388
+ nextPage(size?: number, offset?: number): Promise<RecordArray<Result>>;
3389
+ /**
3390
+ * Retrieve previous page of records
3391
+ *
3392
+ * @returns A new array of objects
3393
+ */
3394
+ previousPage(size?: number, offset?: number): Promise<RecordArray<Result>>;
3395
+ /**
3396
+ * Retrieve first page of records
3397
+ *
3398
+ * @returns A new array of objects
3399
+ */
3400
+ firstPage(size?: number, offset?: number): Promise<RecordArray<Result>>;
3401
+ /**
3402
+ * Retrieve last page of records
3403
+ *
3404
+ * @returns A new array of objects
3405
+ */
3406
+ lastPage(size?: number, offset?: number): Promise<RecordArray<Result>>;
3407
+ /**
3408
+ * @returns Boolean indicating if there is a next page
3409
+ */
3410
+ hasNextPage(): boolean;
3411
+ }
3276
3412
 
3277
3413
  /**
3278
3414
  * Common interface for performing operations on a table.
@@ -3304,6 +3440,18 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3304
3440
  * @returns The persisted records for the given ids (if a record could not be found it is not returned).
3305
3441
  */
3306
3442
  abstract read(ids: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
3443
+ /**
3444
+ * Queries a single record from the table by the id in the object.
3445
+ * @param object Object containing the id of the record.
3446
+ * @returns The persisted record for the given id or null if the record could not be found.
3447
+ */
3448
+ abstract read(object: Identifiable): Promise<Readonly<SelectedPick<Record, ['*']> | null>>;
3449
+ /**
3450
+ * Queries multiple records from the table by the ids in the objects.
3451
+ * @param objects Array of objects containing the ids of the records.
3452
+ * @returns The persisted records for the given ids (if a record could not be found it is not returned).
3453
+ */
3454
+ abstract read(objects: Identifiable[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
3307
3455
  /**
3308
3456
  * Partially update a single record.
3309
3457
  * @param object An object with its id and the columns to be updated.
@@ -3395,6 +3543,8 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
3395
3543
  create(objects: EditableData<Data>[]): Promise<SelectedPick<Record, ['*']>[]>;
3396
3544
  read(recordId: string): Promise<SelectedPick<Record, ['*']> | null>;
3397
3545
  read(recordIds: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
3546
+ read(object: Identifiable): Promise<SelectedPick<Record, ['*']> | null>;
3547
+ read(objects: Identifiable[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
3398
3548
  update(object: Partial<EditableData<Data>> & Identifiable): Promise<SelectedPick<Record, ['*']>>;
3399
3549
  update(recordId: string, object: Partial<EditableData<Data>>): Promise<SelectedPick<Record, ['*']>>;
3400
3550
  update(objects: Array<Partial<EditableData<Data>> & Identifiable>): Promise<SelectedPick<Record, ['*']>[]>;
@@ -3525,13 +3675,12 @@ declare class SearchPlugin<Schemas extends Record<string, BaseData>> extends Xat
3525
3675
  constructor(db: SchemaPluginResult<Schemas>);
3526
3676
  build({ getFetchProps }: XataPluginOptions): SearchPluginResult<Schemas>;
3527
3677
  }
3528
- declare type SearchXataRecord = XataRecord & {
3529
- xata: {
3530
- table?: string;
3531
- highlight?: {
3532
- [key: string]: string[] | {
3533
- [key: string]: any;
3534
- };
3678
+ declare type SearchXataRecord = XataRecord<SearchExtraProperties>;
3679
+ declare type SearchExtraProperties = {
3680
+ table: string;
3681
+ highlight?: {
3682
+ [key: string]: string[] | {
3683
+ [key: string]: any;
3535
3684
  };
3536
3685
  };
3537
3686
  };
@@ -3581,4 +3730,4 @@ declare class XataError extends Error {
3581
3730
  constructor(message: string, status: number);
3582
3731
  }
3583
3732
 
3584
- 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, 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 };
3733
+ 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 };