@marcoappio/marco-config 2.0.496 → 2.0.497

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.
@@ -224,7 +224,7 @@ export declare const marcoZero: {
224
224
  };
225
225
  };
226
226
  readonly mutators: import("@rocicorp/zero").MutatorRegistry<{
227
- readonly account: {
227
+ account: {
228
228
  createAccount: import("@rocicorp/zero").MutatorDefinition<{
229
229
  aliasId: string;
230
230
  color: string;
@@ -351,7 +351,7 @@ export declare const marcoZero: {
351
351
  readonly userId: string;
352
352
  }, unknown>;
353
353
  };
354
- readonly draft: {
354
+ draft: {
355
355
  cancelSend: import("@rocicorp/zero").MutatorDefinition<{
356
356
  id: string;
357
357
  updatedAt: number;
@@ -536,7 +536,7 @@ export declare const marcoZero: {
536
536
  readonly userId: string;
537
537
  }, unknown>;
538
538
  };
539
- readonly thread: {
539
+ thread: {
540
540
  addLabel: import("@rocicorp/zero").MutatorDefinition<{
541
541
  accounts: {
542
542
  [x: string]: {
@@ -681,7 +681,7 @@ export declare const marcoZero: {
681
681
  readonly userId: string;
682
682
  }, unknown>;
683
683
  };
684
- readonly user: {
684
+ user: {
685
685
  deleteSettingsPushNotificationToken: import("@rocicorp/zero").MutatorDefinition<{
686
686
  id: string;
687
687
  token: string;
@@ -718,7 +718,1029 @@ export declare const marcoZero: {
718
718
  readonly userId: string;
719
719
  }, unknown>;
720
720
  };
721
- }, import("@rocicorp/zero").Schema>;
721
+ }, {
722
+ tables: {
723
+ readonly user: {
724
+ name: "user";
725
+ columns: {
726
+ readonly id: {
727
+ type: "string";
728
+ optional: false;
729
+ customType: string;
730
+ };
731
+ readonly name: Omit<{
732
+ type: "string";
733
+ optional: false;
734
+ customType: string;
735
+ }, "optional"> & {
736
+ optional: true;
737
+ };
738
+ readonly profilePicture: Omit<{
739
+ type: "string";
740
+ optional: false;
741
+ customType: string;
742
+ }, "optional"> & {
743
+ optional: true;
744
+ } & {
745
+ serverName: string;
746
+ };
747
+ readonly undoSendEnabled: {
748
+ type: "boolean";
749
+ optional: false;
750
+ customType: boolean;
751
+ } & {
752
+ serverName: string;
753
+ };
754
+ };
755
+ primaryKey: readonly [string, ...string[]];
756
+ } & {
757
+ primaryKey: ["id"];
758
+ };
759
+ readonly draftAttachment: {
760
+ name: "draftAttachment";
761
+ columns: {
762
+ readonly draftId: {
763
+ type: "string";
764
+ optional: false;
765
+ customType: string;
766
+ } & {
767
+ serverName: string;
768
+ };
769
+ readonly fileName: {
770
+ type: "string";
771
+ optional: false;
772
+ customType: string;
773
+ } & {
774
+ serverName: string;
775
+ };
776
+ readonly id: {
777
+ type: "string";
778
+ optional: false;
779
+ customType: string;
780
+ };
781
+ readonly mimeType: {
782
+ type: "string";
783
+ optional: false;
784
+ customType: string;
785
+ } & {
786
+ serverName: string;
787
+ };
788
+ readonly status: {
789
+ type: "string";
790
+ optional: false;
791
+ customType: "PENDING" | "COMPLETE" | "FAILED";
792
+ } & {
793
+ serverName: string;
794
+ };
795
+ readonly totalSize: {
796
+ type: "number";
797
+ optional: false;
798
+ customType: number;
799
+ } & {
800
+ serverName: string;
801
+ };
802
+ };
803
+ primaryKey: readonly [string, ...string[]];
804
+ } & {
805
+ primaryKey: ["id"];
806
+ };
807
+ readonly userPushNotificationToken: {
808
+ name: "userPushNotificationToken";
809
+ columns: {
810
+ readonly createdAt: {
811
+ type: "number";
812
+ optional: false;
813
+ customType: number;
814
+ } & {
815
+ serverName: string;
816
+ };
817
+ readonly id: {
818
+ type: "string";
819
+ optional: false;
820
+ customType: string;
821
+ };
822
+ readonly token: {
823
+ type: "string";
824
+ optional: false;
825
+ customType: string;
826
+ };
827
+ readonly userId: {
828
+ type: "string";
829
+ optional: false;
830
+ customType: string;
831
+ } & {
832
+ serverName: string;
833
+ };
834
+ };
835
+ primaryKey: readonly [string, ...string[]];
836
+ } & {
837
+ primaryKey: ["id"];
838
+ };
839
+ readonly contact: {
840
+ name: "contact";
841
+ columns: {
842
+ readonly emailAddress: {
843
+ type: "string";
844
+ optional: false;
845
+ customType: string;
846
+ } & {
847
+ serverName: string;
848
+ };
849
+ readonly id: {
850
+ type: "string";
851
+ optional: false;
852
+ customType: string;
853
+ };
854
+ readonly name: Omit<{
855
+ type: "string";
856
+ optional: false;
857
+ customType: string;
858
+ }, "optional"> & {
859
+ optional: true;
860
+ };
861
+ readonly userId: {
862
+ type: "string";
863
+ optional: false;
864
+ customType: string;
865
+ } & {
866
+ serverName: string;
867
+ };
868
+ };
869
+ primaryKey: readonly [string, ...string[]];
870
+ } & {
871
+ primaryKey: ["id"];
872
+ };
873
+ readonly account: {
874
+ name: "account";
875
+ columns: {
876
+ readonly color: {
877
+ type: "string";
878
+ optional: false;
879
+ customType: string;
880
+ };
881
+ readonly displayName: Omit<{
882
+ type: "string";
883
+ optional: false;
884
+ customType: string;
885
+ }, "optional"> & {
886
+ optional: true;
887
+ } & {
888
+ serverName: string;
889
+ };
890
+ readonly id: {
891
+ type: "string";
892
+ optional: false;
893
+ customType: string;
894
+ };
895
+ readonly imapConnectionStatus: {
896
+ type: "string";
897
+ optional: false;
898
+ customType: "AWAITING_CONNECTION" | "CONNECTED" | "CONNECTION_FAILED_AUTHENTICATION_ERROR" | "CONNECTION_FAILED_CONNECTION_ERROR" | "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR" | "CONNECTION_FAILED_QUOTA_ERROR" | "CONNECTION_FAILED_UNKNOWN_ERROR";
899
+ } & {
900
+ serverName: string;
901
+ };
902
+ readonly mailProcessedCount: {
903
+ type: "number";
904
+ optional: false;
905
+ customType: number;
906
+ } & {
907
+ serverName: string;
908
+ };
909
+ readonly mailTotalCount: {
910
+ type: "number";
911
+ optional: false;
912
+ customType: number;
913
+ } & {
914
+ serverName: string;
915
+ };
916
+ readonly primaryAliasId: Omit<{
917
+ type: "string";
918
+ optional: false;
919
+ customType: string;
920
+ }, "optional"> & {
921
+ optional: true;
922
+ } & {
923
+ serverName: string;
924
+ };
925
+ readonly userId: {
926
+ type: "string";
927
+ optional: false;
928
+ customType: string;
929
+ } & {
930
+ serverName: string;
931
+ };
932
+ };
933
+ primaryKey: readonly [string, ...string[]];
934
+ } & {
935
+ primaryKey: ["id"];
936
+ };
937
+ readonly accountAlias: {
938
+ name: "accountAlias";
939
+ columns: {
940
+ readonly accountId: {
941
+ type: "string";
942
+ optional: false;
943
+ customType: string;
944
+ } & {
945
+ serverName: string;
946
+ };
947
+ readonly emailAddress: {
948
+ type: "string";
949
+ optional: false;
950
+ customType: string;
951
+ } & {
952
+ serverName: string;
953
+ };
954
+ readonly id: {
955
+ type: "string";
956
+ optional: false;
957
+ customType: string;
958
+ };
959
+ readonly isPrimary: {
960
+ type: "boolean";
961
+ optional: false;
962
+ customType: boolean;
963
+ } & {
964
+ serverName: string;
965
+ };
966
+ readonly name: Omit<{
967
+ type: "string";
968
+ optional: false;
969
+ customType: string;
970
+ }, "optional"> & {
971
+ optional: true;
972
+ };
973
+ };
974
+ primaryKey: readonly [string, ...string[]];
975
+ } & {
976
+ primaryKey: ["id"];
977
+ };
978
+ readonly accountLabel: {
979
+ name: "accountLabel";
980
+ columns: {
981
+ readonly accountId: {
982
+ type: "string";
983
+ optional: false;
984
+ customType: string;
985
+ } & {
986
+ serverName: string;
987
+ };
988
+ readonly id: {
989
+ type: "string";
990
+ optional: false;
991
+ customType: string;
992
+ };
993
+ readonly name: Omit<{
994
+ type: "string";
995
+ optional: false;
996
+ customType: string;
997
+ }, "optional"> & {
998
+ optional: true;
999
+ };
1000
+ readonly path: {
1001
+ type: "string";
1002
+ optional: false;
1003
+ customType: string;
1004
+ };
1005
+ readonly specialUse: Omit<{
1006
+ type: "string";
1007
+ optional: false;
1008
+ customType: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH";
1009
+ }, "optional"> & {
1010
+ optional: true;
1011
+ } & {
1012
+ serverName: string;
1013
+ };
1014
+ readonly uidValidity: {
1015
+ type: "number";
1016
+ optional: false;
1017
+ customType: number;
1018
+ } & {
1019
+ serverName: string;
1020
+ };
1021
+ readonly unreadCount: {
1022
+ type: "number";
1023
+ optional: false;
1024
+ customType: number;
1025
+ } & {
1026
+ serverName: string;
1027
+ };
1028
+ };
1029
+ primaryKey: readonly [string, ...string[]];
1030
+ } & {
1031
+ primaryKey: ["id"];
1032
+ };
1033
+ readonly draft: {
1034
+ name: "draft";
1035
+ columns: {
1036
+ readonly accountId: {
1037
+ type: "string";
1038
+ optional: false;
1039
+ customType: string;
1040
+ } & {
1041
+ serverName: string;
1042
+ };
1043
+ readonly body: {
1044
+ type: "json";
1045
+ optional: false;
1046
+ customType: {
1047
+ content: string;
1048
+ to: string[];
1049
+ cc: string[];
1050
+ bcc: string[];
1051
+ };
1052
+ };
1053
+ readonly error: Omit<{
1054
+ type: "string";
1055
+ optional: false;
1056
+ customType: string;
1057
+ }, "optional"> & {
1058
+ optional: true;
1059
+ };
1060
+ readonly fromAliasId: Omit<{
1061
+ type: "string";
1062
+ optional: false;
1063
+ customType: string;
1064
+ }, "optional"> & {
1065
+ optional: true;
1066
+ } & {
1067
+ serverName: string;
1068
+ };
1069
+ readonly fromEmail: {
1070
+ type: "string";
1071
+ optional: false;
1072
+ customType: string;
1073
+ } & {
1074
+ serverName: string;
1075
+ };
1076
+ readonly fromName: Omit<{
1077
+ type: "string";
1078
+ optional: false;
1079
+ customType: string;
1080
+ }, "optional"> & {
1081
+ optional: true;
1082
+ } & {
1083
+ serverName: string;
1084
+ };
1085
+ readonly id: {
1086
+ type: "string";
1087
+ optional: false;
1088
+ customType: string;
1089
+ };
1090
+ readonly referencedMessageId: Omit<{
1091
+ type: "string";
1092
+ optional: false;
1093
+ customType: string;
1094
+ }, "optional"> & {
1095
+ optional: true;
1096
+ } & {
1097
+ serverName: string;
1098
+ };
1099
+ readonly scheduledFor: Omit<{
1100
+ type: "number";
1101
+ optional: false;
1102
+ customType: number;
1103
+ }, "optional"> & {
1104
+ optional: true;
1105
+ } & {
1106
+ serverName: string;
1107
+ };
1108
+ readonly status: {
1109
+ type: "string";
1110
+ optional: false;
1111
+ customType: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
1112
+ };
1113
+ readonly subject: Omit<{
1114
+ type: "string";
1115
+ optional: false;
1116
+ customType: string;
1117
+ }, "optional"> & {
1118
+ optional: true;
1119
+ };
1120
+ readonly type: {
1121
+ type: "string";
1122
+ optional: false;
1123
+ customType: "NEW" | "REPLY" | "FORWARD";
1124
+ };
1125
+ readonly updatedAt: {
1126
+ type: "number";
1127
+ optional: false;
1128
+ customType: number;
1129
+ } & {
1130
+ serverName: string;
1131
+ };
1132
+ readonly userId: {
1133
+ type: "string";
1134
+ optional: false;
1135
+ customType: string;
1136
+ } & {
1137
+ serverName: string;
1138
+ };
1139
+ };
1140
+ primaryKey: readonly [string, ...string[]];
1141
+ } & {
1142
+ primaryKey: ["id"];
1143
+ };
1144
+ readonly thread: {
1145
+ name: "thread";
1146
+ columns: {
1147
+ readonly accountId: {
1148
+ type: "string";
1149
+ optional: false;
1150
+ customType: string;
1151
+ } & {
1152
+ serverName: string;
1153
+ };
1154
+ readonly flagged: {
1155
+ type: "boolean";
1156
+ optional: false;
1157
+ customType: boolean;
1158
+ };
1159
+ readonly hasAttachments: {
1160
+ type: "boolean";
1161
+ optional: false;
1162
+ customType: boolean;
1163
+ } & {
1164
+ serverName: string;
1165
+ };
1166
+ readonly id: {
1167
+ type: "string";
1168
+ optional: false;
1169
+ customType: string;
1170
+ };
1171
+ readonly labelIdList: {
1172
+ type: "string";
1173
+ optional: false;
1174
+ customType: string;
1175
+ } & {
1176
+ serverName: string;
1177
+ };
1178
+ readonly latestMessageDate: {
1179
+ type: "number";
1180
+ optional: false;
1181
+ customType: number;
1182
+ } & {
1183
+ serverName: string;
1184
+ };
1185
+ readonly latestMessageId: {
1186
+ type: "string";
1187
+ optional: false;
1188
+ customType: string;
1189
+ } & {
1190
+ serverName: string;
1191
+ };
1192
+ readonly messageCount: {
1193
+ type: "number";
1194
+ optional: false;
1195
+ customType: number;
1196
+ } & {
1197
+ serverName: string;
1198
+ };
1199
+ readonly previewText: {
1200
+ type: "string";
1201
+ optional: false;
1202
+ customType: string;
1203
+ } & {
1204
+ serverName: string;
1205
+ };
1206
+ readonly seen: {
1207
+ type: "boolean";
1208
+ optional: false;
1209
+ customType: boolean;
1210
+ };
1211
+ readonly senderEmail: {
1212
+ type: "string";
1213
+ optional: false;
1214
+ customType: string;
1215
+ } & {
1216
+ serverName: string;
1217
+ };
1218
+ readonly senderName: Omit<{
1219
+ type: "string";
1220
+ optional: false;
1221
+ customType: string;
1222
+ }, "optional"> & {
1223
+ optional: true;
1224
+ } & {
1225
+ serverName: string;
1226
+ };
1227
+ readonly subject: Omit<{
1228
+ type: "string";
1229
+ optional: false;
1230
+ customType: string;
1231
+ }, "optional"> & {
1232
+ optional: true;
1233
+ };
1234
+ readonly userId: {
1235
+ type: "string";
1236
+ optional: false;
1237
+ customType: string;
1238
+ } & {
1239
+ serverName: string;
1240
+ };
1241
+ readonly words: {
1242
+ type: "string";
1243
+ optional: false;
1244
+ customType: string;
1245
+ };
1246
+ };
1247
+ primaryKey: readonly [string, ...string[]];
1248
+ } & {
1249
+ primaryKey: ["id"];
1250
+ };
1251
+ readonly threadLabel: {
1252
+ name: "threadLabel";
1253
+ columns: {
1254
+ readonly accountId: {
1255
+ type: "string";
1256
+ optional: false;
1257
+ customType: string;
1258
+ } & {
1259
+ serverName: string;
1260
+ };
1261
+ readonly labelId: {
1262
+ type: "string";
1263
+ optional: false;
1264
+ customType: string;
1265
+ } & {
1266
+ serverName: string;
1267
+ };
1268
+ readonly lastSyncedAt: {
1269
+ type: "number";
1270
+ optional: false;
1271
+ customType: number;
1272
+ } & {
1273
+ serverName: string;
1274
+ };
1275
+ readonly threadId: {
1276
+ type: "string";
1277
+ optional: false;
1278
+ customType: string;
1279
+ } & {
1280
+ serverName: string;
1281
+ };
1282
+ readonly threadMessageId: {
1283
+ type: "string";
1284
+ optional: false;
1285
+ customType: string;
1286
+ } & {
1287
+ serverName: string;
1288
+ };
1289
+ readonly uid: {
1290
+ type: "number";
1291
+ optional: false;
1292
+ customType: number;
1293
+ };
1294
+ readonly uidValidity: {
1295
+ type: "number";
1296
+ optional: false;
1297
+ customType: number;
1298
+ } & {
1299
+ serverName: string;
1300
+ };
1301
+ };
1302
+ primaryKey: readonly [string, ...string[]];
1303
+ } & {
1304
+ primaryKey: ["accountId", "labelId", "threadMessageId"];
1305
+ };
1306
+ readonly threadByLabel: {
1307
+ name: "threadByLabel";
1308
+ columns: {
1309
+ readonly labelId: {
1310
+ type: "string";
1311
+ optional: false;
1312
+ customType: string;
1313
+ } & {
1314
+ serverName: string;
1315
+ };
1316
+ readonly latestMessageDate: {
1317
+ type: "number";
1318
+ optional: false;
1319
+ customType: number;
1320
+ } & {
1321
+ serverName: string;
1322
+ };
1323
+ readonly threadId: {
1324
+ type: "string";
1325
+ optional: false;
1326
+ customType: string;
1327
+ } & {
1328
+ serverName: string;
1329
+ };
1330
+ };
1331
+ primaryKey: readonly [string, ...string[]];
1332
+ } & {
1333
+ primaryKey: ["labelId", "threadId"];
1334
+ };
1335
+ readonly threadMessage: {
1336
+ name: "threadMessage";
1337
+ columns: {
1338
+ readonly accountId: {
1339
+ type: "string";
1340
+ optional: false;
1341
+ customType: string;
1342
+ } & {
1343
+ serverName: string;
1344
+ };
1345
+ readonly envelopeDate: {
1346
+ type: "number";
1347
+ optional: false;
1348
+ customType: number;
1349
+ } & {
1350
+ serverName: string;
1351
+ };
1352
+ readonly envelopeSubject: Omit<{
1353
+ type: "string";
1354
+ optional: false;
1355
+ customType: string;
1356
+ }, "optional"> & {
1357
+ optional: true;
1358
+ } & {
1359
+ serverName: string;
1360
+ };
1361
+ readonly id: {
1362
+ type: "string";
1363
+ optional: false;
1364
+ customType: string;
1365
+ };
1366
+ readonly previewText: {
1367
+ type: "string";
1368
+ optional: false;
1369
+ customType: string;
1370
+ } & {
1371
+ serverName: string;
1372
+ };
1373
+ readonly senderEmail: {
1374
+ type: "string";
1375
+ optional: false;
1376
+ customType: string;
1377
+ } & {
1378
+ serverName: string;
1379
+ };
1380
+ readonly senderName: Omit<{
1381
+ type: "string";
1382
+ optional: false;
1383
+ customType: string;
1384
+ }, "optional"> & {
1385
+ optional: true;
1386
+ } & {
1387
+ serverName: string;
1388
+ };
1389
+ readonly threadId: {
1390
+ type: "string";
1391
+ optional: false;
1392
+ customType: string;
1393
+ } & {
1394
+ serverName: string;
1395
+ };
1396
+ };
1397
+ primaryKey: readonly [string, ...string[]];
1398
+ } & {
1399
+ primaryKey: ["id"];
1400
+ };
1401
+ readonly threadMessageRecipient: {
1402
+ name: "threadMessageRecipient";
1403
+ columns: {
1404
+ readonly emailAddress: {
1405
+ type: "string";
1406
+ optional: false;
1407
+ customType: string;
1408
+ } & {
1409
+ serverName: string;
1410
+ };
1411
+ readonly id: {
1412
+ type: "string";
1413
+ optional: false;
1414
+ customType: string;
1415
+ };
1416
+ readonly name: Omit<{
1417
+ type: "string";
1418
+ optional: false;
1419
+ customType: string;
1420
+ }, "optional"> & {
1421
+ optional: true;
1422
+ };
1423
+ readonly threadMessageId: {
1424
+ type: "string";
1425
+ optional: false;
1426
+ customType: string;
1427
+ } & {
1428
+ serverName: string;
1429
+ };
1430
+ readonly type: {
1431
+ type: "string";
1432
+ optional: false;
1433
+ customType: "bcc" | "cc" | "to" | "replyTo";
1434
+ };
1435
+ };
1436
+ primaryKey: readonly [string, ...string[]];
1437
+ } & {
1438
+ primaryKey: ["id"];
1439
+ };
1440
+ readonly threadMessageAttachment: {
1441
+ name: "threadMessageAttachment";
1442
+ columns: {
1443
+ readonly fileName: {
1444
+ type: "string";
1445
+ optional: false;
1446
+ customType: string;
1447
+ } & {
1448
+ serverName: string;
1449
+ };
1450
+ readonly id: {
1451
+ type: "string";
1452
+ optional: false;
1453
+ customType: string;
1454
+ };
1455
+ readonly mimeType: {
1456
+ type: "string";
1457
+ optional: false;
1458
+ customType: string;
1459
+ } & {
1460
+ serverName: string;
1461
+ };
1462
+ readonly size: {
1463
+ type: "number";
1464
+ optional: false;
1465
+ customType: number;
1466
+ };
1467
+ readonly threadMessageId: {
1468
+ type: "string";
1469
+ optional: false;
1470
+ customType: string;
1471
+ } & {
1472
+ serverName: string;
1473
+ };
1474
+ };
1475
+ primaryKey: readonly [string, ...string[]];
1476
+ } & {
1477
+ primaryKey: ["id"];
1478
+ };
1479
+ };
1480
+ relationships: {
1481
+ readonly user: {
1482
+ accounts: [{
1483
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1484
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1485
+ readonly destSchema: "account";
1486
+ readonly cardinality: "many";
1487
+ }];
1488
+ contacts: [{
1489
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1490
+ readonly destField: readonly ("id" | "name" | "userId" | "emailAddress")[];
1491
+ readonly destSchema: "contact";
1492
+ readonly cardinality: "many";
1493
+ }];
1494
+ drafts: [{
1495
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1496
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
1497
+ readonly destSchema: "draft";
1498
+ readonly cardinality: "many";
1499
+ }];
1500
+ pushNotificationTokens: [{
1501
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1502
+ readonly destField: readonly ("createdAt" | "id" | "token" | "userId")[];
1503
+ readonly destSchema: "userPushNotificationToken";
1504
+ readonly cardinality: "many";
1505
+ }];
1506
+ threads: [{
1507
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1508
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1509
+ readonly destSchema: "thread";
1510
+ readonly cardinality: "many";
1511
+ }];
1512
+ };
1513
+ readonly draftAttachment: {
1514
+ draft: [{
1515
+ readonly sourceField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
1516
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
1517
+ readonly destSchema: "draft";
1518
+ readonly cardinality: "one";
1519
+ }];
1520
+ };
1521
+ readonly userPushNotificationToken: {
1522
+ user: [{
1523
+ readonly sourceField: readonly ("createdAt" | "id" | "token" | "userId")[];
1524
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1525
+ readonly destSchema: "user";
1526
+ readonly cardinality: "one";
1527
+ }];
1528
+ };
1529
+ readonly contact: {
1530
+ user: [{
1531
+ readonly sourceField: readonly ("id" | "name" | "userId" | "emailAddress")[];
1532
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1533
+ readonly destSchema: "user";
1534
+ readonly cardinality: "one";
1535
+ }];
1536
+ };
1537
+ readonly account: {
1538
+ aliases: [{
1539
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1540
+ readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
1541
+ readonly destSchema: "accountAlias";
1542
+ readonly cardinality: "many";
1543
+ }];
1544
+ drafts: [{
1545
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1546
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
1547
+ readonly destSchema: "draft";
1548
+ readonly cardinality: "many";
1549
+ }];
1550
+ labels: [{
1551
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1552
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1553
+ readonly destSchema: "accountLabel";
1554
+ readonly cardinality: "many";
1555
+ }];
1556
+ primaryAlias: [{
1557
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1558
+ readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
1559
+ readonly destSchema: "accountAlias";
1560
+ readonly cardinality: "one";
1561
+ }];
1562
+ threads: [{
1563
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1564
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1565
+ readonly destSchema: "thread";
1566
+ readonly cardinality: "many";
1567
+ }];
1568
+ user: [{
1569
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1570
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1571
+ readonly destSchema: "user";
1572
+ readonly cardinality: "one";
1573
+ }];
1574
+ };
1575
+ readonly accountAlias: {
1576
+ account: [{
1577
+ readonly sourceField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
1578
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1579
+ readonly destSchema: "account";
1580
+ readonly cardinality: "one";
1581
+ }];
1582
+ };
1583
+ readonly accountLabel: {
1584
+ account: [{
1585
+ readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1586
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1587
+ readonly destSchema: "account";
1588
+ readonly cardinality: "one";
1589
+ }];
1590
+ threads: [{
1591
+ readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1592
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1593
+ readonly destSchema: "threadLabel";
1594
+ readonly cardinality: "many";
1595
+ }, {
1596
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1597
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1598
+ readonly destSchema: "thread";
1599
+ readonly cardinality: "many";
1600
+ }];
1601
+ };
1602
+ readonly draft: {
1603
+ account: [{
1604
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
1605
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1606
+ readonly destSchema: "account";
1607
+ readonly cardinality: "one";
1608
+ }];
1609
+ attachments: [{
1610
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
1611
+ readonly destField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
1612
+ readonly destSchema: "draftAttachment";
1613
+ readonly cardinality: "many";
1614
+ }];
1615
+ user: [{
1616
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
1617
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1618
+ readonly destSchema: "user";
1619
+ readonly cardinality: "one";
1620
+ }];
1621
+ };
1622
+ readonly thread: {
1623
+ account: [{
1624
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1625
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
1626
+ readonly destSchema: "account";
1627
+ readonly cardinality: "one";
1628
+ }];
1629
+ labels: [{
1630
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1631
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1632
+ readonly destSchema: "threadLabel";
1633
+ readonly cardinality: "many";
1634
+ }, {
1635
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1636
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1637
+ readonly destSchema: "accountLabel";
1638
+ readonly cardinality: "many";
1639
+ }];
1640
+ messages: [{
1641
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1642
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1643
+ readonly destSchema: "threadMessage";
1644
+ readonly cardinality: "many";
1645
+ }];
1646
+ threadByLabel: [{
1647
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1648
+ readonly destField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
1649
+ readonly destSchema: "threadByLabel";
1650
+ readonly cardinality: "many";
1651
+ }];
1652
+ user: [{
1653
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1654
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
1655
+ readonly destSchema: "user";
1656
+ readonly cardinality: "one";
1657
+ }];
1658
+ };
1659
+ readonly threadLabel: {
1660
+ label: [{
1661
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1662
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1663
+ readonly destSchema: "accountLabel";
1664
+ readonly cardinality: "one";
1665
+ }];
1666
+ message: [{
1667
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1668
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1669
+ readonly destSchema: "threadMessage";
1670
+ readonly cardinality: "one";
1671
+ }];
1672
+ thread: [{
1673
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1674
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1675
+ readonly destSchema: "thread";
1676
+ readonly cardinality: "one";
1677
+ }];
1678
+ };
1679
+ readonly threadByLabel: {
1680
+ label: [{
1681
+ readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
1682
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1683
+ readonly destSchema: "accountLabel";
1684
+ readonly cardinality: "one";
1685
+ }];
1686
+ thread: [{
1687
+ readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
1688
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1689
+ readonly destSchema: "thread";
1690
+ readonly cardinality: "one";
1691
+ }];
1692
+ };
1693
+ readonly threadMessage: {
1694
+ attachments: [{
1695
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1696
+ readonly destField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
1697
+ readonly destSchema: "threadMessageAttachment";
1698
+ readonly cardinality: "many";
1699
+ }];
1700
+ labels: [{
1701
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1702
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1703
+ readonly destSchema: "threadLabel";
1704
+ readonly cardinality: "many";
1705
+ }, {
1706
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
1707
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1708
+ readonly destSchema: "accountLabel";
1709
+ readonly cardinality: "many";
1710
+ }];
1711
+ recipients: [{
1712
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1713
+ readonly destField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
1714
+ readonly destSchema: "threadMessageRecipient";
1715
+ readonly cardinality: "many";
1716
+ }];
1717
+ thread: [{
1718
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1719
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
1720
+ readonly destSchema: "thread";
1721
+ readonly cardinality: "one";
1722
+ }];
1723
+ };
1724
+ readonly threadMessageRecipient: {
1725
+ message: [{
1726
+ readonly sourceField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
1727
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1728
+ readonly destSchema: "threadMessage";
1729
+ readonly cardinality: "one";
1730
+ }];
1731
+ };
1732
+ readonly threadMessageAttachment: {
1733
+ message: [{
1734
+ readonly sourceField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
1735
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
1736
+ readonly destSchema: "threadMessage";
1737
+ readonly cardinality: "one";
1738
+ }];
1739
+ };
1740
+ };
1741
+ enableLegacyQueries: boolean | undefined;
1742
+ enableLegacyMutators: boolean | undefined;
1743
+ }>;
722
1744
  readonly queries: {
723
1745
  readonly getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccounts", import("..").MarcoSyncedQueryContext, true, [], import("@rocicorp/zero").Query<"account", {
724
1746
  tables: {