@xata.io/client 0.0.0-alpha.vf8b86c5 → 0.0.0-alpha.vf90263d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-add-version.log +1 -1
- package/.turbo/turbo-build.log +3 -8
- package/CHANGELOG.md +123 -1
- package/dist/index.cjs +473 -281
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +869 -301
- package/dist/index.mjs +452 -281
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -109,6 +109,26 @@ type ErrorWrapper$1<TError> = TError | {
|
|
109
109
|
*
|
110
110
|
* @version 1.0
|
111
111
|
*/
|
112
|
+
type OAuthResponseType = 'code';
|
113
|
+
type OAuthScope = 'admin:all';
|
114
|
+
type AuthorizationCodeResponse = {
|
115
|
+
state?: string;
|
116
|
+
redirectUri?: string;
|
117
|
+
scopes?: OAuthScope[];
|
118
|
+
clientId?: string;
|
119
|
+
/**
|
120
|
+
* @format date-time
|
121
|
+
*/
|
122
|
+
expires?: string;
|
123
|
+
code?: string;
|
124
|
+
};
|
125
|
+
type AuthorizationCodeRequest = {
|
126
|
+
state?: string;
|
127
|
+
redirectUri?: string;
|
128
|
+
scopes?: OAuthScope[];
|
129
|
+
clientId: string;
|
130
|
+
responseType: OAuthResponseType;
|
131
|
+
};
|
112
132
|
type User = {
|
113
133
|
/**
|
114
134
|
* @format email
|
@@ -133,6 +153,31 @@ type DateTime$1 = string;
|
|
133
153
|
* @pattern [a-zA-Z0-9_\-~]*
|
134
154
|
*/
|
135
155
|
type APIKeyName = string;
|
156
|
+
type OAuthClientPublicDetails = {
|
157
|
+
name?: string;
|
158
|
+
description?: string;
|
159
|
+
icon?: string;
|
160
|
+
clientId: string;
|
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;
|
136
181
|
/**
|
137
182
|
* @pattern ^([a-zA-Z0-9][a-zA-Z0-9_\-~]+-)?[a-zA-Z0-9]{6}
|
138
183
|
* @x-go-type auth.WorkspaceID
|
@@ -142,6 +187,7 @@ type WorkspaceID = string;
|
|
142
187
|
* @x-go-type auth.Role
|
143
188
|
*/
|
144
189
|
type Role = 'owner' | 'maintainer';
|
190
|
+
type WorkspacePlan = 'free' | 'pro';
|
145
191
|
type WorkspaceMeta = {
|
146
192
|
name: string;
|
147
193
|
slug?: string;
|
@@ -149,7 +195,7 @@ type WorkspaceMeta = {
|
|
149
195
|
type Workspace = WorkspaceMeta & {
|
150
196
|
id: WorkspaceID;
|
151
197
|
memberCount: number;
|
152
|
-
plan:
|
198
|
+
plan: WorkspacePlan;
|
153
199
|
};
|
154
200
|
type WorkspaceMember = {
|
155
201
|
userId: UserID;
|
@@ -184,6 +230,170 @@ type WorkspaceMembers = {
|
|
184
230
|
* @pattern ^ik_[a-zA-Z0-9]+
|
185
231
|
*/
|
186
232
|
type InviteKey = string;
|
233
|
+
/**
|
234
|
+
* @x-internal true
|
235
|
+
* @pattern [a-zA-Z0-9_-~:]+
|
236
|
+
*/
|
237
|
+
type ClusterID = string;
|
238
|
+
/**
|
239
|
+
* @x-internal true
|
240
|
+
*/
|
241
|
+
type ClusterShortMetadata = {
|
242
|
+
id: ClusterID;
|
243
|
+
state: string;
|
244
|
+
region: string;
|
245
|
+
name: string;
|
246
|
+
/**
|
247
|
+
* @format int64
|
248
|
+
*/
|
249
|
+
branches: number;
|
250
|
+
};
|
251
|
+
/**
|
252
|
+
* @x-internal true
|
253
|
+
*/
|
254
|
+
type ListClustersResponse = {
|
255
|
+
clusters: ClusterShortMetadata[];
|
256
|
+
};
|
257
|
+
/**
|
258
|
+
* @x-internal true
|
259
|
+
*/
|
260
|
+
type AutoscalingConfig = {
|
261
|
+
/**
|
262
|
+
* @format double
|
263
|
+
* @default 2
|
264
|
+
*/
|
265
|
+
minCapacity?: number;
|
266
|
+
/**
|
267
|
+
* @format double
|
268
|
+
* @default 16
|
269
|
+
*/
|
270
|
+
maxCapacity?: number;
|
271
|
+
};
|
272
|
+
/**
|
273
|
+
* @x-internal true
|
274
|
+
*/
|
275
|
+
type WeeklyTimeWindow = {
|
276
|
+
day: 'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun';
|
277
|
+
/**
|
278
|
+
* @maximum 24
|
279
|
+
* @minimum 0
|
280
|
+
*/
|
281
|
+
hour: number;
|
282
|
+
/**
|
283
|
+
* @maximum 60
|
284
|
+
* @minimum 0
|
285
|
+
*/
|
286
|
+
minute: number;
|
287
|
+
/**
|
288
|
+
* @format float
|
289
|
+
* @maximum 23.5
|
290
|
+
* @minimum 0.5
|
291
|
+
*/
|
292
|
+
duration: number;
|
293
|
+
};
|
294
|
+
/**
|
295
|
+
* @x-internal true
|
296
|
+
*/
|
297
|
+
type DailyTimeWindow = {
|
298
|
+
/**
|
299
|
+
* @maximum 24
|
300
|
+
* @minimum 0
|
301
|
+
*/
|
302
|
+
hour: number;
|
303
|
+
/**
|
304
|
+
* @maximum 60
|
305
|
+
* @minimum 0
|
306
|
+
*/
|
307
|
+
minute: number;
|
308
|
+
/**
|
309
|
+
* @format float
|
310
|
+
*/
|
311
|
+
duration: number;
|
312
|
+
};
|
313
|
+
/**
|
314
|
+
* @x-internal true
|
315
|
+
*/
|
316
|
+
type MaintenanceConfig = {
|
317
|
+
/**
|
318
|
+
* @default false
|
319
|
+
*/
|
320
|
+
autoMinorVersionUpgrade?: boolean;
|
321
|
+
/**
|
322
|
+
* @default false
|
323
|
+
*/
|
324
|
+
applyImmediately?: boolean;
|
325
|
+
maintenanceWindow?: WeeklyTimeWindow;
|
326
|
+
backupWindow?: DailyTimeWindow;
|
327
|
+
};
|
328
|
+
/**
|
329
|
+
* @x-internal true
|
330
|
+
*/
|
331
|
+
type ClusterConfiguration = {
|
332
|
+
engineVersion: string;
|
333
|
+
instanceType: string;
|
334
|
+
/**
|
335
|
+
* @format int64
|
336
|
+
*/
|
337
|
+
replicas?: number;
|
338
|
+
/**
|
339
|
+
* @default false
|
340
|
+
*/
|
341
|
+
deletionProtection?: boolean;
|
342
|
+
autoscaling?: AutoscalingConfig;
|
343
|
+
maintenance?: MaintenanceConfig;
|
344
|
+
};
|
345
|
+
/**
|
346
|
+
* @x-internal true
|
347
|
+
*/
|
348
|
+
type ClusterCreateDetails = {
|
349
|
+
/**
|
350
|
+
* @minLength 1
|
351
|
+
*/
|
352
|
+
region: string;
|
353
|
+
/**
|
354
|
+
* @maxLength 63
|
355
|
+
* @minLength 1
|
356
|
+
* @pattern [a-zA-Z0-9_-~:]+
|
357
|
+
*/
|
358
|
+
name: string;
|
359
|
+
configuration: ClusterConfiguration;
|
360
|
+
};
|
361
|
+
/**
|
362
|
+
* @x-internal true
|
363
|
+
*/
|
364
|
+
type ClusterResponse = {
|
365
|
+
state: string;
|
366
|
+
clusterID: string;
|
367
|
+
};
|
368
|
+
/**
|
369
|
+
* @x-internal true
|
370
|
+
*/
|
371
|
+
type ClusterMetadata = {
|
372
|
+
id: ClusterID;
|
373
|
+
state: string;
|
374
|
+
region: string;
|
375
|
+
name: string;
|
376
|
+
/**
|
377
|
+
* @format int64
|
378
|
+
*/
|
379
|
+
branches: number;
|
380
|
+
configuration?: ClusterConfiguration;
|
381
|
+
};
|
382
|
+
/**
|
383
|
+
* @x-internal true
|
384
|
+
*/
|
385
|
+
type ClusterUpdateDetails = {
|
386
|
+
id: ClusterID;
|
387
|
+
/**
|
388
|
+
* @maxLength 63
|
389
|
+
* @minLength 1
|
390
|
+
* @pattern [a-zA-Z0-9_-~:]+
|
391
|
+
*/
|
392
|
+
name?: string;
|
393
|
+
configuration?: ClusterConfiguration;
|
394
|
+
state?: string;
|
395
|
+
region?: string;
|
396
|
+
};
|
187
397
|
/**
|
188
398
|
* Metadata of databases
|
189
399
|
*/
|
@@ -300,6 +510,53 @@ type SimpleError$1 = {
|
|
300
510
|
* @version 1.0
|
301
511
|
*/
|
302
512
|
|
513
|
+
type GetAuthorizationCodeQueryParams = {
|
514
|
+
clientID: string;
|
515
|
+
responseType: OAuthResponseType;
|
516
|
+
redirectUri?: string;
|
517
|
+
scopes?: OAuthScope[];
|
518
|
+
state?: string;
|
519
|
+
};
|
520
|
+
type GetAuthorizationCodeError = ErrorWrapper$1<{
|
521
|
+
status: 400;
|
522
|
+
payload: BadRequestError$1;
|
523
|
+
} | {
|
524
|
+
status: 401;
|
525
|
+
payload: AuthError$1;
|
526
|
+
} | {
|
527
|
+
status: 404;
|
528
|
+
payload: SimpleError$1;
|
529
|
+
} | {
|
530
|
+
status: 409;
|
531
|
+
payload: SimpleError$1;
|
532
|
+
}>;
|
533
|
+
type GetAuthorizationCodeVariables = {
|
534
|
+
queryParams: GetAuthorizationCodeQueryParams;
|
535
|
+
} & ControlPlaneFetcherExtraProps;
|
536
|
+
/**
|
537
|
+
* Creates, stores and returns an authorization code to be used by a third party app. Supporting use of GET is required by OAuth2 spec
|
538
|
+
*/
|
539
|
+
declare const getAuthorizationCode: (variables: GetAuthorizationCodeVariables, signal?: AbortSignal) => Promise<AuthorizationCodeResponse>;
|
540
|
+
type GrantAuthorizationCodeError = ErrorWrapper$1<{
|
541
|
+
status: 400;
|
542
|
+
payload: BadRequestError$1;
|
543
|
+
} | {
|
544
|
+
status: 401;
|
545
|
+
payload: AuthError$1;
|
546
|
+
} | {
|
547
|
+
status: 404;
|
548
|
+
payload: SimpleError$1;
|
549
|
+
} | {
|
550
|
+
status: 409;
|
551
|
+
payload: SimpleError$1;
|
552
|
+
}>;
|
553
|
+
type GrantAuthorizationCodeVariables = {
|
554
|
+
body: AuthorizationCodeRequest;
|
555
|
+
} & ControlPlaneFetcherExtraProps;
|
556
|
+
/**
|
557
|
+
* Creates, stores and returns an authorization code to be used by a third party app
|
558
|
+
*/
|
559
|
+
declare const grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal) => Promise<AuthorizationCodeResponse>;
|
303
560
|
type GetUserError = ErrorWrapper$1<{
|
304
561
|
status: 400;
|
305
562
|
payload: BadRequestError$1;
|
@@ -419,6 +676,115 @@ type DeleteUserAPIKeyVariables = {
|
|
419
676
|
* Delete an existing API key
|
420
677
|
*/
|
421
678
|
declare const deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables, signal?: AbortSignal) => Promise<undefined>;
|
679
|
+
type GetUserOAuthClientsError = ErrorWrapper$1<{
|
680
|
+
status: 400;
|
681
|
+
payload: BadRequestError$1;
|
682
|
+
} | {
|
683
|
+
status: 401;
|
684
|
+
payload: AuthError$1;
|
685
|
+
} | {
|
686
|
+
status: 404;
|
687
|
+
payload: SimpleError$1;
|
688
|
+
}>;
|
689
|
+
type GetUserOAuthClientsResponse = {
|
690
|
+
clients?: OAuthClientPublicDetails[];
|
691
|
+
};
|
692
|
+
type GetUserOAuthClientsVariables = ControlPlaneFetcherExtraProps;
|
693
|
+
/**
|
694
|
+
* Retrieve the list of OAuth Clients that a user has authorized
|
695
|
+
*/
|
696
|
+
declare const getUserOAuthClients: (variables: GetUserOAuthClientsVariables, signal?: AbortSignal) => Promise<GetUserOAuthClientsResponse>;
|
697
|
+
type DeleteUserOAuthClientPathParams = {
|
698
|
+
clientId: OAuthClientID;
|
699
|
+
};
|
700
|
+
type DeleteUserOAuthClientError = ErrorWrapper$1<{
|
701
|
+
status: 400;
|
702
|
+
payload: BadRequestError$1;
|
703
|
+
} | {
|
704
|
+
status: 401;
|
705
|
+
payload: AuthError$1;
|
706
|
+
} | {
|
707
|
+
status: 404;
|
708
|
+
payload: SimpleError$1;
|
709
|
+
}>;
|
710
|
+
type DeleteUserOAuthClientVariables = {
|
711
|
+
pathParams: DeleteUserOAuthClientPathParams;
|
712
|
+
} & ControlPlaneFetcherExtraProps;
|
713
|
+
/**
|
714
|
+
* Delete the oauth client for the user and revoke all access
|
715
|
+
*/
|
716
|
+
declare const deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal) => Promise<undefined>;
|
717
|
+
type GetUserOAuthAccessTokensError = ErrorWrapper$1<{
|
718
|
+
status: 400;
|
719
|
+
payload: BadRequestError$1;
|
720
|
+
} | {
|
721
|
+
status: 401;
|
722
|
+
payload: AuthError$1;
|
723
|
+
} | {
|
724
|
+
status: 404;
|
725
|
+
payload: SimpleError$1;
|
726
|
+
}>;
|
727
|
+
type GetUserOAuthAccessTokensResponse = {
|
728
|
+
accessTokens: OAuthAccessToken[];
|
729
|
+
};
|
730
|
+
type GetUserOAuthAccessTokensVariables = ControlPlaneFetcherExtraProps;
|
731
|
+
/**
|
732
|
+
* Retrieve the list of valid OAuth Access Tokens on the current user's account
|
733
|
+
*/
|
734
|
+
declare const getUserOAuthAccessTokens: (variables: GetUserOAuthAccessTokensVariables, signal?: AbortSignal) => Promise<GetUserOAuthAccessTokensResponse>;
|
735
|
+
type DeleteOAuthAccessTokenPathParams = {
|
736
|
+
token: AccessToken;
|
737
|
+
};
|
738
|
+
type DeleteOAuthAccessTokenError = ErrorWrapper$1<{
|
739
|
+
status: 400;
|
740
|
+
payload: BadRequestError$1;
|
741
|
+
} | {
|
742
|
+
status: 401;
|
743
|
+
payload: AuthError$1;
|
744
|
+
} | {
|
745
|
+
status: 404;
|
746
|
+
payload: SimpleError$1;
|
747
|
+
} | {
|
748
|
+
status: 409;
|
749
|
+
payload: SimpleError$1;
|
750
|
+
}>;
|
751
|
+
type DeleteOAuthAccessTokenVariables = {
|
752
|
+
pathParams: DeleteOAuthAccessTokenPathParams;
|
753
|
+
} & ControlPlaneFetcherExtraProps;
|
754
|
+
/**
|
755
|
+
* Expires the access token for a third party app
|
756
|
+
*/
|
757
|
+
declare const deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<undefined>;
|
758
|
+
type UpdateOAuthAccessTokenPathParams = {
|
759
|
+
token: AccessToken;
|
760
|
+
};
|
761
|
+
type UpdateOAuthAccessTokenError = ErrorWrapper$1<{
|
762
|
+
status: 400;
|
763
|
+
payload: BadRequestError$1;
|
764
|
+
} | {
|
765
|
+
status: 401;
|
766
|
+
payload: AuthError$1;
|
767
|
+
} | {
|
768
|
+
status: 404;
|
769
|
+
payload: SimpleError$1;
|
770
|
+
} | {
|
771
|
+
status: 409;
|
772
|
+
payload: SimpleError$1;
|
773
|
+
}>;
|
774
|
+
type UpdateOAuthAccessTokenRequestBody = {
|
775
|
+
/**
|
776
|
+
* expiration time of the token as a unix timestamp
|
777
|
+
*/
|
778
|
+
expires: number;
|
779
|
+
};
|
780
|
+
type UpdateOAuthAccessTokenVariables = {
|
781
|
+
body: UpdateOAuthAccessTokenRequestBody;
|
782
|
+
pathParams: UpdateOAuthAccessTokenPathParams;
|
783
|
+
} & ControlPlaneFetcherExtraProps;
|
784
|
+
/**
|
785
|
+
* Updates partially the access token for a third party app
|
786
|
+
*/
|
787
|
+
declare const updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal) => Promise<OAuthAccessToken>;
|
422
788
|
type GetWorkspacesListError = ErrorWrapper$1<{
|
423
789
|
status: 400;
|
424
790
|
payload: BadRequestError$1;
|
@@ -435,6 +801,7 @@ type GetWorkspacesListResponse = {
|
|
435
801
|
name: string;
|
436
802
|
slug: string;
|
437
803
|
role: Role;
|
804
|
+
plan: WorkspacePlan;
|
438
805
|
}[];
|
439
806
|
};
|
440
807
|
type GetWorkspacesListVariables = ControlPlaneFetcherExtraProps;
|
@@ -792,6 +1159,99 @@ type ResendWorkspaceMemberInviteVariables = {
|
|
792
1159
|
* This operation provides a way to resend an Invite notification. Invite notifications can only be sent for Invites not yet accepted.
|
793
1160
|
*/
|
794
1161
|
declare const resendWorkspaceMemberInvite: (variables: ResendWorkspaceMemberInviteVariables, signal?: AbortSignal) => Promise<undefined>;
|
1162
|
+
type ListClustersPathParams = {
|
1163
|
+
/**
|
1164
|
+
* Workspace ID
|
1165
|
+
*/
|
1166
|
+
workspaceId: WorkspaceID;
|
1167
|
+
};
|
1168
|
+
type ListClustersError = ErrorWrapper$1<{
|
1169
|
+
status: 400;
|
1170
|
+
payload: BadRequestError$1;
|
1171
|
+
} | {
|
1172
|
+
status: 401;
|
1173
|
+
payload: AuthError$1;
|
1174
|
+
}>;
|
1175
|
+
type ListClustersVariables = {
|
1176
|
+
pathParams: ListClustersPathParams;
|
1177
|
+
} & ControlPlaneFetcherExtraProps;
|
1178
|
+
/**
|
1179
|
+
* List all clusters available in your Workspace.
|
1180
|
+
*/
|
1181
|
+
declare const listClusters: (variables: ListClustersVariables, signal?: AbortSignal) => Promise<ListClustersResponse>;
|
1182
|
+
type CreateClusterPathParams = {
|
1183
|
+
/**
|
1184
|
+
* Workspace ID
|
1185
|
+
*/
|
1186
|
+
workspaceId: WorkspaceID;
|
1187
|
+
};
|
1188
|
+
type CreateClusterError = ErrorWrapper$1<{
|
1189
|
+
status: 400;
|
1190
|
+
payload: BadRequestError$1;
|
1191
|
+
} | {
|
1192
|
+
status: 401;
|
1193
|
+
payload: AuthError$1;
|
1194
|
+
} | {
|
1195
|
+
status: 422;
|
1196
|
+
payload: SimpleError$1;
|
1197
|
+
} | {
|
1198
|
+
status: 423;
|
1199
|
+
payload: SimpleError$1;
|
1200
|
+
}>;
|
1201
|
+
type CreateClusterVariables = {
|
1202
|
+
body: ClusterCreateDetails;
|
1203
|
+
pathParams: CreateClusterPathParams;
|
1204
|
+
} & ControlPlaneFetcherExtraProps;
|
1205
|
+
declare const createCluster: (variables: CreateClusterVariables, signal?: AbortSignal) => Promise<ClusterResponse>;
|
1206
|
+
type GetClusterPathParams = {
|
1207
|
+
/**
|
1208
|
+
* Workspace ID
|
1209
|
+
*/
|
1210
|
+
workspaceId: WorkspaceID;
|
1211
|
+
/**
|
1212
|
+
* Cluster ID
|
1213
|
+
*/
|
1214
|
+
clusterId: ClusterID;
|
1215
|
+
};
|
1216
|
+
type GetClusterError = ErrorWrapper$1<{
|
1217
|
+
status: 400;
|
1218
|
+
payload: BadRequestError$1;
|
1219
|
+
} | {
|
1220
|
+
status: 401;
|
1221
|
+
payload: AuthError$1;
|
1222
|
+
}>;
|
1223
|
+
type GetClusterVariables = {
|
1224
|
+
pathParams: GetClusterPathParams;
|
1225
|
+
} & ControlPlaneFetcherExtraProps;
|
1226
|
+
/**
|
1227
|
+
* Retrieve metadata for given cluster ID
|
1228
|
+
*/
|
1229
|
+
declare const getCluster: (variables: GetClusterVariables, signal?: AbortSignal) => Promise<ClusterMetadata>;
|
1230
|
+
type UpdateClusterPathParams = {
|
1231
|
+
/**
|
1232
|
+
* Workspace ID
|
1233
|
+
*/
|
1234
|
+
workspaceId: WorkspaceID;
|
1235
|
+
/**
|
1236
|
+
* Cluster ID
|
1237
|
+
*/
|
1238
|
+
clusterId: ClusterID;
|
1239
|
+
};
|
1240
|
+
type UpdateClusterError = ErrorWrapper$1<{
|
1241
|
+
status: 400;
|
1242
|
+
payload: BadRequestError$1;
|
1243
|
+
} | {
|
1244
|
+
status: 401;
|
1245
|
+
payload: AuthError$1;
|
1246
|
+
}>;
|
1247
|
+
type UpdateClusterVariables = {
|
1248
|
+
body: ClusterUpdateDetails;
|
1249
|
+
pathParams: UpdateClusterPathParams;
|
1250
|
+
} & ControlPlaneFetcherExtraProps;
|
1251
|
+
/**
|
1252
|
+
* Update cluster for given cluster ID
|
1253
|
+
*/
|
1254
|
+
declare const updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal) => Promise<ClusterMetadata>;
|
795
1255
|
type GetDatabaseListPathParams = {
|
796
1256
|
/**
|
797
1257
|
* Workspace ID
|
@@ -852,6 +1312,13 @@ type CreateDatabaseRequestBody = {
|
|
852
1312
|
* @minLength 1
|
853
1313
|
*/
|
854
1314
|
region: string;
|
1315
|
+
/**
|
1316
|
+
* The dedicated cluster where branches from this database will be created. Defaults to 'xata-cloud'.
|
1317
|
+
*
|
1318
|
+
* @minLength 1
|
1319
|
+
* @x-internal true
|
1320
|
+
*/
|
1321
|
+
defaultClusterID?: string;
|
855
1322
|
ui?: {
|
856
1323
|
color?: string;
|
857
1324
|
};
|
@@ -1106,6 +1573,14 @@ declare const listRegions: (variables: ListRegionsVariables, signal?: AbortSigna
|
|
1106
1573
|
*
|
1107
1574
|
* @version 1.0
|
1108
1575
|
*/
|
1576
|
+
/**
|
1577
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
1578
|
+
*
|
1579
|
+
* @maxLength 511
|
1580
|
+
* @minLength 1
|
1581
|
+
* @pattern [a-zA-Z0-9_\-~]+:[a-zA-Z0-9_\-~]+
|
1582
|
+
*/
|
1583
|
+
type DBBranchName = string;
|
1109
1584
|
/**
|
1110
1585
|
* @maxLength 255
|
1111
1586
|
* @minLength 1
|
@@ -1125,14 +1600,6 @@ type ListBranchesResponse = {
|
|
1125
1600
|
databaseName: string;
|
1126
1601
|
branches: Branch[];
|
1127
1602
|
};
|
1128
|
-
/**
|
1129
|
-
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
1130
|
-
*
|
1131
|
-
* @maxLength 511
|
1132
|
-
* @minLength 1
|
1133
|
-
* @pattern [a-zA-Z0-9_\-~]+:[a-zA-Z0-9_\-~]+
|
1134
|
-
*/
|
1135
|
-
type DBBranchName = string;
|
1136
1603
|
/**
|
1137
1604
|
* @maxLength 255
|
1138
1605
|
* @minLength 1
|
@@ -1181,7 +1648,7 @@ type ColumnFile = {
|
|
1181
1648
|
};
|
1182
1649
|
type Column = {
|
1183
1650
|
name: string;
|
1184
|
-
type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime' | 'vector' | 'file[]' | 'file';
|
1651
|
+
type: 'bool' | 'int' | 'float' | 'string' | 'text' | 'email' | 'multiple' | 'link' | 'object' | 'datetime' | 'vector' | 'file[]' | 'file' | 'json';
|
1185
1652
|
link?: ColumnLink;
|
1186
1653
|
vector?: ColumnVector;
|
1187
1654
|
file?: ColumnFile;
|
@@ -1192,8 +1659,8 @@ type Column = {
|
|
1192
1659
|
columns?: Column[];
|
1193
1660
|
};
|
1194
1661
|
type RevLink = {
|
1195
|
-
linkID: string;
|
1196
1662
|
table: string;
|
1663
|
+
column: string;
|
1197
1664
|
};
|
1198
1665
|
type Table = {
|
1199
1666
|
id?: string;
|
@@ -1315,9 +1782,11 @@ type FilterPredicateOp = {
|
|
1315
1782
|
$gt?: FilterRangeValue;
|
1316
1783
|
$ge?: FilterRangeValue;
|
1317
1784
|
$contains?: string;
|
1785
|
+
$iContains?: string;
|
1318
1786
|
$startsWith?: string;
|
1319
1787
|
$endsWith?: string;
|
1320
1788
|
$pattern?: string;
|
1789
|
+
$iPattern?: string;
|
1321
1790
|
};
|
1322
1791
|
/**
|
1323
1792
|
* @maxProperties 2
|
@@ -2066,12 +2535,6 @@ type SearchPageConfig = {
|
|
2066
2535
|
*/
|
2067
2536
|
offset?: number;
|
2068
2537
|
};
|
2069
|
-
/**
|
2070
|
-
* Xata Table SQL Record
|
2071
|
-
*/
|
2072
|
-
type SQLRecord = {
|
2073
|
-
[key: string]: any;
|
2074
|
-
};
|
2075
2538
|
/**
|
2076
2539
|
* A summary expression is the description of a single summary operation. It consists of a single
|
2077
2540
|
* key representing the operation, and a value representing the column to be operated on.
|
@@ -2168,6 +2631,16 @@ type AverageAgg = {
|
|
2168
2631
|
*/
|
2169
2632
|
column: string;
|
2170
2633
|
};
|
2634
|
+
/**
|
2635
|
+
* Calculate given percentiles of the numeric values in a particular column.
|
2636
|
+
*/
|
2637
|
+
type PercentilesAgg = {
|
2638
|
+
/**
|
2639
|
+
* The column on which to compute the average. Must be a numeric type.
|
2640
|
+
*/
|
2641
|
+
column: string;
|
2642
|
+
percentiles: number[];
|
2643
|
+
};
|
2171
2644
|
/**
|
2172
2645
|
* Count the number of distinct values in a particular column.
|
2173
2646
|
*/
|
@@ -2282,6 +2755,8 @@ type AggExpression = {
|
|
2282
2755
|
min?: MinAgg;
|
2283
2756
|
} | {
|
2284
2757
|
average?: AverageAgg;
|
2758
|
+
} | {
|
2759
|
+
percentiles?: PercentilesAgg;
|
2285
2760
|
} | {
|
2286
2761
|
uniqueCount?: UniqueCountAgg;
|
2287
2762
|
} | {
|
@@ -2297,7 +2772,9 @@ type AggResponse$1 = (number | null) | {
|
|
2297
2772
|
$count: number;
|
2298
2773
|
} & {
|
2299
2774
|
[key: string]: AggResponse$1;
|
2300
|
-
})[]
|
2775
|
+
})[] | {
|
2776
|
+
[key: string]: number;
|
2777
|
+
};
|
2301
2778
|
};
|
2302
2779
|
/**
|
2303
2780
|
* File identifier in access URLs
|
@@ -2311,6 +2788,12 @@ type FileAccessID = string;
|
|
2311
2788
|
* File signature
|
2312
2789
|
*/
|
2313
2790
|
type FileSignature = string;
|
2791
|
+
/**
|
2792
|
+
* Xata Table SQL Record
|
2793
|
+
*/
|
2794
|
+
type SQLRecord = {
|
2795
|
+
[key: string]: any;
|
2796
|
+
};
|
2314
2797
|
/**
|
2315
2798
|
* Xata Table Record Metadata
|
2316
2799
|
*/
|
@@ -2356,6 +2839,10 @@ type SchemaCompareResponse = {
|
|
2356
2839
|
target: Schema;
|
2357
2840
|
edits: SchemaEditScript;
|
2358
2841
|
};
|
2842
|
+
type RateLimitError = {
|
2843
|
+
id?: string;
|
2844
|
+
message: string;
|
2845
|
+
};
|
2359
2846
|
type RecordUpdateResponse = XataRecord$1 | {
|
2360
2847
|
id: string;
|
2361
2848
|
xata: {
|
@@ -2388,14 +2875,10 @@ type ServiceUnavailableError = {
|
|
2388
2875
|
type SearchResponse = {
|
2389
2876
|
records: XataRecord$1[];
|
2390
2877
|
warning?: string;
|
2391
|
-
|
2392
|
-
|
2393
|
-
|
2394
|
-
|
2395
|
-
};
|
2396
|
-
type RateLimitError = {
|
2397
|
-
id?: string;
|
2398
|
-
message: string;
|
2878
|
+
/**
|
2879
|
+
* The total count of records matched. It will be accurately returned up to 10000 records.
|
2880
|
+
*/
|
2881
|
+
totalCount: number;
|
2399
2882
|
};
|
2400
2883
|
type SummarizeResponse = {
|
2401
2884
|
summaries: Record<string, any>[];
|
@@ -2408,6 +2891,18 @@ type AggResponse = {
|
|
2408
2891
|
[key: string]: AggResponse$1;
|
2409
2892
|
};
|
2410
2893
|
};
|
2894
|
+
type SQLResponse = {
|
2895
|
+
records?: SQLRecord[];
|
2896
|
+
/**
|
2897
|
+
* Name of the column and its PostgreSQL type
|
2898
|
+
*/
|
2899
|
+
columns?: Record<string, any>;
|
2900
|
+
/**
|
2901
|
+
* Number of selected columns
|
2902
|
+
*/
|
2903
|
+
total?: number;
|
2904
|
+
warning?: string;
|
2905
|
+
};
|
2411
2906
|
|
2412
2907
|
type DataPlaneFetcherExtraProps = {
|
2413
2908
|
apiUrl: string;
|
@@ -2434,6 +2929,35 @@ type ErrorWrapper<TError> = TError | {
|
|
2434
2929
|
* @version 1.0
|
2435
2930
|
*/
|
2436
2931
|
|
2932
|
+
type ApplyMigrationPathParams = {
|
2933
|
+
/**
|
2934
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
2935
|
+
*/
|
2936
|
+
dbBranchName: DBBranchName;
|
2937
|
+
workspace: string;
|
2938
|
+
region: string;
|
2939
|
+
};
|
2940
|
+
type ApplyMigrationError = ErrorWrapper<{
|
2941
|
+
status: 400;
|
2942
|
+
payload: BadRequestError;
|
2943
|
+
} | {
|
2944
|
+
status: 401;
|
2945
|
+
payload: AuthError;
|
2946
|
+
} | {
|
2947
|
+
status: 404;
|
2948
|
+
payload: SimpleError;
|
2949
|
+
}>;
|
2950
|
+
type ApplyMigrationRequestBody = {
|
2951
|
+
[key: string]: any;
|
2952
|
+
}[];
|
2953
|
+
type ApplyMigrationVariables = {
|
2954
|
+
body?: ApplyMigrationRequestBody;
|
2955
|
+
pathParams: ApplyMigrationPathParams;
|
2956
|
+
} & DataPlaneFetcherExtraProps;
|
2957
|
+
/**
|
2958
|
+
* Applies a pgroll migration to the specified database.
|
2959
|
+
*/
|
2960
|
+
declare const applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal) => Promise<undefined>;
|
2437
2961
|
type GetBranchListPathParams = {
|
2438
2962
|
/**
|
2439
2963
|
* The Database Name
|
@@ -2521,6 +3045,13 @@ type CreateBranchRequestBody = {
|
|
2521
3045
|
* Select the branch to fork from. Defaults to 'main'
|
2522
3046
|
*/
|
2523
3047
|
from?: string;
|
3048
|
+
/**
|
3049
|
+
* Select the dedicated cluster to create on. Defaults to 'xata-cloud'
|
3050
|
+
*
|
3051
|
+
* @minLength 1
|
3052
|
+
* @x-internal true
|
3053
|
+
*/
|
3054
|
+
clusterID?: string;
|
2524
3055
|
metadata?: BranchMetadata;
|
2525
3056
|
};
|
2526
3057
|
type CreateBranchVariables = {
|
@@ -2560,6 +3091,31 @@ type DeleteBranchVariables = {
|
|
2560
3091
|
* Delete the branch in the database and all its resources
|
2561
3092
|
*/
|
2562
3093
|
declare const deleteBranch: (variables: DeleteBranchVariables, signal?: AbortSignal) => Promise<DeleteBranchResponse>;
|
3094
|
+
type GetSchemaPathParams = {
|
3095
|
+
/**
|
3096
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
3097
|
+
*/
|
3098
|
+
dbBranchName: DBBranchName;
|
3099
|
+
workspace: string;
|
3100
|
+
region: string;
|
3101
|
+
};
|
3102
|
+
type GetSchemaError = ErrorWrapper<{
|
3103
|
+
status: 400;
|
3104
|
+
payload: BadRequestError;
|
3105
|
+
} | {
|
3106
|
+
status: 401;
|
3107
|
+
payload: AuthError;
|
3108
|
+
} | {
|
3109
|
+
status: 404;
|
3110
|
+
payload: SimpleError;
|
3111
|
+
}>;
|
3112
|
+
type GetSchemaResponse = {
|
3113
|
+
schema: Record<string, any>;
|
3114
|
+
};
|
3115
|
+
type GetSchemaVariables = {
|
3116
|
+
pathParams: GetSchemaPathParams;
|
3117
|
+
} & DataPlaneFetcherExtraProps;
|
3118
|
+
declare const getSchema: (variables: GetSchemaVariables, signal?: AbortSignal) => Promise<GetSchemaResponse>;
|
2563
3119
|
type CopyBranchPathParams = {
|
2564
3120
|
/**
|
2565
3121
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -3835,6 +4391,9 @@ type BranchTransactionError = ErrorWrapper<{
|
|
3835
4391
|
} | {
|
3836
4392
|
status: 404;
|
3837
4393
|
payload: SimpleError;
|
4394
|
+
} | {
|
4395
|
+
status: 429;
|
4396
|
+
payload: RateLimitError;
|
3838
4397
|
}>;
|
3839
4398
|
type BranchTransactionRequestBody = {
|
3840
4399
|
operations: TransactionOperation$1[];
|
@@ -5187,12 +5746,12 @@ type QueryTableVariables = {
|
|
5187
5746
|
* returned is empty, but `page.meta.cursor` will include a cursor that can be
|
5188
5747
|
* used to "tail" the table from the end waiting for new data to be inserted.
|
5189
5748
|
* - `page.before=end`: This cursor returns the last page.
|
5190
|
-
* - `page.start
|
5749
|
+
* - `page.start=$cursor`: Start at the beginning of the result set of the $cursor query. This is equivalent to querying the
|
5191
5750
|
* first page without a cursor but applying `filter` and `sort` . Yet the `page.start`
|
5192
5751
|
* cursor can be convenient at times as user code does not need to remember the
|
5193
5752
|
* filter, sort, columns or page size configuration. All these information are
|
5194
5753
|
* read from the cursor.
|
5195
|
-
* - `page.end
|
5754
|
+
* - `page.end=$cursor`: Move to the end of the result set of the $cursor query. This is equivalent to querying the
|
5196
5755
|
* last page with `page.before=end`, `filter`, and `sort` . Yet the
|
5197
5756
|
* `page.end` cursor can be more convenient at times as user code does not
|
5198
5757
|
* need to remember the filter, sort, columns or page size configuration. All
|
@@ -5316,53 +5875,6 @@ type SearchTableVariables = {
|
|
5316
5875
|
* * filtering on columns of type `multiple` is currently unsupported
|
5317
5876
|
*/
|
5318
5877
|
declare const searchTable: (variables: SearchTableVariables, signal?: AbortSignal) => Promise<SearchResponse>;
|
5319
|
-
type SqlQueryPathParams = {
|
5320
|
-
/**
|
5321
|
-
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
5322
|
-
*/
|
5323
|
-
dbBranchName: DBBranchName;
|
5324
|
-
workspace: string;
|
5325
|
-
region: string;
|
5326
|
-
};
|
5327
|
-
type SqlQueryError = ErrorWrapper<{
|
5328
|
-
status: 400;
|
5329
|
-
payload: BadRequestError;
|
5330
|
-
} | {
|
5331
|
-
status: 401;
|
5332
|
-
payload: AuthError;
|
5333
|
-
} | {
|
5334
|
-
status: 404;
|
5335
|
-
payload: SimpleError;
|
5336
|
-
} | {
|
5337
|
-
status: 503;
|
5338
|
-
payload: ServiceUnavailableError;
|
5339
|
-
}>;
|
5340
|
-
type SqlQueryRequestBody = {
|
5341
|
-
/**
|
5342
|
-
* The query string.
|
5343
|
-
*
|
5344
|
-
* @minLength 1
|
5345
|
-
*/
|
5346
|
-
query: string;
|
5347
|
-
/**
|
5348
|
-
* The query parameter list.
|
5349
|
-
*/
|
5350
|
-
params?: any[] | null;
|
5351
|
-
/**
|
5352
|
-
* The consistency level for this request.
|
5353
|
-
*
|
5354
|
-
* @default strong
|
5355
|
-
*/
|
5356
|
-
consistency?: 'strong' | 'eventual';
|
5357
|
-
};
|
5358
|
-
type SqlQueryVariables = {
|
5359
|
-
body: SqlQueryRequestBody;
|
5360
|
-
pathParams: SqlQueryPathParams;
|
5361
|
-
} & DataPlaneFetcherExtraProps;
|
5362
|
-
/**
|
5363
|
-
* Run an SQL query across the database branch.
|
5364
|
-
*/
|
5365
|
-
declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse>;
|
5366
5878
|
type VectorSearchTablePathParams = {
|
5367
5879
|
/**
|
5368
5880
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -5454,9 +5966,9 @@ type AskTableResponse = {
|
|
5454
5966
|
*/
|
5455
5967
|
answer: string;
|
5456
5968
|
/**
|
5457
|
-
* The session ID for the chat session.
|
5969
|
+
* The session ID for the chat session.
|
5458
5970
|
*/
|
5459
|
-
|
5971
|
+
sessionId: string;
|
5460
5972
|
};
|
5461
5973
|
type AskTableRequestBody = {
|
5462
5974
|
/**
|
@@ -5464,7 +5976,7 @@ type AskTableRequestBody = {
|
|
5464
5976
|
*
|
5465
5977
|
* @minLength 3
|
5466
5978
|
*/
|
5467
|
-
question
|
5979
|
+
question: string;
|
5468
5980
|
/**
|
5469
5981
|
* The type of search to use. If set to `keyword` (the default), the search can be configured by passing
|
5470
5982
|
* a `search` object with the following fields. For more details about each, see the Search endpoint documentation.
|
@@ -5504,14 +6016,14 @@ type AskTableRequestBody = {
|
|
5504
6016
|
rules?: string[];
|
5505
6017
|
};
|
5506
6018
|
type AskTableVariables = {
|
5507
|
-
body
|
6019
|
+
body: AskTableRequestBody;
|
5508
6020
|
pathParams: AskTablePathParams;
|
5509
6021
|
} & DataPlaneFetcherExtraProps;
|
5510
6022
|
/**
|
5511
6023
|
* Ask your table a question. If the `Accept` header is set to `text/event-stream`, Xata will stream the results back as SSE's.
|
5512
6024
|
*/
|
5513
6025
|
declare const askTable: (variables: AskTableVariables, signal?: AbortSignal) => Promise<AskTableResponse>;
|
5514
|
-
type
|
6026
|
+
type AskTableSessionPathParams = {
|
5515
6027
|
/**
|
5516
6028
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
5517
6029
|
*/
|
@@ -5528,7 +6040,7 @@ type ChatSessionMessagePathParams = {
|
|
5528
6040
|
workspace: string;
|
5529
6041
|
region: string;
|
5530
6042
|
};
|
5531
|
-
type
|
6043
|
+
type AskTableSessionError = ErrorWrapper<{
|
5532
6044
|
status: 400;
|
5533
6045
|
payload: BadRequestError;
|
5534
6046
|
} | {
|
@@ -5544,13 +6056,13 @@ type ChatSessionMessageError = ErrorWrapper<{
|
|
5544
6056
|
status: 503;
|
5545
6057
|
payload: ServiceUnavailableError;
|
5546
6058
|
}>;
|
5547
|
-
type
|
6059
|
+
type AskTableSessionResponse = {
|
5548
6060
|
/**
|
5549
6061
|
* The answer to the input question
|
5550
6062
|
*/
|
5551
|
-
answer
|
6063
|
+
answer: string;
|
5552
6064
|
};
|
5553
|
-
type
|
6065
|
+
type AskTableSessionRequestBody = {
|
5554
6066
|
/**
|
5555
6067
|
* The question you'd like to ask.
|
5556
6068
|
*
|
@@ -5558,14 +6070,14 @@ type ChatSessionMessageRequestBody = {
|
|
5558
6070
|
*/
|
5559
6071
|
message?: string;
|
5560
6072
|
};
|
5561
|
-
type
|
5562
|
-
body?:
|
5563
|
-
pathParams:
|
6073
|
+
type AskTableSessionVariables = {
|
6074
|
+
body?: AskTableSessionRequestBody;
|
6075
|
+
pathParams: AskTableSessionPathParams;
|
5564
6076
|
} & DataPlaneFetcherExtraProps;
|
5565
6077
|
/**
|
5566
6078
|
* Ask a follow-up question. If the `Accept` header is set to `text/event-stream`, Xata will stream the results back as SSE's.
|
5567
6079
|
*/
|
5568
|
-
declare const
|
6080
|
+
declare const askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal) => Promise<AskTableSessionResponse>;
|
5569
6081
|
type SummarizeTablePathParams = {
|
5570
6082
|
/**
|
5571
6083
|
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
@@ -5753,10 +6265,58 @@ type FileAccessVariables = {
|
|
5753
6265
|
/**
|
5754
6266
|
* Retrieve file content by access id
|
5755
6267
|
*/
|
5756
|
-
declare const fileAccess: (variables: FileAccessVariables, signal?: AbortSignal) => Promise<
|
6268
|
+
declare const fileAccess: (variables: FileAccessVariables, signal?: AbortSignal) => Promise<Blob>;
|
6269
|
+
type SqlQueryPathParams = {
|
6270
|
+
/**
|
6271
|
+
* The DBBranchName matches the pattern `{db_name}:{branch_name}`.
|
6272
|
+
*/
|
6273
|
+
dbBranchName: DBBranchName;
|
6274
|
+
workspace: string;
|
6275
|
+
region: string;
|
6276
|
+
};
|
6277
|
+
type SqlQueryError = ErrorWrapper<{
|
6278
|
+
status: 400;
|
6279
|
+
payload: BadRequestError;
|
6280
|
+
} | {
|
6281
|
+
status: 401;
|
6282
|
+
payload: AuthError;
|
6283
|
+
} | {
|
6284
|
+
status: 404;
|
6285
|
+
payload: SimpleError;
|
6286
|
+
} | {
|
6287
|
+
status: 503;
|
6288
|
+
payload: ServiceUnavailableError;
|
6289
|
+
}>;
|
6290
|
+
type SqlQueryRequestBody = {
|
6291
|
+
/**
|
6292
|
+
* The SQL statement.
|
6293
|
+
*
|
6294
|
+
* @minLength 1
|
6295
|
+
*/
|
6296
|
+
statement: string;
|
6297
|
+
/**
|
6298
|
+
* The query parameter list.
|
6299
|
+
*/
|
6300
|
+
params?: any[] | null;
|
6301
|
+
/**
|
6302
|
+
* The consistency level for this request.
|
6303
|
+
*
|
6304
|
+
* @default strong
|
6305
|
+
*/
|
6306
|
+
consistency?: 'strong' | 'eventual';
|
6307
|
+
};
|
6308
|
+
type SqlQueryVariables = {
|
6309
|
+
body: SqlQueryRequestBody;
|
6310
|
+
pathParams: SqlQueryPathParams;
|
6311
|
+
} & DataPlaneFetcherExtraProps;
|
6312
|
+
/**
|
6313
|
+
* Run an SQL query across the database branch.
|
6314
|
+
*/
|
6315
|
+
declare const sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal) => Promise<SQLResponse>;
|
5757
6316
|
|
5758
6317
|
declare const operationsByTag: {
|
5759
6318
|
branch: {
|
6319
|
+
applyMigration: (variables: ApplyMigrationVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
|
5760
6320
|
getBranchList: (variables: GetBranchListVariables, signal?: AbortSignal | undefined) => Promise<ListBranchesResponse>;
|
5761
6321
|
getBranchDetails: (variables: GetBranchDetailsVariables, signal?: AbortSignal | undefined) => Promise<DBBranch>;
|
5762
6322
|
createBranch: (variables: CreateBranchVariables, signal?: AbortSignal | undefined) => Promise<CreateBranchResponse>;
|
@@ -5771,6 +6331,7 @@ declare const operationsByTag: {
|
|
5771
6331
|
resolveBranch: (variables: ResolveBranchVariables, signal?: AbortSignal | undefined) => Promise<ResolveBranchResponse>;
|
5772
6332
|
};
|
5773
6333
|
migrations: {
|
6334
|
+
getSchema: (variables: GetSchemaVariables, signal?: AbortSignal | undefined) => Promise<GetSchemaResponse>;
|
5774
6335
|
getBranchMigrationHistory: (variables: GetBranchMigrationHistoryVariables, signal?: AbortSignal | undefined) => Promise<GetBranchMigrationHistoryResponse>;
|
5775
6336
|
getBranchMigrationPlan: (variables: GetBranchMigrationPlanVariables, signal?: AbortSignal | undefined) => Promise<BranchMigrationPlan>;
|
5776
6337
|
executeBranchMigrationPlan: (variables: ExecuteBranchMigrationPlanVariables, signal?: AbortSignal | undefined) => Promise<SchemaUpdateResponse>;
|
@@ -5821,19 +6382,30 @@ declare const operationsByTag: {
|
|
5821
6382
|
getFile: (variables: GetFileVariables, signal?: AbortSignal | undefined) => Promise<Blob>;
|
5822
6383
|
putFile: (variables: PutFileVariables, signal?: AbortSignal | undefined) => Promise<FileResponse>;
|
5823
6384
|
deleteFile: (variables: DeleteFileVariables, signal?: AbortSignal | undefined) => Promise<FileResponse>;
|
5824
|
-
fileAccess: (variables: FileAccessVariables, signal?: AbortSignal | undefined) => Promise<
|
6385
|
+
fileAccess: (variables: FileAccessVariables, signal?: AbortSignal | undefined) => Promise<Blob>;
|
5825
6386
|
};
|
5826
6387
|
searchAndFilter: {
|
5827
6388
|
queryTable: (variables: QueryTableVariables, signal?: AbortSignal | undefined) => Promise<QueryResponse>;
|
5828
6389
|
searchBranch: (variables: SearchBranchVariables, signal?: AbortSignal | undefined) => Promise<SearchResponse>;
|
5829
6390
|
searchTable: (variables: SearchTableVariables, signal?: AbortSignal | undefined) => Promise<SearchResponse>;
|
5830
|
-
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal | undefined) => Promise<SQLResponse>;
|
5831
6391
|
vectorSearchTable: (variables: VectorSearchTableVariables, signal?: AbortSignal | undefined) => Promise<SearchResponse>;
|
5832
6392
|
askTable: (variables: AskTableVariables, signal?: AbortSignal | undefined) => Promise<AskTableResponse>;
|
5833
|
-
|
6393
|
+
askTableSession: (variables: AskTableSessionVariables, signal?: AbortSignal | undefined) => Promise<AskTableSessionResponse>;
|
5834
6394
|
summarizeTable: (variables: SummarizeTableVariables, signal?: AbortSignal | undefined) => Promise<SummarizeResponse>;
|
5835
6395
|
aggregateTable: (variables: AggregateTableVariables, signal?: AbortSignal | undefined) => Promise<AggResponse>;
|
5836
6396
|
};
|
6397
|
+
sql: {
|
6398
|
+
sqlQuery: (variables: SqlQueryVariables, signal?: AbortSignal | undefined) => Promise<SQLResponse>;
|
6399
|
+
};
|
6400
|
+
oAuth: {
|
6401
|
+
getAuthorizationCode: (variables: GetAuthorizationCodeVariables, signal?: AbortSignal | undefined) => Promise<AuthorizationCodeResponse>;
|
6402
|
+
grantAuthorizationCode: (variables: GrantAuthorizationCodeVariables, signal?: AbortSignal | undefined) => Promise<AuthorizationCodeResponse>;
|
6403
|
+
getUserOAuthClients: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetUserOAuthClientsResponse>;
|
6404
|
+
deleteUserOAuthClient: (variables: DeleteUserOAuthClientVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
|
6405
|
+
getUserOAuthAccessTokens: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<GetUserOAuthAccessTokensResponse>;
|
6406
|
+
deleteOAuthAccessToken: (variables: DeleteOAuthAccessTokenVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
|
6407
|
+
updateOAuthAccessToken: (variables: UpdateOAuthAccessTokenVariables, signal?: AbortSignal | undefined) => Promise<OAuthAccessToken>;
|
6408
|
+
};
|
5837
6409
|
users: {
|
5838
6410
|
getUser: (variables: ControlPlaneFetcherExtraProps, signal?: AbortSignal | undefined) => Promise<UserWithID>;
|
5839
6411
|
updateUser: (variables: UpdateUserVariables, signal?: AbortSignal | undefined) => Promise<UserWithID>;
|
@@ -5861,6 +6433,12 @@ declare const operationsByTag: {
|
|
5861
6433
|
acceptWorkspaceMemberInvite: (variables: AcceptWorkspaceMemberInviteVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
|
5862
6434
|
resendWorkspaceMemberInvite: (variables: ResendWorkspaceMemberInviteVariables, signal?: AbortSignal | undefined) => Promise<undefined>;
|
5863
6435
|
};
|
6436
|
+
xbcontrolOther: {
|
6437
|
+
listClusters: (variables: ListClustersVariables, signal?: AbortSignal | undefined) => Promise<ListClustersResponse>;
|
6438
|
+
createCluster: (variables: CreateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterResponse>;
|
6439
|
+
getCluster: (variables: GetClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterMetadata>;
|
6440
|
+
updateCluster: (variables: UpdateClusterVariables, signal?: AbortSignal | undefined) => Promise<ClusterMetadata>;
|
6441
|
+
};
|
5864
6442
|
databases: {
|
5865
6443
|
getDatabaseList: (variables: GetDatabaseListVariables, signal?: AbortSignal | undefined) => Promise<ListDatabasesResponse>;
|
5866
6444
|
createDatabase: (variables: CreateDatabaseVariables, signal?: AbortSignal | undefined) => Promise<CreateDatabaseResponse>;
|
@@ -5910,31 +6488,16 @@ type responses_ServiceUnavailableError = ServiceUnavailableError;
|
|
5910
6488
|
type responses_SimpleError = SimpleError;
|
5911
6489
|
type responses_SummarizeResponse = SummarizeResponse;
|
5912
6490
|
declare namespace responses {
|
5913
|
-
export {
|
5914
|
-
responses_AggResponse as AggResponse,
|
5915
|
-
responses_AuthError as AuthError,
|
5916
|
-
responses_BadRequestError as BadRequestError,
|
5917
|
-
responses_BranchMigrationPlan as BranchMigrationPlan,
|
5918
|
-
responses_BulkError as BulkError,
|
5919
|
-
responses_BulkInsertResponse as BulkInsertResponse,
|
5920
|
-
responses_PutFileResponse as PutFileResponse,
|
5921
|
-
responses_QueryResponse as QueryResponse,
|
5922
|
-
responses_RateLimitError as RateLimitError,
|
5923
|
-
responses_RecordResponse as RecordResponse,
|
5924
|
-
responses_RecordUpdateResponse as RecordUpdateResponse,
|
5925
|
-
responses_SQLResponse as SQLResponse,
|
5926
|
-
responses_SchemaCompareResponse as SchemaCompareResponse,
|
5927
|
-
responses_SchemaUpdateResponse as SchemaUpdateResponse,
|
5928
|
-
responses_SearchResponse as SearchResponse,
|
5929
|
-
responses_ServiceUnavailableError as ServiceUnavailableError,
|
5930
|
-
responses_SimpleError as SimpleError,
|
5931
|
-
responses_SummarizeResponse as SummarizeResponse,
|
5932
|
-
};
|
6491
|
+
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 };
|
5933
6492
|
}
|
5934
6493
|
|
5935
6494
|
type schemas_APIKeyName = APIKeyName;
|
6495
|
+
type schemas_AccessToken = AccessToken;
|
5936
6496
|
type schemas_AggExpression = AggExpression;
|
5937
6497
|
type schemas_AggExpressionMap = AggExpressionMap;
|
6498
|
+
type schemas_AuthorizationCodeRequest = AuthorizationCodeRequest;
|
6499
|
+
type schemas_AuthorizationCodeResponse = AuthorizationCodeResponse;
|
6500
|
+
type schemas_AutoscalingConfig = AutoscalingConfig;
|
5938
6501
|
type schemas_AverageAgg = AverageAgg;
|
5939
6502
|
type schemas_BoosterExpression = BoosterExpression;
|
5940
6503
|
type schemas_Branch = Branch;
|
@@ -5943,6 +6506,13 @@ type schemas_BranchMigration = BranchMigration;
|
|
5943
6506
|
type schemas_BranchName = BranchName;
|
5944
6507
|
type schemas_BranchOp = BranchOp;
|
5945
6508
|
type schemas_BranchWithCopyID = BranchWithCopyID;
|
6509
|
+
type schemas_ClusterConfiguration = ClusterConfiguration;
|
6510
|
+
type schemas_ClusterCreateDetails = ClusterCreateDetails;
|
6511
|
+
type schemas_ClusterID = ClusterID;
|
6512
|
+
type schemas_ClusterMetadata = ClusterMetadata;
|
6513
|
+
type schemas_ClusterResponse = ClusterResponse;
|
6514
|
+
type schemas_ClusterShortMetadata = ClusterShortMetadata;
|
6515
|
+
type schemas_ClusterUpdateDetails = ClusterUpdateDetails;
|
5946
6516
|
type schemas_Column = Column;
|
5947
6517
|
type schemas_ColumnFile = ColumnFile;
|
5948
6518
|
type schemas_ColumnLink = ColumnLink;
|
@@ -5958,6 +6528,7 @@ type schemas_CountAgg = CountAgg;
|
|
5958
6528
|
type schemas_DBBranch = DBBranch;
|
5959
6529
|
type schemas_DBBranchName = DBBranchName;
|
5960
6530
|
type schemas_DBName = DBName;
|
6531
|
+
type schemas_DailyTimeWindow = DailyTimeWindow;
|
5961
6532
|
type schemas_DataInputRecord = DataInputRecord;
|
5962
6533
|
type schemas_DatabaseGithubSettings = DatabaseGithubSettings;
|
5963
6534
|
type schemas_DatabaseMetadata = DatabaseMetadata;
|
@@ -5985,9 +6556,11 @@ type schemas_InputFileEntry = InputFileEntry;
|
|
5985
6556
|
type schemas_InviteID = InviteID;
|
5986
6557
|
type schemas_InviteKey = InviteKey;
|
5987
6558
|
type schemas_ListBranchesResponse = ListBranchesResponse;
|
6559
|
+
type schemas_ListClustersResponse = ListClustersResponse;
|
5988
6560
|
type schemas_ListDatabasesResponse = ListDatabasesResponse;
|
5989
6561
|
type schemas_ListGitBranchesResponse = ListGitBranchesResponse;
|
5990
6562
|
type schemas_ListRegionsResponse = ListRegionsResponse;
|
6563
|
+
type schemas_MaintenanceConfig = MaintenanceConfig;
|
5991
6564
|
type schemas_MaxAgg = MaxAgg;
|
5992
6565
|
type schemas_MediaType = MediaType;
|
5993
6566
|
type schemas_MetricsDatapoint = MetricsDatapoint;
|
@@ -6002,8 +6575,14 @@ type schemas_MigrationStatus = MigrationStatus;
|
|
6002
6575
|
type schemas_MigrationTableOp = MigrationTableOp;
|
6003
6576
|
type schemas_MinAgg = MinAgg;
|
6004
6577
|
type schemas_NumericHistogramAgg = NumericHistogramAgg;
|
6578
|
+
type schemas_OAuthAccessToken = OAuthAccessToken;
|
6579
|
+
type schemas_OAuthClientID = OAuthClientID;
|
6580
|
+
type schemas_OAuthClientPublicDetails = OAuthClientPublicDetails;
|
6581
|
+
type schemas_OAuthResponseType = OAuthResponseType;
|
6582
|
+
type schemas_OAuthScope = OAuthScope;
|
6005
6583
|
type schemas_ObjectValue = ObjectValue;
|
6006
6584
|
type schemas_PageConfig = PageConfig;
|
6585
|
+
type schemas_PercentilesAgg = PercentilesAgg;
|
6007
6586
|
type schemas_PrefixExpression = PrefixExpression;
|
6008
6587
|
type schemas_ProjectionConfig = ProjectionConfig;
|
6009
6588
|
type schemas_QueryColumnsProjection = QueryColumnsProjection;
|
@@ -6048,143 +6627,16 @@ type schemas_UniqueCountAgg = UniqueCountAgg;
|
|
6048
6627
|
type schemas_User = User;
|
6049
6628
|
type schemas_UserID = UserID;
|
6050
6629
|
type schemas_UserWithID = UserWithID;
|
6630
|
+
type schemas_WeeklyTimeWindow = WeeklyTimeWindow;
|
6051
6631
|
type schemas_Workspace = Workspace;
|
6052
6632
|
type schemas_WorkspaceID = WorkspaceID;
|
6053
6633
|
type schemas_WorkspaceInvite = WorkspaceInvite;
|
6054
6634
|
type schemas_WorkspaceMember = WorkspaceMember;
|
6055
6635
|
type schemas_WorkspaceMembers = WorkspaceMembers;
|
6056
6636
|
type schemas_WorkspaceMeta = WorkspaceMeta;
|
6637
|
+
type schemas_WorkspacePlan = WorkspacePlan;
|
6057
6638
|
declare namespace schemas {
|
6058
|
-
export {
|
6059
|
-
schemas_APIKeyName as APIKeyName,
|
6060
|
-
schemas_AggExpression as AggExpression,
|
6061
|
-
schemas_AggExpressionMap as AggExpressionMap,
|
6062
|
-
AggResponse$1 as AggResponse,
|
6063
|
-
schemas_AverageAgg as AverageAgg,
|
6064
|
-
schemas_BoosterExpression as BoosterExpression,
|
6065
|
-
schemas_Branch as Branch,
|
6066
|
-
schemas_BranchMetadata as BranchMetadata,
|
6067
|
-
schemas_BranchMigration as BranchMigration,
|
6068
|
-
schemas_BranchName as BranchName,
|
6069
|
-
schemas_BranchOp as BranchOp,
|
6070
|
-
schemas_BranchWithCopyID as BranchWithCopyID,
|
6071
|
-
schemas_Column as Column,
|
6072
|
-
schemas_ColumnFile as ColumnFile,
|
6073
|
-
schemas_ColumnLink as ColumnLink,
|
6074
|
-
schemas_ColumnMigration as ColumnMigration,
|
6075
|
-
schemas_ColumnName as ColumnName,
|
6076
|
-
schemas_ColumnOpAdd as ColumnOpAdd,
|
6077
|
-
schemas_ColumnOpRemove as ColumnOpRemove,
|
6078
|
-
schemas_ColumnOpRename as ColumnOpRename,
|
6079
|
-
schemas_ColumnVector as ColumnVector,
|
6080
|
-
schemas_ColumnsProjection as ColumnsProjection,
|
6081
|
-
schemas_Commit as Commit,
|
6082
|
-
schemas_CountAgg as CountAgg,
|
6083
|
-
schemas_DBBranch as DBBranch,
|
6084
|
-
schemas_DBBranchName as DBBranchName,
|
6085
|
-
schemas_DBName as DBName,
|
6086
|
-
schemas_DataInputRecord as DataInputRecord,
|
6087
|
-
schemas_DatabaseGithubSettings as DatabaseGithubSettings,
|
6088
|
-
schemas_DatabaseMetadata as DatabaseMetadata,
|
6089
|
-
DateBooster$1 as DateBooster,
|
6090
|
-
schemas_DateHistogramAgg as DateHistogramAgg,
|
6091
|
-
schemas_DateTime as DateTime,
|
6092
|
-
schemas_FileAccessID as FileAccessID,
|
6093
|
-
schemas_FileItemID as FileItemID,
|
6094
|
-
schemas_FileName as FileName,
|
6095
|
-
schemas_FileResponse as FileResponse,
|
6096
|
-
schemas_FileSignature as FileSignature,
|
6097
|
-
schemas_FilterColumn as FilterColumn,
|
6098
|
-
schemas_FilterColumnIncludes as FilterColumnIncludes,
|
6099
|
-
schemas_FilterExpression as FilterExpression,
|
6100
|
-
schemas_FilterList as FilterList,
|
6101
|
-
schemas_FilterPredicate as FilterPredicate,
|
6102
|
-
schemas_FilterPredicateOp as FilterPredicateOp,
|
6103
|
-
schemas_FilterPredicateRangeOp as FilterPredicateRangeOp,
|
6104
|
-
schemas_FilterRangeValue as FilterRangeValue,
|
6105
|
-
schemas_FilterValue as FilterValue,
|
6106
|
-
schemas_FuzzinessExpression as FuzzinessExpression,
|
6107
|
-
schemas_HighlightExpression as HighlightExpression,
|
6108
|
-
schemas_InputFile as InputFile,
|
6109
|
-
schemas_InputFileArray as InputFileArray,
|
6110
|
-
schemas_InputFileEntry as InputFileEntry,
|
6111
|
-
schemas_InviteID as InviteID,
|
6112
|
-
schemas_InviteKey as InviteKey,
|
6113
|
-
schemas_ListBranchesResponse as ListBranchesResponse,
|
6114
|
-
schemas_ListDatabasesResponse as ListDatabasesResponse,
|
6115
|
-
schemas_ListGitBranchesResponse as ListGitBranchesResponse,
|
6116
|
-
schemas_ListRegionsResponse as ListRegionsResponse,
|
6117
|
-
schemas_MaxAgg as MaxAgg,
|
6118
|
-
schemas_MediaType as MediaType,
|
6119
|
-
schemas_MetricsDatapoint as MetricsDatapoint,
|
6120
|
-
schemas_MetricsLatency as MetricsLatency,
|
6121
|
-
schemas_Migration as Migration,
|
6122
|
-
schemas_MigrationColumnOp as MigrationColumnOp,
|
6123
|
-
schemas_MigrationObject as MigrationObject,
|
6124
|
-
schemas_MigrationOp as MigrationOp,
|
6125
|
-
schemas_MigrationRequest as MigrationRequest,
|
6126
|
-
schemas_MigrationRequestNumber as MigrationRequestNumber,
|
6127
|
-
schemas_MigrationStatus as MigrationStatus,
|
6128
|
-
schemas_MigrationTableOp as MigrationTableOp,
|
6129
|
-
schemas_MinAgg as MinAgg,
|
6130
|
-
NumericBooster$1 as NumericBooster,
|
6131
|
-
schemas_NumericHistogramAgg as NumericHistogramAgg,
|
6132
|
-
schemas_ObjectValue as ObjectValue,
|
6133
|
-
schemas_PageConfig as PageConfig,
|
6134
|
-
schemas_PrefixExpression as PrefixExpression,
|
6135
|
-
schemas_ProjectionConfig as ProjectionConfig,
|
6136
|
-
schemas_QueryColumnsProjection as QueryColumnsProjection,
|
6137
|
-
schemas_RecordID as RecordID,
|
6138
|
-
schemas_RecordMeta as RecordMeta,
|
6139
|
-
schemas_RecordsMetadata as RecordsMetadata,
|
6140
|
-
schemas_Region as Region,
|
6141
|
-
schemas_RevLink as RevLink,
|
6142
|
-
schemas_Role as Role,
|
6143
|
-
schemas_SQLRecord as SQLRecord,
|
6144
|
-
schemas_Schema as Schema,
|
6145
|
-
schemas_SchemaEditScript as SchemaEditScript,
|
6146
|
-
schemas_SearchPageConfig as SearchPageConfig,
|
6147
|
-
schemas_SortExpression as SortExpression,
|
6148
|
-
schemas_SortOrder as SortOrder,
|
6149
|
-
schemas_StartedFromMetadata as StartedFromMetadata,
|
6150
|
-
schemas_SumAgg as SumAgg,
|
6151
|
-
schemas_SummaryExpression as SummaryExpression,
|
6152
|
-
schemas_SummaryExpressionList as SummaryExpressionList,
|
6153
|
-
schemas_Table as Table,
|
6154
|
-
schemas_TableMigration as TableMigration,
|
6155
|
-
schemas_TableName as TableName,
|
6156
|
-
schemas_TableOpAdd as TableOpAdd,
|
6157
|
-
schemas_TableOpRemove as TableOpRemove,
|
6158
|
-
schemas_TableOpRename as TableOpRename,
|
6159
|
-
schemas_TableRename as TableRename,
|
6160
|
-
schemas_TargetExpression as TargetExpression,
|
6161
|
-
schemas_TopValuesAgg as TopValuesAgg,
|
6162
|
-
schemas_TransactionDeleteOp as TransactionDeleteOp,
|
6163
|
-
schemas_TransactionError as TransactionError,
|
6164
|
-
schemas_TransactionFailure as TransactionFailure,
|
6165
|
-
schemas_TransactionGetOp as TransactionGetOp,
|
6166
|
-
schemas_TransactionInsertOp as TransactionInsertOp,
|
6167
|
-
TransactionOperation$1 as TransactionOperation,
|
6168
|
-
schemas_TransactionResultColumns as TransactionResultColumns,
|
6169
|
-
schemas_TransactionResultDelete as TransactionResultDelete,
|
6170
|
-
schemas_TransactionResultGet as TransactionResultGet,
|
6171
|
-
schemas_TransactionResultInsert as TransactionResultInsert,
|
6172
|
-
schemas_TransactionResultUpdate as TransactionResultUpdate,
|
6173
|
-
schemas_TransactionSuccess as TransactionSuccess,
|
6174
|
-
schemas_TransactionUpdateOp as TransactionUpdateOp,
|
6175
|
-
schemas_UniqueCountAgg as UniqueCountAgg,
|
6176
|
-
schemas_User as User,
|
6177
|
-
schemas_UserID as UserID,
|
6178
|
-
schemas_UserWithID as UserWithID,
|
6179
|
-
ValueBooster$1 as ValueBooster,
|
6180
|
-
schemas_Workspace as Workspace,
|
6181
|
-
schemas_WorkspaceID as WorkspaceID,
|
6182
|
-
schemas_WorkspaceInvite as WorkspaceInvite,
|
6183
|
-
schemas_WorkspaceMember as WorkspaceMember,
|
6184
|
-
schemas_WorkspaceMembers as WorkspaceMembers,
|
6185
|
-
schemas_WorkspaceMeta as WorkspaceMeta,
|
6186
|
-
XataRecord$1 as XataRecord,
|
6187
|
-
};
|
6639
|
+
export type { schemas_APIKeyName as APIKeyName, schemas_AccessToken as AccessToken, schemas_AggExpression as AggExpression, schemas_AggExpressionMap as AggExpressionMap, AggResponse$1 as AggResponse, schemas_AuthorizationCodeRequest as AuthorizationCodeRequest, schemas_AuthorizationCodeResponse as AuthorizationCodeResponse, schemas_AutoscalingConfig as AutoscalingConfig, schemas_AverageAgg as AverageAgg, schemas_BoosterExpression as BoosterExpression, schemas_Branch as Branch, schemas_BranchMetadata as BranchMetadata, schemas_BranchMigration as BranchMigration, schemas_BranchName as BranchName, schemas_BranchOp as BranchOp, schemas_BranchWithCopyID as BranchWithCopyID, schemas_ClusterConfiguration as ClusterConfiguration, schemas_ClusterCreateDetails as ClusterCreateDetails, schemas_ClusterID as ClusterID, schemas_ClusterMetadata as ClusterMetadata, schemas_ClusterResponse as ClusterResponse, schemas_ClusterShortMetadata as ClusterShortMetadata, schemas_ClusterUpdateDetails as ClusterUpdateDetails, schemas_Column as Column, schemas_ColumnFile as ColumnFile, schemas_ColumnLink as ColumnLink, schemas_ColumnMigration as ColumnMigration, schemas_ColumnName as ColumnName, schemas_ColumnOpAdd as ColumnOpAdd, schemas_ColumnOpRemove as ColumnOpRemove, schemas_ColumnOpRename as ColumnOpRename, schemas_ColumnVector as ColumnVector, schemas_ColumnsProjection as ColumnsProjection, schemas_Commit as Commit, schemas_CountAgg as CountAgg, schemas_DBBranch as DBBranch, schemas_DBBranchName as DBBranchName, schemas_DBName as DBName, schemas_DailyTimeWindow as DailyTimeWindow, schemas_DataInputRecord as DataInputRecord, schemas_DatabaseGithubSettings as DatabaseGithubSettings, schemas_DatabaseMetadata as DatabaseMetadata, DateBooster$1 as DateBooster, schemas_DateHistogramAgg as DateHistogramAgg, 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_ListClustersResponse as ListClustersResponse, schemas_ListDatabasesResponse as ListDatabasesResponse, schemas_ListGitBranchesResponse as ListGitBranchesResponse, schemas_ListRegionsResponse as ListRegionsResponse, schemas_MaintenanceConfig as MaintenanceConfig, schemas_MaxAgg as MaxAgg, schemas_MediaType as MediaType, schemas_MetricsDatapoint as MetricsDatapoint, schemas_MetricsLatency as MetricsLatency, schemas_Migration as Migration, schemas_MigrationColumnOp as MigrationColumnOp, schemas_MigrationObject as MigrationObject, schemas_MigrationOp as MigrationOp, schemas_MigrationRequest as MigrationRequest, schemas_MigrationRequestNumber as MigrationRequestNumber, 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_PercentilesAgg as PercentilesAgg, schemas_PrefixExpression as PrefixExpression, schemas_ProjectionConfig as ProjectionConfig, schemas_QueryColumnsProjection as QueryColumnsProjection, schemas_RecordID as RecordID, schemas_RecordMeta as RecordMeta, schemas_RecordsMetadata as RecordsMetadata, schemas_Region as Region, schemas_RevLink as RevLink, schemas_Role as Role, schemas_SQLRecord as SQLRecord, schemas_Schema as Schema, schemas_SchemaEditScript as SchemaEditScript, schemas_SearchPageConfig as SearchPageConfig, schemas_SortExpression as SortExpression, schemas_SortOrder as SortOrder, schemas_StartedFromMetadata as StartedFromMetadata, schemas_SumAgg as SumAgg, schemas_SummaryExpression as SummaryExpression, schemas_SummaryExpressionList as SummaryExpressionList, schemas_Table as Table, schemas_TableMigration as TableMigration, schemas_TableName as TableName, schemas_TableOpAdd as TableOpAdd, schemas_TableOpRemove as TableOpRemove, schemas_TableOpRename as TableOpRename, schemas_TableRename as TableRename, schemas_TargetExpression as TargetExpression, schemas_TopValuesAgg as TopValuesAgg, schemas_TransactionDeleteOp as TransactionDeleteOp, schemas_TransactionError as TransactionError, schemas_TransactionFailure as TransactionFailure, schemas_TransactionGetOp as TransactionGetOp, schemas_TransactionInsertOp as TransactionInsertOp, TransactionOperation$1 as TransactionOperation, schemas_TransactionResultColumns as TransactionResultColumns, schemas_TransactionResultDelete as TransactionResultDelete, schemas_TransactionResultGet as TransactionResultGet, schemas_TransactionResultInsert as TransactionResultInsert, schemas_TransactionResultUpdate as TransactionResultUpdate, schemas_TransactionSuccess as TransactionSuccess, schemas_TransactionUpdateOp as TransactionUpdateOp, schemas_UniqueCountAgg as UniqueCountAgg, schemas_User as User, schemas_UserID as UserID, schemas_UserWithID as UserWithID, ValueBooster$1 as ValueBooster, schemas_WeeklyTimeWindow as WeeklyTimeWindow, schemas_Workspace as Workspace, schemas_WorkspaceID as WorkspaceID, schemas_WorkspaceInvite as WorkspaceInvite, schemas_WorkspaceMember as WorkspaceMember, schemas_WorkspaceMembers as WorkspaceMembers, schemas_WorkspaceMeta as WorkspaceMeta, schemas_WorkspacePlan as WorkspacePlan, XataRecord$1 as XataRecord };
|
6188
6640
|
}
|
6189
6641
|
|
6190
6642
|
type ApiExtraProps = Omit<FetcherExtraProps, 'endpoint'>;
|
@@ -6665,7 +7117,7 @@ declare class SearchAndFilterApi {
|
|
6665
7117
|
table: TableName;
|
6666
7118
|
options: AskTableRequestBody;
|
6667
7119
|
}): Promise<AskTableResponse>;
|
6668
|
-
|
7120
|
+
askTableSession({ workspace, region, database, branch, table, sessionId, message }: {
|
6669
7121
|
workspace: WorkspaceID;
|
6670
7122
|
region: string;
|
6671
7123
|
database: DBName;
|
@@ -6673,7 +7125,7 @@ declare class SearchAndFilterApi {
|
|
6673
7125
|
table: TableName;
|
6674
7126
|
sessionId: string;
|
6675
7127
|
message: string;
|
6676
|
-
}): Promise<
|
7128
|
+
}): Promise<AskTableSessionResponse>;
|
6677
7129
|
summarizeTable({ workspace, region, database, branch, table, filter, columns, summaries, sort, summariesFilter, page, consistency }: {
|
6678
7130
|
workspace: WorkspaceID;
|
6679
7131
|
region: string;
|
@@ -6973,6 +7425,11 @@ interface ImageTransformations {
|
|
6973
7425
|
* ignored.
|
6974
7426
|
*/
|
6975
7427
|
contrast?: number;
|
7428
|
+
/**
|
7429
|
+
* Download file. Forces browser to download the image.
|
7430
|
+
* Value is used for the download file name. Extension is optional.
|
7431
|
+
*/
|
7432
|
+
download?: string;
|
6976
7433
|
/**
|
6977
7434
|
* Device Pixel Ratio. Default 1. Multiplier for width/height that makes it
|
6978
7435
|
* easier to specify higher-DPI sizes in <img srcset>.
|
@@ -7088,98 +7545,133 @@ interface ImageTransformations {
|
|
7088
7545
|
*/
|
7089
7546
|
width?: number;
|
7090
7547
|
}
|
7548
|
+
declare function transformImage(url: string, ...transformations: ImageTransformations[]): string;
|
7549
|
+
declare function transformImage(url: string | undefined, ...transformations: ImageTransformations[]): string | undefined;
|
7091
7550
|
|
7092
7551
|
type XataFileEditableFields = Partial<Pick<XataArrayFile, keyof InputFileEntry>>;
|
7552
|
+
type XataFileFields = Partial<Pick<XataArrayFile, {
|
7553
|
+
[K in StringKeys<XataArrayFile>]: XataArrayFile[K] extends Function ? never : K;
|
7554
|
+
}[keyof XataArrayFile]>>;
|
7093
7555
|
declare class XataFile {
|
7094
7556
|
/**
|
7095
|
-
*
|
7557
|
+
* Identifier of the file.
|
7096
7558
|
*/
|
7097
|
-
|
7559
|
+
id?: string;
|
7560
|
+
/**
|
7561
|
+
* Name of the file.
|
7562
|
+
*/
|
7563
|
+
name: string;
|
7098
7564
|
/**
|
7099
|
-
* Media type of
|
7565
|
+
* Media type of the file.
|
7100
7566
|
*/
|
7101
7567
|
mediaType: string;
|
7102
7568
|
/**
|
7103
|
-
* Base64 encoded content of
|
7569
|
+
* Base64 encoded content of the file.
|
7104
7570
|
*/
|
7105
7571
|
base64Content?: string;
|
7106
7572
|
/**
|
7107
|
-
* Whether to enable public url for
|
7573
|
+
* Whether to enable public url for the file.
|
7108
7574
|
*/
|
7109
|
-
enablePublicUrl
|
7575
|
+
enablePublicUrl: boolean;
|
7110
7576
|
/**
|
7111
7577
|
* Timeout for the signed url.
|
7112
7578
|
*/
|
7113
|
-
signedUrlTimeout
|
7579
|
+
signedUrlTimeout: number;
|
7114
7580
|
/**
|
7115
|
-
* Size of
|
7581
|
+
* Size of the file.
|
7116
7582
|
*/
|
7117
7583
|
size?: number;
|
7118
7584
|
/**
|
7119
|
-
* Version of
|
7585
|
+
* Version of the file.
|
7120
7586
|
*/
|
7121
|
-
version
|
7587
|
+
version: number;
|
7122
7588
|
/**
|
7123
|
-
* Url of
|
7589
|
+
* Url of the file.
|
7124
7590
|
*/
|
7125
|
-
url
|
7591
|
+
url: string;
|
7126
7592
|
/**
|
7127
|
-
* Signed url of
|
7593
|
+
* Signed url of the file.
|
7128
7594
|
*/
|
7129
7595
|
signedUrl?: string;
|
7130
7596
|
/**
|
7131
|
-
* Attributes of
|
7597
|
+
* Attributes of the file.
|
7132
7598
|
*/
|
7133
|
-
attributes
|
7599
|
+
attributes: Record<string, any>;
|
7134
7600
|
constructor(file: Partial<XataFile>);
|
7135
|
-
static fromBuffer(buffer: Buffer, options?: XataFileEditableFields):
|
7601
|
+
static fromBuffer(buffer: Buffer, options?: XataFileEditableFields): XataFile;
|
7136
7602
|
toBuffer(): Buffer;
|
7137
|
-
static fromArrayBuffer(arrayBuffer: ArrayBuffer, options?: XataFileEditableFields):
|
7603
|
+
static fromArrayBuffer(arrayBuffer: ArrayBuffer, options?: XataFileEditableFields): XataFile;
|
7138
7604
|
toArrayBuffer(): ArrayBuffer;
|
7139
|
-
static fromUint8Array(uint8Array: Uint8Array, options?: XataFileEditableFields):
|
7605
|
+
static fromUint8Array(uint8Array: Uint8Array, options?: XataFileEditableFields): XataFile;
|
7140
7606
|
toUint8Array(): Uint8Array;
|
7141
7607
|
static fromBlob(file: Blob, options?: XataFileEditableFields): Promise<XataFile>;
|
7142
7608
|
toBlob(): Blob;
|
7143
|
-
static fromString(string: string, options?: XataFileEditableFields):
|
7609
|
+
static fromString(string: string, options?: XataFileEditableFields): XataFile;
|
7144
7610
|
toString(): string;
|
7145
|
-
static fromBase64(base64Content: string, options?: XataFileEditableFields):
|
7611
|
+
static fromBase64(base64Content: string, options?: XataFileEditableFields): XataFile;
|
7146
7612
|
toBase64(): string;
|
7147
7613
|
transform(...options: ImageTransformations[]): {
|
7148
|
-
url: string
|
7614
|
+
url: string;
|
7149
7615
|
signedUrl: string | undefined;
|
7616
|
+
metadataUrl: string;
|
7617
|
+
metadataSignedUrl: string | undefined;
|
7150
7618
|
};
|
7151
7619
|
}
|
7152
7620
|
type XataArrayFile = Identifiable & XataFile;
|
7153
7621
|
|
7154
7622
|
type SelectableColumn<O, RecursivePath extends any[] = []> = '*' | 'id' | `xata.${'version' | 'createdAt' | 'updatedAt'}` | DataProps<O> | NestedColumns<O, RecursivePath>;
|
7623
|
+
type ExpandedColumnNotation = {
|
7624
|
+
name: string;
|
7625
|
+
columns?: SelectableColumn<any>[];
|
7626
|
+
as?: string;
|
7627
|
+
limit?: number;
|
7628
|
+
offset?: number;
|
7629
|
+
order?: {
|
7630
|
+
column: string;
|
7631
|
+
order: 'asc' | 'desc';
|
7632
|
+
}[];
|
7633
|
+
};
|
7634
|
+
type SelectableColumnWithObjectNotation<O, RecursivePath extends any[] = []> = SelectableColumn<O, RecursivePath> | ExpandedColumnNotation;
|
7635
|
+
declare function isValidExpandedColumn(column: any): column is ExpandedColumnNotation;
|
7636
|
+
declare function isValidSelectableColumns(columns: any): columns is SelectableColumn<any>[];
|
7637
|
+
type StringColumns<T> = T extends string ? T : never;
|
7638
|
+
type ProjectionColumns<T> = T extends string ? never : T extends {
|
7639
|
+
as: infer As;
|
7640
|
+
} ? NonNullable<As> extends string ? NonNullable<As> : never : never;
|
7155
7641
|
type WildcardColumns<O> = Values<{
|
7156
7642
|
[K in SelectableColumn<O>]: K extends `${string}*` ? K : never;
|
7157
7643
|
}>;
|
7158
7644
|
type ColumnsByValue<O, Value> = Values<{
|
7159
7645
|
[K in SelectableColumn<O>]: ValueAtColumn<O, K> extends infer C ? C extends Value ? K extends WildcardColumns<O> ? never : K : never : never;
|
7160
7646
|
}>;
|
7161
|
-
type SelectedPick<O extends XataRecord, Key extends
|
7162
|
-
[K in Key[number]]: NestedValueAtColumn<O, K> & XataRecord<O>;
|
7647
|
+
type SelectedPick<O extends XataRecord, Key extends SelectableColumnWithObjectNotation<O>[]> = XataRecord<O> & UnionToIntersection<Values<{
|
7648
|
+
[K in StringColumns<Key[number]>]: NestedValueAtColumn<O, K> & XataRecord<O>;
|
7649
|
+
}>> & UnionToIntersection<Values<{
|
7650
|
+
[K in ProjectionColumns<Key[number]>]: {
|
7651
|
+
[Key in K]: {
|
7652
|
+
records: (Record<string, any> & XataRecord<O>)[];
|
7653
|
+
};
|
7654
|
+
};
|
7163
7655
|
}>>;
|
7164
|
-
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> ? {
|
7165
|
-
V: ValueAtColumn<Item, V>;
|
7656
|
+
type ValueAtColumn<Object, Key, RecursivePath extends any[] = []> = RecursivePath['length'] extends MAX_RECURSION ? never : 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> ? {
|
7657
|
+
V: ValueAtColumn<Item, V, [...RecursivePath, Item]>;
|
7166
7658
|
} : never : Object[K] : never> : never : never;
|
7167
|
-
type MAX_RECURSION =
|
7659
|
+
type MAX_RECURSION = 3;
|
7168
7660
|
type NestedColumns<O, RecursivePath extends any[]> = RecursivePath['length'] extends MAX_RECURSION ? never : If<IsObject<O>, Values<{
|
7169
|
-
[K in DataProps<O>]: NonNullable<O[K]> extends infer Item ? If<IsArray<Item>, Item extends (infer Type)[] ? Type extends XataArrayFile ? K | `${K}.${keyof
|
7661
|
+
[K in DataProps<O>]: NonNullable<O[K]> extends infer Item ? If<IsArray<Item>, Item extends (infer Type)[] ? Type extends XataArrayFile ? K | `${K}.${keyof XataFileFields | '*'}` : 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 XataFileFields | '*'}` : `${K}.${StringKeys<Item> | '*'}`, // This allows usage of objects that are not links
|
7170
7662
|
K>> : never;
|
7171
7663
|
}>, never>;
|
7172
7664
|
type DataProps<O> = Exclude<StringKeys<O>, StringKeys<XataRecord>>;
|
7173
7665
|
type NestedValueAtColumn<O, Key extends SelectableColumn<O>> = Key extends `${infer N}.${infer M}` ? N extends DataProps<O> ? {
|
7174
7666
|
[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;
|
7175
7667
|
} : unknown : Key extends DataProps<O> ? {
|
7176
|
-
[K in Key]: NonNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], SelectedPick<NonNullable<O[K]>, ['*']>> : O[K];
|
7668
|
+
[K in Key]: NonNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], Omit<SelectedPick<NonNullable<O[K]>, ['*']>, 'xata' | 'getMetadata'>> : O[K];
|
7177
7669
|
} : Key extends '*' ? {
|
7178
7670
|
[K in StringKeys<O>]: NonNullable<O[K]> extends XataRecord ? ForwardNullable<O[K], Link<NonNullable<O[K]>>> : O[K];
|
7179
7671
|
} : unknown;
|
7180
7672
|
type ForwardNullable<T, R> = T extends NonNullable<T> ? R : R | null;
|
7181
7673
|
|
7182
|
-
declare const RecordColumnTypes: readonly ["bool", "int", "float", "string", "text", "email", "multiple", "link", "object", "datetime", "vector", "file[]", "file"];
|
7674
|
+
declare const RecordColumnTypes: readonly ["bool", "int", "float", "string", "text", "email", "multiple", "link", "object", "datetime", "vector", "file[]", "file", "json"];
|
7183
7675
|
type Identifier = string;
|
7184
7676
|
/**
|
7185
7677
|
* Represents an identifiable record from the database.
|
@@ -7302,7 +7794,7 @@ type NumericOperator = ExclusiveOr<{
|
|
7302
7794
|
}, {
|
7303
7795
|
$divide?: number;
|
7304
7796
|
}>>>;
|
7305
|
-
type InputXataFile = Partial<
|
7797
|
+
type InputXataFile = Partial<XataArrayFile> | Promise<Partial<XataArrayFile>>;
|
7306
7798
|
type EditableDataFields<T> = T extends XataRecord ? {
|
7307
7799
|
id: Identifier;
|
7308
7800
|
} | Identifier : NonNullable<T> extends XataRecord ? {
|
@@ -7311,7 +7803,10 @@ type EditableDataFields<T> = T extends XataRecord ? {
|
|
7311
7803
|
type EditableData<O extends XataRecord> = Identifiable & Partial<Omit<{
|
7312
7804
|
[K in keyof O]: EditableDataFields<O[K]>;
|
7313
7805
|
}, keyof XataRecord>>;
|
7314
|
-
type
|
7806
|
+
type JSONDataFile = {
|
7807
|
+
[K in keyof XataFile]: XataFile[K] extends Function ? never : XataFile[K];
|
7808
|
+
};
|
7809
|
+
type JSONDataFields<T> = T extends XataFile ? JSONDataFile : NonNullable<T> extends XataFile ? JSONDataFile | null | undefined : T extends XataRecord ? JSONData<T> : NonNullable<T> extends XataRecord ? JSONData<T> | null | undefined : T extends Date ? string : NonNullable<T> extends Date ? string | null | undefined : T;
|
7315
7810
|
type JSONDataBase = Identifiable & {
|
7316
7811
|
/**
|
7317
7812
|
* Metadata about the record.
|
@@ -7335,7 +7830,15 @@ type JSONData<O> = JSONDataBase & Partial<Omit<{
|
|
7335
7830
|
[K in keyof O]: JSONDataFields<O[K]>;
|
7336
7831
|
}, keyof XataRecord>>;
|
7337
7832
|
|
7833
|
+
type JSONValue<Value> = Value & {
|
7834
|
+
__json: true;
|
7835
|
+
};
|
7836
|
+
|
7837
|
+
type JSONFilterColumns<Record> = Values<{
|
7838
|
+
[K in keyof Record]: NonNullable<Record[K]> extends JSONValue<any> ? K extends string ? `${K}->${string}` : never : never;
|
7839
|
+
}>;
|
7338
7840
|
type FilterColumns<T> = ColumnsByValue<T, any> | `xata.${keyof XataRecordMetadata}`;
|
7841
|
+
type FilterValueAtColumn<Record, F> = NonNullable<ValueAtColumn<Record, F>> extends JSONValue<any> ? PropertyFilter<any> : Filter<NonNullable<ValueAtColumn<Record, F>>>;
|
7339
7842
|
/**
|
7340
7843
|
* PropertyMatchFilter
|
7341
7844
|
* Example:
|
@@ -7356,6 +7859,8 @@ type FilterColumns<T> = ColumnsByValue<T, any> | `xata.${keyof XataRecordMetadat
|
|
7356
7859
|
*/
|
7357
7860
|
type PropertyAccessFilter<Record> = {
|
7358
7861
|
[key in FilterColumns<Record>]?: NestedApiFilter<ValueAtColumn<Record, key>> | PropertyFilter<ValueAtColumn<Record, key>>;
|
7862
|
+
} & {
|
7863
|
+
[key in JSONFilterColumns<Record>]?: PropertyFilter<Record[keyof Record]>;
|
7359
7864
|
};
|
7360
7865
|
type PropertyFilter<T> = T | {
|
7361
7866
|
$is: T;
|
@@ -7372,7 +7877,7 @@ type IncludesFilter<T> = PropertyFilter<T> | {
|
|
7372
7877
|
}>;
|
7373
7878
|
};
|
7374
7879
|
type StringTypeFilter = {
|
7375
|
-
[key in '$contains' | '$pattern' | '$startsWith' | '$endsWith']?: string;
|
7880
|
+
[key in '$contains' | '$iContains' | '$pattern' | '$iPattern' | '$startsWith' | '$endsWith']?: string;
|
7376
7881
|
};
|
7377
7882
|
type ComparableType = number | Date;
|
7378
7883
|
type ComparableTypeFilter<T extends ComparableType> = {
|
@@ -7541,15 +8046,20 @@ type SearchOptions<Schemas extends Record<string, BaseData>, Tables extends Stri
|
|
7541
8046
|
}>>;
|
7542
8047
|
page?: SearchPageConfig;
|
7543
8048
|
};
|
8049
|
+
type TotalCount = Pick<SearchResponse, 'totalCount'>;
|
7544
8050
|
type SearchPluginResult<Schemas extends Record<string, BaseData>> = {
|
7545
|
-
all: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<
|
7546
|
-
|
7547
|
-
|
7548
|
-
|
8051
|
+
all: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<TotalCount & {
|
8052
|
+
records: Values<{
|
8053
|
+
[Model in ExtractTables<Schemas, Tables, GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>>]: {
|
8054
|
+
table: Model;
|
8055
|
+
record: Awaited<SearchXataRecord<SelectedPick<Schemas[Model] & XataRecord, ['*']>>>;
|
8056
|
+
};
|
8057
|
+
}>[];
|
8058
|
+
}>;
|
8059
|
+
byTable: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<TotalCount & {
|
8060
|
+
records: {
|
8061
|
+
[Model in ExtractTables<Schemas, Tables, GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>>]?: Awaited<SearchXataRecord<SelectedPick<Schemas[Model] & XataRecord, ['*']>>[]>;
|
7549
8062
|
};
|
7550
|
-
}>[]>;
|
7551
|
-
byTable: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<{
|
7552
|
-
[Model in ExtractTables<Schemas, Tables, GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>>]?: Awaited<SearchXataRecord<SelectedPick<Schemas[Model] & XataRecord, ['*']>>[]>;
|
7553
8063
|
}>;
|
7554
8064
|
};
|
7555
8065
|
declare class SearchPlugin<Schemas extends Record<string, XataRecord>> extends XataPlugin {
|
@@ -7584,6 +8094,7 @@ type AggregationExpression<O extends XataRecord> = ExactlyOne<{
|
|
7584
8094
|
max: MaxAggregation<O>;
|
7585
8095
|
min: MinAggregation<O>;
|
7586
8096
|
average: AverageAggregation<O>;
|
8097
|
+
percentiles: PercentilesAggregation<O>;
|
7587
8098
|
uniqueCount: UniqueCountAggregation<O>;
|
7588
8099
|
dateHistogram: DateHistogramAggregation<O>;
|
7589
8100
|
topValues: TopValuesAggregation<O>;
|
@@ -7638,6 +8149,16 @@ type AverageAggregation<O extends XataRecord> = {
|
|
7638
8149
|
*/
|
7639
8150
|
column: ColumnsByValue<O, number>;
|
7640
8151
|
};
|
8152
|
+
/**
|
8153
|
+
* Calculate given percentiles of the numeric values in a particular column.
|
8154
|
+
*/
|
8155
|
+
type PercentilesAggregation<O extends XataRecord> = {
|
8156
|
+
/**
|
8157
|
+
* The column on which to compute the average. Must be a numeric type.
|
8158
|
+
*/
|
8159
|
+
column: ColumnsByValue<O, number>;
|
8160
|
+
percentiles: number[];
|
8161
|
+
};
|
7641
8162
|
/**
|
7642
8163
|
* Count the number of distinct values in a particular column.
|
7643
8164
|
*/
|
@@ -7733,6 +8254,11 @@ type AggregationExpressionResultTypes = {
|
|
7733
8254
|
max: number | null;
|
7734
8255
|
min: number | null;
|
7735
8256
|
average: number | null;
|
8257
|
+
percentiles: {
|
8258
|
+
values: {
|
8259
|
+
[key: string]: number;
|
8260
|
+
};
|
8261
|
+
};
|
7736
8262
|
uniqueCount: number;
|
7737
8263
|
dateHistogram: ComplexAggregationResult;
|
7738
8264
|
topValues: ComplexAggregationResult;
|
@@ -7747,7 +8273,7 @@ type ComplexAggregationResult = {
|
|
7747
8273
|
};
|
7748
8274
|
|
7749
8275
|
type KeywordAskOptions<Record extends XataRecord> = {
|
7750
|
-
searchType
|
8276
|
+
searchType?: 'keyword';
|
7751
8277
|
search?: {
|
7752
8278
|
fuzziness?: FuzzinessExpression;
|
7753
8279
|
target?: TargetColumn<Record>[];
|
@@ -7757,7 +8283,7 @@ type KeywordAskOptions<Record extends XataRecord> = {
|
|
7757
8283
|
};
|
7758
8284
|
};
|
7759
8285
|
type VectorAskOptions<Record extends XataRecord> = {
|
7760
|
-
searchType
|
8286
|
+
searchType?: 'vector';
|
7761
8287
|
vectorSearch?: {
|
7762
8288
|
/**
|
7763
8289
|
* The column to use for vector search. It must be of type `vector`.
|
@@ -7773,11 +8299,13 @@ type VectorAskOptions<Record extends XataRecord> = {
|
|
7773
8299
|
type TypeAskOptions<Record extends XataRecord> = KeywordAskOptions<Record> | VectorAskOptions<Record>;
|
7774
8300
|
type BaseAskOptions = {
|
7775
8301
|
rules?: string[];
|
8302
|
+
sessionId?: string;
|
7776
8303
|
};
|
7777
8304
|
type AskOptions<Record extends XataRecord> = TypeAskOptions<Record> & BaseAskOptions;
|
7778
8305
|
type AskResult = {
|
7779
8306
|
answer?: string;
|
7780
8307
|
records?: string[];
|
8308
|
+
sessionId?: string;
|
7781
8309
|
};
|
7782
8310
|
|
7783
8311
|
type SortDirection = 'asc' | 'desc';
|
@@ -7836,7 +8364,7 @@ type SummarizeFilter<Record extends XataRecord, Expression extends Dictionary<Su
|
|
7836
8364
|
type SummarizeResultItem<Record extends XataRecord, Expression extends Dictionary<SummarizeExpression<Record>>, Columns extends SelectableColumn<Record>[]> = SummarizeValuePick<Record, Expression> & SelectedPick<Record, Columns>;
|
7837
8365
|
|
7838
8366
|
type BaseOptions<T extends XataRecord> = {
|
7839
|
-
columns?:
|
8367
|
+
columns?: SelectableColumnWithObjectNotation<T>[];
|
7840
8368
|
consistency?: 'strong' | 'eventual';
|
7841
8369
|
cache?: number;
|
7842
8370
|
fetchOptions?: Record<string, unknown>;
|
@@ -7904,7 +8432,7 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
7904
8432
|
* @param value The value to filter.
|
7905
8433
|
* @returns A new Query object.
|
7906
8434
|
*/
|
7907
|
-
filter<F extends
|
8435
|
+
filter<F extends FilterColumns<Record> | JSONFilterColumns<Record>>(column: F, value: FilterValueAtColumn<Record, F>): Query<Record, Result>;
|
7908
8436
|
/**
|
7909
8437
|
* Builds a new query object adding one or more constraints. Examples:
|
7910
8438
|
*
|
@@ -7925,15 +8453,15 @@ declare class Query<Record extends XataRecord, Result extends XataRecord = Recor
|
|
7925
8453
|
* @param direction The direction. Either ascending or descending.
|
7926
8454
|
* @returns A new Query object.
|
7927
8455
|
*/
|
7928
|
-
sort<F extends
|
8456
|
+
sort<F extends SortColumns<Record>>(column: F, direction: SortDirection): Query<Record, Result>;
|
7929
8457
|
sort(column: '*', direction: 'random'): Query<Record, Result>;
|
7930
|
-
sort<F extends
|
8458
|
+
sort<F extends SortColumns<Record>>(column: F): Query<Record, Result>;
|
7931
8459
|
/**
|
7932
8460
|
* Builds a new query specifying the set of columns to be returned in the query response.
|
7933
8461
|
* @param columns Array of column names to be returned by the query.
|
7934
8462
|
* @returns A new Query object.
|
7935
8463
|
*/
|
7936
|
-
select<K extends
|
8464
|
+
select<K extends SelectableColumnWithObjectNotation<Record>>(columns: K[]): Query<Record, SelectedPick<Record, K[]>>;
|
7937
8465
|
/**
|
7938
8466
|
* Get paginated results
|
7939
8467
|
*
|
@@ -8177,9 +8705,9 @@ type OffsetNavigationOptions = {
|
|
8177
8705
|
size?: number;
|
8178
8706
|
offset?: number;
|
8179
8707
|
};
|
8180
|
-
declare const PAGINATION_MAX_SIZE =
|
8708
|
+
declare const PAGINATION_MAX_SIZE = 1000;
|
8181
8709
|
declare const PAGINATION_DEFAULT_SIZE = 20;
|
8182
|
-
declare const PAGINATION_MAX_OFFSET =
|
8710
|
+
declare const PAGINATION_MAX_OFFSET = 49000;
|
8183
8711
|
declare const PAGINATION_DEFAULT_OFFSET = 0;
|
8184
8712
|
declare function isCursorPaginationOptions(options: Record<string, unknown> | undefined | null): options is CursorNavigationOptions;
|
8185
8713
|
declare class RecordArray<Result extends XataRecord> extends Array<Result> {
|
@@ -8714,7 +9242,9 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
|
|
8714
9242
|
boosters?: Boosters<Record>[];
|
8715
9243
|
page?: SearchPageConfig;
|
8716
9244
|
target?: TargetColumn<Record>[];
|
8717
|
-
}): Promise<
|
9245
|
+
}): Promise<{
|
9246
|
+
records: SearchXataRecord<SelectedPick<Record, ['*']>>[];
|
9247
|
+
} & TotalCount>;
|
8718
9248
|
/**
|
8719
9249
|
* Search for vectors in the table.
|
8720
9250
|
* @param column The column to search for.
|
@@ -8738,7 +9268,9 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
|
|
8738
9268
|
*/
|
8739
9269
|
size?: number;
|
8740
9270
|
filter?: Filter<Record>;
|
8741
|
-
}): Promise<
|
9271
|
+
}): Promise<{
|
9272
|
+
records: SearchXataRecord<SelectedPick<Record, ['*']>>[];
|
9273
|
+
} & TotalCount>;
|
8742
9274
|
/**
|
8743
9275
|
* Aggregates records in the table.
|
8744
9276
|
* @param expression The aggregations to perform.
|
@@ -8750,6 +9282,10 @@ declare abstract class Repository<Record extends XataRecord> extends Query<Recor
|
|
8750
9282
|
* Experimental: Ask the database to perform a natural language question.
|
8751
9283
|
*/
|
8752
9284
|
abstract ask(question: string, options?: AskOptions<Record>): Promise<AskResult>;
|
9285
|
+
/**
|
9286
|
+
* Experimental: Ask the database to perform a natural language question.
|
9287
|
+
*/
|
9288
|
+
abstract ask(question: string, options: AskOptions<Record>): Promise<AskResult>;
|
8753
9289
|
/**
|
8754
9290
|
* Experimental: Ask the database to perform a natural language question.
|
8755
9291
|
*/
|
@@ -8876,15 +9412,22 @@ declare class RestRepository<Record extends XataRecord> extends Query<Record, Se
|
|
8876
9412
|
boosters?: Boosters<Record>[];
|
8877
9413
|
page?: SearchPageConfig;
|
8878
9414
|
target?: TargetColumn<Record>[];
|
8879
|
-
}): Promise<
|
9415
|
+
}): Promise<{
|
9416
|
+
records: any;
|
9417
|
+
totalCount: number;
|
9418
|
+
}>;
|
8880
9419
|
vectorSearch<F extends ColumnsByValue<Record, number[]>>(column: F, query: number[], options?: {
|
8881
9420
|
similarityFunction?: string | undefined;
|
8882
9421
|
size?: number | undefined;
|
8883
9422
|
filter?: Filter<Record> | undefined;
|
8884
|
-
} | undefined): Promise<
|
9423
|
+
} | undefined): Promise<{
|
9424
|
+
records: SearchXataRecord<SelectedPick<Record, ['*']>>[];
|
9425
|
+
} & TotalCount>;
|
8885
9426
|
aggregate<Expression extends Dictionary<AggregationExpression<Record>>>(aggs?: Expression, filter?: Filter<Record>): Promise<any>;
|
8886
9427
|
query<Result extends XataRecord>(query: Query<Record, Result>): Promise<Page<Record, Result>>;
|
8887
|
-
summarizeTable<Result extends XataRecord>(query: Query<Record, Result>, summaries?: Dictionary<SummarizeExpression<Record>>, summariesFilter?: FilterExpression): Promise<
|
9428
|
+
summarizeTable<Result extends XataRecord>(query: Query<Record, Result>, summaries?: Dictionary<SummarizeExpression<Record>>, summariesFilter?: FilterExpression): Promise<{
|
9429
|
+
summaries: Record[];
|
9430
|
+
}>;
|
8888
9431
|
ask(question: string, options?: AskOptions<Record> & {
|
8889
9432
|
onMessage?: (message: AskResult) => void;
|
8890
9433
|
}): any;
|
@@ -8943,7 +9486,7 @@ type PropertyType<Tables, Properties, PropertyName extends PropertyKey> = Proper
|
|
8943
9486
|
} : {
|
8944
9487
|
[K in PropertyName]?: InnerType<Type, ObjectColumns, Tables, LinkedTable> | null;
|
8945
9488
|
} : never : never;
|
8946
|
-
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 {
|
9489
|
+
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 {
|
8947
9490
|
name: string;
|
8948
9491
|
type: string;
|
8949
9492
|
} ? UnionToIntersection<Values<{
|
@@ -9018,6 +9561,10 @@ declare const endsWith: (value: string) => StringTypeFilter;
|
|
9018
9561
|
* Operator to restrict results to only values that match the given pattern.
|
9019
9562
|
*/
|
9020
9563
|
declare const pattern: (value: string) => StringTypeFilter;
|
9564
|
+
/**
|
9565
|
+
* Operator to restrict results to only values that match the given pattern (case insensitive).
|
9566
|
+
*/
|
9567
|
+
declare const iPattern: (value: string) => StringTypeFilter;
|
9021
9568
|
/**
|
9022
9569
|
* Operator to restrict results to only values that are equal to the given value.
|
9023
9570
|
*/
|
@@ -9034,6 +9581,10 @@ declare const isNot: <T>(value: T) => PropertyFilter<T>;
|
|
9034
9581
|
* Operator to restrict results to only values that contain the given value.
|
9035
9582
|
*/
|
9036
9583
|
declare const contains: (value: string) => StringTypeFilter;
|
9584
|
+
/**
|
9585
|
+
* Operator to restrict results to only values that contain the given value (case insensitive).
|
9586
|
+
*/
|
9587
|
+
declare const iContains: (value: string) => StringTypeFilter;
|
9037
9588
|
/**
|
9038
9589
|
* Operator to restrict results if some array items match the predicate.
|
9039
9590
|
*/
|
@@ -9063,10 +9614,12 @@ declare class SchemaPlugin<Schemas extends Record<string, XataRecord>> extends X
|
|
9063
9614
|
build(pluginOptions: XataPluginOptions): SchemaPluginResult<Schemas>;
|
9064
9615
|
}
|
9065
9616
|
|
9066
|
-
type BinaryFile = string | Blob | ArrayBuffer
|
9617
|
+
type BinaryFile = string | Blob | ArrayBuffer | XataFile | Promise<XataFile>;
|
9067
9618
|
type FilesPluginResult<Schemas extends Record<string, BaseData>> = {
|
9068
9619
|
download: <Tables extends StringKeys<Schemas>>(location: DownloadDestination<Schemas, Tables>) => Promise<Blob>;
|
9069
|
-
upload: <Tables extends StringKeys<Schemas>>(location: UploadDestination<Schemas, Tables>, file: BinaryFile
|
9620
|
+
upload: <Tables extends StringKeys<Schemas>>(location: UploadDestination<Schemas, Tables>, file: BinaryFile, options?: {
|
9621
|
+
mediaType?: string;
|
9622
|
+
}) => Promise<FileResponse>;
|
9070
9623
|
delete: <Tables extends StringKeys<Schemas>>(location: DownloadDestination<Schemas, Tables>) => Promise<FileResponse>;
|
9071
9624
|
};
|
9072
9625
|
type UploadDestination<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = Values<{
|
@@ -9097,6 +9650,20 @@ declare class FilesPlugin<Schemas extends Record<string, XataRecord>> extends Xa
|
|
9097
9650
|
build(pluginOptions: XataPluginOptions): FilesPluginResult<Schemas>;
|
9098
9651
|
}
|
9099
9652
|
|
9653
|
+
type SQLQueryParams<T = any[]> = {
|
9654
|
+
statement: string;
|
9655
|
+
params?: T;
|
9656
|
+
consistency?: 'strong' | 'eventual';
|
9657
|
+
};
|
9658
|
+
type SQLQuery = TemplateStringsArray | SQLQueryParams | string;
|
9659
|
+
type SQLPluginResult = <T>(query: SQLQuery, ...parameters: any[]) => Promise<{
|
9660
|
+
records: T[];
|
9661
|
+
warning?: string;
|
9662
|
+
}>;
|
9663
|
+
declare class SQLPlugin extends XataPlugin {
|
9664
|
+
build(pluginOptions: XataPluginOptions): SQLPluginResult;
|
9665
|
+
}
|
9666
|
+
|
9100
9667
|
type TransactionOperation<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = {
|
9101
9668
|
insert: Values<{
|
9102
9669
|
[Model in GetArrayInnerType<NonNullable<Tables[]>>]: {
|
@@ -9197,6 +9764,7 @@ interface ClientConstructor<Plugins extends Record<string, XataPlugin>> {
|
|
9197
9764
|
db: Awaited<ReturnType<SchemaPlugin<Schemas>['build']>>;
|
9198
9765
|
search: Awaited<ReturnType<SearchPlugin<Schemas>['build']>>;
|
9199
9766
|
transactions: Awaited<ReturnType<TransactionPlugin<Schemas>['build']>>;
|
9767
|
+
sql: Awaited<ReturnType<SQLPlugin['build']>>;
|
9200
9768
|
files: Awaited<ReturnType<FilesPlugin<Schemas>['build']>>;
|
9201
9769
|
}, keyof Plugins> & {
|
9202
9770
|
[Key in StringKeys<NonNullable<Plugins>>]: Awaited<ReturnType<NonNullable<Plugins>[Key]['build']>>;
|
@@ -9321,4 +9889,4 @@ declare class XataError extends Error {
|
|
9321
9889
|
constructor(message: string, status: number);
|
9322
9890
|
}
|
9323
9891
|
|
9324
|
-
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, ChatSessionMessageError, ChatSessionMessagePathParams, ChatSessionMessageRequestBody, ChatSessionMessageResponse, ChatSessionMessageVariables, 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, 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, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, chatSessionMessage, 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 };
|
9892
|
+
export { type AcceptWorkspaceMemberInviteError, type AcceptWorkspaceMemberInvitePathParams, type AcceptWorkspaceMemberInviteVariables, type AddGitBranchesEntryError, type AddGitBranchesEntryPathParams, type AddGitBranchesEntryRequestBody, type AddGitBranchesEntryResponse, type AddGitBranchesEntryVariables, type AddTableColumnError, type AddTableColumnPathParams, type AddTableColumnVariables, type AggregateTableError, type AggregateTablePathParams, type AggregateTableRequestBody, type AggregateTableVariables, type ApiExtraProps, type ApplyBranchSchemaEditError, type ApplyBranchSchemaEditPathParams, type ApplyBranchSchemaEditRequestBody, type ApplyBranchSchemaEditVariables, type ApplyMigrationError, type ApplyMigrationPathParams, type ApplyMigrationRequestBody, type ApplyMigrationVariables, type AskOptions, type AskResult, type AskTableError, type AskTablePathParams, type AskTableRequestBody, type AskTableResponse, type AskTableSessionError, type AskTableSessionPathParams, type AskTableSessionRequestBody, type AskTableSessionResponse, type AskTableSessionVariables, type AskTableVariables, BaseClient, type BaseClientOptions, type BaseData, type BaseSchema, type BinaryFile, type BranchTransactionError, type BranchTransactionPathParams, type BranchTransactionRequestBody, type BranchTransactionVariables, type BulkInsertTableRecordsError, type BulkInsertTableRecordsPathParams, type BulkInsertTableRecordsQueryParams, type BulkInsertTableRecordsRequestBody, type BulkInsertTableRecordsVariables, type CacheImpl, type CancelWorkspaceMemberInviteError, type CancelWorkspaceMemberInvitePathParams, type CancelWorkspaceMemberInviteVariables, type ClientConstructor, type ColumnsByValue, type CompareBranchSchemasError, type CompareBranchSchemasPathParams, type CompareBranchSchemasRequestBody, type CompareBranchSchemasVariables, type CompareBranchWithUserSchemaError, type CompareBranchWithUserSchemaPathParams, type CompareBranchWithUserSchemaRequestBody, type CompareBranchWithUserSchemaVariables, type CompareMigrationRequestError, type CompareMigrationRequestPathParams, type CompareMigrationRequestVariables, type CopyBranchError, type CopyBranchPathParams, type CopyBranchRequestBody, type CopyBranchVariables, type CreateBranchError, type CreateBranchPathParams, type CreateBranchQueryParams, type CreateBranchRequestBody, type CreateBranchResponse, type CreateBranchVariables, type CreateClusterError, type CreateClusterPathParams, type CreateClusterVariables, type CreateDatabaseError, type CreateDatabasePathParams, type CreateDatabaseRequestBody, type CreateDatabaseResponse, type CreateDatabaseVariables, type CreateMigrationRequestError, type CreateMigrationRequestPathParams, type CreateMigrationRequestRequestBody, type CreateMigrationRequestResponse, type CreateMigrationRequestVariables, type CreateTableError, type CreateTablePathParams, type CreateTableResponse, type CreateTableVariables, type CreateUserAPIKeyError, type CreateUserAPIKeyPathParams, type CreateUserAPIKeyResponse, type CreateUserAPIKeyVariables, type CreateWorkspaceError, type CreateWorkspaceVariables, type CursorNavigationOptions, type DeleteBranchError, type DeleteBranchPathParams, type DeleteBranchResponse, type DeleteBranchVariables, type DeleteColumnError, type DeleteColumnPathParams, type DeleteColumnVariables, type DeleteDatabaseError, type DeleteDatabaseGithubSettingsError, type DeleteDatabaseGithubSettingsPathParams, type DeleteDatabaseGithubSettingsVariables, type DeleteDatabasePathParams, type DeleteDatabaseResponse, type DeleteDatabaseVariables, type DeleteFileError, type DeleteFileItemError, type DeleteFileItemPathParams, type DeleteFileItemVariables, type DeleteFilePathParams, type DeleteFileVariables, type DeleteOAuthAccessTokenError, type DeleteOAuthAccessTokenPathParams, type DeleteOAuthAccessTokenVariables, type DeleteRecordError, type DeleteRecordPathParams, type DeleteRecordQueryParams, type DeleteRecordVariables, type DeleteTableError, type DeleteTablePathParams, type DeleteTableResponse, type DeleteTableVariables, type DeleteTransactionOperation, type DeleteUserAPIKeyError, type DeleteUserAPIKeyPathParams, type DeleteUserAPIKeyVariables, type DeleteUserError, type DeleteUserOAuthClientError, type DeleteUserOAuthClientPathParams, type DeleteUserOAuthClientVariables, type DeleteUserVariables, type DeleteWorkspaceError, type DeleteWorkspacePathParams, type DeleteWorkspaceVariables, type DeserializedType, type DownloadDestination, type EditableData, type ExecuteBranchMigrationPlanError, type ExecuteBranchMigrationPlanPathParams, type ExecuteBranchMigrationPlanRequestBody, type ExecuteBranchMigrationPlanVariables, type FetchImpl, FetcherError, type FetcherExtraProps, type FileAccessError, type FileAccessPathParams, type FileAccessQueryParams, type FileAccessVariables, FilesPlugin, type FilesPluginResult, type GetAuthorizationCodeError, type GetAuthorizationCodeQueryParams, type GetAuthorizationCodeVariables, type GetBranchDetailsError, type GetBranchDetailsPathParams, type GetBranchDetailsVariables, type GetBranchListError, type GetBranchListPathParams, type GetBranchListVariables, type GetBranchMetadataError, type GetBranchMetadataPathParams, type GetBranchMetadataVariables, type GetBranchMigrationHistoryError, type GetBranchMigrationHistoryPathParams, type GetBranchMigrationHistoryRequestBody, type GetBranchMigrationHistoryResponse, type GetBranchMigrationHistoryVariables, type GetBranchMigrationPlanError, type GetBranchMigrationPlanPathParams, type GetBranchMigrationPlanVariables, type GetBranchSchemaHistoryError, type GetBranchSchemaHistoryPathParams, type GetBranchSchemaHistoryRequestBody, type GetBranchSchemaHistoryResponse, type GetBranchSchemaHistoryVariables, type GetBranchStatsError, type GetBranchStatsPathParams, type GetBranchStatsResponse, type GetBranchStatsVariables, type GetClusterError, type GetClusterPathParams, type GetClusterVariables, type GetColumnError, type GetColumnPathParams, type GetColumnVariables, type GetDatabaseGithubSettingsError, type GetDatabaseGithubSettingsPathParams, type GetDatabaseGithubSettingsVariables, type GetDatabaseListError, type GetDatabaseListPathParams, type GetDatabaseListVariables, type GetDatabaseMetadataError, type GetDatabaseMetadataPathParams, type GetDatabaseMetadataVariables, type GetFileError, type GetFileItemError, type GetFileItemPathParams, type GetFileItemVariables, type GetFilePathParams, type GetFileVariables, type GetGitBranchesMappingError, type GetGitBranchesMappingPathParams, type GetGitBranchesMappingVariables, type GetMigrationRequestError, type GetMigrationRequestIsMergedError, type GetMigrationRequestIsMergedPathParams, type GetMigrationRequestIsMergedResponse, type GetMigrationRequestIsMergedVariables, type GetMigrationRequestPathParams, type GetMigrationRequestVariables, type GetRecordError, type GetRecordPathParams, type GetRecordQueryParams, type GetRecordVariables, type GetSchemaError, type GetSchemaPathParams, type GetSchemaResponse, type GetSchemaVariables, type GetTableColumnsError, type GetTableColumnsPathParams, type GetTableColumnsResponse, type GetTableColumnsVariables, type GetTableSchemaError, type GetTableSchemaPathParams, type GetTableSchemaResponse, type GetTableSchemaVariables, type GetUserAPIKeysError, type GetUserAPIKeysResponse, type GetUserAPIKeysVariables, type GetUserError, type GetUserOAuthAccessTokensError, type GetUserOAuthAccessTokensResponse, type GetUserOAuthAccessTokensVariables, type GetUserOAuthClientsError, type GetUserOAuthClientsResponse, type GetUserOAuthClientsVariables, type GetUserVariables, type GetWorkspaceError, type GetWorkspaceMembersListError, type GetWorkspaceMembersListPathParams, type GetWorkspaceMembersListVariables, type GetWorkspacePathParams, type GetWorkspaceVariables, type GetWorkspacesListError, type GetWorkspacesListResponse, type GetWorkspacesListVariables, type GrantAuthorizationCodeError, type GrantAuthorizationCodeVariables, type HostProvider, type Identifiable, type ImageTransformations, type InsertRecordError, type InsertRecordPathParams, type InsertRecordQueryParams, type InsertRecordVariables, type InsertRecordWithIDError, type InsertRecordWithIDPathParams, type InsertRecordWithIDQueryParams, type InsertRecordWithIDVariables, type InsertTransactionOperation, type InviteWorkspaceMemberError, type InviteWorkspaceMemberPathParams, type InviteWorkspaceMemberRequestBody, type InviteWorkspaceMemberVariables, type JSONData, type KeywordAskOptions, type Link, type ListClustersError, type ListClustersPathParams, type ListClustersVariables, type ListMigrationRequestsCommitsError, type ListMigrationRequestsCommitsPathParams, type ListMigrationRequestsCommitsRequestBody, type ListMigrationRequestsCommitsResponse, type ListMigrationRequestsCommitsVariables, type ListRegionsError, type ListRegionsPathParams, type ListRegionsVariables, type MergeMigrationRequestError, type MergeMigrationRequestPathParams, type MergeMigrationRequestVariables, type OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, type Paginable, type PaginationQueryMeta, type 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 TotalCount, type TransactionOperation, TransactionPlugin, type TransactionPluginResult, type TransactionResults, type UpdateBranchMetadataError, type UpdateBranchMetadataPathParams, type UpdateBranchMetadataVariables, type UpdateBranchSchemaError, type UpdateBranchSchemaPathParams, type UpdateBranchSchemaVariables, type UpdateClusterError, type UpdateClusterPathParams, type UpdateClusterVariables, type UpdateColumnError, type UpdateColumnPathParams, type UpdateColumnRequestBody, type UpdateColumnVariables, type UpdateDatabaseGithubSettingsError, type UpdateDatabaseGithubSettingsPathParams, type UpdateDatabaseGithubSettingsVariables, type UpdateDatabaseMetadataError, type UpdateDatabaseMetadataPathParams, type UpdateDatabaseMetadataRequestBody, type UpdateDatabaseMetadataVariables, type UpdateMigrationRequestError, type UpdateMigrationRequestPathParams, type UpdateMigrationRequestRequestBody, type UpdateMigrationRequestVariables, type UpdateOAuthAccessTokenError, type UpdateOAuthAccessTokenPathParams, type UpdateOAuthAccessTokenRequestBody, type UpdateOAuthAccessTokenVariables, type UpdateRecordWithIDError, type UpdateRecordWithIDPathParams, type UpdateRecordWithIDQueryParams, type UpdateRecordWithIDVariables, type UpdateTableError, type UpdateTablePathParams, type UpdateTableRequestBody, type UpdateTableVariables, type UpdateTransactionOperation, type UpdateUserError, type UpdateUserVariables, type UpdateWorkspaceError, type UpdateWorkspaceMemberInviteError, type UpdateWorkspaceMemberInvitePathParams, type UpdateWorkspaceMemberInviteRequestBody, type UpdateWorkspaceMemberInviteVariables, type UpdateWorkspaceMemberRoleError, type UpdateWorkspaceMemberRolePathParams, type UpdateWorkspaceMemberRoleRequestBody, type UpdateWorkspaceMemberRoleVariables, type UpdateWorkspacePathParams, type UpdateWorkspaceVariables, type UploadDestination, type UpsertRecordWithIDError, type UpsertRecordWithIDPathParams, type UpsertRecordWithIDQueryParams, type UpsertRecordWithIDVariables, type ValueAtColumn, type VectorAskOptions, type VectorSearchTableError, type VectorSearchTablePathParams, type VectorSearchTableRequestBody, type VectorSearchTableVariables, XataApiClient, type XataApiClientOptions, XataApiPlugin, type XataArrayFile, XataError, XataFile, XataPlugin, type XataPluginOptions, type XataRecord, acceptWorkspaceMemberInvite, addGitBranchesEntry, addTableColumn, aggregateTable, applyBranchSchemaEdit, applyMigration, askTable, askTableSession, branchTransaction, buildClient, buildPreviewBranchName, buildProviderString, buildWorkerRunner, bulkInsertTableRecords, cancelWorkspaceMemberInvite, compareBranchSchemas, compareBranchWithUserSchema, compareMigrationRequest, contains, copyBranch, createBranch, createCluster, createDatabase, createMigrationRequest, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteDatabaseGithubSettings, deleteFile, deleteFileItem, deleteOAuthAccessToken, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteUserOAuthClient, deleteWorkspace, deserialize, endsWith, equals, executeBranchMigrationPlan, exists, fileAccess, ge, getAPIKey, getAuthorizationCode, getBranch, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchSchemaHistory, getBranchStats, getCluster, getColumn, getDatabaseGithubSettings, getDatabaseList, getDatabaseMetadata, getDatabaseURL, getFile, getFileItem, getGitBranchesMapping, getHostUrl, getMigrationRequest, getMigrationRequestIsMerged, getPreviewBranch, getRecord, getSchema, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getUserOAuthAccessTokens, getUserOAuthClients, getWorkspace, getWorkspaceMembersList, getWorkspacesList, grantAuthorizationCode, greaterEquals, greaterThan, greaterThanEquals, gt, gte, iContains, iPattern, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isCursorPaginationOptions, isHostProviderAlias, isHostProviderBuilder, isIdentifiable, isNot, isValidExpandedColumn, isValidSelectableColumns, isXataRecord, le, lessEquals, lessThan, lessThanEquals, listClusters, listMigrationRequestsCommits, listRegions, lt, lte, mergeMigrationRequest, notExists, operationsByTag, parseProviderString, parseWorkspacesUrlParts, pattern, previewBranchSchemaEdit, pushBranchMigrations, putFile, putFileItem, queryMigrationRequests, queryTable, removeGitBranchesEntry, removeWorkspaceMember, renameDatabase, resendWorkspaceMemberInvite, resolveBranch, searchBranch, searchTable, serialize, setTableSchema, sqlQuery, startsWith, summarizeTable, transformImage, updateBranchMetadata, updateBranchSchema, updateCluster, updateColumn, updateDatabaseGithubSettings, updateDatabaseMetadata, updateMigrationRequest, updateOAuthAccessToken, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberInvite, updateWorkspaceMemberRole, upsertRecordWithID, vectorSearchTable };
|