@xata.io/client 0.0.0-alpha.vfc99020 → 0.0.0-alpha.vfc9ddd5
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 -9
- package/CHANGELOG.md +57 -1
- package/dist/index.cjs +292 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +276 -246
- package/dist/index.mjs +286 -72
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -159,6 +159,25 @@ type OAuthClientPublicDetails = {
|
|
159
159
|
icon?: string;
|
160
160
|
clientId: string;
|
161
161
|
};
|
162
|
+
type OAuthClientID = string;
|
163
|
+
type OAuthAccessToken = {
|
164
|
+
token: string;
|
165
|
+
scopes: string[];
|
166
|
+
/**
|
167
|
+
* @format date-time
|
168
|
+
*/
|
169
|
+
createdAt: string;
|
170
|
+
/**
|
171
|
+
* @format date-time
|
172
|
+
*/
|
173
|
+
updatedAt: string;
|
174
|
+
/**
|
175
|
+
* @format date-time
|
176
|
+
*/
|
177
|
+
expiresAt: string;
|
178
|
+
clientId: string;
|
179
|
+
};
|
180
|
+
type AccessToken = string;
|
162
181
|
/**
|
163
182
|
* @pattern ^([a-zA-Z0-9][a-zA-Z0-9_\-~]+-)?[a-zA-Z0-9]{6}
|
164
183
|
* @x-go-type auth.WorkspaceID
|
@@ -510,6 +529,97 @@ type GetUserOAuthClientsVariables = ControlPlaneFetcherExtraProps;
|
|
510
529
|
* Retrieve the list of OAuth Clients that a user has authorized
|
511
530
|
*/
|
512
531
|
declare const getUserOAuthClients: (variables: GetUserOAuthClientsVariables, signal?: AbortSignal) => Promise<GetUserOAuthClientsResponse>;
|
532
|
+
type DeleteUserOAuthClientPathParams = {
|
533
|
+
clientId: OAuthClientID;
|
534
|
+
};
|
535
|
+
type DeleteUserOAuthClientError = ErrorWrapper$1<{
|
536
|
+
status: 400;
|
537
|
+
payload: BadRequestError$1;
|
538
|
+
} | {
|
539
|
+
status: 401;
|
540
|
+
payload: AuthError$1;
|
541
|
+
} | {
|
542
|
+
status: 404;
|
543
|
+
payload: SimpleError$1;
|
544
|
+
}>;
|
545
|
+
type DeleteUserOAuthClientVariables = {
|
546
|
+
pathParams: DeleteUserOAuthClientPathParams;
|
547
|
+
} & ControlPlaneFetcherExtraProps;
|
548
|
+
/**
|
549
|
+
* Delete the oauth client for the user and revoke all access
|
550
|
+
*/
|
551
|
+
declare const deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal) => Promise<undefined>;
|
552
|
+
type GetUserOAuthAccessTokensError = ErrorWrapper$1<{
|
553
|
+
status: 400;
|
554
|
+
payload: BadRequestError$1;
|
555
|
+
} | {
|
556
|
+
status: 401;
|
557
|
+
payload: AuthError$1;
|
558
|
+
} | {
|
559
|
+
status: 404;
|
560
|
+
payload: SimpleError$1;
|
561
|
+
}>;
|
562
|
+
type GetUserOAuthAccessTokensResponse = {
|
563
|
+
accessTokens: OAuthAccessToken[];
|
564
|
+
};
|
565
|
+
type GetUserOAuthAccessTokensVariables = ControlPlaneFetcherExtraProps;
|
566
|
+
/**
|
567
|
+
* Retrieve the list of valid OAuth Access Tokens on the current user's account
|
568
|
+
*/
|
569
|
+
declare const getUserOAuthAccessTokens: (variables: GetUserOAuthAccessTokensVariables, signal?: AbortSignal) => Promise<GetUserOAuthAccessTokensResponse>;
|
570
|
+
type DeleteOAuthAccessTokenPathParams = {
|
571
|
+
token: AccessToken;
|
572
|
+
};
|
573
|
+
type DeleteOAuthAccessTokenError = ErrorWrapper$1<{
|
574
|
+
status: 400;
|
575
|
+
payload: BadRequestError$1;
|
576
|
+
} | {
|
577
|
+
status: 401;
|
578
|
+
payload: AuthError$1;
|
579
|
+
} | {
|
580
|
+
status: 404;
|
581
|
+
payload: SimpleError$1;
|
582
|
+
} | {
|
583
|
+
status: 409;
|
584
|
+
payload: SimpleError$1;
|
585
|
+
}>;
|
586
|
+
type DeleteOAuthAccessTokenVariables = {
|
587
|
+
pathParams: DeleteOAuthAccessTokenPathParams;
|
588
|
+
} & ControlPlaneFetcherExtraProps;
|
589
|
+
/**
|
590
|
+
* Expires the access token for a third party app
|
591
|
+
*/
|
592
|
+
declare const deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<undefined>;
|
593
|
+
type UpdateOAuthAccessTokenPathParams = {
|
594
|
+
token: AccessToken;
|
595
|
+
};
|
596
|
+
type UpdateOAuthAccessTokenError = ErrorWrapper$1<{
|
597
|
+
status: 400;
|
598
|
+
payload: BadRequestError$1;
|
599
|
+
} | {
|
600
|
+
status: 401;
|
601
|
+
payload: AuthError$1;
|
602
|
+
} | {
|
603
|
+
status: 404;
|
604
|
+
payload: SimpleError$1;
|
605
|
+
} | {
|
606
|
+
status: 409;
|
607
|
+
payload: SimpleError$1;
|
608
|
+
}>;
|
609
|
+
type UpdateOAuthAccessTokenRequestBody = {
|
610
|
+
/**
|
611
|
+
* expiration time of the token as a unix timestamp
|
612
|
+
*/
|
613
|
+
expires: number;
|
614
|
+
};
|
615
|
+
type UpdateOAuthAccessTokenVariables = {
|
616
|
+
body: UpdateOAuthAccessTokenRequestBody;
|
617
|
+
pathParams: UpdateOAuthAccessTokenPathParams;
|
618
|
+
} & ControlPlaneFetcherExtraProps;
|
619
|
+
/**
|
620
|
+
* Updates partially the access token for a third party app
|
621
|
+
*/
|
622
|
+
declare const updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<OAuthAccessToken>;
|
513
623
|
type GetWorkspacesListError = ErrorWrapper$1<{
|
514
624
|
status: 400;
|
515
625
|
payload: BadRequestError$1;
|
@@ -1272,7 +1382,7 @@ type ColumnFile = {
|
|
1272
1382
|
};
|
1273
1383
|
type Column = {
|
1274
1384
|
name: string;
|
1275
|
-
type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime' | 'vector' | 'file[]' | 'file';
|
1385
|
+
type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime' | 'vector' | 'file[]' | 'file' | 'json';
|
1276
1386
|
link?: ColumnLink;
|
1277
1387
|
vector?: ColumnVector;
|
1278
1388
|
file?: ColumnFile;
|
@@ -2157,12 +2267,6 @@ type SearchPageConfig = {
|
|
2157
2267
|
*/
|
2158
2268
|
offset?: number;
|
2159
2269
|
};
|
2160
|
-
/**
|
2161
|
-
* Xata Table SQL Record
|
2162
|
-
*/
|
2163
|
-
type SQLRecord = {
|
2164
|
-
[key: string]: any;
|
2165
|
-
};
|
2166
2270
|
/**
|
2167
2271
|
* A summary expression is the description of a single summary operation. It consists of a single
|
2168
2272
|
* key representing the operation, and a value representing the column to be operated on.
|
@@ -2402,6 +2506,12 @@ type FileAccessID = string;
|
|
2402
2506
|
* File signature
|
2403
2507
|
*/
|
2404
2508
|
type FileSignature = string;
|
2509
|
+
/**
|
2510
|
+
* Xata Table SQL Record
|
2511
|
+
*/
|
2512
|
+
type SQLRecord = {
|
2513
|
+
[key: string]: any;
|
2514
|
+
};
|
2405
2515
|
/**
|
2406
2516
|
* Xata Table Record Metadata
|
2407
2517
|
*/
|
@@ -2488,10 +2598,6 @@ type SearchResponse = {
|
|
2488
2598
|
*/
|
2489
2599
|
totalCount: number;
|
2490
2600
|
};
|
2491
|
-
type SQLResponse = {
|
2492
|
-
records?: SQLRecord[];
|
2493
|
-
warning?: string;
|
2494
|
-
};
|
2495
2601
|
type SummarizeResponse = {
|
2496
2602
|
summaries: Record<string, any>[];
|
2497
2603
|
};
|
@@ -2503,6 +2609,10 @@ type AggResponse = {
|
|
2503
2609
|
[key: string]: AggResponse$1;
|
2504
2610
|
};
|
2505
2611
|
};
|
2612
|
+
type SQLResponse = {
|
2613
|
+
records?: SQLRecord[];
|
2614
|
+
warning?: string;
|
2615
|
+
};
|
2506
2616
|
|
2507
2617
|
type DataPlaneFetcherExtraProps = {
|
2508
2618
|
apiUrl: string;
|
@@ -5285,12 +5395,12 @@ type QueryTableVariables = {
|
|
5285
5395
|
* returned is empty, but `page.meta.cursor` will include a cursor that can be
|
5286
5396
|
* used to "tail" the table from the end waiting for new data to be inserted.
|
5287
5397
|
* - `page.before=end`: This cursor returns the last page.
|
5288
|
-
* - `page.start
|
5398
|
+
* - `page.start=$cursor`: Start at the beginning of the result set of the $cursor query. This is equivalent to querying the
|
5289
5399
|
* first page without a cursor but applying `filter` and `sort` . Yet the `page.start`
|
5290
5400
|
* cursor can be convenient at times as user code does not need to remember the
|
5291
5401
|
* filter, sort, columns or page size configuration. All these information are
|
5292
5402
|
* read from the cursor.
|
5293
|
-
* - `page.end
|
5403
|
+
* - `page.end=$cursor`: Move to the end of the result set of the $cursor query. This is equivalent to querying the
|
5294
5404
|
* last page with `page.before=end`, `filter`, and `sort` . Yet the
|
5295
5405
|
* `page.end` cursor can be more convenient at times as user code does not
|
5296
5406
|
* need to remember the filter, sort, columns or page size configuration. All
|
@@ -5414,53 +5524,6 @@ type SearchTableVariables = {
|
|
5414
5524
|
* * filtering on columns of type `multiple` is currently unsupported
|
5415
5525
|
*/
|
5416
5526
|
declare const searchTable: (variables: SearchTableVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
5417
|
-
type SqlQueryPathParams = {
|
5418
|
-
/**
|
5419
|
-
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
5420
|
-
*/
|
5421
|
-
dbBranchName: DBBranchName;
|
5422
|
-
workspace: string;
|
5423
|
-
region: string;
|
5424
|
-
};
|
5425
|
-
type SqlQueryError = ErrorWrapper<{
|
5426
|
-
status: 400;
|
5427
|
-
payload: BadRequestError;
|
5428
|
-
} | {
|
5429
|
-
status: 401;
|
5430
|
-
payload: AuthError;
|
5431
|
-
} | {
|
5432
|
-
status: 404;
|
5433
|
-
payload: SimpleError;
|
5434
|
-
} | {
|
5435
|
-
status: 503;
|
5436
|
-
payload: ServiceUnavailableError;
|
5437
|
-
}>;
|
5438
|
-
type SqlQueryRequestBody = {
|
5439
|
-
/**
|
5440
|
-
* The SQL statement.
|
5441
|
-
*
|
5442
|
-
* @minLength 1
|
5443
|
-
*/
|
5444
|
-
statement: string;
|
5445
|
-
/**
|
5446
|
-
* The query parameter list.
|
5447
|
-
*/
|
5448
|
-
params?: any[] | null;
|
5449
|
-
/**
|
5450
|
-
* The consistency level for this request.
|
5451
|
-
*
|
5452
|
-
* @default strong
|
5453
|
-
*/
|
5454
|
-
consistency?: 'strong' | 'eventual';
|
5455
|
-
};
|
5456
|
-
type SqlQueryVariables = {
|
5457
|
-
body: SqlQueryRequestBody;
|
5458
|
-
pathParams: SqlQueryPathParams;
|
5459
|
-
} & DataPlaneFetcherExtraProps;
|
5460
|
-
/**
|
5461
|
-
* Run an SQL query across the database branch.
|
5462
|
-
*/
|
5463
|
-
declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse>;
|
5464
5527
|
type VectorSearchTablePathParams = {
|
5465
5528
|
/**
|
5466
5529
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -5852,6 +5915,53 @@ type FileAccessVariables = {
|
|
5852
5915
|
* Retrieve file content by access id
|
5853
5916
|
*/
|
5854
5917
|
declare const fileAccess: (variables: FileAccessVariables, signal?: AbortSignal) => Promise<Blob>;
|
5918
|
+
type SqlQueryPathParams = {
|
5919
|
+
/**
|
5920
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
5921
|
+
*/
|
5922
|
+
dbBranchName: DBBranchName;
|
5923
|
+
workspace: string;
|
5924
|
+
region: string;
|
5925
|
+
};
|
5926
|
+
type SqlQueryError = ErrorWrapper<{
|
5927
|
+
status: 400;
|
5928
|
+
payload: BadRequestError;
|
5929
|
+
} | {
|
5930
|
+
status: 401;
|
5931
|
+
payload: AuthError;
|
5932
|
+
} | {
|
5933
|
+
status: 404;
|
5934
|
+
payload: SimpleError;
|
5935
|
+
} | {
|
5936
|
+
status: 503;
|
5937
|
+
payload: ServiceUnavailableError;
|
5938
|
+
}>;
|
5939
|
+
type SqlQueryRequestBody = {
|
5940
|
+
/**
|
5941
|
+
* The SQL statement.
|
5942
|
+
*
|
5943
|
+
* @minLength 1
|
5944
|
+
*/
|
5945
|
+
statement: string;
|
5946
|
+
/**
|
5947
|
+
* The query parameter list.
|
5948
|
+
*/
|
5949
|
+
params?: any[] | null;
|
5950
|
+
/**
|
5951
|
+
* The consistency level for this request.
|
5952
|
+
*
|
5953
|
+
* @default strong
|
5954
|
+
*/
|
5955
|
+
consistency?: 'strong' | 'eventual';
|
5956
|
+
};
|
5957
|
+
type SqlQueryVariables = {
|
5958
|
+
body: SqlQueryRequestBody;
|
5959
|
+
pathParams: SqlQueryPathParams;
|
5960
|
+
} & DataPlaneFetcherExtraProps;
|
5961
|
+
/**
|
5962
|
+
* Run an SQL query across the database branch.
|
5963
|
+
*/
|
5964
|
+
declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse>;
|
5855
5965
|
|
5856
5966
|
declare const operationsByTag: {
|
5857
5967
|
branch: {
|
@@ -5925,16 +6035,23 @@ declare const operationsByTag: {
|
|
5925
6035
|
queryTable: (variables: QueryTableVariables, signal?: AbortSignal | undefined) => Promise<QueryResponse>;
|
5926
6036
|
searchBranch: (variables: SearchBranchVariables, signal?: AbortSignal | undefined) => Promise<SearchResponse>;
|
5927
6037
|
searchTable: (variables: SearchTableVariables, signal?: AbortSignal | undefined) => Promise<SearchResponse>;
|
5928
|
-
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal | undefined) => Promise<SQLResponse>;
|
5929
6038
|
vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal | undefined) => Promise<SearchResponse>;
|
5930
6039
|
askTable: (variables: AskTableVariables, signal?: AbortSignal | undefined) => Promise<AskTableResponse>;
|
5931
6040
|
askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal | undefined) => Promise<AskTableSessionResponse>;
|
5932
6041
|
summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal | undefined) => Promise<SummarizeResponse>;
|
5933
6042
|
aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal | undefined) => Promise<AggResponse>;
|
5934
6043
|
};
|
5935
|
-
|
6044
|
+
sql: {
|
6045
|
+
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal | undefined) => Promise<SQLResponse>;
|
6046
|
+
};
|
6047
|
+
oAuth: {
|
5936
6048
|
getAuthorizationCode: (variables: GetAuthorizationCodeVariables, signal?: AbortSignal | undefined) => Promise<AuthorizationCodeResponse>;
|
5937
6049
|
grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal | undefined) => Promise<AuthorizationCodeResponse>;
|
6050
|
+
getUserOAuthClients: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetUserOAuthClientsResponse>;
|
6051
|
+
deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
|
6052
|
+
getUserOAuthAccessTokens: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetUserOAuthAccessTokensResponse>;
|
6053
|
+
deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
|
6054
|
+
updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal | undefined) => Promise<OAuthAccessToken>;
|
5938
6055
|
};
|
5939
6056
|
users: {
|
5940
6057
|
getUser: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<UserWithID>;
|
@@ -5945,7 +6062,6 @@ declare const operationsByTag: {
|
|
5945
6062
|
getUserAPIKeys: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetUserAPIKeysResponse>;
|
5946
6063
|
createUserAPIKey: (variables: CreateUserAPIKeyVariables, signal?: AbortSignal | undefined) => Promise<CreateUserAPIKeyResponse>;
|
5947
6064
|
deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
|
5948
|
-
getUserOAuthClients: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetUserOAuthClientsResponse>;
|
5949
6065
|
};
|
5950
6066
|
workspaces: {
|
5951
6067
|
getWorkspacesList: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetWorkspacesListResponse>;
|
@@ -6013,29 +6129,11 @@ type responses_ServiceUnavailableError = ServiceUnavailableError;
|
|
6013
6129
|
type responses_SimpleError = SimpleError;
|
6014
6130
|
type responses_SummarizeResponse = SummarizeResponse;
|
6015
6131
|
declare namespace responses {
|
6016
|
-
export {
|
6017
|
-
responses_AggResponse as AggResponse,
|
6018
|
-
responses_AuthError as AuthError,
|
6019
|
-
responses_BadRequestError as BadRequestError,
|
6020
|
-
responses_BranchMigrationPlan as BranchMigrationPlan,
|
6021
|
-
responses_BulkError as BulkError,
|
6022
|
-
responses_BulkInsertResponse as BulkInsertResponse,
|
6023
|
-
responses_PutFileResponse as PutFileResponse,
|
6024
|
-
responses_QueryResponse as QueryResponse,
|
6025
|
-
responses_RateLimitError as RateLimitError,
|
6026
|
-
responses_RecordResponse as RecordResponse,
|
6027
|
-
responses_RecordUpdateResponse as RecordUpdateResponse,
|
6028
|
-
responses_SQLResponse as SQLResponse,
|
6029
|
-
responses_SchemaCompareResponse as SchemaCompareResponse,
|
6030
|
-
responses_SchemaUpdateResponse as SchemaUpdateResponse,
|
6031
|
-
responses_SearchResponse as SearchResponse,
|
6032
|
-
responses_ServiceUnavailableError as ServiceUnavailableError,
|
6033
|
-
responses_SimpleError as SimpleError,
|
6034
|
-
responses_SummarizeResponse as SummarizeResponse,
|
6035
|
-
};
|
6132
|
+
export type { responses_AggResponse as AggResponse, responses_AuthError as AuthError, responses_BadRequestError as BadRequestError, responses_BranchMigrationPlan as BranchMigrationPlan, responses_BulkError as BulkError, responses_BulkInsertResponse as BulkInsertResponse, responses_PutFileResponse as PutFileResponse, responses_QueryResponse as QueryResponse, responses_RateLimitError as RateLimitError, responses_RecordResponse as RecordResponse, responses_RecordUpdateResponse as RecordUpdateResponse, responses_SQLResponse as SQLResponse, responses_SchemaCompareResponse as SchemaCompareResponse, responses_SchemaUpdateResponse as SchemaUpdateResponse, responses_SearchResponse as SearchResponse, responses_ServiceUnavailableError as ServiceUnavailableError, responses_SimpleError as SimpleError, responses_SummarizeResponse as SummarizeResponse };
|
6036
6133
|
}
|
6037
6134
|
|
6038
6135
|
type schemas_APIKeyName = APIKeyName;
|
6136
|
+
type schemas_AccessToken = AccessToken;
|
6039
6137
|
type schemas_AggExpression = AggExpression;
|
6040
6138
|
type schemas_AggExpressionMap = AggExpressionMap;
|
6041
6139
|
type schemas_AuthorizationCodeRequest = AuthorizationCodeRequest;
|
@@ -6107,6 +6205,8 @@ type schemas_MigrationStatus = MigrationStatus;
|
|
6107
6205
|
type schemas_MigrationTableOp = MigrationTableOp;
|
6108
6206
|
type schemas_MinAgg = MinAgg;
|
6109
6207
|
type schemas_NumericHistogramAgg = NumericHistogramAgg;
|
6208
|
+
type schemas_OAuthAccessToken = OAuthAccessToken;
|
6209
|
+
type schemas_OAuthClientID = OAuthClientID;
|
6110
6210
|
type schemas_OAuthClientPublicDetails = OAuthClientPublicDetails;
|
6111
6211
|
type schemas_OAuthResponseType = OAuthResponseType;
|
6112
6212
|
type schemas_OAuthScope = OAuthScope;
|
@@ -6163,141 +6263,7 @@ type schemas_WorkspaceMember = WorkspaceMember;
|
|
6163
6263
|
type schemas_WorkspaceMembers = WorkspaceMembers;
|
6164
6264
|
type schemas_WorkspaceMeta = WorkspaceMeta;
|
6165
6265
|
declare namespace schemas {
|
6166
|
-
export {
|
6167
|
-
schemas_APIKeyName as APIKeyName,
|
6168
|
-
schemas_AggExpression as AggExpression,
|
6169
|
-
schemas_AggExpressionMap as AggExpressionMap,
|
6170
|
-
AggResponse$1 as AggResponse,
|
6171
|
-
schemas_AuthorizationCodeRequest as AuthorizationCodeRequest,
|
6172
|
-
schemas_AuthorizationCodeResponse as AuthorizationCodeResponse,
|
6173
|
-
schemas_AverageAgg as AverageAgg,
|
6174
|
-
schemas_BoosterExpression as BoosterExpression,
|
6175
|
-
schemas_Branch as Branch,
|
6176
|
-
schemas_BranchMetadata as BranchMetadata,
|
6177
|
-
schemas_BranchMigration as BranchMigration,
|
6178
|
-
schemas_BranchName as BranchName,
|
6179
|
-
schemas_BranchOp as BranchOp,
|
6180
|
-
schemas_BranchWithCopyID as BranchWithCopyID,
|
6181
|
-
schemas_Column as Column,
|
6182
|
-
schemas_ColumnFile as ColumnFile,
|
6183
|
-
schemas_ColumnLink as ColumnLink,
|
6184
|
-
schemas_ColumnMigration as ColumnMigration,
|
6185
|
-
schemas_ColumnName as ColumnName,
|
6186
|
-
schemas_ColumnOpAdd as ColumnOpAdd,
|
6187
|
-
schemas_ColumnOpRemove as ColumnOpRemove,
|
6188
|
-
schemas_ColumnOpRename as ColumnOpRename,
|
6189
|
-
schemas_ColumnVector as ColumnVector,
|
6190
|
-
schemas_ColumnsProjection as ColumnsProjection,
|
6191
|
-
schemas_Commit as Commit,
|
6192
|
-
schemas_CountAgg as CountAgg,
|
6193
|
-
schemas_DBBranch as DBBranch,
|
6194
|
-
schemas_DBBranchName as DBBranchName,
|
6195
|
-
schemas_DBName as DBName,
|
6196
|
-
schemas_DataInputRecord as DataInputRecord,
|
6197
|
-
schemas_DatabaseGithubSettings as DatabaseGithubSettings,
|
6198
|
-
schemas_DatabaseMetadata as DatabaseMetadata,
|
6199
|
-
DateBooster$1 as DateBooster,
|
6200
|
-
schemas_DateHistogramAgg as DateHistogramAgg,
|
6201
|
-
schemas_DateTime as DateTime,
|
6202
|
-
schemas_FileAccessID as FileAccessID,
|
6203
|
-
schemas_FileItemID as FileItemID,
|
6204
|
-
schemas_FileName as FileName,
|
6205
|
-
schemas_FileResponse as FileResponse,
|
6206
|
-
schemas_FileSignature as FileSignature,
|
6207
|
-
schemas_FilterColumn as FilterColumn,
|
6208
|
-
schemas_FilterColumnIncludes as FilterColumnIncludes,
|
6209
|
-
schemas_FilterExpression as FilterExpression,
|
6210
|
-
schemas_FilterList as FilterList,
|
6211
|
-
schemas_FilterPredicate as FilterPredicate,
|
6212
|
-
schemas_FilterPredicateOp as FilterPredicateOp,
|
6213
|
-
schemas_FilterPredicateRangeOp as FilterPredicateRangeOp,
|
6214
|
-
schemas_FilterRangeValue as FilterRangeValue,
|
6215
|
-
schemas_FilterValue as FilterValue,
|
6216
|
-
schemas_FuzzinessExpression as FuzzinessExpression,
|
6217
|
-
schemas_HighlightExpression as HighlightExpression,
|
6218
|
-
schemas_InputFile as InputFile,
|
6219
|
-
schemas_InputFileArray as InputFileArray,
|
6220
|
-
schemas_InputFileEntry as InputFileEntry,
|
6221
|
-
schemas_InviteID as InviteID,
|
6222
|
-
schemas_InviteKey as InviteKey,
|
6223
|
-
schemas_ListBranchesResponse as ListBranchesResponse,
|
6224
|
-
schemas_ListDatabasesResponse as ListDatabasesResponse,
|
6225
|
-
schemas_ListGitBranchesResponse as ListGitBranchesResponse,
|
6226
|
-
schemas_ListRegionsResponse as ListRegionsResponse,
|
6227
|
-
schemas_MaxAgg as MaxAgg,
|
6228
|
-
schemas_MediaType as MediaType,
|
6229
|
-
schemas_MetricsDatapoint as MetricsDatapoint,
|
6230
|
-
schemas_MetricsLatency as MetricsLatency,
|
6231
|
-
schemas_Migration as Migration,
|
6232
|
-
schemas_MigrationColumnOp as MigrationColumnOp,
|
6233
|
-
schemas_MigrationObject as MigrationObject,
|
6234
|
-
schemas_MigrationOp as MigrationOp,
|
6235
|
-
schemas_MigrationRequest as MigrationRequest,
|
6236
|
-
schemas_MigrationRequestNumber as MigrationRequestNumber,
|
6237
|
-
schemas_MigrationStatus as MigrationStatus,
|
6238
|
-
schemas_MigrationTableOp as MigrationTableOp,
|
6239
|
-
schemas_MinAgg as MinAgg,
|
6240
|
-
NumericBooster$1 as NumericBooster,
|
6241
|
-
schemas_NumericHistogramAgg as NumericHistogramAgg,
|
6242
|
-
schemas_OAuthClientPublicDetails as OAuthClientPublicDetails,
|
6243
|
-
schemas_OAuthResponseType as OAuthResponseType,
|
6244
|
-
schemas_OAuthScope as OAuthScope,
|
6245
|
-
schemas_ObjectValue as ObjectValue,
|
6246
|
-
schemas_PageConfig as PageConfig,
|
6247
|
-
schemas_PrefixExpression as PrefixExpression,
|
6248
|
-
schemas_ProjectionConfig as ProjectionConfig,
|
6249
|
-
schemas_QueryColumnsProjection as QueryColumnsProjection,
|
6250
|
-
schemas_RecordID as RecordID,
|
6251
|
-
schemas_RecordMeta as RecordMeta,
|
6252
|
-
schemas_RecordsMetadata as RecordsMetadata,
|
6253
|
-
schemas_Region as Region,
|
6254
|
-
schemas_RevLink as RevLink,
|
6255
|
-
schemas_Role as Role,
|
6256
|
-
schemas_SQLRecord as SQLRecord,
|
6257
|
-
schemas_Schema as Schema,
|
6258
|
-
schemas_SchemaEditScript as SchemaEditScript,
|
6259
|
-
schemas_SearchPageConfig as SearchPageConfig,
|
6260
|
-
schemas_SortExpression as SortExpression,
|
6261
|
-
schemas_SortOrder as SortOrder,
|
6262
|
-
schemas_StartedFromMetadata as StartedFromMetadata,
|
6263
|
-
schemas_SumAgg as SumAgg,
|
6264
|
-
schemas_SummaryExpression as SummaryExpression,
|
6265
|
-
schemas_SummaryExpressionList as SummaryExpressionList,
|
6266
|
-
schemas_Table as Table,
|
6267
|
-
schemas_TableMigration as TableMigration,
|
6268
|
-
schemas_TableName as TableName,
|
6269
|
-
schemas_TableOpAdd as TableOpAdd,
|
6270
|
-
schemas_TableOpRemove as TableOpRemove,
|
6271
|
-
schemas_TableOpRename as TableOpRename,
|
6272
|
-
schemas_TableRename as TableRename,
|
6273
|
-
schemas_TargetExpression as TargetExpression,
|
6274
|
-
schemas_TopValuesAgg as TopValuesAgg,
|
6275
|
-
schemas_TransactionDeleteOp as TransactionDeleteOp,
|
6276
|
-
schemas_TransactionError as TransactionError,
|
6277
|
-
schemas_TransactionFailure as TransactionFailure,
|
6278
|
-
schemas_TransactionGetOp as TransactionGetOp,
|
6279
|
-
schemas_TransactionInsertOp as TransactionInsertOp,
|
6280
|
-
TransactionOperation$1 as TransactionOperation,
|
6281
|
-
schemas_TransactionResultColumns as TransactionResultColumns,
|
6282
|
-
schemas_TransactionResultDelete as TransactionResultDelete,
|
6283
|
-
schemas_TransactionResultGet as TransactionResultGet,
|
6284
|
-
schemas_TransactionResultInsert as TransactionResultInsert,
|
6285
|
-
schemas_TransactionResultUpdate as TransactionResultUpdate,
|
6286
|
-
schemas_TransactionSuccess as TransactionSuccess,
|
6287
|
-
schemas_TransactionUpdateOp as TransactionUpdateOp,
|
6288
|
-
schemas_UniqueCountAgg as UniqueCountAgg,
|
6289
|
-
schemas_User as User,
|
6290
|
-
schemas_UserID as UserID,
|
6291
|
-
schemas_UserWithID as UserWithID,
|
6292
|
-
ValueBooster$1 as ValueBooster,
|
6293
|
-
schemas_Workspace as Workspace,
|
6294
|
-
schemas_WorkspaceID as WorkspaceID,
|
6295
|
-
schemas_WorkspaceInvite as WorkspaceInvite,
|
6296
|
-
schemas_WorkspaceMember as WorkspaceMember,
|
6297
|
-
schemas_WorkspaceMembers as WorkspaceMembers,
|
6298
|
-
schemas_WorkspaceMeta as WorkspaceMeta,
|
6299
|
-
XataRecord$1 as XataRecord,
|
6300
|
-
};
|
6266
|
+
export type { schemas_APIKeyName as APIKeyName, schemas_AccessToken as AccessToken, schemas_AggExpression as AggExpression, schemas_AggExpressionMap as AggExpressionMap, AggResponse$1 as AggResponse, schemas_AuthorizationCodeRequest as AuthorizationCodeRequest, schemas_AuthorizationCodeResponse as AuthorizationCodeResponse, schemas_AverageAgg as AverageAgg, schemas_BoosterExpression as BoosterExpression, schemas_Branch as Branch, schemas_BranchMetadata as BranchMetadata, schemas_BranchMigration as BranchMigration, schemas_BranchName as BranchName, schemas_BranchOp as BranchOp, schemas_BranchWithCopyID as BranchWithCopyID, schemas_Column as Column, schemas_ColumnFile as ColumnFile, schemas_ColumnLink as ColumnLink, schemas_ColumnMigration as ColumnMigration, schemas_ColumnName as ColumnName, schemas_ColumnOpAdd as ColumnOpAdd, schemas_ColumnOpRemove as ColumnOpRemove, schemas_ColumnOpRename as ColumnOpRename, schemas_ColumnVector as ColumnVector, schemas_ColumnsProjection as ColumnsProjection, schemas_Commit as Commit, schemas_CountAgg as CountAgg, schemas_DBBranch as DBBranch, schemas_DBBranchName as DBBranchName, schemas_DBName as DBName, schemas_DataInputRecord as DataInputRecord, schemas_DatabaseGithubSettings as DatabaseGithubSettings, schemas_DatabaseMetadata as DatabaseMetadata, DateBooster$1 as DateBooster, schemas_DateHistogramAgg as DateHistogramAgg, schemas_DateTime as DateTime, schemas_FileAccessID as FileAccessID, schemas_FileItemID as FileItemID, schemas_FileName as FileName, schemas_FileResponse as FileResponse, schemas_FileSignature as FileSignature, schemas_FilterColumn as FilterColumn, schemas_FilterColumnIncludes as FilterColumnIncludes, schemas_FilterExpression as FilterExpression, schemas_FilterList as FilterList, schemas_FilterPredicate as FilterPredicate, schemas_FilterPredicateOp as FilterPredicateOp, schemas_FilterPredicateRangeOp as FilterPredicateRangeOp, schemas_FilterRangeValue as FilterRangeValue, schemas_FilterValue as FilterValue, schemas_FuzzinessExpression as FuzzinessExpression, schemas_HighlightExpression as HighlightExpression, schemas_InputFile as InputFile, schemas_InputFileArray as InputFileArray, schemas_InputFileEntry as InputFileEntry, schemas_InviteID as InviteID, schemas_InviteKey as InviteKey, schemas_ListBranchesResponse as ListBranchesResponse, schemas_ListDatabasesResponse as ListDatabasesResponse, schemas_ListGitBranchesResponse as ListGitBranchesResponse, schemas_ListRegionsResponse as ListRegionsResponse, schemas_MaxAgg as MaxAgg, schemas_MediaType as MediaType, schemas_MetricsDatapoint as MetricsDatapoint, schemas_MetricsLatency as MetricsLatency, schemas_Migration as Migration, schemas_MigrationColumnOp as MigrationColumnOp, schemas_MigrationObject as MigrationObject, schemas_MigrationOp as MigrationOp, schemas_MigrationRequest as MigrationRequest, schemas_MigrationRequestNumber as MigrationRequestNumber, schemas_MigrationStatus as MigrationStatus, schemas_MigrationTableOp as MigrationTableOp, schemas_MinAgg as MinAgg, NumericBooster$1 as NumericBooster, schemas_NumericHistogramAgg as NumericHistogramAgg, schemas_OAuthAccessToken as OAuthAccessToken, schemas_OAuthClientID as OAuthClientID, schemas_OAuthClientPublicDetails as OAuthClientPublicDetails, schemas_OAuthResponseType as OAuthResponseType, schemas_OAuthScope as OAuthScope, schemas_ObjectValue as ObjectValue, schemas_PageConfig as PageConfig, schemas_PrefixExpression as PrefixExpression, schemas_ProjectionConfig as ProjectionConfig, schemas_QueryColumnsProjection as QueryColumnsProjection, schemas_RecordID as RecordID, schemas_RecordMeta as RecordMeta, schemas_RecordsMetadata as RecordsMetadata, schemas_Region as Region, schemas_RevLink as RevLink, schemas_Role as Role, schemas_SQLRecord as SQLRecord, schemas_Schema as Schema, schemas_SchemaEditScript as SchemaEditScript, schemas_SearchPageConfig as SearchPageConfig, schemas_SortExpression as SortExpression, schemas_SortOrder as SortOrder, schemas_StartedFromMetadata as StartedFromMetadata, schemas_SumAgg as SumAgg, schemas_SummaryExpression as SummaryExpression, schemas_SummaryExpressionList as SummaryExpressionList, schemas_Table as Table, schemas_TableMigration as TableMigration, schemas_TableName as TableName, schemas_TableOpAdd as TableOpAdd, schemas_TableOpRemove as TableOpRemove, schemas_TableOpRename as TableOpRename, schemas_TableRename as TableRename, schemas_TargetExpression as TargetExpression, schemas_TopValuesAgg as TopValuesAgg, schemas_TransactionDeleteOp as TransactionDeleteOp, schemas_TransactionError as TransactionError, schemas_TransactionFailure as TransactionFailure, schemas_TransactionGetOp as TransactionGetOp, schemas_TransactionInsertOp as TransactionInsertOp, TransactionOperation$1 as TransactionOperation, schemas_TransactionResultColumns as TransactionResultColumns, schemas_TransactionResultDelete as TransactionResultDelete, schemas_TransactionResultGet as TransactionResultGet, schemas_TransactionResultInsert as TransactionResultInsert, schemas_TransactionResultUpdate as TransactionResultUpdate, schemas_TransactionSuccess as TransactionSuccess, schemas_TransactionUpdateOp as TransactionUpdateOp, schemas_UniqueCountAgg as UniqueCountAgg, schemas_User as User, schemas_UserID as UserID, schemas_UserWithID as UserWithID, ValueBooster$1 as ValueBooster, schemas_Workspace as Workspace, schemas_WorkspaceID as WorkspaceID, schemas_WorkspaceInvite as WorkspaceInvite, schemas_WorkspaceMember as WorkspaceMember, schemas_WorkspaceMembers as WorkspaceMembers, schemas_WorkspaceMeta as WorkspaceMeta, XataRecord$1 as XataRecord };
|
6301
6267
|
}
|
6302
6268
|
|
6303
6269
|
type ApiExtraProps = Omit<FetcherExtraProps, 'endpoint'>;
|
@@ -7086,6 +7052,11 @@ interface ImageTransformations {
|
|
7086
7052
|
* ignored.
|
7087
7053
|
*/
|
7088
7054
|
contrast?: number;
|
7055
|
+
/**
|
7056
|
+
* Download file. Forces browser to download the image.
|
7057
|
+
* Value is used for the download file name. Extension is optional.
|
7058
|
+
*/
|
7059
|
+
download?: string;
|
7089
7060
|
/**
|
7090
7061
|
* Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
|
7091
7062
|
* easier to specify higher-DPI sizes in <img srcset>.
|
@@ -7201,50 +7172,55 @@ interface ImageTransformations {
|
|
7201
7172
|
*/
|
7202
7173
|
width?: number;
|
7203
7174
|
}
|
7204
|
-
declare function transformImage(url: string
|
7175
|
+
declare function transformImage(url: string, ...transformations: ImageTransformations[]): string;
|
7176
|
+
declare function transformImage(url: string | undefined, ...transformations: ImageTransformations[]): string | undefined;
|
7205
7177
|
|
7206
7178
|
type XataFileEditableFields = Partial<Pick<XataArrayFile, keyof InputFileEntry>>;
|
7207
7179
|
declare class XataFile {
|
7208
7180
|
/**
|
7209
|
-
*
|
7181
|
+
* Identifier of the file.
|
7210
7182
|
*/
|
7211
|
-
|
7183
|
+
id?: string;
|
7212
7184
|
/**
|
7213
|
-
*
|
7185
|
+
* Name of the file.
|
7186
|
+
*/
|
7187
|
+
name: string;
|
7188
|
+
/**
|
7189
|
+
* Media type of the file.
|
7214
7190
|
*/
|
7215
7191
|
mediaType: string;
|
7216
7192
|
/**
|
7217
|
-
* Base64 encoded content of
|
7193
|
+
* Base64 encoded content of the file.
|
7218
7194
|
*/
|
7219
7195
|
base64Content?: string;
|
7220
7196
|
/**
|
7221
|
-
* Whether to enable public url for
|
7197
|
+
* Whether to enable public url for the file.
|
7222
7198
|
*/
|
7223
|
-
enablePublicUrl
|
7199
|
+
enablePublicUrl: boolean;
|
7224
7200
|
/**
|
7225
7201
|
* Timeout for the signed url.
|
7226
7202
|
*/
|
7227
|
-
signedUrlTimeout
|
7203
|
+
signedUrlTimeout: number;
|
7228
7204
|
/**
|
7229
|
-
* Size of
|
7205
|
+
* Size of the file.
|
7230
7206
|
*/
|
7231
7207
|
size?: number;
|
7232
7208
|
/**
|
7233
|
-
* Version of
|
7209
|
+
* Version of the file.
|
7234
7210
|
*/
|
7235
|
-
version
|
7211
|
+
version: number;
|
7236
7212
|
/**
|
7237
|
-
* Url of
|
7213
|
+
* Url of the file.
|
7238
7214
|
*/
|
7239
|
-
url
|
7215
|
+
url: string;
|
7240
7216
|
/**
|
7241
|
-
* Signed url of
|
7217
|
+
* Signed url of the file.
|
7242
7218
|
*/
|
7243
7219
|
signedUrl?: string;
|
7244
7220
|
/**
|
7245
|
-
* Attributes of
|
7221
|
+
* Attributes of the file.
|
7246
7222
|
*/
|
7247
|
-
attributes
|
7223
|
+
attributes: Record<string, any>;
|
7248
7224
|
constructor(file: Partial<XataFile>);
|
7249
7225
|
static fromBuffer(buffer: Buffer, options?: XataFileEditableFields): XataFile;
|
7250
7226
|
toBuffer(): Buffer;
|
@@ -7259,21 +7235,47 @@ declare class XataFile {
|
|
7259
7235
|
static fromBase64(base64Content: string, options?: XataFileEditableFields): XataFile;
|
7260
7236
|
toBase64(): string;
|
7261
7237
|
transform(...options: ImageTransformations[]): {
|
7262
|
-
url: string
|
7238
|
+
url: string;
|
7263
7239
|
signedUrl: string | undefined;
|
7240
|
+
metadataUrl: string;
|
7241
|
+
metadataSignedUrl: string | undefined;
|
7264
7242
|
};
|
7265
7243
|
}
|
7266
7244
|
type XataArrayFile = Identifiable & XataFile;
|
7267
7245
|
|
7268
7246
|
type SelectableColumn<O, RecursivePath extends any[] = []> = '*' | 'id' | `xata.${'version' | 'createdAt' | 'updatedAt'}` | DataProps<O> | NestedColumns<O, RecursivePath>;
|
7247
|
+
type ExpandedColumnNotation = {
|
7248
|
+
name: string;
|
7249
|
+
columns?: SelectableColumn<any>[];
|
7250
|
+
as?: string;
|
7251
|
+
limit?: number;
|
7252
|
+
offset?: number;
|
7253
|
+
order?: {
|
7254
|
+
column: string;
|
7255
|
+
order: 'asc' | 'desc';
|
7256
|
+
}[];
|
7257
|
+
};
|
7258
|
+
type SelectableColumnWithObjectNotation<O, RecursivePath extends any[] = []> = SelectableColumn<O, RecursivePath> | ExpandedColumnNotation;
|
7259
|
+
declare function isValidExpandedColumn(column: any): column is ExpandedColumnNotation;
|
7260
|
+
declare function isValidSelectableColumns(columns: any): columns is SelectableColumn<any>[];
|
7261
|
+
type StringColumns<T> = T extends string ? T : never;
|
7262
|
+
type ProjectionColumns<T> = T extends string ? never : T extends {
|
7263
|
+
as: infer As;
|
7264
|
+
} ? NonNullable<As> extends string ? NonNullable<As> : never : never;
|
7269
7265
|
type WildcardColumns<O> = Values<{
|
7270
7266
|
[K in SelectableColumn<O>]: K extends `${string}*` ? K : never;
|
7271
7267
|
}>;
|
7272
7268
|
type ColumnsByValue<O, Value> = Values<{
|
7273
7269
|
[K in SelectableColumn<O>]: ValueAtColumn<O, K> extends infer C ? C extends Value ? K extends WildcardColumns<O> ? never : K : never : never;
|
7274
7270
|
}>;
|
7275
|
-
type SelectedPick<O extends XataRecord, Key extends
|
7276
|
-
[K in Key[number]]: NestedValueAtColumn<O, K> & XataRecord<O>;
|
7271
|
+
type SelectedPick<O extends XataRecord, Key extends SelectableColumnWithObjectNotation<O>[]> = XataRecord<O> & UnionToIntersection<Values<{
|
7272
|
+
[K in StringColumns<Key[number]>]: NestedValueAtColumn<O, K> & XataRecord<O>;
|
7273
|
+
}>> & UnionToIntersection<Values<{
|
7274
|
+
[K in ProjectionColumns<Key[number]>]: {
|
7275
|
+
[Key in K]: {
|
7276
|
+
records: (Record<string, any> & XataRecord<O>)[];
|
7277
|
+
};
|
7278
|
+
};
|
7277
7279
|
}>>;
|
7278
7280
|
type ValueAtColumn<Object, Key> = Key extends '*' ? Values<Object> : Key extends 'id' ? string : Key extends 'xata.version' ? number : Key extends 'xata.createdAt' ? Date : Key extends 'xata.updatedAt' ? Date : Key extends keyof Object ? Object[Key] : Key extends `${infer K}.${infer V}` ? K extends keyof Object ? Values<NonNullable<Object[K]> extends infer Item ? Item extends Record<string, any> ? V extends SelectableColumn<Item> ? {
|
7279
7281
|
V: ValueAtColumn<Item, V>;
|
@@ -7293,7 +7295,7 @@ type NestedValueAtColumn<O, Key extends SelectableColumn<O>> = Key extends `${in
|
|
7293
7295
|
} : unknown;
|
7294
7296
|
type ForwardNullable<T, R> = T extends NonNullable<T> ? R : R | null;
|
7295
7297
|
|
7296
|
-
declare const RecordColumnTypes: readonly ["bool", "int", "float", "string", "text", "email", "multiple", "link", "object", "datetime", "vector", "file[]", "file"];
|
7298
|
+
declare const RecordColumnTypes: readonly ["bool", "int", "float", "string", "text", "email", "multiple", "link", "object", "datetime", "vector", "file[]", "file", "json"];
|
7297
7299
|
type Identifier = string;
|
7298
7300
|
/**
|
7299
7301
|
* Represents an identifiable record from the database.
|
@@ -7425,7 +7427,10 @@ type EditableDataFields<T> = T extends XataRecord ? {
|
|
7425
7427
|
type EditableData<O extends XataRecord> = Identifiable & Partial<Omit<{
|
7426
7428
|
[K in keyof O]: EditableDataFields<O[K]>;
|
7427
7429
|
}, keyof XataRecord>>;
|
7428
|
-
type
|
7430
|
+
type JSONDataFile = {
|
7431
|
+
[K in keyof XataFile]: XataFile[K] extends Function ? never : XataFile[K];
|
7432
|
+
};
|
7433
|
+
type JSONDataFields<T> = T extends XataFile ? JSONDataFile : NonNullable<T> extends XataFile ? JSONDataFile | null | undefined : T extends XataRecord ? string : NonNullable<T> extends XataRecord ? string | null | undefined : T extends Date ? string : NonNullable<T> extends Date ? string | null | undefined : T;
|
7429
7434
|
type JSONDataBase = Identifiable & {
|
7430
7435
|
/**
|
7431
7436
|
* Metadata about the record.
|
@@ -7449,7 +7454,15 @@ type JSONData<O> = JSONDataBase & Partial<Omit<{
|
|
7449
7454
|
[K in keyof O]: JSONDataFields<O[K]>;
|
7450
7455
|
}, keyof XataRecord>>;
|
7451
7456
|
|
7457
|
+
type JSONValue<Value> = Value & {
|
7458
|
+
__json: true;
|
7459
|
+
};
|
7460
|
+
|
7461
|
+
type JSONFilterColumns<Record> = Values<{
|
7462
|
+
[K in keyof Record]: NonNullable<Record[K]> extends JSONValue<any> ? K extends string ? `${K}->${string}` : never : never;
|
7463
|
+
}>;
|
7452
7464
|
type FilterColumns<T> = ColumnsByValue<T, any> | `xata.${keyof XataRecordMetadata}`;
|
7465
|
+
type FilterValueAtColumn<Record, F> = NonNullable<ValueAtColumn<Record, F>> extends JSONValue<any> ? PropertyFilter<any> : Filter<NonNullable<ValueAtColumn<Record, F>>>;
|
7453
7466
|
/**
|
7454
7467
|
* PropertyMatchFilter
|
7455
7468
|
* Example:
|
@@ -7470,6 +7483,8 @@ type FilterColumns<T> = ColumnsByValue<T, any> | `xata.${keyof XataRecordMetadat
|
|
7470
7483
|
*/
|
7471
7484
|
type PropertyAccessFilter<Record> = {
|
7472
7485
|
[key in FilterColumns<Record>]?: NestedApiFilter<ValueAtColumn<Record, key>> | PropertyFilter<ValueAtColumn<Record, key>>;
|
7486
|
+
} & {
|
7487
|
+
[key in JSONFilterColumns<Record>]?: PropertyFilter<Record[keyof Record]>;
|
7473
7488
|
};
|
7474
7489
|
type PropertyFilter<T> = T | {
|
7475
7490
|
$is: T;
|
@@ -7952,7 +7967,7 @@ type SummarizeFilter<Record extends XataRecord, Expression extends Dictionary<Su
|
|
7952
7967
|
type SummarizeResultItem<Record extends XataRecord, Expression extends Dictionary<SummarizeExpression<Record>>, Columns extends SelectableColumn<Record>[]> = SummarizeValuePick<Record, Expression> & SelectedPick<Record, Columns>;
|
7953
7968
|
|
7954
7969
|
type BaseOptions<T extends XataRecord> = {
|
7955
|
-
columns?:
|
7970
|
+
columns?: SelectableColumnWithObjectNotation<T>[];
|
7956
7971
|
consistency?: 'strong' | 'eventual';
|
7957
7972
|
cache?: number;
|
7958
7973
|
fetchOptions?: Record<string, unknown>;
|
@@ -8020,7 +8035,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
8020
8035
|
* @param value The value to filter.
|
8021
8036
|
* @returns A new Query object.
|
8022
8037
|
*/
|
8023
|
-
filter<F extends
|
8038
|
+
filter<F extends FilterColumns<Record> | JSONFilterColumns<Record>>(column: F, value: FilterValueAtColumn<Record, F>): Query<Record, Result>;
|
8024
8039
|
/**
|
8025
8040
|
* Builds a new query object adding one or more constraints. Examples:
|
8026
8041
|
*
|
@@ -8041,15 +8056,15 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
8041
8056
|
* @param direction The direction. Either ascending or descending.
|
8042
8057
|
* @returns A new Query object.
|
8043
8058
|
*/
|
8044
|
-
sort<F extends
|
8059
|
+
sort<F extends SortColumns<Record>>(column: F, direction: SortDirection): Query<Record, Result>;
|
8045
8060
|
sort(column: '*', direction: 'random'): Query<Record, Result>;
|
8046
|
-
sort<F extends
|
8061
|
+
sort<F extends SortColumns<Record>>(column: F): Query<Record, Result>;
|
8047
8062
|
/**
|
8048
8063
|
* Builds a new query specifying the set of columns to be returned in the query response.
|
8049
8064
|
* @param columns Array of column names to be returned by the query.
|
8050
8065
|
* @returns A new Query object.
|
8051
8066
|
*/
|
8052
|
-
select<K extends
|
8067
|
+
select<K extends SelectableColumnWithObjectNotation<Record>>(columns: K[]): Query<Record, SelectedPick<Record, K[]>>;
|
8053
8068
|
/**
|
8054
8069
|
* Get paginated results
|
8055
8070
|
*
|
@@ -9063,7 +9078,7 @@ type PropertyType<Tables, Properties, PropertyName extends PropertyKey> = Proper
|
|
9063
9078
|
} : {
|
9064
9079
|
[K in PropertyName]?: InnerType<Type, ObjectColumns, Tables, LinkedTable> | null;
|
9065
9080
|
} : never : never;
|
9066
|
-
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 {
|
9081
|
+
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 'json' ? JSONValue<any> : Type extends 'object' ? ObjectColumns extends readonly unknown[] ? ObjectColumns[number] extends {
|
9067
9082
|
name: string;
|
9068
9083
|
type: string;
|
9069
9084
|
} ? UnionToIntersection<Values<{
|
@@ -9217,6 +9232,20 @@ declare class FilesPlugin<Schemas extends Record<string, XataRecord>> extends Xa
|
|
9217
9232
|
build(pluginOptions: XataPluginOptions): FilesPluginResult<Schemas>;
|
9218
9233
|
}
|
9219
9234
|
|
9235
|
+
type SQLQueryParams<T = any[]> = {
|
9236
|
+
statement: string;
|
9237
|
+
params?: T;
|
9238
|
+
consistency?: 'strong' | 'eventual';
|
9239
|
+
};
|
9240
|
+
type SQLQuery = TemplateStringsArray | SQLQueryParams | string;
|
9241
|
+
type SQLPluginResult = <T>(query: SQLQuery, ...parameters: any[]) => Promise<{
|
9242
|
+
records: T[];
|
9243
|
+
warning?: string;
|
9244
|
+
}>;
|
9245
|
+
declare class SQLPlugin extends XataPlugin {
|
9246
|
+
build(pluginOptions: XataPluginOptions): SQLPluginResult;
|
9247
|
+
}
|
9248
|
+
|
9220
9249
|
type TransactionOperation<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = {
|
9221
9250
|
insert: Values<{
|
9222
9251
|
[Model in GetArrayInnerType<NonNullable<Tables[]>>]: {
|
@@ -9317,6 +9346,7 @@ interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
|
|
9317
9346
|
db: Awaited<ReturnType<SchemaPlugin<Schemas>['build']>>;
|
9318
9347
|
search: Awaited<ReturnType<SearchPlugin<Schemas>['build']>>;
|
9319
9348
|
transactions: Awaited<ReturnType<TransactionPlugin<Schemas>['build']>>;
|
9349
|
+
sql: Awaited<ReturnType<SQLPlugin['build']>>;
|
9320
9350
|
files: Awaited<ReturnType<FilesPlugin<Schemas>['build']>>;
|
9321
9351
|
}, keyof Plugins> & {
|
9322
9352
|
[Key in StringKeys<NonNullable<Plugins>>]: Awaited<ReturnType<NonNullable<Plugins>[Key]['build']>>;
|
@@ -9441,4 +9471,4 @@ declare class XataError extends Error {
|
|
9441
9471
|
constructor(message: string, status: number);
|
9442
9472
|
}
|
9443
9473
|
|
9444
|
-
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, BinaryFile, 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, DownloadDestination, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherError, FetcherExtraProps, FileAccessError, FileAccessPathParams, FileAccessQueryParams, FileAccessVariables, FilesPlugin, FilesPluginResult, GetAuthorizationCodeError, GetAuthorizationCodeQueryParams, GetAuthorizationCodeVariables, 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, GetUserOAuthClientsError, GetUserOAuthClientsResponse, GetUserOAuthClientsVariables, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, GrantAuthorizationCodeError, 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, UploadDestination, 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, getAPIKey, getAuthorizationCode, 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, getUserOAuthClients, 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, transformImage, updateBranchMetadata, updateBranchSchema, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateMigrationRequest, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };
|
9474
|
+
export { type AcceptWorkspaceMemberInviteError, type AcceptWorkspaceMemberInvitePathParams, type AcceptWorkspaceMemberInviteVariables, type AddGitBranchesEntryError, type AddGitBranchesEntryPathParams, type AddGitBranchesEntryRequestBody, type AddGitBranchesEntryResponse, type AddGitBranchesEntryVariables, type AddTableColumnError, type AddTableColumnPathParams, type AddTableColumnVariables, type AggregateTableError, type AggregateTablePathParams, type AggregateTableRequestBody, type AggregateTableVariables, type ApiExtraProps, type ApplyBranchSchemaEditError, type ApplyBranchSchemaEditPathParams, type ApplyBranchSchemaEditRequestBody, type ApplyBranchSchemaEditVariables, type AskOptions, type AskResult, type AskTableError, type AskTablePathParams, type AskTableRequestBody, type AskTableResponse, type AskTableSessionError, type AskTableSessionPathParams, type AskTableSessionRequestBody, type AskTableSessionResponse, type AskTableSessionVariables, type AskTableVariables, BaseClient, type BaseClientOptions, type BaseData, type BaseSchema, type BinaryFile, type BranchTransactionError, type BranchTransactionPathParams, type BranchTransactionRequestBody, type BranchTransactionVariables, type BulkInsertTableRecordsError, type BulkInsertTableRecordsPathParams, type BulkInsertTableRecordsQueryParams, type BulkInsertTableRecordsRequestBody, type BulkInsertTableRecordsVariables, type CacheImpl, type CancelWorkspaceMemberInviteError, type CancelWorkspaceMemberInvitePathParams, type CancelWorkspaceMemberInviteVariables, type ClientConstructor, type ColumnsByValue, type CompareBranchSchemasError, type CompareBranchSchemasPathParams, type CompareBranchSchemasRequestBody, type CompareBranchSchemasVariables, type CompareBranchWithUserSchemaError, type CompareBranchWithUserSchemaPathParams, type CompareBranchWithUserSchemaRequestBody, type CompareBranchWithUserSchemaVariables, type CompareMigrationRequestError, type CompareMigrationRequestPathParams, type CompareMigrationRequestVariables, type CopyBranchError, type CopyBranchPathParams, type CopyBranchRequestBody, type CopyBranchVariables, type CreateBranchError, type CreateBranchPathParams, type CreateBranchQueryParams, type CreateBranchRequestBody, type CreateBranchResponse, type CreateBranchVariables, type CreateDatabaseError, type CreateDatabasePathParams, type CreateDatabaseRequestBody, type CreateDatabaseResponse, type CreateDatabaseVariables, type CreateMigrationRequestError, type CreateMigrationRequestPathParams, type CreateMigrationRequestRequestBody, type CreateMigrationRequestResponse, type CreateMigrationRequestVariables, type CreateTableError, type CreateTablePathParams, type CreateTableResponse, type CreateTableVariables, type CreateUserAPIKeyError, type CreateUserAPIKeyPathParams, type CreateUserAPIKeyResponse, type CreateUserAPIKeyVariables, type CreateWorkspaceError, type CreateWorkspaceVariables, type CursorNavigationOptions, type DeleteBranchError, type DeleteBranchPathParams, type DeleteBranchResponse, type DeleteBranchVariables, type DeleteColumnError, type DeleteColumnPathParams, type DeleteColumnVariables, type DeleteDatabaseError, type DeleteDatabaseGithubSettingsError, type DeleteDatabaseGithubSettingsPathParams, type DeleteDatabaseGithubSettingsVariables, type DeleteDatabasePathParams, type DeleteDatabaseResponse, type DeleteDatabaseVariables, type DeleteFileError, type DeleteFileItemError, type DeleteFileItemPathParams, type DeleteFileItemVariables, type DeleteFilePathParams, type DeleteFileVariables, type DeleteOAuthAccessTokenError, type DeleteOAuthAccessTokenPathParams, type DeleteOAuthAccessTokenVariables, type DeleteRecordError, type DeleteRecordPathParams, type DeleteRecordQueryParams, type DeleteRecordVariables, type DeleteTableError, type DeleteTablePathParams, type DeleteTableResponse, type DeleteTableVariables, type DeleteUserAPIKeyError, type DeleteUserAPIKeyPathParams, type DeleteUserAPIKeyVariables, type DeleteUserError, type DeleteUserOAuthClientError, type DeleteUserOAuthClientPathParams, type DeleteUserOAuthClientVariables, type DeleteUserVariables, type DeleteWorkspaceError, type DeleteWorkspacePathParams, type DeleteWorkspaceVariables, type DeserializedType, type DownloadDestination, type EditableData, type ExecuteBranchMigrationPlanError, type ExecuteBranchMigrationPlanPathParams, type ExecuteBranchMigrationPlanRequestBody, type ExecuteBranchMigrationPlanVariables, type FetchImpl, FetcherError, type FetcherExtraProps, type FileAccessError, type FileAccessPathParams, type FileAccessQueryParams, type FileAccessVariables, FilesPlugin, type FilesPluginResult, type GetAuthorizationCodeError, type GetAuthorizationCodeQueryParams, type GetAuthorizationCodeVariables, type GetBranchDetailsError, type GetBranchDetailsPathParams, type GetBranchDetailsVariables, type GetBranchListError, type GetBranchListPathParams, type GetBranchListVariables, type GetBranchMetadataError, type GetBranchMetadataPathParams, type GetBranchMetadataVariables, type GetBranchMigrationHistoryError, type GetBranchMigrationHistoryPathParams, type GetBranchMigrationHistoryRequestBody, type GetBranchMigrationHistoryResponse, type GetBranchMigrationHistoryVariables, type GetBranchMigrationPlanError, type GetBranchMigrationPlanPathParams, type GetBranchMigrationPlanVariables, type GetBranchSchemaHistoryError, type GetBranchSchemaHistoryPathParams, type GetBranchSchemaHistoryRequestBody, type GetBranchSchemaHistoryResponse, type GetBranchSchemaHistoryVariables, type GetBranchStatsError, type GetBranchStatsPathParams, type GetBranchStatsResponse, type GetBranchStatsVariables, type GetColumnError, type GetColumnPathParams, type GetColumnVariables, type GetDatabaseGithubSettingsError, type GetDatabaseGithubSettingsPathParams, type GetDatabaseGithubSettingsVariables, type GetDatabaseListError, type GetDatabaseListPathParams, type GetDatabaseListVariables, type GetDatabaseMetadataError, type GetDatabaseMetadataPathParams, type GetDatabaseMetadataVariables, type GetFileError, type GetFileItemError, type GetFileItemPathParams, type GetFileItemVariables, type GetFilePathParams, type GetFileVariables, type GetGitBranchesMappingError, type GetGitBranchesMappingPathParams, type GetGitBranchesMappingVariables, type GetMigrationRequestError, type GetMigrationRequestIsMergedError, type GetMigrationRequestIsMergedPathParams, type GetMigrationRequestIsMergedResponse, type GetMigrationRequestIsMergedVariables, type GetMigrationRequestPathParams, type GetMigrationRequestVariables, type GetRecordError, type GetRecordPathParams, type GetRecordQueryParams, type GetRecordVariables, type GetTableColumnsError, type GetTableColumnsPathParams, type GetTableColumnsResponse, type GetTableColumnsVariables, type GetTableSchemaError, type GetTableSchemaPathParams, type GetTableSchemaResponse, type GetTableSchemaVariables, type GetUserAPIKeysError, type GetUserAPIKeysResponse, type GetUserAPIKeysVariables, type GetUserError, type GetUserOAuthAccessTokensError, type GetUserOAuthAccessTokensResponse, type GetUserOAuthAccessTokensVariables, type GetUserOAuthClientsError, type GetUserOAuthClientsResponse, type GetUserOAuthClientsVariables, type GetUserVariables, type GetWorkspaceError, type GetWorkspaceMembersListError, type GetWorkspaceMembersListPathParams, type GetWorkspaceMembersListVariables, type GetWorkspacePathParams, type GetWorkspaceVariables, type GetWorkspacesListError, type GetWorkspacesListResponse, type GetWorkspacesListVariables, type GrantAuthorizationCodeError, type GrantAuthorizationCodeVariables, type HostProvider, type Identifiable, type ImageTransformations, type InsertRecordError, type InsertRecordPathParams, type InsertRecordQueryParams, type InsertRecordVariables, type InsertRecordWithIDError, type InsertRecordWithIDPathParams, type InsertRecordWithIDQueryParams, type InsertRecordWithIDVariables, type InviteWorkspaceMemberError, type InviteWorkspaceMemberPathParams, type InviteWorkspaceMemberRequestBody, type InviteWorkspaceMemberVariables, type JSONData, type KeywordAskOptions, type Link, type ListMigrationRequestsCommitsError, type ListMigrationRequestsCommitsPathParams, type ListMigrationRequestsCommitsRequestBody, type ListMigrationRequestsCommitsResponse, type ListMigrationRequestsCommitsVariables, type ListRegionsError, type ListRegionsPathParams, type ListRegionsVariables, type MergeMigrationRequestError, type MergeMigrationRequestPathParams, type MergeMigrationRequestVariables, type OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, type Paginable, type PaginationQueryMeta, type PreviewBranchSchemaEditError, type PreviewBranchSchemaEditPathParams, type PreviewBranchSchemaEditRequestBody, type PreviewBranchSchemaEditResponse, type PreviewBranchSchemaEditVariables, type PushBranchMigrationsError, type PushBranchMigrationsPathParams, type PushBranchMigrationsRequestBody, type PushBranchMigrationsVariables, type PutFileError, type PutFileItemError, type PutFileItemPathParams, type PutFileItemVariables, type PutFilePathParams, type PutFileVariables, Query, type QueryMigrationRequestsError, type QueryMigrationRequestsPathParams, type QueryMigrationRequestsRequestBody, type QueryMigrationRequestsResponse, type QueryMigrationRequestsVariables, type QueryTableError, type QueryTablePathParams, type QueryTableRequestBody, type QueryTableVariables, RecordArray, RecordColumnTypes, type RemoveGitBranchesEntryError, type RemoveGitBranchesEntryPathParams, type RemoveGitBranchesEntryQueryParams, type RemoveGitBranchesEntryVariables, type RemoveWorkspaceMemberError, type RemoveWorkspaceMemberPathParams, type RemoveWorkspaceMemberVariables, type RenameDatabaseError, type RenameDatabasePathParams, type RenameDatabaseRequestBody, type RenameDatabaseVariables, Repository, type ResendWorkspaceMemberInviteError, type ResendWorkspaceMemberInvitePathParams, type ResendWorkspaceMemberInviteVariables, type ResolveBranchError, type ResolveBranchPathParams, type ResolveBranchQueryParams, type ResolveBranchResponse, type ResolveBranchVariables, responses as Responses, RestRepository, SQLPlugin, type SQLPluginResult, type SQLQuery, type SQLQueryParams, type SchemaDefinition, type SchemaInference, SchemaPlugin, type SchemaPluginResult, schemas as Schemas, type SearchBranchError, type SearchBranchPathParams, type SearchBranchRequestBody, type SearchBranchVariables, type SearchOptions, SearchPlugin, type SearchPluginResult, type SearchTableError, type SearchTablePathParams, type SearchTableRequestBody, type SearchTableVariables, type SearchXataRecord, type SelectableColumn, type SelectableColumnWithObjectNotation, type SelectedPick, type SerializedString, Serializer, type SerializerResult, type SetTableSchemaError, type SetTableSchemaPathParams, type SetTableSchemaRequestBody, type SetTableSchemaVariables, SimpleCache, type SimpleCacheOptions, type SqlQueryError, type SqlQueryPathParams, type SqlQueryRequestBody, type SqlQueryVariables, type SummarizeTableError, type SummarizeTablePathParams, type SummarizeTableRequestBody, type SummarizeTableVariables, type UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, type UpdateColumnError, type UpdateColumnPathParams, type UpdateColumnRequestBody, type UpdateColumnVariables, type UpdateDatabaseGithubSettingsError, type UpdateDatabaseGithubSettingsPathParams, type UpdateDatabaseGithubSettingsVariables, type UpdateDatabaseMetadataError, type UpdateDatabaseMetadataPathParams, type UpdateDatabaseMetadataRequestBody, type UpdateDatabaseMetadataVariables, type UpdateMigrationRequestError, type UpdateMigrationRequestPathParams, type UpdateMigrationRequestRequestBody, type UpdateMigrationRequestVariables, type UpdateOAuthAccessTokenError, type UpdateOAuthAccessTokenPathParams, type UpdateOAuthAccessTokenRequestBody, type UpdateOAuthAccessTokenVariables, type UpdateRecordWithIDError, type UpdateRecordWithIDPathParams, type UpdateRecordWithIDQueryParams, type UpdateRecordWithIDVariables, type UpdateTableError, type UpdateTablePathParams, type UpdateTableRequestBody, type UpdateTableVariables, type UpdateUserError, type UpdateUserVariables, type UpdateWorkspaceError, type UpdateWorkspaceMemberInviteError, type UpdateWorkspaceMemberInvitePathParams, type UpdateWorkspaceMemberInviteRequestBody, type UpdateWorkspaceMemberInviteVariables, type UpdateWorkspaceMemberRoleError, type UpdateWorkspaceMemberRolePathParams, type UpdateWorkspaceMemberRoleRequestBody, type UpdateWorkspaceMemberRoleVariables, type UpdateWorkspacePathParams, type UpdateWorkspaceVariables, type UploadDestination, type UpsertRecordWithIDError, type UpsertRecordWithIDPathParams, type UpsertRecordWithIDQueryParams, type UpsertRecordWithIDVariables, type ValueAtColumn, type VectorAskOptions, type VectorSearchTableError, type VectorSearchTablePathParams, type VectorSearchTableRequestBody, type VectorSearchTableVariables, XataApiClient, type XataApiClientOptions, XataApiPlugin, type XataArrayFile, XataError, XataFile, XataPlugin, type XataPluginOptions, type XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, 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, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, ge, getAPIKey, getAuthorizationCode, 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, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, getWorkspacesList, grantAuthorizationCode, greaterEquals, greaterThan, greaterThanEquals, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isValidExpandedColumn, isValidSelectableColumns, 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, transformImage, updateBranchMetadata, updateBranchSchema, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };
|