@xata.io/client 0.8.4 → 0.9.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
@@ -19,11 +19,39 @@ declare type ErrorWrapper<TError> = TError | {
19
19
  payload: string;
20
20
  };
21
21
 
22
+ interface CacheImpl {
23
+ cacheRecords: boolean;
24
+ defaultQueryTTL: number;
25
+ getAll(): Promise<Record<string, unknown>>;
26
+ get: <T>(key: string) => Promise<T | null>;
27
+ set: <T>(key: string, value: T) => Promise<void>;
28
+ delete: (key: string) => Promise<void>;
29
+ clear: () => Promise<void>;
30
+ }
31
+ interface SimpleCacheOptions {
32
+ max?: number;
33
+ cacheRecords?: boolean;
34
+ defaultQueryTTL?: number;
35
+ }
36
+ declare class SimpleCache implements CacheImpl {
37
+ #private;
38
+ capacity: number;
39
+ cacheRecords: boolean;
40
+ defaultQueryTTL: number;
41
+ constructor(options?: SimpleCacheOptions);
42
+ getAll(): Promise<Record<string, unknown>>;
43
+ get<T>(key: string): Promise<T | null>;
44
+ set<T>(key: string, value: T): Promise<void>;
45
+ delete(key: string): Promise<void>;
46
+ clear(): Promise<void>;
47
+ }
48
+
22
49
  declare abstract class XataPlugin {
23
50
  abstract build(options: XataPluginOptions): unknown | Promise<unknown>;
24
51
  }
25
52
  declare type XataPluginOptions = {
26
53
  getFetchProps: () => Promise<FetcherExtraProps>;
54
+ cache: CacheImpl;
27
55
  };
28
56
 
29
57
  /**
@@ -1266,8 +1294,9 @@ declare type UpdateTableVariables = {
1266
1294
  *
1267
1295
  * In the example below, we rename a table from “users” to “people”:
1268
1296
  *
1269
- * ```jsx
1270
- * PATCH /db/test:main/tables/users
1297
+ * ```json
1298
+ * // PATCH /db/test:main/tables/users
1299
+ *
1271
1300
  * {
1272
1301
  * "name": "people"
1273
1302
  * }
@@ -1675,7 +1704,7 @@ declare type QueryTableVariables = {
1675
1704
  * {
1676
1705
  * "columns": [...],
1677
1706
  * "filter": {
1678
- * "$all": [...]
1707
+ * "$all": [...],
1679
1708
  * "$any": [...]
1680
1709
  * ...
1681
1710
  * },
@@ -1809,7 +1838,7 @@ declare type QueryTableVariables = {
1809
1838
  * {
1810
1839
  * "name": "Kilian",
1811
1840
  * "address": {
1812
- * "street": "New street",
1841
+ * "street": "New street"
1813
1842
  * }
1814
1843
  * }
1815
1844
  * ```
@@ -1818,10 +1847,7 @@ declare type QueryTableVariables = {
1818
1847
  *
1819
1848
  * ```json
1820
1849
  * {
1821
- * "columns": [
1822
- * "*",
1823
- * "team.name"
1824
- * ]
1850
+ * "columns": ["*", "team.name"]
1825
1851
  * }
1826
1852
  * ```
1827
1853
  *
@@ -1839,7 +1865,7 @@ declare type QueryTableVariables = {
1839
1865
  * "team": {
1840
1866
  * "id": "XX",
1841
1867
  * "xata": {
1842
- * "version": 0,
1868
+ * "version": 0
1843
1869
  * },
1844
1870
  * "name": "first team"
1845
1871
  * }
@@ -1850,10 +1876,7 @@ declare type QueryTableVariables = {
1850
1876
  *
1851
1877
  * ```json
1852
1878
  * {
1853
- * "columns": [
1854
- * "*",
1855
- * "team.*"
1856
- * ]
1879
+ * "columns": ["*", "team.*"]
1857
1880
  * }
1858
1881
  * ```
1859
1882
  *
@@ -1871,7 +1894,7 @@ declare type QueryTableVariables = {
1871
1894
  * "team": {
1872
1895
  * "id": "XX",
1873
1896
  * "xata": {
1874
- * "version": 0,
1897
+ * "version": 0
1875
1898
  * },
1876
1899
  * "name": "first team",
1877
1900
  * "code": "A1"
@@ -1920,7 +1943,7 @@ declare type QueryTableVariables = {
1920
1943
  * ```json
1921
1944
  * {
1922
1945
  * "filter": {
1923
- * "name": "r2",
1946
+ * "name": "r2"
1924
1947
  * }
1925
1948
  * }
1926
1949
  * ```
@@ -1942,7 +1965,7 @@ declare type QueryTableVariables = {
1942
1965
  * ```json
1943
1966
  * {
1944
1967
  * "filter": {
1945
- * "settings.plan": "free",
1968
+ * "settings.plan": "free"
1946
1969
  * }
1947
1970
  * }
1948
1971
  * ```
@@ -1952,8 +1975,8 @@ declare type QueryTableVariables = {
1952
1975
  * "filter": {
1953
1976
  * "settings": {
1954
1977
  * "plan": "free"
1955
- * },
1956
- * },
1978
+ * }
1979
+ * }
1957
1980
  * }
1958
1981
  * ```
1959
1982
  *
@@ -1962,8 +1985,8 @@ declare type QueryTableVariables = {
1962
1985
  * ```json
1963
1986
  * {
1964
1987
  * "filter": {
1965
- * "settings.plan": {"$any": ["free", "paid"]}
1966
- * },
1988
+ * "settings.plan": { "$any": ["free", "paid"] }
1989
+ * }
1967
1990
  * }
1968
1991
  * ```
1969
1992
  *
@@ -1972,9 +1995,9 @@ declare type QueryTableVariables = {
1972
1995
  * ```json
1973
1996
  * {
1974
1997
  * "filter": {
1975
- * "settings.dark": true,
1976
- * "settings.plan": "free",
1977
- * },
1998
+ * "settings.dark": true,
1999
+ * "settings.plan": "free"
2000
+ * }
1978
2001
  * }
1979
2002
  * ```
1980
2003
  *
@@ -1985,11 +2008,11 @@ declare type QueryTableVariables = {
1985
2008
  * ```json
1986
2009
  * {
1987
2010
  * "filter": {
1988
- * "$any": {
1989
- * "settings.dark": true,
1990
- * "settings.plan": "free"
1991
- * }
1992
- * },
2011
+ * "$any": {
2012
+ * "settings.dark": true,
2013
+ * "settings.plan": "free"
2014
+ * }
2015
+ * }
1993
2016
  * }
1994
2017
  * ```
1995
2018
  *
@@ -2000,10 +2023,10 @@ declare type QueryTableVariables = {
2000
2023
  * "filter": {
2001
2024
  * "$any": [
2002
2025
  * {
2003
- * "name": "r1",
2026
+ * "name": "r1"
2004
2027
  * },
2005
2028
  * {
2006
- * "name": "r2",
2029
+ * "name": "r2"
2007
2030
  * }
2008
2031
  * ]
2009
2032
  * }
@@ -2015,7 +2038,7 @@ declare type QueryTableVariables = {
2015
2038
  * ```json
2016
2039
  * {
2017
2040
  * "filter": {
2018
- * "$exists": "settings",
2041
+ * "$exists": "settings"
2019
2042
  * }
2020
2043
  * }
2021
2044
  * ```
@@ -2027,10 +2050,10 @@ declare type QueryTableVariables = {
2027
2050
  * "filter": {
2028
2051
  * "$all": [
2029
2052
  * {
2030
- * "$exists": "settings",
2053
+ * "$exists": "settings"
2031
2054
  * },
2032
2055
  * {
2033
- * "$exists": "name",
2056
+ * "$exists": "name"
2034
2057
  * }
2035
2058
  * ]
2036
2059
  * }
@@ -2042,7 +2065,7 @@ declare type QueryTableVariables = {
2042
2065
  * ```json
2043
2066
  * {
2044
2067
  * "filter": {
2045
- * "$notExists": "settings",
2068
+ * "$notExists": "settings"
2046
2069
  * }
2047
2070
  * }
2048
2071
  * ```
@@ -2069,7 +2092,7 @@ declare type QueryTableVariables = {
2069
2092
  * {
2070
2093
  * "filter": {
2071
2094
  * "<column_name>": {
2072
- * "$pattern": "v*alue*"
2095
+ * "$pattern": "v*alue*"
2073
2096
  * }
2074
2097
  * }
2075
2098
  * }
@@ -2081,10 +2104,10 @@ declare type QueryTableVariables = {
2081
2104
  * {
2082
2105
  * "filter": {
2083
2106
  * "<column_name>": {
2084
- * "$endsWith": ".gz"
2107
+ * "$endsWith": ".gz"
2085
2108
  * },
2086
2109
  * "<column_name>": {
2087
- * "$startsWith": "tmp-"
2110
+ * "$startsWith": "tmp-"
2088
2111
  * }
2089
2112
  * }
2090
2113
  * }
@@ -2095,17 +2118,16 @@ declare type QueryTableVariables = {
2095
2118
  * ```json
2096
2119
  * {
2097
2120
  * "filter": {
2098
- * "<column_name>": {
2099
- * "$ge": 0,
2100
- * "$lt": 100
2101
- * }
2121
+ * "<column_name>": {
2122
+ * "$ge": 0,
2123
+ * "$lt": 100
2124
+ * }
2102
2125
  * }
2103
2126
  * }
2104
2127
  * ```
2105
2128
  *
2106
2129
  * The supported operators are `$gt`, `$lt`, `$ge`, `$le`.
2107
2130
  *
2108
- *
2109
2131
  * #### Negations
2110
2132
  *
2111
2133
  * A general `$not` operator can inverse any operation.
@@ -2130,15 +2152,21 @@ declare type QueryTableVariables = {
2130
2152
  * {
2131
2153
  * "filter": {
2132
2154
  * "$not": {
2133
- * "$any": [{
2134
- * "<column_name1>": "value1"
2135
- * }, {
2136
- * "$all": [{
2137
- * "<column_name2>": "value2"
2138
- * }, {
2139
- * "<column_name3>": "value3"
2140
- * }]
2141
- * }]
2155
+ * "$any": [
2156
+ * {
2157
+ * "<column_name1>": "value1"
2158
+ * },
2159
+ * {
2160
+ * "$all": [
2161
+ * {
2162
+ * "<column_name2>": "value2"
2163
+ * },
2164
+ * {
2165
+ * "<column_name3>": "value3"
2166
+ * }
2167
+ * ]
2168
+ * }
2169
+ * ]
2142
2170
  * }
2143
2171
  * }
2144
2172
  * }
@@ -2193,8 +2221,8 @@ declare type QueryTableVariables = {
2193
2221
  * "<array name>": {
2194
2222
  * "$includes": {
2195
2223
  * "$all": [
2196
- * {"$contains": "label"},
2197
- * {"$not": {"$endsWith": "-debug"}}
2224
+ * { "$contains": "label" },
2225
+ * { "$not": { "$endsWith": "-debug" } }
2198
2226
  * ]
2199
2227
  * }
2200
2228
  * }
@@ -2214,9 +2242,7 @@ declare type QueryTableVariables = {
2214
2242
  * {
2215
2243
  * "filter": {
2216
2244
  * "settings.labels": {
2217
- * "$includesAll": [
2218
- * {"$contains": "label"},
2219
- * ]
2245
+ * "$includesAll": [{ "$contains": "label" }]
2220
2246
  * }
2221
2247
  * }
2222
2248
  * }
@@ -2264,7 +2290,6 @@ declare type QueryTableVariables = {
2264
2290
  * }
2265
2291
  * ```
2266
2292
  *
2267
- *
2268
2293
  * ### Pagination
2269
2294
  *
2270
2295
  * We offer cursor pagination and offset pagination. The offset pagination is limited
@@ -2330,8 +2355,8 @@ declare type QueryTableVariables = {
2330
2355
  * can be queried by update `page.after` to the returned cursor while keeping the
2331
2356
  * `page.before` cursor from the first range query.
2332
2357
  *
2333
- * The `filter` , `columns`, `sort` , and `page.size` configuration will be
2334
- * encoded with the cursor. The pagination request will be invalid if
2358
+ * The `filter` , `columns`, `sort` , and `page.size` configuration will be
2359
+ * encoded with the cursor. The pagination request will be invalid if
2335
2360
  * `filter` or `sort` is set. The columns returned and page size can be changed
2336
2361
  * anytime by passing the `columns` or `page.size` settings to the next query.
2337
2362
  *
@@ -2472,6 +2497,9 @@ interface XataApiClientOptions {
2472
2497
  apiKey?: string;
2473
2498
  host?: HostProvider;
2474
2499
  }
2500
+ /**
2501
+ * @deprecated Use XataApiPlugin instead
2502
+ */
2475
2503
  declare class XataApiClient {
2476
2504
  #private;
2477
2505
  constructor(options?: XataApiClientOptions);
@@ -2775,6 +2803,7 @@ declare type QueryOptions<T extends XataRecord> = {
2775
2803
  columns?: NonEmptyArray<SelectableColumn<T>>;
2776
2804
  filter?: FilterExpression;
2777
2805
  sort?: SortFilter<T> | SortFilter<T>[];
2806
+ cache?: number;
2778
2807
  };
2779
2808
  /**
2780
2809
  * Query objects contain the information of all filters, sorting, etc. to be included in the database query.
@@ -2788,6 +2817,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
2788
2817
  readonly records: Result[];
2789
2818
  constructor(repository: Repository<Record> | null, table: string, data: Partial<QueryOptions<Record>>, parent?: Partial<QueryOptions<Record>>);
2790
2819
  getQueryOptions(): QueryOptions<Record>;
2820
+ key(): string;
2791
2821
  /**
2792
2822
  * Builds a new query object representing a logical OR between the given subqueries.
2793
2823
  * @param queries An array of subqueries.
@@ -2871,9 +2901,15 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
2871
2901
  * @param options Additional options to be used when performing the query.
2872
2902
  * @returns The first record that matches the query, or null if no record matched the query.
2873
2903
  */
2874
- getOne(): Promise<Result | null>;
2875
- getOne(options: Omit<QueryOptions<Record>, 'columns' | 'page'>): Promise<Result | null>;
2876
- getOne<Options extends RequiredBy<Omit<QueryOptions<Record>, 'page'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']> | null>;
2904
+ getFirst(): Promise<Result | null>;
2905
+ getFirst(options: Omit<QueryOptions<Record>, 'columns' | 'page'>): Promise<Result | null>;
2906
+ getFirst<Options extends RequiredBy<Omit<QueryOptions<Record>, 'page'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']> | null>;
2907
+ /**
2908
+ * Builds a new query object adding a cache TTL in milliseconds.
2909
+ * @param ttl The cache TTL in milliseconds.
2910
+ * @returns A new Query object.
2911
+ */
2912
+ cache(ttl: number): Query<Record, Result>;
2877
2913
  nextPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
2878
2914
  previousPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
2879
2915
  firstPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
@@ -3071,8 +3107,8 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
3071
3107
  constructor(options: {
3072
3108
  table: string;
3073
3109
  links?: LinkDictionary;
3074
- getFetchProps: () => Promise<FetcherExtraProps>;
3075
3110
  db: SchemaPluginResult<any>;
3111
+ pluginOptions: XataPluginOptions;
3076
3112
  });
3077
3113
  create(object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3078
3114
  create(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
@@ -3084,7 +3120,7 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
3084
3120
  createOrUpdate(object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3085
3121
  createOrUpdate(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3086
3122
  createOrUpdate(objects: EditableData<Data>[]): Promise<SelectedPick<Record, ['*']>[]>;
3087
- delete(recordId: string | Identifiable | Array<string | Identifiable>): Promise<void>;
3123
+ delete(a: string | Identifiable | Array<string | Identifiable>): Promise<void>;
3088
3124
  search(query: string, options?: {
3089
3125
  fuzziness?: number;
3090
3126
  }): Promise<SelectedPick<Record, ['*']>[]>;
@@ -3170,12 +3206,15 @@ declare type SchemaDefinition = {
3170
3206
  };
3171
3207
  declare type SchemaPluginResult<Schemas extends Record<string, BaseData>> = {
3172
3208
  [Key in keyof Schemas]: Repository<Schemas[Key]>;
3209
+ } & {
3210
+ [key: string]: Repository<XataRecord$1>;
3173
3211
  };
3174
3212
  declare class SchemaPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
3175
3213
  #private;
3176
3214
  private links?;
3177
- constructor(links?: LinkDictionary | undefined);
3178
- build(options: XataPluginOptions): SchemaPluginResult<Schemas>;
3215
+ private tableNames?;
3216
+ constructor(links?: LinkDictionary | undefined, tableNames?: string[] | undefined);
3217
+ build(pluginOptions: XataPluginOptions): SchemaPluginResult<Schemas>;
3179
3218
  }
3180
3219
 
3181
3220
  declare type SearchOptions<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = {
@@ -3216,10 +3255,11 @@ declare type BaseClientOptions = {
3216
3255
  apiKey?: string;
3217
3256
  databaseURL?: string;
3218
3257
  branch?: BranchStrategyOption;
3258
+ cache?: CacheImpl;
3219
3259
  };
3220
3260
  declare const buildClient: <Plugins extends Record<string, XataPlugin> = {}>(plugins?: Plugins | undefined) => ClientConstructor<Plugins>;
3221
3261
  interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
3222
- new <Schemas extends Record<string, BaseData>>(options?: Partial<BaseClientOptions>, links?: LinkDictionary): Omit<{
3262
+ new <Schemas extends Record<string, BaseData> = {}>(options?: Partial<BaseClientOptions>, links?: LinkDictionary): Omit<{
3223
3263
  db: Awaited<ReturnType<SchemaPlugin<Schemas>['build']>>;
3224
3264
  search: Awaited<ReturnType<SearchPlugin<Schemas>['build']>>;
3225
3265
  }, keyof Plugins> & {
@@ -3235,7 +3275,7 @@ declare type BranchResolutionOptions = {
3235
3275
  apiKey?: string;
3236
3276
  fetchImpl?: FetchImpl;
3237
3277
  };
3238
- declare function getCurrentBranchName(options?: BranchResolutionOptions): Promise<string | undefined>;
3278
+ declare function getCurrentBranchName(options?: BranchResolutionOptions): Promise<string>;
3239
3279
  declare function getCurrentBranchDetails(options?: BranchResolutionOptions): Promise<DBBranch | null>;
3240
3280
  declare function getDatabaseURL(): string | undefined;
3241
3281
 
@@ -3246,4 +3286,4 @@ declare class XataError extends Error {
3246
3286
  constructor(message: string, status: number);
3247
3287
  }
3248
3288
 
3249
- export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsResponse, BulkInsertTableRecordsVariables, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTableError, CreateTablePathParams, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherExtraProps, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetRecordError, GetRecordPathParams, GetRecordRequestBody, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordResponse, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, LinkDictionary, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationOptions, PaginationQueryMeta, Query, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SelectableColumn, SelectedPick, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, 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, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isIdentifiable, isNot, isXataRecord, le, lt, lte, notExists, operationsByTag, pattern, queryTable, removeWorkspaceMember, resendWorkspaceMemberInvite, searchBranch, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberRole, upsertRecordWithID };
3289
+ export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsResponse, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTableError, CreateTablePathParams, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherExtraProps, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetRecordError, GetRecordPathParams, GetRecordRequestBody, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordResponse, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, LinkDictionary, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationOptions, PaginationQueryMeta, Query, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SelectableColumn, SelectedPick, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, 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, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isIdentifiable, isNot, isXataRecord, le, lt, lte, notExists, operationsByTag, pattern, queryTable, removeWorkspaceMember, resendWorkspaceMemberInvite, searchBranch, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberRole, upsertRecordWithID };