@marcoappio/marco-config 2.0.471 → 2.0.473

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.
@@ -874,6 +874,35 @@ export declare const marcoZero: {
874
874
  } & {
875
875
  primaryKey: ["accountId", "labelId", "threadMessageId"];
876
876
  };
877
+ readonly threadByLabel: {
878
+ name: "threadByLabel";
879
+ columns: {
880
+ readonly labelId: {
881
+ type: "string";
882
+ optional: false;
883
+ customType: string;
884
+ } & {
885
+ serverName: string;
886
+ };
887
+ readonly latestMessageDate: {
888
+ type: "number";
889
+ optional: false;
890
+ customType: number;
891
+ } & {
892
+ serverName: string;
893
+ };
894
+ readonly threadId: {
895
+ type: "string";
896
+ optional: false;
897
+ customType: string;
898
+ } & {
899
+ serverName: string;
900
+ };
901
+ };
902
+ primaryKey: readonly [string, ...string[]];
903
+ } & {
904
+ primaryKey: ["labelId", "threadId"];
905
+ };
877
906
  readonly threadMessage: {
878
907
  name: "threadMessage";
879
908
  columns: {
@@ -1185,6 +1214,12 @@ export declare const marcoZero: {
1185
1214
  readonly destSchema: "threadMessage";
1186
1215
  readonly cardinality: "many";
1187
1216
  }];
1217
+ threadByLabel: [{
1218
+ readonly sourceField: string[];
1219
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
1220
+ readonly destSchema: "threadByLabel";
1221
+ readonly cardinality: "many";
1222
+ }];
1188
1223
  user: [{
1189
1224
  readonly sourceField: string[];
1190
1225
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -1212,6 +1247,20 @@ export declare const marcoZero: {
1212
1247
  readonly cardinality: "one";
1213
1248
  }];
1214
1249
  };
1250
+ readonly threadByLabel: {
1251
+ label: [{
1252
+ readonly sourceField: string[];
1253
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
1254
+ readonly destSchema: "accountLabel";
1255
+ readonly cardinality: "one";
1256
+ }];
1257
+ thread: [{
1258
+ readonly sourceField: string[];
1259
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
1260
+ readonly destSchema: "thread";
1261
+ readonly cardinality: "one";
1262
+ }];
1263
+ };
1215
1264
  readonly threadMessage: {
1216
1265
  attachments: [{
1217
1266
  readonly sourceField: string[];
@@ -1840,6 +1889,35 @@ export declare const marcoZero: {
1840
1889
  } & {
1841
1890
  primaryKey: ["accountId", "labelId", "threadMessageId"];
1842
1891
  };
1892
+ readonly threadByLabel: {
1893
+ name: "threadByLabel";
1894
+ columns: {
1895
+ readonly labelId: {
1896
+ type: "string";
1897
+ optional: false;
1898
+ customType: string;
1899
+ } & {
1900
+ serverName: string;
1901
+ };
1902
+ readonly latestMessageDate: {
1903
+ type: "number";
1904
+ optional: false;
1905
+ customType: number;
1906
+ } & {
1907
+ serverName: string;
1908
+ };
1909
+ readonly threadId: {
1910
+ type: "string";
1911
+ optional: false;
1912
+ customType: string;
1913
+ } & {
1914
+ serverName: string;
1915
+ };
1916
+ };
1917
+ primaryKey: readonly [string, ...string[]];
1918
+ } & {
1919
+ primaryKey: ["labelId", "threadId"];
1920
+ };
1843
1921
  readonly threadMessage: {
1844
1922
  name: "threadMessage";
1845
1923
  columns: {
@@ -2151,6 +2229,12 @@ export declare const marcoZero: {
2151
2229
  readonly destSchema: "threadMessage";
2152
2230
  readonly cardinality: "many";
2153
2231
  }];
2232
+ threadByLabel: [{
2233
+ readonly sourceField: string[];
2234
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
2235
+ readonly destSchema: "threadByLabel";
2236
+ readonly cardinality: "many";
2237
+ }];
2154
2238
  user: [{
2155
2239
  readonly sourceField: string[];
2156
2240
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -2178,6 +2262,20 @@ export declare const marcoZero: {
2178
2262
  readonly cardinality: "one";
2179
2263
  }];
2180
2264
  };
2265
+ readonly threadByLabel: {
2266
+ label: [{
2267
+ readonly sourceField: string[];
2268
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
2269
+ readonly destSchema: "accountLabel";
2270
+ readonly cardinality: "one";
2271
+ }];
2272
+ thread: [{
2273
+ readonly sourceField: string[];
2274
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
2275
+ readonly destSchema: "thread";
2276
+ readonly cardinality: "one";
2277
+ }];
2278
+ };
2181
2279
  readonly threadMessage: {
2182
2280
  attachments: [{
2183
2281
  readonly sourceField: string[];
@@ -2772,6 +2870,35 @@ export declare const marcoZero: {
2772
2870
  } & {
2773
2871
  primaryKey: ["accountId", "labelId", "threadMessageId"];
2774
2872
  };
2873
+ readonly threadByLabel: {
2874
+ name: "threadByLabel";
2875
+ columns: {
2876
+ readonly labelId: {
2877
+ type: "string";
2878
+ optional: false;
2879
+ customType: string;
2880
+ } & {
2881
+ serverName: string;
2882
+ };
2883
+ readonly latestMessageDate: {
2884
+ type: "number";
2885
+ optional: false;
2886
+ customType: number;
2887
+ } & {
2888
+ serverName: string;
2889
+ };
2890
+ readonly threadId: {
2891
+ type: "string";
2892
+ optional: false;
2893
+ customType: string;
2894
+ } & {
2895
+ serverName: string;
2896
+ };
2897
+ };
2898
+ primaryKey: readonly [string, ...string[]];
2899
+ } & {
2900
+ primaryKey: ["labelId", "threadId"];
2901
+ };
2775
2902
  readonly threadMessage: {
2776
2903
  name: "threadMessage";
2777
2904
  columns: {
@@ -3083,6 +3210,12 @@ export declare const marcoZero: {
3083
3210
  readonly destSchema: "threadMessage";
3084
3211
  readonly cardinality: "many";
3085
3212
  }];
3213
+ threadByLabel: [{
3214
+ readonly sourceField: string[];
3215
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
3216
+ readonly destSchema: "threadByLabel";
3217
+ readonly cardinality: "many";
3218
+ }];
3086
3219
  user: [{
3087
3220
  readonly sourceField: string[];
3088
3221
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -3110,6 +3243,20 @@ export declare const marcoZero: {
3110
3243
  readonly cardinality: "one";
3111
3244
  }];
3112
3245
  };
3246
+ readonly threadByLabel: {
3247
+ label: [{
3248
+ readonly sourceField: string[];
3249
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
3250
+ readonly destSchema: "accountLabel";
3251
+ readonly cardinality: "one";
3252
+ }];
3253
+ thread: [{
3254
+ readonly sourceField: string[];
3255
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
3256
+ readonly destSchema: "thread";
3257
+ readonly cardinality: "one";
3258
+ }];
3259
+ };
3113
3260
  readonly threadMessage: {
3114
3261
  attachments: [{
3115
3262
  readonly sourceField: string[];
@@ -3735,6 +3882,35 @@ export declare const marcoZero: {
3735
3882
  } & {
3736
3883
  primaryKey: ["accountId", "labelId", "threadMessageId"];
3737
3884
  };
3885
+ readonly threadByLabel: {
3886
+ name: "threadByLabel";
3887
+ columns: {
3888
+ readonly labelId: {
3889
+ type: "string";
3890
+ optional: false;
3891
+ customType: string;
3892
+ } & {
3893
+ serverName: string;
3894
+ };
3895
+ readonly latestMessageDate: {
3896
+ type: "number";
3897
+ optional: false;
3898
+ customType: number;
3899
+ } & {
3900
+ serverName: string;
3901
+ };
3902
+ readonly threadId: {
3903
+ type: "string";
3904
+ optional: false;
3905
+ customType: string;
3906
+ } & {
3907
+ serverName: string;
3908
+ };
3909
+ };
3910
+ primaryKey: readonly [string, ...string[]];
3911
+ } & {
3912
+ primaryKey: ["labelId", "threadId"];
3913
+ };
3738
3914
  readonly threadMessage: {
3739
3915
  name: "threadMessage";
3740
3916
  columns: {
@@ -4046,6 +4222,12 @@ export declare const marcoZero: {
4046
4222
  readonly destSchema: "threadMessage";
4047
4223
  readonly cardinality: "many";
4048
4224
  }];
4225
+ threadByLabel: [{
4226
+ readonly sourceField: string[];
4227
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
4228
+ readonly destSchema: "threadByLabel";
4229
+ readonly cardinality: "many";
4230
+ }];
4049
4231
  user: [{
4050
4232
  readonly sourceField: string[];
4051
4233
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -4073,6 +4255,20 @@ export declare const marcoZero: {
4073
4255
  readonly cardinality: "one";
4074
4256
  }];
4075
4257
  };
4258
+ readonly threadByLabel: {
4259
+ label: [{
4260
+ readonly sourceField: string[];
4261
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
4262
+ readonly destSchema: "accountLabel";
4263
+ readonly cardinality: "one";
4264
+ }];
4265
+ thread: [{
4266
+ readonly sourceField: string[];
4267
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
4268
+ readonly destSchema: "thread";
4269
+ readonly cardinality: "one";
4270
+ }];
4271
+ };
4076
4272
  readonly threadMessage: {
4077
4273
  attachments: [{
4078
4274
  readonly sourceField: string[];
@@ -4123,47 +4319,41 @@ export declare const marcoZero: {
4123
4319
  };
4124
4320
  enableLegacyQueries: boolean | undefined;
4125
4321
  enableLegacyMutators: false;
4126
- }, "thread", {
4127
- readonly accountId: string;
4128
- readonly flagged: boolean;
4129
- readonly id: string;
4130
- readonly labelIdList: string;
4322
+ }, "threadByLabel", {
4323
+ readonly labelId: string;
4131
4324
  readonly latestMessageDate: number;
4132
- readonly seen: boolean;
4133
- readonly userId: string;
4134
- readonly words: string;
4325
+ readonly threadId: string;
4135
4326
  } & {
4136
- readonly messages: readonly ({
4327
+ readonly thread: ({
4137
4328
  readonly accountId: string;
4138
- readonly envelopeDate: number;
4139
- readonly envelopeSubject: string | null;
4329
+ readonly flagged: boolean;
4140
4330
  readonly id: string;
4141
- readonly previewText: string;
4142
- readonly senderEmail: string;
4143
- readonly senderName: string | null;
4144
- readonly threadId: string;
4331
+ readonly labelIdList: string;
4332
+ readonly latestMessageDate: number;
4333
+ readonly seen: boolean;
4334
+ readonly userId: string;
4335
+ readonly words: string;
4145
4336
  } & {
4146
- readonly attachments: readonly {
4147
- readonly fileName: string;
4337
+ readonly messages: readonly ({
4338
+ readonly accountId: string;
4339
+ readonly envelopeDate: number;
4340
+ readonly envelopeSubject: string | null;
4148
4341
  readonly id: string;
4149
- readonly mimeType: string;
4150
- readonly size: number;
4151
- readonly threadMessageId: string;
4152
- }[];
4153
- })[];
4154
- }>>;
4155
- readonly getThreads: import("@rocicorp/zero").SyncedQuery<"getThreads", import("..").MarcoSyncedQueryContext, true, [{
4156
- limit: number;
4157
- search?: string;
4158
- where?: {
4159
- flagged?: boolean;
4160
- id?: string;
4161
- labelIds?: string[];
4162
- messageIds?: string[];
4163
- participants?: string[];
4164
- seen?: boolean;
4165
- };
4166
- }], import("@rocicorp/zero").Query<{
4342
+ readonly previewText: string;
4343
+ readonly senderEmail: string;
4344
+ readonly senderName: string | null;
4345
+ readonly threadId: string;
4346
+ } & {
4347
+ readonly attachments: readonly {
4348
+ readonly fileName: string;
4349
+ readonly id: string;
4350
+ readonly mimeType: string;
4351
+ readonly size: number;
4352
+ readonly threadMessageId: string;
4353
+ }[];
4354
+ })[];
4355
+ }) | undefined;
4356
+ }> | import("@rocicorp/zero").Query<{
4167
4357
  tables: {
4168
4358
  readonly user: {
4169
4359
  name: "user";
@@ -4697,6 +4887,35 @@ export declare const marcoZero: {
4697
4887
  } & {
4698
4888
  primaryKey: ["accountId", "labelId", "threadMessageId"];
4699
4889
  };
4890
+ readonly threadByLabel: {
4891
+ name: "threadByLabel";
4892
+ columns: {
4893
+ readonly labelId: {
4894
+ type: "string";
4895
+ optional: false;
4896
+ customType: string;
4897
+ } & {
4898
+ serverName: string;
4899
+ };
4900
+ readonly latestMessageDate: {
4901
+ type: "number";
4902
+ optional: false;
4903
+ customType: number;
4904
+ } & {
4905
+ serverName: string;
4906
+ };
4907
+ readonly threadId: {
4908
+ type: "string";
4909
+ optional: false;
4910
+ customType: string;
4911
+ } & {
4912
+ serverName: string;
4913
+ };
4914
+ };
4915
+ primaryKey: readonly [string, ...string[]];
4916
+ } & {
4917
+ primaryKey: ["labelId", "threadId"];
4918
+ };
4700
4919
  readonly threadMessage: {
4701
4920
  name: "threadMessage";
4702
4921
  columns: {
@@ -5008,6 +5227,12 @@ export declare const marcoZero: {
5008
5227
  readonly destSchema: "threadMessage";
5009
5228
  readonly cardinality: "many";
5010
5229
  }];
5230
+ threadByLabel: [{
5231
+ readonly sourceField: string[];
5232
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
5233
+ readonly destSchema: "threadByLabel";
5234
+ readonly cardinality: "many";
5235
+ }];
5011
5236
  user: [{
5012
5237
  readonly sourceField: string[];
5013
5238
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -5035,6 +5260,20 @@ export declare const marcoZero: {
5035
5260
  readonly cardinality: "one";
5036
5261
  }];
5037
5262
  };
5263
+ readonly threadByLabel: {
5264
+ label: [{
5265
+ readonly sourceField: string[];
5266
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
5267
+ readonly destSchema: "accountLabel";
5268
+ readonly cardinality: "one";
5269
+ }];
5270
+ thread: [{
5271
+ readonly sourceField: string[];
5272
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
5273
+ readonly destSchema: "thread";
5274
+ readonly cardinality: "one";
5275
+ }];
5276
+ };
5038
5277
  readonly threadMessage: {
5039
5278
  attachments: [{
5040
5279
  readonly sourceField: string[];
@@ -5104,14 +5343,6 @@ export declare const marcoZero: {
5104
5343
  readonly senderEmail: string;
5105
5344
  readonly senderName: string | null;
5106
5345
  readonly threadId: string;
5107
- } & {
5108
- readonly recipients: readonly {
5109
- readonly emailAddress: string;
5110
- readonly id: string;
5111
- readonly name: string | null;
5112
- readonly threadMessageId: string;
5113
- readonly type: "bcc" | "cc" | "to" | "replyTo";
5114
- }[];
5115
5346
  } & {
5116
5347
  readonly attachments: readonly {
5117
5348
  readonly fileName: string;
@@ -5122,7 +5353,2039 @@ export declare const marcoZero: {
5122
5353
  }[];
5123
5354
  })[];
5124
5355
  }>>;
5125
- readonly getUser: import("@rocicorp/zero").SyncedQuery<"getUser", import("..").MarcoSyncedQueryContext, true, [], import("@rocicorp/zero").Query<{
5356
+ readonly getThreads: import("@rocicorp/zero").SyncedQuery<"getThreads", import("..").MarcoSyncedQueryContext, true, [{
5357
+ limit: number;
5358
+ search?: string;
5359
+ where?: {
5360
+ flagged?: boolean;
5361
+ id?: string;
5362
+ labelIds?: string[];
5363
+ messageIds?: string[];
5364
+ participants?: string[];
5365
+ seen?: boolean;
5366
+ };
5367
+ }], import("@rocicorp/zero").Query<{
5368
+ tables: {
5369
+ readonly user: {
5370
+ name: "user";
5371
+ columns: {
5372
+ readonly id: {
5373
+ type: "string";
5374
+ optional: false;
5375
+ customType: string;
5376
+ };
5377
+ readonly name: Omit<{
5378
+ type: "string";
5379
+ optional: false;
5380
+ customType: string;
5381
+ }, "optional"> & {
5382
+ optional: true;
5383
+ };
5384
+ readonly profilePicture: Omit<{
5385
+ type: "string";
5386
+ optional: false;
5387
+ customType: string;
5388
+ }, "optional"> & {
5389
+ optional: true;
5390
+ } & {
5391
+ serverName: string;
5392
+ };
5393
+ readonly undoSendEnabled: {
5394
+ type: "boolean";
5395
+ optional: false;
5396
+ customType: boolean;
5397
+ } & {
5398
+ serverName: string;
5399
+ };
5400
+ };
5401
+ primaryKey: readonly [string, ...string[]];
5402
+ } & {
5403
+ primaryKey: ["id"];
5404
+ };
5405
+ readonly userPushNotificationToken: {
5406
+ name: "userPushNotificationToken";
5407
+ columns: {
5408
+ readonly createdAt: {
5409
+ type: "number";
5410
+ optional: false;
5411
+ customType: number;
5412
+ } & {
5413
+ serverName: string;
5414
+ };
5415
+ readonly id: {
5416
+ type: "string";
5417
+ optional: false;
5418
+ customType: string;
5419
+ };
5420
+ readonly token: {
5421
+ type: "string";
5422
+ optional: false;
5423
+ customType: string;
5424
+ };
5425
+ readonly userId: {
5426
+ type: "string";
5427
+ optional: false;
5428
+ customType: string;
5429
+ } & {
5430
+ serverName: string;
5431
+ };
5432
+ };
5433
+ primaryKey: readonly [string, ...string[]];
5434
+ } & {
5435
+ primaryKey: ["id"];
5436
+ };
5437
+ readonly contact: {
5438
+ name: "contact";
5439
+ columns: {
5440
+ readonly emailAddress: {
5441
+ type: "string";
5442
+ optional: false;
5443
+ customType: string;
5444
+ } & {
5445
+ serverName: string;
5446
+ };
5447
+ readonly id: {
5448
+ type: "string";
5449
+ optional: false;
5450
+ customType: string;
5451
+ };
5452
+ readonly name: Omit<{
5453
+ type: "string";
5454
+ optional: false;
5455
+ customType: string;
5456
+ }, "optional"> & {
5457
+ optional: true;
5458
+ };
5459
+ readonly userId: {
5460
+ type: "string";
5461
+ optional: false;
5462
+ customType: string;
5463
+ } & {
5464
+ serverName: string;
5465
+ };
5466
+ };
5467
+ primaryKey: readonly [string, ...string[]];
5468
+ } & {
5469
+ primaryKey: ["id"];
5470
+ };
5471
+ readonly account: {
5472
+ name: "account";
5473
+ columns: {
5474
+ readonly color: {
5475
+ type: "string";
5476
+ optional: false;
5477
+ customType: string;
5478
+ };
5479
+ readonly displayName: Omit<{
5480
+ type: "string";
5481
+ optional: false;
5482
+ customType: string;
5483
+ }, "optional"> & {
5484
+ optional: true;
5485
+ } & {
5486
+ serverName: string;
5487
+ };
5488
+ readonly id: {
5489
+ type: "string";
5490
+ optional: false;
5491
+ customType: string;
5492
+ };
5493
+ readonly imapConnectionStatus: {
5494
+ type: "string";
5495
+ optional: false;
5496
+ 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";
5497
+ } & {
5498
+ serverName: string;
5499
+ };
5500
+ readonly mailProcessedCount: {
5501
+ type: "number";
5502
+ optional: false;
5503
+ customType: number;
5504
+ } & {
5505
+ serverName: string;
5506
+ };
5507
+ readonly mailTotalCount: {
5508
+ type: "number";
5509
+ optional: false;
5510
+ customType: number;
5511
+ } & {
5512
+ serverName: string;
5513
+ };
5514
+ readonly primaryAliasId: Omit<{
5515
+ type: "string";
5516
+ optional: false;
5517
+ customType: string;
5518
+ }, "optional"> & {
5519
+ optional: true;
5520
+ } & {
5521
+ serverName: string;
5522
+ };
5523
+ readonly userId: {
5524
+ type: "string";
5525
+ optional: false;
5526
+ customType: string;
5527
+ } & {
5528
+ serverName: string;
5529
+ };
5530
+ };
5531
+ primaryKey: readonly [string, ...string[]];
5532
+ } & {
5533
+ primaryKey: ["id"];
5534
+ };
5535
+ readonly accountAlias: {
5536
+ name: "accountAlias";
5537
+ columns: {
5538
+ readonly accountId: {
5539
+ type: "string";
5540
+ optional: false;
5541
+ customType: string;
5542
+ } & {
5543
+ serverName: string;
5544
+ };
5545
+ readonly emailAddress: {
5546
+ type: "string";
5547
+ optional: false;
5548
+ customType: string;
5549
+ } & {
5550
+ serverName: string;
5551
+ };
5552
+ readonly id: {
5553
+ type: "string";
5554
+ optional: false;
5555
+ customType: string;
5556
+ };
5557
+ readonly isPrimary: {
5558
+ type: "boolean";
5559
+ optional: false;
5560
+ customType: boolean;
5561
+ } & {
5562
+ serverName: string;
5563
+ };
5564
+ readonly name: Omit<{
5565
+ type: "string";
5566
+ optional: false;
5567
+ customType: string;
5568
+ }, "optional"> & {
5569
+ optional: true;
5570
+ };
5571
+ };
5572
+ primaryKey: readonly [string, ...string[]];
5573
+ } & {
5574
+ primaryKey: ["id"];
5575
+ };
5576
+ readonly accountLabel: {
5577
+ name: "accountLabel";
5578
+ columns: {
5579
+ readonly accountId: {
5580
+ type: "string";
5581
+ optional: false;
5582
+ customType: string;
5583
+ } & {
5584
+ serverName: string;
5585
+ };
5586
+ readonly id: {
5587
+ type: "string";
5588
+ optional: false;
5589
+ customType: string;
5590
+ };
5591
+ readonly name: Omit<{
5592
+ type: "string";
5593
+ optional: false;
5594
+ customType: string;
5595
+ }, "optional"> & {
5596
+ optional: true;
5597
+ };
5598
+ readonly path: {
5599
+ type: "string";
5600
+ optional: false;
5601
+ customType: string;
5602
+ };
5603
+ readonly specialUse: Omit<{
5604
+ type: "string";
5605
+ optional: false;
5606
+ customType: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH";
5607
+ }, "optional"> & {
5608
+ optional: true;
5609
+ } & {
5610
+ serverName: string;
5611
+ };
5612
+ readonly uidValidity: {
5613
+ type: "number";
5614
+ optional: false;
5615
+ customType: number;
5616
+ } & {
5617
+ serverName: string;
5618
+ };
5619
+ readonly unreadCount: {
5620
+ type: "number";
5621
+ optional: false;
5622
+ customType: number;
5623
+ } & {
5624
+ serverName: string;
5625
+ };
5626
+ };
5627
+ primaryKey: readonly [string, ...string[]];
5628
+ } & {
5629
+ primaryKey: ["id"];
5630
+ };
5631
+ readonly draft: {
5632
+ name: "draft";
5633
+ columns: {
5634
+ readonly accountId: {
5635
+ type: "string";
5636
+ optional: false;
5637
+ customType: string;
5638
+ } & {
5639
+ serverName: string;
5640
+ };
5641
+ readonly body: {
5642
+ type: "json";
5643
+ optional: false;
5644
+ customType: {
5645
+ content: string;
5646
+ to: string[];
5647
+ cc: string[];
5648
+ bcc: string[];
5649
+ };
5650
+ };
5651
+ readonly error: Omit<{
5652
+ type: "string";
5653
+ optional: false;
5654
+ customType: string;
5655
+ }, "optional"> & {
5656
+ optional: true;
5657
+ };
5658
+ readonly fromAliasId: Omit<{
5659
+ type: "string";
5660
+ optional: false;
5661
+ customType: string;
5662
+ }, "optional"> & {
5663
+ optional: true;
5664
+ } & {
5665
+ serverName: string;
5666
+ };
5667
+ readonly fromEmail: {
5668
+ type: "string";
5669
+ optional: false;
5670
+ customType: string;
5671
+ } & {
5672
+ serverName: string;
5673
+ };
5674
+ readonly fromName: Omit<{
5675
+ type: "string";
5676
+ optional: false;
5677
+ customType: string;
5678
+ }, "optional"> & {
5679
+ optional: true;
5680
+ } & {
5681
+ serverName: string;
5682
+ };
5683
+ readonly id: {
5684
+ type: "string";
5685
+ optional: false;
5686
+ customType: string;
5687
+ };
5688
+ readonly referencedMessageId: Omit<{
5689
+ type: "string";
5690
+ optional: false;
5691
+ customType: string;
5692
+ }, "optional"> & {
5693
+ optional: true;
5694
+ } & {
5695
+ serverName: string;
5696
+ };
5697
+ readonly scheduledFor: Omit<{
5698
+ type: "number";
5699
+ optional: false;
5700
+ customType: number;
5701
+ }, "optional"> & {
5702
+ optional: true;
5703
+ } & {
5704
+ serverName: string;
5705
+ };
5706
+ readonly status: {
5707
+ type: "string";
5708
+ optional: false;
5709
+ customType: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
5710
+ };
5711
+ readonly subject: Omit<{
5712
+ type: "string";
5713
+ optional: false;
5714
+ customType: string;
5715
+ }, "optional"> & {
5716
+ optional: true;
5717
+ };
5718
+ readonly type: {
5719
+ type: "string";
5720
+ optional: false;
5721
+ customType: "NEW" | "REPLY" | "FORWARD";
5722
+ };
5723
+ readonly updatedAt: {
5724
+ type: "number";
5725
+ optional: false;
5726
+ customType: number;
5727
+ } & {
5728
+ serverName: string;
5729
+ };
5730
+ readonly userId: {
5731
+ type: "string";
5732
+ optional: false;
5733
+ customType: string;
5734
+ } & {
5735
+ serverName: string;
5736
+ };
5737
+ };
5738
+ primaryKey: readonly [string, ...string[]];
5739
+ } & {
5740
+ primaryKey: ["id"];
5741
+ };
5742
+ readonly draftAttachment: {
5743
+ name: "draftAttachment";
5744
+ columns: {
5745
+ readonly draftId: {
5746
+ type: "string";
5747
+ optional: false;
5748
+ customType: string;
5749
+ } & {
5750
+ serverName: string;
5751
+ };
5752
+ readonly fileName: {
5753
+ type: "string";
5754
+ optional: false;
5755
+ customType: string;
5756
+ } & {
5757
+ serverName: string;
5758
+ };
5759
+ readonly id: {
5760
+ type: "string";
5761
+ optional: false;
5762
+ customType: string;
5763
+ };
5764
+ readonly mimeType: {
5765
+ type: "string";
5766
+ optional: false;
5767
+ customType: string;
5768
+ } & {
5769
+ serverName: string;
5770
+ };
5771
+ readonly status: {
5772
+ type: "string";
5773
+ optional: false;
5774
+ customType: "PENDING" | "COMPLETE" | "FAILED";
5775
+ } & {
5776
+ serverName: string;
5777
+ };
5778
+ readonly totalSize: {
5779
+ type: "number";
5780
+ optional: false;
5781
+ customType: number;
5782
+ } & {
5783
+ serverName: string;
5784
+ };
5785
+ };
5786
+ primaryKey: readonly [string, ...string[]];
5787
+ } & {
5788
+ primaryKey: ["id"];
5789
+ };
5790
+ readonly thread: {
5791
+ name: "thread";
5792
+ columns: {
5793
+ readonly accountId: {
5794
+ type: "string";
5795
+ optional: false;
5796
+ customType: string;
5797
+ } & {
5798
+ serverName: string;
5799
+ };
5800
+ readonly flagged: {
5801
+ type: "boolean";
5802
+ optional: false;
5803
+ customType: boolean;
5804
+ };
5805
+ readonly id: {
5806
+ type: "string";
5807
+ optional: false;
5808
+ customType: string;
5809
+ };
5810
+ readonly labelIdList: {
5811
+ type: "string";
5812
+ optional: false;
5813
+ customType: string;
5814
+ } & {
5815
+ serverName: string;
5816
+ };
5817
+ readonly latestMessageDate: {
5818
+ type: "number";
5819
+ optional: false;
5820
+ customType: number;
5821
+ } & {
5822
+ serverName: string;
5823
+ };
5824
+ readonly seen: {
5825
+ type: "boolean";
5826
+ optional: false;
5827
+ customType: boolean;
5828
+ };
5829
+ readonly userId: {
5830
+ type: "string";
5831
+ optional: false;
5832
+ customType: string;
5833
+ } & {
5834
+ serverName: string;
5835
+ };
5836
+ readonly words: {
5837
+ type: "string";
5838
+ optional: false;
5839
+ customType: string;
5840
+ };
5841
+ };
5842
+ primaryKey: readonly [string, ...string[]];
5843
+ } & {
5844
+ primaryKey: ["id"];
5845
+ };
5846
+ readonly threadLabel: {
5847
+ name: "threadLabel";
5848
+ columns: {
5849
+ readonly accountId: {
5850
+ type: "string";
5851
+ optional: false;
5852
+ customType: string;
5853
+ } & {
5854
+ serverName: string;
5855
+ };
5856
+ readonly labelId: {
5857
+ type: "string";
5858
+ optional: false;
5859
+ customType: string;
5860
+ } & {
5861
+ serverName: string;
5862
+ };
5863
+ readonly lastSyncedAt: {
5864
+ type: "number";
5865
+ optional: false;
5866
+ customType: number;
5867
+ } & {
5868
+ serverName: string;
5869
+ };
5870
+ readonly threadId: {
5871
+ type: "string";
5872
+ optional: false;
5873
+ customType: string;
5874
+ } & {
5875
+ serverName: string;
5876
+ };
5877
+ readonly threadMessageId: {
5878
+ type: "string";
5879
+ optional: false;
5880
+ customType: string;
5881
+ } & {
5882
+ serverName: string;
5883
+ };
5884
+ readonly uid: {
5885
+ type: "number";
5886
+ optional: false;
5887
+ customType: number;
5888
+ };
5889
+ readonly uidValidity: {
5890
+ type: "number";
5891
+ optional: false;
5892
+ customType: number;
5893
+ } & {
5894
+ serverName: string;
5895
+ };
5896
+ };
5897
+ primaryKey: readonly [string, ...string[]];
5898
+ } & {
5899
+ primaryKey: ["accountId", "labelId", "threadMessageId"];
5900
+ };
5901
+ readonly threadByLabel: {
5902
+ name: "threadByLabel";
5903
+ columns: {
5904
+ readonly labelId: {
5905
+ type: "string";
5906
+ optional: false;
5907
+ customType: string;
5908
+ } & {
5909
+ serverName: string;
5910
+ };
5911
+ readonly latestMessageDate: {
5912
+ type: "number";
5913
+ optional: false;
5914
+ customType: number;
5915
+ } & {
5916
+ serverName: string;
5917
+ };
5918
+ readonly threadId: {
5919
+ type: "string";
5920
+ optional: false;
5921
+ customType: string;
5922
+ } & {
5923
+ serverName: string;
5924
+ };
5925
+ };
5926
+ primaryKey: readonly [string, ...string[]];
5927
+ } & {
5928
+ primaryKey: ["labelId", "threadId"];
5929
+ };
5930
+ readonly threadMessage: {
5931
+ name: "threadMessage";
5932
+ columns: {
5933
+ readonly accountId: {
5934
+ type: "string";
5935
+ optional: false;
5936
+ customType: string;
5937
+ } & {
5938
+ serverName: string;
5939
+ };
5940
+ readonly envelopeDate: {
5941
+ type: "number";
5942
+ optional: false;
5943
+ customType: number;
5944
+ } & {
5945
+ serverName: string;
5946
+ };
5947
+ readonly envelopeSubject: Omit<{
5948
+ type: "string";
5949
+ optional: false;
5950
+ customType: string;
5951
+ }, "optional"> & {
5952
+ optional: true;
5953
+ } & {
5954
+ serverName: string;
5955
+ };
5956
+ readonly id: {
5957
+ type: "string";
5958
+ optional: false;
5959
+ customType: string;
5960
+ };
5961
+ readonly previewText: {
5962
+ type: "string";
5963
+ optional: false;
5964
+ customType: string;
5965
+ } & {
5966
+ serverName: string;
5967
+ };
5968
+ readonly senderEmail: {
5969
+ type: "string";
5970
+ optional: false;
5971
+ customType: string;
5972
+ } & {
5973
+ serverName: string;
5974
+ };
5975
+ readonly senderName: Omit<{
5976
+ type: "string";
5977
+ optional: false;
5978
+ customType: string;
5979
+ }, "optional"> & {
5980
+ optional: true;
5981
+ } & {
5982
+ serverName: string;
5983
+ };
5984
+ readonly threadId: {
5985
+ type: "string";
5986
+ optional: false;
5987
+ customType: string;
5988
+ } & {
5989
+ serverName: string;
5990
+ };
5991
+ };
5992
+ primaryKey: readonly [string, ...string[]];
5993
+ } & {
5994
+ primaryKey: ["id"];
5995
+ };
5996
+ readonly threadMessageRecipient: {
5997
+ name: "threadMessageRecipient";
5998
+ columns: {
5999
+ readonly emailAddress: {
6000
+ type: "string";
6001
+ optional: false;
6002
+ customType: string;
6003
+ } & {
6004
+ serverName: string;
6005
+ };
6006
+ readonly id: {
6007
+ type: "string";
6008
+ optional: false;
6009
+ customType: string;
6010
+ };
6011
+ readonly name: Omit<{
6012
+ type: "string";
6013
+ optional: false;
6014
+ customType: string;
6015
+ }, "optional"> & {
6016
+ optional: true;
6017
+ };
6018
+ readonly threadMessageId: {
6019
+ type: "string";
6020
+ optional: false;
6021
+ customType: string;
6022
+ } & {
6023
+ serverName: string;
6024
+ };
6025
+ readonly type: {
6026
+ type: "string";
6027
+ optional: false;
6028
+ customType: "bcc" | "cc" | "to" | "replyTo";
6029
+ };
6030
+ };
6031
+ primaryKey: readonly [string, ...string[]];
6032
+ } & {
6033
+ primaryKey: ["id"];
6034
+ };
6035
+ readonly threadMessageAttachment: {
6036
+ name: "threadMessageAttachment";
6037
+ columns: {
6038
+ readonly fileName: {
6039
+ type: "string";
6040
+ optional: false;
6041
+ customType: string;
6042
+ } & {
6043
+ serverName: string;
6044
+ };
6045
+ readonly id: {
6046
+ type: "string";
6047
+ optional: false;
6048
+ customType: string;
6049
+ };
6050
+ readonly mimeType: {
6051
+ type: "string";
6052
+ optional: false;
6053
+ customType: string;
6054
+ } & {
6055
+ serverName: string;
6056
+ };
6057
+ readonly size: {
6058
+ type: "number";
6059
+ optional: false;
6060
+ customType: number;
6061
+ };
6062
+ readonly threadMessageId: {
6063
+ type: "string";
6064
+ optional: false;
6065
+ customType: string;
6066
+ } & {
6067
+ serverName: string;
6068
+ };
6069
+ };
6070
+ primaryKey: readonly [string, ...string[]];
6071
+ } & {
6072
+ primaryKey: ["id"];
6073
+ };
6074
+ };
6075
+ relationships: {
6076
+ readonly user: {
6077
+ accounts: [{
6078
+ readonly sourceField: string[];
6079
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
6080
+ readonly destSchema: "account";
6081
+ readonly cardinality: "many";
6082
+ }];
6083
+ contacts: [{
6084
+ readonly sourceField: string[];
6085
+ readonly destField: ("id" | "name" | "userId" | "emailAddress")[];
6086
+ readonly destSchema: "contact";
6087
+ readonly cardinality: "many";
6088
+ }];
6089
+ drafts: [{
6090
+ readonly sourceField: string[];
6091
+ readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
6092
+ readonly destSchema: "draft";
6093
+ readonly cardinality: "many";
6094
+ }];
6095
+ pushNotificationTokens: [{
6096
+ readonly sourceField: string[];
6097
+ readonly destField: ("id" | "createdAt" | "token" | "userId")[];
6098
+ readonly destSchema: "userPushNotificationToken";
6099
+ readonly cardinality: "many";
6100
+ }];
6101
+ threads: [{
6102
+ readonly sourceField: string[];
6103
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
6104
+ readonly destSchema: "thread";
6105
+ readonly cardinality: "many";
6106
+ }];
6107
+ };
6108
+ readonly userPushNotificationToken: {
6109
+ user: [{
6110
+ readonly sourceField: string[];
6111
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
6112
+ readonly destSchema: "user";
6113
+ readonly cardinality: "one";
6114
+ }];
6115
+ };
6116
+ readonly contact: {
6117
+ user: [{
6118
+ readonly sourceField: string[];
6119
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
6120
+ readonly destSchema: "user";
6121
+ readonly cardinality: "one";
6122
+ }];
6123
+ };
6124
+ readonly account: {
6125
+ aliases: [{
6126
+ readonly sourceField: string[];
6127
+ readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
6128
+ readonly destSchema: "accountAlias";
6129
+ readonly cardinality: "many";
6130
+ }];
6131
+ drafts: [{
6132
+ readonly sourceField: string[];
6133
+ readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
6134
+ readonly destSchema: "draft";
6135
+ readonly cardinality: "many";
6136
+ }];
6137
+ labels: [{
6138
+ readonly sourceField: string[];
6139
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
6140
+ readonly destSchema: "accountLabel";
6141
+ readonly cardinality: "many";
6142
+ }];
6143
+ primaryAlias: [{
6144
+ readonly sourceField: string[];
6145
+ readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
6146
+ readonly destSchema: "accountAlias";
6147
+ readonly cardinality: "one";
6148
+ }];
6149
+ threads: [{
6150
+ readonly sourceField: string[];
6151
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
6152
+ readonly destSchema: "thread";
6153
+ readonly cardinality: "many";
6154
+ }];
6155
+ user: [{
6156
+ readonly sourceField: string[];
6157
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
6158
+ readonly destSchema: "user";
6159
+ readonly cardinality: "one";
6160
+ }];
6161
+ };
6162
+ readonly accountAlias: {
6163
+ account: [{
6164
+ readonly sourceField: string[];
6165
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
6166
+ readonly destSchema: "account";
6167
+ readonly cardinality: "one";
6168
+ }];
6169
+ };
6170
+ readonly accountLabel: {
6171
+ account: [{
6172
+ readonly sourceField: string[];
6173
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
6174
+ readonly destSchema: "account";
6175
+ readonly cardinality: "one";
6176
+ }];
6177
+ threads: [{
6178
+ readonly sourceField: string[];
6179
+ readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
6180
+ readonly destSchema: "threadLabel";
6181
+ readonly cardinality: "many";
6182
+ }, {
6183
+ readonly sourceField: string[];
6184
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
6185
+ readonly destSchema: "thread";
6186
+ readonly cardinality: "many";
6187
+ }];
6188
+ };
6189
+ readonly draft: {
6190
+ account: [{
6191
+ readonly sourceField: string[];
6192
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
6193
+ readonly destSchema: "account";
6194
+ readonly cardinality: "one";
6195
+ }];
6196
+ attachments: [{
6197
+ readonly sourceField: string[];
6198
+ readonly destField: ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
6199
+ readonly destSchema: "draftAttachment";
6200
+ readonly cardinality: "many";
6201
+ }];
6202
+ user: [{
6203
+ readonly sourceField: string[];
6204
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
6205
+ readonly destSchema: "user";
6206
+ readonly cardinality: "one";
6207
+ }];
6208
+ };
6209
+ readonly draftAttachment: {
6210
+ draft: [{
6211
+ readonly sourceField: string[];
6212
+ readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
6213
+ readonly destSchema: "draft";
6214
+ readonly cardinality: "one";
6215
+ }];
6216
+ };
6217
+ readonly thread: {
6218
+ account: [{
6219
+ readonly sourceField: string[];
6220
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
6221
+ readonly destSchema: "account";
6222
+ readonly cardinality: "one";
6223
+ }];
6224
+ labels: [{
6225
+ readonly sourceField: string[];
6226
+ readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
6227
+ readonly destSchema: "threadLabel";
6228
+ readonly cardinality: "many";
6229
+ }, {
6230
+ readonly sourceField: string[];
6231
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
6232
+ readonly destSchema: "accountLabel";
6233
+ readonly cardinality: "many";
6234
+ }];
6235
+ messages: [{
6236
+ readonly sourceField: string[];
6237
+ readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
6238
+ readonly destSchema: "threadMessage";
6239
+ readonly cardinality: "many";
6240
+ }];
6241
+ threadByLabel: [{
6242
+ readonly sourceField: string[];
6243
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
6244
+ readonly destSchema: "threadByLabel";
6245
+ readonly cardinality: "many";
6246
+ }];
6247
+ user: [{
6248
+ readonly sourceField: string[];
6249
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
6250
+ readonly destSchema: "user";
6251
+ readonly cardinality: "one";
6252
+ }];
6253
+ };
6254
+ readonly threadLabel: {
6255
+ label: [{
6256
+ readonly sourceField: string[];
6257
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
6258
+ readonly destSchema: "accountLabel";
6259
+ readonly cardinality: "one";
6260
+ }];
6261
+ message: [{
6262
+ readonly sourceField: string[];
6263
+ readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
6264
+ readonly destSchema: "threadMessage";
6265
+ readonly cardinality: "one";
6266
+ }];
6267
+ thread: [{
6268
+ readonly sourceField: string[];
6269
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
6270
+ readonly destSchema: "thread";
6271
+ readonly cardinality: "one";
6272
+ }];
6273
+ };
6274
+ readonly threadByLabel: {
6275
+ label: [{
6276
+ readonly sourceField: string[];
6277
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
6278
+ readonly destSchema: "accountLabel";
6279
+ readonly cardinality: "one";
6280
+ }];
6281
+ thread: [{
6282
+ readonly sourceField: string[];
6283
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
6284
+ readonly destSchema: "thread";
6285
+ readonly cardinality: "one";
6286
+ }];
6287
+ };
6288
+ readonly threadMessage: {
6289
+ attachments: [{
6290
+ readonly sourceField: string[];
6291
+ readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
6292
+ readonly destSchema: "threadMessageAttachment";
6293
+ readonly cardinality: "many";
6294
+ }];
6295
+ labels: [{
6296
+ readonly sourceField: string[];
6297
+ readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
6298
+ readonly destSchema: "threadLabel";
6299
+ readonly cardinality: "many";
6300
+ }, {
6301
+ readonly sourceField: string[];
6302
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
6303
+ readonly destSchema: "accountLabel";
6304
+ readonly cardinality: "many";
6305
+ }];
6306
+ recipients: [{
6307
+ readonly sourceField: string[];
6308
+ readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
6309
+ readonly destSchema: "threadMessageRecipient";
6310
+ readonly cardinality: "many";
6311
+ }];
6312
+ thread: [{
6313
+ readonly sourceField: string[];
6314
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
6315
+ readonly destSchema: "thread";
6316
+ readonly cardinality: "one";
6317
+ }];
6318
+ };
6319
+ readonly threadMessageRecipient: {
6320
+ message: [{
6321
+ readonly sourceField: string[];
6322
+ readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
6323
+ readonly destSchema: "threadMessage";
6324
+ readonly cardinality: "one";
6325
+ }];
6326
+ };
6327
+ readonly threadMessageAttachment: {
6328
+ message: [{
6329
+ readonly sourceField: string[];
6330
+ readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
6331
+ readonly destSchema: "threadMessage";
6332
+ readonly cardinality: "one";
6333
+ }];
6334
+ };
6335
+ };
6336
+ enableLegacyQueries: boolean | undefined;
6337
+ enableLegacyMutators: false;
6338
+ }, "threadByLabel", {
6339
+ readonly labelId: string;
6340
+ readonly latestMessageDate: number;
6341
+ readonly threadId: string;
6342
+ } & {
6343
+ readonly thread: ({
6344
+ readonly accountId: string;
6345
+ readonly flagged: boolean;
6346
+ readonly id: string;
6347
+ readonly labelIdList: string;
6348
+ readonly latestMessageDate: number;
6349
+ readonly seen: boolean;
6350
+ readonly userId: string;
6351
+ readonly words: string;
6352
+ } & {
6353
+ readonly messages: readonly ({
6354
+ readonly accountId: string;
6355
+ readonly envelopeDate: number;
6356
+ readonly envelopeSubject: string | null;
6357
+ readonly id: string;
6358
+ readonly previewText: string;
6359
+ readonly senderEmail: string;
6360
+ readonly senderName: string | null;
6361
+ readonly threadId: string;
6362
+ } & {
6363
+ readonly recipients: readonly {
6364
+ readonly emailAddress: string;
6365
+ readonly id: string;
6366
+ readonly name: string | null;
6367
+ readonly threadMessageId: string;
6368
+ readonly type: "bcc" | "cc" | "to" | "replyTo";
6369
+ }[];
6370
+ } & {
6371
+ readonly attachments: readonly {
6372
+ readonly fileName: string;
6373
+ readonly id: string;
6374
+ readonly mimeType: string;
6375
+ readonly size: number;
6376
+ readonly threadMessageId: string;
6377
+ }[];
6378
+ })[];
6379
+ }) | undefined;
6380
+ }> | import("@rocicorp/zero").Query<{
6381
+ tables: {
6382
+ readonly user: {
6383
+ name: "user";
6384
+ columns: {
6385
+ readonly id: {
6386
+ type: "string";
6387
+ optional: false;
6388
+ customType: string;
6389
+ };
6390
+ readonly name: Omit<{
6391
+ type: "string";
6392
+ optional: false;
6393
+ customType: string;
6394
+ }, "optional"> & {
6395
+ optional: true;
6396
+ };
6397
+ readonly profilePicture: Omit<{
6398
+ type: "string";
6399
+ optional: false;
6400
+ customType: string;
6401
+ }, "optional"> & {
6402
+ optional: true;
6403
+ } & {
6404
+ serverName: string;
6405
+ };
6406
+ readonly undoSendEnabled: {
6407
+ type: "boolean";
6408
+ optional: false;
6409
+ customType: boolean;
6410
+ } & {
6411
+ serverName: string;
6412
+ };
6413
+ };
6414
+ primaryKey: readonly [string, ...string[]];
6415
+ } & {
6416
+ primaryKey: ["id"];
6417
+ };
6418
+ readonly userPushNotificationToken: {
6419
+ name: "userPushNotificationToken";
6420
+ columns: {
6421
+ readonly createdAt: {
6422
+ type: "number";
6423
+ optional: false;
6424
+ customType: number;
6425
+ } & {
6426
+ serverName: string;
6427
+ };
6428
+ readonly id: {
6429
+ type: "string";
6430
+ optional: false;
6431
+ customType: string;
6432
+ };
6433
+ readonly token: {
6434
+ type: "string";
6435
+ optional: false;
6436
+ customType: string;
6437
+ };
6438
+ readonly userId: {
6439
+ type: "string";
6440
+ optional: false;
6441
+ customType: string;
6442
+ } & {
6443
+ serverName: string;
6444
+ };
6445
+ };
6446
+ primaryKey: readonly [string, ...string[]];
6447
+ } & {
6448
+ primaryKey: ["id"];
6449
+ };
6450
+ readonly contact: {
6451
+ name: "contact";
6452
+ columns: {
6453
+ readonly emailAddress: {
6454
+ type: "string";
6455
+ optional: false;
6456
+ customType: string;
6457
+ } & {
6458
+ serverName: string;
6459
+ };
6460
+ readonly id: {
6461
+ type: "string";
6462
+ optional: false;
6463
+ customType: string;
6464
+ };
6465
+ readonly name: Omit<{
6466
+ type: "string";
6467
+ optional: false;
6468
+ customType: string;
6469
+ }, "optional"> & {
6470
+ optional: true;
6471
+ };
6472
+ readonly userId: {
6473
+ type: "string";
6474
+ optional: false;
6475
+ customType: string;
6476
+ } & {
6477
+ serverName: string;
6478
+ };
6479
+ };
6480
+ primaryKey: readonly [string, ...string[]];
6481
+ } & {
6482
+ primaryKey: ["id"];
6483
+ };
6484
+ readonly account: {
6485
+ name: "account";
6486
+ columns: {
6487
+ readonly color: {
6488
+ type: "string";
6489
+ optional: false;
6490
+ customType: string;
6491
+ };
6492
+ readonly displayName: Omit<{
6493
+ type: "string";
6494
+ optional: false;
6495
+ customType: string;
6496
+ }, "optional"> & {
6497
+ optional: true;
6498
+ } & {
6499
+ serverName: string;
6500
+ };
6501
+ readonly id: {
6502
+ type: "string";
6503
+ optional: false;
6504
+ customType: string;
6505
+ };
6506
+ readonly imapConnectionStatus: {
6507
+ type: "string";
6508
+ optional: false;
6509
+ 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";
6510
+ } & {
6511
+ serverName: string;
6512
+ };
6513
+ readonly mailProcessedCount: {
6514
+ type: "number";
6515
+ optional: false;
6516
+ customType: number;
6517
+ } & {
6518
+ serverName: string;
6519
+ };
6520
+ readonly mailTotalCount: {
6521
+ type: "number";
6522
+ optional: false;
6523
+ customType: number;
6524
+ } & {
6525
+ serverName: string;
6526
+ };
6527
+ readonly primaryAliasId: Omit<{
6528
+ type: "string";
6529
+ optional: false;
6530
+ customType: string;
6531
+ }, "optional"> & {
6532
+ optional: true;
6533
+ } & {
6534
+ serverName: string;
6535
+ };
6536
+ readonly userId: {
6537
+ type: "string";
6538
+ optional: false;
6539
+ customType: string;
6540
+ } & {
6541
+ serverName: string;
6542
+ };
6543
+ };
6544
+ primaryKey: readonly [string, ...string[]];
6545
+ } & {
6546
+ primaryKey: ["id"];
6547
+ };
6548
+ readonly accountAlias: {
6549
+ name: "accountAlias";
6550
+ columns: {
6551
+ readonly accountId: {
6552
+ type: "string";
6553
+ optional: false;
6554
+ customType: string;
6555
+ } & {
6556
+ serverName: string;
6557
+ };
6558
+ readonly emailAddress: {
6559
+ type: "string";
6560
+ optional: false;
6561
+ customType: string;
6562
+ } & {
6563
+ serverName: string;
6564
+ };
6565
+ readonly id: {
6566
+ type: "string";
6567
+ optional: false;
6568
+ customType: string;
6569
+ };
6570
+ readonly isPrimary: {
6571
+ type: "boolean";
6572
+ optional: false;
6573
+ customType: boolean;
6574
+ } & {
6575
+ serverName: string;
6576
+ };
6577
+ readonly name: Omit<{
6578
+ type: "string";
6579
+ optional: false;
6580
+ customType: string;
6581
+ }, "optional"> & {
6582
+ optional: true;
6583
+ };
6584
+ };
6585
+ primaryKey: readonly [string, ...string[]];
6586
+ } & {
6587
+ primaryKey: ["id"];
6588
+ };
6589
+ readonly accountLabel: {
6590
+ name: "accountLabel";
6591
+ columns: {
6592
+ readonly accountId: {
6593
+ type: "string";
6594
+ optional: false;
6595
+ customType: string;
6596
+ } & {
6597
+ serverName: string;
6598
+ };
6599
+ readonly id: {
6600
+ type: "string";
6601
+ optional: false;
6602
+ customType: string;
6603
+ };
6604
+ readonly name: Omit<{
6605
+ type: "string";
6606
+ optional: false;
6607
+ customType: string;
6608
+ }, "optional"> & {
6609
+ optional: true;
6610
+ };
6611
+ readonly path: {
6612
+ type: "string";
6613
+ optional: false;
6614
+ customType: string;
6615
+ };
6616
+ readonly specialUse: Omit<{
6617
+ type: "string";
6618
+ optional: false;
6619
+ customType: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH";
6620
+ }, "optional"> & {
6621
+ optional: true;
6622
+ } & {
6623
+ serverName: string;
6624
+ };
6625
+ readonly uidValidity: {
6626
+ type: "number";
6627
+ optional: false;
6628
+ customType: number;
6629
+ } & {
6630
+ serverName: string;
6631
+ };
6632
+ readonly unreadCount: {
6633
+ type: "number";
6634
+ optional: false;
6635
+ customType: number;
6636
+ } & {
6637
+ serverName: string;
6638
+ };
6639
+ };
6640
+ primaryKey: readonly [string, ...string[]];
6641
+ } & {
6642
+ primaryKey: ["id"];
6643
+ };
6644
+ readonly draft: {
6645
+ name: "draft";
6646
+ columns: {
6647
+ readonly accountId: {
6648
+ type: "string";
6649
+ optional: false;
6650
+ customType: string;
6651
+ } & {
6652
+ serverName: string;
6653
+ };
6654
+ readonly body: {
6655
+ type: "json";
6656
+ optional: false;
6657
+ customType: {
6658
+ content: string;
6659
+ to: string[];
6660
+ cc: string[];
6661
+ bcc: string[];
6662
+ };
6663
+ };
6664
+ readonly error: Omit<{
6665
+ type: "string";
6666
+ optional: false;
6667
+ customType: string;
6668
+ }, "optional"> & {
6669
+ optional: true;
6670
+ };
6671
+ readonly fromAliasId: Omit<{
6672
+ type: "string";
6673
+ optional: false;
6674
+ customType: string;
6675
+ }, "optional"> & {
6676
+ optional: true;
6677
+ } & {
6678
+ serverName: string;
6679
+ };
6680
+ readonly fromEmail: {
6681
+ type: "string";
6682
+ optional: false;
6683
+ customType: string;
6684
+ } & {
6685
+ serverName: string;
6686
+ };
6687
+ readonly fromName: Omit<{
6688
+ type: "string";
6689
+ optional: false;
6690
+ customType: string;
6691
+ }, "optional"> & {
6692
+ optional: true;
6693
+ } & {
6694
+ serverName: string;
6695
+ };
6696
+ readonly id: {
6697
+ type: "string";
6698
+ optional: false;
6699
+ customType: string;
6700
+ };
6701
+ readonly referencedMessageId: Omit<{
6702
+ type: "string";
6703
+ optional: false;
6704
+ customType: string;
6705
+ }, "optional"> & {
6706
+ optional: true;
6707
+ } & {
6708
+ serverName: string;
6709
+ };
6710
+ readonly scheduledFor: Omit<{
6711
+ type: "number";
6712
+ optional: false;
6713
+ customType: number;
6714
+ }, "optional"> & {
6715
+ optional: true;
6716
+ } & {
6717
+ serverName: string;
6718
+ };
6719
+ readonly status: {
6720
+ type: "string";
6721
+ optional: false;
6722
+ customType: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
6723
+ };
6724
+ readonly subject: Omit<{
6725
+ type: "string";
6726
+ optional: false;
6727
+ customType: string;
6728
+ }, "optional"> & {
6729
+ optional: true;
6730
+ };
6731
+ readonly type: {
6732
+ type: "string";
6733
+ optional: false;
6734
+ customType: "NEW" | "REPLY" | "FORWARD";
6735
+ };
6736
+ readonly updatedAt: {
6737
+ type: "number";
6738
+ optional: false;
6739
+ customType: number;
6740
+ } & {
6741
+ serverName: string;
6742
+ };
6743
+ readonly userId: {
6744
+ type: "string";
6745
+ optional: false;
6746
+ customType: string;
6747
+ } & {
6748
+ serverName: string;
6749
+ };
6750
+ };
6751
+ primaryKey: readonly [string, ...string[]];
6752
+ } & {
6753
+ primaryKey: ["id"];
6754
+ };
6755
+ readonly draftAttachment: {
6756
+ name: "draftAttachment";
6757
+ columns: {
6758
+ readonly draftId: {
6759
+ type: "string";
6760
+ optional: false;
6761
+ customType: string;
6762
+ } & {
6763
+ serverName: string;
6764
+ };
6765
+ readonly fileName: {
6766
+ type: "string";
6767
+ optional: false;
6768
+ customType: string;
6769
+ } & {
6770
+ serverName: string;
6771
+ };
6772
+ readonly id: {
6773
+ type: "string";
6774
+ optional: false;
6775
+ customType: string;
6776
+ };
6777
+ readonly mimeType: {
6778
+ type: "string";
6779
+ optional: false;
6780
+ customType: string;
6781
+ } & {
6782
+ serverName: string;
6783
+ };
6784
+ readonly status: {
6785
+ type: "string";
6786
+ optional: false;
6787
+ customType: "PENDING" | "COMPLETE" | "FAILED";
6788
+ } & {
6789
+ serverName: string;
6790
+ };
6791
+ readonly totalSize: {
6792
+ type: "number";
6793
+ optional: false;
6794
+ customType: number;
6795
+ } & {
6796
+ serverName: string;
6797
+ };
6798
+ };
6799
+ primaryKey: readonly [string, ...string[]];
6800
+ } & {
6801
+ primaryKey: ["id"];
6802
+ };
6803
+ readonly thread: {
6804
+ name: "thread";
6805
+ columns: {
6806
+ readonly accountId: {
6807
+ type: "string";
6808
+ optional: false;
6809
+ customType: string;
6810
+ } & {
6811
+ serverName: string;
6812
+ };
6813
+ readonly flagged: {
6814
+ type: "boolean";
6815
+ optional: false;
6816
+ customType: boolean;
6817
+ };
6818
+ readonly id: {
6819
+ type: "string";
6820
+ optional: false;
6821
+ customType: string;
6822
+ };
6823
+ readonly labelIdList: {
6824
+ type: "string";
6825
+ optional: false;
6826
+ customType: string;
6827
+ } & {
6828
+ serverName: string;
6829
+ };
6830
+ readonly latestMessageDate: {
6831
+ type: "number";
6832
+ optional: false;
6833
+ customType: number;
6834
+ } & {
6835
+ serverName: string;
6836
+ };
6837
+ readonly seen: {
6838
+ type: "boolean";
6839
+ optional: false;
6840
+ customType: boolean;
6841
+ };
6842
+ readonly userId: {
6843
+ type: "string";
6844
+ optional: false;
6845
+ customType: string;
6846
+ } & {
6847
+ serverName: string;
6848
+ };
6849
+ readonly words: {
6850
+ type: "string";
6851
+ optional: false;
6852
+ customType: string;
6853
+ };
6854
+ };
6855
+ primaryKey: readonly [string, ...string[]];
6856
+ } & {
6857
+ primaryKey: ["id"];
6858
+ };
6859
+ readonly threadLabel: {
6860
+ name: "threadLabel";
6861
+ columns: {
6862
+ readonly accountId: {
6863
+ type: "string";
6864
+ optional: false;
6865
+ customType: string;
6866
+ } & {
6867
+ serverName: string;
6868
+ };
6869
+ readonly labelId: {
6870
+ type: "string";
6871
+ optional: false;
6872
+ customType: string;
6873
+ } & {
6874
+ serverName: string;
6875
+ };
6876
+ readonly lastSyncedAt: {
6877
+ type: "number";
6878
+ optional: false;
6879
+ customType: number;
6880
+ } & {
6881
+ serverName: string;
6882
+ };
6883
+ readonly threadId: {
6884
+ type: "string";
6885
+ optional: false;
6886
+ customType: string;
6887
+ } & {
6888
+ serverName: string;
6889
+ };
6890
+ readonly threadMessageId: {
6891
+ type: "string";
6892
+ optional: false;
6893
+ customType: string;
6894
+ } & {
6895
+ serverName: string;
6896
+ };
6897
+ readonly uid: {
6898
+ type: "number";
6899
+ optional: false;
6900
+ customType: number;
6901
+ };
6902
+ readonly uidValidity: {
6903
+ type: "number";
6904
+ optional: false;
6905
+ customType: number;
6906
+ } & {
6907
+ serverName: string;
6908
+ };
6909
+ };
6910
+ primaryKey: readonly [string, ...string[]];
6911
+ } & {
6912
+ primaryKey: ["accountId", "labelId", "threadMessageId"];
6913
+ };
6914
+ readonly threadByLabel: {
6915
+ name: "threadByLabel";
6916
+ columns: {
6917
+ readonly labelId: {
6918
+ type: "string";
6919
+ optional: false;
6920
+ customType: string;
6921
+ } & {
6922
+ serverName: string;
6923
+ };
6924
+ readonly latestMessageDate: {
6925
+ type: "number";
6926
+ optional: false;
6927
+ customType: number;
6928
+ } & {
6929
+ serverName: string;
6930
+ };
6931
+ readonly threadId: {
6932
+ type: "string";
6933
+ optional: false;
6934
+ customType: string;
6935
+ } & {
6936
+ serverName: string;
6937
+ };
6938
+ };
6939
+ primaryKey: readonly [string, ...string[]];
6940
+ } & {
6941
+ primaryKey: ["labelId", "threadId"];
6942
+ };
6943
+ readonly threadMessage: {
6944
+ name: "threadMessage";
6945
+ columns: {
6946
+ readonly accountId: {
6947
+ type: "string";
6948
+ optional: false;
6949
+ customType: string;
6950
+ } & {
6951
+ serverName: string;
6952
+ };
6953
+ readonly envelopeDate: {
6954
+ type: "number";
6955
+ optional: false;
6956
+ customType: number;
6957
+ } & {
6958
+ serverName: string;
6959
+ };
6960
+ readonly envelopeSubject: Omit<{
6961
+ type: "string";
6962
+ optional: false;
6963
+ customType: string;
6964
+ }, "optional"> & {
6965
+ optional: true;
6966
+ } & {
6967
+ serverName: string;
6968
+ };
6969
+ readonly id: {
6970
+ type: "string";
6971
+ optional: false;
6972
+ customType: string;
6973
+ };
6974
+ readonly previewText: {
6975
+ type: "string";
6976
+ optional: false;
6977
+ customType: string;
6978
+ } & {
6979
+ serverName: string;
6980
+ };
6981
+ readonly senderEmail: {
6982
+ type: "string";
6983
+ optional: false;
6984
+ customType: string;
6985
+ } & {
6986
+ serverName: string;
6987
+ };
6988
+ readonly senderName: Omit<{
6989
+ type: "string";
6990
+ optional: false;
6991
+ customType: string;
6992
+ }, "optional"> & {
6993
+ optional: true;
6994
+ } & {
6995
+ serverName: string;
6996
+ };
6997
+ readonly threadId: {
6998
+ type: "string";
6999
+ optional: false;
7000
+ customType: string;
7001
+ } & {
7002
+ serverName: string;
7003
+ };
7004
+ };
7005
+ primaryKey: readonly [string, ...string[]];
7006
+ } & {
7007
+ primaryKey: ["id"];
7008
+ };
7009
+ readonly threadMessageRecipient: {
7010
+ name: "threadMessageRecipient";
7011
+ columns: {
7012
+ readonly emailAddress: {
7013
+ type: "string";
7014
+ optional: false;
7015
+ customType: string;
7016
+ } & {
7017
+ serverName: string;
7018
+ };
7019
+ readonly id: {
7020
+ type: "string";
7021
+ optional: false;
7022
+ customType: string;
7023
+ };
7024
+ readonly name: Omit<{
7025
+ type: "string";
7026
+ optional: false;
7027
+ customType: string;
7028
+ }, "optional"> & {
7029
+ optional: true;
7030
+ };
7031
+ readonly threadMessageId: {
7032
+ type: "string";
7033
+ optional: false;
7034
+ customType: string;
7035
+ } & {
7036
+ serverName: string;
7037
+ };
7038
+ readonly type: {
7039
+ type: "string";
7040
+ optional: false;
7041
+ customType: "bcc" | "cc" | "to" | "replyTo";
7042
+ };
7043
+ };
7044
+ primaryKey: readonly [string, ...string[]];
7045
+ } & {
7046
+ primaryKey: ["id"];
7047
+ };
7048
+ readonly threadMessageAttachment: {
7049
+ name: "threadMessageAttachment";
7050
+ columns: {
7051
+ readonly fileName: {
7052
+ type: "string";
7053
+ optional: false;
7054
+ customType: string;
7055
+ } & {
7056
+ serverName: string;
7057
+ };
7058
+ readonly id: {
7059
+ type: "string";
7060
+ optional: false;
7061
+ customType: string;
7062
+ };
7063
+ readonly mimeType: {
7064
+ type: "string";
7065
+ optional: false;
7066
+ customType: string;
7067
+ } & {
7068
+ serverName: string;
7069
+ };
7070
+ readonly size: {
7071
+ type: "number";
7072
+ optional: false;
7073
+ customType: number;
7074
+ };
7075
+ readonly threadMessageId: {
7076
+ type: "string";
7077
+ optional: false;
7078
+ customType: string;
7079
+ } & {
7080
+ serverName: string;
7081
+ };
7082
+ };
7083
+ primaryKey: readonly [string, ...string[]];
7084
+ } & {
7085
+ primaryKey: ["id"];
7086
+ };
7087
+ };
7088
+ relationships: {
7089
+ readonly user: {
7090
+ accounts: [{
7091
+ readonly sourceField: string[];
7092
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
7093
+ readonly destSchema: "account";
7094
+ readonly cardinality: "many";
7095
+ }];
7096
+ contacts: [{
7097
+ readonly sourceField: string[];
7098
+ readonly destField: ("id" | "name" | "userId" | "emailAddress")[];
7099
+ readonly destSchema: "contact";
7100
+ readonly cardinality: "many";
7101
+ }];
7102
+ drafts: [{
7103
+ readonly sourceField: string[];
7104
+ readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
7105
+ readonly destSchema: "draft";
7106
+ readonly cardinality: "many";
7107
+ }];
7108
+ pushNotificationTokens: [{
7109
+ readonly sourceField: string[];
7110
+ readonly destField: ("id" | "createdAt" | "token" | "userId")[];
7111
+ readonly destSchema: "userPushNotificationToken";
7112
+ readonly cardinality: "many";
7113
+ }];
7114
+ threads: [{
7115
+ readonly sourceField: string[];
7116
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
7117
+ readonly destSchema: "thread";
7118
+ readonly cardinality: "many";
7119
+ }];
7120
+ };
7121
+ readonly userPushNotificationToken: {
7122
+ user: [{
7123
+ readonly sourceField: string[];
7124
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
7125
+ readonly destSchema: "user";
7126
+ readonly cardinality: "one";
7127
+ }];
7128
+ };
7129
+ readonly contact: {
7130
+ user: [{
7131
+ readonly sourceField: string[];
7132
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
7133
+ readonly destSchema: "user";
7134
+ readonly cardinality: "one";
7135
+ }];
7136
+ };
7137
+ readonly account: {
7138
+ aliases: [{
7139
+ readonly sourceField: string[];
7140
+ readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
7141
+ readonly destSchema: "accountAlias";
7142
+ readonly cardinality: "many";
7143
+ }];
7144
+ drafts: [{
7145
+ readonly sourceField: string[];
7146
+ readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
7147
+ readonly destSchema: "draft";
7148
+ readonly cardinality: "many";
7149
+ }];
7150
+ labels: [{
7151
+ readonly sourceField: string[];
7152
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
7153
+ readonly destSchema: "accountLabel";
7154
+ readonly cardinality: "many";
7155
+ }];
7156
+ primaryAlias: [{
7157
+ readonly sourceField: string[];
7158
+ readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
7159
+ readonly destSchema: "accountAlias";
7160
+ readonly cardinality: "one";
7161
+ }];
7162
+ threads: [{
7163
+ readonly sourceField: string[];
7164
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
7165
+ readonly destSchema: "thread";
7166
+ readonly cardinality: "many";
7167
+ }];
7168
+ user: [{
7169
+ readonly sourceField: string[];
7170
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
7171
+ readonly destSchema: "user";
7172
+ readonly cardinality: "one";
7173
+ }];
7174
+ };
7175
+ readonly accountAlias: {
7176
+ account: [{
7177
+ readonly sourceField: string[];
7178
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
7179
+ readonly destSchema: "account";
7180
+ readonly cardinality: "one";
7181
+ }];
7182
+ };
7183
+ readonly accountLabel: {
7184
+ account: [{
7185
+ readonly sourceField: string[];
7186
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
7187
+ readonly destSchema: "account";
7188
+ readonly cardinality: "one";
7189
+ }];
7190
+ threads: [{
7191
+ readonly sourceField: string[];
7192
+ readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
7193
+ readonly destSchema: "threadLabel";
7194
+ readonly cardinality: "many";
7195
+ }, {
7196
+ readonly sourceField: string[];
7197
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
7198
+ readonly destSchema: "thread";
7199
+ readonly cardinality: "many";
7200
+ }];
7201
+ };
7202
+ readonly draft: {
7203
+ account: [{
7204
+ readonly sourceField: string[];
7205
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
7206
+ readonly destSchema: "account";
7207
+ readonly cardinality: "one";
7208
+ }];
7209
+ attachments: [{
7210
+ readonly sourceField: string[];
7211
+ readonly destField: ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
7212
+ readonly destSchema: "draftAttachment";
7213
+ readonly cardinality: "many";
7214
+ }];
7215
+ user: [{
7216
+ readonly sourceField: string[];
7217
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
7218
+ readonly destSchema: "user";
7219
+ readonly cardinality: "one";
7220
+ }];
7221
+ };
7222
+ readonly draftAttachment: {
7223
+ draft: [{
7224
+ readonly sourceField: string[];
7225
+ readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
7226
+ readonly destSchema: "draft";
7227
+ readonly cardinality: "one";
7228
+ }];
7229
+ };
7230
+ readonly thread: {
7231
+ account: [{
7232
+ readonly sourceField: string[];
7233
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
7234
+ readonly destSchema: "account";
7235
+ readonly cardinality: "one";
7236
+ }];
7237
+ labels: [{
7238
+ readonly sourceField: string[];
7239
+ readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
7240
+ readonly destSchema: "threadLabel";
7241
+ readonly cardinality: "many";
7242
+ }, {
7243
+ readonly sourceField: string[];
7244
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
7245
+ readonly destSchema: "accountLabel";
7246
+ readonly cardinality: "many";
7247
+ }];
7248
+ messages: [{
7249
+ readonly sourceField: string[];
7250
+ readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
7251
+ readonly destSchema: "threadMessage";
7252
+ readonly cardinality: "many";
7253
+ }];
7254
+ threadByLabel: [{
7255
+ readonly sourceField: string[];
7256
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
7257
+ readonly destSchema: "threadByLabel";
7258
+ readonly cardinality: "many";
7259
+ }];
7260
+ user: [{
7261
+ readonly sourceField: string[];
7262
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
7263
+ readonly destSchema: "user";
7264
+ readonly cardinality: "one";
7265
+ }];
7266
+ };
7267
+ readonly threadLabel: {
7268
+ label: [{
7269
+ readonly sourceField: string[];
7270
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
7271
+ readonly destSchema: "accountLabel";
7272
+ readonly cardinality: "one";
7273
+ }];
7274
+ message: [{
7275
+ readonly sourceField: string[];
7276
+ readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
7277
+ readonly destSchema: "threadMessage";
7278
+ readonly cardinality: "one";
7279
+ }];
7280
+ thread: [{
7281
+ readonly sourceField: string[];
7282
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
7283
+ readonly destSchema: "thread";
7284
+ readonly cardinality: "one";
7285
+ }];
7286
+ };
7287
+ readonly threadByLabel: {
7288
+ label: [{
7289
+ readonly sourceField: string[];
7290
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
7291
+ readonly destSchema: "accountLabel";
7292
+ readonly cardinality: "one";
7293
+ }];
7294
+ thread: [{
7295
+ readonly sourceField: string[];
7296
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
7297
+ readonly destSchema: "thread";
7298
+ readonly cardinality: "one";
7299
+ }];
7300
+ };
7301
+ readonly threadMessage: {
7302
+ attachments: [{
7303
+ readonly sourceField: string[];
7304
+ readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
7305
+ readonly destSchema: "threadMessageAttachment";
7306
+ readonly cardinality: "many";
7307
+ }];
7308
+ labels: [{
7309
+ readonly sourceField: string[];
7310
+ readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
7311
+ readonly destSchema: "threadLabel";
7312
+ readonly cardinality: "many";
7313
+ }, {
7314
+ readonly sourceField: string[];
7315
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
7316
+ readonly destSchema: "accountLabel";
7317
+ readonly cardinality: "many";
7318
+ }];
7319
+ recipients: [{
7320
+ readonly sourceField: string[];
7321
+ readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
7322
+ readonly destSchema: "threadMessageRecipient";
7323
+ readonly cardinality: "many";
7324
+ }];
7325
+ thread: [{
7326
+ readonly sourceField: string[];
7327
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
7328
+ readonly destSchema: "thread";
7329
+ readonly cardinality: "one";
7330
+ }];
7331
+ };
7332
+ readonly threadMessageRecipient: {
7333
+ message: [{
7334
+ readonly sourceField: string[];
7335
+ readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
7336
+ readonly destSchema: "threadMessage";
7337
+ readonly cardinality: "one";
7338
+ }];
7339
+ };
7340
+ readonly threadMessageAttachment: {
7341
+ message: [{
7342
+ readonly sourceField: string[];
7343
+ readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
7344
+ readonly destSchema: "threadMessage";
7345
+ readonly cardinality: "one";
7346
+ }];
7347
+ };
7348
+ };
7349
+ enableLegacyQueries: boolean | undefined;
7350
+ enableLegacyMutators: false;
7351
+ }, "thread", {
7352
+ readonly accountId: string;
7353
+ readonly flagged: boolean;
7354
+ readonly id: string;
7355
+ readonly labelIdList: string;
7356
+ readonly latestMessageDate: number;
7357
+ readonly seen: boolean;
7358
+ readonly userId: string;
7359
+ readonly words: string;
7360
+ } & {
7361
+ readonly messages: readonly ({
7362
+ readonly accountId: string;
7363
+ readonly envelopeDate: number;
7364
+ readonly envelopeSubject: string | null;
7365
+ readonly id: string;
7366
+ readonly previewText: string;
7367
+ readonly senderEmail: string;
7368
+ readonly senderName: string | null;
7369
+ readonly threadId: string;
7370
+ } & {
7371
+ readonly recipients: readonly {
7372
+ readonly emailAddress: string;
7373
+ readonly id: string;
7374
+ readonly name: string | null;
7375
+ readonly threadMessageId: string;
7376
+ readonly type: "bcc" | "cc" | "to" | "replyTo";
7377
+ }[];
7378
+ } & {
7379
+ readonly attachments: readonly {
7380
+ readonly fileName: string;
7381
+ readonly id: string;
7382
+ readonly mimeType: string;
7383
+ readonly size: number;
7384
+ readonly threadMessageId: string;
7385
+ }[];
7386
+ })[];
7387
+ }>>;
7388
+ readonly getUser: import("@rocicorp/zero").SyncedQuery<"getUser", import("..").MarcoSyncedQueryContext, true, [], import("@rocicorp/zero").Query<{
5126
7389
  tables: {
5127
7390
  readonly user: {
5128
7391
  name: "user";
@@ -5656,6 +7919,35 @@ export declare const marcoZero: {
5656
7919
  } & {
5657
7920
  primaryKey: ["accountId", "labelId", "threadMessageId"];
5658
7921
  };
7922
+ readonly threadByLabel: {
7923
+ name: "threadByLabel";
7924
+ columns: {
7925
+ readonly labelId: {
7926
+ type: "string";
7927
+ optional: false;
7928
+ customType: string;
7929
+ } & {
7930
+ serverName: string;
7931
+ };
7932
+ readonly latestMessageDate: {
7933
+ type: "number";
7934
+ optional: false;
7935
+ customType: number;
7936
+ } & {
7937
+ serverName: string;
7938
+ };
7939
+ readonly threadId: {
7940
+ type: "string";
7941
+ optional: false;
7942
+ customType: string;
7943
+ } & {
7944
+ serverName: string;
7945
+ };
7946
+ };
7947
+ primaryKey: readonly [string, ...string[]];
7948
+ } & {
7949
+ primaryKey: ["labelId", "threadId"];
7950
+ };
5659
7951
  readonly threadMessage: {
5660
7952
  name: "threadMessage";
5661
7953
  columns: {
@@ -5967,6 +8259,12 @@ export declare const marcoZero: {
5967
8259
  readonly destSchema: "threadMessage";
5968
8260
  readonly cardinality: "many";
5969
8261
  }];
8262
+ threadByLabel: [{
8263
+ readonly sourceField: string[];
8264
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
8265
+ readonly destSchema: "threadByLabel";
8266
+ readonly cardinality: "many";
8267
+ }];
5970
8268
  user: [{
5971
8269
  readonly sourceField: string[];
5972
8270
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -5994,6 +8292,20 @@ export declare const marcoZero: {
5994
8292
  readonly cardinality: "one";
5995
8293
  }];
5996
8294
  };
8295
+ readonly threadByLabel: {
8296
+ label: [{
8297
+ readonly sourceField: string[];
8298
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
8299
+ readonly destSchema: "accountLabel";
8300
+ readonly cardinality: "one";
8301
+ }];
8302
+ thread: [{
8303
+ readonly sourceField: string[];
8304
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
8305
+ readonly destSchema: "thread";
8306
+ readonly cardinality: "one";
8307
+ }];
8308
+ };
5997
8309
  readonly threadMessage: {
5998
8310
  attachments: [{
5999
8311
  readonly sourceField: string[];
@@ -6629,6 +8941,35 @@ export declare const marcoZero: {
6629
8941
  } & {
6630
8942
  primaryKey: ["accountId", "labelId", "threadMessageId"];
6631
8943
  };
8944
+ readonly threadByLabel: {
8945
+ name: "threadByLabel";
8946
+ columns: {
8947
+ readonly labelId: {
8948
+ type: "string";
8949
+ optional: false;
8950
+ customType: string;
8951
+ } & {
8952
+ serverName: string;
8953
+ };
8954
+ readonly latestMessageDate: {
8955
+ type: "number";
8956
+ optional: false;
8957
+ customType: number;
8958
+ } & {
8959
+ serverName: string;
8960
+ };
8961
+ readonly threadId: {
8962
+ type: "string";
8963
+ optional: false;
8964
+ customType: string;
8965
+ } & {
8966
+ serverName: string;
8967
+ };
8968
+ };
8969
+ primaryKey: readonly [string, ...string[]];
8970
+ } & {
8971
+ primaryKey: ["labelId", "threadId"];
8972
+ };
6632
8973
  readonly threadMessage: {
6633
8974
  name: "threadMessage";
6634
8975
  columns: {
@@ -6940,6 +9281,12 @@ export declare const marcoZero: {
6940
9281
  readonly destSchema: "threadMessage";
6941
9282
  readonly cardinality: "many";
6942
9283
  }];
9284
+ threadByLabel: [{
9285
+ readonly sourceField: string[];
9286
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
9287
+ readonly destSchema: "threadByLabel";
9288
+ readonly cardinality: "many";
9289
+ }];
6943
9290
  user: [{
6944
9291
  readonly sourceField: string[];
6945
9292
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -6967,6 +9314,20 @@ export declare const marcoZero: {
6967
9314
  readonly cardinality: "one";
6968
9315
  }];
6969
9316
  };
9317
+ readonly threadByLabel: {
9318
+ label: [{
9319
+ readonly sourceField: string[];
9320
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
9321
+ readonly destSchema: "accountLabel";
9322
+ readonly cardinality: "one";
9323
+ }];
9324
+ thread: [{
9325
+ readonly sourceField: string[];
9326
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
9327
+ readonly destSchema: "thread";
9328
+ readonly cardinality: "one";
9329
+ }];
9330
+ };
6970
9331
  readonly threadMessage: {
6971
9332
  attachments: [{
6972
9333
  readonly sourceField: string[];
@@ -7428,6 +9789,35 @@ export declare const marcoZero: {
7428
9789
  } & {
7429
9790
  primaryKey: ["id"];
7430
9791
  }>;
9792
+ readonly threadByLabel: import("@rocicorp/zero").TableBuilderWithColumns<{
9793
+ name: "threadByLabel";
9794
+ columns: {
9795
+ readonly labelId: {
9796
+ type: "string";
9797
+ optional: false;
9798
+ customType: string;
9799
+ } & {
9800
+ serverName: string;
9801
+ };
9802
+ readonly latestMessageDate: {
9803
+ type: "number";
9804
+ optional: false;
9805
+ customType: number;
9806
+ } & {
9807
+ serverName: string;
9808
+ };
9809
+ readonly threadId: {
9810
+ type: "string";
9811
+ optional: false;
9812
+ customType: string;
9813
+ } & {
9814
+ serverName: string;
9815
+ };
9816
+ };
9817
+ primaryKey: readonly [string, ...string[]];
9818
+ } & {
9819
+ primaryKey: ["labelId", "threadId"];
9820
+ }>;
7431
9821
  readonly threadLabel: import("@rocicorp/zero").TableBuilderWithColumns<{
7432
9822
  name: "threadLabel";
7433
9823
  columns: {