@xata.io/client 0.0.0-alpha.vf231460 → 0.0.0-alpha.vf2696e7

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
  *
@@ -2775,6 +2800,7 @@ declare type QueryOptions<T extends XataRecord> = {
2775
2800
  columns?: NonEmptyArray<SelectableColumn<T>>;
2776
2801
  filter?: FilterExpression;
2777
2802
  sort?: SortFilter<T> | SortFilter<T>[];
2803
+ cache?: number;
2778
2804
  };
2779
2805
  /**
2780
2806
  * Query objects contain the information of all filters, sorting, etc. to be included in the database query.
@@ -2788,6 +2814,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
2788
2814
  readonly records: Result[];
2789
2815
  constructor(repository: Repository<Record> | null, table: string, data: Partial<QueryOptions<Record>>, parent?: Partial<QueryOptions<Record>>);
2790
2816
  getQueryOptions(): QueryOptions<Record>;
2817
+ key(): string;
2791
2818
  /**
2792
2819
  * Builds a new query object representing a logical OR between the given subqueries.
2793
2820
  * @param queries An array of subqueries.
@@ -2871,9 +2898,15 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
2871
2898
  * @param options Additional options to be used when performing the query.
2872
2899
  * @returns The first record that matches the query, or null if no record matched the query.
2873
2900
  */
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>;
2901
+ getFirst(): Promise<Result | null>;
2902
+ getFirst(options: Omit<QueryOptions<Record>, 'columns' | 'page'>): Promise<Result | null>;
2903
+ getFirst<Options extends RequiredBy<Omit<QueryOptions<Record>, 'page'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']> | null>;
2904
+ /**
2905
+ * Builds a new query object adding a cache TTL in milliseconds.
2906
+ * @param ttl The cache TTL in milliseconds.
2907
+ * @returns A new Query object.
2908
+ */
2909
+ cache(ttl: number): Query<Record, Result>;
2877
2910
  nextPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
2878
2911
  previousPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
2879
2912
  firstPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
@@ -3071,8 +3104,8 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
3071
3104
  constructor(options: {
3072
3105
  table: string;
3073
3106
  links?: LinkDictionary;
3074
- getFetchProps: () => Promise<FetcherExtraProps>;
3075
3107
  db: SchemaPluginResult<any>;
3108
+ pluginOptions: XataPluginOptions;
3076
3109
  });
3077
3110
  create(object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3078
3111
  create(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
@@ -3084,7 +3117,7 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
3084
3117
  createOrUpdate(object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3085
3118
  createOrUpdate(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3086
3119
  createOrUpdate(objects: EditableData<Data>[]): Promise<SelectedPick<Record, ['*']>[]>;
3087
- delete(recordId: string | Identifiable | Array<string | Identifiable>): Promise<void>;
3120
+ delete(a: string | Identifiable | Array<string | Identifiable>): Promise<void>;
3088
3121
  search(query: string, options?: {
3089
3122
  fuzziness?: number;
3090
3123
  }): Promise<SelectedPick<Record, ['*']>[]>;
@@ -3176,7 +3209,7 @@ declare class SchemaPlugin<Schemas extends Record<string, BaseData>> extends Xat
3176
3209
  private links?;
3177
3210
  private tableNames?;
3178
3211
  constructor(links?: LinkDictionary | undefined, tableNames?: string[] | undefined);
3179
- build(options: XataPluginOptions): SchemaPluginResult<Schemas>;
3212
+ build(pluginOptions: XataPluginOptions): SchemaPluginResult<Schemas>;
3180
3213
  }
3181
3214
 
3182
3215
  declare type SearchOptions<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = {
@@ -3217,6 +3250,7 @@ declare type BaseClientOptions = {
3217
3250
  apiKey?: string;
3218
3251
  databaseURL?: string;
3219
3252
  branch?: BranchStrategyOption;
3253
+ cache?: CacheImpl;
3220
3254
  };
3221
3255
  declare const buildClient: <Plugins extends Record<string, XataPlugin> = {}>(plugins?: Plugins | undefined) => ClientConstructor<Plugins>;
3222
3256
  interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
@@ -3236,7 +3270,7 @@ declare type BranchResolutionOptions = {
3236
3270
  apiKey?: string;
3237
3271
  fetchImpl?: FetchImpl;
3238
3272
  };
3239
- declare function getCurrentBranchName(options?: BranchResolutionOptions): Promise<string | undefined>;
3273
+ declare function getCurrentBranchName(options?: BranchResolutionOptions): Promise<string>;
3240
3274
  declare function getCurrentBranchDetails(options?: BranchResolutionOptions): Promise<DBBranch | null>;
3241
3275
  declare function getDatabaseURL(): string | undefined;
3242
3276
 
@@ -3247,4 +3281,4 @@ declare class XataError extends Error {
3247
3281
  constructor(message: string, status: number);
3248
3282
  }
3249
3283
 
3250
- 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 };
3284
+ 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 };