@xata.io/client 0.16.0 → 0.17.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
@@ -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
  /**
@@ -122,16 +131,20 @@ declare type WorkspaceMembers = {
122
131
  * @pattern ^ik_[a-zA-Z0-9]+
123
132
  */
124
133
  declare type InviteKey = string;
134
+ /**
135
+ * Metadata of databases
136
+ */
137
+ declare type DatabaseMetadata = {
138
+ name: string;
139
+ displayName: string;
140
+ createdAt: DateTime;
141
+ numberOfBranches: number;
142
+ ui?: {
143
+ color?: string;
144
+ };
145
+ };
125
146
  declare type ListDatabasesResponse = {
126
- databases?: {
127
- name: string;
128
- displayName: string;
129
- createdAt: DateTime;
130
- numberOfBranches: number;
131
- ui?: {
132
- color?: string;
133
- };
134
- }[];
147
+ databases?: DatabaseMetadata[];
135
148
  };
136
149
  declare type ListBranchesResponse = {
137
150
  databaseName: string;
@@ -453,6 +466,7 @@ type schemas_InviteID = InviteID;
453
466
  type schemas_WorkspaceInvite = WorkspaceInvite;
454
467
  type schemas_WorkspaceMembers = WorkspaceMembers;
455
468
  type schemas_InviteKey = InviteKey;
469
+ type schemas_DatabaseMetadata = DatabaseMetadata;
456
470
  type schemas_ListDatabasesResponse = ListDatabasesResponse;
457
471
  type schemas_ListBranchesResponse = ListBranchesResponse;
458
472
  type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
@@ -511,6 +525,7 @@ declare namespace schemas {
511
525
  schemas_WorkspaceInvite as WorkspaceInvite,
512
526
  schemas_WorkspaceMembers as WorkspaceMembers,
513
527
  schemas_InviteKey as InviteKey,
528
+ schemas_DatabaseMetadata as DatabaseMetadata,
514
529
  schemas_ListDatabasesResponse as ListDatabasesResponse,
515
530
  schemas_ListBranchesResponse as ListBranchesResponse,
516
531
  schemas_ListGitBranchesResponse as ListGitBranchesResponse,
@@ -1139,6 +1154,27 @@ declare type DeleteDatabaseVariables = {
1139
1154
  * Delete a database and all of its branches and tables permanently.
1140
1155
  */
1141
1156
  declare const deleteDatabase: (variables: DeleteDatabaseVariables) => Promise<undefined>;
1157
+ declare type GetDatabaseMetadataPathParams = {
1158
+ dbName: DBName;
1159
+ workspace: string;
1160
+ };
1161
+ declare type GetDatabaseMetadataError = ErrorWrapper<{
1162
+ status: 400;
1163
+ payload: BadRequestError;
1164
+ } | {
1165
+ status: 401;
1166
+ payload: AuthError;
1167
+ } | {
1168
+ status: 404;
1169
+ payload: SimpleError;
1170
+ }>;
1171
+ declare type GetDatabaseMetadataVariables = {
1172
+ pathParams: GetDatabaseMetadataPathParams;
1173
+ } & FetcherExtraProps;
1174
+ /**
1175
+ * Retrieve metadata of the given database
1176
+ */
1177
+ declare const getDatabaseMetadata: (variables: GetDatabaseMetadataVariables) => Promise<DatabaseMetadata>;
1142
1178
  declare type GetGitBranchesMappingPathParams = {
1143
1179
  dbName: DBName;
1144
1180
  workspace: string;
@@ -2813,6 +2849,7 @@ declare const operationsByTag: {
2813
2849
  getDatabaseList: (variables: GetDatabaseListVariables) => Promise<ListDatabasesResponse>;
2814
2850
  createDatabase: (variables: CreateDatabaseVariables) => Promise<CreateDatabaseResponse>;
2815
2851
  deleteDatabase: (variables: DeleteDatabaseVariables) => Promise<undefined>;
2852
+ getDatabaseMetadata: (variables: GetDatabaseMetadataVariables) => Promise<DatabaseMetadata>;
2816
2853
  getGitBranchesMapping: (variables: GetGitBranchesMappingVariables) => Promise<ListGitBranchesResponse>;
2817
2854
  addGitBranchesEntry: (variables: AddGitBranchesEntryVariables) => Promise<AddGitBranchesEntryResponse>;
2818
2855
  removeGitBranchesEntry: (variables: RemoveGitBranchesEntryVariables) => Promise<undefined>;
@@ -2867,10 +2904,8 @@ interface XataApiClientOptions {
2867
2904
  fetch?: FetchImpl;
2868
2905
  apiKey?: string;
2869
2906
  host?: HostProvider;
2907
+ trace?: TraceFunction;
2870
2908
  }
2871
- /**
2872
- * @deprecated Use XataApiPlugin instead
2873
- */
2874
2909
  declare class XataApiClient {
2875
2910
  #private;
2876
2911
  constructor(options?: XataApiClientOptions);
@@ -2914,6 +2949,7 @@ declare class DatabaseApi {
2914
2949
  getDatabaseList(workspace: WorkspaceID): Promise<ListDatabasesResponse>;
2915
2950
  createDatabase(workspace: WorkspaceID, dbName: DBName, options?: CreateDatabaseRequestBody): Promise<CreateDatabaseResponse>;
2916
2951
  deleteDatabase(workspace: WorkspaceID, dbName: DBName): Promise<void>;
2952
+ getDatabaseMetadata(workspace: WorkspaceID, dbName: DBName): Promise<DatabaseMetadata>;
2917
2953
  getGitBranchesMapping(workspace: WorkspaceID, dbName: DBName): Promise<ListGitBranchesResponse>;
2918
2954
  addGitBranchesEntry(workspace: WorkspaceID, dbName: DBName, body: AddGitBranchesEntryRequestBody): Promise<AddGitBranchesEntryResponse>;
2919
2955
  removeGitBranchesEntry(workspace: WorkspaceID, dbName: DBName, gitBranch: string): Promise<void>;
@@ -3029,12 +3065,12 @@ interface XataRecord<OriginalRecord extends XataRecord<any> = XataRecord<any>> e
3029
3065
  /**
3030
3066
  * Retrieves a refreshed copy of the current record from the database.
3031
3067
  * @param columns The columns to retrieve. If not specified, all first level properties are retrieved.
3032
- * @returns The persisted record with the selected columns.
3068
+ * @returns The persisted record with the selected columns, null if not found.
3033
3069
  */
3034
3070
  read<K extends SelectableColumn<OriginalRecord>>(columns: K[]): Promise<Readonly<SelectedPick<OriginalRecord, typeof columns>> | null>;
3035
3071
  /**
3036
3072
  * Retrieves a refreshed copy of the current record from the database.
3037
- * @returns The persisted record with all first level properties.
3073
+ * @returns The persisted record with all first level properties, null if not found.
3038
3074
  */
3039
3075
  read(): Promise<Readonly<SelectedPick<OriginalRecord, ['*']>> | null>;
3040
3076
  /**
@@ -3042,22 +3078,28 @@ interface XataRecord<OriginalRecord extends XataRecord<any> = XataRecord<any>> e
3042
3078
  * returned and the current object is not mutated.
3043
3079
  * @param partialUpdate The columns and their values that have to be updated.
3044
3080
  * @param columns The columns to retrieve. If not specified, all first level properties are retrieved.
3045
- * @returns The persisted record with the selected columns.
3081
+ * @returns The persisted record with the selected columns, null if not found.
3046
3082
  */
3047
- 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>;
3048
3084
  /**
3049
3085
  * Performs a partial update of the current record. On success a new object is
3050
3086
  * returned and the current object is not mutated.
3051
3087
  * @param partialUpdate The columns and their values that have to be updated.
3052
- * @returns The persisted record with all first level properties.
3088
+ * @returns The persisted record with all first level properties, null if not found.
3053
3089
  */
3054
- update(partialUpdate: Partial<EditableData<Omit<OriginalRecord, keyof XataRecord>>>): Promise<Readonly<SelectedPick<OriginalRecord, ['*']>>>;
3090
+ update(partialUpdate: Partial<EditableData<OriginalRecord>>): Promise<Readonly<SelectedPick<OriginalRecord, ['*']>> | null>;
3055
3091
  /**
3056
3092
  * Performs a deletion of the current record in the database.
3057
- *
3058
- * @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.
3059
3095
  */
3060
- 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>;
3061
3103
  }
3062
3104
  declare type Link<Record extends XataRecord> = Omit<XataRecord, 'read' | 'update'> & {
3063
3105
  /**
@@ -3070,7 +3112,7 @@ declare type Link<Record extends XataRecord> = Omit<XataRecord, 'read' | 'update
3070
3112
  * @param partialUpdate The columns and their values that have to be updated.
3071
3113
  * @returns A new record containing the latest values for all the columns of the current record.
3072
3114
  */
3073
- 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 : ['*']>>>;
3074
3116
  /**
3075
3117
  * Performs a deletion of the current record in the database.
3076
3118
  *
@@ -3087,13 +3129,13 @@ declare type XataRecordMetadata = {
3087
3129
  };
3088
3130
  declare function isIdentifiable(x: any): x is Identifiable & Record<string, unknown>;
3089
3131
  declare function isXataRecord(x: any): x is XataRecord & Record<string, unknown>;
3090
- declare type EditableData<O extends BaseData> = {
3132
+ declare type EditableData<O extends XataRecord> = Identifiable & Omit<{
3091
3133
  [K in keyof O]: O[K] extends XataRecord ? {
3092
3134
  id: string;
3093
3135
  } | string : NonNullable<O[K]> extends XataRecord ? {
3094
3136
  id: string;
3095
3137
  } | string | null | undefined : O[K];
3096
- };
3138
+ }, keyof XataRecord>;
3097
3139
 
3098
3140
  /**
3099
3141
  * PropertyMatchFilter
@@ -3187,7 +3229,7 @@ declare type BaseApiFilter<Record> = PropertyAccessFilter<Record> | AggregatorFi
3187
3229
  declare type NestedApiFilter<T> = {
3188
3230
  [key in keyof T]?: T[key] extends Record<string, any> ? SingleOrArray<Filter<T[key]>> : PropertyFilter<T[key]>;
3189
3231
  };
3190
- 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>;
3191
3233
 
3192
3234
  declare type DateBooster = {
3193
3235
  origin?: string;
@@ -3244,7 +3286,7 @@ declare type SearchPluginResult<Schemas extends Record<string, BaseData>> = {
3244
3286
  [Model in ExtractTables<Schemas, Tables, GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>>]?: Awaited<SearchXataRecord<SelectedPick<Schemas[Model] & XataRecord, ['*']>>[]>;
3245
3287
  }>;
3246
3288
  };
3247
- declare class SearchPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
3289
+ declare class SearchPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
3248
3290
  #private;
3249
3291
  private db;
3250
3292
  constructor(db: SchemaPluginResult<Schemas>, schemaTables?: Schemas.Table[]);
@@ -3341,7 +3383,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
3341
3383
  * @param value The value to filter.
3342
3384
  * @returns A new Query object.
3343
3385
  */
3344
- 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>;
3345
3387
  /**
3346
3388
  * Builds a new query object adding one or more constraints. Examples:
3347
3389
  *
@@ -3362,7 +3404,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
3362
3404
  * @param direction The direction. Either ascending or descending.
3363
3405
  * @returns A new Query object.
3364
3406
  */
3365
- sort<F extends SelectableColumn<Record>>(column: F, direction: SortDirection): Query<Record, Result>;
3407
+ sort<F extends SelectableColumn<Record>>(column: F, direction?: SortDirection): Query<Record, Result>;
3366
3408
  /**
3367
3409
  * Builds a new query specifying the set of columns to be returned in the query response.
3368
3410
  * @param columns Array of column names to be returned by the query.
@@ -3634,9 +3676,9 @@ declare class RecordArray<Result extends XataRecord> extends Array<Result> {
3634
3676
  /**
3635
3677
  * Common interface for performing operations on a table.
3636
3678
  */
3637
- declare abstract class Repository<Data extends BaseData, Record extends XataRecord = Data & XataRecord> extends Query<Record, Readonly<SelectedPick<Record, ['*']>>> {
3638
- abstract create<K extends SelectableColumn<Record>>(object: Omit<EditableData<Data>, 'id'> & Partial<Identifiable>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3639
- 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, ['*']>>>;
3640
3682
  /**
3641
3683
  * Creates a single record in the table with a unique id.
3642
3684
  * @param id The unique id.
@@ -3644,27 +3686,27 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3644
3686
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3645
3687
  * @returns The full persisted record.
3646
3688
  */
3647
- 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>>>;
3648
3690
  /**
3649
3691
  * Creates a single record in the table with a unique id.
3650
3692
  * @param id The unique id.
3651
3693
  * @param object Object containing the column names with their values to be stored in the table.
3652
3694
  * @returns The full persisted record.
3653
3695
  */
3654
- 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, ['*']>>>;
3655
3697
  /**
3656
3698
  * Creates multiple records in the table.
3657
3699
  * @param objects Array of objects with the column names and the values to be stored in the table.
3658
3700
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3659
3701
  * @returns Array of the persisted records in order.
3660
3702
  */
3661
- 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>>[]>;
3662
3704
  /**
3663
3705
  * Creates multiple records in the table.
3664
3706
  * @param objects Array of objects with the column names and the values to be stored in the table.
3665
3707
  * @returns Array of the persisted records in order.
3666
3708
  */
3667
- 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, ['*']>>[]>;
3668
3710
  /**
3669
3711
  * Queries a single record from the table given its unique id.
3670
3712
  * @param id The unique id.
@@ -3721,43 +3763,43 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3721
3763
  * Partially update a single record.
3722
3764
  * @param object An object with its id and the columns to be updated.
3723
3765
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3724
- * @returns The full persisted record.
3766
+ * @returns The full persisted record, null if the record could not be found.
3725
3767
  */
3726
- 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>;
3727
3769
  /**
3728
3770
  * Partially update a single record.
3729
3771
  * @param object An object with its id and the columns to be updated.
3730
- * @returns The full persisted record.
3772
+ * @returns The full persisted record, null if the record could not be found.
3731
3773
  */
3732
- abstract update(object: Partial<EditableData<Data>> & Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3774
+ abstract update(object: Partial<EditableData<Record>> & Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3733
3775
  /**
3734
3776
  * Partially update a single record given its unique id.
3735
3777
  * @param id The unique id.
3736
3778
  * @param object The column names and their values that have to be updated.
3737
3779
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3738
- * @returns The full persisted record.
3780
+ * @returns The full persisted record, null if the record could not be found.
3739
3781
  */
3740
- 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>;
3741
3783
  /**
3742
3784
  * Partially update a single record given its unique id.
3743
3785
  * @param id The unique id.
3744
3786
  * @param object The column names and their values that have to be updated.
3745
- * @returns The full persisted record.
3787
+ * @returns The full persisted record, null if the record could not be found.
3746
3788
  */
3747
- 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>;
3748
3790
  /**
3749
3791
  * Partially updates multiple records.
3750
3792
  * @param objects An array of objects with their ids and columns to be updated.
3751
3793
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3752
- * @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).
3753
3795
  */
3754
- 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>>;
3755
3797
  /**
3756
3798
  * Partially updates multiple records.
3757
3799
  * @param objects An array of objects with their ids and columns to be updated.
3758
- * @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).
3759
3801
  */
3760
- 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>>;
3761
3803
  /**
3762
3804
  * Creates or updates a single record. If a record exists with the given id,
3763
3805
  * it will be update, otherwise a new record will be created.
@@ -3765,14 +3807,14 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3765
3807
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3766
3808
  * @returns The full persisted record.
3767
3809
  */
3768
- 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>>>;
3769
3811
  /**
3770
3812
  * Creates or updates a single record. If a record exists with the given id,
3771
3813
  * it will be update, otherwise a new record will be created.
3772
3814
  * @param object Object containing the column names with their values to be persisted in the table.
3773
3815
  * @returns The full persisted record.
3774
3816
  */
3775
- abstract createOrUpdate(object: EditableData<Data> & Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3817
+ abstract createOrUpdate(object: EditableData<Record> & Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3776
3818
  /**
3777
3819
  * Creates or updates a single record. If a record exists with the given id,
3778
3820
  * it will be update, otherwise a new record will be created.
@@ -3781,7 +3823,7 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3781
3823
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3782
3824
  * @returns The full persisted record.
3783
3825
  */
3784
- 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>>>;
3785
3827
  /**
3786
3828
  * Creates or updates a single record. If a record exists with the given id,
3787
3829
  * it will be update, otherwise a new record will be created.
@@ -3789,7 +3831,7 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3789
3831
  * @param object The column names and the values to be persisted.
3790
3832
  * @returns The full persisted record.
3791
3833
  */
3792
- 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, ['*']>>>;
3793
3835
  /**
3794
3836
  * Creates or updates a single record. If a record exists with the given id,
3795
3837
  * it will be update, otherwise a new record will be created.
@@ -3797,38 +3839,66 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3797
3839
  * @param columns Array of columns to be returned. If not specified, first level columns will be returned.
3798
3840
  * @returns Array of the persisted records.
3799
3841
  */
3800
- 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>>[]>;
3801
3843
  /**
3802
3844
  * Creates or updates a single record. If a record exists with the given id,
3803
3845
  * it will be update, otherwise a new record will be created.
3804
3846
  * @param objects Array of objects with the column names and the values to be stored in the table.
3805
3847
  * @returns Array of the persisted records.
3806
3848
  */
3807
- abstract createOrUpdate(objects: Array<EditableData<Data> & Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3849
+ abstract createOrUpdate(objects: Array<EditableData<Record> & Identifiable>): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3808
3850
  /**
3809
3851
  * Deletes a record given its unique id.
3810
- * @param id The unique id.
3811
- * @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.
3812
3855
  */
3813
- 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>;
3814
3857
  /**
3815
3858
  * Deletes a record given its unique id.
3816
- * @param id An object with a unique id.
3817
- * @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.
3818
3861
  */
3819
- abstract delete(id: Identifiable): Promise<void>;
3862
+ abstract delete(object: Identifiable & Partial<EditableData<Record>>): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3820
3863
  /**
3821
- * Deletes a record given a list of unique ids.
3822
- * @param ids The array of unique ids.
3823
- * @throws If the record could not be found or there was an error while performing the deletion.
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.
3824
3868
  */
3825
- abstract delete(ids: string[]): Promise<void>;
3869
+ abstract delete<K extends SelectableColumn<Record>>(id: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
3826
3870
  /**
3827
- * Deletes a record given a list of unique ids.
3828
- * @param ids An array of objects with unique ids.
3829
- * @throws If the record could not be found or there was an error while performing the deletion.
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).
3830
3887
  */
3831
- abstract delete(ids: Identifiable[]): Promise<void>;
3888
+ abstract delete(objects: Array<Partial<EditableData<Record>> & Identifiable>): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
3889
+ /**
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).
3894
+ */
3895
+ abstract delete<K extends SelectableColumn<Record>>(objects: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>> | null>>;
3896
+ /**
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).
3900
+ */
3901
+ abstract delete(objects: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>> | null>>;
3832
3902
  /**
3833
3903
  * Search for records in the table.
3834
3904
  * @param query The query to search for.
@@ -3844,42 +3914,48 @@ declare abstract class Repository<Data extends BaseData, Record extends XataReco
3844
3914
  }): Promise<SearchXataRecord<SelectedPick<Record, ['*']>>[]>;
3845
3915
  abstract query<Result extends XataRecord>(query: Query<Record, Result>): Promise<Page<Record, Result>>;
3846
3916
  }
3847
- 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> {
3848
3918
  #private;
3849
- db: SchemaPluginResult<any>;
3850
3919
  constructor(options: {
3851
3920
  table: string;
3852
3921
  db: SchemaPluginResult<any>;
3853
3922
  pluginOptions: XataPluginOptions;
3854
3923
  schemaTables?: Table[];
3855
3924
  });
3856
- create(object: EditableData<Data>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3857
- create(recordId: string, object: EditableData<Data>): Promise<Readonly<SelectedPick<Record, ['*']>>>;
3858
- create(objects: EditableData<Data>[]): Promise<Readonly<SelectedPick<Record, ['*']>>[]>;
3859
- create<K extends SelectableColumn<Record>>(object: EditableData<Data>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3860
- create<K extends SelectableColumn<Record>>(recordId: string, object: EditableData<Data>, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>>;
3861
- create<K extends SelectableColumn<Record>>(objects: EditableData<Data>[], columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>>[]>;
3862
- read(recordId: string): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3863
- read(recordIds: string[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
3864
- read(object: Identifiable): Promise<Readonly<SelectedPick<Record, ['*']>> | null>;
3865
- read(objects: Identifiable[]): Promise<Array<Readonly<SelectedPick<Record, ['*']>>>>;
3866
- read<K extends SelectableColumn<Record>>(recordId: string, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
3867
- read<K extends SelectableColumn<Record>>(recordIds: string[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
3868
- read<K extends SelectableColumn<Record>>(object: Identifiable, columns: K[]): Promise<Readonly<SelectedPick<Record, typeof columns>> | null>;
3869
- read<K extends SelectableColumn<Record>>(objects: Identifiable[], columns: K[]): Promise<Array<Readonly<SelectedPick<Record, typeof columns>>>>;
3870
- update(object: Partial<EditableData<Data>> & Identifiable): Promise<SelectedPick<Record, ['*']>>;
3871
- update(recordId: string, object: Partial<EditableData<Data>>): Promise<SelectedPick<Record, ['*']>>;
3872
- update(objects: Array<Partial<EditableData<Data>> & Identifiable>): Promise<SelectedPick<Record, ['*']>[]>;
3873
- update<K extends SelectableColumn<Record>>(object: Partial<EditableData<Data>> & Identifiable, columns: K[]): Promise<SelectedPick<Record, typeof columns>>;
3874
- update<K extends SelectableColumn<Record>>(recordId: string, object: Partial<EditableData<Data>>, columns: K[]): Promise<SelectedPick<Record, typeof columns>>;
3875
- update<K extends SelectableColumn<Record>>(objects: Array<Partial<EditableData<Data>> & Identifiable>, columns: K[]): Promise<SelectedPick<Record, typeof columns>[]>;
3876
- createOrUpdate(object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3877
- createOrUpdate(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3878
- createOrUpdate(objects: EditableData<Data>[]): Promise<SelectedPick<Record, ['*']>[]>;
3879
- createOrUpdate<K extends SelectableColumn<Record>>(object: EditableData<Data>, columns: K[]): Promise<SelectedPick<Record, typeof columns>>;
3880
- createOrUpdate<K extends SelectableColumn<Record>>(recordId: string, object: EditableData<Data>, columns: K[]): Promise<SelectedPick<Record, typeof columns>>;
3881
- createOrUpdate<K extends SelectableColumn<Record>>(objects: EditableData<Data>[], columns: K[]): Promise<SelectedPick<Record, typeof columns>[]>;
3882
- 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>>;
3883
3959
  search(query: string, options?: {
3884
3960
  fuzziness?: FuzzinessExpression;
3885
3961
  prefix?: PrefixExpression;
@@ -3943,6 +4019,10 @@ declare type PropertyType<Tables, Properties, PropertyName> = Properties & {
3943
4019
  [K in ObjectColumns[number]['name']]?: PropertyType<Tables, ObjectColumns[number], K>;
3944
4020
  } : never : never : Type extends 'link' ? TableType<Tables, LinkedTable> & XataRecord : never) | null : never : never;
3945
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>;
3946
4026
  /**
3947
4027
  * Operator to restrict results to only values that are greater than the given value.
3948
4028
  */
@@ -3950,15 +4030,35 @@ declare const gt: <T extends ComparableType>(value: T) => ComparableTypeFilter<T
3950
4030
  /**
3951
4031
  * Operator to restrict results to only values that are greater than or equal to the given value.
3952
4032
  */
3953
- 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>;
3954
4038
  /**
3955
4039
  * Operator to restrict results to only values that are greater than or equal to the given value.
3956
4040
  */
3957
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>;
3958
4050
  /**
3959
4051
  * Operator to restrict results to only values that are lower than the given value.
3960
4052
  */
3961
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>;
3962
4062
  /**
3963
4063
  * Operator to restrict results to only values that are lower than or equal to the given value.
3964
4064
  */
@@ -3991,6 +4091,10 @@ declare const pattern: (value: string) => StringTypeFilter;
3991
4091
  * Operator to restrict results to only values that are equal to the given value.
3992
4092
  */
3993
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>;
3994
4098
  /**
3995
4099
  * Operator to restrict results to only values that are not equal to the given value.
3996
4100
  */
@@ -4019,12 +4123,12 @@ declare const includesAny: <T>(value: T) => ArrayFilter<T>;
4019
4123
  declare type SchemaDefinition = {
4020
4124
  table: string;
4021
4125
  };
4022
- declare type SchemaPluginResult<Schemas extends Record<string, BaseData>> = {
4126
+ declare type SchemaPluginResult<Schemas extends Record<string, XataRecord>> = {
4023
4127
  [Key in keyof Schemas]: Repository<Schemas[Key]>;
4024
4128
  } & {
4025
- [key: string]: Repository<XataRecord$1>;
4129
+ [key: string]: Repository<XataRecord>;
4026
4130
  };
4027
- declare class SchemaPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
4131
+ declare class SchemaPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
4028
4132
  #private;
4029
4133
  constructor(schemaTables?: Schemas.Table[]);
4030
4134
  build(pluginOptions: XataPluginOptions): SchemaPluginResult<Schemas>;
@@ -4041,19 +4145,34 @@ declare type BaseClientOptions = {
4041
4145
  databaseURL?: string;
4042
4146
  branch?: BranchStrategyOption;
4043
4147
  cache?: CacheImpl;
4148
+ trace?: TraceFunction;
4044
4149
  };
4045
4150
  declare const buildClient: <Plugins extends Record<string, XataPlugin> = {}>(plugins?: Plugins | undefined) => ClientConstructor<Plugins>;
4046
4151
  interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
4047
- new <T extends readonly BaseSchema[]>(options?: Partial<BaseClientOptions>, schemaTables?: T): Omit<{
4048
- db: Awaited<ReturnType<SchemaPlugin<SchemaInference<NonNullable<typeof schemaTables>>>['build']>>;
4049
- search: Awaited<ReturnType<SearchPlugin<SchemaInference<NonNullable<typeof schemaTables>>>['build']>>;
4152
+ new <Schemas extends Record<string, XataRecord> = {}>(options?: Partial<BaseClientOptions>, schemaTables?: readonly BaseSchema[]): Omit<{
4153
+ db: Awaited<ReturnType<SchemaPlugin<Schemas>['build']>>;
4154
+ search: Awaited<ReturnType<SearchPlugin<Schemas>['build']>>;
4050
4155
  }, keyof Plugins> & {
4051
4156
  [Key in StringKeys<NonNullable<Plugins>>]: Awaited<ReturnType<NonNullable<Plugins>[Key]['build']>>;
4157
+ } & {
4158
+ getConfig(): Promise<{
4159
+ databaseURL: string;
4160
+ branch: string;
4161
+ }>;
4052
4162
  };
4053
4163
  }
4054
4164
  declare const BaseClient_base: ClientConstructor<{}>;
4055
- declare class BaseClient extends BaseClient_base<[]> {
4165
+ declare class BaseClient extends BaseClient_base<Record<string, any>> {
4166
+ }
4167
+
4168
+ declare class Serializer {
4169
+ classes: Record<string, any>;
4170
+ add(clazz: any): void;
4171
+ toJSON<T>(data: T): string;
4172
+ fromJSON<T>(json: string): T;
4056
4173
  }
4174
+ declare const serialize: <T>(data: T) => string;
4175
+ declare const deserialize: <T>(json: string) => T;
4057
4176
 
4058
4177
  declare type BranchResolutionOptions = {
4059
4178
  databaseURL?: string;
@@ -4066,9 +4185,89 @@ declare function getDatabaseURL(): string | undefined;
4066
4185
 
4067
4186
  declare function getAPIKey(): string | undefined;
4068
4187
 
4188
+ interface Body {
4189
+ arrayBuffer(): Promise<ArrayBuffer>;
4190
+ blob(): Promise<Blob>;
4191
+ formData(): Promise<FormData>;
4192
+ json(): Promise<any>;
4193
+ text(): Promise<string>;
4194
+ }
4195
+ interface Blob {
4196
+ readonly size: number;
4197
+ readonly type: string;
4198
+ arrayBuffer(): Promise<ArrayBuffer>;
4199
+ slice(start?: number, end?: number, contentType?: string): Blob;
4200
+ text(): Promise<string>;
4201
+ }
4202
+ /** Provides information about files and allows JavaScript in a web page to access their content. */
4203
+ interface File extends Blob {
4204
+ readonly lastModified: number;
4205
+ readonly name: string;
4206
+ readonly webkitRelativePath: string;
4207
+ }
4208
+ declare type FormDataEntryValue = File | string;
4209
+ /** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
4210
+ interface FormData {
4211
+ append(name: string, value: string | Blob, fileName?: string): void;
4212
+ delete(name: string): void;
4213
+ get(name: string): FormDataEntryValue | null;
4214
+ getAll(name: string): FormDataEntryValue[];
4215
+ has(name: string): boolean;
4216
+ set(name: string, value: string | Blob, fileName?: string): void;
4217
+ forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
4218
+ }
4219
+ /** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */
4220
+ interface Headers {
4221
+ append(name: string, value: string): void;
4222
+ delete(name: string): void;
4223
+ get(name: string): string | null;
4224
+ has(name: string): boolean;
4225
+ set(name: string, value: string): void;
4226
+ forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
4227
+ }
4228
+ interface Request extends Body {
4229
+ /** Returns the cache mode associated with request, which is a string indicating how the request will interact with the browser's cache when fetching. */
4230
+ readonly cache: 'default' | 'force-cache' | 'no-cache' | 'no-store' | 'only-if-cached' | 'reload';
4231
+ /** Returns the credentials mode associated with request, which is a string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. */
4232
+ readonly credentials: 'include' | 'omit' | 'same-origin';
4233
+ /** Returns the kind of resource requested by request, e.g., "document" or "script". */
4234
+ readonly destination: '' | 'audio' | 'audioworklet' | 'document' | 'embed' | 'font' | 'frame' | 'iframe' | 'image' | 'manifest' | 'object' | 'paintworklet' | 'report' | 'script' | 'sharedworker' | 'style' | 'track' | 'video' | 'worker' | 'xslt';
4235
+ /** Returns a Headers object consisting of the headers associated with request. Note that headers added in the network layer by the user agent will not be accounted for in this object, e.g., the "Host" header. */
4236
+ readonly headers: Headers;
4237
+ /** Returns request's subresource integrity metadata, which is a cryptographic hash of the resource being fetched. Its value consists of multiple hashes separated by whitespace. [SRI] */
4238
+ readonly integrity: string;
4239
+ /** Returns a boolean indicating whether or not request can outlive the global in which it was created. */
4240
+ readonly keepalive: boolean;
4241
+ /** Returns request's HTTP method, which is "GET" by default. */
4242
+ readonly method: string;
4243
+ /** Returns the mode associated with request, which is a string indicating whether the request will use CORS, or will be restricted to same-origin URLs. */
4244
+ readonly mode: 'cors' | 'navigate' | 'no-cors' | 'same-origin';
4245
+ /** Returns the redirect mode associated with request, which is a string indicating how redirects for the request will be handled during fetching. A request will follow redirects by default. */
4246
+ readonly redirect: 'error' | 'follow' | 'manual';
4247
+ /** Returns the referrer of request. Its value can be a same-origin URL if explicitly set in init, the empty string to indicate no referrer, and "about:client" when defaulting to the global's default. This is used during fetching to determine the value of the `Referer` header of the request being made. */
4248
+ readonly referrer: string;
4249
+ /** Returns the referrer policy associated with request. This is used during fetching to compute the value of the request's referrer. */
4250
+ readonly referrerPolicy: '' | 'no-referrer' | 'no-referrer-when-downgrade' | 'origin' | 'origin-when-cross-origin' | 'same-origin' | 'strict-origin' | 'strict-origin-when-cross-origin' | 'unsafe-url';
4251
+ /** Returns the URL of request as a string. */
4252
+ readonly url: string;
4253
+ clone(): Request;
4254
+ }
4255
+
4256
+ declare type XataWorkerContext<XataClient> = {
4257
+ xata: XataClient;
4258
+ request: Request;
4259
+ env: Record<string, string | undefined>;
4260
+ };
4261
+ declare type RemoveFirst<T> = T extends [any, ...infer U] ? U : never;
4262
+ declare type WorkerRunnerConfig = {
4263
+ workspace: string;
4264
+ worker: string;
4265
+ };
4266
+ declare function buildWorkerRunner<XataClient>(config: WorkerRunnerConfig): <WorkerFunction extends (ctx: XataWorkerContext<XataClient>, ...args: any[]) => any>(name: string, _worker: WorkerFunction) => (...args: RemoveFirst<Parameters<WorkerFunction>>) => Promise<Awaited<ReturnType<WorkerFunction>>>;
4267
+
4069
4268
  declare class XataError extends Error {
4070
4269
  readonly status: number;
4071
4270
  constructor(message: string, status: number);
4072
4271
  }
4073
4272
 
4074
- 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, 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, 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, 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, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID };
4273
+ 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 };