@marcoappio/marco-config 2.0.502 → 2.0.503

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.
@@ -1768,7 +1768,7 @@ export declare const marcoZero: {
1768
1768
  enableLegacyMutators: boolean | undefined;
1769
1769
  }>;
1770
1770
  readonly queries: import("@rocicorp/zero").QueryRegistry<{
1771
- readonly getAccounts: import("@rocicorp/zero").QueryDefinition<"account", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
1771
+ getAccounts: import("@rocicorp/zero").QueryDefinition<"account", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
1772
1772
  readonly color: string;
1773
1773
  readonly displayName: string | null;
1774
1774
  readonly id: string;
@@ -1806,7 +1806,7 @@ export declare const marcoZero: {
1806
1806
  }, {
1807
1807
  readonly userId: string;
1808
1808
  }>;
1809
- readonly getContacts: import("@rocicorp/zero").QueryDefinition<"contact", {
1809
+ getContacts: import("@rocicorp/zero").QueryDefinition<"contact", {
1810
1810
  limit?: number | undefined;
1811
1811
  search?: string | undefined;
1812
1812
  where?: {
@@ -1830,7 +1830,7 @@ export declare const marcoZero: {
1830
1830
  }, {
1831
1831
  readonly userId: string;
1832
1832
  }>;
1833
- readonly getDrafts: import("@rocicorp/zero").QueryDefinition<"draft", {
1833
+ getDrafts: import("@rocicorp/zero").QueryDefinition<"draft", {
1834
1834
  accountId?: string | undefined;
1835
1835
  limit?: number | undefined;
1836
1836
  status?: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED" | undefined;
@@ -1870,7 +1870,7 @@ export declare const marcoZero: {
1870
1870
  }, {
1871
1871
  readonly userId: string;
1872
1872
  }>;
1873
- readonly getThread: import("@rocicorp/zero").QueryDefinition<"thread", {
1873
+ getThread: import("@rocicorp/zero").QueryDefinition<"thread", {
1874
1874
  id: string;
1875
1875
  }, {
1876
1876
  id: string;
@@ -1920,7 +1920,7 @@ export declare const marcoZero: {
1920
1920
  }) | undefined, {
1921
1921
  readonly userId: string;
1922
1922
  }>;
1923
- readonly getThreadList: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
1923
+ getThreadList: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
1924
1924
  labelIds: string[];
1925
1925
  limit?: number | undefined;
1926
1926
  search?: string | undefined;
@@ -1967,7 +1967,7 @@ export declare const marcoZero: {
1967
1967
  }, {
1968
1968
  readonly userId: string;
1969
1969
  }>;
1970
- readonly getThreads: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
1970
+ getThreads: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
1971
1971
  labelIds: string[];
1972
1972
  limit?: number | undefined;
1973
1973
  search?: string | undefined;
@@ -2041,7 +2041,7 @@ export declare const marcoZero: {
2041
2041
  }, {
2042
2042
  readonly userId: string;
2043
2043
  }>;
2044
- readonly getUser: import("@rocicorp/zero").QueryDefinition<"user", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
2044
+ getUser: import("@rocicorp/zero").QueryDefinition<"user", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
2045
2045
  readonly id: string;
2046
2046
  readonly name: string | null;
2047
2047
  readonly profilePicture: string | null;
@@ -2093,7 +2093,1029 @@ export declare const marcoZero: {
2093
2093
  }, {
2094
2094
  readonly userId: string;
2095
2095
  }>;
2096
- }, import("@rocicorp/zero").Schema>;
2096
+ }, {
2097
+ tables: {
2098
+ readonly user: {
2099
+ name: "user";
2100
+ columns: {
2101
+ readonly id: {
2102
+ type: "string";
2103
+ optional: false;
2104
+ customType: string;
2105
+ };
2106
+ readonly name: Omit<{
2107
+ type: "string";
2108
+ optional: false;
2109
+ customType: string;
2110
+ }, "optional"> & {
2111
+ optional: true;
2112
+ };
2113
+ readonly profilePicture: Omit<{
2114
+ type: "string";
2115
+ optional: false;
2116
+ customType: string;
2117
+ }, "optional"> & {
2118
+ optional: true;
2119
+ } & {
2120
+ serverName: string;
2121
+ };
2122
+ readonly undoSendEnabled: {
2123
+ type: "boolean";
2124
+ optional: false;
2125
+ customType: boolean;
2126
+ } & {
2127
+ serverName: string;
2128
+ };
2129
+ };
2130
+ primaryKey: readonly [string, ...string[]];
2131
+ } & {
2132
+ primaryKey: ["id"];
2133
+ };
2134
+ readonly draftAttachment: {
2135
+ name: "draftAttachment";
2136
+ columns: {
2137
+ readonly draftId: {
2138
+ type: "string";
2139
+ optional: false;
2140
+ customType: string;
2141
+ } & {
2142
+ serverName: string;
2143
+ };
2144
+ readonly fileName: {
2145
+ type: "string";
2146
+ optional: false;
2147
+ customType: string;
2148
+ } & {
2149
+ serverName: string;
2150
+ };
2151
+ readonly id: {
2152
+ type: "string";
2153
+ optional: false;
2154
+ customType: string;
2155
+ };
2156
+ readonly mimeType: {
2157
+ type: "string";
2158
+ optional: false;
2159
+ customType: string;
2160
+ } & {
2161
+ serverName: string;
2162
+ };
2163
+ readonly status: {
2164
+ type: "string";
2165
+ optional: false;
2166
+ customType: "PENDING" | "COMPLETE" | "FAILED";
2167
+ } & {
2168
+ serverName: string;
2169
+ };
2170
+ readonly totalSize: {
2171
+ type: "number";
2172
+ optional: false;
2173
+ customType: number;
2174
+ } & {
2175
+ serverName: string;
2176
+ };
2177
+ };
2178
+ primaryKey: readonly [string, ...string[]];
2179
+ } & {
2180
+ primaryKey: ["id"];
2181
+ };
2182
+ readonly userPushNotificationToken: {
2183
+ name: "userPushNotificationToken";
2184
+ columns: {
2185
+ readonly createdAt: {
2186
+ type: "number";
2187
+ optional: false;
2188
+ customType: number;
2189
+ } & {
2190
+ serverName: string;
2191
+ };
2192
+ readonly id: {
2193
+ type: "string";
2194
+ optional: false;
2195
+ customType: string;
2196
+ };
2197
+ readonly token: {
2198
+ type: "string";
2199
+ optional: false;
2200
+ customType: string;
2201
+ };
2202
+ readonly userId: {
2203
+ type: "string";
2204
+ optional: false;
2205
+ customType: string;
2206
+ } & {
2207
+ serverName: string;
2208
+ };
2209
+ };
2210
+ primaryKey: readonly [string, ...string[]];
2211
+ } & {
2212
+ primaryKey: ["id"];
2213
+ };
2214
+ readonly contact: {
2215
+ name: "contact";
2216
+ columns: {
2217
+ readonly emailAddress: {
2218
+ type: "string";
2219
+ optional: false;
2220
+ customType: string;
2221
+ } & {
2222
+ serverName: string;
2223
+ };
2224
+ readonly id: {
2225
+ type: "string";
2226
+ optional: false;
2227
+ customType: string;
2228
+ };
2229
+ readonly name: Omit<{
2230
+ type: "string";
2231
+ optional: false;
2232
+ customType: string;
2233
+ }, "optional"> & {
2234
+ optional: true;
2235
+ };
2236
+ readonly userId: {
2237
+ type: "string";
2238
+ optional: false;
2239
+ customType: string;
2240
+ } & {
2241
+ serverName: string;
2242
+ };
2243
+ };
2244
+ primaryKey: readonly [string, ...string[]];
2245
+ } & {
2246
+ primaryKey: ["id"];
2247
+ };
2248
+ readonly account: {
2249
+ name: "account";
2250
+ columns: {
2251
+ readonly color: {
2252
+ type: "string";
2253
+ optional: false;
2254
+ customType: string;
2255
+ };
2256
+ readonly displayName: Omit<{
2257
+ type: "string";
2258
+ optional: false;
2259
+ customType: string;
2260
+ }, "optional"> & {
2261
+ optional: true;
2262
+ } & {
2263
+ serverName: string;
2264
+ };
2265
+ readonly id: {
2266
+ type: "string";
2267
+ optional: false;
2268
+ customType: string;
2269
+ };
2270
+ readonly imapConnectionStatus: {
2271
+ type: "string";
2272
+ optional: false;
2273
+ 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";
2274
+ } & {
2275
+ serverName: string;
2276
+ };
2277
+ readonly mailProcessedCount: {
2278
+ type: "number";
2279
+ optional: false;
2280
+ customType: number;
2281
+ } & {
2282
+ serverName: string;
2283
+ };
2284
+ readonly mailTotalCount: {
2285
+ type: "number";
2286
+ optional: false;
2287
+ customType: number;
2288
+ } & {
2289
+ serverName: string;
2290
+ };
2291
+ readonly primaryAliasId: Omit<{
2292
+ type: "string";
2293
+ optional: false;
2294
+ customType: string;
2295
+ }, "optional"> & {
2296
+ optional: true;
2297
+ } & {
2298
+ serverName: string;
2299
+ };
2300
+ readonly userId: {
2301
+ type: "string";
2302
+ optional: false;
2303
+ customType: string;
2304
+ } & {
2305
+ serverName: string;
2306
+ };
2307
+ };
2308
+ primaryKey: readonly [string, ...string[]];
2309
+ } & {
2310
+ primaryKey: ["id"];
2311
+ };
2312
+ readonly accountAlias: {
2313
+ name: "accountAlias";
2314
+ columns: {
2315
+ readonly accountId: {
2316
+ type: "string";
2317
+ optional: false;
2318
+ customType: string;
2319
+ } & {
2320
+ serverName: string;
2321
+ };
2322
+ readonly emailAddress: {
2323
+ type: "string";
2324
+ optional: false;
2325
+ customType: string;
2326
+ } & {
2327
+ serverName: string;
2328
+ };
2329
+ readonly id: {
2330
+ type: "string";
2331
+ optional: false;
2332
+ customType: string;
2333
+ };
2334
+ readonly isPrimary: {
2335
+ type: "boolean";
2336
+ optional: false;
2337
+ customType: boolean;
2338
+ } & {
2339
+ serverName: string;
2340
+ };
2341
+ readonly name: Omit<{
2342
+ type: "string";
2343
+ optional: false;
2344
+ customType: string;
2345
+ }, "optional"> & {
2346
+ optional: true;
2347
+ };
2348
+ };
2349
+ primaryKey: readonly [string, ...string[]];
2350
+ } & {
2351
+ primaryKey: ["id"];
2352
+ };
2353
+ readonly accountLabel: {
2354
+ name: "accountLabel";
2355
+ columns: {
2356
+ readonly accountId: {
2357
+ type: "string";
2358
+ optional: false;
2359
+ customType: string;
2360
+ } & {
2361
+ serverName: string;
2362
+ };
2363
+ readonly id: {
2364
+ type: "string";
2365
+ optional: false;
2366
+ customType: string;
2367
+ };
2368
+ readonly name: Omit<{
2369
+ type: "string";
2370
+ optional: false;
2371
+ customType: string;
2372
+ }, "optional"> & {
2373
+ optional: true;
2374
+ };
2375
+ readonly path: {
2376
+ type: "string";
2377
+ optional: false;
2378
+ customType: string;
2379
+ };
2380
+ readonly specialUse: Omit<{
2381
+ type: "string";
2382
+ optional: false;
2383
+ customType: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH";
2384
+ }, "optional"> & {
2385
+ optional: true;
2386
+ } & {
2387
+ serverName: string;
2388
+ };
2389
+ readonly uidValidity: {
2390
+ type: "number";
2391
+ optional: false;
2392
+ customType: number;
2393
+ } & {
2394
+ serverName: string;
2395
+ };
2396
+ readonly unreadCount: {
2397
+ type: "number";
2398
+ optional: false;
2399
+ customType: number;
2400
+ } & {
2401
+ serverName: string;
2402
+ };
2403
+ };
2404
+ primaryKey: readonly [string, ...string[]];
2405
+ } & {
2406
+ primaryKey: ["id"];
2407
+ };
2408
+ readonly draft: {
2409
+ name: "draft";
2410
+ columns: {
2411
+ readonly accountId: {
2412
+ type: "string";
2413
+ optional: false;
2414
+ customType: string;
2415
+ } & {
2416
+ serverName: string;
2417
+ };
2418
+ readonly body: {
2419
+ type: "json";
2420
+ optional: false;
2421
+ customType: {
2422
+ content: string;
2423
+ to: string[];
2424
+ cc: string[];
2425
+ bcc: string[];
2426
+ };
2427
+ };
2428
+ readonly error: Omit<{
2429
+ type: "string";
2430
+ optional: false;
2431
+ customType: string;
2432
+ }, "optional"> & {
2433
+ optional: true;
2434
+ };
2435
+ readonly fromAliasId: Omit<{
2436
+ type: "string";
2437
+ optional: false;
2438
+ customType: string;
2439
+ }, "optional"> & {
2440
+ optional: true;
2441
+ } & {
2442
+ serverName: string;
2443
+ };
2444
+ readonly fromEmail: {
2445
+ type: "string";
2446
+ optional: false;
2447
+ customType: string;
2448
+ } & {
2449
+ serverName: string;
2450
+ };
2451
+ readonly fromName: Omit<{
2452
+ type: "string";
2453
+ optional: false;
2454
+ customType: string;
2455
+ }, "optional"> & {
2456
+ optional: true;
2457
+ } & {
2458
+ serverName: string;
2459
+ };
2460
+ readonly id: {
2461
+ type: "string";
2462
+ optional: false;
2463
+ customType: string;
2464
+ };
2465
+ readonly referencedMessageId: Omit<{
2466
+ type: "string";
2467
+ optional: false;
2468
+ customType: string;
2469
+ }, "optional"> & {
2470
+ optional: true;
2471
+ } & {
2472
+ serverName: string;
2473
+ };
2474
+ readonly scheduledFor: Omit<{
2475
+ type: "number";
2476
+ optional: false;
2477
+ customType: number;
2478
+ }, "optional"> & {
2479
+ optional: true;
2480
+ } & {
2481
+ serverName: string;
2482
+ };
2483
+ readonly status: {
2484
+ type: "string";
2485
+ optional: false;
2486
+ customType: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
2487
+ };
2488
+ readonly subject: Omit<{
2489
+ type: "string";
2490
+ optional: false;
2491
+ customType: string;
2492
+ }, "optional"> & {
2493
+ optional: true;
2494
+ };
2495
+ readonly type: {
2496
+ type: "string";
2497
+ optional: false;
2498
+ customType: "NEW" | "REPLY" | "FORWARD";
2499
+ };
2500
+ readonly updatedAt: {
2501
+ type: "number";
2502
+ optional: false;
2503
+ customType: number;
2504
+ } & {
2505
+ serverName: string;
2506
+ };
2507
+ readonly userId: {
2508
+ type: "string";
2509
+ optional: false;
2510
+ customType: string;
2511
+ } & {
2512
+ serverName: string;
2513
+ };
2514
+ };
2515
+ primaryKey: readonly [string, ...string[]];
2516
+ } & {
2517
+ primaryKey: ["id"];
2518
+ };
2519
+ readonly thread: {
2520
+ name: "thread";
2521
+ columns: {
2522
+ readonly accountId: {
2523
+ type: "string";
2524
+ optional: false;
2525
+ customType: string;
2526
+ } & {
2527
+ serverName: string;
2528
+ };
2529
+ readonly flagged: {
2530
+ type: "boolean";
2531
+ optional: false;
2532
+ customType: boolean;
2533
+ };
2534
+ readonly hasAttachments: {
2535
+ type: "boolean";
2536
+ optional: false;
2537
+ customType: boolean;
2538
+ } & {
2539
+ serverName: string;
2540
+ };
2541
+ readonly id: {
2542
+ type: "string";
2543
+ optional: false;
2544
+ customType: string;
2545
+ };
2546
+ readonly labelIdList: {
2547
+ type: "string";
2548
+ optional: false;
2549
+ customType: string;
2550
+ } & {
2551
+ serverName: string;
2552
+ };
2553
+ readonly latestMessageDate: {
2554
+ type: "number";
2555
+ optional: false;
2556
+ customType: number;
2557
+ } & {
2558
+ serverName: string;
2559
+ };
2560
+ readonly latestMessageId: {
2561
+ type: "string";
2562
+ optional: false;
2563
+ customType: string;
2564
+ } & {
2565
+ serverName: string;
2566
+ };
2567
+ readonly messageCount: {
2568
+ type: "number";
2569
+ optional: false;
2570
+ customType: number;
2571
+ } & {
2572
+ serverName: string;
2573
+ };
2574
+ readonly previewText: {
2575
+ type: "string";
2576
+ optional: false;
2577
+ customType: string;
2578
+ } & {
2579
+ serverName: string;
2580
+ };
2581
+ readonly seen: {
2582
+ type: "boolean";
2583
+ optional: false;
2584
+ customType: boolean;
2585
+ };
2586
+ readonly senderEmail: {
2587
+ type: "string";
2588
+ optional: false;
2589
+ customType: string;
2590
+ } & {
2591
+ serverName: string;
2592
+ };
2593
+ readonly senderName: Omit<{
2594
+ type: "string";
2595
+ optional: false;
2596
+ customType: string;
2597
+ }, "optional"> & {
2598
+ optional: true;
2599
+ } & {
2600
+ serverName: string;
2601
+ };
2602
+ readonly subject: Omit<{
2603
+ type: "string";
2604
+ optional: false;
2605
+ customType: string;
2606
+ }, "optional"> & {
2607
+ optional: true;
2608
+ };
2609
+ readonly userId: {
2610
+ type: "string";
2611
+ optional: false;
2612
+ customType: string;
2613
+ } & {
2614
+ serverName: string;
2615
+ };
2616
+ readonly words: {
2617
+ type: "string";
2618
+ optional: false;
2619
+ customType: string;
2620
+ };
2621
+ };
2622
+ primaryKey: readonly [string, ...string[]];
2623
+ } & {
2624
+ primaryKey: ["id"];
2625
+ };
2626
+ readonly threadLabel: {
2627
+ name: "threadLabel";
2628
+ columns: {
2629
+ readonly accountId: {
2630
+ type: "string";
2631
+ optional: false;
2632
+ customType: string;
2633
+ } & {
2634
+ serverName: string;
2635
+ };
2636
+ readonly labelId: {
2637
+ type: "string";
2638
+ optional: false;
2639
+ customType: string;
2640
+ } & {
2641
+ serverName: string;
2642
+ };
2643
+ readonly lastSyncedAt: {
2644
+ type: "number";
2645
+ optional: false;
2646
+ customType: number;
2647
+ } & {
2648
+ serverName: string;
2649
+ };
2650
+ readonly threadId: {
2651
+ type: "string";
2652
+ optional: false;
2653
+ customType: string;
2654
+ } & {
2655
+ serverName: string;
2656
+ };
2657
+ readonly threadMessageId: {
2658
+ type: "string";
2659
+ optional: false;
2660
+ customType: string;
2661
+ } & {
2662
+ serverName: string;
2663
+ };
2664
+ readonly uid: {
2665
+ type: "number";
2666
+ optional: false;
2667
+ customType: number;
2668
+ };
2669
+ readonly uidValidity: {
2670
+ type: "number";
2671
+ optional: false;
2672
+ customType: number;
2673
+ } & {
2674
+ serverName: string;
2675
+ };
2676
+ };
2677
+ primaryKey: readonly [string, ...string[]];
2678
+ } & {
2679
+ primaryKey: ["accountId", "labelId", "threadMessageId"];
2680
+ };
2681
+ readonly threadByLabel: {
2682
+ name: "threadByLabel";
2683
+ columns: {
2684
+ readonly labelId: {
2685
+ type: "string";
2686
+ optional: false;
2687
+ customType: string;
2688
+ } & {
2689
+ serverName: string;
2690
+ };
2691
+ readonly latestMessageDate: {
2692
+ type: "number";
2693
+ optional: false;
2694
+ customType: number;
2695
+ } & {
2696
+ serverName: string;
2697
+ };
2698
+ readonly threadId: {
2699
+ type: "string";
2700
+ optional: false;
2701
+ customType: string;
2702
+ } & {
2703
+ serverName: string;
2704
+ };
2705
+ };
2706
+ primaryKey: readonly [string, ...string[]];
2707
+ } & {
2708
+ primaryKey: ["labelId", "threadId"];
2709
+ };
2710
+ readonly threadMessage: {
2711
+ name: "threadMessage";
2712
+ columns: {
2713
+ readonly accountId: {
2714
+ type: "string";
2715
+ optional: false;
2716
+ customType: string;
2717
+ } & {
2718
+ serverName: string;
2719
+ };
2720
+ readonly envelopeDate: {
2721
+ type: "number";
2722
+ optional: false;
2723
+ customType: number;
2724
+ } & {
2725
+ serverName: string;
2726
+ };
2727
+ readonly envelopeSubject: Omit<{
2728
+ type: "string";
2729
+ optional: false;
2730
+ customType: string;
2731
+ }, "optional"> & {
2732
+ optional: true;
2733
+ } & {
2734
+ serverName: string;
2735
+ };
2736
+ readonly id: {
2737
+ type: "string";
2738
+ optional: false;
2739
+ customType: string;
2740
+ };
2741
+ readonly previewText: {
2742
+ type: "string";
2743
+ optional: false;
2744
+ customType: string;
2745
+ } & {
2746
+ serverName: string;
2747
+ };
2748
+ readonly senderEmail: {
2749
+ type: "string";
2750
+ optional: false;
2751
+ customType: string;
2752
+ } & {
2753
+ serverName: string;
2754
+ };
2755
+ readonly senderName: Omit<{
2756
+ type: "string";
2757
+ optional: false;
2758
+ customType: string;
2759
+ }, "optional"> & {
2760
+ optional: true;
2761
+ } & {
2762
+ serverName: string;
2763
+ };
2764
+ readonly threadId: {
2765
+ type: "string";
2766
+ optional: false;
2767
+ customType: string;
2768
+ } & {
2769
+ serverName: string;
2770
+ };
2771
+ };
2772
+ primaryKey: readonly [string, ...string[]];
2773
+ } & {
2774
+ primaryKey: ["id"];
2775
+ };
2776
+ readonly threadMessageRecipient: {
2777
+ name: "threadMessageRecipient";
2778
+ columns: {
2779
+ readonly emailAddress: {
2780
+ type: "string";
2781
+ optional: false;
2782
+ customType: string;
2783
+ } & {
2784
+ serverName: string;
2785
+ };
2786
+ readonly id: {
2787
+ type: "string";
2788
+ optional: false;
2789
+ customType: string;
2790
+ };
2791
+ readonly name: Omit<{
2792
+ type: "string";
2793
+ optional: false;
2794
+ customType: string;
2795
+ }, "optional"> & {
2796
+ optional: true;
2797
+ };
2798
+ readonly threadMessageId: {
2799
+ type: "string";
2800
+ optional: false;
2801
+ customType: string;
2802
+ } & {
2803
+ serverName: string;
2804
+ };
2805
+ readonly type: {
2806
+ type: "string";
2807
+ optional: false;
2808
+ customType: "bcc" | "cc" | "to" | "replyTo";
2809
+ };
2810
+ };
2811
+ primaryKey: readonly [string, ...string[]];
2812
+ } & {
2813
+ primaryKey: ["id"];
2814
+ };
2815
+ readonly threadMessageAttachment: {
2816
+ name: "threadMessageAttachment";
2817
+ columns: {
2818
+ readonly fileName: {
2819
+ type: "string";
2820
+ optional: false;
2821
+ customType: string;
2822
+ } & {
2823
+ serverName: string;
2824
+ };
2825
+ readonly id: {
2826
+ type: "string";
2827
+ optional: false;
2828
+ customType: string;
2829
+ };
2830
+ readonly mimeType: {
2831
+ type: "string";
2832
+ optional: false;
2833
+ customType: string;
2834
+ } & {
2835
+ serverName: string;
2836
+ };
2837
+ readonly size: {
2838
+ type: "number";
2839
+ optional: false;
2840
+ customType: number;
2841
+ };
2842
+ readonly threadMessageId: {
2843
+ type: "string";
2844
+ optional: false;
2845
+ customType: string;
2846
+ } & {
2847
+ serverName: string;
2848
+ };
2849
+ };
2850
+ primaryKey: readonly [string, ...string[]];
2851
+ } & {
2852
+ primaryKey: ["id"];
2853
+ };
2854
+ };
2855
+ relationships: {
2856
+ readonly user: {
2857
+ accounts: [{
2858
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
2859
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
2860
+ readonly destSchema: "account";
2861
+ readonly cardinality: "many";
2862
+ }];
2863
+ contacts: [{
2864
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
2865
+ readonly destField: readonly ("id" | "name" | "userId" | "emailAddress")[];
2866
+ readonly destSchema: "contact";
2867
+ readonly cardinality: "many";
2868
+ }];
2869
+ drafts: [{
2870
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
2871
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
2872
+ readonly destSchema: "draft";
2873
+ readonly cardinality: "many";
2874
+ }];
2875
+ pushNotificationTokens: [{
2876
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
2877
+ readonly destField: readonly ("createdAt" | "id" | "token" | "userId")[];
2878
+ readonly destSchema: "userPushNotificationToken";
2879
+ readonly cardinality: "many";
2880
+ }];
2881
+ threads: [{
2882
+ readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
2883
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
2884
+ readonly destSchema: "thread";
2885
+ readonly cardinality: "many";
2886
+ }];
2887
+ };
2888
+ readonly draftAttachment: {
2889
+ draft: [{
2890
+ readonly sourceField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
2891
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
2892
+ readonly destSchema: "draft";
2893
+ readonly cardinality: "one";
2894
+ }];
2895
+ };
2896
+ readonly userPushNotificationToken: {
2897
+ user: [{
2898
+ readonly sourceField: readonly ("createdAt" | "id" | "token" | "userId")[];
2899
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
2900
+ readonly destSchema: "user";
2901
+ readonly cardinality: "one";
2902
+ }];
2903
+ };
2904
+ readonly contact: {
2905
+ user: [{
2906
+ readonly sourceField: readonly ("id" | "name" | "userId" | "emailAddress")[];
2907
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
2908
+ readonly destSchema: "user";
2909
+ readonly cardinality: "one";
2910
+ }];
2911
+ };
2912
+ readonly account: {
2913
+ aliases: [{
2914
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
2915
+ readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
2916
+ readonly destSchema: "accountAlias";
2917
+ readonly cardinality: "many";
2918
+ }];
2919
+ drafts: [{
2920
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
2921
+ readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
2922
+ readonly destSchema: "draft";
2923
+ readonly cardinality: "many";
2924
+ }];
2925
+ labels: [{
2926
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
2927
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
2928
+ readonly destSchema: "accountLabel";
2929
+ readonly cardinality: "many";
2930
+ }];
2931
+ primaryAlias: [{
2932
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
2933
+ readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
2934
+ readonly destSchema: "accountAlias";
2935
+ readonly cardinality: "one";
2936
+ }];
2937
+ threads: [{
2938
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
2939
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
2940
+ readonly destSchema: "thread";
2941
+ readonly cardinality: "many";
2942
+ }];
2943
+ user: [{
2944
+ readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
2945
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
2946
+ readonly destSchema: "user";
2947
+ readonly cardinality: "one";
2948
+ }];
2949
+ };
2950
+ readonly accountAlias: {
2951
+ account: [{
2952
+ readonly sourceField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
2953
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
2954
+ readonly destSchema: "account";
2955
+ readonly cardinality: "one";
2956
+ }];
2957
+ };
2958
+ readonly accountLabel: {
2959
+ account: [{
2960
+ readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
2961
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
2962
+ readonly destSchema: "account";
2963
+ readonly cardinality: "one";
2964
+ }];
2965
+ threads: [{
2966
+ readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
2967
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
2968
+ readonly destSchema: "threadLabel";
2969
+ readonly cardinality: "many";
2970
+ }, {
2971
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
2972
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
2973
+ readonly destSchema: "thread";
2974
+ readonly cardinality: "many";
2975
+ }];
2976
+ };
2977
+ readonly draft: {
2978
+ account: [{
2979
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
2980
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
2981
+ readonly destSchema: "account";
2982
+ readonly cardinality: "one";
2983
+ }];
2984
+ attachments: [{
2985
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
2986
+ readonly destField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
2987
+ readonly destSchema: "draftAttachment";
2988
+ readonly cardinality: "many";
2989
+ }];
2990
+ user: [{
2991
+ readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
2992
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
2993
+ readonly destSchema: "user";
2994
+ readonly cardinality: "one";
2995
+ }];
2996
+ };
2997
+ readonly thread: {
2998
+ account: [{
2999
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
3000
+ readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
3001
+ readonly destSchema: "account";
3002
+ readonly cardinality: "one";
3003
+ }];
3004
+ labels: [{
3005
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
3006
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
3007
+ readonly destSchema: "threadLabel";
3008
+ readonly cardinality: "many";
3009
+ }, {
3010
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
3011
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
3012
+ readonly destSchema: "accountLabel";
3013
+ readonly cardinality: "many";
3014
+ }];
3015
+ messages: [{
3016
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
3017
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
3018
+ readonly destSchema: "threadMessage";
3019
+ readonly cardinality: "many";
3020
+ }];
3021
+ threadByLabel: [{
3022
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
3023
+ readonly destField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
3024
+ readonly destSchema: "threadByLabel";
3025
+ readonly cardinality: "many";
3026
+ }];
3027
+ user: [{
3028
+ readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
3029
+ readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
3030
+ readonly destSchema: "user";
3031
+ readonly cardinality: "one";
3032
+ }];
3033
+ };
3034
+ readonly threadLabel: {
3035
+ label: [{
3036
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
3037
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
3038
+ readonly destSchema: "accountLabel";
3039
+ readonly cardinality: "one";
3040
+ }];
3041
+ message: [{
3042
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
3043
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
3044
+ readonly destSchema: "threadMessage";
3045
+ readonly cardinality: "one";
3046
+ }];
3047
+ thread: [{
3048
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
3049
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
3050
+ readonly destSchema: "thread";
3051
+ readonly cardinality: "one";
3052
+ }];
3053
+ };
3054
+ readonly threadByLabel: {
3055
+ label: [{
3056
+ readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
3057
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
3058
+ readonly destSchema: "accountLabel";
3059
+ readonly cardinality: "one";
3060
+ }];
3061
+ thread: [{
3062
+ readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
3063
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
3064
+ readonly destSchema: "thread";
3065
+ readonly cardinality: "one";
3066
+ }];
3067
+ };
3068
+ readonly threadMessage: {
3069
+ attachments: [{
3070
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
3071
+ readonly destField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
3072
+ readonly destSchema: "threadMessageAttachment";
3073
+ readonly cardinality: "many";
3074
+ }];
3075
+ labels: [{
3076
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
3077
+ readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
3078
+ readonly destSchema: "threadLabel";
3079
+ readonly cardinality: "many";
3080
+ }, {
3081
+ readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
3082
+ readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
3083
+ readonly destSchema: "accountLabel";
3084
+ readonly cardinality: "many";
3085
+ }];
3086
+ recipients: [{
3087
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
3088
+ readonly destField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
3089
+ readonly destSchema: "threadMessageRecipient";
3090
+ readonly cardinality: "many";
3091
+ }];
3092
+ thread: [{
3093
+ readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
3094
+ readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
3095
+ readonly destSchema: "thread";
3096
+ readonly cardinality: "one";
3097
+ }];
3098
+ };
3099
+ readonly threadMessageRecipient: {
3100
+ message: [{
3101
+ readonly sourceField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
3102
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
3103
+ readonly destSchema: "threadMessage";
3104
+ readonly cardinality: "one";
3105
+ }];
3106
+ };
3107
+ readonly threadMessageAttachment: {
3108
+ message: [{
3109
+ readonly sourceField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
3110
+ readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
3111
+ readonly destSchema: "threadMessage";
3112
+ readonly cardinality: "one";
3113
+ }];
3114
+ };
3115
+ };
3116
+ enableLegacyQueries: boolean | undefined;
3117
+ enableLegacyMutators: boolean | undefined;
3118
+ }>;
2097
3119
  readonly schema: {
2098
3120
  tables: {
2099
3121
  readonly user: {