@xata.io/client 0.0.0-alpha.vf73045e → 0.0.0-alpha.vf79e7d8

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
@@ -1,3 +1,9 @@
1
+ declare type AttributeDictionary = Record<string, string | number | boolean | undefined>;
2
+ declare type TraceFunction = <T>(name: string, fn: (options: {
3
+ setAttributes: (attrs: AttributeDictionary) => void;
4
+ onError: (message: string) => void;
5
+ }) => T, options?: AttributeDictionary) => Promise<T>;
6
+
1
7
  declare type FetchImpl = (url: string, init?: {
2
8
  body?: string;
3
9
  headers?: Record<string, string>;
@@ -5,6 +11,7 @@ declare type FetchImpl = (url: string, init?: {
5
11
  }) => Promise<{
6
12
  ok: boolean;
7
13
  status: number;
14
+ url: string;
8
15
  json(): Promise<any>;
9
16
  headers?: {
10
17
  get(name: string): string | null;
@@ -16,6 +23,7 @@ declare type FetcherExtraProps = {
16
23
  workspacesApiUrl: string | WorkspaceApiUrlBuilder;
17
24
  fetchImpl: FetchImpl;
18
25
  apiKey: string;
26
+ trace: TraceFunction;
19
27
  };
20
28
  declare type ErrorWrapper<TError> = TError | {
21
29
  status: 'unknown';
@@ -52,6 +60,7 @@ declare abstract class XataPlugin {
52
60
  declare type XataPluginOptions = {
53
61
  getFetchProps: () => Promise<FetcherExtraProps>;
54
62
  cache: CacheImpl;
63
+ trace?: TraceFunction;
55
64
  };
56
65
 
57
66
  /**
@@ -96,7 +105,7 @@ declare type WorkspaceMeta = {
96
105
  declare type Workspace = WorkspaceMeta & {
97
106
  id: WorkspaceID;
98
107
  memberCount: number;
99
- plan: 'free';
108
+ plan: 'free' | 'pro';
100
109
  };
101
110
  declare type WorkspaceMember = {
102
111
  userId: UserID;
@@ -2895,10 +2904,8 @@ interface XataApiClientOptions {
2895
2904
  fetch?: FetchImpl;
2896
2905
  apiKey?: string;
2897
2906
  host?: HostProvider;
2907
+ trace?: TraceFunction;
2898
2908
  }
2899
- /**
2900
- * @deprecated Use XataApiPlugin instead
2901
- */
2902
2909
  declare class XataApiClient {
2903
2910
  #private;
2904
2911
  constructor(options?: XataApiClientOptions);
@@ -3058,12 +3065,12 @@ interface XataRecord<OriginalRecord extends XataRecord<any> = XataRecord<any>> e
3058
3065
  /**
3059
3066
  * Retrieves a refreshed copy of the current record from the database.
3060
3067
  * @param columns The columns to retrieve. If not specified, all first level properties are retrieved.
3061
- * @returns The persisted record with the selected columns.
3068
+ * @returns The persisted record with the selected columns, null if not found.
3062
3069
  */
3063
3070
  read<K extends SelectableColumn<OriginalRecord>>(columns: K[]): Promise<Readonly<SelectedPick<OriginalRecord, typeof columns>> | null>;
3064
3071
  /**
3065
3072
  * Retrieves a refreshed copy of the current record from the database.
3066
- * @returns The persisted record with all first level properties.
3073
+ * @returns The persisted record with all first level properties, null if not found.
3067
3074
  */
3068
3075
  read(): Promise<Readonly<SelectedPick<OriginalRecord, ['*']>> | null>;
3069
3076
  /**
@@ -3071,22 +3078,28 @@ interface XataRecord<OriginalRecord extends XataRecord<any> = XataRecord<any>> e
3071
3078
  * returned and the current object is not mutated.
3072
3079
  * @param partialUpdate The columns and their values that have to be updated.
3073
3080
  * @param columns The columns to retrieve. If not specified, all first level properties are retrieved.
3074
- * @returns The persisted record with the selected columns.
3081
+ * @returns The persisted record with the selected columns, null if not found.
3075
3082
  */
3076
- update<K extends SelectableColumn<OriginalRecord>>(partialUpdate: Partial<EditableData<Omit<OriginalRecord, keyof XataRecord>>>, columns: K[]): Promise<Readonly<SelectedPick<OriginalRecord, typeof columns>>>;
3083
+ update<K extends SelectableColumn<OriginalRecord>>(partialUpdate: Partial<EditableData<OriginalRecord>>, columns: K[]): Promise<Readonly<SelectedPick<OriginalRecord, typeof columns>> | null>;
3077
3084
  /**
3078
3085
  * Performs a partial update of the current record. On success a new object is
3079
3086
  * returned and the current object is not mutated.
3080
3087
  * @param partialUpdate The columns and their values that have to be updated.
3081
- * @returns The persisted record with all first level properties.
3088
+ * @returns The persisted record with all first level properties, null if not found.
3082
3089
  */
3083
- update(partialUpdate: Partial<EditableData<Omit<OriginalRecord, keyof XataRecord>>>): Promise<Readonly<SelectedPick<OriginalRecord, ['*']>>>;
3090
+ update(partialUpdate: Partial<EditableData<OriginalRecord>>): Promise<Readonly<SelectedPick<OriginalRecord, ['*']>> | null>;
3084
3091
  /**
3085
3092
  * Performs a deletion of the current record in the database.
3086
- *
3087
- * @throws If the record was already deleted or if an error happened while performing the deletion.
3093
+ * @param columns The columns to retrieve. If not specified, all first level properties are retrieved.
3094
+ * @returns The deleted record, null if not found.
3088
3095
  */
3089
- delete(): Promise<void>;
3096
+ delete<K extends SelectableColumn<OriginalRecord>>(columns: K[]): Promise<Readonly<SelectedPick<OriginalRecord, typeof columns>> | null>;
3097
+ /**
3098
+ * Performs a deletion of the current record in the database.
3099
+ * @returns The deleted record, null if not found.
3100
+
3101
+ */
3102
+ delete(): Promise<Readonly<SelectedPick<OriginalRecord, ['*']>> | null>;
3090
3103
  }
3091
3104
  declare type Link<Record extends XataRecord> = Omit<XataRecord, 'read' | 'update'> & {
3092
3105
  /**
@@ -3099,7 +3112,7 @@ declare type Link<Record extends XataRecord> = Omit<XataRecord, 'read' | 'update
3099
3112
  * @param partialUpdate The columns and their values that have to be updated.
3100
3113
  * @returns A new record containing the latest values for all the columns of the current record.
3101
3114
  */
3102
- update<K extends SelectableColumn<Record>>(partialUpdate: Partial<EditableData<Omit<Record, keyof XataRecord>>>, columns?: K[]): Promise<Readonly<SelectedPick<Record, typeof columns extends SelectableColumn<Record>[] ? typeof columns : ['*']>>>;
3115
+ update<K extends SelectableColumn<Record>>(partialUpdate: Partial<EditableData<Record>>, columns?: K[]): Promise<Readonly<SelectedPick<Record, typeof columns extends SelectableColumn<Record>[] ? typeof columns : ['*']>>>;
3103
3116
  /**
3104
3117
  * Performs a deletion of the current record in the database.
3105
3118
  *
@@ -3116,13 +3129,13 @@ declare type XataRecordMetadata = {
3116
3129
  };
3117
3130
  declare function isIdentifiable(x: any): x is Identifiable & Record<string, unknown>;
3118
3131
  declare function isXataRecord(x: any): x is XataRecord & Record<string, unknown>;
3119
- declare type EditableData<O extends BaseData> = {
3132
+ declare type EditableData<O extends XataRecord> = Identifiable & Omit<{
3120
3133
  [K in keyof O]: O[K] extends XataRecord ? {
3121
3134
  id: string;
3122
3135
  } | string : NonNullable<O[K]> extends XataRecord ? {
3123
3136
  id: string;
3124
3137
  } | string | null | undefined : O[K];
3125
- };
3138
+ }, keyof XataRecord>;
3126
3139
 
3127
3140
  /**
3128
3141
  * PropertyMatchFilter
@@ -3216,7 +3229,7 @@ declare type BaseApiFilter<Record> = PropertyAccessFilter<Record> | AggregatorFi
3216
3229
  declare type NestedApiFilter<T> = {
3217
3230
  [key in keyof T]?: T[key] extends Record<string, any> ? SingleOrArray<Filter<T[key]>> : PropertyFilter<T[key]>;
3218
3231
  };
3219
- declare type Filter<T> = T extends Record<string, any> ? BaseApiFilter<T> | NestedApiFilter<T> : PropertyFilter<T>;
3232
+ declare type Filter<T> = T extends Record<string, any> ? T extends Date ? PropertyFilter<T> : BaseApiFilter<T> | NestedApiFilter<T> : PropertyFilter<T>;
3220
3233
 
3221
3234
  declare type DateBooster = {
3222
3235
  origin?: string;
@@ -3273,7 +3286,7 @@ declare type SearchPluginResult<Schemas extends Record<string, BaseData>> = {
3273
3286
  [Model in ExtractTables<Schemas, Tables, GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>>]?: Awaited<SearchXataRecord<SelectedPick<Schemas[Model] & XataRecord, ['*']>>[]>;
3274
3287
  }>;
3275
3288
  };
3276
- declare class SearchPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
3289
+ declare class SearchPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
3277
3290
  #private;
3278
3291
  private db;
3279
3292
  constructor(db: SchemaPluginResult<Schemas>, schemaTables?: Schemas.Table[]);
@@ -3370,7 +3383,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
3370
3383
  * @param value The value to filter.
3371
3384
  * @returns A new Query object.
3372
3385
  */
3373
- filter<F extends SelectableColumn<Record>>(column: F, value: Filter<ValueAtColumn<Record, F>>): Query<Record, Result>;
3386
+ filter<F extends SelectableColumn<Record>>(column: F, value: Filter<NonNullable<ValueAtColumn<Record, F>>>): Query<Record, Result>;
3374
3387
  /**
3375
3388
  * Builds a new query object adding one or more constraints. Examples:
3376
3389
  *
@@ -3384,7 +3397,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
3384
3397
  * @param filters A filter object
3385
3398
  * @returns A new Query object.
3386
3399
  */
3387
- filter(filters: Filter<Record>): Query<Record, Result>;
3400
+ filter(filters?: Filter<Record>): Query<Record, Result>;
3388
3401
  /**
3389
3402
  * Builds a new query with a new sort option.
3390
3403
  * @param column The column name.
@@ -3663,9 +3676,9 @@ declare class RecordArray<Result extends XataRecord> extends Array<Result> {
3663
3676
  /**
3664
3677
  * Common interface for performing operations on a table.
3665
3678
  */
3666
- declare abstract class Repository<Data extends BaseData, Record extends XataRecord = Data & XataRecord> extends Query<Record, Readonly<SelectedPick<Record, ['*']>>> {
3667
- abstract create<K extends SelectableColumn<Record>>(object: Omit<EditableData<Data>, 'id'> & Partial<Identifiable>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3668
- abstract create(object: Omit<EditableData<Data>, 'id'> & Partial<Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3679
+ declare abstract class Repository<Record extends XataRecord> extends Query<Record, Readonly<SelectedPick<Record, ['*']>>> {
3680
+ abstract create<K extends SelectableColumn<Record>>(object: Omit<EditableData<Record>, 'id'> & Partial<Identifiable>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3681
+ abstract create(object: Omit<EditableData<Record>, 'id'> & Partial<Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3669
3682
  /**
3670
3683
  * Creates a single record in the table with a unique id.
3671
3684
  * @param id The unique id.
@@ -3673,27 +3686,27 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3673
3686
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3674
3687
  * @returns The full persisted record.
3675
3688
  */
3676
- abstract create<K extends SelectableColumn<Record>>(id: string, object: Omit<EditableData<Data>, 'id'>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3689
+ abstract create<K extends SelectableColumn<Record>>(id: string, object: Omit<EditableData<Record>, 'id'>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3677
3690
  /**
3678
3691
  * Creates a single record in the table with a unique id.
3679
3692
  * @param id The unique id.
3680
3693
  * @param object Object containing the column names with their values to be stored in the table.
3681
3694
  * @returns The full persisted record.
3682
3695
  */
3683
- abstract create(id: string, object: Omit<EditableData<Data>, 'id'>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3696
+ abstract create(id: string, object: Omit<EditableData<Record>, 'id'>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3684
3697
  /**
3685
3698
  * Creates multiple records in the table.
3686
3699
  * @param objects Array of objects with the column names and the values to be stored in the table.
3687
3700
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3688
3701
  * @returns Array of the persisted records in order.
3689
3702
  */
3690
- abstract create<K extends SelectableColumn<Record>>(objects: Array<Omit<EditableData<Data>, 'id'> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
3703
+ abstract create<K extends SelectableColumn<Record>>(objects: Array<Omit<EditableData<Record>, 'id'> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
3691
3704
  /**
3692
3705
  * Creates multiple records in the table.
3693
3706
  * @param objects Array of objects with the column names and the values to be stored in the table.
3694
3707
  * @returns Array of the persisted records in order.
3695
3708
  */
3696
- abstract create(objects: Array<Omit<EditableData<Data>, 'id'> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3709
+ abstract create(objects: Array<Omit<EditableData<Record>, 'id'> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3697
3710
  /**
3698
3711
  * Queries a single record from the table given its unique id.
3699
3712
  * @param id The unique id.
@@ -3750,43 +3763,43 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3750
3763
  * Partially update a single record.
3751
3764
  * @param object An object with its id and the columns to be updated.
3752
3765
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3753
- * @returns The full persisted record.
3766
+ * @returns The full persisted record, null if the record could not be found.
3754
3767
  */
3755
- abstract update<K extends SelectableColumn<Record>>(object: Partial<EditableData<Data>> & Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3768
+ abstract update<K extends SelectableColumn<Record>>(object: Partial<EditableData<Record>> & Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
3756
3769
  /**
3757
3770
  * Partially update a single record.
3758
3771
  * @param object An object with its id and the columns to be updated.
3759
- * @returns The full persisted record.
3772
+ * @returns The full persisted record, null if the record could not be found.
3760
3773
  */
3761
- abstract update(object: Partial<EditableData<Data>> & Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3774
+ abstract update(object: Partial<EditableData<Record>> & Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3762
3775
  /**
3763
3776
  * Partially update a single record given its unique id.
3764
3777
  * @param id The unique id.
3765
3778
  * @param object The column names and their values that have to be updated.
3766
3779
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3767
- * @returns The full persisted record.
3780
+ * @returns The full persisted record, null if the record could not be found.
3768
3781
  */
3769
- abstract update<K extends SelectableColumn<Record>>(id: string, object: Partial<EditableData<Data>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3782
+ abstract update<K extends SelectableColumn<Record>>(id: string, object: Partial<EditableData<Record>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
3770
3783
  /**
3771
3784
  * Partially update a single record given its unique id.
3772
3785
  * @param id The unique id.
3773
3786
  * @param object The column names and their values that have to be updated.
3774
- * @returns The full persisted record.
3787
+ * @returns The full persisted record, null if the record could not be found.
3775
3788
  */
3776
- abstract update(id: string, object: Partial<EditableData<Data>>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3789
+ abstract update(id: string, object: Partial<EditableData<Record>>): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3777
3790
  /**
3778
3791
  * Partially updates multiple records.
3779
3792
  * @param objects An array of objects with their ids and columns to be updated.
3780
3793
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3781
- * @returns Array of the persisted records in order.
3794
+ * @returns Array of the persisted records in order (if a record could not be found null is returned).
3782
3795
  */
3783
- abstract update<K extends SelectableColumn<Record>>(objects: Array<Partial<EditableData<Data>> & Identifiable>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
3796
+ abstract update<K extends SelectableColumn<Record>>(objects: Array<Partial<EditableData<Record>> & Identifiable>, columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
3784
3797
  /**
3785
3798
  * Partially updates multiple records.
3786
3799
  * @param objects An array of objects with their ids and columns to be updated.
3787
- * @returns Array of the persisted records in order.
3800
+ * @returns Array of the persisted records in order (if a record could not be found null is returned).
3788
3801
  */
3789
- abstract update(objects: Array<Partial<EditableData<Data>> & Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3802
+ abstract update(objects: Array<Partial<EditableData<Record>> & Identifiable>): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
3790
3803
  /**
3791
3804
  * Creates or updates a single record. If a record exists with the given id,
3792
3805
  * it will be update, otherwise a new record will be created.
@@ -3794,14 +3807,14 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3794
3807
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3795
3808
  * @returns The full persisted record.
3796
3809
  */
3797
- abstract createOrUpdate<K extends SelectableColumn<Record>>(object: EditableData<Data> & Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3810
+ abstract createOrUpdate<K extends SelectableColumn<Record>>(object: EditableData<Record> & Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3798
3811
  /**
3799
3812
  * Creates or updates a single record. If a record exists with the given id,
3800
3813
  * it will be update, otherwise a new record will be created.
3801
3814
  * @param object Object containing the column names with their values to be persisted in the table.
3802
3815
  * @returns The full persisted record.
3803
3816
  */
3804
- abstract createOrUpdate(object: EditableData<Data> & Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3817
+ abstract createOrUpdate(object: EditableData<Record> & Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3805
3818
  /**
3806
3819
  * Creates or updates a single record. If a record exists with the given id,
3807
3820
  * it will be update, otherwise a new record will be created.
@@ -3810,7 +3823,7 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3810
3823
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3811
3824
  * @returns The full persisted record.
3812
3825
  */
3813
- abstract createOrUpdate<K extends SelectableColumn<Record>>(id: string, object: Omit<EditableData<Data>, 'id'>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3826
+ abstract createOrUpdate<K extends SelectableColumn<Record>>(id: string, object: Omit<EditableData<Record>, 'id'>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3814
3827
  /**
3815
3828
  * Creates or updates a single record. If a record exists with the given id,
3816
3829
  * it will be update, otherwise a new record will be created.
@@ -3818,7 +3831,7 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3818
3831
  * @param object The column names and the values to be persisted.
3819
3832
  * @returns The full persisted record.
3820
3833
  */
3821
- abstract createOrUpdate(id: string, object: Omit<EditableData<Data>, 'id'>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3834
+ abstract createOrUpdate(id: string, object: Omit<EditableData<Record>, 'id'>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3822
3835
  /**
3823
3836
  * Creates or updates a single record. If a record exists with the given id,
3824
3837
  * it will be update, otherwise a new record will be created.
@@ -3826,38 +3839,66 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3826
3839
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3827
3840
  * @returns Array of the persisted records.
3828
3841
  */
3829
- abstract createOrUpdate<K extends SelectableColumn<Record>>(objects: Array<EditableData<Data> & Identifiable>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
3842
+ abstract createOrUpdate<K extends SelectableColumn<Record>>(objects: Array<EditableData<Record> & Identifiable>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
3830
3843
  /**
3831
3844
  * Creates or updates a single record. If a record exists with the given id,
3832
3845
  * it will be update, otherwise a new record will be created.
3833
3846
  * @param objects Array of objects with the column names and the values to be stored in the table.
3834
3847
  * @returns Array of the persisted records.
3835
3848
  */
3836
- abstract createOrUpdate(objects: Array<EditableData<Data> & Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3849
+ abstract createOrUpdate(objects: Array<EditableData<Record> & Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3837
3850
  /**
3838
3851
  * Deletes a record given its unique id.
3839
- * @param id The unique id.
3840
- * @throws If the record could not be found or there was an error while performing the deletion.
3852
+ * @param object An object with a unique id.
3853
+ * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3854
+ * @returns The deleted record, null if the record could not be found.
3841
3855
  */
3842
- abstract delete(id: string): Promise<void>;
3856
+ abstract delete<K extends SelectableColumn<Record>>(object: Identifiable & Partial<EditableData<Record>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
3843
3857
  /**
3844
3858
  * Deletes a record given its unique id.
3845
- * @param id An object with a unique id.
3846
- * @throws If the record could not be found or there was an error while performing the deletion.
3859
+ * @param object An object with a unique id.
3860
+ * @returns The deleted record, null if the record could not be found.
3861
+ */
3862
+ abstract delete(object: Identifiable & Partial<EditableData<Record>>): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3863
+ /**
3864
+ * Deletes a record given a unique id.
3865
+ * @param id The unique id.
3866
+ * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3867
+ * @returns The deleted record, null if the record could not be found.
3868
+ */
3869
+ abstract delete<K extends SelectableColumn<Record>>(id: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
3870
+ /**
3871
+ * Deletes a record given a unique id.
3872
+ * @param id The unique id.
3873
+ * @returns The deleted record, null if the record could not be found.
3874
+ */
3875
+ abstract delete(id: string): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3876
+ /**
3877
+ * Deletes multiple records given an array of objects with ids.
3878
+ * @param objects An array of objects with unique ids.
3879
+ * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3880
+ * @returns Array of the deleted records in order (if a record could not be found null is returned).
3881
+ */
3882
+ abstract delete<K extends SelectableColumn<Record>>(objects: Array<Partial<EditableData<Record>> & Identifiable>, columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
3883
+ /**
3884
+ * Deletes multiple records given an array of objects with ids.
3885
+ * @param objects An array of objects with unique ids.
3886
+ * @returns Array of the deleted records in order (if a record could not be found null is returned).
3847
3887
  */
3848
- abstract delete(id: Identifiable): Promise<void>;
3888
+ abstract delete(objects: Array<Partial<EditableData<Record>> & Identifiable>): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
3849
3889
  /**
3850
- * Deletes a record given a list of unique ids.
3851
- * @param ids The array of unique ids.
3852
- * @throws If the record could not be found or there was an error while performing the deletion.
3890
+ * Deletes multiple records given an array of unique ids.
3891
+ * @param objects An array of ids.
3892
+ * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3893
+ * @returns Array of the deleted records in order (if a record could not be found null is returned).
3853
3894
  */
3854
- abstract delete(ids: string[]): Promise<void>;
3895
+ abstract delete<K extends SelectableColumn<Record>>(objects: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
3855
3896
  /**
3856
- * Deletes a record given a list of unique ids.
3857
- * @param ids An array of objects with unique ids.
3858
- * @throws If the record could not be found or there was an error while performing the deletion.
3897
+ * Deletes multiple records given an array of unique ids.
3898
+ * @param objects An array of ids.
3899
+ * @returns Array of the deleted records in order (if a record could not be found null is returned).
3859
3900
  */
3860
- abstract delete(ids: Identifiable[]): Promise<void>;
3901
+ abstract delete(objects: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
3861
3902
  /**
3862
3903
  * Search for records in the table.
3863
3904
  * @param query The query to search for.
@@ -3873,7 +3914,7 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3873
3914
  }): Promise<SearchXataRecord<SelectedPick<Record, ['*']>>[]>;
3874
3915
  abstract query<Result extends XataRecord>(query: Query<Record, Result>): Promise<Page<Record, Result>>;
3875
3916
  }
3876
- declare class RestRepository<Data extends BaseData, Record extends XataRecord = Data & XataRecord> extends Query<Record, SelectedPick<Record, ['*']>> implements Repository<Data, Record> {
3917
+ declare class RestRepository<Record extends XataRecord> extends Query<Record, SelectedPick<Record, ['*']>> implements Repository<Record> {
3877
3918
  #private;
3878
3919
  constructor(options: {
3879
3920
  table: string;
@@ -3881,33 +3922,40 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
3881
3922
  pluginOptions: XataPluginOptions;
3882
3923
  schemaTables?: Table[];
3883
3924
  });
3884
- create(object: EditableData<Data>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3885
- create(recordId: string, object: EditableData<Data>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3886
- create(objects: EditableData<Data>[]): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3887
- create<K extends SelectableColumn<Record>>(object: EditableData<Data>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3888
- create<K extends SelectableColumn<Record>>(recordId: string, object: EditableData<Data>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3889
- create<K extends SelectableColumn<Record>>(objects: EditableData<Data>[], columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
3890
- read(recordId: string): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3891
- read(recordIds: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
3892
- read(object: Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3893
- read(objects: Identifiable[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
3894
- read<K extends SelectableColumn<Record>>(recordId: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
3895
- read<K extends SelectableColumn<Record>>(recordIds: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
3896
- read<K extends SelectableColumn<Record>>(object: Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
3897
- read<K extends SelectableColumn<Record>>(objects: Identifiable[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
3898
- update(object: Partial<EditableData<Data>> & Identifiable): Promise<SelectedPick<Record, ['*']>>;
3899
- update(recordId: string, object: Partial<EditableData<Data>>): Promise<SelectedPick<Record, ['*']>>;
3900
- update(objects: Array<Partial<EditableData<Data>> & Identifiable>): Promise<SelectedPick<Record, ['*']>[]>;
3901
- update<K extends SelectableColumn<Record>>(object: Partial<EditableData<Data>> & Identifiable, columns: K[]): Promise<SelectedPick<Record, typeof columns>>;
3902
- update<K extends SelectableColumn<Record>>(recordId: string, object: Partial<EditableData<Data>>, columns: K[]): Promise<SelectedPick<Record, typeof columns>>;
3903
- update<K extends SelectableColumn<Record>>(objects: Array<Partial<EditableData<Data>> & Identifiable>, columns: K[]): Promise<SelectedPick<Record, typeof columns>[]>;
3904
- createOrUpdate(object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3905
- createOrUpdate(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3906
- createOrUpdate(objects: EditableData<Data>[]): Promise<SelectedPick<Record, ['*']>[]>;
3907
- createOrUpdate<K extends SelectableColumn<Record>>(object: EditableData<Data>, columns: K[]): Promise<SelectedPick<Record, typeof columns>>;
3908
- createOrUpdate<K extends SelectableColumn<Record>>(recordId: string, object: EditableData<Data>, columns: K[]): Promise<SelectedPick<Record, typeof columns>>;
3909
- createOrUpdate<K extends SelectableColumn<Record>>(objects: EditableData<Data>[], columns: K[]): Promise<SelectedPick<Record, typeof columns>[]>;
3910
- delete(a: string | Identifiable | Array<string | Identifiable>): Promise<void>;
3925
+ create<K extends SelectableColumn<Record>>(object: EditableData<Record> & Partial<Identifiable>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3926
+ create(object: EditableData<Record> & Partial<Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3927
+ create<K extends SelectableColumn<Record>>(id: string, object: EditableData<Record>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3928
+ create(id: string, object: EditableData<Record>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3929
+ create<K extends SelectableColumn<Record>>(objects: Array<EditableData<Record> & Partial<Identifiable>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
3930
+ create(objects: Array<EditableData<Record> & Partial<Identifiable>>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3931
+ read<K extends SelectableColumn<Record>>(id: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns> | null>>;
3932
+ read(id: string): Promise<Readonly<SelectedPick<Record, ['*']> | null>>;
3933
+ read<K extends SelectableColumn<Record>>(ids: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
3934
+ read(ids: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
3935
+ read<K extends SelectableColumn<Record>>(object: Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns> | null>>;
3936
+ read(object: Identifiable): Promise<Readonly<SelectedPick<Record, ['*']> | null>>;
3937
+ read<K extends SelectableColumn<Record>>(objects: Identifiable[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
3938
+ read(objects: Identifiable[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
3939
+ update<K extends SelectableColumn<Record>>(object: Partial<EditableData<Record>> & Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
3940
+ update(object: Partial<EditableData<Record>> & Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3941
+ update<K extends SelectableColumn<Record>>(id: string, object: Partial<EditableData<Record>>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
3942
+ update(id: string, object: Partial<EditableData<Record>>): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3943
+ update<K extends SelectableColumn<Record>>(objects: Array<Partial<EditableData<Record>> & Identifiable>, columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
3944
+ update(objects: Array<Partial<EditableData<Record>> & Identifiable>): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
3945
+ createOrUpdate<K extends SelectableColumn<Record>>(object: EditableData<Record> & Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3946
+ createOrUpdate(object: EditableData<Record> & Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3947
+ createOrUpdate<K extends SelectableColumn<Record>>(id: string, object: Omit<EditableData<Record>, 'id'>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3948
+ createOrUpdate(id: string, object: Omit<EditableData<Record>, 'id'>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3949
+ createOrUpdate<K extends SelectableColumn<Record>>(objects: Array<EditableData<Record> & Identifiable>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
3950
+ createOrUpdate(objects: Array<EditableData<Record> & Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3951
+ delete<K extends SelectableColumn<Record>>(object: Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
3952
+ delete(object: Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3953
+ delete<K extends SelectableColumn<Record>>(id: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
3954
+ delete(id: string): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3955
+ delete<K extends SelectableColumn<Record>>(objects: Array<Partial<EditableData<Record>> & Identifiable>, columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
3956
+ delete(objects: Array<Partial<EditableData<Record>> & Identifiable>): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
3957
+ delete<K extends SelectableColumn<Record>>(objects: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
3958
+ delete(objects: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
3911
3959
  search(query: string, options?: {
3912
3960
  fuzziness?: FuzzinessExpression;
3913
3961
  prefix?: PrefixExpression;
@@ -3971,6 +4019,10 @@ declare type PropertyType<Tables, Properties, PropertyName> = Properties & {
3971
4019
  [K in ObjectColumns[number]['name']]?: PropertyType<Tables, ObjectColumns[number], K>;
3972
4020
  } : never : never : Type extends 'link' ? TableType<Tables, LinkedTable> & XataRecord : never) | null : never : never;
3973
4021
 
4022
+ /**
4023
+ * Operator to restrict results to only values that are greater than the given value.
4024
+ */
4025
+ declare const greaterThan: <T extends ComparableType>(value: T) => ComparableTypeFilter<T>;
3974
4026
  /**
3975
4027
  * Operator to restrict results to only values that are greater than the given value.
3976
4028
  */
@@ -3978,15 +4030,35 @@ declare const gt: <T extends ComparableType>(value: T) => ComparableTypeFilter<T
3978
4030
  /**
3979
4031
  * Operator to restrict results to only values that are greater than or equal to the given value.
3980
4032
  */
3981
- declare const ge: <T extends ComparableType>(value: T) => ComparableTypeFilter<T>;
4033
+ declare const greaterThanEquals: <T extends ComparableType>(value: T) => ComparableTypeFilter<T>;
4034
+ /**
4035
+ * Operator to restrict results to only values that are greater than or equal to the given value.
4036
+ */
4037
+ declare const greaterEquals: <T extends ComparableType>(value: T) => ComparableTypeFilter<T>;
3982
4038
  /**
3983
4039
  * Operator to restrict results to only values that are greater than or equal to the given value.
3984
4040
  */
3985
4041
  declare const gte: <T extends ComparableType>(value: T) => ComparableTypeFilter<T>;
4042
+ /**
4043
+ * Operator to restrict results to only values that are greater than or equal to the given value.
4044
+ */
4045
+ declare const ge: <T extends ComparableType>(value: T) => ComparableTypeFilter<T>;
4046
+ /**
4047
+ * Operator to restrict results to only values that are lower than the given value.
4048
+ */
4049
+ declare const lessThan: <T extends ComparableType>(value: T) => ComparableTypeFilter<T>;
3986
4050
  /**
3987
4051
  * Operator to restrict results to only values that are lower than the given value.
3988
4052
  */
3989
4053
  declare const lt: <T extends ComparableType>(value: T) => ComparableTypeFilter<T>;
4054
+ /**
4055
+ * Operator to restrict results to only values that are lower than or equal to the given value.
4056
+ */
4057
+ declare const lessThanEquals: <T extends ComparableType>(value: T) => ComparableTypeFilter<T>;
4058
+ /**
4059
+ * Operator to restrict results to only values that are lower than or equal to the given value.
4060
+ */
4061
+ declare const lessEquals: <T extends ComparableType>(value: T) => ComparableTypeFilter<T>;
3990
4062
  /**
3991
4063
  * Operator to restrict results to only values that are lower than or equal to the given value.
3992
4064
  */
@@ -4019,6 +4091,10 @@ declare const pattern: (value: string) => StringTypeFilter;
4019
4091
  * Operator to restrict results to only values that are equal to the given value.
4020
4092
  */
4021
4093
  declare const is: <T>(value: T) => PropertyFilter<T>;
4094
+ /**
4095
+ * Operator to restrict results to only values that are equal to the given value.
4096
+ */
4097
+ declare const equals: <T>(value: T) => PropertyFilter<T>;
4022
4098
  /**
4023
4099
  * Operator to restrict results to only values that are not equal to the given value.
4024
4100
  */
@@ -4047,12 +4123,10 @@ declare const includesAny: <T>(value: T) => ArrayFilter<T>;
4047
4123
  declare type SchemaDefinition = {
4048
4124
  table: string;
4049
4125
  };
4050
- declare type SchemaPluginResult<Schemas extends Record<string, BaseData>> = {
4126
+ declare type SchemaPluginResult<Schemas extends Record<string, XataRecord>> = {
4051
4127
  [Key in keyof Schemas]: Repository<Schemas[Key]>;
4052
- } & {
4053
- [key: string]: Repository<XataRecord$1>;
4054
4128
  };
4055
- declare class SchemaPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
4129
+ declare class SchemaPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
4056
4130
  #private;
4057
4131
  constructor(schemaTables?: Schemas.Table[]);
4058
4132
  build(pluginOptions: XataPluginOptions): SchemaPluginResult<Schemas>;
@@ -4069,12 +4143,13 @@ declare type BaseClientOptions = {
4069
4143
  databaseURL?: string;
4070
4144
  branch?: BranchStrategyOption;
4071
4145
  cache?: CacheImpl;
4146
+ trace?: TraceFunction;
4072
4147
  };
4073
4148
  declare const buildClient: <Plugins extends Record<string, XataPlugin> = {}>(plugins?: Plugins | undefined) => ClientConstructor<Plugins>;
4074
4149
  interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
4075
- new <T extends readonly BaseSchema[]>(options?: Partial<BaseClientOptions>, schemaTables?: T): Omit<{
4076
- db: Awaited<ReturnType<SchemaPlugin<SchemaInference<NonNullable<typeof schemaTables>>>['build']>>;
4077
- search: Awaited<ReturnType<SearchPlugin<SchemaInference<NonNullable<typeof schemaTables>>>['build']>>;
4150
+ new <Schemas extends Record<string, XataRecord> = {}>(options?: Partial<BaseClientOptions>, schemaTables?: readonly BaseSchema[]): Omit<{
4151
+ db: Awaited<ReturnType<SchemaPlugin<Schemas>['build']>>;
4152
+ search: Awaited<ReturnType<SearchPlugin<Schemas>['build']>>;
4078
4153
  }, keyof Plugins> & {
4079
4154
  [Key in StringKeys<NonNullable<Plugins>>]: Awaited<ReturnType<NonNullable<Plugins>[Key]['build']>>;
4080
4155
  } & {
@@ -4085,7 +4160,7 @@ interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
4085
4160
  };
4086
4161
  }
4087
4162
  declare const BaseClient_base: ClientConstructor<{}>;
4088
- declare class BaseClient extends BaseClient_base<[]> {
4163
+ declare class BaseClient extends BaseClient_base<Record<string, any>> {
4089
4164
  }
4090
4165
 
4091
4166
  declare class Serializer {
@@ -4193,4 +4268,4 @@ declare class XataError extends Error {
4193
4268
  constructor(message: string, status: number);
4194
4269
  }
4195
4270
 
4196
- export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BaseSchema, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsQueryParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchResponse, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTableError, CreateTablePathParams, CreateTableResponse, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordQueryParams, 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, GetDatabaseMetadataError, GetDatabaseMetadataPathParams, GetDatabaseMetadataVariables, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetRecordError, GetRecordPathParams, GetRecordQueryParams, 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, InsertRecordQueryParams, 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, SearchXataRecord, SelectableColumn, SelectedPick, Serializer, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberInviteError, UpdateWorkspaceMemberInvitePathParams, UpdateWorkspaceMemberInviteRequestBody, UpdateWorkspaceMemberInviteVariables, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, buildClient, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, contains, createBranch, createDatabase, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, deserialize, endsWith, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchStats, getColumn, getCurrentBranchDetails, getCurrentBranchName, getDatabaseList, getDatabaseMetadata, 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, serialize, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID };
4271
+ export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BaseSchema, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsQueryParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchResponse, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTableError, CreateTablePathParams, CreateTableResponse, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordQueryParams, 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, GetDatabaseMetadataError, GetDatabaseMetadataPathParams, GetDatabaseMetadataVariables, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetRecordError, GetRecordPathParams, GetRecordQueryParams, 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, InsertRecordQueryParams, 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, SearchXataRecord, SelectableColumn, SelectedPick, Serializer, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberInviteError, UpdateWorkspaceMemberInvitePathParams, UpdateWorkspaceMemberInviteRequestBody, UpdateWorkspaceMemberInviteVariables, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, buildClient, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, contains, createBranch, createDatabase, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchStats, getColumn, getCurrentBranchDetails, getCurrentBranchName, getDatabaseList, getDatabaseMetadata, getDatabaseURL, getGitBranchesMapping, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, greaterEquals, greaterThan, greaterThanEquals, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isIdentifiable, isNot, isXataRecord, le, lessEquals, lessThan, lessThanEquals, lt, lte, notExists, operationsByTag, pattern, queryTable, removeGitBranchesEntry, removeWorkspaceMember, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID };