@xata.io/client 0.24.3 → 0.25.1
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 +9 -4
- package/CHANGELOG.md +22 -0
- package/dist/index.cjs +493 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +491 -29
- package/dist/index.mjs +489 -54
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -37,7 +37,7 @@ type TraceFunction = <T>(name: string, fn: (options: {
|
|
37
37
|
}) => T, options?: AttributeDictionary) => Promise<T>;
|
38
38
|
|
39
39
|
type RequestInit = {
|
40
|
-
body?:
|
40
|
+
body?: any;
|
41
41
|
headers?: Record<string, string>;
|
42
42
|
method?: string;
|
43
43
|
signal?: any;
|
@@ -47,6 +47,8 @@ type Response = {
|
|
47
47
|
status: number;
|
48
48
|
url: string;
|
49
49
|
json(): Promise<any>;
|
50
|
+
text(): Promise<string>;
|
51
|
+
blob(): Promise<Blob>;
|
50
52
|
headers?: {
|
51
53
|
get(name: string): string | null;
|
52
54
|
};
|
@@ -81,6 +83,8 @@ type FetcherExtraProps = {
|
|
81
83
|
clientName?: string;
|
82
84
|
xataAgentExtra?: Record<string, string>;
|
83
85
|
fetchOptions?: Record<string, unknown>;
|
86
|
+
rawResponse?: boolean;
|
87
|
+
headers?: Record<string, unknown>;
|
84
88
|
};
|
85
89
|
|
86
90
|
type ControlPlaneFetcherExtraProps = {
|
@@ -105,6 +109,34 @@ type ErrorWrapper$1<TError> = TError | {
|
|
105
109
|
*
|
106
110
|
* @version 1.0
|
107
111
|
*/
|
112
|
+
type AuthorizationCode = {
|
113
|
+
state?: string;
|
114
|
+
redirectUri?: string;
|
115
|
+
scopes?: string[];
|
116
|
+
/**
|
117
|
+
* @format date-time
|
118
|
+
*/
|
119
|
+
expires?: string;
|
120
|
+
};
|
121
|
+
type AccessTokenInput = {
|
122
|
+
grantType: string;
|
123
|
+
clientId: string;
|
124
|
+
clientSecret: string;
|
125
|
+
refreshToken: string;
|
126
|
+
} | {
|
127
|
+
grantType: string;
|
128
|
+
clientId: string;
|
129
|
+
clientSecret: string;
|
130
|
+
code: string;
|
131
|
+
redirectUri: string;
|
132
|
+
codeVerifier?: string;
|
133
|
+
};
|
134
|
+
type AccessTokenOutput = {
|
135
|
+
accessToken: string;
|
136
|
+
refreshToken: string;
|
137
|
+
tokenType: string;
|
138
|
+
expires?: number;
|
139
|
+
};
|
108
140
|
type User = {
|
109
141
|
/**
|
110
142
|
* @format email
|
@@ -180,6 +212,7 @@ type WorkspaceMembers = {
|
|
180
212
|
* @pattern ^ik_[a-zA-Z0-9]+
|
181
213
|
*/
|
182
214
|
type InviteKey = string;
|
215
|
+
type AccessToken = string;
|
183
216
|
/**
|
184
217
|
* Metadata of databases
|
185
218
|
*/
|
@@ -260,6 +293,7 @@ type DatabaseGithubSettings = {
|
|
260
293
|
};
|
261
294
|
type Region = {
|
262
295
|
id: string;
|
296
|
+
name: string;
|
263
297
|
};
|
264
298
|
type ListRegionsResponse = {
|
265
299
|
/**
|
@@ -295,6 +329,55 @@ type SimpleError$1 = {
|
|
295
329
|
* @version 1.0
|
296
330
|
*/
|
297
331
|
|
332
|
+
type GrantAuthorizationCodeError = ErrorWrapper$1<{
|
333
|
+
status: 400;
|
334
|
+
payload: BadRequestError$1;
|
335
|
+
} | {
|
336
|
+
status: 401;
|
337
|
+
payload: AuthError$1;
|
338
|
+
} | {
|
339
|
+
status: 404;
|
340
|
+
payload: SimpleError$1;
|
341
|
+
} | {
|
342
|
+
status: 409;
|
343
|
+
payload: SimpleError$1;
|
344
|
+
}>;
|
345
|
+
type GrantAuthorizationCodeResponse = AuthorizationCode & {
|
346
|
+
code: string;
|
347
|
+
};
|
348
|
+
type GrantAuthorizationCodeRequestBody = AuthorizationCode & {
|
349
|
+
responseType: string;
|
350
|
+
clientId: string;
|
351
|
+
codeChallenge?: string;
|
352
|
+
codeChallengeMethod?: string;
|
353
|
+
};
|
354
|
+
type GrantAuthorizationCodeVariables = {
|
355
|
+
body?: GrantAuthorizationCodeRequestBody;
|
356
|
+
} & ControlPlaneFetcherExtraProps;
|
357
|
+
/**
|
358
|
+
* Creates, stores and returns an authorization code to be used by a third party app
|
359
|
+
*/
|
360
|
+
declare const grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal) => Promise<GrantAuthorizationCodeResponse>;
|
361
|
+
type GenerateAccessTokenError = ErrorWrapper$1<{
|
362
|
+
status: 400;
|
363
|
+
payload: BadRequestError$1;
|
364
|
+
} | {
|
365
|
+
status: 401;
|
366
|
+
payload: AuthError$1;
|
367
|
+
} | {
|
368
|
+
status: 404;
|
369
|
+
payload: SimpleError$1;
|
370
|
+
} | {
|
371
|
+
status: 409;
|
372
|
+
payload: SimpleError$1;
|
373
|
+
}>;
|
374
|
+
type GenerateAccessTokenVariables = {
|
375
|
+
body?: AccessTokenInput;
|
376
|
+
} & ControlPlaneFetcherExtraProps;
|
377
|
+
/**
|
378
|
+
* Creates/refreshes, stores and returns an access token to be used by a third party app
|
379
|
+
*/
|
380
|
+
declare const generateAccessToken: (variables: GenerateAccessTokenVariables, signal?: AbortSignal) => Promise<AccessTokenOutput>;
|
298
381
|
type GetUserError = ErrorWrapper$1<{
|
299
382
|
status: 400;
|
300
383
|
payload: BadRequestError$1;
|
@@ -1171,19 +1254,24 @@ type ColumnVector = {
|
|
1171
1254
|
*/
|
1172
1255
|
dimension: number;
|
1173
1256
|
};
|
1257
|
+
type ColumnFile = {
|
1258
|
+
defaultPublicAccess?: boolean;
|
1259
|
+
};
|
1174
1260
|
type Column = {
|
1175
1261
|
name: string;
|
1176
1262
|
type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime' | 'vector' | 'file[]' | 'file';
|
1177
1263
|
link?: ColumnLink;
|
1178
1264
|
vector?: ColumnVector;
|
1265
|
+
file?: ColumnFile;
|
1266
|
+
['file[]']?: ColumnFile;
|
1179
1267
|
notNull?: boolean;
|
1180
1268
|
defaultValue?: string;
|
1181
1269
|
unique?: boolean;
|
1182
1270
|
columns?: Column[];
|
1183
1271
|
};
|
1184
1272
|
type RevLink = {
|
1185
|
-
linkID: string;
|
1186
1273
|
table: string;
|
1274
|
+
column: string;
|
1187
1275
|
};
|
1188
1276
|
type Table = {
|
1189
1277
|
id?: string;
|
@@ -1870,10 +1958,30 @@ type FileResponse = {
|
|
1870
1958
|
version: number;
|
1871
1959
|
attributes?: Record<string, any>;
|
1872
1960
|
};
|
1961
|
+
type QueryColumnsProjection = (string | ProjectionConfig)[];
|
1962
|
+
/**
|
1963
|
+
* A structured projection that allows for some configuration.
|
1964
|
+
*/
|
1873
1965
|
type ProjectionConfig = {
|
1966
|
+
/**
|
1967
|
+
* The name of the column to project or a reverse link specification, see [API Guide](https://xata.io/docs/concepts/data-model#links-and-relations).
|
1968
|
+
*/
|
1874
1969
|
name?: string;
|
1970
|
+
columns?: QueryColumnsProjection;
|
1971
|
+
/**
|
1972
|
+
* An alias for the projected field, this is how it will be returned in the response.
|
1973
|
+
*/
|
1974
|
+
as?: string;
|
1975
|
+
sort?: SortExpression;
|
1976
|
+
/**
|
1977
|
+
* @default 20
|
1978
|
+
*/
|
1979
|
+
limit?: number;
|
1980
|
+
/**
|
1981
|
+
* @default 0
|
1982
|
+
*/
|
1983
|
+
offset?: number;
|
1875
1984
|
};
|
1876
|
-
type QueryColumnsProjection = (string | ProjectionConfig)[];
|
1877
1985
|
/**
|
1878
1986
|
* The target expression is used to filter the search results by the target columns.
|
1879
1987
|
*/
|
@@ -2326,6 +2434,10 @@ type SchemaCompareResponse = {
|
|
2326
2434
|
target: Schema;
|
2327
2435
|
edits: SchemaEditScript;
|
2328
2436
|
};
|
2437
|
+
type RateLimitError = {
|
2438
|
+
id?: string;
|
2439
|
+
message: string;
|
2440
|
+
};
|
2329
2441
|
type RecordUpdateResponse = XataRecord$1 | {
|
2330
2442
|
id: string;
|
2331
2443
|
xata: {
|
@@ -2358,15 +2470,15 @@ type ServiceUnavailableError = {
|
|
2358
2470
|
type SearchResponse = {
|
2359
2471
|
records: XataRecord$1[];
|
2360
2472
|
warning?: string;
|
2473
|
+
/**
|
2474
|
+
* The total count of records matched. It will be accurately returned up to 10000 records.
|
2475
|
+
*/
|
2476
|
+
totalCount: number;
|
2361
2477
|
};
|
2362
2478
|
type SQLResponse = {
|
2363
2479
|
records: SQLRecord[];
|
2364
2480
|
warning?: string;
|
2365
2481
|
};
|
2366
|
-
type RateLimitError = {
|
2367
|
-
id?: string;
|
2368
|
-
message: string;
|
2369
|
-
};
|
2370
2482
|
type SummarizeResponse = {
|
2371
2483
|
summaries: Record<string, any>[];
|
2372
2484
|
};
|
@@ -2390,6 +2502,8 @@ type DataPlaneFetcherExtraProps = {
|
|
2390
2502
|
sessionID?: string;
|
2391
2503
|
clientName?: string;
|
2392
2504
|
xataAgentExtra?: Record<string, string>;
|
2505
|
+
rawResponse?: boolean;
|
2506
|
+
headers?: Record<string, unknown>;
|
2393
2507
|
};
|
2394
2508
|
type ErrorWrapper<TError> = TError | {
|
2395
2509
|
status: 'unknown';
|
@@ -3677,9 +3791,7 @@ type AddTableColumnVariables = {
|
|
3677
3791
|
pathParams: AddTableColumnPathParams;
|
3678
3792
|
} & DataPlaneFetcherExtraProps;
|
3679
3793
|
/**
|
3680
|
-
* Adds a new column to the table. The body of the request should contain the column definition.
|
3681
|
-
* contain the full path separated by dots. If the parent objects do not exists, they will be automatically created. For example,
|
3682
|
-
* passing `"name": "address.city"` will auto-create the `address` object if it doesn't exist.
|
3794
|
+
* Adds a new column to the table. The body of the request should contain the column definition.
|
3683
3795
|
*/
|
3684
3796
|
declare const addTableColumn: (variables: AddTableColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
3685
3797
|
type GetColumnPathParams = {
|
@@ -3712,7 +3824,7 @@ type GetColumnVariables = {
|
|
3712
3824
|
pathParams: GetColumnPathParams;
|
3713
3825
|
} & DataPlaneFetcherExtraProps;
|
3714
3826
|
/**
|
3715
|
-
* Get the definition of a single column.
|
3827
|
+
* Get the definition of a single column.
|
3716
3828
|
*/
|
3717
3829
|
declare const getColumn: (variables: GetColumnVariables, signal?: AbortSignal) => Promise<Column>;
|
3718
3830
|
type UpdateColumnPathParams = {
|
@@ -3752,7 +3864,7 @@ type UpdateColumnVariables = {
|
|
3752
3864
|
pathParams: UpdateColumnPathParams;
|
3753
3865
|
} & DataPlaneFetcherExtraProps;
|
3754
3866
|
/**
|
3755
|
-
* Update column with partial data. Can be used for renaming the column by providing a new "name" field.
|
3867
|
+
* Update column with partial data. Can be used for renaming the column by providing a new "name" field.
|
3756
3868
|
*/
|
3757
3869
|
declare const updateColumn: (variables: UpdateColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
3758
3870
|
type DeleteColumnPathParams = {
|
@@ -3785,7 +3897,7 @@ type DeleteColumnVariables = {
|
|
3785
3897
|
pathParams: DeleteColumnPathParams;
|
3786
3898
|
} & DataPlaneFetcherExtraProps;
|
3787
3899
|
/**
|
3788
|
-
* Deletes the specified column.
|
3900
|
+
* Deletes the specified column.
|
3789
3901
|
*/
|
3790
3902
|
declare const deleteColumn: (variables: DeleteColumnVariables, signal?: AbortSignal) => Promise<SchemaUpdateResponse>;
|
3791
3903
|
type BranchTransactionPathParams = {
|
@@ -3805,6 +3917,9 @@ type BranchTransactionError = ErrorWrapper<{
|
|
3805
3917
|
} | {
|
3806
3918
|
status: 404;
|
3807
3919
|
payload: SimpleError;
|
3920
|
+
} | {
|
3921
|
+
status: 429;
|
3922
|
+
payload: RateLimitError;
|
3808
3923
|
}>;
|
3809
3924
|
type BranchTransactionRequestBody = {
|
3810
3925
|
operations: TransactionOperation$1[];
|
@@ -5314,6 +5429,10 @@ type SqlQueryRequestBody = {
|
|
5314
5429
|
* @minLength 1
|
5315
5430
|
*/
|
5316
5431
|
query: string;
|
5432
|
+
/**
|
5433
|
+
* The query parameter list.
|
5434
|
+
*/
|
5435
|
+
params?: any[] | null;
|
5317
5436
|
/**
|
5318
5437
|
* The consistency level for this request.
|
5319
5438
|
*
|
@@ -5413,15 +5532,16 @@ type AskTableError = ErrorWrapper<{
|
|
5413
5532
|
} | {
|
5414
5533
|
status: 429;
|
5415
5534
|
payload: RateLimitError;
|
5416
|
-
} | {
|
5417
|
-
status: 503;
|
5418
|
-
payload: ServiceUnavailableError;
|
5419
5535
|
}>;
|
5420
5536
|
type AskTableResponse = {
|
5421
5537
|
/**
|
5422
5538
|
* The answer to the input question
|
5423
5539
|
*/
|
5424
|
-
answer
|
5540
|
+
answer: string;
|
5541
|
+
/**
|
5542
|
+
* The session ID for the chat session.
|
5543
|
+
*/
|
5544
|
+
sessionId: string;
|
5425
5545
|
};
|
5426
5546
|
type AskTableRequestBody = {
|
5427
5547
|
/**
|
@@ -5476,6 +5596,61 @@ type AskTableVariables = {
|
|
5476
5596
|
* Ask your table a question. If the `Accept` header is set to `text/event-stream`, Xata will stream the results back as SSE's.
|
5477
5597
|
*/
|
5478
5598
|
declare const askTable: (variables: AskTableVariables, signal?: AbortSignal) => Promise<AskTableResponse>;
|
5599
|
+
type AskTableSessionPathParams = {
|
5600
|
+
/**
|
5601
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
5602
|
+
*/
|
5603
|
+
dbBranchName: DBBranchName;
|
5604
|
+
/**
|
5605
|
+
* The Table name
|
5606
|
+
*/
|
5607
|
+
tableName: TableName;
|
5608
|
+
/**
|
5609
|
+
* @maxLength 36
|
5610
|
+
* @minLength 36
|
5611
|
+
*/
|
5612
|
+
sessionId: string;
|
5613
|
+
workspace: string;
|
5614
|
+
region: string;
|
5615
|
+
};
|
5616
|
+
type AskTableSessionError = ErrorWrapper<{
|
5617
|
+
status: 400;
|
5618
|
+
payload: BadRequestError;
|
5619
|
+
} | {
|
5620
|
+
status: 401;
|
5621
|
+
payload: AuthError;
|
5622
|
+
} | {
|
5623
|
+
status: 404;
|
5624
|
+
payload: SimpleError;
|
5625
|
+
} | {
|
5626
|
+
status: 429;
|
5627
|
+
payload: RateLimitError;
|
5628
|
+
} | {
|
5629
|
+
status: 503;
|
5630
|
+
payload: ServiceUnavailableError;
|
5631
|
+
}>;
|
5632
|
+
type AskTableSessionResponse = {
|
5633
|
+
/**
|
5634
|
+
* The answer to the input question
|
5635
|
+
*/
|
5636
|
+
answer: string;
|
5637
|
+
};
|
5638
|
+
type AskTableSessionRequestBody = {
|
5639
|
+
/**
|
5640
|
+
* The question you'd like to ask.
|
5641
|
+
*
|
5642
|
+
* @minLength 3
|
5643
|
+
*/
|
5644
|
+
message?: string;
|
5645
|
+
};
|
5646
|
+
type AskTableSessionVariables = {
|
5647
|
+
body?: AskTableSessionRequestBody;
|
5648
|
+
pathParams: AskTableSessionPathParams;
|
5649
|
+
} & DataPlaneFetcherExtraProps;
|
5650
|
+
/**
|
5651
|
+
* Ask a follow-up question. If the `Accept` header is set to `text/event-stream`, Xata will stream the results back as SSE's.
|
5652
|
+
*/
|
5653
|
+
declare const askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal) => Promise<AskTableSessionResponse>;
|
5479
5654
|
type SummarizeTablePathParams = {
|
5480
5655
|
/**
|
5481
5656
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -5663,7 +5838,7 @@ type FileAccessVariables = {
|
|
5663
5838
|
/**
|
5664
5839
|
* Retrieve file content by access id
|
5665
5840
|
*/
|
5666
|
-
declare const fileAccess: (variables: FileAccessVariables, signal?: AbortSignal) => Promise<
|
5841
|
+
declare const fileAccess: (variables: FileAccessVariables, signal?: AbortSignal) => Promise<Blob>;
|
5667
5842
|
|
5668
5843
|
declare const operationsByTag: {
|
5669
5844
|
branch: {
|
@@ -5731,7 +5906,7 @@ declare const operationsByTag: {
|
|
5731
5906
|
getFile: (variables: GetFileVariables, signal?: AbortSignal | undefined) => Promise<Blob>;
|
5732
5907
|
putFile: (variables: PutFileVariables, signal?: AbortSignal | undefined) => Promise<FileResponse>;
|
5733
5908
|
deleteFile: (variables: DeleteFileVariables, signal?: AbortSignal | undefined) => Promise<FileResponse>;
|
5734
|
-
fileAccess: (variables: FileAccessVariables, signal?: AbortSignal | undefined) => Promise<
|
5909
|
+
fileAccess: (variables: FileAccessVariables, signal?: AbortSignal | undefined) => Promise<Blob>;
|
5735
5910
|
};
|
5736
5911
|
searchAndFilter: {
|
5737
5912
|
queryTable: (variables: QueryTableVariables, signal?: AbortSignal | undefined) => Promise<QueryResponse>;
|
@@ -5740,9 +5915,14 @@ declare const operationsByTag: {
|
|
5740
5915
|
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal | undefined) => Promise<SQLResponse>;
|
5741
5916
|
vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal | undefined) => Promise<SearchResponse>;
|
5742
5917
|
askTable: (variables: AskTableVariables, signal?: AbortSignal | undefined) => Promise<AskTableResponse>;
|
5918
|
+
askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal | undefined) => Promise<AskTableSessionResponse>;
|
5743
5919
|
summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal | undefined) => Promise<SummarizeResponse>;
|
5744
5920
|
aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal | undefined) => Promise<AggResponse>;
|
5745
5921
|
};
|
5922
|
+
authOther: {
|
5923
|
+
grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal | undefined) => Promise<GrantAuthorizationCodeResponse>;
|
5924
|
+
generateAccessToken: (variables: GenerateAccessTokenVariables, signal?: AbortSignal | undefined) => Promise<AccessTokenOutput>;
|
5925
|
+
};
|
5746
5926
|
users: {
|
5747
5927
|
getUser: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<UserWithID>;
|
5748
5928
|
updateUser: (variables: UpdateUserVariables, signal?: AbortSignal | undefined) => Promise<UserWithID>;
|
@@ -5842,8 +6022,12 @@ declare namespace responses {
|
|
5842
6022
|
}
|
5843
6023
|
|
5844
6024
|
type schemas_APIKeyName = APIKeyName;
|
6025
|
+
type schemas_AccessToken = AccessToken;
|
6026
|
+
type schemas_AccessTokenInput = AccessTokenInput;
|
6027
|
+
type schemas_AccessTokenOutput = AccessTokenOutput;
|
5845
6028
|
type schemas_AggExpression = AggExpression;
|
5846
6029
|
type schemas_AggExpressionMap = AggExpressionMap;
|
6030
|
+
type schemas_AuthorizationCode = AuthorizationCode;
|
5847
6031
|
type schemas_AverageAgg = AverageAgg;
|
5848
6032
|
type schemas_BoosterExpression = BoosterExpression;
|
5849
6033
|
type schemas_Branch = Branch;
|
@@ -5853,6 +6037,7 @@ type schemas_BranchName = BranchName;
|
|
5853
6037
|
type schemas_BranchOp = BranchOp;
|
5854
6038
|
type schemas_BranchWithCopyID = BranchWithCopyID;
|
5855
6039
|
type schemas_Column = Column;
|
6040
|
+
type schemas_ColumnFile = ColumnFile;
|
5856
6041
|
type schemas_ColumnLink = ColumnLink;
|
5857
6042
|
type schemas_ColumnMigration = ColumnMigration;
|
5858
6043
|
type schemas_ColumnName = ColumnName;
|
@@ -5965,9 +6150,13 @@ type schemas_WorkspaceMeta = WorkspaceMeta;
|
|
5965
6150
|
declare namespace schemas {
|
5966
6151
|
export {
|
5967
6152
|
schemas_APIKeyName as APIKeyName,
|
6153
|
+
schemas_AccessToken as AccessToken,
|
6154
|
+
schemas_AccessTokenInput as AccessTokenInput,
|
6155
|
+
schemas_AccessTokenOutput as AccessTokenOutput,
|
5968
6156
|
schemas_AggExpression as AggExpression,
|
5969
6157
|
schemas_AggExpressionMap as AggExpressionMap,
|
5970
6158
|
AggResponse$1 as AggResponse,
|
6159
|
+
schemas_AuthorizationCode as AuthorizationCode,
|
5971
6160
|
schemas_AverageAgg as AverageAgg,
|
5972
6161
|
schemas_BoosterExpression as BoosterExpression,
|
5973
6162
|
schemas_Branch as Branch,
|
@@ -5977,6 +6166,7 @@ declare namespace schemas {
|
|
5977
6166
|
schemas_BranchOp as BranchOp,
|
5978
6167
|
schemas_BranchWithCopyID as BranchWithCopyID,
|
5979
6168
|
schemas_Column as Column,
|
6169
|
+
schemas_ColumnFile as ColumnFile,
|
5980
6170
|
schemas_ColumnLink as ColumnLink,
|
5981
6171
|
schemas_ColumnMigration as ColumnMigration,
|
5982
6172
|
schemas_ColumnName as ColumnName,
|
@@ -6572,6 +6762,15 @@ declare class SearchAndFilterApi {
|
|
6572
6762
|
table: TableName;
|
6573
6763
|
options: AskTableRequestBody;
|
6574
6764
|
}): Promise<AskTableResponse>;
|
6765
|
+
askTableSession({ workspace, region, database, branch, table, sessionId, message }: {
|
6766
|
+
workspace: WorkspaceID;
|
6767
|
+
region: string;
|
6768
|
+
database: DBName;
|
6769
|
+
branch: BranchName;
|
6770
|
+
table: TableName;
|
6771
|
+
sessionId: string;
|
6772
|
+
message: string;
|
6773
|
+
}): Promise<AskTableSessionResponse>;
|
6575
6774
|
summarizeTable({ workspace, region, database, branch, table, filter, columns, summaries, sort, summariesFilter, page, consistency }: {
|
6576
6775
|
workspace: WorkspaceID;
|
6577
6776
|
region: string;
|
@@ -6750,10 +6949,11 @@ declare class DatabaseApi {
|
|
6750
6949
|
getDatabaseList({ workspace }: {
|
6751
6950
|
workspace: WorkspaceID;
|
6752
6951
|
}): Promise<ListDatabasesResponse>;
|
6753
|
-
createDatabase({ workspace, database, data }: {
|
6952
|
+
createDatabase({ workspace, database, data, headers }: {
|
6754
6953
|
workspace: WorkspaceID;
|
6755
6954
|
database: DBName;
|
6756
6955
|
data: CreateDatabaseRequestBody;
|
6956
|
+
headers?: Record<string, string>;
|
6757
6957
|
}): Promise<CreateDatabaseResponse>;
|
6758
6958
|
deleteDatabase({ workspace, database }: {
|
6759
6959
|
workspace: WorkspaceID;
|
@@ -6828,6 +7028,226 @@ type Narrowable = string | number | bigint | boolean;
|
|
6828
7028
|
type Try<A1, A2, Catch = never> = A1 extends A2 ? A1 : Catch;
|
6829
7029
|
type Narrow<A> = Try<A, [], NarrowRaw<A>>;
|
6830
7030
|
|
7031
|
+
interface ImageTransformations {
|
7032
|
+
/**
|
7033
|
+
* Whether to preserve animation frames from input files. Default is true.
|
7034
|
+
* Setting it to false reduces animations to still images. This setting is
|
7035
|
+
* recommended when enlarging images or processing arbitrary user content,
|
7036
|
+
* because large GIF animations can weigh tens or even hundreds of megabytes.
|
7037
|
+
* It is also useful to set anim:false when using format:"json" to get the
|
7038
|
+
* response quicker without the number of frames.
|
7039
|
+
*/
|
7040
|
+
anim?: boolean;
|
7041
|
+
/**
|
7042
|
+
* Background color to add underneath the image. Applies only to images with
|
7043
|
+
* transparency (such as PNG). Accepts any CSS color (#RRGGBB, rgba(…),
|
7044
|
+
* hsl(…), etc.)
|
7045
|
+
*/
|
7046
|
+
background?: string;
|
7047
|
+
/**
|
7048
|
+
* Radius of a blur filter (approximate gaussian). Maximum supported radius
|
7049
|
+
* is 250.
|
7050
|
+
*/
|
7051
|
+
blur?: number;
|
7052
|
+
/**
|
7053
|
+
* Increase brightness by a factor. A value of 1.0 equals no change, a value
|
7054
|
+
* of 0.5 equals half brightness, and a value of 2.0 equals twice as bright.
|
7055
|
+
* 0 is ignored.
|
7056
|
+
*/
|
7057
|
+
brightness?: number;
|
7058
|
+
/**
|
7059
|
+
* Slightly reduces latency on a cache miss by selecting a
|
7060
|
+
* quickest-to-compress file format, at a cost of increased file size and
|
7061
|
+
* lower image quality. It will usually override the format option and choose
|
7062
|
+
* JPEG over WebP or AVIF. We do not recommend using this option, except in
|
7063
|
+
* unusual circumstances like resizing uncacheable dynamically-generated
|
7064
|
+
* images.
|
7065
|
+
*/
|
7066
|
+
compression?: 'fast';
|
7067
|
+
/**
|
7068
|
+
* Increase contrast by a factor. A value of 1.0 equals no change, a value of
|
7069
|
+
* 0.5 equals low contrast, and a value of 2.0 equals high contrast. 0 is
|
7070
|
+
* ignored.
|
7071
|
+
*/
|
7072
|
+
contrast?: number;
|
7073
|
+
/**
|
7074
|
+
* Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
|
7075
|
+
* easier to specify higher-DPI sizes in <img srcset>.
|
7076
|
+
*/
|
7077
|
+
dpr?: number;
|
7078
|
+
/**
|
7079
|
+
* Resizing mode as a string. It affects interpretation of width and height
|
7080
|
+
* options:
|
7081
|
+
* - scale-down: Similar to contain, but the image is never enlarged. If
|
7082
|
+
* the image is larger than given width or height, it will be resized.
|
7083
|
+
* Otherwise its original size will be kept.
|
7084
|
+
* - contain: Resizes to maximum size that fits within the given width and
|
7085
|
+
* height. If only a single dimension is given (e.g. only width), the
|
7086
|
+
* image will be shrunk or enlarged to exactly match that dimension.
|
7087
|
+
* Aspect ratio is always preserved.
|
7088
|
+
* - cover: Resizes (shrinks or enlarges) to fill the entire area of width
|
7089
|
+
* and height. If the image has an aspect ratio different from the ratio
|
7090
|
+
* of width and height, it will be cropped to fit.
|
7091
|
+
* - crop: The image will be shrunk and cropped to fit within the area
|
7092
|
+
* specified by width and height. The image will not be enlarged. For images
|
7093
|
+
* smaller than the given dimensions it's the same as scale-down. For
|
7094
|
+
* images larger than the given dimensions, it's the same as cover.
|
7095
|
+
* See also trim.
|
7096
|
+
* - pad: Resizes to the maximum size that fits within the given width and
|
7097
|
+
* height, and then fills the remaining area with a background color
|
7098
|
+
* (white by default). Use of this mode is not recommended, as the same
|
7099
|
+
* effect can be more efficiently achieved with the contain mode and the
|
7100
|
+
* CSS object-fit: contain property.
|
7101
|
+
*/
|
7102
|
+
fit?: 'scale-down' | 'contain' | 'cover' | 'crop' | 'pad';
|
7103
|
+
/**
|
7104
|
+
* Output format to generate. It can be:
|
7105
|
+
* - avif: generate images in AVIF format.
|
7106
|
+
* - webp: generate images in Google WebP format. Set quality to 100 to get
|
7107
|
+
* the WebP-lossless format.
|
7108
|
+
* - json: instead of generating an image, outputs information about the
|
7109
|
+
* image, in JSON format. The JSON object will contain image size
|
7110
|
+
* (before and after resizing), source image’s MIME type, file size, etc.
|
7111
|
+
* - jpeg: generate images in JPEG format.
|
7112
|
+
* - png: generate images in PNG format.
|
7113
|
+
*/
|
7114
|
+
format?: 'auto' | 'avif' | 'webp' | 'json' | 'jpeg' | 'png';
|
7115
|
+
/**
|
7116
|
+
* Increase exposure by a factor. A value of 1.0 equals no change, a value of
|
7117
|
+
* 0.5 darkens the image, and a value of 2.0 lightens the image. 0 is ignored.
|
7118
|
+
*/
|
7119
|
+
gamma?: number;
|
7120
|
+
/**
|
7121
|
+
* When cropping with fit: "cover", this defines the side or point that should
|
7122
|
+
* be left uncropped. The value is either a string
|
7123
|
+
* "left", "right", "top", "bottom", "auto", or "center" (the default),
|
7124
|
+
* or an object {x, y} containing focal point coordinates in the original
|
7125
|
+
* image expressed as fractions ranging from 0.0 (top or left) to 1.0
|
7126
|
+
* (bottom or right), 0.5 being the center. {fit: "cover", gravity: "top"} will
|
7127
|
+
* crop bottom or left and right sides as necessary, but won’t crop anything
|
7128
|
+
* from the top. {fit: "cover", gravity: {x:0.5, y:0.2}} will crop each side to
|
7129
|
+
* preserve as much as possible around a point at 20% of the height of the
|
7130
|
+
* source image.
|
7131
|
+
*/
|
7132
|
+
gravity?: 'left' | 'right' | 'top' | 'bottom' | 'center' | 'auto' | {
|
7133
|
+
x: number;
|
7134
|
+
y: number;
|
7135
|
+
};
|
7136
|
+
/**
|
7137
|
+
* Maximum height in image pixels. The value must be an integer.
|
7138
|
+
*/
|
7139
|
+
height?: number;
|
7140
|
+
/**
|
7141
|
+
* What EXIF data should be preserved in the output image. Note that EXIF
|
7142
|
+
* rotation and embedded color profiles are always applied ("baked in" into
|
7143
|
+
* the image), and aren't affected by this option. Note that if the Polish
|
7144
|
+
* feature is enabled, all metadata may have been removed already and this
|
7145
|
+
* option may have no effect.
|
7146
|
+
* - keep: Preserve most of EXIF metadata, including GPS location if there's
|
7147
|
+
* any.
|
7148
|
+
* - copyright: Only keep the copyright tag, and discard everything else.
|
7149
|
+
* This is the default behavior for JPEG files.
|
7150
|
+
* - none: Discard all invisible EXIF metadata. Currently WebP and PNG
|
7151
|
+
* output formats always discard metadata.
|
7152
|
+
*/
|
7153
|
+
metadata?: 'keep' | 'copyright' | 'none';
|
7154
|
+
/**
|
7155
|
+
* Quality setting from 1-100 (useful values are in 60-90 range). Lower values
|
7156
|
+
* make images look worse, but load faster. The default is 85. It applies only
|
7157
|
+
* to JPEG and WebP images. It doesn’t have any effect on PNG.
|
7158
|
+
*/
|
7159
|
+
quality?: number;
|
7160
|
+
/**
|
7161
|
+
* Number of degrees (90, 180, 270) to rotate the image by. width and height
|
7162
|
+
* options refer to axes after rotation.
|
7163
|
+
*/
|
7164
|
+
rotate?: 0 | 90 | 180 | 270 | 360;
|
7165
|
+
/**
|
7166
|
+
* Strength of sharpening filter to apply to the image. Floating-point
|
7167
|
+
* number between 0 (no sharpening, default) and 10 (maximum). 1.0 is a
|
7168
|
+
* recommended value for downscaled images.
|
7169
|
+
*/
|
7170
|
+
sharpen?: number;
|
7171
|
+
/**
|
7172
|
+
* An object with four properties {left, top, right, bottom} that specify
|
7173
|
+
* a number of pixels to cut off on each side. Allows removal of borders
|
7174
|
+
* or cutting out a specific fragment of an image. Trimming is performed
|
7175
|
+
* before resizing or rotation. Takes dpr into account.
|
7176
|
+
*/
|
7177
|
+
trim?: {
|
7178
|
+
left?: number;
|
7179
|
+
top?: number;
|
7180
|
+
right?: number;
|
7181
|
+
bottom?: number;
|
7182
|
+
};
|
7183
|
+
/**
|
7184
|
+
* Maximum width in image pixels. The value must be an integer.
|
7185
|
+
*/
|
7186
|
+
width?: number;
|
7187
|
+
}
|
7188
|
+
|
7189
|
+
type XataFileEditableFields = Partial<Pick<XataArrayFile, keyof InputFileEntry>>;
|
7190
|
+
declare class XataFile {
|
7191
|
+
/**
|
7192
|
+
* Name of this file.
|
7193
|
+
*/
|
7194
|
+
name?: string;
|
7195
|
+
/**
|
7196
|
+
* Media type of this file.
|
7197
|
+
*/
|
7198
|
+
mediaType: string;
|
7199
|
+
/**
|
7200
|
+
* Base64 encoded content of this file.
|
7201
|
+
*/
|
7202
|
+
base64Content?: string;
|
7203
|
+
/**
|
7204
|
+
* Whether to enable public url for this file.
|
7205
|
+
*/
|
7206
|
+
enablePublicUrl?: boolean;
|
7207
|
+
/**
|
7208
|
+
* Timeout for the signed url.
|
7209
|
+
*/
|
7210
|
+
signedUrlTimeout?: number;
|
7211
|
+
/**
|
7212
|
+
* Size of this file.
|
7213
|
+
*/
|
7214
|
+
size?: number;
|
7215
|
+
/**
|
7216
|
+
* Version of this file.
|
7217
|
+
*/
|
7218
|
+
version?: number;
|
7219
|
+
/**
|
7220
|
+
* Url of this file.
|
7221
|
+
*/
|
7222
|
+
url?: string;
|
7223
|
+
/**
|
7224
|
+
* Signed url of this file.
|
7225
|
+
*/
|
7226
|
+
signedUrl?: string;
|
7227
|
+
/**
|
7228
|
+
* Attributes of this file.
|
7229
|
+
*/
|
7230
|
+
attributes?: Record<string, unknown>;
|
7231
|
+
constructor(file: Partial<XataFile>);
|
7232
|
+
static fromBuffer(buffer: Buffer, options?: XataFileEditableFields): XataFile;
|
7233
|
+
toBuffer(): Buffer;
|
7234
|
+
static fromArrayBuffer(arrayBuffer: ArrayBuffer, options?: XataFileEditableFields): XataFile;
|
7235
|
+
toArrayBuffer(): ArrayBuffer;
|
7236
|
+
static fromUint8Array(uint8Array: Uint8Array, options?: XataFileEditableFields): XataFile;
|
7237
|
+
toUint8Array(): Uint8Array;
|
7238
|
+
static fromBlob(file: Blob, options?: XataFileEditableFields): Promise<XataFile>;
|
7239
|
+
toBlob(): Blob;
|
7240
|
+
static fromString(string: string, options?: XataFileEditableFields): XataFile;
|
7241
|
+
toString(): string;
|
7242
|
+
static fromBase64(base64Content: string, options?: XataFileEditableFields): XataFile;
|
7243
|
+
toBase64(): string;
|
7244
|
+
transform(...options: ImageTransformations[]): {
|
7245
|
+
url: string | undefined;
|
7246
|
+
signedUrl: string | undefined;
|
7247
|
+
};
|
7248
|
+
}
|
7249
|
+
type XataArrayFile = Identifiable & XataFile;
|
7250
|
+
|
6831
7251
|
type SelectableColumn<O, RecursivePath extends any[] = []> = '*' | 'id' | `xata.${'version' | 'createdAt' | 'updatedAt'}` | DataProps<O> | NestedColumns<O, RecursivePath>;
|
6832
7252
|
type WildcardColumns<O> = Values<{
|
6833
7253
|
[K in SelectableColumn<O>]: K extends `${string}*` ? K : never;
|
@@ -6843,20 +7263,20 @@ type ValueAtColumn<Object, Key> = Key extends '*' ? Values<Object> : Key extends
|
|
6843
7263
|
} : never : Object[K] : never> : never : never;
|
6844
7264
|
type MAX_RECURSION = 2;
|
6845
7265
|
type NestedColumns<O, RecursivePath extends any[]> = RecursivePath['length'] extends MAX_RECURSION ? never : If<IsObject<O>, Values<{
|
6846
|
-
[K in DataProps<O>]: NonNullable<O[K]> extends infer Item ? If<IsArray<Item>, K,
|
6847
|
-
If<IsObject<Item>, Item extends XataRecord ? SelectableColumn<Item, [...RecursivePath, Item]> extends infer Column ? Column extends string ? K | `${K}.${Column}` : never : never : Item extends Date ? K : `${K}.${StringKeys<Item> | '*'}`, // This allows usage of objects that are not links
|
7266
|
+
[K in DataProps<O>]: NonNullable<O[K]> extends infer Item ? If<IsArray<Item>, Item extends (infer Type)[] ? Type extends XataArrayFile ? K | `${K}.${keyof XataFileEditableFields | '*'}` : K | `${K}.${StringKeys<Type> | '*'}` : never, If<IsObject<Item>, Item extends XataRecord ? SelectableColumn<Item, [...RecursivePath, Item]> extends infer Column ? Column extends string ? K | `${K}.${Column}` : never : never : Item extends Date ? K : Item extends XataFile ? K | `${K}.${keyof XataFileEditableFields | '*'}` : `${K}.${StringKeys<Item> | '*'}`, // This allows usage of objects that are not links
|
6848
7267
|
K>> : never;
|
6849
7268
|
}>, never>;
|
6850
7269
|
type DataProps<O> = Exclude<StringKeys<O>, StringKeys<XataRecord>>;
|
6851
7270
|
type NestedValueAtColumn<O, Key extends SelectableColumn<O>> = Key extends `${infer N}.${infer M}` ? N extends DataProps<O> ? {
|
6852
|
-
[K in N]: M extends SelectableColumn<NonNullable<O[K]>> ? NonNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], NestedValueAtColumn<NonNullable<O[K]>, M> & XataRecord> : ForwardNullable<O[K], NestedValueAtColumn<NonNullable<O[K]>, M>> : unknown;
|
7271
|
+
[K in N]: M extends SelectableColumn<NonNullable<O[K]>> ? NonNullable<O[K]> extends XataFile ? ForwardNullable<O[K], XataFile> : NonNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], NestedValueAtColumn<NonNullable<O[K]>, M> & XataRecord> : ForwardNullable<O[K], NestedValueAtColumn<NonNullable<O[K]>, M>> : NonNullable<O[K]> extends (infer ArrayType)[] ? ArrayType extends XataArrayFile ? ForwardNullable<O[K], XataArrayFile[]> : M extends SelectableColumn<NonNullable<ArrayType>> ? ForwardNullable<O[K], NestedValueAtColumn<NonNullable<ArrayType>, M>[]> : unknown : unknown;
|
6853
7272
|
} : unknown : Key extends DataProps<O> ? {
|
6854
|
-
[K in Key]: NonNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], SelectedPick<NonNullable<O[K]>, ['*']>> : O[K];
|
7273
|
+
[K in Key]: NonNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], Omit<SelectedPick<NonNullable<O[K]>, ['*']>, 'xata' | 'getMetadata'>> : O[K];
|
6855
7274
|
} : Key extends '*' ? {
|
6856
7275
|
[K in StringKeys<O>]: NonNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], Link<NonNullable<O[K]>>> : O[K];
|
6857
7276
|
} : unknown;
|
6858
7277
|
type ForwardNullable<T, R> = T extends NonNullable<T> ? R : R | null;
|
6859
7278
|
|
7279
|
+
declare const RecordColumnTypes: readonly ["bool", "int", "float", "string", "text", "email", "multiple", "link", "object", "datetime", "vector", "file[]", "file"];
|
6860
7280
|
type Identifier = string;
|
6861
7281
|
/**
|
6862
7282
|
* Represents an identifiable record from the database.
|
@@ -6979,11 +7399,12 @@ type NumericOperator = ExclusiveOr<{
|
|
6979
7399
|
}, {
|
6980
7400
|
$divide?: number;
|
6981
7401
|
}>>>;
|
7402
|
+
type InputXataFile = Partial<XataArrayFile> | Promise<Partial<XataArrayFile>>;
|
6982
7403
|
type EditableDataFields<T> = T extends XataRecord ? {
|
6983
7404
|
id: Identifier;
|
6984
7405
|
} | Identifier : NonNullable<T> extends XataRecord ? {
|
6985
7406
|
id: Identifier;
|
6986
|
-
} | Identifier | null | undefined : T extends Date ? string | Date : NonNullable<T> extends Date ? string | Date | null | undefined : T extends number ? number | NumericOperator : T;
|
7407
|
+
} | Identifier | null | undefined : T extends Date ? string | Date : NonNullable<T> extends Date ? string | Date | null | undefined : T extends XataFile ? InputXataFile : T extends XataFile[] ? InputXataFile[] : T extends number ? number | NumericOperator : T;
|
6987
7408
|
type EditableData<O extends XataRecord> = Identifiable & Partial<Omit<{
|
6988
7409
|
[K in keyof O]: EditableDataFields<O[K]>;
|
6989
7410
|
}, keyof XataRecord>>;
|
@@ -7423,7 +7844,7 @@ type ComplexAggregationResult = {
|
|
7423
7844
|
};
|
7424
7845
|
|
7425
7846
|
type KeywordAskOptions<Record extends XataRecord> = {
|
7426
|
-
searchType
|
7847
|
+
searchType?: 'keyword';
|
7427
7848
|
search?: {
|
7428
7849
|
fuzziness?: FuzzinessExpression;
|
7429
7850
|
target?: TargetColumn<Record>[];
|
@@ -7433,7 +7854,7 @@ type KeywordAskOptions<Record extends XataRecord> = {
|
|
7433
7854
|
};
|
7434
7855
|
};
|
7435
7856
|
type VectorAskOptions<Record extends XataRecord> = {
|
7436
|
-
searchType
|
7857
|
+
searchType?: 'vector';
|
7437
7858
|
vectorSearch?: {
|
7438
7859
|
/**
|
7439
7860
|
* The column to use for vector search. It must be of type `vector`.
|
@@ -7449,11 +7870,13 @@ type VectorAskOptions<Record extends XataRecord> = {
|
|
7449
7870
|
type TypeAskOptions<Record extends XataRecord> = KeywordAskOptions<Record> | VectorAskOptions<Record>;
|
7450
7871
|
type BaseAskOptions = {
|
7451
7872
|
rules?: string[];
|
7873
|
+
sessionId?: string;
|
7452
7874
|
};
|
7453
7875
|
type AskOptions<Record extends XataRecord> = TypeAskOptions<Record> & BaseAskOptions;
|
7454
7876
|
type AskResult = {
|
7455
7877
|
answer?: string;
|
7456
7878
|
records?: string[];
|
7879
|
+
sessionId?: string;
|
7457
7880
|
};
|
7458
7881
|
|
7459
7882
|
type SortDirection = 'asc' | 'desc';
|
@@ -8426,6 +8849,10 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
|
|
8426
8849
|
* Experimental: Ask the database to perform a natural language question.
|
8427
8850
|
*/
|
8428
8851
|
abstract ask(question: string, options?: AskOptions<Record>): Promise<AskResult>;
|
8852
|
+
/**
|
8853
|
+
* Experimental: Ask the database to perform a natural language question.
|
8854
|
+
*/
|
8855
|
+
abstract ask(question: string, options: AskOptions<Record>): Promise<AskResult>;
|
8429
8856
|
/**
|
8430
8857
|
* Experimental: Ask the database to perform a natural language question.
|
8431
8858
|
*/
|
@@ -8619,7 +9046,7 @@ type PropertyType<Tables, Properties, PropertyName extends PropertyKey> = Proper
|
|
8619
9046
|
} : {
|
8620
9047
|
[K in PropertyName]?: InnerType<Type, ObjectColumns, Tables, LinkedTable> | null;
|
8621
9048
|
} : never : never;
|
8622
|
-
type InnerType<Type, ObjectColumns, Tables, LinkedTable> = Type extends 'string' | 'text' | 'email' ? string : Type extends 'int' | 'float' ? number : Type extends 'bool' ? boolean : Type extends 'datetime' ? Date : Type extends 'multiple' ? string[] : Type extends 'vector' ? number[] : Type extends 'object' ? ObjectColumns extends readonly unknown[] ? ObjectColumns[number] extends {
|
9049
|
+
type InnerType<Type, ObjectColumns, Tables, LinkedTable> = Type extends 'string' | 'text' | 'email' ? string : Type extends 'int' | 'float' ? number : Type extends 'bool' ? boolean : Type extends 'datetime' ? Date : Type extends 'multiple' ? string[] : Type extends 'vector' ? number[] : Type extends 'file' ? XataFile : Type extends 'file[]' ? XataArrayFile[] : Type extends 'object' ? ObjectColumns extends readonly unknown[] ? ObjectColumns[number] extends {
|
8623
9050
|
name: string;
|
8624
9051
|
type: string;
|
8625
9052
|
} ? UnionToIntersection<Values<{
|
@@ -8739,6 +9166,40 @@ declare class SchemaPlugin<Schemas extends Record<string, XataRecord>> extends X
|
|
8739
9166
|
build(pluginOptions: XataPluginOptions): SchemaPluginResult<Schemas>;
|
8740
9167
|
}
|
8741
9168
|
|
9169
|
+
type BinaryFile = string | Blob | ArrayBuffer;
|
9170
|
+
type FilesPluginResult<Schemas extends Record<string, BaseData>> = {
|
9171
|
+
download: <Tables extends StringKeys<Schemas>>(location: DownloadDestination<Schemas, Tables>) => Promise<Blob>;
|
9172
|
+
upload: <Tables extends StringKeys<Schemas>>(location: UploadDestination<Schemas, Tables>, file: BinaryFile) => Promise<FileResponse>;
|
9173
|
+
delete: <Tables extends StringKeys<Schemas>>(location: DownloadDestination<Schemas, Tables>) => Promise<FileResponse>;
|
9174
|
+
};
|
9175
|
+
type UploadDestination<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = Values<{
|
9176
|
+
[Model in GetArrayInnerType<NonNullable<Tables[]>>]: {
|
9177
|
+
table: Model;
|
9178
|
+
column: ColumnsByValue<Schemas[Model], XataFile>;
|
9179
|
+
record: string;
|
9180
|
+
} | {
|
9181
|
+
table: Model;
|
9182
|
+
column: ColumnsByValue<Schemas[Model], XataArrayFile[]>;
|
9183
|
+
record: string;
|
9184
|
+
fileId?: string;
|
9185
|
+
};
|
9186
|
+
}>;
|
9187
|
+
type DownloadDestination<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = Values<{
|
9188
|
+
[Model in GetArrayInnerType<NonNullable<Tables[]>>]: {
|
9189
|
+
table: Model;
|
9190
|
+
column: ColumnsByValue<Schemas[Model], XataFile>;
|
9191
|
+
record: string;
|
9192
|
+
} | {
|
9193
|
+
table: Model;
|
9194
|
+
column: ColumnsByValue<Schemas[Model], XataArrayFile[]>;
|
9195
|
+
record: string;
|
9196
|
+
fileId: string;
|
9197
|
+
};
|
9198
|
+
}>;
|
9199
|
+
declare class FilesPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
|
9200
|
+
build(pluginOptions: XataPluginOptions): FilesPluginResult<Schemas>;
|
9201
|
+
}
|
9202
|
+
|
8742
9203
|
type TransactionOperation<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = {
|
8743
9204
|
insert: Values<{
|
8744
9205
|
[Model in GetArrayInnerType<NonNullable<Tables[]>>]: {
|
@@ -8839,6 +9300,7 @@ interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
|
|
8839
9300
|
db: Awaited<ReturnType<SchemaPlugin<Schemas>['build']>>;
|
8840
9301
|
search: Awaited<ReturnType<SearchPlugin<Schemas>['build']>>;
|
8841
9302
|
transactions: Awaited<ReturnType<TransactionPlugin<Schemas>['build']>>;
|
9303
|
+
files: Awaited<ReturnType<FilesPlugin<Schemas>['build']>>;
|
8842
9304
|
}, keyof Plugins> & {
|
8843
9305
|
[Key in StringKeys<NonNullable<Plugins>>]: Awaited<ReturnType<NonNullable<Plugins>[Key]['build']>>;
|
8844
9306
|
} & {
|
@@ -8962,4 +9424,4 @@ declare class XataError extends Error {
|
|
8962
9424
|
constructor(message: string, status: number);
|
8963
9425
|
}
|
8964
9426
|
|
8965
|
-
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, DeleteFileError, DeleteFileItemError, DeleteFileItemPathParams, DeleteFileItemVariables, DeleteFilePathParams, DeleteFileVariables, 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, FileAccessError, FileAccessPathParams, FileAccessQueryParams, FileAccessVariables, 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, deleteFile, deleteFileItem, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, 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 };
|
9427
|
+
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, AskTableSessionError, AskTableSessionPathParams, AskTableSessionRequestBody, AskTableSessionResponse, AskTableSessionVariables, 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, DeleteFileError, DeleteFileItemError, DeleteFileItemPathParams, DeleteFileItemVariables, DeleteFilePathParams, DeleteFileVariables, 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, FileAccessError, FileAccessPathParams, FileAccessQueryParams, FileAccessVariables, GenerateAccessTokenError, GenerateAccessTokenVariables, 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, GrantAuthorizationCodeError, GrantAuthorizationCodeRequestBody, GrantAuthorizationCodeResponse, GrantAuthorizationCodeVariables, 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, RecordColumnTypes, 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, XataArrayFile, XataError, XataFile, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, ge, generateAccessToken, 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, grantAuthorizationCode, 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 };
|