@xata.io/client 0.0.0-alpha.vf2043e7 → 0.0.0-alpha.vf27674a

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
  /**
@@ -110,6 +138,12 @@ declare type ListBranchesResponse = {
110
138
  displayName: string;
111
139
  branches: Branch[];
112
140
  };
141
+ declare type ListGitBranchesResponse = {
142
+ mapping: {
143
+ gitBranch: string;
144
+ xataBranch: string;
145
+ }[];
146
+ };
113
147
  declare type Branch = {
114
148
  name: string;
115
149
  createdAt: DateTime;
@@ -158,7 +192,7 @@ declare type Table = {
158
192
  */
159
193
  declare type Column = {
160
194
  name: string;
161
- type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object';
195
+ type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime';
162
196
  link?: {
163
197
  table: string;
164
198
  };
@@ -354,6 +388,7 @@ type schemas_WorkspaceMembers = WorkspaceMembers;
354
388
  type schemas_InviteKey = InviteKey;
355
389
  type schemas_ListDatabasesResponse = ListDatabasesResponse;
356
390
  type schemas_ListBranchesResponse = ListBranchesResponse;
391
+ type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
357
392
  type schemas_Branch = Branch;
358
393
  type schemas_BranchMetadata = BranchMetadata;
359
394
  type schemas_DBBranch = DBBranch;
@@ -406,6 +441,7 @@ declare namespace schemas {
406
441
  schemas_InviteKey as InviteKey,
407
442
  schemas_ListDatabasesResponse as ListDatabasesResponse,
408
443
  schemas_ListBranchesResponse as ListBranchesResponse,
444
+ schemas_ListGitBranchesResponse as ListGitBranchesResponse,
409
445
  schemas_Branch as Branch,
410
446
  schemas_BranchMetadata as BranchMetadata,
411
447
  schemas_DBBranch as DBBranch,
@@ -982,6 +1018,162 @@ declare type DeleteDatabaseVariables = {
982
1018
  * Delete a database and all of its branches and tables permanently.
983
1019
  */
984
1020
  declare const deleteDatabase: (variables: DeleteDatabaseVariables) => Promise<undefined>;
1021
+ declare type GetGitBranchesMappingPathParams = {
1022
+ dbName: DBName;
1023
+ workspace: string;
1024
+ };
1025
+ declare type GetGitBranchesMappingError = ErrorWrapper<{
1026
+ status: 400;
1027
+ payload: BadRequestError;
1028
+ } | {
1029
+ status: 401;
1030
+ payload: AuthError;
1031
+ }>;
1032
+ declare type GetGitBranchesMappingVariables = {
1033
+ pathParams: GetGitBranchesMappingPathParams;
1034
+ } & FetcherExtraProps;
1035
+ /**
1036
+ * Lists all the git branches in the mapping, and their associated Xata branches.
1037
+ *
1038
+ * Example response:
1039
+ *
1040
+ * ```json
1041
+ * {
1042
+ * "mappings": [
1043
+ * {
1044
+ * "gitBranch": "main",
1045
+ * "xataBranch": "main"
1046
+ * },
1047
+ * {
1048
+ * "gitBranch": "gitBranch1",
1049
+ * "xataBranch": "xataBranch1"
1050
+ * }
1051
+ * {
1052
+ * "gitBranch": "xataBranch2",
1053
+ * "xataBranch": "xataBranch2"
1054
+ * }
1055
+ * ]
1056
+ * }
1057
+ * ```
1058
+ */
1059
+ declare const getGitBranchesMapping: (variables: GetGitBranchesMappingVariables) => Promise<ListGitBranchesResponse>;
1060
+ declare type AddGitBranchesEntryPathParams = {
1061
+ dbName: DBName;
1062
+ workspace: string;
1063
+ };
1064
+ declare type AddGitBranchesEntryError = ErrorWrapper<{
1065
+ status: 400;
1066
+ payload: BadRequestError;
1067
+ } | {
1068
+ status: 401;
1069
+ payload: AuthError;
1070
+ }>;
1071
+ declare type AddGitBranchesEntryResponse = {
1072
+ warning?: string;
1073
+ };
1074
+ declare type AddGitBranchesEntryRequestBody = {
1075
+ gitBranch: string;
1076
+ xataBranch: BranchName;
1077
+ };
1078
+ declare type AddGitBranchesEntryVariables = {
1079
+ body: AddGitBranchesEntryRequestBody;
1080
+ pathParams: AddGitBranchesEntryPathParams;
1081
+ } & FetcherExtraProps;
1082
+ /**
1083
+ * Adds an entry to the mapping of git branches to Xata branches. The git branch and the Xata branch must be present in the body of the request. If the Xata branch doesn't exist, a 400 error is returned.
1084
+ *
1085
+ * If the git branch is already present in the mapping, the old entry is overwritten, and a warning message is included in the response. If the git branch is added and didn't exist before, the response code is 204. If the git branch existed and it was overwritten, the response code is 201.
1086
+ *
1087
+ * Example request:
1088
+ *
1089
+ * ```json
1090
+ * // POST https://tutorial-ng7s8c.xata.sh/dbs/demo/gitBranches
1091
+ * {
1092
+ * "gitBranch": "fix/bug123",
1093
+ * "xataBranch": "fix_bug"
1094
+ * }
1095
+ * ```
1096
+ */
1097
+ declare const addGitBranchesEntry: (variables: AddGitBranchesEntryVariables) => Promise<AddGitBranchesEntryResponse>;
1098
+ declare type RemoveGitBranchesEntryPathParams = {
1099
+ dbName: DBName;
1100
+ workspace: string;
1101
+ };
1102
+ declare type RemoveGitBranchesEntryQueryParams = {
1103
+ gitBranch: string;
1104
+ };
1105
+ declare type RemoveGitBranchesEntryError = ErrorWrapper<{
1106
+ status: 400;
1107
+ payload: BadRequestError;
1108
+ } | {
1109
+ status: 401;
1110
+ payload: AuthError;
1111
+ }>;
1112
+ declare type RemoveGitBranchesEntryVariables = {
1113
+ pathParams: RemoveGitBranchesEntryPathParams;
1114
+ queryParams: RemoveGitBranchesEntryQueryParams;
1115
+ } & FetcherExtraProps;
1116
+ /**
1117
+ * Removes an entry from the mapping of git branches to Xata branches. The name of the git branch must be passed as a query parameter. If the git branch is not found, the endpoint returns a 404 status code.
1118
+ *
1119
+ * Example request:
1120
+ *
1121
+ * ```json
1122
+ * // DELETE https://tutorial-ng7s8c.xata.sh/dbs/demo/gitBranches?gitBranch=fix%2Fbug123
1123
+ * ```
1124
+ */
1125
+ declare const removeGitBranchesEntry: (variables: RemoveGitBranchesEntryVariables) => Promise<undefined>;
1126
+ declare type ResolveBranchPathParams = {
1127
+ dbName: DBName;
1128
+ workspace: string;
1129
+ };
1130
+ declare type ResolveBranchQueryParams = {
1131
+ gitBranch?: string;
1132
+ fallbackBranch?: string;
1133
+ };
1134
+ declare type ResolveBranchError = ErrorWrapper<{
1135
+ status: 400;
1136
+ payload: BadRequestError;
1137
+ } | {
1138
+ status: 401;
1139
+ payload: AuthError;
1140
+ }>;
1141
+ declare type ResolveBranchResponse = {
1142
+ branch: string;
1143
+ reason: {
1144
+ code: 'FOUND_IN_MAPPING' | 'BRANCH_EXISTS' | 'FALLBACK_BRANCH' | 'DEFAULT_BRANCH';
1145
+ message: string;
1146
+ };
1147
+ };
1148
+ declare type ResolveBranchVariables = {
1149
+ pathParams: ResolveBranchPathParams;
1150
+ queryParams?: ResolveBranchQueryParams;
1151
+ } & FetcherExtraProps;
1152
+ /**
1153
+ * In order to resolve the database branch, the following algorithm is used:
1154
+ * * if the `gitBranch` is found in the [git branches mapping](), the associated Xata branch is returned
1155
+ * * else, if a Xata branch with the exact same name as `gitBranch` exists, return it
1156
+ * * else, return the default branch of the DB (currently `main` or the first branch)
1157
+ *
1158
+ * Example call:
1159
+ *
1160
+ * ```json
1161
+ * // GET https://tutorial-ng7s8c.xata.sh/dbs/demo/dbs/demo/resolveBranch?gitBranch=test&fallbackBranch=tsg
1162
+ * ```
1163
+ *
1164
+ * Example response:
1165
+ *
1166
+ * ```json
1167
+ * {
1168
+ * "branch": "main",
1169
+ * "reason": {
1170
+ * "code": "DEFAULT_BRANCH",
1171
+ * "message": "Default branch for this database (main)"
1172
+ * }
1173
+ * }
1174
+ * ```
1175
+ */
1176
+ declare const resolveBranch: (variables: ResolveBranchVariables) => Promise<ResolveBranchResponse>;
985
1177
  declare type GetBranchDetailsPathParams = {
986
1178
  dbBranchName: DBBranchName;
987
1179
  workspace: string;
@@ -1266,8 +1458,9 @@ declare type UpdateTableVariables = {
1266
1458
  *
1267
1459
  * In the example below, we rename a table from “users” to “people”:
1268
1460
  *
1269
- * ```jsx
1270
- * PATCH /db/test:main/tables/users
1461
+ * ```json
1462
+ * // PATCH /db/test:main/tables/users
1463
+ *
1271
1464
  * {
1272
1465
  * "name": "people"
1273
1466
  * }
@@ -1675,7 +1868,7 @@ declare type QueryTableVariables = {
1675
1868
  * {
1676
1869
  * "columns": [...],
1677
1870
  * "filter": {
1678
- * "$all": [...]
1871
+ * "$all": [...],
1679
1872
  * "$any": [...]
1680
1873
  * ...
1681
1874
  * },
@@ -1721,7 +1914,11 @@ declare type QueryTableVariables = {
1721
1914
  * "link": {
1722
1915
  * "table": "users"
1723
1916
  * }
1724
- * }
1917
+ * },
1918
+ * {
1919
+ * "name": "foundedDate",
1920
+ * "type": "datetime"
1921
+ * },
1725
1922
  * ]
1726
1923
  * },
1727
1924
  * {
@@ -1809,7 +2006,7 @@ declare type QueryTableVariables = {
1809
2006
  * {
1810
2007
  * "name": "Kilian",
1811
2008
  * "address": {
1812
- * "street": "New street",
2009
+ * "street": "New street"
1813
2010
  * }
1814
2011
  * }
1815
2012
  * ```
@@ -1818,10 +2015,7 @@ declare type QueryTableVariables = {
1818
2015
  *
1819
2016
  * ```json
1820
2017
  * {
1821
- * "columns": [
1822
- * "*",
1823
- * "team.name"
1824
- * ]
2018
+ * "columns": ["*", "team.name"]
1825
2019
  * }
1826
2020
  * ```
1827
2021
  *
@@ -1839,7 +2033,7 @@ declare type QueryTableVariables = {
1839
2033
  * "team": {
1840
2034
  * "id": "XX",
1841
2035
  * "xata": {
1842
- * "version": 0,
2036
+ * "version": 0
1843
2037
  * },
1844
2038
  * "name": "first team"
1845
2039
  * }
@@ -1850,10 +2044,7 @@ declare type QueryTableVariables = {
1850
2044
  *
1851
2045
  * ```json
1852
2046
  * {
1853
- * "columns": [
1854
- * "*",
1855
- * "team.*"
1856
- * ]
2047
+ * "columns": ["*", "team.*"]
1857
2048
  * }
1858
2049
  * ```
1859
2050
  *
@@ -1871,10 +2062,11 @@ declare type QueryTableVariables = {
1871
2062
  * "team": {
1872
2063
  * "id": "XX",
1873
2064
  * "xata": {
1874
- * "version": 0,
2065
+ * "version": 0
1875
2066
  * },
1876
2067
  * "name": "first team",
1877
- * "code": "A1"
2068
+ * "code": "A1",
2069
+ * "foundedDate": "2020-03-04T10:43:54.32Z"
1878
2070
  * }
1879
2071
  * }
1880
2072
  * ```
@@ -1889,7 +2081,7 @@ declare type QueryTableVariables = {
1889
2081
  * `$none`, etc.
1890
2082
  *
1891
2083
  * All operators start with an `$` to differentiate them from column names
1892
- * (which are not allowed to start with an dollar sign).
2084
+ * (which are not allowed to start with a dollar sign).
1893
2085
  *
1894
2086
  * #### Exact matching and control operators
1895
2087
  *
@@ -1920,7 +2112,7 @@ declare type QueryTableVariables = {
1920
2112
  * ```json
1921
2113
  * {
1922
2114
  * "filter": {
1923
- * "name": "r2",
2115
+ * "name": "r2"
1924
2116
  * }
1925
2117
  * }
1926
2118
  * ```
@@ -1942,7 +2134,7 @@ declare type QueryTableVariables = {
1942
2134
  * ```json
1943
2135
  * {
1944
2136
  * "filter": {
1945
- * "settings.plan": "free",
2137
+ * "settings.plan": "free"
1946
2138
  * }
1947
2139
  * }
1948
2140
  * ```
@@ -1952,8 +2144,8 @@ declare type QueryTableVariables = {
1952
2144
  * "filter": {
1953
2145
  * "settings": {
1954
2146
  * "plan": "free"
1955
- * },
1956
- * },
2147
+ * }
2148
+ * }
1957
2149
  * }
1958
2150
  * ```
1959
2151
  *
@@ -1962,8 +2154,8 @@ declare type QueryTableVariables = {
1962
2154
  * ```json
1963
2155
  * {
1964
2156
  * "filter": {
1965
- * "settings.plan": {"$any": ["free", "paid"]}
1966
- * },
2157
+ * "settings.plan": { "$any": ["free", "paid"] }
2158
+ * }
1967
2159
  * }
1968
2160
  * ```
1969
2161
  *
@@ -1972,9 +2164,9 @@ declare type QueryTableVariables = {
1972
2164
  * ```json
1973
2165
  * {
1974
2166
  * "filter": {
1975
- * "settings.dark": true,
1976
- * "settings.plan": "free",
1977
- * },
2167
+ * "settings.dark": true,
2168
+ * "settings.plan": "free"
2169
+ * }
1978
2170
  * }
1979
2171
  * ```
1980
2172
  *
@@ -1985,11 +2177,11 @@ declare type QueryTableVariables = {
1985
2177
  * ```json
1986
2178
  * {
1987
2179
  * "filter": {
1988
- * "$any": {
1989
- * "settings.dark": true,
1990
- * "settings.plan": "free"
1991
- * }
1992
- * },
2180
+ * "$any": {
2181
+ * "settings.dark": true,
2182
+ * "settings.plan": "free"
2183
+ * }
2184
+ * }
1993
2185
  * }
1994
2186
  * ```
1995
2187
  *
@@ -2000,10 +2192,10 @@ declare type QueryTableVariables = {
2000
2192
  * "filter": {
2001
2193
  * "$any": [
2002
2194
  * {
2003
- * "name": "r1",
2195
+ * "name": "r1"
2004
2196
  * },
2005
2197
  * {
2006
- * "name": "r2",
2198
+ * "name": "r2"
2007
2199
  * }
2008
2200
  * ]
2009
2201
  * }
@@ -2015,7 +2207,7 @@ declare type QueryTableVariables = {
2015
2207
  * ```json
2016
2208
  * {
2017
2209
  * "filter": {
2018
- * "$exists": "settings",
2210
+ * "$exists": "settings"
2019
2211
  * }
2020
2212
  * }
2021
2213
  * ```
@@ -2027,10 +2219,10 @@ declare type QueryTableVariables = {
2027
2219
  * "filter": {
2028
2220
  * "$all": [
2029
2221
  * {
2030
- * "$exists": "settings",
2222
+ * "$exists": "settings"
2031
2223
  * },
2032
2224
  * {
2033
- * "$exists": "name",
2225
+ * "$exists": "name"
2034
2226
  * }
2035
2227
  * ]
2036
2228
  * }
@@ -2042,7 +2234,7 @@ declare type QueryTableVariables = {
2042
2234
  * ```json
2043
2235
  * {
2044
2236
  * "filter": {
2045
- * "$notExists": "settings",
2237
+ * "$notExists": "settings"
2046
2238
  * }
2047
2239
  * }
2048
2240
  * ```
@@ -2069,7 +2261,7 @@ declare type QueryTableVariables = {
2069
2261
  * {
2070
2262
  * "filter": {
2071
2263
  * "<column_name>": {
2072
- * "$pattern": "v*alue*"
2264
+ * "$pattern": "v*alue*"
2073
2265
  * }
2074
2266
  * }
2075
2267
  * }
@@ -2081,31 +2273,41 @@ declare type QueryTableVariables = {
2081
2273
  * {
2082
2274
  * "filter": {
2083
2275
  * "<column_name>": {
2084
- * "$endsWith": ".gz"
2276
+ * "$endsWith": ".gz"
2085
2277
  * },
2086
2278
  * "<column_name>": {
2087
- * "$startsWith": "tmp-"
2279
+ * "$startsWith": "tmp-"
2088
2280
  * }
2089
2281
  * }
2090
2282
  * }
2091
2283
  * ```
2092
2284
  *
2093
- * #### Numeric ranges
2285
+ * #### Numeric or datetime ranges
2094
2286
  *
2095
2287
  * ```json
2096
2288
  * {
2097
2289
  * "filter": {
2098
- * "<column_name>": {
2099
- * "$ge": 0,
2100
- * "$lt": 100
2101
- * }
2290
+ * "<column_name>": {
2291
+ * "$ge": 0,
2292
+ * "$lt": 100
2293
+ * }
2294
+ * }
2295
+ * }
2296
+ * ```
2297
+ * Date ranges support the same operators, with the date using the format defined in
2298
+ * [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339):
2299
+ * ```json
2300
+ * {
2301
+ * "filter": {
2302
+ * "<column_name>": {
2303
+ * "$gt": "2019-10-12T07:20:50.52Z",
2304
+ * "$lt": "2021-10-12T07:20:50.52Z"
2305
+ * }
2102
2306
  * }
2103
2307
  * }
2104
2308
  * ```
2105
- *
2106
2309
  * The supported operators are `$gt`, `$lt`, `$ge`, `$le`.
2107
2310
  *
2108
- *
2109
2311
  * #### Negations
2110
2312
  *
2111
2313
  * A general `$not` operator can inverse any operation.
@@ -2130,15 +2332,21 @@ declare type QueryTableVariables = {
2130
2332
  * {
2131
2333
  * "filter": {
2132
2334
  * "$not": {
2133
- * "$any": [{
2134
- * "<column_name1>": "value1"
2135
- * }, {
2136
- * "$all": [{
2137
- * "<column_name2>": "value2"
2138
- * }, {
2139
- * "<column_name3>": "value3"
2140
- * }]
2141
- * }]
2335
+ * "$any": [
2336
+ * {
2337
+ * "<column_name1>": "value1"
2338
+ * },
2339
+ * {
2340
+ * "$all": [
2341
+ * {
2342
+ * "<column_name2>": "value2"
2343
+ * },
2344
+ * {
2345
+ * "<column_name3>": "value3"
2346
+ * }
2347
+ * ]
2348
+ * }
2349
+ * ]
2142
2350
  * }
2143
2351
  * }
2144
2352
  * }
@@ -2193,8 +2401,8 @@ declare type QueryTableVariables = {
2193
2401
  * "<array name>": {
2194
2402
  * "$includes": {
2195
2403
  * "$all": [
2196
- * {"$contains": "label"},
2197
- * {"$not": {"$endsWith": "-debug"}}
2404
+ * { "$contains": "label" },
2405
+ * { "$not": { "$endsWith": "-debug" } }
2198
2406
  * ]
2199
2407
  * }
2200
2408
  * }
@@ -2214,9 +2422,7 @@ declare type QueryTableVariables = {
2214
2422
  * {
2215
2423
  * "filter": {
2216
2424
  * "settings.labels": {
2217
- * "$includesAll": [
2218
- * {"$contains": "label"},
2219
- * ]
2425
+ * "$includesAll": [{ "$contains": "label" }]
2220
2426
  * }
2221
2427
  * }
2222
2428
  * }
@@ -2264,7 +2470,6 @@ declare type QueryTableVariables = {
2264
2470
  * }
2265
2471
  * ```
2266
2472
  *
2267
- *
2268
2473
  * ### Pagination
2269
2474
  *
2270
2475
  * We offer cursor pagination and offset pagination. The offset pagination is limited
@@ -2330,8 +2535,8 @@ declare type QueryTableVariables = {
2330
2535
  * can be queried by update `page.after` to the returned cursor while keeping the
2331
2536
  * `page.before` cursor from the first range query.
2332
2537
  *
2333
- * The `filter` , `columns`, `sort` , and `page.size` configuration will be
2334
- * encoded with the cursor. The pagination request will be invalid if
2538
+ * The `filter` , `columns`, `sort` , and `page.size` configuration will be
2539
+ * encoded with the cursor. The pagination request will be invalid if
2335
2540
  * `filter` or `sort` is set. The columns returned and page size can be changed
2336
2541
  * anytime by passing the `columns` or `page.size` settings to the next query.
2337
2542
  *
@@ -2422,6 +2627,10 @@ declare const operationsByTag: {
2422
2627
  getDatabaseList: (variables: GetDatabaseListVariables) => Promise<ListDatabasesResponse>;
2423
2628
  createDatabase: (variables: CreateDatabaseVariables) => Promise<CreateDatabaseResponse>;
2424
2629
  deleteDatabase: (variables: DeleteDatabaseVariables) => Promise<undefined>;
2630
+ getGitBranchesMapping: (variables: GetGitBranchesMappingVariables) => Promise<ListGitBranchesResponse>;
2631
+ addGitBranchesEntry: (variables: AddGitBranchesEntryVariables) => Promise<AddGitBranchesEntryResponse>;
2632
+ removeGitBranchesEntry: (variables: RemoveGitBranchesEntryVariables) => Promise<undefined>;
2633
+ resolveBranch: (variables: ResolveBranchVariables) => Promise<ResolveBranchResponse>;
2425
2634
  };
2426
2635
  branch: {
2427
2636
  getBranchList: (variables: GetBranchListVariables) => Promise<ListBranchesResponse>;
@@ -2472,6 +2681,9 @@ interface XataApiClientOptions {
2472
2681
  apiKey?: string;
2473
2682
  host?: HostProvider;
2474
2683
  }
2684
+ /**
2685
+ * @deprecated Use XataApiPlugin instead
2686
+ */
2475
2687
  declare class XataApiClient {
2476
2688
  #private;
2477
2689
  constructor(options?: XataApiClientOptions);
@@ -2514,6 +2726,10 @@ declare class DatabaseApi {
2514
2726
  getDatabaseList(workspace: WorkspaceID): Promise<ListDatabasesResponse>;
2515
2727
  createDatabase(workspace: WorkspaceID, dbName: DBName, options?: CreateDatabaseRequestBody): Promise<CreateDatabaseResponse>;
2516
2728
  deleteDatabase(workspace: WorkspaceID, dbName: DBName): Promise<void>;
2729
+ getGitBranchesMapping(workspace: WorkspaceID, dbName: DBName): Promise<ListGitBranchesResponse>;
2730
+ addGitBranchesEntry(workspace: WorkspaceID, dbName: DBName, body: AddGitBranchesEntryRequestBody): Promise<AddGitBranchesEntryResponse>;
2731
+ removeGitBranchesEntry(workspace: WorkspaceID, dbName: DBName, gitBranch: string): Promise<void>;
2732
+ resolveBranch(workspace: WorkspaceID, dbName: DBName, gitBranch: string): Promise<ResolveBranchResponse>;
2517
2733
  }
2518
2734
  declare class BranchApi {
2519
2735
  private extraProps;
@@ -2575,7 +2791,7 @@ declare type RequiredBy<T, K extends keyof T> = T & {
2575
2791
  };
2576
2792
  declare type GetArrayInnerType<T extends readonly any[]> = T[number];
2577
2793
  declare type SingleOrArray<T> = T | T[];
2578
- declare type Dictionary<T> = Record<string, T>;
2794
+ declare type OmitBy<T, K extends keyof T> = T extends any ? Omit<T, K> : never;
2579
2795
 
2580
2796
  declare type SelectableColumn<O, RecursivePath extends any[] = []> = '*' | 'id' | DataProps<O> | NestedColumns<O, RecursivePath>;
2581
2797
  declare type SelectedPick<O extends XataRecord, Key extends SelectableColumn<O>[]> = XataRecord & UnionToIntersection<Values<{
@@ -2770,12 +2986,21 @@ declare type SortFilterBase<T extends XataRecord> = {
2770
2986
  [Key in StringKeys<T>]: SortDirection;
2771
2987
  };
2772
2988
 
2773
- declare type QueryOptions<T extends XataRecord> = {
2774
- page?: PaginationOptions;
2989
+ declare type BaseOptions<T extends XataRecord> = {
2775
2990
  columns?: NonEmptyArray<SelectableColumn<T>>;
2991
+ cache?: number;
2992
+ };
2993
+ declare type CursorQueryOptions = {
2994
+ pagination?: CursorNavigationOptions & OffsetNavigationOptions;
2995
+ filter?: never;
2996
+ sort?: never;
2997
+ };
2998
+ declare type OffsetQueryOptions<T extends XataRecord> = {
2999
+ pagination?: OffsetNavigationOptions;
2776
3000
  filter?: FilterExpression;
2777
3001
  sort?: SortFilter<T> | SortFilter<T>[];
2778
3002
  };
3003
+ declare type QueryOptions<T extends XataRecord> = BaseOptions<T> & (CursorQueryOptions | OffsetQueryOptions<T>);
2779
3004
  /**
2780
3005
  * Query objects contain the information of all filters, sorting, etc. to be included in the database query.
2781
3006
  *
@@ -2788,6 +3013,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
2788
3013
  readonly records: Result[];
2789
3014
  constructor(repository: Repository<Record> | null, table: string, data: Partial<QueryOptions<Record>>, parent?: Partial<QueryOptions<Record>>);
2790
3015
  getQueryOptions(): QueryOptions<Record>;
3016
+ key(): string;
2791
3017
  /**
2792
3018
  * Builds a new query object representing a logical OR between the given subqueries.
2793
3019
  * @param queries An array of subqueries.
@@ -2843,19 +3069,23 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
2843
3069
  */
2844
3070
  select<K extends SelectableColumn<Record>>(columns: NonEmptyArray<K>): Query<Record, SelectedPick<Record, NonEmptyArray<K>>>;
2845
3071
  getPaginated(): Promise<Page<Record, Result>>;
2846
- getPaginated(options: Omit<QueryOptions<Record>, 'columns'>): Promise<Page<Record, Result>>;
3072
+ getPaginated(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<Page<Record, Result>>;
2847
3073
  getPaginated<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<Page<Record, SelectedPick<Record, typeof options['columns']>>>;
2848
3074
  [Symbol.asyncIterator](): AsyncIterableIterator<Result>;
2849
- getIterator(chunk: number): AsyncGenerator<Result[]>;
2850
- getIterator(chunk: number, options: Omit<QueryOptions<Record>, 'columns' | 'page'>): AsyncGenerator<Result[]>;
2851
- getIterator<Options extends RequiredBy<Omit<QueryOptions<Record>, 'page'>, 'columns'>>(chunk: number, options: Options): AsyncGenerator<SelectedPick<Record, typeof options['columns']>[]>;
3075
+ getIterator(): AsyncGenerator<Result[]>;
3076
+ getIterator(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'> & {
3077
+ batchSize?: number;
3078
+ }): AsyncGenerator<Result[]>;
3079
+ getIterator<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'> & {
3080
+ batchSize?: number;
3081
+ }>(options: Options): AsyncGenerator<SelectedPick<Record, typeof options['columns']>[]>;
2852
3082
  /**
2853
3083
  * Performs the query in the database and returns a set of results.
2854
3084
  * @param options Additional options to be used when performing the query.
2855
3085
  * @returns An array of records from the database.
2856
3086
  */
2857
3087
  getMany(): Promise<Result[]>;
2858
- getMany(options: Omit<QueryOptions<Record>, 'columns'>): Promise<Result[]>;
3088
+ getMany(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<Result[]>;
2859
3089
  getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']>[]>;
2860
3090
  /**
2861
3091
  * Performs the query in the database and returns all the results.
@@ -2863,17 +3093,27 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
2863
3093
  * @param options Additional options to be used when performing the query.
2864
3094
  * @returns An array of records from the database.
2865
3095
  */
2866
- getAll(chunk?: number): Promise<Result[]>;
2867
- getAll(chunk: number | undefined, options: Omit<QueryOptions<Record>, 'columns' | 'page'>): Promise<Result[]>;
2868
- getAll<Options extends RequiredBy<Omit<QueryOptions<Record>, 'page'>, 'columns'>>(chunk: number | undefined, options: Options): Promise<SelectedPick<Record, typeof options['columns']>[]>;
3096
+ getAll(): Promise<Result[]>;
3097
+ getAll(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'> & {
3098
+ batchSize?: number;
3099
+ }): Promise<Result[]>;
3100
+ getAll<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'> & {
3101
+ batchSize?: number;
3102
+ }>(options: Options): Promise<SelectedPick<Record, typeof options['columns']>[]>;
2869
3103
  /**
2870
3104
  * Performs the query in the database and returns the first result.
2871
3105
  * @param options Additional options to be used when performing the query.
2872
3106
  * @returns The first record that matches the query, or null if no record matched the query.
2873
3107
  */
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>;
3108
+ getFirst(): Promise<Result | null>;
3109
+ getFirst(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'>): Promise<Result | null>;
3110
+ getFirst<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']> | null>;
3111
+ /**
3112
+ * Builds a new query object adding a cache TTL in milliseconds.
3113
+ * @param ttl The cache TTL in milliseconds.
3114
+ * @returns A new Query object.
3115
+ */
3116
+ cache(ttl: number): Query<Record, Result>;
2877
3117
  nextPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
2878
3118
  previousPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
2879
3119
  firstPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
@@ -2957,14 +3197,11 @@ declare type OffsetNavigationOptions = {
2957
3197
  size?: number;
2958
3198
  offset?: number;
2959
3199
  };
2960
- declare type PaginationOptions = CursorNavigationOptions & OffsetNavigationOptions;
2961
3200
  declare const PAGINATION_MAX_SIZE = 200;
2962
3201
  declare const PAGINATION_DEFAULT_SIZE = 200;
2963
3202
  declare const PAGINATION_MAX_OFFSET = 800;
2964
3203
  declare const PAGINATION_DEFAULT_OFFSET = 0;
2965
3204
 
2966
- declare type TableLink = string[];
2967
- declare type LinkDictionary = Dictionary<TableLink[]>;
2968
3205
  /**
2969
3206
  * Common interface for performing operations on a table.
2970
3207
  */
@@ -3070,9 +3307,8 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
3070
3307
  db: SchemaPluginResult<any>;
3071
3308
  constructor(options: {
3072
3309
  table: string;
3073
- links?: LinkDictionary;
3074
- getFetchProps: () => Promise<FetcherExtraProps>;
3075
3310
  db: SchemaPluginResult<any>;
3311
+ pluginOptions: XataPluginOptions;
3076
3312
  });
3077
3313
  create(object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3078
3314
  create(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
@@ -3084,7 +3320,7 @@ declare class RestRepository<Data extends BaseData, Record extends XataRecord =
3084
3320
  createOrUpdate(object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3085
3321
  createOrUpdate(recordId: string, object: EditableData<Data>): Promise<SelectedPick<Record, ['*']>>;
3086
3322
  createOrUpdate(objects: EditableData<Data>[]): Promise<SelectedPick<Record, ['*']>[]>;
3087
- delete(recordId: string | Identifiable | Array<string | Identifiable>): Promise<void>;
3323
+ delete(a: string | Identifiable | Array<string | Identifiable>): Promise<void>;
3088
3324
  search(query: string, options?: {
3089
3325
  fuzziness?: number;
3090
3326
  }): Promise<SelectedPick<Record, ['*']>[]>;
@@ -3166,17 +3402,17 @@ declare const includesAny: <T>(value: T) => ArrayFilter<T>;
3166
3402
 
3167
3403
  declare type SchemaDefinition = {
3168
3404
  table: string;
3169
- links?: LinkDictionary;
3170
3405
  };
3171
3406
  declare type SchemaPluginResult<Schemas extends Record<string, BaseData>> = {
3172
3407
  [Key in keyof Schemas]: Repository<Schemas[Key]>;
3408
+ } & {
3409
+ [key: string]: Repository<XataRecord$1>;
3173
3410
  };
3174
3411
  declare class SchemaPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
3175
3412
  #private;
3176
- private links?;
3177
3413
  private tableNames?;
3178
- constructor(links?: LinkDictionary | undefined, tableNames?: string[] | undefined);
3179
- build(options: XataPluginOptions): SchemaPluginResult<Schemas>;
3414
+ constructor(tableNames?: string[] | undefined);
3415
+ build(pluginOptions: XataPluginOptions): SchemaPluginResult<Schemas>;
3180
3416
  }
3181
3417
 
3182
3418
  declare type SearchOptions<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = {
@@ -3197,8 +3433,7 @@ declare type SearchPluginResult<Schemas extends Record<string, BaseData>> = {
3197
3433
  declare class SearchPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
3198
3434
  #private;
3199
3435
  private db;
3200
- private links;
3201
- constructor(db: SchemaPluginResult<Schemas>, links: LinkDictionary);
3436
+ constructor(db: SchemaPluginResult<Schemas>);
3202
3437
  build({ getFetchProps }: XataPluginOptions): SearchPluginResult<Schemas>;
3203
3438
  }
3204
3439
  declare type SearchXataRecord = XataRecord & {
@@ -3217,10 +3452,11 @@ declare type BaseClientOptions = {
3217
3452
  apiKey?: string;
3218
3453
  databaseURL?: string;
3219
3454
  branch?: BranchStrategyOption;
3455
+ cache?: CacheImpl;
3220
3456
  };
3221
3457
  declare const buildClient: <Plugins extends Record<string, XataPlugin> = {}>(plugins?: Plugins | undefined) => ClientConstructor<Plugins>;
3222
3458
  interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
3223
- new <Schemas extends Record<string, BaseData>>(options?: Partial<BaseClientOptions>, links?: LinkDictionary): Omit<{
3459
+ new <Schemas extends Record<string, BaseData> = {}>(options?: Partial<BaseClientOptions>, tables?: string[]): Omit<{
3224
3460
  db: Awaited<ReturnType<SchemaPlugin<Schemas>['build']>>;
3225
3461
  search: Awaited<ReturnType<SearchPlugin<Schemas>['build']>>;
3226
3462
  }, keyof Plugins> & {
@@ -3231,6 +3467,7 @@ declare const BaseClient_base: ClientConstructor<{}>;
3231
3467
  declare class BaseClient extends BaseClient_base<Record<string, any>> {
3232
3468
  }
3233
3469
 
3470
+ declare const defaultBranch = "main";
3234
3471
  declare type BranchResolutionOptions = {
3235
3472
  databaseURL?: string;
3236
3473
  apiKey?: string;
@@ -3247,4 +3484,4 @@ declare class XataError extends Error {
3247
3484
  constructor(message: string, status: number);
3248
3485
  }
3249
3486
 
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 };
3487
+ export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsResponse, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTableError, CreateTablePathParams, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherExtraProps, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetRecordError, GetRecordPathParams, GetRecordRequestBody, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordResponse, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationQueryMeta, Query, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RemoveGitBranchesEntryError, RemoveGitBranchesEntryPathParams, RemoveGitBranchesEntryQueryParams, RemoveGitBranchesEntryVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, ResolveBranchError, ResolveBranchPathParams, ResolveBranchQueryParams, ResolveBranchResponse, ResolveBranchVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SelectableColumn, SelectedPick, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, buildClient, bulkInsertTableRecords, cancelWorkspaceMemberInvite, contains, createBranch, createDatabase, createTable, createUserAPIKey, createWorkspace, defaultBranch, 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, isIdentifiable, isNot, isXataRecord, le, lt, lte, notExists, operationsByTag, pattern, queryTable, removeGitBranchesEntry, removeWorkspaceMember, resendWorkspaceMemberInvite, resolveBranch, searchBranch, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberRole, upsertRecordWithID };