@xata.io/client 0.8.3 → 0.8.4

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/dist/index.d.ts CHANGED
@@ -14,6 +14,10 @@ declare type FetcherExtraProps = {
14
14
  fetchImpl: FetchImpl;
15
15
  apiKey: string;
16
16
  };
17
+ declare type ErrorWrapper<TError> = TError | {
18
+ status: 'unknown';
19
+ payload: string;
20
+ };
17
21
 
18
22
  declare abstract class XataPlugin {
19
23
  abstract build(options: XataPluginOptions): unknown | Promise<unknown>;
@@ -520,11 +524,31 @@ declare namespace responses {
520
524
  * @version 1.0
521
525
  */
522
526
 
527
+ declare type GetUserError = ErrorWrapper<{
528
+ status: 400;
529
+ payload: BadRequestError;
530
+ } | {
531
+ status: 401;
532
+ payload: AuthError;
533
+ } | {
534
+ status: 404;
535
+ payload: SimpleError;
536
+ }>;
523
537
  declare type GetUserVariables = FetcherExtraProps;
524
538
  /**
525
539
  * Return details of the user making the request
526
540
  */
527
541
  declare const getUser: (variables: GetUserVariables) => Promise<UserWithID>;
542
+ declare type UpdateUserError = ErrorWrapper<{
543
+ status: 400;
544
+ payload: BadRequestError;
545
+ } | {
546
+ status: 401;
547
+ payload: AuthError;
548
+ } | {
549
+ status: 404;
550
+ payload: SimpleError;
551
+ }>;
528
552
  declare type UpdateUserVariables = {
529
553
  body: User;
530
554
  } & FetcherExtraProps;
@@ -532,11 +556,31 @@ declare type UpdateUserVariables = {
532
556
  * Update user info
533
557
  */
534
558
  declare const updateUser: (variables: UpdateUserVariables) => Promise<UserWithID>;
559
+ declare type DeleteUserError = ErrorWrapper<{
560
+ status: 400;
561
+ payload: BadRequestError;
562
+ } | {
563
+ status: 401;
564
+ payload: AuthError;
565
+ } | {
566
+ status: 404;
567
+ payload: SimpleError;
568
+ }>;
535
569
  declare type DeleteUserVariables = FetcherExtraProps;
536
570
  /**
537
571
  * Delete the user making the request
538
572
  */
539
573
  declare const deleteUser: (variables: DeleteUserVariables) => Promise<undefined>;
574
+ declare type GetUserAPIKeysError = ErrorWrapper<{
575
+ status: 400;
576
+ payload: BadRequestError;
577
+ } | {
578
+ status: 401;
579
+ payload: AuthError;
580
+ } | {
581
+ status: 404;
582
+ payload: SimpleError;
583
+ }>;
540
584
  declare type GetUserAPIKeysResponse = {
541
585
  keys: {
542
586
  name: string;
@@ -551,6 +595,16 @@ declare const getUserAPIKeys: (variables: GetUserAPIKeysVariables) => Promise<Ge
551
595
  declare type CreateUserAPIKeyPathParams = {
552
596
  keyName: APIKeyName;
553
597
  };
598
+ declare type CreateUserAPIKeyError = ErrorWrapper<{
599
+ status: 400;
600
+ payload: BadRequestError;
601
+ } | {
602
+ status: 401;
603
+ payload: AuthError;
604
+ } | {
605
+ status: 404;
606
+ payload: SimpleError;
607
+ }>;
554
608
  declare type CreateUserAPIKeyResponse = {
555
609
  name: string;
556
610
  key: string;
@@ -566,6 +620,16 @@ declare const createUserAPIKey: (variables: CreateUserAPIKeyVariables) => Promis
566
620
  declare type DeleteUserAPIKeyPathParams = {
567
621
  keyName: APIKeyName;
568
622
  };
623
+ declare type DeleteUserAPIKeyError = ErrorWrapper<{
624
+ status: 400;
625
+ payload: BadRequestError;
626
+ } | {
627
+ status: 401;
628
+ payload: AuthError;
629
+ } | {
630
+ status: 404;
631
+ payload: SimpleError;
632
+ }>;
569
633
  declare type DeleteUserAPIKeyVariables = {
570
634
  pathParams: DeleteUserAPIKeyPathParams;
571
635
  } & FetcherExtraProps;
@@ -573,6 +637,16 @@ declare type DeleteUserAPIKeyVariables = {
573
637
  * Delete an existing API key
574
638
  */
575
639
  declare const deleteUserAPIKey: (variables: DeleteUserAPIKeyVariables) => Promise<undefined>;
640
+ declare type CreateWorkspaceError = ErrorWrapper<{
641
+ status: 400;
642
+ payload: BadRequestError;
643
+ } | {
644
+ status: 401;
645
+ payload: AuthError;
646
+ } | {
647
+ status: 404;
648
+ payload: SimpleError;
649
+ }>;
576
650
  declare type CreateWorkspaceVariables = {
577
651
  body: WorkspaceMeta;
578
652
  } & FetcherExtraProps;
@@ -580,6 +654,16 @@ declare type CreateWorkspaceVariables = {
580
654
  * Creates a new workspace with the user requesting it as its single owner.
581
655
  */
582
656
  declare const createWorkspace: (variables: CreateWorkspaceVariables) => Promise<Workspace>;
657
+ declare type GetWorkspacesListError = ErrorWrapper<{
658
+ status: 400;
659
+ payload: BadRequestError;
660
+ } | {
661
+ status: 401;
662
+ payload: AuthError;
663
+ } | {
664
+ status: 404;
665
+ payload: SimpleError;
666
+ }>;
583
667
  declare type GetWorkspacesListResponse = {
584
668
  workspaces: {
585
669
  id: WorkspaceID;
@@ -596,6 +680,16 @@ declare const getWorkspacesList: (variables: GetWorkspacesListVariables) => Prom
596
680
  declare type GetWorkspacePathParams = {
597
681
  workspaceId: WorkspaceID;
598
682
  };
683
+ declare type GetWorkspaceError = ErrorWrapper<{
684
+ status: 400;
685
+ payload: BadRequestError;
686
+ } | {
687
+ status: 401;
688
+ payload: AuthError;
689
+ } | {
690
+ status: 404;
691
+ payload: SimpleError;
692
+ }>;
599
693
  declare type GetWorkspaceVariables = {
600
694
  pathParams: GetWorkspacePathParams;
601
695
  } & FetcherExtraProps;
@@ -606,6 +700,16 @@ declare const getWorkspace: (variables: GetWorkspaceVariables) => Promise<Worksp
606
700
  declare type UpdateWorkspacePathParams = {
607
701
  workspaceId: WorkspaceID;
608
702
  };
703
+ declare type UpdateWorkspaceError = ErrorWrapper<{
704
+ status: 400;
705
+ payload: BadRequestError;
706
+ } | {
707
+ status: 401;
708
+ payload: AuthError;
709
+ } | {
710
+ status: 404;
711
+ payload: SimpleError;
712
+ }>;
609
713
  declare type UpdateWorkspaceVariables = {
610
714
  body: WorkspaceMeta;
611
715
  pathParams: UpdateWorkspacePathParams;
@@ -617,6 +721,16 @@ declare const updateWorkspace: (variables: UpdateWorkspaceVariables) => Promise<
617
721
  declare type DeleteWorkspacePathParams = {
618
722
  workspaceId: WorkspaceID;
619
723
  };
724
+ declare type DeleteWorkspaceError = ErrorWrapper<{
725
+ status: 400;
726
+ payload: BadRequestError;
727
+ } | {
728
+ status: 401;
729
+ payload: AuthError;
730
+ } | {
731
+ status: 404;
732
+ payload: SimpleError;
733
+ }>;
620
734
  declare type DeleteWorkspaceVariables = {
621
735
  pathParams: DeleteWorkspacePathParams;
622
736
  } & FetcherExtraProps;
@@ -627,6 +741,16 @@ declare const deleteWorkspace: (variables: DeleteWorkspaceVariables) => Promise<
627
741
  declare type GetWorkspaceMembersListPathParams = {
628
742
  workspaceId: WorkspaceID;
629
743
  };
744
+ declare type GetWorkspaceMembersListError = ErrorWrapper<{
745
+ status: 400;
746
+ payload: BadRequestError;
747
+ } | {
748
+ status: 401;
749
+ payload: AuthError;
750
+ } | {
751
+ status: 404;
752
+ payload: SimpleError;
753
+ }>;
630
754
  declare type GetWorkspaceMembersListVariables = {
631
755
  pathParams: GetWorkspaceMembersListPathParams;
632
756
  } & FetcherExtraProps;
@@ -638,6 +762,16 @@ declare type UpdateWorkspaceMemberRolePathParams = {
638
762
  workspaceId: WorkspaceID;
639
763
  userId: UserID;
640
764
  };
765
+ declare type UpdateWorkspaceMemberRoleError = ErrorWrapper<{
766
+ status: 400;
767
+ payload: BadRequestError;
768
+ } | {
769
+ status: 401;
770
+ payload: AuthError;
771
+ } | {
772
+ status: 404;
773
+ payload: SimpleError;
774
+ }>;
641
775
  declare type UpdateWorkspaceMemberRoleRequestBody = {
642
776
  role: Role;
643
777
  };
@@ -653,6 +787,16 @@ declare type RemoveWorkspaceMemberPathParams = {
653
787
  workspaceId: WorkspaceID;
654
788
  userId: UserID;
655
789
  };
790
+ declare type RemoveWorkspaceMemberError = ErrorWrapper<{
791
+ status: 400;
792
+ payload: BadRequestError;
793
+ } | {
794
+ status: 401;
795
+ payload: AuthError;
796
+ } | {
797
+ status: 404;
798
+ payload: SimpleError;
799
+ }>;
656
800
  declare type RemoveWorkspaceMemberVariables = {
657
801
  pathParams: RemoveWorkspaceMemberPathParams;
658
802
  } & FetcherExtraProps;
@@ -663,6 +807,16 @@ declare const removeWorkspaceMember: (variables: RemoveWorkspaceMemberVariables)
663
807
  declare type InviteWorkspaceMemberPathParams = {
664
808
  workspaceId: WorkspaceID;
665
809
  };
810
+ declare type InviteWorkspaceMemberError = ErrorWrapper<{
811
+ status: 400;
812
+ payload: BadRequestError;
813
+ } | {
814
+ status: 401;
815
+ payload: AuthError;
816
+ } | {
817
+ status: 404;
818
+ payload: SimpleError;
819
+ }>;
666
820
  declare type InviteWorkspaceMemberRequestBody = {
667
821
  email: string;
668
822
  role: Role;
@@ -679,6 +833,16 @@ declare type CancelWorkspaceMemberInvitePathParams = {
679
833
  workspaceId: WorkspaceID;
680
834
  inviteId: InviteID;
681
835
  };
836
+ declare type CancelWorkspaceMemberInviteError = ErrorWrapper<{
837
+ status: 400;
838
+ payload: BadRequestError;
839
+ } | {
840
+ status: 401;
841
+ payload: AuthError;
842
+ } | {
843
+ status: 404;
844
+ payload: SimpleError;
845
+ }>;
682
846
  declare type CancelWorkspaceMemberInviteVariables = {
683
847
  pathParams: CancelWorkspaceMemberInvitePathParams;
684
848
  } & FetcherExtraProps;
@@ -690,6 +854,16 @@ declare type ResendWorkspaceMemberInvitePathParams = {
690
854
  workspaceId: WorkspaceID;
691
855
  inviteId: InviteID;
692
856
  };
857
+ declare type ResendWorkspaceMemberInviteError = ErrorWrapper<{
858
+ status: 400;
859
+ payload: BadRequestError;
860
+ } | {
861
+ status: 401;
862
+ payload: AuthError;
863
+ } | {
864
+ status: 404;
865
+ payload: SimpleError;
866
+ }>;
693
867
  declare type ResendWorkspaceMemberInviteVariables = {
694
868
  pathParams: ResendWorkspaceMemberInvitePathParams;
695
869
  } & FetcherExtraProps;
@@ -701,6 +875,16 @@ declare type AcceptWorkspaceMemberInvitePathParams = {
701
875
  workspaceId: WorkspaceID;
702
876
  inviteKey: InviteKey;
703
877
  };
878
+ declare type AcceptWorkspaceMemberInviteError = ErrorWrapper<{
879
+ status: 400;
880
+ payload: BadRequestError;
881
+ } | {
882
+ status: 401;
883
+ payload: AuthError;
884
+ } | {
885
+ status: 404;
886
+ payload: SimpleError;
887
+ }>;
704
888
  declare type AcceptWorkspaceMemberInviteVariables = {
705
889
  pathParams: AcceptWorkspaceMemberInvitePathParams;
706
890
  } & FetcherExtraProps;
@@ -711,6 +895,13 @@ declare const acceptWorkspaceMemberInvite: (variables: AcceptWorkspaceMemberInvi
711
895
  declare type GetDatabaseListPathParams = {
712
896
  workspace: string;
713
897
  };
898
+ declare type GetDatabaseListError = ErrorWrapper<{
899
+ status: 400;
900
+ payload: BadRequestError;
901
+ } | {
902
+ status: 401;
903
+ payload: AuthError;
904
+ }>;
714
905
  declare type GetDatabaseListVariables = {
715
906
  pathParams: GetDatabaseListPathParams;
716
907
  } & FetcherExtraProps;
@@ -722,6 +913,16 @@ declare type GetBranchListPathParams = {
722
913
  dbName: DBName;
723
914
  workspace: string;
724
915
  };
916
+ declare type GetBranchListError = ErrorWrapper<{
917
+ status: 400;
918
+ payload: BadRequestError;
919
+ } | {
920
+ status: 401;
921
+ payload: AuthError;
922
+ } | {
923
+ status: 404;
924
+ payload: SimpleError;
925
+ }>;
725
926
  declare type GetBranchListVariables = {
726
927
  pathParams: GetBranchListPathParams;
727
928
  } & FetcherExtraProps;
@@ -733,6 +934,13 @@ declare type CreateDatabasePathParams = {
733
934
  dbName: DBName;
734
935
  workspace: string;
735
936
  };
937
+ declare type CreateDatabaseError = ErrorWrapper<{
938
+ status: 400;
939
+ payload: BadRequestError;
940
+ } | {
941
+ status: 401;
942
+ payload: AuthError;
943
+ }>;
736
944
  declare type CreateDatabaseResponse = {
737
945
  databaseName: string;
738
946
  branchName?: string;
@@ -757,6 +965,16 @@ declare type DeleteDatabasePathParams = {
757
965
  dbName: DBName;
758
966
  workspace: string;
759
967
  };
968
+ declare type DeleteDatabaseError = ErrorWrapper<{
969
+ status: 400;
970
+ payload: BadRequestError;
971
+ } | {
972
+ status: 401;
973
+ payload: AuthError;
974
+ } | {
975
+ status: 404;
976
+ payload: SimpleError;
977
+ }>;
760
978
  declare type DeleteDatabaseVariables = {
761
979
  pathParams: DeleteDatabasePathParams;
762
980
  } & FetcherExtraProps;
@@ -768,6 +986,16 @@ declare type GetBranchDetailsPathParams = {
768
986
  dbBranchName: DBBranchName;
769
987
  workspace: string;
770
988
  };
989
+ declare type GetBranchDetailsError = ErrorWrapper<{
990
+ status: 400;
991
+ payload: BadRequestError;
992
+ } | {
993
+ status: 401;
994
+ payload: AuthError;
995
+ } | {
996
+ status: 404;
997
+ payload: SimpleError;
998
+ }>;
771
999
  declare type GetBranchDetailsVariables = {
772
1000
  pathParams: GetBranchDetailsPathParams;
773
1001
  } & FetcherExtraProps;
@@ -779,6 +1007,16 @@ declare type CreateBranchPathParams = {
779
1007
  declare type CreateBranchQueryParams = {
780
1008
  from?: string;
781
1009
  };
1010
+ declare type CreateBranchError = ErrorWrapper<{
1011
+ status: 400;
1012
+ payload: BadRequestError;
1013
+ } | {
1014
+ status: 401;
1015
+ payload: AuthError;
1016
+ } | {
1017
+ status: 404;
1018
+ payload: SimpleError;
1019
+ }>;
782
1020
  declare type CreateBranchRequestBody = {
783
1021
  from?: string;
784
1022
  metadata?: BranchMetadata;
@@ -793,6 +1031,16 @@ declare type DeleteBranchPathParams = {
793
1031
  dbBranchName: DBBranchName;
794
1032
  workspace: string;
795
1033
  };
1034
+ declare type DeleteBranchError = ErrorWrapper<{
1035
+ status: 400;
1036
+ payload: BadRequestError;
1037
+ } | {
1038
+ status: 401;
1039
+ payload: AuthError;
1040
+ } | {
1041
+ status: 404;
1042
+ payload: SimpleError;
1043
+ }>;
796
1044
  declare type DeleteBranchVariables = {
797
1045
  pathParams: DeleteBranchPathParams;
798
1046
  } & FetcherExtraProps;
@@ -804,6 +1052,16 @@ declare type UpdateBranchMetadataPathParams = {
804
1052
  dbBranchName: DBBranchName;
805
1053
  workspace: string;
806
1054
  };
1055
+ declare type UpdateBranchMetadataError = ErrorWrapper<{
1056
+ status: 400;
1057
+ payload: BadRequestError;
1058
+ } | {
1059
+ status: 401;
1060
+ payload: AuthError;
1061
+ } | {
1062
+ status: 404;
1063
+ payload: SimpleError;
1064
+ }>;
807
1065
  declare type UpdateBranchMetadataVariables = {
808
1066
  body?: BranchMetadata;
809
1067
  pathParams: UpdateBranchMetadataPathParams;
@@ -816,6 +1074,16 @@ declare type GetBranchMetadataPathParams = {
816
1074
  dbBranchName: DBBranchName;
817
1075
  workspace: string;
818
1076
  };
1077
+ declare type GetBranchMetadataError = ErrorWrapper<{
1078
+ status: 400;
1079
+ payload: BadRequestError;
1080
+ } | {
1081
+ status: 401;
1082
+ payload: AuthError;
1083
+ } | {
1084
+ status: 404;
1085
+ payload: SimpleError;
1086
+ }>;
819
1087
  declare type GetBranchMetadataVariables = {
820
1088
  pathParams: GetBranchMetadataPathParams;
821
1089
  } & FetcherExtraProps;
@@ -824,6 +1092,16 @@ declare type GetBranchMigrationHistoryPathParams = {
824
1092
  dbBranchName: DBBranchName;
825
1093
  workspace: string;
826
1094
  };
1095
+ declare type GetBranchMigrationHistoryError = ErrorWrapper<{
1096
+ status: 400;
1097
+ payload: BadRequestError;
1098
+ } | {
1099
+ status: 401;
1100
+ payload: AuthError;
1101
+ } | {
1102
+ status: 404;
1103
+ payload: SimpleError;
1104
+ }>;
827
1105
  declare type GetBranchMigrationHistoryResponse = {
828
1106
  startedFrom?: StartedFromMetadata;
829
1107
  migrations?: BranchMigration[];
@@ -841,6 +1119,16 @@ declare type ExecuteBranchMigrationPlanPathParams = {
841
1119
  dbBranchName: DBBranchName;
842
1120
  workspace: string;
843
1121
  };
1122
+ declare type ExecuteBranchMigrationPlanError = ErrorWrapper<{
1123
+ status: 400;
1124
+ payload: BadRequestError;
1125
+ } | {
1126
+ status: 401;
1127
+ payload: AuthError;
1128
+ } | {
1129
+ status: 404;
1130
+ payload: SimpleError;
1131
+ }>;
844
1132
  declare type ExecuteBranchMigrationPlanRequestBody = {
845
1133
  version: number;
846
1134
  migration: BranchMigration;
@@ -857,6 +1145,16 @@ declare type GetBranchMigrationPlanPathParams = {
857
1145
  dbBranchName: DBBranchName;
858
1146
  workspace: string;
859
1147
  };
1148
+ declare type GetBranchMigrationPlanError = ErrorWrapper<{
1149
+ status: 400;
1150
+ payload: BadRequestError;
1151
+ } | {
1152
+ status: 401;
1153
+ payload: AuthError;
1154
+ } | {
1155
+ status: 404;
1156
+ payload: SimpleError;
1157
+ }>;
860
1158
  declare type GetBranchMigrationPlanVariables = {
861
1159
  body: Schema;
862
1160
  pathParams: GetBranchMigrationPlanPathParams;
@@ -869,6 +1167,16 @@ declare type GetBranchStatsPathParams = {
869
1167
  dbBranchName: DBBranchName;
870
1168
  workspace: string;
871
1169
  };
1170
+ declare type GetBranchStatsError = ErrorWrapper<{
1171
+ status: 400;
1172
+ payload: SimpleError;
1173
+ } | {
1174
+ status: 401;
1175
+ payload: AuthError;
1176
+ } | {
1177
+ status: 404;
1178
+ payload: SimpleError;
1179
+ }>;
872
1180
  declare type GetBranchStatsResponse = {
873
1181
  timestamp: string;
874
1182
  interval: string;
@@ -892,6 +1200,19 @@ declare type CreateTablePathParams = {
892
1200
  tableName: TableName;
893
1201
  workspace: string;
894
1202
  };
1203
+ declare type CreateTableError = ErrorWrapper<{
1204
+ status: 400;
1205
+ payload: BadRequestError;
1206
+ } | {
1207
+ status: 401;
1208
+ payload: AuthError;
1209
+ } | {
1210
+ status: 404;
1211
+ payload: SimpleError;
1212
+ } | {
1213
+ status: 422;
1214
+ payload: SimpleError;
1215
+ }>;
895
1216
  declare type CreateTableVariables = {
896
1217
  pathParams: CreateTablePathParams;
897
1218
  } & FetcherExtraProps;
@@ -904,6 +1225,13 @@ declare type DeleteTablePathParams = {
904
1225
  tableName: TableName;
905
1226
  workspace: string;
906
1227
  };
1228
+ declare type DeleteTableError = ErrorWrapper<{
1229
+ status: 400;
1230
+ payload: BadRequestError;
1231
+ } | {
1232
+ status: 401;
1233
+ payload: AuthError;
1234
+ }>;
907
1235
  declare type DeleteTableVariables = {
908
1236
  pathParams: DeleteTablePathParams;
909
1237
  } & FetcherExtraProps;
@@ -916,6 +1244,16 @@ declare type UpdateTablePathParams = {
916
1244
  tableName: TableName;
917
1245
  workspace: string;
918
1246
  };
1247
+ declare type UpdateTableError = ErrorWrapper<{
1248
+ status: 400;
1249
+ payload: BadRequestError;
1250
+ } | {
1251
+ status: 401;
1252
+ payload: AuthError;
1253
+ } | {
1254
+ status: 404;
1255
+ payload: SimpleError;
1256
+ }>;
919
1257
  declare type UpdateTableRequestBody = {
920
1258
  name: string;
921
1259
  };
@@ -941,6 +1279,16 @@ declare type GetTableSchemaPathParams = {
941
1279
  tableName: TableName;
942
1280
  workspace: string;
943
1281
  };
1282
+ declare type GetTableSchemaError = ErrorWrapper<{
1283
+ status: 400;
1284
+ payload: BadRequestError;
1285
+ } | {
1286
+ status: 401;
1287
+ payload: AuthError;
1288
+ } | {
1289
+ status: 404;
1290
+ payload: SimpleError;
1291
+ }>;
944
1292
  declare type GetTableSchemaResponse = {
945
1293
  columns: Column[];
946
1294
  };
@@ -953,6 +1301,19 @@ declare type SetTableSchemaPathParams = {
953
1301
  tableName: TableName;
954
1302
  workspace: string;
955
1303
  };
1304
+ declare type SetTableSchemaError = ErrorWrapper<{
1305
+ status: 400;
1306
+ payload: BadRequestError;
1307
+ } | {
1308
+ status: 401;
1309
+ payload: AuthError;
1310
+ } | {
1311
+ status: 404;
1312
+ payload: SimpleError;
1313
+ } | {
1314
+ status: 409;
1315
+ payload: SimpleError;
1316
+ }>;
956
1317
  declare type SetTableSchemaRequestBody = {
957
1318
  columns: Column[];
958
1319
  };
@@ -966,6 +1327,16 @@ declare type GetTableColumnsPathParams = {
966
1327
  tableName: TableName;
967
1328
  workspace: string;
968
1329
  };
1330
+ declare type GetTableColumnsError = ErrorWrapper<{
1331
+ status: 400;
1332
+ payload: BadRequestError;
1333
+ } | {
1334
+ status: 401;
1335
+ payload: AuthError;
1336
+ } | {
1337
+ status: 404;
1338
+ payload: SimpleError;
1339
+ }>;
969
1340
  declare type GetTableColumnsResponse = {
970
1341
  columns: Column[];
971
1342
  };
@@ -982,6 +1353,16 @@ declare type AddTableColumnPathParams = {
982
1353
  tableName: TableName;
983
1354
  workspace: string;
984
1355
  };
1356
+ declare type AddTableColumnError = ErrorWrapper<{
1357
+ status: 400;
1358
+ payload: BadRequestError;
1359
+ } | {
1360
+ status: 401;
1361
+ payload: AuthError;
1362
+ } | {
1363
+ status: 404;
1364
+ payload: SimpleError;
1365
+ }>;
985
1366
  declare type AddTableColumnVariables = {
986
1367
  body: Column;
987
1368
  pathParams: AddTableColumnPathParams;
@@ -998,6 +1379,16 @@ declare type GetColumnPathParams = {
998
1379
  columnName: ColumnName;
999
1380
  workspace: string;
1000
1381
  };
1382
+ declare type GetColumnError = ErrorWrapper<{
1383
+ status: 400;
1384
+ payload: BadRequestError;
1385
+ } | {
1386
+ status: 401;
1387
+ payload: AuthError;
1388
+ } | {
1389
+ status: 404;
1390
+ payload: SimpleError;
1391
+ }>;
1001
1392
  declare type GetColumnVariables = {
1002
1393
  pathParams: GetColumnPathParams;
1003
1394
  } & FetcherExtraProps;
@@ -1011,6 +1402,16 @@ declare type DeleteColumnPathParams = {
1011
1402
  columnName: ColumnName;
1012
1403
  workspace: string;
1013
1404
  };
1405
+ declare type DeleteColumnError = ErrorWrapper<{
1406
+ status: 400;
1407
+ payload: BadRequestError;
1408
+ } | {
1409
+ status: 401;
1410
+ payload: AuthError;
1411
+ } | {
1412
+ status: 404;
1413
+ payload: SimpleError;
1414
+ }>;
1014
1415
  declare type DeleteColumnVariables = {
1015
1416
  pathParams: DeleteColumnPathParams;
1016
1417
  } & FetcherExtraProps;
@@ -1024,6 +1425,16 @@ declare type UpdateColumnPathParams = {
1024
1425
  columnName: ColumnName;
1025
1426
  workspace: string;
1026
1427
  };
1428
+ declare type UpdateColumnError = ErrorWrapper<{
1429
+ status: 400;
1430
+ payload: BadRequestError;
1431
+ } | {
1432
+ status: 401;
1433
+ payload: AuthError;
1434
+ } | {
1435
+ status: 404;
1436
+ payload: SimpleError;
1437
+ }>;
1027
1438
  declare type UpdateColumnRequestBody = {
1028
1439
  name: string;
1029
1440
  };
@@ -1040,6 +1451,16 @@ declare type InsertRecordPathParams = {
1040
1451
  tableName: TableName;
1041
1452
  workspace: string;
1042
1453
  };
1454
+ declare type InsertRecordError = ErrorWrapper<{
1455
+ status: 400;
1456
+ payload: BadRequestError;
1457
+ } | {
1458
+ status: 401;
1459
+ payload: AuthError;
1460
+ } | {
1461
+ status: 404;
1462
+ payload: SimpleError;
1463
+ }>;
1043
1464
  declare type InsertRecordResponse = {
1044
1465
  id: string;
1045
1466
  xata: {
@@ -1064,6 +1485,19 @@ declare type InsertRecordWithIDQueryParams = {
1064
1485
  createOnly?: boolean;
1065
1486
  ifVersion?: number;
1066
1487
  };
1488
+ declare type InsertRecordWithIDError = ErrorWrapper<{
1489
+ status: 400;
1490
+ payload: BadRequestError;
1491
+ } | {
1492
+ status: 401;
1493
+ payload: AuthError;
1494
+ } | {
1495
+ status: 404;
1496
+ payload: SimpleError;
1497
+ } | {
1498
+ status: 422;
1499
+ payload: SimpleError;
1500
+ }>;
1067
1501
  declare type InsertRecordWithIDVariables = {
1068
1502
  body?: Record<string, any>;
1069
1503
  pathParams: InsertRecordWithIDPathParams;
@@ -1082,6 +1516,19 @@ declare type UpdateRecordWithIDPathParams = {
1082
1516
  declare type UpdateRecordWithIDQueryParams = {
1083
1517
  ifVersion?: number;
1084
1518
  };
1519
+ declare type UpdateRecordWithIDError = ErrorWrapper<{
1520
+ status: 400;
1521
+ payload: BadRequestError;
1522
+ } | {
1523
+ status: 401;
1524
+ payload: AuthError;
1525
+ } | {
1526
+ status: 404;
1527
+ payload: SimpleError;
1528
+ } | {
1529
+ status: 422;
1530
+ payload: SimpleError;
1531
+ }>;
1085
1532
  declare type UpdateRecordWithIDVariables = {
1086
1533
  body?: Record<string, any>;
1087
1534
  pathParams: UpdateRecordWithIDPathParams;
@@ -1097,6 +1544,19 @@ declare type UpsertRecordWithIDPathParams = {
1097
1544
  declare type UpsertRecordWithIDQueryParams = {
1098
1545
  ifVersion?: number;
1099
1546
  };
1547
+ declare type UpsertRecordWithIDError = ErrorWrapper<{
1548
+ status: 400;
1549
+ payload: BadRequestError;
1550
+ } | {
1551
+ status: 401;
1552
+ payload: AuthError;
1553
+ } | {
1554
+ status: 404;
1555
+ payload: SimpleError;
1556
+ } | {
1557
+ status: 422;
1558
+ payload: SimpleError;
1559
+ }>;
1100
1560
  declare type UpsertRecordWithIDVariables = {
1101
1561
  body?: Record<string, any>;
1102
1562
  pathParams: UpsertRecordWithIDPathParams;
@@ -1109,6 +1569,16 @@ declare type DeleteRecordPathParams = {
1109
1569
  recordId: RecordID;
1110
1570
  workspace: string;
1111
1571
  };
1572
+ declare type DeleteRecordError = ErrorWrapper<{
1573
+ status: 400;
1574
+ payload: BadRequestError;
1575
+ } | {
1576
+ status: 401;
1577
+ payload: AuthError;
1578
+ } | {
1579
+ status: 404;
1580
+ payload: SimpleError;
1581
+ }>;
1112
1582
  declare type DeleteRecordVariables = {
1113
1583
  pathParams: DeleteRecordPathParams;
1114
1584
  } & FetcherExtraProps;
@@ -1119,6 +1589,16 @@ declare type GetRecordPathParams = {
1119
1589
  recordId: RecordID;
1120
1590
  workspace: string;
1121
1591
  };
1592
+ declare type GetRecordError = ErrorWrapper<{
1593
+ status: 400;
1594
+ payload: BadRequestError;
1595
+ } | {
1596
+ status: 401;
1597
+ payload: AuthError;
1598
+ } | {
1599
+ status: 404;
1600
+ payload: SimpleError;
1601
+ }>;
1122
1602
  declare type GetRecordRequestBody = {
1123
1603
  columns?: ColumnsFilter;
1124
1604
  };
@@ -1135,6 +1615,16 @@ declare type BulkInsertTableRecordsPathParams = {
1135
1615
  tableName: TableName;
1136
1616
  workspace: string;
1137
1617
  };
1618
+ declare type BulkInsertTableRecordsError = ErrorWrapper<{
1619
+ status: 400;
1620
+ payload: BulkError;
1621
+ } | {
1622
+ status: 401;
1623
+ payload: AuthError;
1624
+ } | {
1625
+ status: 404;
1626
+ payload: SimpleError;
1627
+ }>;
1138
1628
  declare type BulkInsertTableRecordsResponse = {
1139
1629
  recordIDs: string[];
1140
1630
  };
@@ -1154,6 +1644,16 @@ declare type QueryTablePathParams = {
1154
1644
  tableName: TableName;
1155
1645
  workspace: string;
1156
1646
  };
1647
+ declare type QueryTableError = ErrorWrapper<{
1648
+ status: 400;
1649
+ payload: BadRequestError;
1650
+ } | {
1651
+ status: 401;
1652
+ payload: AuthError;
1653
+ } | {
1654
+ status: 404;
1655
+ payload: SimpleError;
1656
+ }>;
1157
1657
  declare type QueryTableRequestBody = {
1158
1658
  filter?: FilterExpression;
1159
1659
  sort?: SortExpression;
@@ -1872,6 +2372,16 @@ declare type SearchBranchPathParams = {
1872
2372
  dbBranchName: DBBranchName;
1873
2373
  workspace: string;
1874
2374
  };
2375
+ declare type SearchBranchError = ErrorWrapper<{
2376
+ status: 400;
2377
+ payload: BadRequestError;
2378
+ } | {
2379
+ status: 401;
2380
+ payload: AuthError;
2381
+ } | {
2382
+ status: 404;
2383
+ payload: SimpleError;
2384
+ }>;
1875
2385
  declare type SearchBranchRequestBody = {
1876
2386
  tables?: string[];
1877
2387
  query: string;
@@ -1964,7 +2474,7 @@ interface XataApiClientOptions {
1964
2474
  }
1965
2475
  declare class XataApiClient {
1966
2476
  #private;
1967
- constructor(options: XataApiClientOptions);
2477
+ constructor(options?: XataApiClientOptions);
1968
2478
  get user(): UserApi;
1969
2479
  get workspaces(): WorkspaceApi;
1970
2480
  get databases(): DatabaseApi;
@@ -2063,6 +2573,7 @@ declare type NonEmptyArray<T> = T[] & {
2063
2573
  declare type RequiredBy<T, K extends keyof T> = T & {
2064
2574
  [P in K]-?: NonNullable<T[P]>;
2065
2575
  };
2576
+ declare type GetArrayInnerType<T extends readonly any[]> = T[number];
2066
2577
  declare type SingleOrArray<T> = T | T[];
2067
2578
  declare type Dictionary<T> = Record<string, T>;
2068
2579
 
@@ -2667,30 +3178,33 @@ declare class SchemaPlugin<Schemas extends Record<string, BaseData>> extends Xat
2667
3178
  build(options: XataPluginOptions): SchemaPluginResult<Schemas>;
2668
3179
  }
2669
3180
 
3181
+ declare type SearchOptions<Schemas extends Record<string, BaseData>, Tables extends StringKeys<Schemas>> = {
3182
+ fuzziness?: number;
3183
+ tables?: Tables[];
3184
+ };
3185
+ declare type SearchPluginResult<Schemas extends Record<string, BaseData>> = {
3186
+ all: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<Values<{
3187
+ [Model in GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>]: {
3188
+ table: Model;
3189
+ record: Awaited<SelectedPick<Schemas[Model] & SearchXataRecord, ['*']>>;
3190
+ };
3191
+ }>[]>;
3192
+ byTable: <Tables extends StringKeys<Schemas>>(query: string, options?: SearchOptions<Schemas, Tables>) => Promise<{
3193
+ [Model in GetArrayInnerType<NonNullable<NonNullable<typeof options>['tables']>>]?: Awaited<SelectedPick<Schemas[Model] & SearchXataRecord, ['*']>[]>;
3194
+ }>;
3195
+ };
2670
3196
  declare class SearchPlugin<Schemas extends Record<string, BaseData>> extends XataPlugin {
2671
3197
  #private;
2672
- build({ getFetchProps }: XataPluginOptions): {
2673
- all: <Tables extends Extract<keyof Schemas, string>>(query: string, options?: {
2674
- fuzziness?: number | undefined;
2675
- tables?: Tables[] | undefined;
2676
- }) => Promise<Values<{ [Model in Tables]: {
2677
- table: Model;
2678
- record: Awaited<SelectedPick<Schemas[Model] & XataRecord & {
2679
- xata: {
2680
- table: string;
2681
- };
2682
- }, ["*"]>>;
2683
- }; }>[]>;
2684
- byTable: <Tables_1 extends Extract<keyof Schemas, string>>(query: string, options?: {
2685
- fuzziness?: number | undefined;
2686
- tables?: Tables_1[] | undefined;
2687
- }) => Promise<{ [Model_1 in Tables_1]: SelectedPick<Schemas[Model_1] & XataRecord & {
2688
- xata: {
2689
- table: string;
2690
- };
2691
- }, ["*"]>[]; }>;
2692
- };
3198
+ private db;
3199
+ private links;
3200
+ constructor(db: SchemaPluginResult<Schemas>, links: LinkDictionary);
3201
+ build({ getFetchProps }: XataPluginOptions): SearchPluginResult<Schemas>;
2693
3202
  }
3203
+ declare type SearchXataRecord = XataRecord & {
3204
+ xata: {
3205
+ table: string;
3206
+ };
3207
+ };
2694
3208
 
2695
3209
  declare type BranchStrategyValue = string | undefined | null;
2696
3210
  declare type BranchStrategyBuilder = () => BranchStrategyValue | Promise<BranchStrategyValue>;
@@ -2724,6 +3238,7 @@ declare type BranchResolutionOptions = {
2724
3238
  declare function getCurrentBranchName(options?: BranchResolutionOptions): Promise<string | undefined>;
2725
3239
  declare function getCurrentBranchDetails(options?: BranchResolutionOptions): Promise<DBBranch | null>;
2726
3240
  declare function getDatabaseURL(): string | undefined;
3241
+
2727
3242
  declare function getAPIKey(): string | undefined;
2728
3243
 
2729
3244
  declare class XataError extends Error {
@@ -2731,4 +3246,4 @@ declare class XataError extends Error {
2731
3246
  constructor(message: string, status: number);
2732
3247
  }
2733
3248
 
2734
- export { AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsResponse, BulkInsertTableRecordsVariables, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchVariables, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTablePathParams, CreateTableVariables, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordPathParams, DeleteRecordVariables, DeleteTablePathParams, DeleteTableVariables, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserVariables, DeleteWorkspacePathParams, DeleteWorkspaceVariables, EditableData, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherExtraProps, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnPathParams, GetColumnVariables, GetDatabaseListPathParams, GetDatabaseListVariables, GetRecordPathParams, GetRecordRequestBody, GetRecordVariables, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserVariables, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListResponse, GetWorkspacesListVariables, Identifiable, InsertRecordPathParams, InsertRecordResponse, InsertRecordVariables, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, LinkDictionary, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationOptions, PaginationQueryMeta, Query, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, Repository, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchPlugin, SelectableColumn, SelectedPick, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserVariables, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addTableColumn, buildClient, bulkInsertTableRecords, cancelWorkspaceMemberInvite, contains, createBranch, createDatabase, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, endsWith, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchStats, getColumn, getCurrentBranchDetails, getCurrentBranchName, getDatabaseList, getDatabaseURL, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isIdentifiable, isNot, isXataRecord, le, lt, lte, notExists, operationsByTag, pattern, queryTable, removeWorkspaceMember, resendWorkspaceMemberInvite, searchBranch, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberRole, upsertRecordWithID };
3249
+ export { AcceptWorkspaceMemberInviteError, AcceptWorkspaceMemberInvitePathParams, AcceptWorkspaceMemberInviteVariables, AddTableColumnError, AddTableColumnPathParams, AddTableColumnVariables, BaseClient, BaseClientOptions, BaseData, BulkInsertTableRecordsError, BulkInsertTableRecordsPathParams, BulkInsertTableRecordsRequestBody, BulkInsertTableRecordsResponse, BulkInsertTableRecordsVariables, CancelWorkspaceMemberInviteError, CancelWorkspaceMemberInvitePathParams, CancelWorkspaceMemberInviteVariables, ClientConstructor, CreateBranchError, CreateBranchPathParams, CreateBranchQueryParams, CreateBranchRequestBody, CreateBranchVariables, CreateDatabaseError, CreateDatabasePathParams, CreateDatabaseRequestBody, CreateDatabaseResponse, CreateDatabaseVariables, CreateTableError, CreateTablePathParams, CreateTableVariables, CreateUserAPIKeyError, CreateUserAPIKeyPathParams, CreateUserAPIKeyResponse, CreateUserAPIKeyVariables, CreateWorkspaceError, CreateWorkspaceVariables, CursorNavigationOptions, DeleteBranchError, DeleteBranchPathParams, DeleteBranchVariables, DeleteColumnError, DeleteColumnPathParams, DeleteColumnVariables, DeleteDatabaseError, DeleteDatabasePathParams, DeleteDatabaseVariables, DeleteRecordError, DeleteRecordPathParams, DeleteRecordVariables, DeleteTableError, DeleteTablePathParams, DeleteTableVariables, DeleteUserAPIKeyError, DeleteUserAPIKeyPathParams, DeleteUserAPIKeyVariables, DeleteUserError, DeleteUserVariables, DeleteWorkspaceError, DeleteWorkspacePathParams, DeleteWorkspaceVariables, EditableData, ExecuteBranchMigrationPlanError, ExecuteBranchMigrationPlanPathParams, ExecuteBranchMigrationPlanRequestBody, ExecuteBranchMigrationPlanVariables, FetchImpl, FetcherExtraProps, GetBranchDetailsError, GetBranchDetailsPathParams, GetBranchDetailsVariables, GetBranchListError, GetBranchListPathParams, GetBranchListVariables, GetBranchMetadataError, GetBranchMetadataPathParams, GetBranchMetadataVariables, GetBranchMigrationHistoryError, GetBranchMigrationHistoryPathParams, GetBranchMigrationHistoryRequestBody, GetBranchMigrationHistoryResponse, GetBranchMigrationHistoryVariables, GetBranchMigrationPlanError, GetBranchMigrationPlanPathParams, GetBranchMigrationPlanVariables, GetBranchStatsError, GetBranchStatsPathParams, GetBranchStatsResponse, GetBranchStatsVariables, GetColumnError, GetColumnPathParams, GetColumnVariables, GetDatabaseListError, GetDatabaseListPathParams, GetDatabaseListVariables, GetRecordError, GetRecordPathParams, GetRecordRequestBody, GetRecordVariables, GetTableColumnsError, GetTableColumnsPathParams, GetTableColumnsResponse, GetTableColumnsVariables, GetTableSchemaError, GetTableSchemaPathParams, GetTableSchemaResponse, GetTableSchemaVariables, GetUserAPIKeysError, GetUserAPIKeysResponse, GetUserAPIKeysVariables, GetUserError, GetUserVariables, GetWorkspaceError, GetWorkspaceMembersListError, GetWorkspaceMembersListPathParams, GetWorkspaceMembersListVariables, GetWorkspacePathParams, GetWorkspaceVariables, GetWorkspacesListError, GetWorkspacesListResponse, GetWorkspacesListVariables, Identifiable, InsertRecordError, InsertRecordPathParams, InsertRecordResponse, InsertRecordVariables, InsertRecordWithIDError, InsertRecordWithIDPathParams, InsertRecordWithIDQueryParams, InsertRecordWithIDVariables, InviteWorkspaceMemberError, InviteWorkspaceMemberPathParams, InviteWorkspaceMemberRequestBody, InviteWorkspaceMemberVariables, LinkDictionary, OffsetNavigationOptions, operationsByTag as Operations, PAGINATION_DEFAULT_OFFSET, PAGINATION_DEFAULT_SIZE, PAGINATION_MAX_OFFSET, PAGINATION_MAX_SIZE, Page, Paginable, PaginationOptions, PaginationQueryMeta, Query, QueryTableError, QueryTablePathParams, QueryTableRequestBody, QueryTableVariables, RemoveWorkspaceMemberError, RemoveWorkspaceMemberPathParams, RemoveWorkspaceMemberVariables, Repository, ResendWorkspaceMemberInviteError, ResendWorkspaceMemberInvitePathParams, ResendWorkspaceMemberInviteVariables, responses as Responses, RestRepository, SchemaDefinition, SchemaPlugin, SchemaPluginResult, schemas as Schemas, SearchBranchError, SearchBranchPathParams, SearchBranchRequestBody, SearchBranchVariables, SearchOptions, SearchPlugin, SearchPluginResult, SelectableColumn, SelectedPick, SetTableSchemaError, SetTableSchemaPathParams, SetTableSchemaRequestBody, SetTableSchemaVariables, UpdateBranchMetadataError, UpdateBranchMetadataPathParams, UpdateBranchMetadataVariables, UpdateColumnError, UpdateColumnPathParams, UpdateColumnRequestBody, UpdateColumnVariables, UpdateRecordWithIDError, UpdateRecordWithIDPathParams, UpdateRecordWithIDQueryParams, UpdateRecordWithIDVariables, UpdateTableError, UpdateTablePathParams, UpdateTableRequestBody, UpdateTableVariables, UpdateUserError, UpdateUserVariables, UpdateWorkspaceError, UpdateWorkspaceMemberRoleError, UpdateWorkspaceMemberRolePathParams, UpdateWorkspaceMemberRoleRequestBody, UpdateWorkspaceMemberRoleVariables, UpdateWorkspacePathParams, UpdateWorkspaceVariables, UpsertRecordWithIDError, UpsertRecordWithIDPathParams, UpsertRecordWithIDQueryParams, UpsertRecordWithIDVariables, ValueAtColumn, XataApiClient, XataApiClientOptions, XataApiPlugin, XataError, XataPlugin, XataPluginOptions, XataRecord, acceptWorkspaceMemberInvite, addTableColumn, buildClient, bulkInsertTableRecords, cancelWorkspaceMemberInvite, contains, createBranch, createDatabase, createTable, createUserAPIKey, createWorkspace, deleteBranch, deleteColumn, deleteDatabase, deleteRecord, deleteTable, deleteUser, deleteUserAPIKey, deleteWorkspace, endsWith, executeBranchMigrationPlan, exists, ge, getAPIKey, getBranchDetails, getBranchList, getBranchMetadata, getBranchMigrationHistory, getBranchMigrationPlan, getBranchStats, getColumn, getCurrentBranchDetails, getCurrentBranchName, getDatabaseList, getDatabaseURL, getRecord, getTableColumns, getTableSchema, getUser, getUserAPIKeys, getWorkspace, getWorkspaceMembersList, getWorkspacesList, gt, gte, includes, includesAll, includesAny, includesNone, insertRecord, insertRecordWithID, inviteWorkspaceMember, is, isIdentifiable, isNot, isXataRecord, le, lt, lte, notExists, operationsByTag, pattern, queryTable, removeWorkspaceMember, resendWorkspaceMemberInvite, searchBranch, setTableSchema, startsWith, updateBranchMetadata, updateColumn, updateRecordWithID, updateTable, updateUser, updateWorkspace, updateWorkspaceMemberRole, upsertRecordWithID };