@xata.io/client 0.29.0 → 0.29.2
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/.turbo/turbo-add-version.log +1 -1
- package/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +18 -0
- package/dist/index.cjs +343 -299
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +409 -88
- package/dist/index.mjs +337 -297
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -28,6 +28,7 @@ declare abstract class XataPlugin {
|
|
28
28
|
type XataPluginOptions = ApiExtraProps & {
|
29
29
|
cache: CacheImpl;
|
30
30
|
host: HostProvider;
|
31
|
+
tables: Table[];
|
31
32
|
};
|
32
33
|
|
33
34
|
type AttributeDictionary = Record<string, string | number | boolean | undefined>;
|
@@ -68,15 +69,21 @@ type FetchImpl = (url: string, init?: RequestInit) => Promise<Response>;
|
|
68
69
|
* @pattern [a-zA-Z0-9_\-~]+:[a-zA-Z0-9_\-~]+
|
69
70
|
*/
|
70
71
|
type DBBranchName = string;
|
71
|
-
type
|
72
|
+
type ApplyMigrationResponse = {
|
72
73
|
/**
|
73
74
|
* The id of the migration job
|
74
75
|
*/
|
75
76
|
jobID: string;
|
76
77
|
};
|
77
|
-
|
78
|
-
|
79
|
-
|
78
|
+
/**
|
79
|
+
* @maxLength 255
|
80
|
+
* @minLength 1
|
81
|
+
* @pattern [a-zA-Z0-9_\-~]+
|
82
|
+
*/
|
83
|
+
type TableName = string;
|
84
|
+
type MigrationJobType = 'apply' | 'start' | 'complete' | 'rollback';
|
85
|
+
type MigrationJobStatus = 'pending' | 'in_progress' | 'completed' | 'failed';
|
86
|
+
type MigrationJobStatusResponse = {
|
80
87
|
/**
|
81
88
|
* The id of the migration job
|
82
89
|
*/
|
@@ -84,11 +91,11 @@ type PgRollJobStatusResponse = {
|
|
84
91
|
/**
|
85
92
|
* The type of the migration job
|
86
93
|
*/
|
87
|
-
type:
|
94
|
+
type: MigrationJobType;
|
88
95
|
/**
|
89
96
|
* The status of the migration job
|
90
97
|
*/
|
91
|
-
status:
|
98
|
+
status: MigrationJobStatus;
|
92
99
|
/**
|
93
100
|
* The error message associated with the migration job
|
94
101
|
*/
|
@@ -99,9 +106,9 @@ type PgRollJobStatusResponse = {
|
|
99
106
|
* @minLength 1
|
100
107
|
* @pattern [a-zA-Z0-9_\-~]+
|
101
108
|
*/
|
102
|
-
type
|
103
|
-
type
|
104
|
-
type
|
109
|
+
type MigrationJobID = string;
|
110
|
+
type MigrationType = 'pgroll' | 'inferred';
|
111
|
+
type MigrationHistoryItem = {
|
105
112
|
/**
|
106
113
|
* The name of the migration
|
107
114
|
*/
|
@@ -127,13 +134,13 @@ type PgRollMigrationHistoryItem = {
|
|
127
134
|
/**
|
128
135
|
* The type of the migration
|
129
136
|
*/
|
130
|
-
migrationType:
|
137
|
+
migrationType: MigrationType;
|
131
138
|
};
|
132
|
-
type
|
139
|
+
type MigrationHistoryResponse = {
|
133
140
|
/**
|
134
141
|
* The migrations that have been applied to the branch
|
135
142
|
*/
|
136
|
-
migrations:
|
143
|
+
migrations: MigrationHistoryItem[];
|
137
144
|
};
|
138
145
|
/**
|
139
146
|
* @maxLength 255
|
@@ -161,6 +168,9 @@ type ListBranchesResponse = {
|
|
161
168
|
databaseName: string;
|
162
169
|
branches: Branch[];
|
163
170
|
};
|
171
|
+
type DatabaseSettings = {
|
172
|
+
search_enabled: boolean;
|
173
|
+
};
|
164
174
|
/**
|
165
175
|
* @maxLength 255
|
166
176
|
* @minLength 1
|
@@ -188,12 +198,6 @@ type StartedFromMetadata = {
|
|
188
198
|
dbBranchID: string;
|
189
199
|
migrationID: string;
|
190
200
|
};
|
191
|
-
/**
|
192
|
-
* @maxLength 255
|
193
|
-
* @minLength 1
|
194
|
-
* @pattern [a-zA-Z0-9_\-~]+
|
195
|
-
*/
|
196
|
-
type TableName = string;
|
197
201
|
type ColumnLink = {
|
198
202
|
table: string;
|
199
203
|
};
|
@@ -254,6 +258,56 @@ type DBBranch = {
|
|
254
258
|
schema: Schema;
|
255
259
|
};
|
256
260
|
type MigrationStatus$1 = 'completed' | 'pending' | 'failed';
|
261
|
+
type BranchSchema = {
|
262
|
+
name: string;
|
263
|
+
tables: {
|
264
|
+
[key: string]: {
|
265
|
+
oid: string;
|
266
|
+
name: string;
|
267
|
+
xataCompatible: boolean;
|
268
|
+
comment: string;
|
269
|
+
columns: {
|
270
|
+
[key: string]: {
|
271
|
+
name: string;
|
272
|
+
type: string;
|
273
|
+
['default']: string | null;
|
274
|
+
nullable: boolean;
|
275
|
+
unique: boolean;
|
276
|
+
comment: string;
|
277
|
+
};
|
278
|
+
};
|
279
|
+
indexes: {
|
280
|
+
[key: string]: {
|
281
|
+
name: string;
|
282
|
+
unique: boolean;
|
283
|
+
columns: string[];
|
284
|
+
};
|
285
|
+
};
|
286
|
+
primaryKey: string[];
|
287
|
+
foreignKeys: {
|
288
|
+
[key: string]: {
|
289
|
+
name: string;
|
290
|
+
columns: string[];
|
291
|
+
referencedTable: string;
|
292
|
+
referencedColumns: string[];
|
293
|
+
};
|
294
|
+
};
|
295
|
+
checkConstraints: {
|
296
|
+
[key: string]: {
|
297
|
+
name: string;
|
298
|
+
columns: string[];
|
299
|
+
definition: string;
|
300
|
+
};
|
301
|
+
};
|
302
|
+
uniqueConstraints: {
|
303
|
+
[key: string]: {
|
304
|
+
name: string;
|
305
|
+
columns: string[];
|
306
|
+
};
|
307
|
+
};
|
308
|
+
};
|
309
|
+
};
|
310
|
+
};
|
257
311
|
type BranchWithCopyID = {
|
258
312
|
branchName: BranchName$1;
|
259
313
|
dbBranchID: string;
|
@@ -906,6 +960,40 @@ type RecordMeta = {
|
|
906
960
|
*/
|
907
961
|
warnings?: string[];
|
908
962
|
};
|
963
|
+
} | {
|
964
|
+
xata_id: RecordID;
|
965
|
+
/**
|
966
|
+
* The record's version. Can be used for optimistic concurrency control.
|
967
|
+
*/
|
968
|
+
xata_version: number;
|
969
|
+
/**
|
970
|
+
* The time when the record was created.
|
971
|
+
*/
|
972
|
+
xata_createdat?: string;
|
973
|
+
/**
|
974
|
+
* The time when the record was last updated.
|
975
|
+
*/
|
976
|
+
xata_updatedat?: string;
|
977
|
+
/**
|
978
|
+
* The record's table name. APIs that return records from multiple tables will set this field accordingly.
|
979
|
+
*/
|
980
|
+
xata_table?: string;
|
981
|
+
/**
|
982
|
+
* Highlights of the record. This is used by the search APIs to indicate which fields and parts of the fields have matched the search.
|
983
|
+
*/
|
984
|
+
xata_highlight?: {
|
985
|
+
[key: string]: string[] | {
|
986
|
+
[key: string]: any;
|
987
|
+
};
|
988
|
+
};
|
989
|
+
/**
|
990
|
+
* The record's relevancy score. This is returned by the search APIs.
|
991
|
+
*/
|
992
|
+
xata_score?: number;
|
993
|
+
/**
|
994
|
+
* Encoding/Decoding errors
|
995
|
+
*/
|
996
|
+
xata_warnings?: string[];
|
909
997
|
};
|
910
998
|
/**
|
911
999
|
* File metadata
|
@@ -914,6 +1002,18 @@ type FileResponse = {
|
|
914
1002
|
id?: FileItemID;
|
915
1003
|
name: FileName;
|
916
1004
|
mediaType: MediaType;
|
1005
|
+
/**
|
1006
|
+
* Enable public access to the file
|
1007
|
+
*/
|
1008
|
+
enablePublicUrl: boolean;
|
1009
|
+
/**
|
1010
|
+
* Time to live for signed URLs
|
1011
|
+
*/
|
1012
|
+
signedUrlTimeout: number;
|
1013
|
+
/**
|
1014
|
+
* Time to live for signed URLs
|
1015
|
+
*/
|
1016
|
+
uploadUrlTimeout: number;
|
917
1017
|
/**
|
918
1018
|
* @format int64
|
919
1019
|
*/
|
@@ -922,6 +1022,24 @@ type FileResponse = {
|
|
922
1022
|
* @format int64
|
923
1023
|
*/
|
924
1024
|
version: number;
|
1025
|
+
/**
|
1026
|
+
* File access URL
|
1027
|
+
*
|
1028
|
+
* @format uri
|
1029
|
+
*/
|
1030
|
+
url: string;
|
1031
|
+
/**
|
1032
|
+
* Signed file access URL
|
1033
|
+
*
|
1034
|
+
* @format uri
|
1035
|
+
*/
|
1036
|
+
signedUrl: string;
|
1037
|
+
/**
|
1038
|
+
* Upload file URL
|
1039
|
+
*
|
1040
|
+
* @format uri
|
1041
|
+
*/
|
1042
|
+
uploadUrl: string;
|
925
1043
|
attributes?: Record<string, any>;
|
926
1044
|
};
|
927
1045
|
type QueryColumnsProjection = (string | ProjectionConfig)[];
|
@@ -1425,6 +1543,11 @@ type RecordUpdateResponse = XataRecord$1 | {
|
|
1425
1543
|
createdAt: string;
|
1426
1544
|
updatedAt: string;
|
1427
1545
|
};
|
1546
|
+
} | {
|
1547
|
+
xata_id: string;
|
1548
|
+
xata_version: number;
|
1549
|
+
xata_createdat: string;
|
1550
|
+
xata_updatedat: string;
|
1428
1551
|
};
|
1429
1552
|
type PutFileResponse = FileResponse;
|
1430
1553
|
type RecordResponse = XataRecord$1;
|
@@ -1468,10 +1591,14 @@ type AggResponse = {
|
|
1468
1591
|
};
|
1469
1592
|
type SQLResponse = {
|
1470
1593
|
records?: SQLRecord[];
|
1594
|
+
rows?: any[][];
|
1471
1595
|
/**
|
1472
1596
|
* Name of the column and its PostgreSQL type
|
1473
1597
|
*/
|
1474
|
-
columns?:
|
1598
|
+
columns?: {
|
1599
|
+
name?: string;
|
1600
|
+
type?: string;
|
1601
|
+
}[];
|
1475
1602
|
/**
|
1476
1603
|
* Number of selected columns
|
1477
1604
|
*/
|
@@ -1765,6 +1892,53 @@ type ClusterResponse = {
|
|
1765
1892
|
state: string;
|
1766
1893
|
clusterID: string;
|
1767
1894
|
};
|
1895
|
+
/**
|
1896
|
+
* @x-internal true
|
1897
|
+
*/
|
1898
|
+
type AutoscalingConfigResponse = {
|
1899
|
+
/**
|
1900
|
+
* @format double
|
1901
|
+
* @default 0.5
|
1902
|
+
*/
|
1903
|
+
minCapacity: number;
|
1904
|
+
/**
|
1905
|
+
* @format double
|
1906
|
+
* @default 4
|
1907
|
+
*/
|
1908
|
+
maxCapacity: number;
|
1909
|
+
};
|
1910
|
+
/**
|
1911
|
+
* @x-internal true
|
1912
|
+
*/
|
1913
|
+
type MaintenanceConfigResponse = {
|
1914
|
+
/**
|
1915
|
+
* @default false
|
1916
|
+
*/
|
1917
|
+
autoMinorVersionUpgrade: boolean;
|
1918
|
+
/**
|
1919
|
+
* @default false
|
1920
|
+
*/
|
1921
|
+
applyImmediately: boolean;
|
1922
|
+
maintenanceWindow: WeeklyTimeWindow;
|
1923
|
+
backupWindow: DailyTimeWindow;
|
1924
|
+
};
|
1925
|
+
/**
|
1926
|
+
* @x-internal true
|
1927
|
+
*/
|
1928
|
+
type ClusterConfigurationResponse = {
|
1929
|
+
engineVersion: string;
|
1930
|
+
instanceType: string;
|
1931
|
+
/**
|
1932
|
+
* @format int64
|
1933
|
+
*/
|
1934
|
+
replicas: number;
|
1935
|
+
/**
|
1936
|
+
* @default false
|
1937
|
+
*/
|
1938
|
+
deletionProtection: boolean;
|
1939
|
+
autoscaling?: AutoscalingConfigResponse;
|
1940
|
+
maintenance: MaintenanceConfigResponse;
|
1941
|
+
};
|
1768
1942
|
/**
|
1769
1943
|
* @x-internal true
|
1770
1944
|
*/
|
@@ -1777,22 +1951,20 @@ type ClusterMetadata = {
|
|
1777
1951
|
* @format int64
|
1778
1952
|
*/
|
1779
1953
|
branches: number;
|
1780
|
-
configuration
|
1954
|
+
configuration: ClusterConfigurationResponse;
|
1781
1955
|
};
|
1782
1956
|
/**
|
1783
1957
|
* @x-internal true
|
1784
1958
|
*/
|
1785
1959
|
type ClusterUpdateDetails = {
|
1960
|
+
command: string;
|
1961
|
+
};
|
1962
|
+
/**
|
1963
|
+
* @x-internal true
|
1964
|
+
*/
|
1965
|
+
type ClusterUpdateMetadata = {
|
1786
1966
|
id: ClusterID;
|
1787
|
-
|
1788
|
-
* @maxLength 63
|
1789
|
-
* @minLength 1
|
1790
|
-
* @pattern [a-zA-Z0-9_-~:]+
|
1791
|
-
*/
|
1792
|
-
name?: string;
|
1793
|
-
configuration?: ClusterConfiguration;
|
1794
|
-
state?: string;
|
1795
|
-
region?: string;
|
1967
|
+
state: string;
|
1796
1968
|
};
|
1797
1969
|
/**
|
1798
1970
|
* Metadata of databases
|
@@ -2715,7 +2887,7 @@ type UpdateClusterVariables = {
|
|
2715
2887
|
/**
|
2716
2888
|
* Update cluster for given cluster ID
|
2717
2889
|
*/
|
2718
|
-
declare const updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<
|
2890
|
+
declare const updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterUpdateMetadata>;
|
2719
2891
|
type GetDatabaseListPathParams = {
|
2720
2892
|
/**
|
2721
2893
|
* Workspace ID
|
@@ -3098,8 +3270,37 @@ type ApplyMigrationVariables = {
|
|
3098
3270
|
/**
|
3099
3271
|
* Applies a pgroll migration to the specified database.
|
3100
3272
|
*/
|
3101
|
-
declare const applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<
|
3102
|
-
type
|
3273
|
+
declare const applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
3274
|
+
type AdaptTablePathParams = {
|
3275
|
+
/**
|
3276
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3277
|
+
*/
|
3278
|
+
dbBranchName: DBBranchName;
|
3279
|
+
/**
|
3280
|
+
* The Table name
|
3281
|
+
*/
|
3282
|
+
tableName: TableName;
|
3283
|
+
workspace: string;
|
3284
|
+
region: string;
|
3285
|
+
};
|
3286
|
+
type AdaptTableError = ErrorWrapper<{
|
3287
|
+
status: 400;
|
3288
|
+
payload: BadRequestError$1;
|
3289
|
+
} | {
|
3290
|
+
status: 401;
|
3291
|
+
payload: AuthError$1;
|
3292
|
+
} | {
|
3293
|
+
status: 404;
|
3294
|
+
payload: SimpleError$1;
|
3295
|
+
}>;
|
3296
|
+
type AdaptTableVariables = {
|
3297
|
+
pathParams: AdaptTablePathParams;
|
3298
|
+
} & DataPlaneFetcherExtraProps;
|
3299
|
+
/**
|
3300
|
+
* Adapt a table to be used from Xata, this will add the Xata metadata fields to the table, making it accessible through the data API.
|
3301
|
+
*/
|
3302
|
+
declare const adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal) => Promise<ApplyMigrationResponse>;
|
3303
|
+
type GetBranchMigrationJobStatusPathParams = {
|
3103
3304
|
/**
|
3104
3305
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3105
3306
|
*/
|
@@ -3107,7 +3308,7 @@ type PgRollStatusPathParams = {
|
|
3107
3308
|
workspace: string;
|
3108
3309
|
region: string;
|
3109
3310
|
};
|
3110
|
-
type
|
3311
|
+
type GetBranchMigrationJobStatusError = ErrorWrapper<{
|
3111
3312
|
status: 400;
|
3112
3313
|
payload: BadRequestError$1;
|
3113
3314
|
} | {
|
@@ -3117,11 +3318,11 @@ type PgRollStatusError = ErrorWrapper<{
|
|
3117
3318
|
status: 404;
|
3118
3319
|
payload: SimpleError$1;
|
3119
3320
|
}>;
|
3120
|
-
type
|
3121
|
-
pathParams:
|
3321
|
+
type GetBranchMigrationJobStatusVariables = {
|
3322
|
+
pathParams: GetBranchMigrationJobStatusPathParams;
|
3122
3323
|
} & DataPlaneFetcherExtraProps;
|
3123
|
-
declare const
|
3124
|
-
type
|
3324
|
+
declare const getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
3325
|
+
type GetMigrationJobStatusPathParams = {
|
3125
3326
|
/**
|
3126
3327
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3127
3328
|
*/
|
@@ -3129,11 +3330,11 @@ type PgRollJobStatusPathParams = {
|
|
3129
3330
|
/**
|
3130
3331
|
* The id of the migration job
|
3131
3332
|
*/
|
3132
|
-
jobId:
|
3333
|
+
jobId: MigrationJobID;
|
3133
3334
|
workspace: string;
|
3134
3335
|
region: string;
|
3135
3336
|
};
|
3136
|
-
type
|
3337
|
+
type GetMigrationJobStatusError = ErrorWrapper<{
|
3137
3338
|
status: 400;
|
3138
3339
|
payload: BadRequestError$1;
|
3139
3340
|
} | {
|
@@ -3143,11 +3344,11 @@ type PgRollJobStatusError = ErrorWrapper<{
|
|
3143
3344
|
status: 404;
|
3144
3345
|
payload: SimpleError$1;
|
3145
3346
|
}>;
|
3146
|
-
type
|
3147
|
-
pathParams:
|
3347
|
+
type GetMigrationJobStatusVariables = {
|
3348
|
+
pathParams: GetMigrationJobStatusPathParams;
|
3148
3349
|
} & DataPlaneFetcherExtraProps;
|
3149
|
-
declare const
|
3150
|
-
type
|
3350
|
+
declare const getMigrationJobStatus: (variables: GetMigrationJobStatusVariables, signal?: AbortSignal) => Promise<MigrationJobStatusResponse>;
|
3351
|
+
type GetMigrationHistoryPathParams = {
|
3151
3352
|
/**
|
3152
3353
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3153
3354
|
*/
|
@@ -3155,7 +3356,7 @@ type PgRollMigrationHistoryPathParams = {
|
|
3155
3356
|
workspace: string;
|
3156
3357
|
region: string;
|
3157
3358
|
};
|
3158
|
-
type
|
3359
|
+
type GetMigrationHistoryError = ErrorWrapper<{
|
3159
3360
|
status: 400;
|
3160
3361
|
payload: BadRequestError$1;
|
3161
3362
|
} | {
|
@@ -3165,10 +3366,10 @@ type PgRollMigrationHistoryError = ErrorWrapper<{
|
|
3165
3366
|
status: 404;
|
3166
3367
|
payload: SimpleError$1;
|
3167
3368
|
}>;
|
3168
|
-
type
|
3169
|
-
pathParams:
|
3369
|
+
type GetMigrationHistoryVariables = {
|
3370
|
+
pathParams: GetMigrationHistoryPathParams;
|
3170
3371
|
} & DataPlaneFetcherExtraProps;
|
3171
|
-
declare const
|
3372
|
+
declare const getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal) => Promise<MigrationHistoryResponse>;
|
3172
3373
|
type GetBranchListPathParams = {
|
3173
3374
|
/**
|
3174
3375
|
* The Database Name
|
@@ -3194,6 +3395,57 @@ type GetBranchListVariables = {
|
|
3194
3395
|
* List all available Branches
|
3195
3396
|
*/
|
3196
3397
|
declare const getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal) => Promise<ListBranchesResponse>;
|
3398
|
+
type GetDatabaseSettingsPathParams = {
|
3399
|
+
/**
|
3400
|
+
* The Database Name
|
3401
|
+
*/
|
3402
|
+
dbName: DBName$1;
|
3403
|
+
workspace: string;
|
3404
|
+
region: string;
|
3405
|
+
};
|
3406
|
+
type GetDatabaseSettingsError = ErrorWrapper<{
|
3407
|
+
status: 400;
|
3408
|
+
payload: SimpleError$1;
|
3409
|
+
} | {
|
3410
|
+
status: 401;
|
3411
|
+
payload: AuthError$1;
|
3412
|
+
} | {
|
3413
|
+
status: 404;
|
3414
|
+
payload: SimpleError$1;
|
3415
|
+
}>;
|
3416
|
+
type GetDatabaseSettingsVariables = {
|
3417
|
+
pathParams: GetDatabaseSettingsPathParams;
|
3418
|
+
} & DataPlaneFetcherExtraProps;
|
3419
|
+
/**
|
3420
|
+
* Get database settings
|
3421
|
+
*/
|
3422
|
+
declare const getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
3423
|
+
type UpdateDatabaseSettingsPathParams = {
|
3424
|
+
/**
|
3425
|
+
* The Database Name
|
3426
|
+
*/
|
3427
|
+
dbName: DBName$1;
|
3428
|
+
workspace: string;
|
3429
|
+
region: string;
|
3430
|
+
};
|
3431
|
+
type UpdateDatabaseSettingsError = ErrorWrapper<{
|
3432
|
+
status: 400;
|
3433
|
+
payload: SimpleError$1;
|
3434
|
+
} | {
|
3435
|
+
status: 401;
|
3436
|
+
payload: AuthError$1;
|
3437
|
+
} | {
|
3438
|
+
status: 404;
|
3439
|
+
payload: SimpleError$1;
|
3440
|
+
}>;
|
3441
|
+
type UpdateDatabaseSettingsVariables = {
|
3442
|
+
body: DatabaseSettings;
|
3443
|
+
pathParams: UpdateDatabaseSettingsPathParams;
|
3444
|
+
} & DataPlaneFetcherExtraProps;
|
3445
|
+
/**
|
3446
|
+
* Update database settings, this endpoint can be used to disable search
|
3447
|
+
*/
|
3448
|
+
declare const updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal) => Promise<DatabaseSettings>;
|
3197
3449
|
type GetBranchDetailsPathParams = {
|
3198
3450
|
/**
|
3199
3451
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3321,7 +3573,7 @@ type GetSchemaError = ErrorWrapper<{
|
|
3321
3573
|
payload: SimpleError$1;
|
3322
3574
|
}>;
|
3323
3575
|
type GetSchemaResponse = {
|
3324
|
-
schema:
|
3576
|
+
schema: BranchSchema;
|
3325
3577
|
};
|
3326
3578
|
type GetSchemaVariables = {
|
3327
3579
|
pathParams: GetSchemaPathParams;
|
@@ -3545,7 +3797,7 @@ type RemoveGitBranchesEntryPathParams = {
|
|
3545
3797
|
};
|
3546
3798
|
type RemoveGitBranchesEntryQueryParams = {
|
3547
3799
|
/**
|
3548
|
-
* The
|
3800
|
+
* The git branch to remove from the mapping
|
3549
3801
|
*/
|
3550
3802
|
gitBranch: string;
|
3551
3803
|
};
|
@@ -3608,7 +3860,7 @@ type ResolveBranchVariables = {
|
|
3608
3860
|
} & DataPlaneFetcherExtraProps;
|
3609
3861
|
/**
|
3610
3862
|
* In order to resolve the database branch, the following algorithm is used:
|
3611
|
-
* * if the `gitBranch` was provided and is found in the [git branches mapping](/api-reference/dbs/db_name/gitBranches), the associated Xata branch is returned
|
3863
|
+
* * if the `gitBranch` was provided and is found in the [git branches mapping](/docs/api-reference/dbs/db_name/gitBranches), the associated Xata branch is returned
|
3612
3864
|
* * else, if a Xata branch with the exact same name as `gitBranch` exists, return it
|
3613
3865
|
* * else, if `fallbackBranch` is provided and a branch with that name exists, return it
|
3614
3866
|
* * else, return the default branch of the DB (`main` or the first branch)
|
@@ -5209,7 +5461,7 @@ type QueryTableVariables = {
|
|
5209
5461
|
* }
|
5210
5462
|
* ```
|
5211
5463
|
*
|
5212
|
-
* For usage, see also the [
|
5464
|
+
* For usage, see also the [Xata SDK documentation](https://xata.io/docs/sdk/get).
|
5213
5465
|
*
|
5214
5466
|
* ### Column selection
|
5215
5467
|
*
|
@@ -6081,7 +6333,7 @@ type SearchTableVariables = {
|
|
6081
6333
|
/**
|
6082
6334
|
* Run a free text search operation in a particular table.
|
6083
6335
|
*
|
6084
|
-
* The endpoint accepts a `query` parameter that is used for the free text search and a set of structured filters (via the `filter` parameter) that are applied before the search. The `filter` parameter uses the same syntax as the [query endpoint](/api-reference/db/db_branch_name/tables/table_name/) with the following exceptions:
|
6336
|
+
* The endpoint accepts a `query` parameter that is used for the free text search and a set of structured filters (via the `filter` parameter) that are applied before the search. The `filter` parameter uses the same syntax as the [query endpoint](/docs/api-reference/db/db_branch_name/tables/table_name/query#filtering) with the following exceptions:
|
6085
6337
|
* * filters `$contains`, `$startsWith`, `$endsWith` don't work on columns of type `text`
|
6086
6338
|
* * filtering on columns of type `multiple` is currently unsupported
|
6087
6339
|
*/
|
@@ -6442,7 +6694,7 @@ type AggregateTableVariables = {
|
|
6442
6694
|
* store that is more appropriate for analytics, makes use of approximation algorithms
|
6443
6695
|
* (e.g for cardinality), and is generally faster and can do more complex aggregations.
|
6444
6696
|
*
|
6445
|
-
* For usage, see the [
|
6697
|
+
* For usage, see the [Aggregation documentation](https://xata.io/docs/sdk/aggregate).
|
6446
6698
|
*/
|
6447
6699
|
declare const aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal) => Promise<AggResponse>;
|
6448
6700
|
type FileAccessPathParams = {
|
@@ -6548,6 +6800,12 @@ type SqlQueryRequestBody = {
|
|
6548
6800
|
* @default strong
|
6549
6801
|
*/
|
6550
6802
|
consistency?: 'strong' | 'eventual';
|
6803
|
+
/**
|
6804
|
+
* The response type.
|
6805
|
+
*
|
6806
|
+
* @default json
|
6807
|
+
*/
|
6808
|
+
responseType?: 'json' | 'array';
|
6551
6809
|
};
|
6552
6810
|
type SqlQueryVariables = {
|
6553
6811
|
body: SqlQueryRequestBody;
|
@@ -6560,10 +6818,6 @@ declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) =>
|
|
6560
6818
|
|
6561
6819
|
declare const operationsByTag: {
|
6562
6820
|
branch: {
|
6563
|
-
applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal | undefined) => Promise<PgRollApplyMigrationResponse>;
|
6564
|
-
pgRollStatus: (variables: PgRollStatusVariables, signal?: AbortSignal | undefined) => Promise<PgRollJobStatusResponse>;
|
6565
|
-
pgRollJobStatus: (variables: PgRollJobStatusVariables, signal?: AbortSignal | undefined) => Promise<PgRollJobStatusResponse>;
|
6566
|
-
pgRollMigrationHistory: (variables: PgRollMigrationHistoryVariables, signal?: AbortSignal | undefined) => Promise<PgRollMigrationHistoryResponse>;
|
6567
6821
|
getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal | undefined) => Promise<ListBranchesResponse>;
|
6568
6822
|
getBranchDetails: (variables: GetBranchDetailsVariables, signal?: AbortSignal | undefined) => Promise<DBBranch>;
|
6569
6823
|
createBranch: (variables: CreateBranchVariables, signal?: AbortSignal | undefined) => Promise<CreateBranchResponse>;
|
@@ -6588,6 +6842,11 @@ declare const operationsByTag: {
|
|
6588
6842
|
removeWorkspaceMember: (variables: RemoveWorkspaceMemberVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
|
6589
6843
|
};
|
6590
6844
|
migrations: {
|
6845
|
+
applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal | undefined) => Promise<ApplyMigrationResponse>;
|
6846
|
+
adaptTable: (variables: AdaptTableVariables, signal?: AbortSignal | undefined) => Promise<ApplyMigrationResponse>;
|
6847
|
+
getBranchMigrationJobStatus: (variables: GetBranchMigrationJobStatusVariables, signal?: AbortSignal | undefined) => Promise<MigrationJobStatusResponse>;
|
6848
|
+
getMigrationJobStatus: (variables: GetMigrationJobStatusVariables, signal?: AbortSignal | undefined) => Promise<MigrationJobStatusResponse>;
|
6849
|
+
getMigrationHistory: (variables: GetMigrationHistoryVariables, signal?: AbortSignal | undefined) => Promise<MigrationHistoryResponse>;
|
6591
6850
|
getSchema: (variables: GetSchemaVariables, signal?: AbortSignal | undefined) => Promise<GetSchemaResponse>;
|
6592
6851
|
getBranchMigrationHistory: (variables: GetBranchMigrationHistoryVariables, signal?: AbortSignal | undefined) => Promise<GetBranchMigrationHistoryResponse>;
|
6593
6852
|
getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables, signal?: AbortSignal | undefined) => Promise<BranchMigrationPlan>;
|
@@ -6610,6 +6869,10 @@ declare const operationsByTag: {
|
|
6610
6869
|
deleteRecord: (variables: DeleteRecordVariables, signal?: AbortSignal | undefined) => Promise<XataRecord$1>;
|
6611
6870
|
bulkInsertTableRecords: (variables: BulkInsertTableRecordsVariables, signal?: AbortSignal | undefined) => Promise<BulkInsertResponse>;
|
6612
6871
|
};
|
6872
|
+
database: {
|
6873
|
+
getDatabaseSettings: (variables: GetDatabaseSettingsVariables, signal?: AbortSignal | undefined) => Promise<DatabaseSettings>;
|
6874
|
+
updateDatabaseSettings: (variables: UpdateDatabaseSettingsVariables, signal?: AbortSignal | undefined) => Promise<DatabaseSettings>;
|
6875
|
+
};
|
6613
6876
|
migrationRequests: {
|
6614
6877
|
queryMigrationRequests: (variables: QueryMigrationRequestsVariables, signal?: AbortSignal | undefined) => Promise<QueryMigrationRequestsResponse>;
|
6615
6878
|
createMigrationRequest: (variables: CreateMigrationRequestVariables, signal?: AbortSignal | undefined) => Promise<CreateMigrationRequestResponse>;
|
@@ -6685,7 +6948,7 @@ declare const operationsByTag: {
|
|
6685
6948
|
listClusters: (variables: ListClustersVariables, signal?: AbortSignal | undefined) => Promise<ListClustersResponse>;
|
6686
6949
|
createCluster: (variables: CreateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterResponse>;
|
6687
6950
|
getCluster: (variables: GetClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterMetadata>;
|
6688
|
-
updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal | undefined) => Promise<
|
6951
|
+
updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterUpdateMetadata>;
|
6689
6952
|
};
|
6690
6953
|
databases: {
|
6691
6954
|
getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal | undefined) => Promise<ListDatabasesResponse>;
|
@@ -6741,22 +7004,27 @@ type schemas_APIKeyName = APIKeyName;
|
|
6741
7004
|
type schemas_AccessToken = AccessToken;
|
6742
7005
|
type schemas_AggExpression = AggExpression;
|
6743
7006
|
type schemas_AggExpressionMap = AggExpressionMap;
|
7007
|
+
type schemas_ApplyMigrationResponse = ApplyMigrationResponse;
|
6744
7008
|
type schemas_AuthorizationCodeRequest = AuthorizationCodeRequest;
|
6745
7009
|
type schemas_AuthorizationCodeResponse = AuthorizationCodeResponse;
|
6746
7010
|
type schemas_AutoscalingConfig = AutoscalingConfig;
|
7011
|
+
type schemas_AutoscalingConfigResponse = AutoscalingConfigResponse;
|
6747
7012
|
type schemas_AverageAgg = AverageAgg;
|
6748
7013
|
type schemas_BoosterExpression = BoosterExpression;
|
6749
7014
|
type schemas_Branch = Branch;
|
6750
7015
|
type schemas_BranchMigration = BranchMigration;
|
6751
7016
|
type schemas_BranchOp = BranchOp;
|
7017
|
+
type schemas_BranchSchema = BranchSchema;
|
6752
7018
|
type schemas_BranchWithCopyID = BranchWithCopyID;
|
6753
7019
|
type schemas_ClusterConfiguration = ClusterConfiguration;
|
7020
|
+
type schemas_ClusterConfigurationResponse = ClusterConfigurationResponse;
|
6754
7021
|
type schemas_ClusterCreateDetails = ClusterCreateDetails;
|
6755
7022
|
type schemas_ClusterID = ClusterID;
|
6756
7023
|
type schemas_ClusterMetadata = ClusterMetadata;
|
6757
7024
|
type schemas_ClusterResponse = ClusterResponse;
|
6758
7025
|
type schemas_ClusterShortMetadata = ClusterShortMetadata;
|
6759
7026
|
type schemas_ClusterUpdateDetails = ClusterUpdateDetails;
|
7027
|
+
type schemas_ClusterUpdateMetadata = ClusterUpdateMetadata;
|
6760
7028
|
type schemas_Column = Column;
|
6761
7029
|
type schemas_ColumnFile = ColumnFile;
|
6762
7030
|
type schemas_ColumnLink = ColumnLink;
|
@@ -6775,6 +7043,7 @@ type schemas_DailyTimeWindow = DailyTimeWindow;
|
|
6775
7043
|
type schemas_DataInputRecord = DataInputRecord;
|
6776
7044
|
type schemas_DatabaseGithubSettings = DatabaseGithubSettings;
|
6777
7045
|
type schemas_DatabaseMetadata = DatabaseMetadata;
|
7046
|
+
type schemas_DatabaseSettings = DatabaseSettings;
|
6778
7047
|
type schemas_DateHistogramAgg = DateHistogramAgg;
|
6779
7048
|
type schemas_FileAccessID = FileAccessID;
|
6780
7049
|
type schemas_FileItemID = FileItemID;
|
@@ -6803,17 +7072,25 @@ type schemas_ListDatabasesResponse = ListDatabasesResponse;
|
|
6803
7072
|
type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
|
6804
7073
|
type schemas_ListRegionsResponse = ListRegionsResponse;
|
6805
7074
|
type schemas_MaintenanceConfig = MaintenanceConfig;
|
7075
|
+
type schemas_MaintenanceConfigResponse = MaintenanceConfigResponse;
|
6806
7076
|
type schemas_MaxAgg = MaxAgg;
|
6807
7077
|
type schemas_MediaType = MediaType;
|
6808
7078
|
type schemas_MetricsDatapoint = MetricsDatapoint;
|
6809
7079
|
type schemas_MetricsLatency = MetricsLatency;
|
6810
7080
|
type schemas_Migration = Migration;
|
6811
7081
|
type schemas_MigrationColumnOp = MigrationColumnOp;
|
7082
|
+
type schemas_MigrationHistoryItem = MigrationHistoryItem;
|
7083
|
+
type schemas_MigrationHistoryResponse = MigrationHistoryResponse;
|
7084
|
+
type schemas_MigrationJobID = MigrationJobID;
|
7085
|
+
type schemas_MigrationJobStatus = MigrationJobStatus;
|
7086
|
+
type schemas_MigrationJobStatusResponse = MigrationJobStatusResponse;
|
7087
|
+
type schemas_MigrationJobType = MigrationJobType;
|
6812
7088
|
type schemas_MigrationObject = MigrationObject;
|
6813
7089
|
type schemas_MigrationOp = MigrationOp;
|
6814
7090
|
type schemas_MigrationRequest = MigrationRequest;
|
6815
7091
|
type schemas_MigrationRequestNumber = MigrationRequestNumber;
|
6816
7092
|
type schemas_MigrationTableOp = MigrationTableOp;
|
7093
|
+
type schemas_MigrationType = MigrationType;
|
6817
7094
|
type schemas_MinAgg = MinAgg;
|
6818
7095
|
type schemas_NumericHistogramAgg = NumericHistogramAgg;
|
6819
7096
|
type schemas_OAuthAccessToken = OAuthAccessToken;
|
@@ -6827,14 +7104,6 @@ type schemas_PageResponse = PageResponse;
|
|
6827
7104
|
type schemas_PageSize = PageSize;
|
6828
7105
|
type schemas_PageToken = PageToken;
|
6829
7106
|
type schemas_PercentilesAgg = PercentilesAgg;
|
6830
|
-
type schemas_PgRollApplyMigrationResponse = PgRollApplyMigrationResponse;
|
6831
|
-
type schemas_PgRollJobStatus = PgRollJobStatus;
|
6832
|
-
type schemas_PgRollJobStatusResponse = PgRollJobStatusResponse;
|
6833
|
-
type schemas_PgRollJobType = PgRollJobType;
|
6834
|
-
type schemas_PgRollMigrationHistoryItem = PgRollMigrationHistoryItem;
|
6835
|
-
type schemas_PgRollMigrationHistoryResponse = PgRollMigrationHistoryResponse;
|
6836
|
-
type schemas_PgRollMigrationJobID = PgRollMigrationJobID;
|
6837
|
-
type schemas_PgRollMigrationType = PgRollMigrationType;
|
6838
7107
|
type schemas_PrefixExpression = PrefixExpression;
|
6839
7108
|
type schemas_ProjectionConfig = ProjectionConfig;
|
6840
7109
|
type schemas_QueryColumnsProjection = QueryColumnsProjection;
|
@@ -6888,7 +7157,7 @@ type schemas_WorkspaceMembers = WorkspaceMembers;
|
|
6888
7157
|
type schemas_WorkspaceMeta = WorkspaceMeta;
|
6889
7158
|
type schemas_WorkspacePlan = WorkspacePlan;
|
6890
7159
|
declare namespace schemas {
|
6891
|
-
export type { schemas_APIKeyName as APIKeyName, schemas_AccessToken as AccessToken, schemas_AggExpression as AggExpression, schemas_AggExpressionMap as AggExpressionMap, AggResponse$1 as AggResponse, schemas_AuthorizationCodeRequest as AuthorizationCodeRequest, schemas_AuthorizationCodeResponse as AuthorizationCodeResponse, schemas_AutoscalingConfig as AutoscalingConfig, schemas_AverageAgg as AverageAgg, schemas_BoosterExpression as BoosterExpression, schemas_Branch as Branch, BranchMetadata$1 as BranchMetadata, schemas_BranchMigration as BranchMigration, BranchName$1 as BranchName, schemas_BranchOp as BranchOp, schemas_BranchWithCopyID as BranchWithCopyID, schemas_ClusterConfiguration as ClusterConfiguration, schemas_ClusterCreateDetails as ClusterCreateDetails, schemas_ClusterID as ClusterID, schemas_ClusterMetadata as ClusterMetadata, schemas_ClusterResponse as ClusterResponse, schemas_ClusterShortMetadata as ClusterShortMetadata, schemas_ClusterUpdateDetails as ClusterUpdateDetails, schemas_Column as Column, schemas_ColumnFile as ColumnFile, schemas_ColumnLink as ColumnLink, schemas_ColumnMigration as ColumnMigration, schemas_ColumnName as ColumnName, schemas_ColumnOpAdd as ColumnOpAdd, schemas_ColumnOpRemove as ColumnOpRemove, schemas_ColumnOpRename as ColumnOpRename, schemas_ColumnVector as ColumnVector, schemas_ColumnsProjection as ColumnsProjection, schemas_Commit as Commit, schemas_CountAgg as CountAgg, schemas_DBBranch as DBBranch, schemas_DBBranchName as DBBranchName, DBName$1 as DBName, schemas_DailyTimeWindow as DailyTimeWindow, schemas_DataInputRecord as DataInputRecord, schemas_DatabaseGithubSettings as DatabaseGithubSettings, schemas_DatabaseMetadata as DatabaseMetadata, DateBooster$1 as DateBooster, schemas_DateHistogramAgg as DateHistogramAgg, DateTime$1 as DateTime, schemas_FileAccessID as FileAccessID, schemas_FileItemID as FileItemID, schemas_FileName as FileName, schemas_FileResponse as FileResponse, schemas_FileSignature as FileSignature, schemas_FilterColumn as FilterColumn, schemas_FilterColumnIncludes as FilterColumnIncludes, schemas_FilterExpression as FilterExpression, schemas_FilterList as FilterList, schemas_FilterPredicate as FilterPredicate, schemas_FilterPredicateOp as FilterPredicateOp, schemas_FilterPredicateRangeOp as FilterPredicateRangeOp, schemas_FilterRangeValue as FilterRangeValue, schemas_FilterValue as FilterValue, schemas_FuzzinessExpression as FuzzinessExpression, schemas_HighlightExpression as HighlightExpression, schemas_InputFile as InputFile, schemas_InputFileArray as InputFileArray, schemas_InputFileEntry as InputFileEntry, schemas_InviteID as InviteID, schemas_InviteKey as InviteKey, schemas_ListBranchesResponse as ListBranchesResponse, schemas_ListClustersResponse as ListClustersResponse, schemas_ListDatabasesResponse as ListDatabasesResponse, schemas_ListGitBranchesResponse as ListGitBranchesResponse, schemas_ListRegionsResponse as ListRegionsResponse, schemas_MaintenanceConfig as MaintenanceConfig, schemas_MaxAgg as MaxAgg, schemas_MediaType as MediaType, schemas_MetricsDatapoint as MetricsDatapoint, schemas_MetricsLatency as MetricsLatency, schemas_Migration as Migration, schemas_MigrationColumnOp as MigrationColumnOp, schemas_MigrationObject as MigrationObject, schemas_MigrationOp as MigrationOp, schemas_MigrationRequest as MigrationRequest, schemas_MigrationRequestNumber as MigrationRequestNumber, MigrationStatus$1 as MigrationStatus, schemas_MigrationTableOp as MigrationTableOp, schemas_MinAgg as MinAgg, NumericBooster$1 as NumericBooster, schemas_NumericHistogramAgg as NumericHistogramAgg, schemas_OAuthAccessToken as OAuthAccessToken, schemas_OAuthClientID as OAuthClientID, schemas_OAuthClientPublicDetails as OAuthClientPublicDetails, schemas_OAuthResponseType as OAuthResponseType, schemas_OAuthScope as OAuthScope, schemas_ObjectValue as ObjectValue, schemas_PageConfig as PageConfig, schemas_PageResponse as PageResponse, schemas_PageSize as PageSize, schemas_PageToken as PageToken, schemas_PercentilesAgg as PercentilesAgg,
|
7160
|
+
export type { schemas_APIKeyName as APIKeyName, schemas_AccessToken as AccessToken, schemas_AggExpression as AggExpression, schemas_AggExpressionMap as AggExpressionMap, AggResponse$1 as AggResponse, schemas_ApplyMigrationResponse as ApplyMigrationResponse, schemas_AuthorizationCodeRequest as AuthorizationCodeRequest, schemas_AuthorizationCodeResponse as AuthorizationCodeResponse, schemas_AutoscalingConfig as AutoscalingConfig, schemas_AutoscalingConfigResponse as AutoscalingConfigResponse, schemas_AverageAgg as AverageAgg, schemas_BoosterExpression as BoosterExpression, schemas_Branch as Branch, BranchMetadata$1 as BranchMetadata, schemas_BranchMigration as BranchMigration, BranchName$1 as BranchName, schemas_BranchOp as BranchOp, schemas_BranchSchema as BranchSchema, schemas_BranchWithCopyID as BranchWithCopyID, schemas_ClusterConfiguration as ClusterConfiguration, schemas_ClusterConfigurationResponse as ClusterConfigurationResponse, schemas_ClusterCreateDetails as ClusterCreateDetails, schemas_ClusterID as ClusterID, schemas_ClusterMetadata as ClusterMetadata, schemas_ClusterResponse as ClusterResponse, schemas_ClusterShortMetadata as ClusterShortMetadata, schemas_ClusterUpdateDetails as ClusterUpdateDetails, schemas_ClusterUpdateMetadata as ClusterUpdateMetadata, schemas_Column as Column, schemas_ColumnFile as ColumnFile, schemas_ColumnLink as ColumnLink, schemas_ColumnMigration as ColumnMigration, schemas_ColumnName as ColumnName, schemas_ColumnOpAdd as ColumnOpAdd, schemas_ColumnOpRemove as ColumnOpRemove, schemas_ColumnOpRename as ColumnOpRename, schemas_ColumnVector as ColumnVector, schemas_ColumnsProjection as ColumnsProjection, schemas_Commit as Commit, schemas_CountAgg as CountAgg, schemas_DBBranch as DBBranch, schemas_DBBranchName as DBBranchName, DBName$1 as DBName, schemas_DailyTimeWindow as DailyTimeWindow, schemas_DataInputRecord as DataInputRecord, schemas_DatabaseGithubSettings as DatabaseGithubSettings, schemas_DatabaseMetadata as DatabaseMetadata, schemas_DatabaseSettings as DatabaseSettings, DateBooster$1 as DateBooster, schemas_DateHistogramAgg as DateHistogramAgg, DateTime$1 as DateTime, schemas_FileAccessID as FileAccessID, schemas_FileItemID as FileItemID, schemas_FileName as FileName, schemas_FileResponse as FileResponse, schemas_FileSignature as FileSignature, schemas_FilterColumn as FilterColumn, schemas_FilterColumnIncludes as FilterColumnIncludes, schemas_FilterExpression as FilterExpression, schemas_FilterList as FilterList, schemas_FilterPredicate as FilterPredicate, schemas_FilterPredicateOp as FilterPredicateOp, schemas_FilterPredicateRangeOp as FilterPredicateRangeOp, schemas_FilterRangeValue as FilterRangeValue, schemas_FilterValue as FilterValue, schemas_FuzzinessExpression as FuzzinessExpression, schemas_HighlightExpression as HighlightExpression, schemas_InputFile as InputFile, schemas_InputFileArray as InputFileArray, schemas_InputFileEntry as InputFileEntry, schemas_InviteID as InviteID, schemas_InviteKey as InviteKey, schemas_ListBranchesResponse as ListBranchesResponse, schemas_ListClustersResponse as ListClustersResponse, schemas_ListDatabasesResponse as ListDatabasesResponse, schemas_ListGitBranchesResponse as ListGitBranchesResponse, schemas_ListRegionsResponse as ListRegionsResponse, schemas_MaintenanceConfig as MaintenanceConfig, schemas_MaintenanceConfigResponse as MaintenanceConfigResponse, schemas_MaxAgg as MaxAgg, schemas_MediaType as MediaType, schemas_MetricsDatapoint as MetricsDatapoint, schemas_MetricsLatency as MetricsLatency, schemas_Migration as Migration, schemas_MigrationColumnOp as MigrationColumnOp, schemas_MigrationHistoryItem as MigrationHistoryItem, schemas_MigrationHistoryResponse as MigrationHistoryResponse, schemas_MigrationJobID as MigrationJobID, schemas_MigrationJobStatus as MigrationJobStatus, schemas_MigrationJobStatusResponse as MigrationJobStatusResponse, schemas_MigrationJobType as MigrationJobType, schemas_MigrationObject as MigrationObject, schemas_MigrationOp as MigrationOp, schemas_MigrationRequest as MigrationRequest, schemas_MigrationRequestNumber as MigrationRequestNumber, MigrationStatus$1 as MigrationStatus, schemas_MigrationTableOp as MigrationTableOp, schemas_MigrationType as MigrationType, schemas_MinAgg as MinAgg, NumericBooster$1 as NumericBooster, schemas_NumericHistogramAgg as NumericHistogramAgg, schemas_OAuthAccessToken as OAuthAccessToken, schemas_OAuthClientID as OAuthClientID, schemas_OAuthClientPublicDetails as OAuthClientPublicDetails, schemas_OAuthResponseType as OAuthResponseType, schemas_OAuthScope as OAuthScope, schemas_ObjectValue as ObjectValue, schemas_PageConfig as PageConfig, schemas_PageResponse as PageResponse, schemas_PageSize as PageSize, schemas_PageToken as PageToken, schemas_PercentilesAgg as PercentilesAgg, schemas_PrefixExpression as PrefixExpression, schemas_ProjectionConfig as ProjectionConfig, schemas_QueryColumnsProjection as QueryColumnsProjection, schemas_RecordID as RecordID, schemas_RecordMeta as RecordMeta, schemas_RecordsMetadata as RecordsMetadata, schemas_Region as Region, schemas_RevLink as RevLink, schemas_Role as Role, schemas_SQLRecord as SQLRecord, schemas_Schema as Schema, schemas_SchemaEditScript as SchemaEditScript, schemas_SearchPageConfig as SearchPageConfig, schemas_SortExpression as SortExpression, schemas_SortOrder as SortOrder, schemas_StartedFromMetadata as StartedFromMetadata, schemas_SumAgg as SumAgg, schemas_SummaryExpression as SummaryExpression, schemas_SummaryExpressionList as SummaryExpressionList, schemas_Table as Table, schemas_TableMigration as TableMigration, schemas_TableName as TableName, schemas_TableOpAdd as TableOpAdd, schemas_TableOpRemove as TableOpRemove, schemas_TableOpRename as TableOpRename, schemas_TableRename as TableRename, schemas_TargetExpression as TargetExpression, schemas_TopValuesAgg as TopValuesAgg, schemas_TransactionDeleteOp as TransactionDeleteOp, schemas_TransactionError as TransactionError, schemas_TransactionFailure as TransactionFailure, schemas_TransactionGetOp as TransactionGetOp, schemas_TransactionInsertOp as TransactionInsertOp, TransactionOperation$1 as TransactionOperation, schemas_TransactionResultColumns as TransactionResultColumns, schemas_TransactionResultDelete as TransactionResultDelete, schemas_TransactionResultGet as TransactionResultGet, schemas_TransactionResultInsert as TransactionResultInsert, schemas_TransactionResultUpdate as TransactionResultUpdate, schemas_TransactionSuccess as TransactionSuccess, schemas_TransactionUpdateOp as TransactionUpdateOp, schemas_UniqueCountAgg as UniqueCountAgg, schemas_User as User, schemas_UserID as UserID, schemas_UserWithID as UserWithID, ValueBooster$1 as ValueBooster, schemas_WeeklyTimeWindow as WeeklyTimeWindow, schemas_Workspace as Workspace, schemas_WorkspaceID as WorkspaceID, schemas_WorkspaceInvite as WorkspaceInvite, schemas_WorkspaceMember as WorkspaceMember, schemas_WorkspaceMembers as WorkspaceMembers, schemas_WorkspaceMeta as WorkspaceMeta, schemas_WorkspacePlan as WorkspacePlan, XataRecord$1 as XataRecord };
|
6892
7161
|
}
|
6893
7162
|
|
6894
7163
|
type ApiExtraProps = Omit<FetcherExtraProps, 'endpoint'>;
|
@@ -7072,6 +7341,19 @@ declare class BranchApi {
|
|
7072
7341
|
gitBranch?: string;
|
7073
7342
|
fallbackBranch?: string;
|
7074
7343
|
}): Promise<ResolveBranchResponse>;
|
7344
|
+
pgRollMigrationHistory({ workspace, region, database, branch }: {
|
7345
|
+
workspace: WorkspaceID;
|
7346
|
+
region: string;
|
7347
|
+
database: DBName$1;
|
7348
|
+
branch: BranchName$1;
|
7349
|
+
}): Promise<MigrationHistoryResponse>;
|
7350
|
+
applyMigration({ workspace, region, database, branch, migration }: {
|
7351
|
+
workspace: WorkspaceID;
|
7352
|
+
region: string;
|
7353
|
+
database: DBName$1;
|
7354
|
+
branch: BranchName$1;
|
7355
|
+
migration: Migration;
|
7356
|
+
}): Promise<ApplyMigrationResponse>;
|
7075
7357
|
}
|
7076
7358
|
declare class TableApi {
|
7077
7359
|
private extraProps;
|
@@ -7549,6 +7831,12 @@ declare class MigrationsApi {
|
|
7549
7831
|
branch: BranchName$1;
|
7550
7832
|
migrations: MigrationObject[];
|
7551
7833
|
}): Promise<SchemaUpdateResponse>;
|
7834
|
+
getSchema({ workspace, region, database, branch }: {
|
7835
|
+
workspace: WorkspaceID;
|
7836
|
+
region: string;
|
7837
|
+
database: DBName$1;
|
7838
|
+
branch: BranchName$1;
|
7839
|
+
}): Promise<GetSchemaResponse>;
|
7552
7840
|
}
|
7553
7841
|
declare class DatabaseApi {
|
7554
7842
|
private extraProps;
|
@@ -8320,10 +8608,11 @@ type SearchPluginResult<Schemas extends Record<string, BaseData>> = {
|
|
8320
8608
|
declare class SearchPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
|
8321
8609
|
#private;
|
8322
8610
|
private db;
|
8323
|
-
constructor(db: SchemaPluginResult<Schemas
|
8611
|
+
constructor(db: SchemaPluginResult<Schemas>);
|
8324
8612
|
build(pluginOptions: XataPluginOptions): SearchPluginResult<Schemas>;
|
8325
8613
|
}
|
8326
|
-
type SearchXataRecord<Record extends XataRecord> = Omit<Record, 'getMetadata'> & {
|
8614
|
+
type SearchXataRecord<Record extends XataRecord> = Omit<Record, 'getMetadata' | 'xata'> & {
|
8615
|
+
xata: XataRecordMetadata & SearchExtraProperties;
|
8327
8616
|
getMetadata: () => XataRecordMetadata & SearchExtraProperties;
|
8328
8617
|
};
|
8329
8618
|
type SearchExtraProperties = {
|
@@ -8644,7 +8933,7 @@ type QueryOptions<T extends XataRecord> = BaseOptions<T> & (CursorQueryOptions |
|
|
8644
8933
|
declare class Query<Record extends XataRecord, Result extends XataRecord = Record> implements Paginable<Record, Result> {
|
8645
8934
|
#private;
|
8646
8935
|
readonly meta: PaginationQueryMeta;
|
8647
|
-
readonly records:
|
8936
|
+
readonly records: PageRecordArray<Result>;
|
8648
8937
|
constructor(repository: RestRepository<Record> | null, table: {
|
8649
8938
|
name: string;
|
8650
8939
|
schema?: Table;
|
@@ -8772,25 +9061,25 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
8772
9061
|
* Performs the query in the database and returns a set of results.
|
8773
9062
|
* @returns An array of records from the database.
|
8774
9063
|
*/
|
8775
|
-
getMany(): Promise<
|
9064
|
+
getMany(): Promise<PageRecordArray<Result>>;
|
8776
9065
|
/**
|
8777
9066
|
* Performs the query in the database and returns a set of results.
|
8778
9067
|
* @param options Additional options to be used when performing the query.
|
8779
9068
|
* @returns An array of records from the database.
|
8780
9069
|
*/
|
8781
|
-
getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<
|
9070
|
+
getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<PageRecordArray<SelectedPick<Record, (typeof options)['columns']>>>;
|
8782
9071
|
/**
|
8783
9072
|
* Performs the query in the database and returns a set of results.
|
8784
9073
|
* @param options Additional options to be used when performing the query.
|
8785
9074
|
* @returns An array of records from the database.
|
8786
9075
|
*/
|
8787
|
-
getMany(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<
|
9076
|
+
getMany(options: OmitBy<QueryOptions<Record>, 'columns'>): Promise<PageRecordArray<Result>>;
|
8788
9077
|
/**
|
8789
9078
|
* Performs the query in the database and returns all the results.
|
8790
9079
|
* Warning: If there are a large number of results, this method can have performance implications.
|
8791
9080
|
* @returns An array of records from the database.
|
8792
9081
|
*/
|
8793
|
-
getAll(): Promise<Result
|
9082
|
+
getAll(): Promise<RecordArray<Result>>;
|
8794
9083
|
/**
|
8795
9084
|
* Performs the query in the database and returns all the results.
|
8796
9085
|
* Warning: If there are a large number of results, this method can have performance implications.
|
@@ -8799,7 +9088,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
8799
9088
|
*/
|
8800
9089
|
getAll<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'> & {
|
8801
9090
|
batchSize?: number;
|
8802
|
-
}>(options: Options): Promise<SelectedPick<Record, (typeof options)['columns']
|
9091
|
+
}>(options: Options): Promise<RecordArray<SelectedPick<Record, (typeof options)['columns']>>>;
|
8803
9092
|
/**
|
8804
9093
|
* Performs the query in the database and returns all the results.
|
8805
9094
|
* Warning: If there are a large number of results, this method can have performance implications.
|
@@ -8808,7 +9097,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
8808
9097
|
*/
|
8809
9098
|
getAll(options: OmitBy<QueryOptions<Record>, 'columns' | 'pagination'> & {
|
8810
9099
|
batchSize?: number;
|
8811
|
-
}): Promise<Result
|
9100
|
+
}): Promise<RecordArray<Result>>;
|
8812
9101
|
/**
|
8813
9102
|
* Performs the query in the database and returns the first result.
|
8814
9103
|
* @returns The first record that matches the query, or null if no record matched the query.
|
@@ -8892,7 +9181,7 @@ type PaginationQueryMeta = {
|
|
8892
9181
|
};
|
8893
9182
|
interface Paginable<Record extends XataRecord, Result extends XataRecord = Record> {
|
8894
9183
|
meta: PaginationQueryMeta;
|
8895
|
-
records:
|
9184
|
+
records: PageRecordArray<Result>;
|
8896
9185
|
nextPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
|
8897
9186
|
previousPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
|
8898
9187
|
startPage(size?: number, offset?: number): Promise<Page<Record, Result>>;
|
@@ -8912,7 +9201,7 @@ declare class Page<Record extends XataRecord, Result extends XataRecord = Record
|
|
8912
9201
|
/**
|
8913
9202
|
* The set of results for this page.
|
8914
9203
|
*/
|
8915
|
-
readonly records:
|
9204
|
+
readonly records: PageRecordArray<Result>;
|
8916
9205
|
constructor(query: Query<Record, Result>, meta: PaginationQueryMeta, records?: Result[]);
|
8917
9206
|
/**
|
8918
9207
|
* Retrieves the next page of results.
|
@@ -8966,6 +9255,14 @@ declare const PAGINATION_MAX_OFFSET = 49000;
|
|
8966
9255
|
declare const PAGINATION_DEFAULT_OFFSET = 0;
|
8967
9256
|
declare function isCursorPaginationOptions(options: Record<string, unknown> | undefined | null): options is CursorNavigationOptions;
|
8968
9257
|
declare class RecordArray<Result extends XataRecord> extends Array<Result> {
|
9258
|
+
constructor(overrideRecords?: Result[]);
|
9259
|
+
static parseConstructorParams(...args: any[]): any[];
|
9260
|
+
toArray(): Result[];
|
9261
|
+
toSerializable(): JSONData<Result>[];
|
9262
|
+
toString(): string;
|
9263
|
+
map<U>(callbackfn: (value: Result, index: number, array: Result[]) => U, thisArg?: any): U[];
|
9264
|
+
}
|
9265
|
+
declare class PageRecordArray<Result extends XataRecord> extends Array<Result> {
|
8969
9266
|
#private;
|
8970
9267
|
constructor(page: Paginable<any, Result>, overrideRecords?: Result[]);
|
8971
9268
|
static parseConstructorParams(...args: any[]): any[];
|
@@ -8978,25 +9275,25 @@ declare class RecordArray<Result extends XataRecord> extends Array<Result> {
|
|
8978
9275
|
*
|
8979
9276
|
* @returns A new array of objects
|
8980
9277
|
*/
|
8981
|
-
nextPage(size?: number, offset?: number): Promise<
|
9278
|
+
nextPage(size?: number, offset?: number): Promise<PageRecordArray<Result>>;
|
8982
9279
|
/**
|
8983
9280
|
* Retrieve previous page of records
|
8984
9281
|
*
|
8985
9282
|
* @returns A new array of objects
|
8986
9283
|
*/
|
8987
|
-
previousPage(size?: number, offset?: number): Promise<
|
9284
|
+
previousPage(size?: number, offset?: number): Promise<PageRecordArray<Result>>;
|
8988
9285
|
/**
|
8989
9286
|
* Retrieve start page of records
|
8990
9287
|
*
|
8991
9288
|
* @returns A new array of objects
|
8992
9289
|
*/
|
8993
|
-
startPage(size?: number, offset?: number): Promise<
|
9290
|
+
startPage(size?: number, offset?: number): Promise<PageRecordArray<Result>>;
|
8994
9291
|
/**
|
8995
9292
|
* Retrieve end page of records
|
8996
9293
|
*
|
8997
9294
|
* @returns A new array of objects
|
8998
9295
|
*/
|
8999
|
-
endPage(size?: number, offset?: number): Promise<
|
9296
|
+
endPage(size?: number, offset?: number): Promise<PageRecordArray<Result>>;
|
9000
9297
|
/**
|
9001
9298
|
* @returns Boolean indicating if there is a next page
|
9002
9299
|
*/
|
@@ -9852,7 +10149,7 @@ type SchemaPluginResult<Schemas extends Record<string, XataRecord>> = {
|
|
9852
10149
|
};
|
9853
10150
|
declare class SchemaPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
|
9854
10151
|
#private;
|
9855
|
-
constructor(
|
10152
|
+
constructor();
|
9856
10153
|
build(pluginOptions: XataPluginOptions): SchemaPluginResult<Schemas>;
|
9857
10154
|
}
|
9858
10155
|
|
@@ -9914,9 +10211,14 @@ type SQLQueryParams<T = any[]> = {
|
|
9914
10211
|
* The consistency level to use when executing the query.
|
9915
10212
|
*/
|
9916
10213
|
consistency?: 'strong' | 'eventual';
|
10214
|
+
/**
|
10215
|
+
* The response type to use when executing the query.
|
10216
|
+
*/
|
10217
|
+
responseType?: 'json' | 'array';
|
9917
10218
|
};
|
9918
10219
|
type SQLQuery = TemplateStringsArray | SQLQueryParams;
|
9919
|
-
type
|
10220
|
+
type SQLResponseType = 'json' | 'array';
|
10221
|
+
type SQLQueryResultJSON<T> = {
|
9920
10222
|
/**
|
9921
10223
|
* The records returned by the query.
|
9922
10224
|
*/
|
@@ -9924,15 +10226,34 @@ type SQLQueryResult<T> = {
|
|
9924
10226
|
/**
|
9925
10227
|
* The columns metadata returned by the query.
|
9926
10228
|
*/
|
9927
|
-
columns
|
9928
|
-
|
10229
|
+
columns: Array<{
|
10230
|
+
name: string;
|
10231
|
+
type: string;
|
10232
|
+
}>;
|
10233
|
+
/**
|
10234
|
+
* Optional warning message returned by the query.
|
10235
|
+
*/
|
10236
|
+
warning?: string;
|
10237
|
+
};
|
10238
|
+
type SQLQueryResultArray = {
|
10239
|
+
/**
|
10240
|
+
* The records returned by the query.
|
10241
|
+
*/
|
10242
|
+
rows: any[][];
|
10243
|
+
/**
|
10244
|
+
* The columns metadata returned by the query.
|
10245
|
+
*/
|
10246
|
+
columns: Array<{
|
10247
|
+
name: string;
|
10248
|
+
type: string;
|
9929
10249
|
}>;
|
9930
10250
|
/**
|
9931
10251
|
* Optional warning message returned by the query.
|
9932
10252
|
*/
|
9933
10253
|
warning?: string;
|
9934
10254
|
};
|
9935
|
-
type
|
10255
|
+
type SQLQueryResult<T, Mode extends SQLResponseType = 'json'> = Mode extends 'json' ? SQLQueryResultJSON<T> : Mode extends 'array' ? SQLQueryResultArray : never;
|
10256
|
+
type SQLPluginResult = <T, Query extends SQLQuery = SQLQuery>(query: Query, ...parameters: any[]) => Promise<SQLQueryResult<T, Query extends SQLQueryParams<any> ? Query['responseType'] extends SQLResponseType ? NonNullable<Query['responseType']> : 'json' : 'json'>>;
|
9936
10257
|
declare class SQLPlugin extends XataPlugin {
|
9937
10258
|
build(pluginOptions: XataPluginOptions): SQLPluginResult;
|
9938
10259
|
}
|
@@ -10099,4 +10420,4 @@ declare class XataError extends Error {
|
|
10099
10420
|
constructor(message: string, status: number);
|
10100
10421
|
}
|
10101
10422
|
|
10102
|
-
export { type AcceptWorkspaceMemberInviteError, type AcceptWorkspaceMemberInvitePathParams, type AcceptWorkspaceMemberInviteVariables, type AddGitBranchesEntryError, type AddGitBranchesEntryPathParams, type AddGitBranchesEntryRequestBody, type AddGitBranchesEntryResponse, type AddGitBranchesEntryVariables, type AddTableColumnError, type AddTableColumnPathParams, type AddTableColumnVariables, type AggregateTableError, type AggregateTablePathParams, type AggregateTableRequestBody, type AggregateTableVariables, type ApiExtraProps, type ApplyBranchSchemaEditError, type ApplyBranchSchemaEditPathParams, type ApplyBranchSchemaEditRequestBody, type ApplyBranchSchemaEditVariables, type ApplyMigrationError, type ApplyMigrationPathParams, type ApplyMigrationRequestBody, type ApplyMigrationVariables, type AskOptions, type AskResult, type AskTableError, type AskTablePathParams, type AskTableRequestBody, type AskTableResponse, type AskTableSessionError, type AskTableSessionPathParams, type AskTableSessionRequestBody, type AskTableSessionResponse, type AskTableSessionVariables, type AskTableVariables, BaseClient, type BaseClientOptions, type BaseData, type BaseSchema, type BinaryFile, type BranchTransactionError, type BranchTransactionPathParams, type BranchTransactionRequestBody, type BranchTransactionVariables, type BulkInsertTableRecordsError, type BulkInsertTableRecordsPathParams, type BulkInsertTableRecordsQueryParams, type BulkInsertTableRecordsRequestBody, type BulkInsertTableRecordsVariables, type CacheImpl, type CancelWorkspaceMemberInviteError, type CancelWorkspaceMemberInvitePathParams, type CancelWorkspaceMemberInviteVariables, type ClientConstructor, type ColumnsByValue, type CompareBranchSchemasError, type CompareBranchSchemasPathParams, type CompareBranchSchemasRequestBody, type CompareBranchSchemasVariables, type CompareBranchWithUserSchemaError, type CompareBranchWithUserSchemaPathParams, type CompareBranchWithUserSchemaRequestBody, type CompareBranchWithUserSchemaVariables, type CompareMigrationRequestError, type CompareMigrationRequestPathParams, type CompareMigrationRequestVariables, type CopyBranchError, type CopyBranchPathParams, type CopyBranchRequestBody, type CopyBranchVariables, type CreateBranchError, type CreateBranchPathParams, type CreateBranchQueryParams, type CreateBranchRequestBody, type CreateBranchResponse, type CreateBranchVariables, type CreateClusterError, type CreateClusterPathParams, type CreateClusterVariables, type CreateDatabaseError, type CreateDatabasePathParams, type CreateDatabaseRequestBody, type CreateDatabaseResponse, type CreateDatabaseVariables, type CreateMigrationRequestError, type CreateMigrationRequestPathParams, type CreateMigrationRequestRequestBody, type CreateMigrationRequestResponse, type CreateMigrationRequestVariables, type CreateTableError, type CreateTablePathParams, type CreateTableResponse, type CreateTableVariables, type CreateUserAPIKeyError, type CreateUserAPIKeyPathParams, type CreateUserAPIKeyResponse, type CreateUserAPIKeyVariables, type CreateWorkspaceError, type CreateWorkspaceVariables, type CursorNavigationOptions, type DeleteBranchError, type DeleteBranchPathParams, type DeleteBranchResponse, type DeleteBranchVariables, type DeleteColumnError, type DeleteColumnPathParams, type DeleteColumnVariables, type DeleteDatabaseError, type DeleteDatabaseGithubSettingsError, type DeleteDatabaseGithubSettingsPathParams, type DeleteDatabaseGithubSettingsVariables, type DeleteDatabasePathParams, type DeleteDatabaseResponse, type DeleteDatabaseVariables, type DeleteFileError, type DeleteFileItemError, type DeleteFileItemPathParams, type DeleteFileItemVariables, type DeleteFilePathParams, type DeleteFileVariables, type DeleteOAuthAccessTokenError, type DeleteOAuthAccessTokenPathParams, type DeleteOAuthAccessTokenVariables, type DeleteRecordError, type DeleteRecordPathParams, type DeleteRecordQueryParams, type DeleteRecordVariables, type DeleteTableError, type DeleteTablePathParams, type DeleteTableResponse, type DeleteTableVariables, type DeleteTransactionOperation, type DeleteUserAPIKeyError, type DeleteUserAPIKeyPathParams, type DeleteUserAPIKeyVariables, type DeleteUserError, type DeleteUserOAuthClientError, type DeleteUserOAuthClientPathParams, type DeleteUserOAuthClientVariables, type DeleteUserVariables, type DeleteWorkspaceError, type DeleteWorkspacePathParams, type DeleteWorkspaceVariables, type DeserializedType, type DownloadDestination, type EditableData, type ExecuteBranchMigrationPlanError, type ExecuteBranchMigrationPlanPathParams, type ExecuteBranchMigrationPlanRequestBody, type ExecuteBranchMigrationPlanVariables, type FetchImpl, FetcherError, type FetcherExtraProps, type FileAccessError, type FileAccessPathParams, type FileAccessQueryParams, type FileAccessVariables, type FileUploadError, type FileUploadPathParams, type FileUploadQueryParams, type FileUploadVariables, FilesPlugin, type FilesPluginResult, type GetAuthorizationCodeError, type GetAuthorizationCodeQueryParams, type GetAuthorizationCodeVariables, type GetBranchDetailsError, type GetBranchDetailsPathParams, type GetBranchDetailsVariables, type GetBranchListError, type GetBranchListPathParams, type GetBranchListVariables, type GetBranchMetadataError, type GetBranchMetadataPathParams, type GetBranchMetadataVariables, type GetBranchMigrationHistoryError, type GetBranchMigrationHistoryPathParams, type GetBranchMigrationHistoryRequestBody, type GetBranchMigrationHistoryResponse, type GetBranchMigrationHistoryVariables, type GetBranchMigrationPlanError, type GetBranchMigrationPlanPathParams, type GetBranchMigrationPlanVariables, type GetBranchSchemaHistoryError, type GetBranchSchemaHistoryPathParams, type GetBranchSchemaHistoryRequestBody, type GetBranchSchemaHistoryResponse, type GetBranchSchemaHistoryVariables, type GetBranchStatsError, type GetBranchStatsPathParams, type GetBranchStatsResponse, type GetBranchStatsVariables, type GetClusterError, type GetClusterPathParams, type GetClusterVariables, type GetColumnError, type GetColumnPathParams, type GetColumnVariables, type GetDatabaseGithubSettingsError, type GetDatabaseGithubSettingsPathParams, type GetDatabaseGithubSettingsVariables, type GetDatabaseListError, type GetDatabaseListPathParams, type GetDatabaseListVariables, type GetDatabaseMetadataError, type GetDatabaseMetadataPathParams, type GetDatabaseMetadataVariables, type GetFileError, type GetFileItemError, type GetFileItemPathParams, type GetFileItemVariables, type GetFilePathParams, type GetFileVariables, type GetGitBranchesMappingError, type GetGitBranchesMappingPathParams, type GetGitBranchesMappingVariables, type GetMigrationRequestError, type GetMigrationRequestIsMergedError, type GetMigrationRequestIsMergedPathParams, type GetMigrationRequestIsMergedResponse, type GetMigrationRequestIsMergedVariables, type GetMigrationRequestPathParams, type GetMigrationRequestVariables, type GetRecordError, type GetRecordPathParams, type GetRecordQueryParams, type GetRecordVariables, type GetSchemaError, type GetSchemaPathParams, type GetSchemaResponse, type GetSchemaVariables, type GetTableColumnsError, type GetTableColumnsPathParams, type GetTableColumnsResponse, type GetTableColumnsVariables, type GetTableSchemaError, type GetTableSchemaPathParams, type GetTableSchemaResponse, type GetTableSchemaVariables, type GetTransactionOperation, type GetUserAPIKeysError, type GetUserAPIKeysResponse, type GetUserAPIKeysVariables, type GetUserError, type GetUserOAuthAccessTokensError, type GetUserOAuthAccessTokensResponse, type GetUserOAuthAccessTokensVariables, type GetUserOAuthClientsError, type GetUserOAuthClientsResponse, type GetUserOAuthClientsVariables, type GetUserVariables, type GetWorkspaceError, type GetWorkspaceMembersListError, type GetWorkspaceMembersListPathParams, type GetWorkspaceMembersListVariables, type GetWorkspacePathParams, type GetWorkspaceVariables, type GetWorkspacesListError, type GetWorkspacesListResponse, type GetWorkspacesListVariables, type GrantAuthorizationCodeError, type GrantAuthorizationCodeVariables, type HostProvider, type Identifiable, type ImageTransformations, type InsertRecordError, type InsertRecordPathParams, type InsertRecordQueryParams, type InsertRecordVariables, type InsertRecordWithIDError, type InsertRecordWithIDPathParams, type InsertRecordWithIDQueryParams, type InsertRecordWithIDVariables, type InsertTransactionOperation, type InviteWorkspaceMemberError, type InviteWorkspaceMemberPathParams, type InviteWorkspaceMemberRequestBody, type InviteWorkspaceMemberVariables, type JSONData, type KeywordAskOptions, type Link, type ListClustersError, type ListClustersPathParams, type ListClustersQueryParams, type ListClustersVariables, type ListMigrationRequestsCommitsError, type ListMigrationRequestsCommitsPathParams, type ListMigrationRequestsCommitsRequestBody, type ListMigrationRequestsCommitsResponse, type ListMigrationRequestsCommitsVariables, type ListRegionsError, type ListRegionsPathParams, type ListRegionsVariables, type MergeMigrationRequestError, type MergeMigrationRequestPathParams, type MergeMigrationRequestVariables, type OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, type Paginable, type PaginationQueryMeta, type PgRollJobStatusError, type PgRollJobStatusPathParams, type PgRollJobStatusVariables, type PgRollMigrationHistoryError, type PgRollMigrationHistoryPathParams, type PgRollMigrationHistoryVariables, type PgRollStatusError, type PgRollStatusPathParams, type PgRollStatusVariables, type PreviewBranchSchemaEditError, type PreviewBranchSchemaEditPathParams, type PreviewBranchSchemaEditRequestBody, type PreviewBranchSchemaEditResponse, type PreviewBranchSchemaEditVariables, type PushBranchMigrationsError, type PushBranchMigrationsPathParams, type PushBranchMigrationsRequestBody, type PushBranchMigrationsVariables, type PutFileError, type PutFileItemError, type PutFileItemPathParams, type PutFileItemVariables, type PutFilePathParams, type PutFileVariables, Query, type QueryMigrationRequestsError, type QueryMigrationRequestsPathParams, type QueryMigrationRequestsRequestBody, type QueryMigrationRequestsResponse, type QueryMigrationRequestsVariables, type QueryTableError, type QueryTablePathParams, type QueryTableRequestBody, type QueryTableVariables, RecordArray, RecordColumnTypes, type RemoveGitBranchesEntryError, type RemoveGitBranchesEntryPathParams, type RemoveGitBranchesEntryQueryParams, type RemoveGitBranchesEntryVariables, type RemoveWorkspaceMemberError, type RemoveWorkspaceMemberPathParams, type RemoveWorkspaceMemberVariables, type RenameDatabaseError, type RenameDatabasePathParams, type RenameDatabaseRequestBody, type RenameDatabaseVariables, Repository, type ResendWorkspaceMemberInviteError, type ResendWorkspaceMemberInvitePathParams, type ResendWorkspaceMemberInviteVariables, type ResolveBranchError, type ResolveBranchPathParams, type ResolveBranchQueryParams, type ResolveBranchResponse, type ResolveBranchVariables, responses as Responses, RestRepository, SQLPlugin, type SQLPluginResult, type SQLQuery, type SQLQueryParams, type SQLQueryResult, type SchemaDefinition, type SchemaInference, SchemaPlugin, type SchemaPluginResult, schemas as Schemas, type SearchBranchError, type SearchBranchPathParams, type SearchBranchRequestBody, type SearchBranchVariables, type SearchOptions, SearchPlugin, type SearchPluginResult, type SearchTableError, type SearchTablePathParams, type SearchTableRequestBody, type SearchTableVariables, type SearchXataRecord, type SelectableColumn, type SelectableColumnWithObjectNotation, type SelectedPick, type SerializedString, Serializer, type SerializerResult, type SetTableSchemaError, type SetTableSchemaPathParams, type SetTableSchemaRequestBody, type SetTableSchemaVariables, SimpleCache, type SimpleCacheOptions, type SqlQueryError, type SqlQueryPathParams, type SqlQueryRequestBody, type SqlQueryVariables, type SummarizeTableError, type SummarizeTablePathParams, type SummarizeTableRequestBody, type SummarizeTableVariables, type TotalCount, type TransactionOperation, TransactionPlugin, type TransactionPluginResult, type TransactionResults, type UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, type UpdateClusterError, type UpdateClusterPathParams, type UpdateClusterVariables, type UpdateColumnError, type UpdateColumnPathParams, type UpdateColumnRequestBody, type UpdateColumnVariables, type UpdateDatabaseGithubSettingsError, type UpdateDatabaseGithubSettingsPathParams, type UpdateDatabaseGithubSettingsVariables, type UpdateDatabaseMetadataError, type UpdateDatabaseMetadataPathParams, type UpdateDatabaseMetadataRequestBody, type UpdateDatabaseMetadataVariables, type UpdateMigrationRequestError, type UpdateMigrationRequestPathParams, type UpdateMigrationRequestRequestBody, type UpdateMigrationRequestVariables, type UpdateOAuthAccessTokenError, type UpdateOAuthAccessTokenPathParams, type UpdateOAuthAccessTokenRequestBody, type UpdateOAuthAccessTokenVariables, type UpdateRecordWithIDError, type UpdateRecordWithIDPathParams, type UpdateRecordWithIDQueryParams, type UpdateRecordWithIDVariables, type UpdateTableError, type UpdateTablePathParams, type UpdateTableRequestBody, type UpdateTableVariables, type UpdateTransactionOperation, type UpdateUserError, type UpdateUserVariables, type UpdateWorkspaceError, type UpdateWorkspaceMemberInviteError, type UpdateWorkspaceMemberInvitePathParams, type UpdateWorkspaceMemberInviteRequestBody, type UpdateWorkspaceMemberInviteVariables, type UpdateWorkspaceMemberRoleError, type UpdateWorkspaceMemberRolePathParams, type UpdateWorkspaceMemberRoleRequestBody, type UpdateWorkspaceMemberRoleVariables, type UpdateWorkspacePathParams, type UpdateWorkspaceVariables, type UploadDestination, type UpsertRecordWithIDError, type UpsertRecordWithIDPathParams, type UpsertRecordWithIDQueryParams, type UpsertRecordWithIDVariables, type ValueAtColumn, type VectorAskOptions, type VectorSearchTableError, type VectorSearchTablePathParams, type VectorSearchTableRequestBody, type VectorSearchTableVariables, XataApiClient, type XataApiClientOptions, XataApiPlugin, type XataArrayFile, XataError, XataFile, XataPlugin, type XataPluginOptions, type XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, applyMigration, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createCluster, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, fileUpload, ge, getAPIKey, getAuthorizationCode, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getCluster, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getSchema, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, getWorkspacesList, grantAuthorizationCode, greaterEquals, greaterThan, greaterThanEquals, gt, gte, iContains, iPattern, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isValidExpandedColumn, isValidSelectableColumns, isXataRecord, le, lessEquals, lessThan, lessThanEquals, listClusters, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, pgRollJobStatus, pgRollMigrationHistory, pgRollStatus, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, sqlQuery, startsWith, summarizeTable, transformImage, updateBranchMetadata, updateBranchSchema, updateCluster, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };
|
10423
|
+
export { type AcceptWorkspaceMemberInviteError, type AcceptWorkspaceMemberInvitePathParams, type AcceptWorkspaceMemberInviteVariables, type AdaptTableError, type AdaptTablePathParams, type AdaptTableVariables, type AddGitBranchesEntryError, type AddGitBranchesEntryPathParams, type AddGitBranchesEntryRequestBody, type AddGitBranchesEntryResponse, type AddGitBranchesEntryVariables, type AddTableColumnError, type AddTableColumnPathParams, type AddTableColumnVariables, type AggregateTableError, type AggregateTablePathParams, type AggregateTableRequestBody, type AggregateTableVariables, type ApiExtraProps, type ApplyBranchSchemaEditError, type ApplyBranchSchemaEditPathParams, type ApplyBranchSchemaEditRequestBody, type ApplyBranchSchemaEditVariables, type ApplyMigrationError, type ApplyMigrationPathParams, type ApplyMigrationRequestBody, type ApplyMigrationVariables, type AskOptions, type AskResult, type AskTableError, type AskTablePathParams, type AskTableRequestBody, type AskTableResponse, type AskTableSessionError, type AskTableSessionPathParams, type AskTableSessionRequestBody, type AskTableSessionResponse, type AskTableSessionVariables, type AskTableVariables, BaseClient, type BaseClientOptions, type BaseData, type BaseSchema, type BinaryFile, type BranchTransactionError, type BranchTransactionPathParams, type BranchTransactionRequestBody, type BranchTransactionVariables, type BulkInsertTableRecordsError, type BulkInsertTableRecordsPathParams, type BulkInsertTableRecordsQueryParams, type BulkInsertTableRecordsRequestBody, type BulkInsertTableRecordsVariables, type CacheImpl, type CancelWorkspaceMemberInviteError, type CancelWorkspaceMemberInvitePathParams, type CancelWorkspaceMemberInviteVariables, type ClientConstructor, type ColumnsByValue, type CompareBranchSchemasError, type CompareBranchSchemasPathParams, type CompareBranchSchemasRequestBody, type CompareBranchSchemasVariables, type CompareBranchWithUserSchemaError, type CompareBranchWithUserSchemaPathParams, type CompareBranchWithUserSchemaRequestBody, type CompareBranchWithUserSchemaVariables, type CompareMigrationRequestError, type CompareMigrationRequestPathParams, type CompareMigrationRequestVariables, type CopyBranchError, type CopyBranchPathParams, type CopyBranchRequestBody, type CopyBranchVariables, type CreateBranchError, type CreateBranchPathParams, type CreateBranchQueryParams, type CreateBranchRequestBody, type CreateBranchResponse, type CreateBranchVariables, type CreateClusterError, type CreateClusterPathParams, type CreateClusterVariables, type CreateDatabaseError, type CreateDatabasePathParams, type CreateDatabaseRequestBody, type CreateDatabaseResponse, type CreateDatabaseVariables, type CreateMigrationRequestError, type CreateMigrationRequestPathParams, type CreateMigrationRequestRequestBody, type CreateMigrationRequestResponse, type CreateMigrationRequestVariables, type CreateTableError, type CreateTablePathParams, type CreateTableResponse, type CreateTableVariables, type CreateUserAPIKeyError, type CreateUserAPIKeyPathParams, type CreateUserAPIKeyResponse, type CreateUserAPIKeyVariables, type CreateWorkspaceError, type CreateWorkspaceVariables, type CursorNavigationOptions, type DeleteBranchError, type DeleteBranchPathParams, type DeleteBranchResponse, type DeleteBranchVariables, type DeleteColumnError, type DeleteColumnPathParams, type DeleteColumnVariables, type DeleteDatabaseError, type DeleteDatabaseGithubSettingsError, type DeleteDatabaseGithubSettingsPathParams, type DeleteDatabaseGithubSettingsVariables, type DeleteDatabasePathParams, type DeleteDatabaseResponse, type DeleteDatabaseVariables, type DeleteFileError, type DeleteFileItemError, type DeleteFileItemPathParams, type DeleteFileItemVariables, type DeleteFilePathParams, type DeleteFileVariables, type DeleteOAuthAccessTokenError, type DeleteOAuthAccessTokenPathParams, type DeleteOAuthAccessTokenVariables, type DeleteRecordError, type DeleteRecordPathParams, type DeleteRecordQueryParams, type DeleteRecordVariables, type DeleteTableError, type DeleteTablePathParams, type DeleteTableResponse, type DeleteTableVariables, type DeleteTransactionOperation, type DeleteUserAPIKeyError, type DeleteUserAPIKeyPathParams, type DeleteUserAPIKeyVariables, type DeleteUserError, type DeleteUserOAuthClientError, type DeleteUserOAuthClientPathParams, type DeleteUserOAuthClientVariables, type DeleteUserVariables, type DeleteWorkspaceError, type DeleteWorkspacePathParams, type DeleteWorkspaceVariables, type DeserializedType, type DownloadDestination, type EditableData, type ExecuteBranchMigrationPlanError, type ExecuteBranchMigrationPlanPathParams, type ExecuteBranchMigrationPlanRequestBody, type ExecuteBranchMigrationPlanVariables, type FetchImpl, FetcherError, type FetcherExtraProps, type FileAccessError, type FileAccessPathParams, type FileAccessQueryParams, type FileAccessVariables, type FileUploadError, type FileUploadPathParams, type FileUploadQueryParams, type FileUploadVariables, FilesPlugin, type FilesPluginResult, type GetAuthorizationCodeError, type GetAuthorizationCodeQueryParams, type GetAuthorizationCodeVariables, type GetBranchDetailsError, type GetBranchDetailsPathParams, type GetBranchDetailsVariables, type GetBranchListError, type GetBranchListPathParams, type GetBranchListVariables, type GetBranchMetadataError, type GetBranchMetadataPathParams, type GetBranchMetadataVariables, type GetBranchMigrationHistoryError, type GetBranchMigrationHistoryPathParams, type GetBranchMigrationHistoryRequestBody, type GetBranchMigrationHistoryResponse, type GetBranchMigrationHistoryVariables, type GetBranchMigrationJobStatusError, type GetBranchMigrationJobStatusPathParams, type GetBranchMigrationJobStatusVariables, type GetBranchMigrationPlanError, type GetBranchMigrationPlanPathParams, type GetBranchMigrationPlanVariables, type GetBranchSchemaHistoryError, type GetBranchSchemaHistoryPathParams, type GetBranchSchemaHistoryRequestBody, type GetBranchSchemaHistoryResponse, type GetBranchSchemaHistoryVariables, type GetBranchStatsError, type GetBranchStatsPathParams, type GetBranchStatsResponse, type GetBranchStatsVariables, type GetClusterError, type GetClusterPathParams, type GetClusterVariables, type GetColumnError, type GetColumnPathParams, type GetColumnVariables, type GetDatabaseGithubSettingsError, type GetDatabaseGithubSettingsPathParams, type GetDatabaseGithubSettingsVariables, type GetDatabaseListError, type GetDatabaseListPathParams, type GetDatabaseListVariables, type GetDatabaseMetadataError, type GetDatabaseMetadataPathParams, type GetDatabaseMetadataVariables, type GetDatabaseSettingsError, type GetDatabaseSettingsPathParams, type GetDatabaseSettingsVariables, type GetFileError, type GetFileItemError, type GetFileItemPathParams, type GetFileItemVariables, type GetFilePathParams, type GetFileVariables, type GetGitBranchesMappingError, type GetGitBranchesMappingPathParams, type GetGitBranchesMappingVariables, type GetMigrationHistoryError, type GetMigrationHistoryPathParams, type GetMigrationHistoryVariables, type GetMigrationJobStatusError, type GetMigrationJobStatusPathParams, type GetMigrationJobStatusVariables, type GetMigrationRequestError, type GetMigrationRequestIsMergedError, type GetMigrationRequestIsMergedPathParams, type GetMigrationRequestIsMergedResponse, type GetMigrationRequestIsMergedVariables, type GetMigrationRequestPathParams, type GetMigrationRequestVariables, type GetRecordError, type GetRecordPathParams, type GetRecordQueryParams, type GetRecordVariables, type GetSchemaError, type GetSchemaPathParams, type GetSchemaResponse, type GetSchemaVariables, type GetTableColumnsError, type GetTableColumnsPathParams, type GetTableColumnsResponse, type GetTableColumnsVariables, type GetTableSchemaError, type GetTableSchemaPathParams, type GetTableSchemaResponse, type GetTableSchemaVariables, type GetTransactionOperation, type GetUserAPIKeysError, type GetUserAPIKeysResponse, type GetUserAPIKeysVariables, type GetUserError, type GetUserOAuthAccessTokensError, type GetUserOAuthAccessTokensResponse, type GetUserOAuthAccessTokensVariables, type GetUserOAuthClientsError, type GetUserOAuthClientsResponse, type GetUserOAuthClientsVariables, type GetUserVariables, type GetWorkspaceError, type GetWorkspaceMembersListError, type GetWorkspaceMembersListPathParams, type GetWorkspaceMembersListVariables, type GetWorkspacePathParams, type GetWorkspaceVariables, type GetWorkspacesListError, type GetWorkspacesListResponse, type GetWorkspacesListVariables, type GrantAuthorizationCodeError, type GrantAuthorizationCodeVariables, type HostProvider, type Identifiable, type ImageTransformations, type InsertRecordError, type InsertRecordPathParams, type InsertRecordQueryParams, type InsertRecordVariables, type InsertRecordWithIDError, type InsertRecordWithIDPathParams, type InsertRecordWithIDQueryParams, type InsertRecordWithIDVariables, type InsertTransactionOperation, type InviteWorkspaceMemberError, type InviteWorkspaceMemberPathParams, type InviteWorkspaceMemberRequestBody, type InviteWorkspaceMemberVariables, type JSONData, type KeywordAskOptions, type Link, type ListClustersError, type ListClustersPathParams, type ListClustersQueryParams, type ListClustersVariables, type ListMigrationRequestsCommitsError, type ListMigrationRequestsCommitsPathParams, type ListMigrationRequestsCommitsRequestBody, type ListMigrationRequestsCommitsResponse, type ListMigrationRequestsCommitsVariables, type ListRegionsError, type ListRegionsPathParams, type ListRegionsVariables, type MergeMigrationRequestError, type MergeMigrationRequestPathParams, type MergeMigrationRequestVariables, type OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, PageRecordArray, type Paginable, type PaginationQueryMeta, type PreviewBranchSchemaEditError, type PreviewBranchSchemaEditPathParams, type PreviewBranchSchemaEditRequestBody, type PreviewBranchSchemaEditResponse, type PreviewBranchSchemaEditVariables, type PushBranchMigrationsError, type PushBranchMigrationsPathParams, type PushBranchMigrationsRequestBody, type PushBranchMigrationsVariables, type PutFileError, type PutFileItemError, type PutFileItemPathParams, type PutFileItemVariables, type PutFilePathParams, type PutFileVariables, Query, type QueryMigrationRequestsError, type QueryMigrationRequestsPathParams, type QueryMigrationRequestsRequestBody, type QueryMigrationRequestsResponse, type QueryMigrationRequestsVariables, type QueryTableError, type QueryTablePathParams, type QueryTableRequestBody, type QueryTableVariables, RecordArray, RecordColumnTypes, type RemoveGitBranchesEntryError, type RemoveGitBranchesEntryPathParams, type RemoveGitBranchesEntryQueryParams, type RemoveGitBranchesEntryVariables, type RemoveWorkspaceMemberError, type RemoveWorkspaceMemberPathParams, type RemoveWorkspaceMemberVariables, type RenameDatabaseError, type RenameDatabasePathParams, type RenameDatabaseRequestBody, type RenameDatabaseVariables, Repository, type ResendWorkspaceMemberInviteError, type ResendWorkspaceMemberInvitePathParams, type ResendWorkspaceMemberInviteVariables, type ResolveBranchError, type ResolveBranchPathParams, type ResolveBranchQueryParams, type ResolveBranchResponse, type ResolveBranchVariables, responses as Responses, RestRepository, SQLPlugin, type SQLPluginResult, type SQLQuery, type SQLQueryParams, type SQLQueryResult, type SchemaDefinition, type SchemaInference, SchemaPlugin, type SchemaPluginResult, schemas as Schemas, type SearchBranchError, type SearchBranchPathParams, type SearchBranchRequestBody, type SearchBranchVariables, type SearchOptions, SearchPlugin, type SearchPluginResult, type SearchTableError, type SearchTablePathParams, type SearchTableRequestBody, type SearchTableVariables, type SearchXataRecord, type SelectableColumn, type SelectableColumnWithObjectNotation, type SelectedPick, type SerializedString, Serializer, type SerializerResult, type SetTableSchemaError, type SetTableSchemaPathParams, type SetTableSchemaRequestBody, type SetTableSchemaVariables, SimpleCache, type SimpleCacheOptions, type SqlQueryError, type SqlQueryPathParams, type SqlQueryRequestBody, type SqlQueryVariables, type SummarizeTableError, type SummarizeTablePathParams, type SummarizeTableRequestBody, type SummarizeTableVariables, type TotalCount, type TransactionOperation, TransactionPlugin, type TransactionPluginResult, type TransactionResults, type UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, type UpdateClusterError, type UpdateClusterPathParams, type UpdateClusterVariables, type UpdateColumnError, type UpdateColumnPathParams, type UpdateColumnRequestBody, type UpdateColumnVariables, type UpdateDatabaseGithubSettingsError, type UpdateDatabaseGithubSettingsPathParams, type UpdateDatabaseGithubSettingsVariables, type UpdateDatabaseMetadataError, type UpdateDatabaseMetadataPathParams, type UpdateDatabaseMetadataRequestBody, type UpdateDatabaseMetadataVariables, type UpdateDatabaseSettingsError, type UpdateDatabaseSettingsPathParams, type UpdateDatabaseSettingsVariables, type UpdateMigrationRequestError, type UpdateMigrationRequestPathParams, type UpdateMigrationRequestRequestBody, type UpdateMigrationRequestVariables, type UpdateOAuthAccessTokenError, type UpdateOAuthAccessTokenPathParams, type UpdateOAuthAccessTokenRequestBody, type UpdateOAuthAccessTokenVariables, type UpdateRecordWithIDError, type UpdateRecordWithIDPathParams, type UpdateRecordWithIDQueryParams, type UpdateRecordWithIDVariables, type UpdateTableError, type UpdateTablePathParams, type UpdateTableRequestBody, type UpdateTableVariables, type UpdateTransactionOperation, type UpdateUserError, type UpdateUserVariables, type UpdateWorkspaceError, type UpdateWorkspaceMemberInviteError, type UpdateWorkspaceMemberInvitePathParams, type UpdateWorkspaceMemberInviteRequestBody, type UpdateWorkspaceMemberInviteVariables, type UpdateWorkspaceMemberRoleError, type UpdateWorkspaceMemberRolePathParams, type UpdateWorkspaceMemberRoleRequestBody, type UpdateWorkspaceMemberRoleVariables, type UpdateWorkspacePathParams, type UpdateWorkspaceVariables, type UploadDestination, type UpsertRecordWithIDError, type UpsertRecordWithIDPathParams, type UpsertRecordWithIDQueryParams, type UpsertRecordWithIDVariables, type ValueAtColumn, type VectorAskOptions, type VectorSearchTableError, type VectorSearchTablePathParams, type VectorSearchTableRequestBody, type VectorSearchTableVariables, XataApiClient, type XataApiClientOptions, XataApiPlugin, type XataArrayFile, XataError, XataFile, XataPlugin, type XataPluginOptions, type XataRecord, acceptWorkspaceMemberInvite, adaptTable, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, applyMigration, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createCluster, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, fileUpload, ge, getAPIKey, getAuthorizationCode, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationJobStatus, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getCluster, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseSettings, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationHistory, getMigrationJobStatus, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getSchema, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, getWorkspacesList, grantAuthorizationCode, greaterEquals, greaterThan, greaterThanEquals, gt, gte, iContains, iPattern, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isValidExpandedColumn, isValidSelectableColumns, isXataRecord, le, lessEquals, lessThan, lessThanEquals, listClusters, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, sqlQuery, startsWith, summarizeTable, transformImage, updateBranchMetadata, updateBranchSchema, updateCluster, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateDatabaseSettings, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };
|