@xata.io/client 0.22.2 → 0.22.3
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 +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +70 -7
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -1137,7 +1137,7 @@ type ColumnVector = {
|
|
1137
1137
|
};
|
1138
1138
|
type Column = {
|
1139
1139
|
name: string;
|
1140
|
-
type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime' | 'vector';
|
1140
|
+
type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime' | 'vector' | 'fileArray';
|
1141
1141
|
link?: ColumnLink;
|
1142
1142
|
vector?: ColumnVector;
|
1143
1143
|
notNull?: boolean;
|
@@ -1634,6 +1634,61 @@ type TransactionFailure = {
|
|
1634
1634
|
*/
|
1635
1635
|
errors: TransactionError[];
|
1636
1636
|
};
|
1637
|
+
/**
|
1638
|
+
* Object column value
|
1639
|
+
*/
|
1640
|
+
type ObjectValue = {
|
1641
|
+
[key: string]: string | boolean | number | string[] | number[] | DateTime | ObjectValue;
|
1642
|
+
};
|
1643
|
+
/**
|
1644
|
+
* Object representing a file
|
1645
|
+
*
|
1646
|
+
* @x-go-type file.InputFile
|
1647
|
+
*/
|
1648
|
+
type InputFileEntry = {
|
1649
|
+
/**
|
1650
|
+
* File name
|
1651
|
+
*
|
1652
|
+
* @maxLength 1024
|
1653
|
+
* @minLength 1
|
1654
|
+
* @pattern [0-9a-zA-Z!\-_\.\*'\(\)]+
|
1655
|
+
*/
|
1656
|
+
name: string;
|
1657
|
+
/**
|
1658
|
+
* Media type
|
1659
|
+
*
|
1660
|
+
* @maxLength 255
|
1661
|
+
* @minLength 3
|
1662
|
+
* @pattern ^\w+/[-+.\w]+$
|
1663
|
+
*/
|
1664
|
+
mediaType?: string;
|
1665
|
+
/**
|
1666
|
+
* Base64 encoded content
|
1667
|
+
*
|
1668
|
+
* @maxLength 20971520
|
1669
|
+
*/
|
1670
|
+
base64Content?: string;
|
1671
|
+
/**
|
1672
|
+
* Enable public access to the file
|
1673
|
+
*/
|
1674
|
+
enablePublicUrl?: boolean;
|
1675
|
+
/**
|
1676
|
+
* Time to live for signed URLs
|
1677
|
+
*/
|
1678
|
+
signedUrlTimeout?: number;
|
1679
|
+
};
|
1680
|
+
/**
|
1681
|
+
* Array of file entries
|
1682
|
+
*
|
1683
|
+
* @maxItems 50
|
1684
|
+
*/
|
1685
|
+
type InputFileArray = InputFileEntry[];
|
1686
|
+
/**
|
1687
|
+
* Xata input record
|
1688
|
+
*/
|
1689
|
+
type DataInputRecord = {
|
1690
|
+
[key: string]: RecordID | string | boolean | number | string[] | number[] | DateTime | ObjectValue | InputFileArray | InputFileEntry;
|
1691
|
+
};
|
1637
1692
|
/**
|
1638
1693
|
* Xata Table Record Metadata
|
1639
1694
|
*/
|
@@ -3527,7 +3582,7 @@ type InsertRecordError = ErrorWrapper<{
|
|
3527
3582
|
payload: SimpleError;
|
3528
3583
|
}>;
|
3529
3584
|
type InsertRecordVariables = {
|
3530
|
-
body?:
|
3585
|
+
body?: DataInputRecord;
|
3531
3586
|
pathParams: InsertRecordPathParams;
|
3532
3587
|
queryParams?: InsertRecordQueryParams;
|
3533
3588
|
} & DataPlaneFetcherExtraProps;
|
@@ -3613,7 +3668,7 @@ type InsertRecordWithIDError = ErrorWrapper<{
|
|
3613
3668
|
payload: SimpleError;
|
3614
3669
|
}>;
|
3615
3670
|
type InsertRecordWithIDVariables = {
|
3616
|
-
body?:
|
3671
|
+
body?: DataInputRecord;
|
3617
3672
|
pathParams: InsertRecordWithIDPathParams;
|
3618
3673
|
queryParams?: InsertRecordWithIDQueryParams;
|
3619
3674
|
} & DataPlaneFetcherExtraProps;
|
@@ -3658,7 +3713,7 @@ type UpdateRecordWithIDError = ErrorWrapper<{
|
|
3658
3713
|
payload: SimpleError;
|
3659
3714
|
}>;
|
3660
3715
|
type UpdateRecordWithIDVariables = {
|
3661
|
-
body?:
|
3716
|
+
body?: DataInputRecord;
|
3662
3717
|
pathParams: UpdateRecordWithIDPathParams;
|
3663
3718
|
queryParams?: UpdateRecordWithIDQueryParams;
|
3664
3719
|
} & DataPlaneFetcherExtraProps;
|
@@ -3700,7 +3755,7 @@ type UpsertRecordWithIDError = ErrorWrapper<{
|
|
3700
3755
|
payload: SimpleError;
|
3701
3756
|
}>;
|
3702
3757
|
type UpsertRecordWithIDVariables = {
|
3703
|
-
body?:
|
3758
|
+
body?: DataInputRecord;
|
3704
3759
|
pathParams: UpsertRecordWithIDPathParams;
|
3705
3760
|
queryParams?: UpsertRecordWithIDQueryParams;
|
3706
3761
|
} & DataPlaneFetcherExtraProps;
|
@@ -3774,7 +3829,7 @@ type BulkInsertTableRecordsError = ErrorWrapper<{
|
|
3774
3829
|
payload: SimpleError;
|
3775
3830
|
}>;
|
3776
3831
|
type BulkInsertTableRecordsRequestBody = {
|
3777
|
-
records:
|
3832
|
+
records: DataInputRecord[];
|
3778
3833
|
};
|
3779
3834
|
type BulkInsertTableRecordsVariables = {
|
3780
3835
|
body: BulkInsertTableRecordsRequestBody;
|
@@ -4708,7 +4763,7 @@ type VectorSearchTableRequestBody = {
|
|
4708
4763
|
*/
|
4709
4764
|
queryVector: number[];
|
4710
4765
|
/**
|
4711
|
-
* The vector column in which to search.
|
4766
|
+
* The vector column in which to search. It must be of type `vector`.
|
4712
4767
|
*/
|
4713
4768
|
column: string;
|
4714
4769
|
/**
|
@@ -5072,6 +5127,7 @@ type schemas_CountAgg = CountAgg;
|
|
5072
5127
|
type schemas_DBBranch = DBBranch;
|
5073
5128
|
type schemas_DBBranchName = DBBranchName;
|
5074
5129
|
type schemas_DBName = DBName;
|
5130
|
+
type schemas_DataInputRecord = DataInputRecord;
|
5075
5131
|
type schemas_DatabaseGithubSettings = DatabaseGithubSettings;
|
5076
5132
|
type schemas_DatabaseMetadata = DatabaseMetadata;
|
5077
5133
|
type schemas_DateHistogramAgg = DateHistogramAgg;
|
@@ -5087,6 +5143,8 @@ type schemas_FilterRangeValue = FilterRangeValue;
|
|
5087
5143
|
type schemas_FilterValue = FilterValue;
|
5088
5144
|
type schemas_FuzzinessExpression = FuzzinessExpression;
|
5089
5145
|
type schemas_HighlightExpression = HighlightExpression;
|
5146
|
+
type schemas_InputFileArray = InputFileArray;
|
5147
|
+
type schemas_InputFileEntry = InputFileEntry;
|
5090
5148
|
type schemas_InviteID = InviteID;
|
5091
5149
|
type schemas_InviteKey = InviteKey;
|
5092
5150
|
type schemas_ListBranchesResponse = ListBranchesResponse;
|
@@ -5105,6 +5163,7 @@ type schemas_MigrationStatus = MigrationStatus;
|
|
5105
5163
|
type schemas_MigrationTableOp = MigrationTableOp;
|
5106
5164
|
type schemas_MinAgg = MinAgg;
|
5107
5165
|
type schemas_NumericHistogramAgg = NumericHistogramAgg;
|
5166
|
+
type schemas_ObjectValue = ObjectValue;
|
5108
5167
|
type schemas_PageConfig = PageConfig;
|
5109
5168
|
type schemas_PrefixExpression = PrefixExpression;
|
5110
5169
|
type schemas_RecordID = RecordID;
|
@@ -5177,6 +5236,7 @@ declare namespace schemas {
|
|
5177
5236
|
schemas_DBBranch as DBBranch,
|
5178
5237
|
schemas_DBBranchName as DBBranchName,
|
5179
5238
|
schemas_DBName as DBName,
|
5239
|
+
schemas_DataInputRecord as DataInputRecord,
|
5180
5240
|
schemas_DatabaseGithubSettings as DatabaseGithubSettings,
|
5181
5241
|
schemas_DatabaseMetadata as DatabaseMetadata,
|
5182
5242
|
DateBooster$1 as DateBooster,
|
@@ -5193,6 +5253,8 @@ declare namespace schemas {
|
|
5193
5253
|
schemas_FilterValue as FilterValue,
|
5194
5254
|
schemas_FuzzinessExpression as FuzzinessExpression,
|
5195
5255
|
schemas_HighlightExpression as HighlightExpression,
|
5256
|
+
schemas_InputFileArray as InputFileArray,
|
5257
|
+
schemas_InputFileEntry as InputFileEntry,
|
5196
5258
|
schemas_InviteID as InviteID,
|
5197
5259
|
schemas_InviteKey as InviteKey,
|
5198
5260
|
schemas_ListBranchesResponse as ListBranchesResponse,
|
@@ -5212,6 +5274,7 @@ declare namespace schemas {
|
|
5212
5274
|
schemas_MinAgg as MinAgg,
|
5213
5275
|
NumericBooster$1 as NumericBooster,
|
5214
5276
|
schemas_NumericHistogramAgg as NumericHistogramAgg,
|
5277
|
+
schemas_ObjectValue as ObjectValue,
|
5215
5278
|
schemas_PageConfig as PageConfig,
|
5216
5279
|
schemas_PrefixExpression as PrefixExpression,
|
5217
5280
|
schemas_RecordID as RecordID,
|