@xata.io/client 0.23.3 → 0.23.5
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 +4 -4
- package/CHANGELOG.md +20 -0
- package/dist/index.cjs +182 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +538 -53
- package/dist/index.mjs +177 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -3
- package/.eslintrc.cjs +0 -13
- package/rollup.config.mjs +0 -44
- package/tsconfig.json +0 -23
package/dist/index.d.ts
CHANGED
@@ -953,6 +953,43 @@ type UpdateDatabaseMetadataVariables = {
|
|
953
953
|
* Update the color of the selected database
|
954
954
|
*/
|
955
955
|
declare const updateDatabaseMetadata: (variables: UpdateDatabaseMetadataVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
956
|
+
type RenameDatabasePathParams = {
|
957
|
+
/**
|
958
|
+
* Workspace ID
|
959
|
+
*/
|
960
|
+
workspaceId: WorkspaceID;
|
961
|
+
/**
|
962
|
+
* The Database Name
|
963
|
+
*/
|
964
|
+
dbName: DBName$1;
|
965
|
+
};
|
966
|
+
type RenameDatabaseError = ErrorWrapper$1<{
|
967
|
+
status: 400;
|
968
|
+
payload: BadRequestError$1;
|
969
|
+
} | {
|
970
|
+
status: 401;
|
971
|
+
payload: AuthError$1;
|
972
|
+
} | {
|
973
|
+
status: 422;
|
974
|
+
payload: SimpleError$1;
|
975
|
+
} | {
|
976
|
+
status: 423;
|
977
|
+
payload: SimpleError$1;
|
978
|
+
}>;
|
979
|
+
type RenameDatabaseRequestBody = {
|
980
|
+
/**
|
981
|
+
* @minLength 1
|
982
|
+
*/
|
983
|
+
newName: string;
|
984
|
+
};
|
985
|
+
type RenameDatabaseVariables = {
|
986
|
+
body: RenameDatabaseRequestBody;
|
987
|
+
pathParams: RenameDatabasePathParams;
|
988
|
+
} & ControlPlaneFetcherExtraProps;
|
989
|
+
/**
|
990
|
+
* Change the name of an existing database
|
991
|
+
*/
|
992
|
+
declare const renameDatabase: (variables: RenameDatabaseVariables, signal?: AbortSignal) => Promise<DatabaseMetadata>;
|
956
993
|
type GetDatabaseGithubSettingsPathParams = {
|
957
994
|
/**
|
958
995
|
* Workspace ID
|
@@ -1136,7 +1173,7 @@ type ColumnVector = {
|
|
1136
1173
|
};
|
1137
1174
|
type Column = {
|
1138
1175
|
name: string;
|
1139
|
-
type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime' | 'vector' | 'file[]' | 'file'
|
1176
|
+
type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime' | 'vector' | 'file[]' | 'file';
|
1140
1177
|
link?: ColumnLink;
|
1141
1178
|
vector?: ColumnVector;
|
1142
1179
|
notNull?: boolean;
|
@@ -1293,7 +1330,7 @@ type FilterColumnIncludes = {
|
|
1293
1330
|
$includesNone?: FilterPredicate;
|
1294
1331
|
};
|
1295
1332
|
type FilterColumn = FilterColumnIncludes | FilterPredicate | FilterList;
|
1296
|
-
type SortOrder = 'asc' | 'desc';
|
1333
|
+
type SortOrder = 'asc' | 'desc' | 'random';
|
1297
1334
|
type SortExpression = string[] | {
|
1298
1335
|
[key: string]: SortOrder;
|
1299
1336
|
} | {
|
@@ -1391,9 +1428,13 @@ type RecordsMetadata = {
|
|
1391
1428
|
*/
|
1392
1429
|
cursor: string;
|
1393
1430
|
/**
|
1394
|
-
* true if more records can be
|
1431
|
+
* true if more records can be fetched
|
1395
1432
|
*/
|
1396
1433
|
more: boolean;
|
1434
|
+
/**
|
1435
|
+
* the number of records returned per page
|
1436
|
+
*/
|
1437
|
+
size: number;
|
1397
1438
|
};
|
1398
1439
|
};
|
1399
1440
|
type TableOpAdd = {
|
@@ -1442,7 +1483,7 @@ type Commit = {
|
|
1442
1483
|
message?: string;
|
1443
1484
|
id: string;
|
1444
1485
|
parentID?: string;
|
1445
|
-
checksum
|
1486
|
+
checksum: string;
|
1446
1487
|
mergeParentID?: string;
|
1447
1488
|
createdAt: DateTime;
|
1448
1489
|
operations: MigrationOp[];
|
@@ -1474,7 +1515,7 @@ type MigrationObject = {
|
|
1474
1515
|
message?: string;
|
1475
1516
|
id: string;
|
1476
1517
|
parentID?: string;
|
1477
|
-
checksum
|
1518
|
+
checksum: string;
|
1478
1519
|
operations: MigrationOp[];
|
1479
1520
|
};
|
1480
1521
|
/**
|
@@ -1563,6 +1604,20 @@ type TransactionDeleteOp = {
|
|
1563
1604
|
*/
|
1564
1605
|
columns?: string[];
|
1565
1606
|
};
|
1607
|
+
/**
|
1608
|
+
* Get by id operation.
|
1609
|
+
*/
|
1610
|
+
type TransactionGetOp = {
|
1611
|
+
/**
|
1612
|
+
* The table name
|
1613
|
+
*/
|
1614
|
+
table: string;
|
1615
|
+
id: RecordID;
|
1616
|
+
/**
|
1617
|
+
* If set, the call will return the requested fields as part of the response.
|
1618
|
+
*/
|
1619
|
+
columns?: string[];
|
1620
|
+
};
|
1566
1621
|
/**
|
1567
1622
|
* A transaction operation
|
1568
1623
|
*/
|
@@ -1572,6 +1627,8 @@ type TransactionOperation$1 = {
|
|
1572
1627
|
update: TransactionUpdateOp;
|
1573
1628
|
} | {
|
1574
1629
|
['delete']: TransactionDeleteOp;
|
1630
|
+
} | {
|
1631
|
+
get: TransactionGetOp;
|
1575
1632
|
};
|
1576
1633
|
/**
|
1577
1634
|
* Fields to return in the transaction result.
|
@@ -1623,11 +1680,21 @@ type TransactionResultDelete = {
|
|
1623
1680
|
rows: number;
|
1624
1681
|
columns?: TransactionResultColumns;
|
1625
1682
|
};
|
1683
|
+
/**
|
1684
|
+
* A result from a get operation.
|
1685
|
+
*/
|
1686
|
+
type TransactionResultGet = {
|
1687
|
+
/**
|
1688
|
+
* The type of operation who's result is being returned.
|
1689
|
+
*/
|
1690
|
+
operation: 'get';
|
1691
|
+
columns?: TransactionResultColumns;
|
1692
|
+
};
|
1626
1693
|
/**
|
1627
1694
|
* An ordered array of results from the submitted operations.
|
1628
1695
|
*/
|
1629
1696
|
type TransactionSuccess = {
|
1630
|
-
results: (TransactionResultInsert | TransactionResultUpdate | TransactionResultDelete)[];
|
1697
|
+
results: (TransactionResultInsert | TransactionResultUpdate | TransactionResultDelete | TransactionResultGet)[];
|
1631
1698
|
};
|
1632
1699
|
/**
|
1633
1700
|
* An error message from a failing transaction operation
|
@@ -1662,27 +1729,36 @@ type ObjectValue = {
|
|
1662
1729
|
[key: string]: string | boolean | number | string[] | number[] | DateTime | ObjectValue;
|
1663
1730
|
};
|
1664
1731
|
/**
|
1665
|
-
*
|
1732
|
+
* Unique file identifier
|
1666
1733
|
*
|
1667
|
-
* @
|
1734
|
+
* @maxLength 255
|
1735
|
+
* @minLength 1
|
1736
|
+
* @pattern [a-zA-Z0-9_-~:]+
|
1737
|
+
*/
|
1738
|
+
type FileID = string;
|
1739
|
+
/**
|
1740
|
+
* File name
|
1741
|
+
*
|
1742
|
+
* @maxLength 1024
|
1743
|
+
* @minLength 0
|
1744
|
+
* @pattern [0-9a-zA-Z!\-_\.\*'\(\)]*
|
1745
|
+
*/
|
1746
|
+
type FileName = string;
|
1747
|
+
/**
|
1748
|
+
* Media type
|
1749
|
+
*
|
1750
|
+
* @maxLength 255
|
1751
|
+
* @minLength 3
|
1752
|
+
* @pattern ^\w+/[-+.\w]+$
|
1753
|
+
*/
|
1754
|
+
type MediaType = string;
|
1755
|
+
/**
|
1756
|
+
* Object representing a file in an array
|
1668
1757
|
*/
|
1669
1758
|
type InputFileEntry = {
|
1670
|
-
|
1671
|
-
|
1672
|
-
|
1673
|
-
* @maxLength 1024
|
1674
|
-
* @minLength 1
|
1675
|
-
* @pattern [0-9a-zA-Z!\-_\.\*'\(\)]+
|
1676
|
-
*/
|
1677
|
-
name: string;
|
1678
|
-
/**
|
1679
|
-
* Media type
|
1680
|
-
*
|
1681
|
-
* @maxLength 255
|
1682
|
-
* @minLength 3
|
1683
|
-
* @pattern ^\w+/[-+.\w]+$
|
1684
|
-
*/
|
1685
|
-
mediaType?: string;
|
1759
|
+
id?: FileID;
|
1760
|
+
name?: FileName;
|
1761
|
+
mediaType?: MediaType;
|
1686
1762
|
/**
|
1687
1763
|
* Base64 encoded content
|
1688
1764
|
*
|
@@ -1704,11 +1780,34 @@ type InputFileEntry = {
|
|
1704
1780
|
* @maxItems 50
|
1705
1781
|
*/
|
1706
1782
|
type InputFileArray = InputFileEntry[];
|
1783
|
+
/**
|
1784
|
+
* Object representing a file
|
1785
|
+
*
|
1786
|
+
* @x-go-type file.InputFile
|
1787
|
+
*/
|
1788
|
+
type InputFile = {
|
1789
|
+
name: FileName;
|
1790
|
+
mediaType?: MediaType;
|
1791
|
+
/**
|
1792
|
+
* Base64 encoded content
|
1793
|
+
*
|
1794
|
+
* @maxLength 20971520
|
1795
|
+
*/
|
1796
|
+
base64Content?: string;
|
1797
|
+
/**
|
1798
|
+
* Enable public access to the file
|
1799
|
+
*/
|
1800
|
+
enablePublicUrl?: boolean;
|
1801
|
+
/**
|
1802
|
+
* Time to live for signed URLs
|
1803
|
+
*/
|
1804
|
+
signedUrlTimeout?: number;
|
1805
|
+
};
|
1707
1806
|
/**
|
1708
1807
|
* Xata input record
|
1709
1808
|
*/
|
1710
1809
|
type DataInputRecord = {
|
1711
|
-
[key: string]: RecordID | string | boolean | number | string[] | number[] | DateTime | ObjectValue | InputFileArray |
|
1810
|
+
[key: string]: RecordID | string | boolean | number | string[] | number[] | DateTime | ObjectValue | InputFileArray | InputFile | null;
|
1712
1811
|
};
|
1713
1812
|
/**
|
1714
1813
|
* Xata Table Record Metadata
|
@@ -1742,6 +1841,23 @@ type RecordMeta = {
|
|
1742
1841
|
warnings?: string[];
|
1743
1842
|
};
|
1744
1843
|
};
|
1844
|
+
/**
|
1845
|
+
* File metadata
|
1846
|
+
*/
|
1847
|
+
type FileResponse = {
|
1848
|
+
id?: FileID;
|
1849
|
+
name: FileName;
|
1850
|
+
mediaType: MediaType;
|
1851
|
+
/**
|
1852
|
+
* @format int64
|
1853
|
+
*/
|
1854
|
+
size: number;
|
1855
|
+
/**
|
1856
|
+
* @format int64
|
1857
|
+
*/
|
1858
|
+
version: number;
|
1859
|
+
attributes?: Record<string, any>;
|
1860
|
+
};
|
1745
1861
|
/**
|
1746
1862
|
* The target expression is used to filter the search results by the target columns.
|
1747
1863
|
*/
|
@@ -1897,6 +2013,12 @@ type SearchPageConfig = {
|
|
1897
2013
|
*/
|
1898
2014
|
offset?: number;
|
1899
2015
|
};
|
2016
|
+
/**
|
2017
|
+
* Xata Table SQL Record
|
2018
|
+
*/
|
2019
|
+
type SQLRecord = {
|
2020
|
+
[key: string]: any;
|
2021
|
+
};
|
1900
2022
|
/**
|
1901
2023
|
* A summary expression is the description of a single summary operation. It consists of a single
|
1902
2024
|
* key representing the operation, and a value representing the column to be operated on.
|
@@ -2175,6 +2297,7 @@ type RecordUpdateResponse = XataRecord$1 | {
|
|
2175
2297
|
version: number;
|
2176
2298
|
};
|
2177
2299
|
};
|
2300
|
+
type PutFileResponse = FileResponse;
|
2178
2301
|
type RecordResponse = XataRecord$1;
|
2179
2302
|
type BulkInsertResponse = {
|
2180
2303
|
recordIDs: string[];
|
@@ -2195,6 +2318,10 @@ type SearchResponse = {
|
|
2195
2318
|
records: XataRecord$1[];
|
2196
2319
|
warning?: string;
|
2197
2320
|
};
|
2321
|
+
type SQLResponse = {
|
2322
|
+
records: SQLRecord[];
|
2323
|
+
warning?: string;
|
2324
|
+
};
|
2198
2325
|
type RateLimitError = {
|
2199
2326
|
id?: string;
|
2200
2327
|
message: string;
|
@@ -3256,6 +3383,18 @@ type PushBranchMigrationsVariables = {
|
|
3256
3383
|
body: PushBranchMigrationsRequestBody;
|
3257
3384
|
pathParams: PushBranchMigrationsPathParams;
|
3258
3385
|
} & DataPlaneFetcherExtraProps;
|
3386
|
+
/**
|
3387
|
+
* The `schema/push` API accepts a list of migrations to be applied to the
|
3388
|
+
* current branch. A list of applicable migrations can be fetched using
|
3389
|
+
* the `schema/history` API from another branch or database.
|
3390
|
+
*
|
3391
|
+
* The most recent migration must be part of the list or referenced (via
|
3392
|
+
* `parentID`) by the first migration in the list of migrations to be pushed.
|
3393
|
+
*
|
3394
|
+
* Each migration in the list has an `id`, `parentID`, and `checksum`. The
|
3395
|
+
* checksum for migrations are generated and verified by xata. The
|
3396
|
+
* operation fails if any migration in the list has an invalid checksum.
|
3397
|
+
*/
|
3259
3398
|
declare const pushBranchMigrations: (variables: PushBranchMigrationsVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
3260
3399
|
type CreateTablePathParams = {
|
3261
3400
|
/**
|
@@ -3671,6 +3810,211 @@ type InsertRecordVariables = {
|
|
3671
3810
|
* Insert a new Record into the Table
|
3672
3811
|
*/
|
3673
3812
|
declare const insertRecord: (variables: InsertRecordVariables, signal?: AbortSignal) => Promise<RecordUpdateResponse>;
|
3813
|
+
type GetFileItemPathParams = {
|
3814
|
+
/**
|
3815
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3816
|
+
*/
|
3817
|
+
dbBranchName: DBBranchName;
|
3818
|
+
/**
|
3819
|
+
* The Table name
|
3820
|
+
*/
|
3821
|
+
tableName: TableName;
|
3822
|
+
/**
|
3823
|
+
* The Record name
|
3824
|
+
*/
|
3825
|
+
recordId: RecordID;
|
3826
|
+
/**
|
3827
|
+
* The Column name
|
3828
|
+
*/
|
3829
|
+
columnName: ColumnName;
|
3830
|
+
/**
|
3831
|
+
* The File Identifier
|
3832
|
+
*/
|
3833
|
+
fileId: FileID;
|
3834
|
+
workspace: string;
|
3835
|
+
region: string;
|
3836
|
+
};
|
3837
|
+
type GetFileItemError = ErrorWrapper<{
|
3838
|
+
status: 400;
|
3839
|
+
payload: BadRequestError;
|
3840
|
+
} | {
|
3841
|
+
status: 401;
|
3842
|
+
payload: AuthError;
|
3843
|
+
} | {
|
3844
|
+
status: 404;
|
3845
|
+
payload: SimpleError;
|
3846
|
+
}>;
|
3847
|
+
type GetFileItemVariables = {
|
3848
|
+
pathParams: GetFileItemPathParams;
|
3849
|
+
} & DataPlaneFetcherExtraProps;
|
3850
|
+
/**
|
3851
|
+
* Retrieves file content from an array by file ID
|
3852
|
+
*/
|
3853
|
+
declare const getFileItem: (variables: GetFileItemVariables, signal?: AbortSignal) => Promise<Blob>;
|
3854
|
+
type PutFileItemPathParams = {
|
3855
|
+
/**
|
3856
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3857
|
+
*/
|
3858
|
+
dbBranchName: DBBranchName;
|
3859
|
+
/**
|
3860
|
+
* The Table name
|
3861
|
+
*/
|
3862
|
+
tableName: TableName;
|
3863
|
+
/**
|
3864
|
+
* The Record name
|
3865
|
+
*/
|
3866
|
+
recordId: RecordID;
|
3867
|
+
/**
|
3868
|
+
* The Column name
|
3869
|
+
*/
|
3870
|
+
columnName: ColumnName;
|
3871
|
+
/**
|
3872
|
+
* The File Identifier
|
3873
|
+
*/
|
3874
|
+
fileId: FileID;
|
3875
|
+
workspace: string;
|
3876
|
+
region: string;
|
3877
|
+
};
|
3878
|
+
type PutFileItemError = ErrorWrapper<{
|
3879
|
+
status: 400;
|
3880
|
+
payload: BadRequestError;
|
3881
|
+
} | {
|
3882
|
+
status: 401;
|
3883
|
+
payload: AuthError;
|
3884
|
+
} | {
|
3885
|
+
status: 404;
|
3886
|
+
payload: SimpleError;
|
3887
|
+
} | {
|
3888
|
+
status: 422;
|
3889
|
+
payload: SimpleError;
|
3890
|
+
}>;
|
3891
|
+
type PutFileItemVariables = {
|
3892
|
+
body?: Blob;
|
3893
|
+
pathParams: PutFileItemPathParams;
|
3894
|
+
} & DataPlaneFetcherExtraProps;
|
3895
|
+
/**
|
3896
|
+
* Uploads the file content to an array given the file ID
|
3897
|
+
*/
|
3898
|
+
declare const putFileItem: (variables: PutFileItemVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
3899
|
+
type DeleteFileItemPathParams = {
|
3900
|
+
/**
|
3901
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3902
|
+
*/
|
3903
|
+
dbBranchName: DBBranchName;
|
3904
|
+
/**
|
3905
|
+
* The Table name
|
3906
|
+
*/
|
3907
|
+
tableName: TableName;
|
3908
|
+
/**
|
3909
|
+
* The Record name
|
3910
|
+
*/
|
3911
|
+
recordId: RecordID;
|
3912
|
+
/**
|
3913
|
+
* The Column name
|
3914
|
+
*/
|
3915
|
+
columnName: ColumnName;
|
3916
|
+
/**
|
3917
|
+
* The File Identifier
|
3918
|
+
*/
|
3919
|
+
fileId: FileID;
|
3920
|
+
workspace: string;
|
3921
|
+
region: string;
|
3922
|
+
};
|
3923
|
+
type DeleteFileItemError = ErrorWrapper<{
|
3924
|
+
status: 400;
|
3925
|
+
payload: BadRequestError;
|
3926
|
+
} | {
|
3927
|
+
status: 401;
|
3928
|
+
payload: AuthError;
|
3929
|
+
} | {
|
3930
|
+
status: 404;
|
3931
|
+
payload: SimpleError;
|
3932
|
+
}>;
|
3933
|
+
type DeleteFileItemVariables = {
|
3934
|
+
pathParams: DeleteFileItemPathParams;
|
3935
|
+
} & DataPlaneFetcherExtraProps;
|
3936
|
+
/**
|
3937
|
+
* Deletes an item from an file array column given the file ID
|
3938
|
+
*/
|
3939
|
+
declare const deleteFileItem: (variables: DeleteFileItemVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
3940
|
+
type GetFilePathParams = {
|
3941
|
+
/**
|
3942
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3943
|
+
*/
|
3944
|
+
dbBranchName: DBBranchName;
|
3945
|
+
/**
|
3946
|
+
* The Table name
|
3947
|
+
*/
|
3948
|
+
tableName: TableName;
|
3949
|
+
/**
|
3950
|
+
* The Record name
|
3951
|
+
*/
|
3952
|
+
recordId: RecordID;
|
3953
|
+
/**
|
3954
|
+
* The Column name
|
3955
|
+
*/
|
3956
|
+
columnName: ColumnName;
|
3957
|
+
workspace: string;
|
3958
|
+
region: string;
|
3959
|
+
};
|
3960
|
+
type GetFileError = ErrorWrapper<{
|
3961
|
+
status: 400;
|
3962
|
+
payload: BadRequestError;
|
3963
|
+
} | {
|
3964
|
+
status: 401;
|
3965
|
+
payload: AuthError;
|
3966
|
+
} | {
|
3967
|
+
status: 404;
|
3968
|
+
payload: SimpleError;
|
3969
|
+
}>;
|
3970
|
+
type GetFileVariables = {
|
3971
|
+
pathParams: GetFilePathParams;
|
3972
|
+
} & DataPlaneFetcherExtraProps;
|
3973
|
+
/**
|
3974
|
+
* Retrieves the file content from a file column
|
3975
|
+
*/
|
3976
|
+
declare const getFile: (variables: GetFileVariables, signal?: AbortSignal) => Promise<Blob>;
|
3977
|
+
type PutFilePathParams = {
|
3978
|
+
/**
|
3979
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3980
|
+
*/
|
3981
|
+
dbBranchName: DBBranchName;
|
3982
|
+
/**
|
3983
|
+
* The Table name
|
3984
|
+
*/
|
3985
|
+
tableName: TableName;
|
3986
|
+
/**
|
3987
|
+
* The Record name
|
3988
|
+
*/
|
3989
|
+
recordId: RecordID;
|
3990
|
+
/**
|
3991
|
+
* The Column name
|
3992
|
+
*/
|
3993
|
+
columnName: ColumnName;
|
3994
|
+
workspace: string;
|
3995
|
+
region: string;
|
3996
|
+
};
|
3997
|
+
type PutFileError = ErrorWrapper<{
|
3998
|
+
status: 400;
|
3999
|
+
payload: BadRequestError;
|
4000
|
+
} | {
|
4001
|
+
status: 401;
|
4002
|
+
payload: AuthError;
|
4003
|
+
} | {
|
4004
|
+
status: 404;
|
4005
|
+
payload: SimpleError;
|
4006
|
+
} | {
|
4007
|
+
status: 422;
|
4008
|
+
payload: SimpleError;
|
4009
|
+
}>;
|
4010
|
+
type PutFileVariables = {
|
4011
|
+
body?: Blob;
|
4012
|
+
pathParams: PutFilePathParams;
|
4013
|
+
} & DataPlaneFetcherExtraProps;
|
4014
|
+
/**
|
4015
|
+
* Uploads the file content to the given file column
|
4016
|
+
*/
|
4017
|
+
declare const putFile: (variables: PutFileVariables, signal?: AbortSignal) => Promise<FileResponse>;
|
3674
4018
|
type GetRecordPathParams = {
|
3675
4019
|
/**
|
3676
4020
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -4611,25 +4955,40 @@ type QueryTableVariables = {
|
|
4611
4955
|
* }
|
4612
4956
|
* ```
|
4613
4957
|
*
|
4614
|
-
*
|
4958
|
+
* It is also possible to sort results randomly:
|
4959
|
+
*
|
4960
|
+
* ```json
|
4961
|
+
* POST /db/demo:main/tables/table/query
|
4962
|
+
* {
|
4963
|
+
* "sort": {
|
4964
|
+
* "*": "random"
|
4965
|
+
* }
|
4966
|
+
* }
|
4967
|
+
* ```
|
4615
4968
|
*
|
4616
|
-
*
|
4617
|
-
* cursor pagination is needed in order to retrieve all of their results. The offset pagination method is limited to 1000 records.
|
4969
|
+
* Note that a random sort does not apply to a specific column, hence the special column name `"*"`.
|
4618
4970
|
*
|
4619
|
-
*
|
4971
|
+
* A random sort can be combined with an ascending or descending sort on a specific column:
|
4620
4972
|
*
|
4621
4973
|
* ```json
|
4622
4974
|
* POST /db/demo:main/tables/table/query
|
4623
4975
|
* {
|
4624
|
-
* "
|
4625
|
-
*
|
4626
|
-
*
|
4627
|
-
*
|
4976
|
+
* "sort": [
|
4977
|
+
* {
|
4978
|
+
* "name": "desc"
|
4979
|
+
* },
|
4980
|
+
* {
|
4981
|
+
* "*": "random"
|
4982
|
+
* }
|
4983
|
+
* ]
|
4628
4984
|
* }
|
4629
4985
|
* ```
|
4630
4986
|
*
|
4631
|
-
*
|
4632
|
-
*
|
4987
|
+
* This will sort on the `name` column, breaking ties randomly.
|
4988
|
+
*
|
4989
|
+
* ### Pagination
|
4990
|
+
*
|
4991
|
+
* We offer cursor pagination and offset pagination. The cursor pagination method can be used for sequential scrolling with unrestricted depth. The offset pagination can be used to skip pages and is limited to 1000 records.
|
4633
4992
|
*
|
4634
4993
|
* Example of cursor pagination:
|
4635
4994
|
*
|
@@ -4683,6 +5042,34 @@ type QueryTableVariables = {
|
|
4683
5042
|
* `filter` or `sort` is set. The columns returned and page size can be changed
|
4684
5043
|
* anytime by passing the `columns` or `page.size` settings to the next query.
|
4685
5044
|
*
|
5045
|
+
* In the following example of size + offset pagination we retrieve the third page of up to 100 results:
|
5046
|
+
*
|
5047
|
+
* ```json
|
5048
|
+
* POST /db/demo:main/tables/table/query
|
5049
|
+
* {
|
5050
|
+
* "page": {
|
5051
|
+
* "size": 100,
|
5052
|
+
* "offset": 200
|
5053
|
+
* }
|
5054
|
+
* }
|
5055
|
+
* ```
|
5056
|
+
*
|
5057
|
+
* The `page.size` parameter represents the maximum number of records returned by this query. It has a default value of 20 and a maximum value of 200.
|
5058
|
+
* The `page.offset` parameter represents the number of matching records to skip. It has a default value of 0 and a maximum value of 800.
|
5059
|
+
*
|
5060
|
+
* Cursor pagination also works in combination with offset pagination. For example, starting from a specific cursor position, using a page size of 200 and an offset of 800, you can skip up to 5 pages of 200 records forwards or backwards from the cursor's position:
|
5061
|
+
*
|
5062
|
+
* ```json
|
5063
|
+
* POST /db/demo:main/tables/table/query
|
5064
|
+
* {
|
5065
|
+
* "page": {
|
5066
|
+
* "size": 200,
|
5067
|
+
* "offset": 800,
|
5068
|
+
* "after": "fMoxCsIwFIDh3WP8c4amDai5hO5SJCRNfaVSeC9b6d1FD"
|
5069
|
+
* }
|
5070
|
+
* }
|
5071
|
+
* ```
|
5072
|
+
*
|
4686
5073
|
* **Special cursors:**
|
4687
5074
|
*
|
4688
5075
|
* - `page.after=end`: Result points past the last entry. The list of records
|
@@ -4854,7 +5241,7 @@ type SqlQueryVariables = {
|
|
4854
5241
|
/**
|
4855
5242
|
* Run an SQL query across the database branch.
|
4856
5243
|
*/
|
4857
|
-
declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<
|
5244
|
+
declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse>;
|
4858
5245
|
type VectorSearchTablePathParams = {
|
4859
5246
|
/**
|
4860
5247
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -5215,11 +5602,18 @@ declare const operationsByTag: {
|
|
5215
5602
|
updateColumn: (variables: UpdateColumnVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
5216
5603
|
deleteColumn: (variables: DeleteColumnVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
5217
5604
|
};
|
5605
|
+
files: {
|
5606
|
+
getFileItem: (variables: GetFileItemVariables, signal?: AbortSignal | undefined) => Promise<Blob>;
|
5607
|
+
putFileItem: (variables: PutFileItemVariables, signal?: AbortSignal | undefined) => Promise<FileResponse>;
|
5608
|
+
deleteFileItem: (variables: DeleteFileItemVariables, signal?: AbortSignal | undefined) => Promise<FileResponse>;
|
5609
|
+
getFile: (variables: GetFileVariables, signal?: AbortSignal | undefined) => Promise<Blob>;
|
5610
|
+
putFile: (variables: PutFileVariables, signal?: AbortSignal | undefined) => Promise<FileResponse>;
|
5611
|
+
};
|
5218
5612
|
searchAndFilter: {
|
5219
5613
|
queryTable: (variables: QueryTableVariables, signal?: AbortSignal | undefined) => Promise<QueryResponse>;
|
5220
5614
|
searchBranch: (variables: SearchBranchVariables, signal?: AbortSignal | undefined) => Promise<SearchResponse>;
|
5221
5615
|
searchTable: (variables: SearchTableVariables, signal?: AbortSignal | undefined) => Promise<SearchResponse>;
|
5222
|
-
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal | undefined) => Promise<
|
5616
|
+
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal | undefined) => Promise<SQLResponse>;
|
5223
5617
|
vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal | undefined) => Promise<SearchResponse>;
|
5224
5618
|
askTable: (variables: AskTableVariables, signal?: AbortSignal | undefined) => Promise<AskTableResponse>;
|
5225
5619
|
summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal | undefined) => Promise<SummarizeResponse>;
|
@@ -5258,6 +5652,7 @@ declare const operationsByTag: {
|
|
5258
5652
|
deleteDatabase: (variables: DeleteDatabaseVariables, signal?: AbortSignal | undefined) => Promise<DeleteDatabaseResponse>;
|
5259
5653
|
getDatabaseMetadata: (variables: GetDatabaseMetadataVariables, signal?: AbortSignal | undefined) => Promise<DatabaseMetadata>;
|
5260
5654
|
updateDatabaseMetadata: (variables: UpdateDatabaseMetadataVariables, signal?: AbortSignal | undefined) => Promise<DatabaseMetadata>;
|
5655
|
+
renameDatabase: (variables: RenameDatabaseVariables, signal?: AbortSignal | undefined) => Promise<DatabaseMetadata>;
|
5261
5656
|
getDatabaseGithubSettings: (variables: GetDatabaseGithubSettingsVariables, signal?: AbortSignal | undefined) => Promise<DatabaseGithubSettings>;
|
5262
5657
|
updateDatabaseGithubSettings: (variables: UpdateDatabaseGithubSettingsVariables, signal?: AbortSignal | undefined) => Promise<DatabaseGithubSettings>;
|
5263
5658
|
deleteDatabaseGithubSettings: (variables: DeleteDatabaseGithubSettingsVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
|
@@ -5287,10 +5682,12 @@ type responses_BadRequestError = BadRequestError;
|
|
5287
5682
|
type responses_BranchMigrationPlan = BranchMigrationPlan;
|
5288
5683
|
type responses_BulkError = BulkError;
|
5289
5684
|
type responses_BulkInsertResponse = BulkInsertResponse;
|
5685
|
+
type responses_PutFileResponse = PutFileResponse;
|
5290
5686
|
type responses_QueryResponse = QueryResponse;
|
5291
5687
|
type responses_RateLimitError = RateLimitError;
|
5292
5688
|
type responses_RecordResponse = RecordResponse;
|
5293
5689
|
type responses_RecordUpdateResponse = RecordUpdateResponse;
|
5690
|
+
type responses_SQLResponse = SQLResponse;
|
5294
5691
|
type responses_SchemaCompareResponse = SchemaCompareResponse;
|
5295
5692
|
type responses_SchemaUpdateResponse = SchemaUpdateResponse;
|
5296
5693
|
type responses_SearchResponse = SearchResponse;
|
@@ -5304,10 +5701,12 @@ declare namespace responses {
|
|
5304
5701
|
responses_BranchMigrationPlan as BranchMigrationPlan,
|
5305
5702
|
responses_BulkError as BulkError,
|
5306
5703
|
responses_BulkInsertResponse as BulkInsertResponse,
|
5704
|
+
responses_PutFileResponse as PutFileResponse,
|
5307
5705
|
responses_QueryResponse as QueryResponse,
|
5308
5706
|
responses_RateLimitError as RateLimitError,
|
5309
5707
|
responses_RecordResponse as RecordResponse,
|
5310
5708
|
responses_RecordUpdateResponse as RecordUpdateResponse,
|
5709
|
+
responses_SQLResponse as SQLResponse,
|
5311
5710
|
responses_SchemaCompareResponse as SchemaCompareResponse,
|
5312
5711
|
responses_SchemaUpdateResponse as SchemaUpdateResponse,
|
5313
5712
|
responses_SearchResponse as SearchResponse,
|
@@ -5346,6 +5745,9 @@ type schemas_DatabaseGithubSettings = DatabaseGithubSettings;
|
|
5346
5745
|
type schemas_DatabaseMetadata = DatabaseMetadata;
|
5347
5746
|
type schemas_DateHistogramAgg = DateHistogramAgg;
|
5348
5747
|
type schemas_DateTime = DateTime;
|
5748
|
+
type schemas_FileID = FileID;
|
5749
|
+
type schemas_FileName = FileName;
|
5750
|
+
type schemas_FileResponse = FileResponse;
|
5349
5751
|
type schemas_FilterColumn = FilterColumn;
|
5350
5752
|
type schemas_FilterColumnIncludes = FilterColumnIncludes;
|
5351
5753
|
type schemas_FilterExpression = FilterExpression;
|
@@ -5357,6 +5759,7 @@ type schemas_FilterRangeValue = FilterRangeValue;
|
|
5357
5759
|
type schemas_FilterValue = FilterValue;
|
5358
5760
|
type schemas_FuzzinessExpression = FuzzinessExpression;
|
5359
5761
|
type schemas_HighlightExpression = HighlightExpression;
|
5762
|
+
type schemas_InputFile = InputFile;
|
5360
5763
|
type schemas_InputFileArray = InputFileArray;
|
5361
5764
|
type schemas_InputFileEntry = InputFileEntry;
|
5362
5765
|
type schemas_InviteID = InviteID;
|
@@ -5366,6 +5769,7 @@ type schemas_ListDatabasesResponse = ListDatabasesResponse;
|
|
5366
5769
|
type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
|
5367
5770
|
type schemas_ListRegionsResponse = ListRegionsResponse;
|
5368
5771
|
type schemas_MaxAgg = MaxAgg;
|
5772
|
+
type schemas_MediaType = MediaType;
|
5369
5773
|
type schemas_MetricsDatapoint = MetricsDatapoint;
|
5370
5774
|
type schemas_MetricsLatency = MetricsLatency;
|
5371
5775
|
type schemas_Migration = Migration;
|
@@ -5387,6 +5791,7 @@ type schemas_RecordsMetadata = RecordsMetadata;
|
|
5387
5791
|
type schemas_Region = Region;
|
5388
5792
|
type schemas_RevLink = RevLink;
|
5389
5793
|
type schemas_Role = Role;
|
5794
|
+
type schemas_SQLRecord = SQLRecord;
|
5390
5795
|
type schemas_Schema = Schema;
|
5391
5796
|
type schemas_SchemaEditScript = SchemaEditScript;
|
5392
5797
|
type schemas_SearchPageConfig = SearchPageConfig;
|
@@ -5408,9 +5813,11 @@ type schemas_TopValuesAgg = TopValuesAgg;
|
|
5408
5813
|
type schemas_TransactionDeleteOp = TransactionDeleteOp;
|
5409
5814
|
type schemas_TransactionError = TransactionError;
|
5410
5815
|
type schemas_TransactionFailure = TransactionFailure;
|
5816
|
+
type schemas_TransactionGetOp = TransactionGetOp;
|
5411
5817
|
type schemas_TransactionInsertOp = TransactionInsertOp;
|
5412
5818
|
type schemas_TransactionResultColumns = TransactionResultColumns;
|
5413
5819
|
type schemas_TransactionResultDelete = TransactionResultDelete;
|
5820
|
+
type schemas_TransactionResultGet = TransactionResultGet;
|
5414
5821
|
type schemas_TransactionResultInsert = TransactionResultInsert;
|
5415
5822
|
type schemas_TransactionResultUpdate = TransactionResultUpdate;
|
5416
5823
|
type schemas_TransactionSuccess = TransactionSuccess;
|
@@ -5459,6 +5866,9 @@ declare namespace schemas {
|
|
5459
5866
|
DateBooster$1 as DateBooster,
|
5460
5867
|
schemas_DateHistogramAgg as DateHistogramAgg,
|
5461
5868
|
schemas_DateTime as DateTime,
|
5869
|
+
schemas_FileID as FileID,
|
5870
|
+
schemas_FileName as FileName,
|
5871
|
+
schemas_FileResponse as FileResponse,
|
5462
5872
|
schemas_FilterColumn as FilterColumn,
|
5463
5873
|
schemas_FilterColumnIncludes as FilterColumnIncludes,
|
5464
5874
|
schemas_FilterExpression as FilterExpression,
|
@@ -5470,6 +5880,7 @@ declare namespace schemas {
|
|
5470
5880
|
schemas_FilterValue as FilterValue,
|
5471
5881
|
schemas_FuzzinessExpression as FuzzinessExpression,
|
5472
5882
|
schemas_HighlightExpression as HighlightExpression,
|
5883
|
+
schemas_InputFile as InputFile,
|
5473
5884
|
schemas_InputFileArray as InputFileArray,
|
5474
5885
|
schemas_InputFileEntry as InputFileEntry,
|
5475
5886
|
schemas_InviteID as InviteID,
|
@@ -5479,6 +5890,7 @@ declare namespace schemas {
|
|
5479
5890
|
schemas_ListGitBranchesResponse as ListGitBranchesResponse,
|
5480
5891
|
schemas_ListRegionsResponse as ListRegionsResponse,
|
5481
5892
|
schemas_MaxAgg as MaxAgg,
|
5893
|
+
schemas_MediaType as MediaType,
|
5482
5894
|
schemas_MetricsDatapoint as MetricsDatapoint,
|
5483
5895
|
schemas_MetricsLatency as MetricsLatency,
|
5484
5896
|
schemas_Migration as Migration,
|
@@ -5501,6 +5913,7 @@ declare namespace schemas {
|
|
5501
5913
|
schemas_Region as Region,
|
5502
5914
|
schemas_RevLink as RevLink,
|
5503
5915
|
schemas_Role as Role,
|
5916
|
+
schemas_SQLRecord as SQLRecord,
|
5504
5917
|
schemas_Schema as Schema,
|
5505
5918
|
schemas_SchemaEditScript as SchemaEditScript,
|
5506
5919
|
schemas_SearchPageConfig as SearchPageConfig,
|
@@ -5522,10 +5935,12 @@ declare namespace schemas {
|
|
5522
5935
|
schemas_TransactionDeleteOp as TransactionDeleteOp,
|
5523
5936
|
schemas_TransactionError as TransactionError,
|
5524
5937
|
schemas_TransactionFailure as TransactionFailure,
|
5938
|
+
schemas_TransactionGetOp as TransactionGetOp,
|
5525
5939
|
schemas_TransactionInsertOp as TransactionInsertOp,
|
5526
5940
|
TransactionOperation$1 as TransactionOperation,
|
5527
5941
|
schemas_TransactionResultColumns as TransactionResultColumns,
|
5528
5942
|
schemas_TransactionResultDelete as TransactionResultDelete,
|
5943
|
+
schemas_TransactionResultGet as TransactionResultGet,
|
5529
5944
|
schemas_TransactionResultInsert as TransactionResultInsert,
|
5530
5945
|
schemas_TransactionResultUpdate as TransactionResultUpdate,
|
5531
5946
|
schemas_TransactionSuccess as TransactionSuccess,
|
@@ -5567,6 +5982,7 @@ declare class XataApiClient {
|
|
5567
5982
|
get migrationRequests(): MigrationRequestsApi;
|
5568
5983
|
get tables(): TableApi;
|
5569
5984
|
get records(): RecordsApi;
|
5985
|
+
get files(): FilesApi;
|
5570
5986
|
get searchAndFilter(): SearchAndFilterApi;
|
5571
5987
|
}
|
5572
5988
|
declare class UserApi {
|
@@ -5888,6 +6304,60 @@ declare class RecordsApi {
|
|
5888
6304
|
operations: TransactionOperation$1[];
|
5889
6305
|
}): Promise<TransactionSuccess>;
|
5890
6306
|
}
|
6307
|
+
declare class FilesApi {
|
6308
|
+
private extraProps;
|
6309
|
+
constructor(extraProps: ApiExtraProps);
|
6310
|
+
getFileItem({ workspace, region, database, branch, table, record, column, fileId }: {
|
6311
|
+
workspace: WorkspaceID;
|
6312
|
+
region: string;
|
6313
|
+
database: DBName;
|
6314
|
+
branch: BranchName;
|
6315
|
+
table: TableName;
|
6316
|
+
record: RecordID;
|
6317
|
+
column: ColumnName;
|
6318
|
+
fileId: string;
|
6319
|
+
}): Promise<any>;
|
6320
|
+
putFileItem({ workspace, region, database, branch, table, record, column, fileId, file }: {
|
6321
|
+
workspace: WorkspaceID;
|
6322
|
+
region: string;
|
6323
|
+
database: DBName;
|
6324
|
+
branch: BranchName;
|
6325
|
+
table: TableName;
|
6326
|
+
record: RecordID;
|
6327
|
+
column: ColumnName;
|
6328
|
+
fileId: string;
|
6329
|
+
file: any;
|
6330
|
+
}): Promise<PutFileResponse>;
|
6331
|
+
deleteFileItem({ workspace, region, database, branch, table, record, column, fileId }: {
|
6332
|
+
workspace: WorkspaceID;
|
6333
|
+
region: string;
|
6334
|
+
database: DBName;
|
6335
|
+
branch: BranchName;
|
6336
|
+
table: TableName;
|
6337
|
+
record: RecordID;
|
6338
|
+
column: ColumnName;
|
6339
|
+
fileId: string;
|
6340
|
+
}): Promise<PutFileResponse>;
|
6341
|
+
getFile({ workspace, region, database, branch, table, record, column }: {
|
6342
|
+
workspace: WorkspaceID;
|
6343
|
+
region: string;
|
6344
|
+
database: DBName;
|
6345
|
+
branch: BranchName;
|
6346
|
+
table: TableName;
|
6347
|
+
record: RecordID;
|
6348
|
+
column: ColumnName;
|
6349
|
+
}): Promise<any>;
|
6350
|
+
putFile({ workspace, region, database, branch, table, record, column, file }: {
|
6351
|
+
workspace: WorkspaceID;
|
6352
|
+
region: string;
|
6353
|
+
database: DBName;
|
6354
|
+
branch: BranchName;
|
6355
|
+
table: TableName;
|
6356
|
+
record: RecordID;
|
6357
|
+
column: ColumnName;
|
6358
|
+
file: Blob;
|
6359
|
+
}): Promise<PutFileResponse>;
|
6360
|
+
}
|
5891
6361
|
declare class SearchAndFilterApi {
|
5892
6362
|
private extraProps;
|
5893
6363
|
constructor(extraProps: ApiExtraProps);
|
@@ -6149,6 +6619,11 @@ declare class DatabaseApi {
|
|
6149
6619
|
database: DBName;
|
6150
6620
|
metadata: DatabaseMetadata;
|
6151
6621
|
}): Promise<DatabaseMetadata>;
|
6622
|
+
renameDatabase({ workspace, database, newName }: {
|
6623
|
+
workspace: WorkspaceID;
|
6624
|
+
database: DBName;
|
6625
|
+
newName: DBName;
|
6626
|
+
}): Promise<DatabaseMetadata>;
|
6152
6627
|
getDatabaseGithubSettings({ workspace, database }: {
|
6153
6628
|
workspace: WorkspaceID;
|
6154
6629
|
database: DBName;
|
@@ -6794,11 +7269,18 @@ type AskResult = {
|
|
6794
7269
|
};
|
6795
7270
|
|
6796
7271
|
type SortDirection = 'asc' | 'desc';
|
6797
|
-
type
|
7272
|
+
type RandomFilter = {
|
7273
|
+
'*': 'random';
|
7274
|
+
};
|
7275
|
+
type RandomFilterExtended = {
|
7276
|
+
column: '*';
|
7277
|
+
direction: 'random';
|
7278
|
+
};
|
7279
|
+
type SortFilterExtended<T extends XataRecord, Columns extends string = ColumnsByValue<T, any>> = RandomFilterExtended | {
|
6798
7280
|
column: Columns;
|
6799
7281
|
direction?: SortDirection;
|
6800
7282
|
};
|
6801
|
-
type SortFilter<T extends XataRecord, Columns extends string = ColumnsByValue<T, any>> = Columns | SortFilterExtended<T, Columns> | SortFilterBase<T, Columns
|
7283
|
+
type SortFilter<T extends XataRecord, Columns extends string = ColumnsByValue<T, any>> = Columns | SortFilterExtended<T, Columns> | SortFilterBase<T, Columns> | RandomFilter;
|
6802
7284
|
type SortFilterBase<T extends XataRecord, Columns extends string = ColumnsByValue<T, any>> = Values<{
|
6803
7285
|
[Key in Columns]: {
|
6804
7286
|
[K in Key]: SortDirection;
|
@@ -6930,7 +7412,9 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
6930
7412
|
* @param direction The direction. Either ascending or descending.
|
6931
7413
|
* @returns A new Query object.
|
6932
7414
|
*/
|
6933
|
-
sort<F extends ColumnsByValue<Record, any>>(column: F, direction
|
7415
|
+
sort<F extends ColumnsByValue<Record, any>>(column: F, direction: SortDirection): Query<Record, Result>;
|
7416
|
+
sort(column: '*', direction: 'random'): Query<Record, Result>;
|
7417
|
+
sort<F extends ColumnsByValue<Record, any>>(column: F): Query<Record, Result>;
|
6934
7418
|
/**
|
6935
7419
|
* Builds a new query specifying the set of columns to be returned in the query response.
|
6936
7420
|
* @param columns Array of column names to be returned by the query.
|
@@ -6956,7 +7440,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
6956
7440
|
* @param options Pagination options
|
6957
7441
|
* @returns A page of results
|
6958
7442
|
*/
|
6959
|
-
getPaginated<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<Page<Record, SelectedPick<Record, typeof options['columns']>>>;
|
7443
|
+
getPaginated<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<Page<Record, SelectedPick<Record, (typeof options)['columns']>>>;
|
6960
7444
|
/**
|
6961
7445
|
* Get results in an iterator
|
6962
7446
|
*
|
@@ -6987,7 +7471,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
6987
7471
|
*/
|
6988
7472
|
getIterator<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'> & {
|
6989
7473
|
batchSize?: number;
|
6990
|
-
}>(options: Options): AsyncGenerator<SelectedPick<Record, typeof options['columns']>[]>;
|
7474
|
+
}>(options: Options): AsyncGenerator<SelectedPick<Record, (typeof options)['columns']>[]>;
|
6991
7475
|
/**
|
6992
7476
|
* Performs the query in the database and returns a set of results.
|
6993
7477
|
* @returns An array of records from the database.
|
@@ -6998,7 +7482,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
6998
7482
|
* @param options Additional options to be used when performing the query.
|
6999
7483
|
* @returns An array of records from the database.
|
7000
7484
|
*/
|
7001
|
-
getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<RecordArray<SelectedPick<Record, typeof options['columns']>>>;
|
7485
|
+
getMany<Options extends RequiredBy<QueryOptions<Record>, 'columns'>>(options: Options): Promise<RecordArray<SelectedPick<Record, (typeof options)['columns']>>>;
|
7002
7486
|
/**
|
7003
7487
|
* Performs the query in the database and returns a set of results.
|
7004
7488
|
* @param options Additional options to be used when performing the query.
|
@@ -7019,7 +7503,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
7019
7503
|
*/
|
7020
7504
|
getAll<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'> & {
|
7021
7505
|
batchSize?: number;
|
7022
|
-
}>(options: Options): Promise<SelectedPick<Record, typeof options['columns']>[]>;
|
7506
|
+
}>(options: Options): Promise<SelectedPick<Record, (typeof options)['columns']>[]>;
|
7023
7507
|
/**
|
7024
7508
|
* Performs the query in the database and returns all the results.
|
7025
7509
|
* Warning: If there are a large number of results, this method can have performance implications.
|
@@ -7039,7 +7523,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
7039
7523
|
* @param options Additional options to be used when performing the query.
|
7040
7524
|
* @returns The first record that matches the query, or null if no record matched the query.
|
7041
7525
|
*/
|
7042
|
-
getFirst<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']> | null>;
|
7526
|
+
getFirst<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, (typeof options)['columns']> | null>;
|
7043
7527
|
/**
|
7044
7528
|
* Performs the query in the database and returns the first result.
|
7045
7529
|
* @param options Additional options to be used when performing the query.
|
@@ -7058,7 +7542,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
7058
7542
|
* @returns The first record that matches the query, or null if no record matched the query.
|
7059
7543
|
* @throws if there are no results.
|
7060
7544
|
*/
|
7061
|
-
getFirstOrThrow<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, typeof options['columns']>>;
|
7545
|
+
getFirstOrThrow<Options extends RequiredBy<OmitBy<QueryOptions<Record>, 'pagination'>, 'columns'>>(options: Options): Promise<SelectedPick<Record, (typeof options)['columns']>>;
|
7062
7546
|
/**
|
7063
7547
|
* Performs the query in the database and returns the first result.
|
7064
7548
|
* @param options Additional options to be used when performing the query.
|
@@ -7107,6 +7591,7 @@ type PaginationQueryMeta = {
|
|
7107
7591
|
page: {
|
7108
7592
|
cursor: string;
|
7109
7593
|
more: boolean;
|
7594
|
+
size: number;
|
7110
7595
|
};
|
7111
7596
|
};
|
7112
7597
|
interface Paginable<Record extends XataRecord, Result extends XataRecord = Record> {
|
@@ -8204,20 +8689,20 @@ declare function getPreviewBranch(): string | undefined;
|
|
8204
8689
|
|
8205
8690
|
interface Body {
|
8206
8691
|
arrayBuffer(): Promise<ArrayBuffer>;
|
8207
|
-
blob(): Promise<Blob>;
|
8692
|
+
blob(): Promise<Blob$1>;
|
8208
8693
|
formData(): Promise<FormData>;
|
8209
8694
|
json(): Promise<any>;
|
8210
8695
|
text(): Promise<string>;
|
8211
8696
|
}
|
8212
|
-
interface Blob {
|
8697
|
+
interface Blob$1 {
|
8213
8698
|
readonly size: number;
|
8214
8699
|
readonly type: string;
|
8215
8700
|
arrayBuffer(): Promise<ArrayBuffer>;
|
8216
|
-
slice(start?: number, end?: number, contentType?: string): Blob;
|
8701
|
+
slice(start?: number, end?: number, contentType?: string): Blob$1;
|
8217
8702
|
text(): Promise<string>;
|
8218
8703
|
}
|
8219
8704
|
/** Provides information about files and allows JavaScript in a web page to access their content. */
|
8220
|
-
interface File extends Blob {
|
8705
|
+
interface File extends Blob$1 {
|
8221
8706
|
readonly lastModified: number;
|
8222
8707
|
readonly name: string;
|
8223
8708
|
readonly webkitRelativePath: string;
|
@@ -8225,12 +8710,12 @@ interface File extends Blob {
|
|
8225
8710
|
type FormDataEntryValue = File | string;
|
8226
8711
|
/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to "multipart/form-data". */
|
8227
8712
|
interface FormData {
|
8228
|
-
append(name: string, value: string | Blob, fileName?: string): void;
|
8713
|
+
append(name: string, value: string | Blob$1, fileName?: string): void;
|
8229
8714
|
delete(name: string): void;
|
8230
8715
|
get(name: string): FormDataEntryValue | null;
|
8231
8716
|
getAll(name: string): FormDataEntryValue[];
|
8232
8717
|
has(name: string): boolean;
|
8233
|
-
set(name: string, value: string | Blob, fileName?: string): void;
|
8718
|
+
set(name: string, value: string | Blob$1, fileName?: string): void;
|
8234
8719
|
forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;
|
8235
8720
|
}
|
8236
8721
|
/** This Fetch API interface allows you to perform various actions on HTTP request and response headers. These actions include retrieving, setting, adding to, and removing. A Headers object has an associated header list, which is initially empty and consists of zero or more name and value pairs. You can add to this using methods like append() (see Examples.) In all methods of this interface, header names are matched by case-insensitive byte sequence. */
|
@@ -8287,4 +8772,4 @@ declare class XataError extends Error {
|
|
8287
8772
|
constructor(message: string, status: number);
|
8288
8773
|
}
|
8289
8774
|
|
8290
|
-
export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, AggregateTableError, AggregateTablePathParams, AggregateTableRequestBody, AggregateTableVariables, ApiExtraProps, ApplyBranchSchemaEditError, ApplyBranchSchemaEditPathParams, ApplyBranchSchemaEditRequestBody, ApplyBranchSchemaEditVariables, AskOptions, AskResult, AskTableError, AskTablePathParams, AskTableRequestBody, AskTableResponse, AskTableVariables, BaseClient, BaseClientOptions, BaseData, BaseSchema, BranchTransactionError, BranchTransactionPathParams, BranchTransactionRequestBody, BranchTransactionVariables, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsQueryParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, ColumnsByValue, CompareBranchSchemasError, CompareBranchSchemasPathParams, CompareBranchSchemasRequestBody, CompareBranchSchemasVariables, CompareBranchWithUserSchemaError, CompareBranchWithUserSchemaPathParams, CompareBranchWithUserSchemaRequestBody, CompareBranchWithUserSchemaVariables, CompareMigrationRequestError, CompareMigrationRequestPathParams, CompareMigrationRequestVariables, CopyBranchError, CopyBranchPathParams, CopyBranchRequestBody, CopyBranchVariables, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchResponse, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateMigrationRequestError, CreateMigrationRequestPathParams, CreateMigrationRequestRequestBody, CreateMigrationRequestResponse, CreateMigrationRequestVariables, CreateTableError, CreateTablePathParams, CreateTableResponse, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchResponse, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabaseGithubSettingsError, DeleteDatabaseGithubSettingsPathParams, DeleteDatabaseGithubSettingsVariables, DeleteDatabasePathParams, DeleteDatabaseResponse, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordQueryParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableResponse, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, DeserializedType, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherError, FetcherExtraProps, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchSchemaHistoryError, GetBranchSchemaHistoryPathParams, GetBranchSchemaHistoryRequestBody, GetBranchSchemaHistoryResponse, GetBranchSchemaHistoryVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseGithubSettingsError, GetDatabaseGithubSettingsPathParams, GetDatabaseGithubSettingsVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetDatabaseMetadataError, GetDatabaseMetadataPathParams, GetDatabaseMetadataVariables, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetMigrationRequestError, GetMigrationRequestIsMergedError, GetMigrationRequestIsMergedPathParams, GetMigrationRequestIsMergedResponse, GetMigrationRequestIsMergedVariables, GetMigrationRequestPathParams, GetMigrationRequestVariables, GetRecordError, GetRecordPathParams, GetRecordQueryParams, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, HostProvider, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordQueryParams, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, KeywordAskOptions, Link, ListMigrationRequestsCommitsError, ListMigrationRequestsCommitsPathParams, ListMigrationRequestsCommitsRequestBody, ListMigrationRequestsCommitsResponse, ListMigrationRequestsCommitsVariables, ListRegionsError, ListRegionsPathParams, ListRegionsVariables, MergeMigrationRequestError, MergeMigrationRequestPathParams, MergeMigrationRequestVariables, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationQueryMeta, PreviewBranchSchemaEditError, PreviewBranchSchemaEditPathParams, PreviewBranchSchemaEditRequestBody, PreviewBranchSchemaEditResponse, PreviewBranchSchemaEditVariables, PushBranchMigrationsError, PushBranchMigrationsPathParams, PushBranchMigrationsRequestBody, PushBranchMigrationsVariables, Query, QueryMigrationRequestsError, QueryMigrationRequestsPathParams, QueryMigrationRequestsRequestBody, QueryMigrationRequestsResponse, QueryMigrationRequestsVariables, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RecordArray, RemoveGitBranchesEntryError, RemoveGitBranchesEntryPathParams, RemoveGitBranchesEntryQueryParams, RemoveGitBranchesEntryVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, ResolveBranchError, ResolveBranchPathParams, ResolveBranchQueryParams, ResolveBranchResponse, ResolveBranchVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaInference, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SearchTableError, SearchTablePathParams, SearchTableRequestBody, SearchTableVariables, SearchXataRecord, SelectableColumn, SelectedPick, SerializedString, Serializer, SerializerResult, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, SqlQueryError, SqlQueryPathParams, SqlQueryRequestBody, SqlQueryVariables, SummarizeTableError, SummarizeTablePathParams, SummarizeTableRequestBody, SummarizeTableVariables, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateBranchSchemaError, UpdateBranchSchemaPathParams, UpdateBranchSchemaVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateDatabaseGithubSettingsError, UpdateDatabaseGithubSettingsPathParams, UpdateDatabaseGithubSettingsVariables, UpdateDatabaseMetadataError, UpdateDatabaseMetadataPathParams, UpdateDatabaseMetadataRequestBody, UpdateDatabaseMetadataVariables, UpdateMigrationRequestError, UpdateMigrationRequestPathParams, UpdateMigrationRequestRequestBody, UpdateMigrationRequestVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberInviteError, UpdateWorkspaceMemberInvitePathParams, UpdateWorkspaceMemberInviteRequestBody, UpdateWorkspaceMemberInviteVariables, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, VectorAskOptions, VectorSearchTableError, VectorSearchTablePathParams, VectorSearchTableRequestBody, VectorSearchTableVariables, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, askTable, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseURL, getGitBranchesMapping, getHostUrl, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, greaterEquals, greaterThan, greaterThanEquals, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isXataRecord, le, lessEquals, lessThan, lessThanEquals, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, pushBranchMigrations, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, sqlQuery, startsWith, summarizeTable, updateBranchMetadata, updateBranchSchema, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateMigrationRequest, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };
|
8775
|
+
export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddGitBranchesEntryError, AddGitBranchesEntryPathParams, AddGitBranchesEntryRequestBody, AddGitBranchesEntryResponse, AddGitBranchesEntryVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, AggregateTableError, AggregateTablePathParams, AggregateTableRequestBody, AggregateTableVariables, ApiExtraProps, ApplyBranchSchemaEditError, ApplyBranchSchemaEditPathParams, ApplyBranchSchemaEditRequestBody, ApplyBranchSchemaEditVariables, AskOptions, AskResult, AskTableError, AskTablePathParams, AskTableRequestBody, AskTableResponse, AskTableVariables, BaseClient, BaseClientOptions, BaseData, BaseSchema, BranchTransactionError, BranchTransactionPathParams, BranchTransactionRequestBody, BranchTransactionVariables, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsQueryParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsVariables, CacheImpl, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, ColumnsByValue, CompareBranchSchemasError, CompareBranchSchemasPathParams, CompareBranchSchemasRequestBody, CompareBranchSchemasVariables, CompareBranchWithUserSchemaError, CompareBranchWithUserSchemaPathParams, CompareBranchWithUserSchemaRequestBody, CompareBranchWithUserSchemaVariables, CompareMigrationRequestError, CompareMigrationRequestPathParams, CompareMigrationRequestVariables, CopyBranchError, CopyBranchPathParams, CopyBranchRequestBody, CopyBranchVariables, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchResponse, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateMigrationRequestError, CreateMigrationRequestPathParams, CreateMigrationRequestRequestBody, CreateMigrationRequestResponse, CreateMigrationRequestVariables, CreateTableError, CreateTablePathParams, CreateTableResponse, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchResponse, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabaseGithubSettingsError, DeleteDatabaseGithubSettingsPathParams, DeleteDatabaseGithubSettingsVariables, DeleteDatabasePathParams, DeleteDatabaseResponse, DeleteDatabaseVariables, DeleteFileItemError, DeleteFileItemPathParams, DeleteFileItemVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordQueryParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableResponse, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, DeserializedType, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherError, FetcherExtraProps, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchSchemaHistoryError, GetBranchSchemaHistoryPathParams, GetBranchSchemaHistoryRequestBody, GetBranchSchemaHistoryResponse, GetBranchSchemaHistoryVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseGithubSettingsError, GetDatabaseGithubSettingsPathParams, GetDatabaseGithubSettingsVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetDatabaseMetadataError, GetDatabaseMetadataPathParams, GetDatabaseMetadataVariables, GetFileError, GetFileItemError, GetFileItemPathParams, GetFileItemVariables, GetFilePathParams, GetFileVariables, GetGitBranchesMappingError, GetGitBranchesMappingPathParams, GetGitBranchesMappingVariables, GetMigrationRequestError, GetMigrationRequestIsMergedError, GetMigrationRequestIsMergedPathParams, GetMigrationRequestIsMergedResponse, GetMigrationRequestIsMergedVariables, GetMigrationRequestPathParams, GetMigrationRequestVariables, GetRecordError, GetRecordPathParams, GetRecordQueryParams, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, HostProvider, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordQueryParams, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, JSONData, KeywordAskOptions, Link, ListMigrationRequestsCommitsError, ListMigrationRequestsCommitsPathParams, ListMigrationRequestsCommitsRequestBody, ListMigrationRequestsCommitsResponse, ListMigrationRequestsCommitsVariables, ListRegionsError, ListRegionsPathParams, ListRegionsVariables, MergeMigrationRequestError, MergeMigrationRequestPathParams, MergeMigrationRequestVariables, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationQueryMeta, PreviewBranchSchemaEditError, PreviewBranchSchemaEditPathParams, PreviewBranchSchemaEditRequestBody, PreviewBranchSchemaEditResponse, PreviewBranchSchemaEditVariables, PushBranchMigrationsError, PushBranchMigrationsPathParams, PushBranchMigrationsRequestBody, PushBranchMigrationsVariables, PutFileError, PutFileItemError, PutFileItemPathParams, PutFileItemVariables, PutFilePathParams, PutFileVariables, Query, QueryMigrationRequestsError, QueryMigrationRequestsPathParams, QueryMigrationRequestsRequestBody, QueryMigrationRequestsResponse, QueryMigrationRequestsVariables, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RecordArray, RemoveGitBranchesEntryError, RemoveGitBranchesEntryPathParams, RemoveGitBranchesEntryQueryParams, RemoveGitBranchesEntryVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, RenameDatabaseError, RenameDatabasePathParams, RenameDatabaseRequestBody, RenameDatabaseVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, ResolveBranchError, ResolveBranchPathParams, ResolveBranchQueryParams, ResolveBranchResponse, ResolveBranchVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaInference, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SearchTableError, SearchTablePathParams, SearchTableRequestBody, SearchTableVariables, SearchXataRecord, SelectableColumn, SelectedPick, SerializedString, Serializer, SerializerResult, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, SimpleCache, SimpleCacheOptions, SqlQueryError, SqlQueryPathParams, SqlQueryRequestBody, SqlQueryVariables, SummarizeTableError, SummarizeTablePathParams, SummarizeTableRequestBody, SummarizeTableVariables, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateBranchSchemaError, UpdateBranchSchemaPathParams, UpdateBranchSchemaVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateDatabaseGithubSettingsError, UpdateDatabaseGithubSettingsPathParams, UpdateDatabaseGithubSettingsVariables, UpdateDatabaseMetadataError, UpdateDatabaseMetadataPathParams, UpdateDatabaseMetadataRequestBody, UpdateDatabaseMetadataVariables, UpdateMigrationRequestError, UpdateMigrationRequestPathParams, UpdateMigrationRequestRequestBody, UpdateMigrationRequestVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberInviteError, UpdateWorkspaceMemberInvitePathParams, UpdateWorkspaceMemberInviteRequestBody, UpdateWorkspaceMemberInviteVariables, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, VectorAskOptions, VectorSearchTableError, VectorSearchTablePathParams, VectorSearchTableRequestBody, VectorSearchTableVariables, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, askTable, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFileItem, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, greaterEquals, greaterThan, greaterThanEquals, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isXataRecord, le, lessEquals, lessThan, lessThanEquals, 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, updateBranchMetadata, updateBranchSchema, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateMigrationRequest, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };
|