@marcoappio/marco-config 2.0.506 → 2.0.508

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.
@@ -6,7 +6,7 @@ export declare const marcoZero: {
6
6
  readonly delta: import("valibot").ObjectSchema<{
7
7
  readonly aliasId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
8
8
  readonly color: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
9
- readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string, "Invalid email">, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
9
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
10
10
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
11
11
  }, undefined>;
12
12
  };
@@ -14,7 +14,7 @@ export declare const marcoZero: {
14
14
  readonly delta: import("valibot").ObjectSchema<{
15
15
  readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
16
16
  readonly alias: import("valibot").ObjectSchema<{
17
- readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string, "Invalid email">, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
17
+ readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
18
18
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
19
19
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
20
20
  }, undefined>;
@@ -110,14 +110,14 @@ export declare const marcoZero: {
110
110
  readonly totalSize: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
111
111
  }, undefined>, undefined>;
112
112
  readonly body: import("valibot").ObjectSchema<{
113
- readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string, "Invalid email">, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
114
- readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string, "Invalid email">, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
113
+ readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
114
+ readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
115
115
  readonly content: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
116
116
  readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
117
- readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string, "Invalid email">, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
117
+ readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
118
118
  }, undefined>;
119
119
  readonly error: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
120
- readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string, "Invalid email">, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
120
+ readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
121
121
  readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
122
122
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
123
123
  readonly referencedMessageId: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -166,18 +166,18 @@ export declare const marcoZero: {
166
166
  readonly setEnvelope: {
167
167
  readonly delta: import("valibot").ObjectSchema<{
168
168
  readonly envelope: Omit<import("valibot").ObjectSchema<{
169
- readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string, "Invalid email">, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
170
- readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string, "Invalid email">, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
169
+ readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
170
+ readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
171
171
  readonly content: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
172
172
  readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
173
- readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string, "Invalid email">, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
173
+ readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
174
174
  }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
175
175
  readonly entries: Omit<{
176
- readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string, "Invalid email">, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
177
- readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string, "Invalid email">, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
176
+ readonly bcc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
177
+ readonly cc: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
178
178
  readonly content: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 384000, undefined>]>;
179
179
  readonly subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
180
- readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string, "Invalid email">, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
180
+ readonly to: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>, undefined>;
181
181
  }, "content">;
182
182
  readonly '~standard': import("valibot").StandardProps<{
183
183
  bcc: string[];
@@ -195,7 +195,7 @@ export declare const marcoZero: {
195
195
  cc: string[];
196
196
  to: string[];
197
197
  subject: string | null;
198
- }, import("valibot").StringIssue | import("valibot").CheckIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue | import("valibot").ArrayIssue | import("valibot").NonOptionalIssue>;
198
+ }, import("valibot").StringIssue | import("valibot").RfcEmailIssue<string> | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue | import("valibot").ArrayIssue | import("valibot").NonOptionalIssue>;
199
199
  readonly '~types'?: {
200
200
  readonly input: {
201
201
  bcc: string[];
@@ -209,7 +209,7 @@ export declare const marcoZero: {
209
209
  to: string[];
210
210
  subject: string | null;
211
211
  };
212
- readonly issue: import("valibot").StringIssue | import("valibot").CheckIssue<string> | import("valibot").MaxLengthIssue<string, 255> | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue | import("valibot").ArrayIssue | import("valibot").NonOptionalIssue;
212
+ readonly issue: import("valibot").StringIssue | import("valibot").RfcEmailIssue<string> | import("valibot").NonEmptyIssue<string> | import("valibot").MaxLengthIssue<string, number> | import("valibot").ObjectIssue | import("valibot").ArrayIssue | import("valibot").NonOptionalIssue;
213
213
  } | undefined;
214
214
  };
215
215
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -220,7 +220,7 @@ export declare const marcoZero: {
220
220
  readonly delta: import("valibot").ObjectSchema<{
221
221
  readonly accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
222
222
  readonly aliasId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
223
- readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").CheckAction<string, "Invalid email">, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
223
+ readonly from: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
224
224
  readonly fromName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
225
225
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
226
226
  readonly updatedAt: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
@@ -4540,6 +4540,1058 @@ export declare const marcoZero: {
4540
4540
  }[];
4541
4541
  })[];
4542
4542
  }) | undefined>>;
4543
+ readonly getThreadByMessageId: import("@rocicorp/zero").SyncedQuery<"getThreadByMessageId", import("..").MarcoSyncedQueryContext, true, [{
4544
+ messageId: string;
4545
+ }], import("@rocicorp/zero").Query<{
4546
+ tables: {
4547
+ readonly user: {
4548
+ name: "user";
4549
+ columns: {
4550
+ readonly id: {
4551
+ type: "string";
4552
+ optional: false;
4553
+ customType: string;
4554
+ };
4555
+ readonly name: Omit<{
4556
+ type: "string";
4557
+ optional: false;
4558
+ customType: string;
4559
+ }, "optional"> & {
4560
+ optional: true;
4561
+ };
4562
+ readonly profilePicture: Omit<{
4563
+ type: "string";
4564
+ optional: false;
4565
+ customType: string;
4566
+ }, "optional"> & {
4567
+ optional: true;
4568
+ } & {
4569
+ serverName: string;
4570
+ };
4571
+ readonly undoSendEnabled: {
4572
+ type: "boolean";
4573
+ optional: false;
4574
+ customType: boolean;
4575
+ } & {
4576
+ serverName: string;
4577
+ };
4578
+ };
4579
+ primaryKey: readonly [string, ...string[]];
4580
+ } & {
4581
+ primaryKey: ["id"];
4582
+ };
4583
+ readonly userPushNotificationToken: {
4584
+ name: "userPushNotificationToken";
4585
+ columns: {
4586
+ readonly createdAt: {
4587
+ type: "number";
4588
+ optional: false;
4589
+ customType: number;
4590
+ } & {
4591
+ serverName: string;
4592
+ };
4593
+ readonly id: {
4594
+ type: "string";
4595
+ optional: false;
4596
+ customType: string;
4597
+ };
4598
+ readonly token: {
4599
+ type: "string";
4600
+ optional: false;
4601
+ customType: string;
4602
+ };
4603
+ readonly userId: {
4604
+ type: "string";
4605
+ optional: false;
4606
+ customType: string;
4607
+ } & {
4608
+ serverName: string;
4609
+ };
4610
+ };
4611
+ primaryKey: readonly [string, ...string[]];
4612
+ } & {
4613
+ primaryKey: ["id"];
4614
+ };
4615
+ readonly contact: {
4616
+ name: "contact";
4617
+ columns: {
4618
+ readonly emailAddress: {
4619
+ type: "string";
4620
+ optional: false;
4621
+ customType: string;
4622
+ } & {
4623
+ serverName: string;
4624
+ };
4625
+ readonly id: {
4626
+ type: "string";
4627
+ optional: false;
4628
+ customType: string;
4629
+ };
4630
+ readonly name: Omit<{
4631
+ type: "string";
4632
+ optional: false;
4633
+ customType: string;
4634
+ }, "optional"> & {
4635
+ optional: true;
4636
+ };
4637
+ readonly userId: {
4638
+ type: "string";
4639
+ optional: false;
4640
+ customType: string;
4641
+ } & {
4642
+ serverName: string;
4643
+ };
4644
+ };
4645
+ primaryKey: readonly [string, ...string[]];
4646
+ } & {
4647
+ primaryKey: ["id"];
4648
+ };
4649
+ readonly account: {
4650
+ name: "account";
4651
+ columns: {
4652
+ readonly color: {
4653
+ type: "string";
4654
+ optional: false;
4655
+ customType: string;
4656
+ };
4657
+ readonly displayName: Omit<{
4658
+ type: "string";
4659
+ optional: false;
4660
+ customType: string;
4661
+ }, "optional"> & {
4662
+ optional: true;
4663
+ } & {
4664
+ serverName: string;
4665
+ };
4666
+ readonly id: {
4667
+ type: "string";
4668
+ optional: false;
4669
+ customType: string;
4670
+ };
4671
+ readonly imapConnectionStatus: {
4672
+ type: "string";
4673
+ optional: false;
4674
+ 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";
4675
+ } & {
4676
+ serverName: string;
4677
+ };
4678
+ readonly mailProcessedCount: {
4679
+ type: "number";
4680
+ optional: false;
4681
+ customType: number;
4682
+ } & {
4683
+ serverName: string;
4684
+ };
4685
+ readonly mailTotalCount: {
4686
+ type: "number";
4687
+ optional: false;
4688
+ customType: number;
4689
+ } & {
4690
+ serverName: string;
4691
+ };
4692
+ readonly primaryAliasId: Omit<{
4693
+ type: "string";
4694
+ optional: false;
4695
+ customType: string;
4696
+ }, "optional"> & {
4697
+ optional: true;
4698
+ } & {
4699
+ serverName: string;
4700
+ };
4701
+ readonly userId: {
4702
+ type: "string";
4703
+ optional: false;
4704
+ customType: string;
4705
+ } & {
4706
+ serverName: string;
4707
+ };
4708
+ };
4709
+ primaryKey: readonly [string, ...string[]];
4710
+ } & {
4711
+ primaryKey: ["id"];
4712
+ };
4713
+ readonly accountAlias: {
4714
+ name: "accountAlias";
4715
+ columns: {
4716
+ readonly accountId: {
4717
+ type: "string";
4718
+ optional: false;
4719
+ customType: string;
4720
+ } & {
4721
+ serverName: string;
4722
+ };
4723
+ readonly emailAddress: {
4724
+ type: "string";
4725
+ optional: false;
4726
+ customType: string;
4727
+ } & {
4728
+ serverName: string;
4729
+ };
4730
+ readonly id: {
4731
+ type: "string";
4732
+ optional: false;
4733
+ customType: string;
4734
+ };
4735
+ readonly isPrimary: {
4736
+ type: "boolean";
4737
+ optional: false;
4738
+ customType: boolean;
4739
+ } & {
4740
+ serverName: string;
4741
+ };
4742
+ readonly name: Omit<{
4743
+ type: "string";
4744
+ optional: false;
4745
+ customType: string;
4746
+ }, "optional"> & {
4747
+ optional: true;
4748
+ };
4749
+ };
4750
+ primaryKey: readonly [string, ...string[]];
4751
+ } & {
4752
+ primaryKey: ["id"];
4753
+ };
4754
+ readonly accountLabel: {
4755
+ name: "accountLabel";
4756
+ columns: {
4757
+ readonly accountId: {
4758
+ type: "string";
4759
+ optional: false;
4760
+ customType: string;
4761
+ } & {
4762
+ serverName: string;
4763
+ };
4764
+ readonly id: {
4765
+ type: "string";
4766
+ optional: false;
4767
+ customType: string;
4768
+ };
4769
+ readonly name: Omit<{
4770
+ type: "string";
4771
+ optional: false;
4772
+ customType: string;
4773
+ }, "optional"> & {
4774
+ optional: true;
4775
+ };
4776
+ readonly path: {
4777
+ type: "string";
4778
+ optional: false;
4779
+ customType: string;
4780
+ };
4781
+ readonly specialUse: Omit<{
4782
+ type: "string";
4783
+ optional: false;
4784
+ customType: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH";
4785
+ }, "optional"> & {
4786
+ optional: true;
4787
+ } & {
4788
+ serverName: string;
4789
+ };
4790
+ readonly uidValidity: {
4791
+ type: "number";
4792
+ optional: false;
4793
+ customType: number;
4794
+ } & {
4795
+ serverName: string;
4796
+ };
4797
+ readonly unreadCount: {
4798
+ type: "number";
4799
+ optional: false;
4800
+ customType: number;
4801
+ } & {
4802
+ serverName: string;
4803
+ };
4804
+ };
4805
+ primaryKey: readonly [string, ...string[]];
4806
+ } & {
4807
+ primaryKey: ["id"];
4808
+ };
4809
+ readonly draft: {
4810
+ name: "draft";
4811
+ columns: {
4812
+ readonly accountId: {
4813
+ type: "string";
4814
+ optional: false;
4815
+ customType: string;
4816
+ } & {
4817
+ serverName: string;
4818
+ };
4819
+ readonly body: {
4820
+ type: "json";
4821
+ optional: false;
4822
+ customType: {
4823
+ content: string;
4824
+ to: string[];
4825
+ cc: string[];
4826
+ bcc: string[];
4827
+ };
4828
+ };
4829
+ readonly error: Omit<{
4830
+ type: "string";
4831
+ optional: false;
4832
+ customType: string;
4833
+ }, "optional"> & {
4834
+ optional: true;
4835
+ };
4836
+ readonly fromAliasId: Omit<{
4837
+ type: "string";
4838
+ optional: false;
4839
+ customType: string;
4840
+ }, "optional"> & {
4841
+ optional: true;
4842
+ } & {
4843
+ serverName: string;
4844
+ };
4845
+ readonly fromEmail: {
4846
+ type: "string";
4847
+ optional: false;
4848
+ customType: string;
4849
+ } & {
4850
+ serverName: string;
4851
+ };
4852
+ readonly fromName: Omit<{
4853
+ type: "string";
4854
+ optional: false;
4855
+ customType: string;
4856
+ }, "optional"> & {
4857
+ optional: true;
4858
+ } & {
4859
+ serverName: string;
4860
+ };
4861
+ readonly id: {
4862
+ type: "string";
4863
+ optional: false;
4864
+ customType: string;
4865
+ };
4866
+ readonly referencedMessageId: Omit<{
4867
+ type: "string";
4868
+ optional: false;
4869
+ customType: string;
4870
+ }, "optional"> & {
4871
+ optional: true;
4872
+ } & {
4873
+ serverName: string;
4874
+ };
4875
+ readonly scheduledFor: Omit<{
4876
+ type: "number";
4877
+ optional: false;
4878
+ customType: number;
4879
+ }, "optional"> & {
4880
+ optional: true;
4881
+ } & {
4882
+ serverName: string;
4883
+ };
4884
+ readonly status: {
4885
+ type: "string";
4886
+ optional: false;
4887
+ customType: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
4888
+ };
4889
+ readonly subject: Omit<{
4890
+ type: "string";
4891
+ optional: false;
4892
+ customType: string;
4893
+ }, "optional"> & {
4894
+ optional: true;
4895
+ };
4896
+ readonly type: {
4897
+ type: "string";
4898
+ optional: false;
4899
+ customType: "NEW" | "REPLY" | "FORWARD";
4900
+ };
4901
+ readonly updatedAt: {
4902
+ type: "number";
4903
+ optional: false;
4904
+ customType: number;
4905
+ } & {
4906
+ serverName: string;
4907
+ };
4908
+ readonly userId: {
4909
+ type: "string";
4910
+ optional: false;
4911
+ customType: string;
4912
+ } & {
4913
+ serverName: string;
4914
+ };
4915
+ };
4916
+ primaryKey: readonly [string, ...string[]];
4917
+ } & {
4918
+ primaryKey: ["id"];
4919
+ };
4920
+ readonly draftAttachment: {
4921
+ name: "draftAttachment";
4922
+ columns: {
4923
+ readonly draftId: {
4924
+ type: "string";
4925
+ optional: false;
4926
+ customType: string;
4927
+ } & {
4928
+ serverName: string;
4929
+ };
4930
+ readonly fileName: {
4931
+ type: "string";
4932
+ optional: false;
4933
+ customType: string;
4934
+ } & {
4935
+ serverName: string;
4936
+ };
4937
+ readonly id: {
4938
+ type: "string";
4939
+ optional: false;
4940
+ customType: string;
4941
+ };
4942
+ readonly mimeType: {
4943
+ type: "string";
4944
+ optional: false;
4945
+ customType: string;
4946
+ } & {
4947
+ serverName: string;
4948
+ };
4949
+ readonly status: {
4950
+ type: "string";
4951
+ optional: false;
4952
+ customType: "PENDING" | "COMPLETE" | "FAILED";
4953
+ } & {
4954
+ serverName: string;
4955
+ };
4956
+ readonly totalSize: {
4957
+ type: "number";
4958
+ optional: false;
4959
+ customType: number;
4960
+ } & {
4961
+ serverName: string;
4962
+ };
4963
+ };
4964
+ primaryKey: readonly [string, ...string[]];
4965
+ } & {
4966
+ primaryKey: ["id"];
4967
+ };
4968
+ readonly thread: {
4969
+ name: "thread";
4970
+ columns: {
4971
+ readonly accountId: {
4972
+ type: "string";
4973
+ optional: false;
4974
+ customType: string;
4975
+ } & {
4976
+ serverName: string;
4977
+ };
4978
+ readonly flagged: {
4979
+ type: "boolean";
4980
+ optional: false;
4981
+ customType: boolean;
4982
+ };
4983
+ readonly hasAttachments: {
4984
+ type: "boolean";
4985
+ optional: false;
4986
+ customType: boolean;
4987
+ } & {
4988
+ serverName: string;
4989
+ };
4990
+ readonly id: {
4991
+ type: "string";
4992
+ optional: false;
4993
+ customType: string;
4994
+ };
4995
+ readonly labelIdList: {
4996
+ type: "string";
4997
+ optional: false;
4998
+ customType: string;
4999
+ } & {
5000
+ serverName: string;
5001
+ };
5002
+ readonly latestMessageDate: {
5003
+ type: "number";
5004
+ optional: false;
5005
+ customType: number;
5006
+ } & {
5007
+ serverName: string;
5008
+ };
5009
+ readonly latestMessageId: {
5010
+ type: "string";
5011
+ optional: false;
5012
+ customType: string;
5013
+ } & {
5014
+ serverName: string;
5015
+ };
5016
+ readonly messageCount: {
5017
+ type: "number";
5018
+ optional: false;
5019
+ customType: number;
5020
+ } & {
5021
+ serverName: string;
5022
+ };
5023
+ readonly previewText: {
5024
+ type: "string";
5025
+ optional: false;
5026
+ customType: string;
5027
+ } & {
5028
+ serverName: string;
5029
+ };
5030
+ readonly seen: {
5031
+ type: "boolean";
5032
+ optional: false;
5033
+ customType: boolean;
5034
+ };
5035
+ readonly senderEmail: {
5036
+ type: "string";
5037
+ optional: false;
5038
+ customType: string;
5039
+ } & {
5040
+ serverName: string;
5041
+ };
5042
+ readonly senderName: Omit<{
5043
+ type: "string";
5044
+ optional: false;
5045
+ customType: string;
5046
+ }, "optional"> & {
5047
+ optional: true;
5048
+ } & {
5049
+ serverName: string;
5050
+ };
5051
+ readonly subject: Omit<{
5052
+ type: "string";
5053
+ optional: false;
5054
+ customType: string;
5055
+ }, "optional"> & {
5056
+ optional: true;
5057
+ };
5058
+ readonly userId: {
5059
+ type: "string";
5060
+ optional: false;
5061
+ customType: string;
5062
+ } & {
5063
+ serverName: string;
5064
+ };
5065
+ readonly words: {
5066
+ type: "string";
5067
+ optional: false;
5068
+ customType: string;
5069
+ };
5070
+ };
5071
+ primaryKey: readonly [string, ...string[]];
5072
+ } & {
5073
+ primaryKey: ["id"];
5074
+ };
5075
+ readonly threadLabel: {
5076
+ name: "threadLabel";
5077
+ columns: {
5078
+ readonly accountId: {
5079
+ type: "string";
5080
+ optional: false;
5081
+ customType: string;
5082
+ } & {
5083
+ serverName: string;
5084
+ };
5085
+ readonly labelId: {
5086
+ type: "string";
5087
+ optional: false;
5088
+ customType: string;
5089
+ } & {
5090
+ serverName: string;
5091
+ };
5092
+ readonly lastSyncedAt: {
5093
+ type: "number";
5094
+ optional: false;
5095
+ customType: number;
5096
+ } & {
5097
+ serverName: string;
5098
+ };
5099
+ readonly threadId: {
5100
+ type: "string";
5101
+ optional: false;
5102
+ customType: string;
5103
+ } & {
5104
+ serverName: string;
5105
+ };
5106
+ readonly threadMessageId: {
5107
+ type: "string";
5108
+ optional: false;
5109
+ customType: string;
5110
+ } & {
5111
+ serverName: string;
5112
+ };
5113
+ readonly uid: {
5114
+ type: "number";
5115
+ optional: false;
5116
+ customType: number;
5117
+ };
5118
+ readonly uidValidity: {
5119
+ type: "number";
5120
+ optional: false;
5121
+ customType: number;
5122
+ } & {
5123
+ serverName: string;
5124
+ };
5125
+ };
5126
+ primaryKey: readonly [string, ...string[]];
5127
+ } & {
5128
+ primaryKey: ["accountId", "labelId", "threadMessageId"];
5129
+ };
5130
+ readonly threadByLabel: {
5131
+ name: "threadByLabel";
5132
+ columns: {
5133
+ readonly labelId: {
5134
+ type: "string";
5135
+ optional: false;
5136
+ customType: string;
5137
+ } & {
5138
+ serverName: string;
5139
+ };
5140
+ readonly latestMessageDate: {
5141
+ type: "number";
5142
+ optional: false;
5143
+ customType: number;
5144
+ } & {
5145
+ serverName: string;
5146
+ };
5147
+ readonly threadId: {
5148
+ type: "string";
5149
+ optional: false;
5150
+ customType: string;
5151
+ } & {
5152
+ serverName: string;
5153
+ };
5154
+ };
5155
+ primaryKey: readonly [string, ...string[]];
5156
+ } & {
5157
+ primaryKey: ["labelId", "threadId"];
5158
+ };
5159
+ readonly threadMessage: {
5160
+ name: "threadMessage";
5161
+ columns: {
5162
+ readonly accountId: {
5163
+ type: "string";
5164
+ optional: false;
5165
+ customType: string;
5166
+ } & {
5167
+ serverName: string;
5168
+ };
5169
+ readonly envelopeDate: {
5170
+ type: "number";
5171
+ optional: false;
5172
+ customType: number;
5173
+ } & {
5174
+ serverName: string;
5175
+ };
5176
+ readonly envelopeSubject: Omit<{
5177
+ type: "string";
5178
+ optional: false;
5179
+ customType: string;
5180
+ }, "optional"> & {
5181
+ optional: true;
5182
+ } & {
5183
+ serverName: string;
5184
+ };
5185
+ readonly id: {
5186
+ type: "string";
5187
+ optional: false;
5188
+ customType: string;
5189
+ };
5190
+ readonly previewText: {
5191
+ type: "string";
5192
+ optional: false;
5193
+ customType: string;
5194
+ } & {
5195
+ serverName: string;
5196
+ };
5197
+ readonly senderEmail: {
5198
+ type: "string";
5199
+ optional: false;
5200
+ customType: string;
5201
+ } & {
5202
+ serverName: string;
5203
+ };
5204
+ readonly senderName: Omit<{
5205
+ type: "string";
5206
+ optional: false;
5207
+ customType: string;
5208
+ }, "optional"> & {
5209
+ optional: true;
5210
+ } & {
5211
+ serverName: string;
5212
+ };
5213
+ readonly threadId: {
5214
+ type: "string";
5215
+ optional: false;
5216
+ customType: string;
5217
+ } & {
5218
+ serverName: string;
5219
+ };
5220
+ };
5221
+ primaryKey: readonly [string, ...string[]];
5222
+ } & {
5223
+ primaryKey: ["id"];
5224
+ };
5225
+ readonly threadMessageRecipient: {
5226
+ name: "threadMessageRecipient";
5227
+ columns: {
5228
+ readonly emailAddress: {
5229
+ type: "string";
5230
+ optional: false;
5231
+ customType: string;
5232
+ } & {
5233
+ serverName: string;
5234
+ };
5235
+ readonly id: {
5236
+ type: "string";
5237
+ optional: false;
5238
+ customType: string;
5239
+ };
5240
+ readonly name: Omit<{
5241
+ type: "string";
5242
+ optional: false;
5243
+ customType: string;
5244
+ }, "optional"> & {
5245
+ optional: true;
5246
+ };
5247
+ readonly threadMessageId: {
5248
+ type: "string";
5249
+ optional: false;
5250
+ customType: string;
5251
+ } & {
5252
+ serverName: string;
5253
+ };
5254
+ readonly type: {
5255
+ type: "string";
5256
+ optional: false;
5257
+ customType: "bcc" | "cc" | "to" | "replyTo";
5258
+ };
5259
+ };
5260
+ primaryKey: readonly [string, ...string[]];
5261
+ } & {
5262
+ primaryKey: ["id"];
5263
+ };
5264
+ readonly threadMessageAttachment: {
5265
+ name: "threadMessageAttachment";
5266
+ columns: {
5267
+ readonly fileName: {
5268
+ type: "string";
5269
+ optional: false;
5270
+ customType: string;
5271
+ } & {
5272
+ serverName: string;
5273
+ };
5274
+ readonly id: {
5275
+ type: "string";
5276
+ optional: false;
5277
+ customType: string;
5278
+ };
5279
+ readonly mimeType: {
5280
+ type: "string";
5281
+ optional: false;
5282
+ customType: string;
5283
+ } & {
5284
+ serverName: string;
5285
+ };
5286
+ readonly size: {
5287
+ type: "number";
5288
+ optional: false;
5289
+ customType: number;
5290
+ };
5291
+ readonly threadMessageId: {
5292
+ type: "string";
5293
+ optional: false;
5294
+ customType: string;
5295
+ } & {
5296
+ serverName: string;
5297
+ };
5298
+ };
5299
+ primaryKey: readonly [string, ...string[]];
5300
+ } & {
5301
+ primaryKey: ["id"];
5302
+ };
5303
+ };
5304
+ relationships: {
5305
+ readonly user: {
5306
+ accounts: [{
5307
+ readonly sourceField: string[];
5308
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
5309
+ readonly destSchema: "account";
5310
+ readonly cardinality: "many";
5311
+ }];
5312
+ contacts: [{
5313
+ readonly sourceField: string[];
5314
+ readonly destField: ("id" | "name" | "userId" | "emailAddress")[];
5315
+ readonly destSchema: "contact";
5316
+ readonly cardinality: "many";
5317
+ }];
5318
+ drafts: [{
5319
+ readonly sourceField: string[];
5320
+ readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
5321
+ readonly destSchema: "draft";
5322
+ readonly cardinality: "many";
5323
+ }];
5324
+ pushNotificationTokens: [{
5325
+ readonly sourceField: string[];
5326
+ readonly destField: ("id" | "createdAt" | "token" | "userId")[];
5327
+ readonly destSchema: "userPushNotificationToken";
5328
+ readonly cardinality: "many";
5329
+ }];
5330
+ threads: [{
5331
+ readonly sourceField: string[];
5332
+ readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
5333
+ readonly destSchema: "thread";
5334
+ readonly cardinality: "many";
5335
+ }];
5336
+ };
5337
+ readonly userPushNotificationToken: {
5338
+ user: [{
5339
+ readonly sourceField: string[];
5340
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
5341
+ readonly destSchema: "user";
5342
+ readonly cardinality: "one";
5343
+ }];
5344
+ };
5345
+ readonly contact: {
5346
+ user: [{
5347
+ readonly sourceField: string[];
5348
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
5349
+ readonly destSchema: "user";
5350
+ readonly cardinality: "one";
5351
+ }];
5352
+ };
5353
+ readonly account: {
5354
+ aliases: [{
5355
+ readonly sourceField: string[];
5356
+ readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
5357
+ readonly destSchema: "accountAlias";
5358
+ readonly cardinality: "many";
5359
+ }];
5360
+ drafts: [{
5361
+ readonly sourceField: string[];
5362
+ readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
5363
+ readonly destSchema: "draft";
5364
+ readonly cardinality: "many";
5365
+ }];
5366
+ labels: [{
5367
+ readonly sourceField: string[];
5368
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
5369
+ readonly destSchema: "accountLabel";
5370
+ readonly cardinality: "many";
5371
+ }];
5372
+ primaryAlias: [{
5373
+ readonly sourceField: string[];
5374
+ readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
5375
+ readonly destSchema: "accountAlias";
5376
+ readonly cardinality: "one";
5377
+ }];
5378
+ threads: [{
5379
+ readonly sourceField: string[];
5380
+ readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
5381
+ readonly destSchema: "thread";
5382
+ readonly cardinality: "many";
5383
+ }];
5384
+ user: [{
5385
+ readonly sourceField: string[];
5386
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
5387
+ readonly destSchema: "user";
5388
+ readonly cardinality: "one";
5389
+ }];
5390
+ };
5391
+ readonly accountAlias: {
5392
+ account: [{
5393
+ readonly sourceField: string[];
5394
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
5395
+ readonly destSchema: "account";
5396
+ readonly cardinality: "one";
5397
+ }];
5398
+ };
5399
+ readonly accountLabel: {
5400
+ account: [{
5401
+ readonly sourceField: string[];
5402
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
5403
+ readonly destSchema: "account";
5404
+ readonly cardinality: "one";
5405
+ }];
5406
+ threads: [{
5407
+ readonly sourceField: string[];
5408
+ readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
5409
+ readonly destSchema: "threadLabel";
5410
+ readonly cardinality: "many";
5411
+ }, {
5412
+ readonly sourceField: string[];
5413
+ readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
5414
+ readonly destSchema: "thread";
5415
+ readonly cardinality: "many";
5416
+ }];
5417
+ };
5418
+ readonly draft: {
5419
+ account: [{
5420
+ readonly sourceField: string[];
5421
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
5422
+ readonly destSchema: "account";
5423
+ readonly cardinality: "one";
5424
+ }];
5425
+ attachments: [{
5426
+ readonly sourceField: string[];
5427
+ readonly destField: ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
5428
+ readonly destSchema: "draftAttachment";
5429
+ readonly cardinality: "many";
5430
+ }];
5431
+ user: [{
5432
+ readonly sourceField: string[];
5433
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
5434
+ readonly destSchema: "user";
5435
+ readonly cardinality: "one";
5436
+ }];
5437
+ };
5438
+ readonly draftAttachment: {
5439
+ draft: [{
5440
+ readonly sourceField: string[];
5441
+ readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
5442
+ readonly destSchema: "draft";
5443
+ readonly cardinality: "one";
5444
+ }];
5445
+ };
5446
+ readonly thread: {
5447
+ account: [{
5448
+ readonly sourceField: string[];
5449
+ readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
5450
+ readonly destSchema: "account";
5451
+ readonly cardinality: "one";
5452
+ }];
5453
+ labels: [{
5454
+ readonly sourceField: string[];
5455
+ readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
5456
+ readonly destSchema: "threadLabel";
5457
+ readonly cardinality: "many";
5458
+ }, {
5459
+ readonly sourceField: string[];
5460
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
5461
+ readonly destSchema: "accountLabel";
5462
+ readonly cardinality: "many";
5463
+ }];
5464
+ messages: [{
5465
+ readonly sourceField: string[];
5466
+ readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
5467
+ readonly destSchema: "threadMessage";
5468
+ readonly cardinality: "many";
5469
+ }];
5470
+ threadByLabel: [{
5471
+ readonly sourceField: string[];
5472
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
5473
+ readonly destSchema: "threadByLabel";
5474
+ readonly cardinality: "many";
5475
+ }];
5476
+ user: [{
5477
+ readonly sourceField: string[];
5478
+ readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
5479
+ readonly destSchema: "user";
5480
+ readonly cardinality: "one";
5481
+ }];
5482
+ };
5483
+ readonly threadLabel: {
5484
+ label: [{
5485
+ readonly sourceField: string[];
5486
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
5487
+ readonly destSchema: "accountLabel";
5488
+ readonly cardinality: "one";
5489
+ }];
5490
+ message: [{
5491
+ readonly sourceField: string[];
5492
+ readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
5493
+ readonly destSchema: "threadMessage";
5494
+ readonly cardinality: "one";
5495
+ }];
5496
+ thread: [{
5497
+ readonly sourceField: string[];
5498
+ readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
5499
+ readonly destSchema: "thread";
5500
+ readonly cardinality: "one";
5501
+ }];
5502
+ };
5503
+ readonly threadByLabel: {
5504
+ label: [{
5505
+ readonly sourceField: string[];
5506
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
5507
+ readonly destSchema: "accountLabel";
5508
+ readonly cardinality: "one";
5509
+ }];
5510
+ thread: [{
5511
+ readonly sourceField: string[];
5512
+ readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
5513
+ readonly destSchema: "thread";
5514
+ readonly cardinality: "one";
5515
+ }];
5516
+ };
5517
+ readonly threadMessage: {
5518
+ attachments: [{
5519
+ readonly sourceField: string[];
5520
+ readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
5521
+ readonly destSchema: "threadMessageAttachment";
5522
+ readonly cardinality: "many";
5523
+ }];
5524
+ labels: [{
5525
+ readonly sourceField: string[];
5526
+ readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
5527
+ readonly destSchema: "threadLabel";
5528
+ readonly cardinality: "many";
5529
+ }, {
5530
+ readonly sourceField: string[];
5531
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
5532
+ readonly destSchema: "accountLabel";
5533
+ readonly cardinality: "many";
5534
+ }];
5535
+ recipients: [{
5536
+ readonly sourceField: string[];
5537
+ readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
5538
+ readonly destSchema: "threadMessageRecipient";
5539
+ readonly cardinality: "many";
5540
+ }];
5541
+ thread: [{
5542
+ readonly sourceField: string[];
5543
+ readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
5544
+ readonly destSchema: "thread";
5545
+ readonly cardinality: "one";
5546
+ }];
5547
+ };
5548
+ readonly threadMessageRecipient: {
5549
+ message: [{
5550
+ readonly sourceField: string[];
5551
+ readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
5552
+ readonly destSchema: "threadMessage";
5553
+ readonly cardinality: "one";
5554
+ }];
5555
+ };
5556
+ readonly threadMessageAttachment: {
5557
+ message: [{
5558
+ readonly sourceField: string[];
5559
+ readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
5560
+ readonly destSchema: "threadMessage";
5561
+ readonly cardinality: "one";
5562
+ }];
5563
+ };
5564
+ };
5565
+ enableLegacyQueries: boolean | undefined;
5566
+ enableLegacyMutators: false;
5567
+ }, "threadMessage", ({
5568
+ readonly accountId: string;
5569
+ readonly envelopeDate: number;
5570
+ readonly envelopeSubject: string | null;
5571
+ readonly id: string;
5572
+ readonly previewText: string;
5573
+ readonly senderEmail: string;
5574
+ readonly senderName: string | null;
5575
+ readonly threadId: string;
5576
+ } & {
5577
+ readonly thread: {
5578
+ readonly accountId: string;
5579
+ readonly flagged: boolean;
5580
+ readonly hasAttachments: boolean;
5581
+ readonly id: string;
5582
+ readonly labelIdList: string;
5583
+ readonly latestMessageDate: number;
5584
+ readonly latestMessageId: string;
5585
+ readonly messageCount: number;
5586
+ readonly previewText: string;
5587
+ readonly seen: boolean;
5588
+ readonly senderEmail: string;
5589
+ readonly senderName: string | null;
5590
+ readonly subject: string | null;
5591
+ readonly userId: string;
5592
+ readonly words: string;
5593
+ } | undefined;
5594
+ }) | undefined>>;
4543
5595
  readonly getThreadList: import("@rocicorp/zero").SyncedQuery<"getThreadList", import("..").MarcoSyncedQueryContext, true, [{
4544
5596
  labelIds: string[];
4545
5597
  limit: number;