@marcoappio/marco-config 2.0.517 → 2.0.519

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.
@@ -59,12 +59,12 @@ export declare const marcoSchemas: {
59
59
  payload: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
60
60
  readonly data: import("valibot").ObjectSchema<{
61
61
  readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
62
- readonly thread: import("valibot").ObjectSchema<{
62
+ readonly thread: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
63
63
  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>;
64
64
  readonly flagged: import("valibot").BooleanSchema<undefined>;
65
65
  readonly hasAttachments: import("valibot").BooleanSchema<undefined>;
66
66
  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>;
67
- readonly labelIdList: import("valibot").StringSchema<undefined>;
67
+ readonly labelIdList: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
68
68
  readonly latestMessageDate: import("valibot").NumberSchema<undefined>;
69
69
  readonly latestMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
70
70
  readonly messageCount: import("valibot").NumberSchema<undefined>;
@@ -78,28 +78,28 @@ export declare const marcoSchemas: {
78
78
  readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
79
79
  }, undefined>, undefined>;
80
80
  readonly envelopeDate: import("valibot").NumberSchema<undefined>;
81
- readonly envelopeSubject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
81
+ readonly envelopeSubject: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
82
82
  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>;
83
- readonly previewText: import("valibot").StringSchema<undefined>;
83
+ readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
84
84
  readonly recipients: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
85
85
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
86
86
  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>;
87
- readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
87
+ readonly name: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
88
88
  readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
89
89
  readonly type: import("valibot").PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
90
90
  }, undefined>, undefined>;
91
91
  readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
92
- readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
92
+ readonly senderName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
93
93
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
94
94
  }, undefined>, undefined>;
95
- readonly previewText: import("valibot").StringSchema<undefined>;
95
+ readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
96
96
  readonly seen: import("valibot").BooleanSchema<undefined>;
97
97
  readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
98
- readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
99
- readonly subject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
98
+ readonly senderName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
99
+ readonly subject: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
100
100
  readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
101
- readonly words: import("valibot").StringSchema<undefined>;
102
- }, undefined>;
101
+ readonly words: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
102
+ }, undefined>, undefined>;
103
103
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
104
104
  }, undefined>;
105
105
  readonly event: import("valibot").LiteralSchema<"EMAIL_RECEIVED", undefined>;
@@ -122,24 +122,24 @@ export declare const marcoSchemas: {
122
122
  readonly threadMessageId: 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
  }, undefined>, undefined>;
124
124
  readonly envelopeDate: import("valibot").NumberSchema<undefined>;
125
- readonly envelopeSubject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
125
+ readonly envelopeSubject: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
126
126
  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>;
127
- readonly previewText: import("valibot").StringSchema<undefined>;
127
+ readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
128
128
  readonly recipients: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
129
129
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
130
130
  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>;
131
- readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
131
+ readonly name: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
132
132
  readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
133
133
  readonly type: import("valibot").PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
134
134
  }, undefined>, undefined>;
135
135
  readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
136
- readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
136
+ readonly senderName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
137
137
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
138
138
  }, undefined>;
139
139
  recipient: import("valibot").ObjectSchema<{
140
140
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
141
141
  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>;
142
- readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
142
+ readonly name: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
143
143
  readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
144
144
  readonly type: import("valibot").PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
145
145
  }, undefined>;
@@ -148,7 +148,7 @@ export declare const marcoSchemas: {
148
148
  readonly flagged: import("valibot").BooleanSchema<undefined>;
149
149
  readonly hasAttachments: import("valibot").BooleanSchema<undefined>;
150
150
  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>;
151
- readonly labelIdList: import("valibot").StringSchema<undefined>;
151
+ readonly labelIdList: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
152
152
  readonly latestMessageDate: import("valibot").NumberSchema<undefined>;
153
153
  readonly latestMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
154
154
  readonly messageCount: import("valibot").NumberSchema<undefined>;
@@ -162,27 +162,27 @@ export declare const marcoSchemas: {
162
162
  readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
163
163
  }, undefined>, undefined>;
164
164
  readonly envelopeDate: import("valibot").NumberSchema<undefined>;
165
- readonly envelopeSubject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
165
+ readonly envelopeSubject: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
166
166
  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>;
167
- readonly previewText: import("valibot").StringSchema<undefined>;
167
+ readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
168
168
  readonly recipients: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
169
169
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
170
170
  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>;
171
- readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
171
+ readonly name: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
172
172
  readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
173
173
  readonly type: import("valibot").PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
174
174
  }, undefined>, undefined>;
175
175
  readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
176
- readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
176
+ readonly senderName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
177
177
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
178
178
  }, undefined>, undefined>;
179
- readonly previewText: import("valibot").StringSchema<undefined>;
179
+ readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
180
180
  readonly seen: import("valibot").BooleanSchema<undefined>;
181
181
  readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
182
- readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
183
- readonly subject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
182
+ readonly senderName: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
183
+ readonly subject: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
184
184
  readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
185
- readonly words: import("valibot").StringSchema<undefined>;
185
+ readonly words: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
186
186
  }, undefined>;
187
187
  };
188
188
  };
@@ -3,12 +3,12 @@ export declare const pushNotifications: {
3
3
  payload: v.UnionSchema<[v.ObjectSchema<{
4
4
  readonly data: v.ObjectSchema<{
5
5
  readonly messageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
6
- readonly thread: v.ObjectSchema<{
6
+ readonly thread: v.OptionalSchema<v.ObjectSchema<{
7
7
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
8
8
  readonly flagged: v.BooleanSchema<undefined>;
9
9
  readonly hasAttachments: v.BooleanSchema<undefined>;
10
10
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
11
- readonly labelIdList: v.StringSchema<undefined>;
11
+ readonly labelIdList: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
12
12
  readonly latestMessageDate: v.NumberSchema<undefined>;
13
13
  readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
14
14
  readonly messageCount: v.NumberSchema<undefined>;
@@ -22,28 +22,28 @@ export declare const pushNotifications: {
22
22
  readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
23
23
  }, undefined>, undefined>;
24
24
  readonly envelopeDate: v.NumberSchema<undefined>;
25
- readonly envelopeSubject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly envelopeSubject: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
26
26
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
27
- readonly previewText: v.StringSchema<undefined>;
27
+ readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
28
28
  readonly recipients: v.ArraySchema<v.ObjectSchema<{
29
29
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
30
30
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
31
- readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
31
+ readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
32
32
  readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
33
  readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
34
34
  }, undefined>, undefined>;
35
35
  readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
- readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
36
+ readonly senderName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
37
37
  readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
38
38
  }, undefined>, undefined>;
39
- readonly previewText: v.StringSchema<undefined>;
39
+ readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
40
40
  readonly seen: v.BooleanSchema<undefined>;
41
41
  readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
- readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
43
- readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
42
+ readonly senderName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
43
+ readonly subject: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
44
44
  readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
45
- readonly words: v.StringSchema<undefined>;
46
- }, undefined>;
45
+ readonly words: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
46
+ }, undefined>, undefined>;
47
47
  readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
48
48
  }, undefined>;
49
49
  readonly event: v.LiteralSchema<"EMAIL_RECEIVED", undefined>;
@@ -66,24 +66,24 @@ export declare const pushNotifications: {
66
66
  readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
67
67
  }, undefined>, undefined>;
68
68
  readonly envelopeDate: v.NumberSchema<undefined>;
69
- readonly envelopeSubject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
69
+ readonly envelopeSubject: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
70
70
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
71
- readonly previewText: v.StringSchema<undefined>;
71
+ readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
72
72
  readonly recipients: v.ArraySchema<v.ObjectSchema<{
73
73
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
74
74
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
75
- readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
75
+ readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
76
76
  readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
77
77
  readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
78
78
  }, undefined>, undefined>;
79
79
  readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
80
- readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
80
+ readonly senderName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
81
81
  readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
82
82
  }, undefined>;
83
83
  recipient: v.ObjectSchema<{
84
84
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
85
85
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
86
- readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
86
+ readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
87
87
  readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
88
88
  readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
89
89
  }, undefined>;
@@ -92,7 +92,7 @@ export declare const pushNotifications: {
92
92
  readonly flagged: v.BooleanSchema<undefined>;
93
93
  readonly hasAttachments: v.BooleanSchema<undefined>;
94
94
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
95
- readonly labelIdList: v.StringSchema<undefined>;
95
+ readonly labelIdList: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
96
96
  readonly latestMessageDate: v.NumberSchema<undefined>;
97
97
  readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
98
98
  readonly messageCount: v.NumberSchema<undefined>;
@@ -106,27 +106,27 @@ export declare const pushNotifications: {
106
106
  readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
107
107
  }, undefined>, undefined>;
108
108
  readonly envelopeDate: v.NumberSchema<undefined>;
109
- readonly envelopeSubject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
109
+ readonly envelopeSubject: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
110
110
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
111
- readonly previewText: v.StringSchema<undefined>;
111
+ readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
112
112
  readonly recipients: v.ArraySchema<v.ObjectSchema<{
113
113
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
114
114
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
115
- readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
115
+ readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
116
116
  readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
117
117
  readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
118
118
  }, undefined>, undefined>;
119
119
  readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
120
- readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
120
+ readonly senderName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
121
121
  readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
122
122
  }, undefined>, undefined>;
123
- readonly previewText: v.StringSchema<undefined>;
123
+ readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
124
124
  readonly seen: v.BooleanSchema<undefined>;
125
125
  readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
126
- readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
127
- readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
126
+ readonly senderName: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
127
+ readonly subject: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
128
128
  readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
129
- readonly words: v.StringSchema<undefined>;
129
+ readonly words: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
130
130
  }, undefined>;
131
131
  };
132
132
  };
@@ -4,7 +4,7 @@ import { string } from './string';
4
4
  const pushNotificationRecipient = v.object({
5
5
  emailAddress: string.required(),
6
6
  id: string.required(),
7
- name: v.nullable(v.string()),
7
+ name: v.optional(v.nullable(v.string())),
8
8
  threadMessageId: string.required(),
9
9
  type: v.picklist(MESSAGE_RECIPIENT_TYPES),
10
10
  });
@@ -19,12 +19,12 @@ const pushNotificationMessage = v.object({
19
19
  accountId: string.required(),
20
20
  attachments: v.array(pushNotificationAttachment),
21
21
  envelopeDate: v.number(),
22
- envelopeSubject: v.nullable(v.string()),
22
+ envelopeSubject: v.optional(v.nullable(v.string())),
23
23
  id: string.required(),
24
- previewText: v.string(),
24
+ previewText: string.required(),
25
25
  recipients: v.array(pushNotificationRecipient),
26
26
  senderEmail: string.required(),
27
- senderName: v.nullable(v.string()),
27
+ senderName: v.optional(v.nullable(v.string())),
28
28
  threadId: string.required(),
29
29
  });
30
30
  const pushNotificationThread = v.object({
@@ -32,23 +32,23 @@ const pushNotificationThread = v.object({
32
32
  flagged: v.boolean(),
33
33
  hasAttachments: v.boolean(),
34
34
  id: string.required(),
35
- labelIdList: v.string(),
35
+ labelIdList: string.required(),
36
36
  latestMessageDate: v.number(),
37
37
  latestMessageId: string.required(),
38
38
  messageCount: v.number(),
39
39
  messages: v.array(pushNotificationMessage),
40
- previewText: v.string(),
40
+ previewText: string.required(),
41
41
  seen: v.boolean(),
42
42
  senderEmail: string.required(),
43
- senderName: v.nullable(v.string()),
44
- subject: v.nullable(v.string()),
43
+ senderName: v.optional(v.nullable(v.string())),
44
+ subject: v.optional(v.nullable(v.string())),
45
45
  userId: string.required(),
46
- words: v.string(),
46
+ words: string.required(),
47
47
  });
48
48
  const pushNotificationEmailReceivedPayload = v.object({
49
49
  data: v.object({
50
50
  messageId: string.required(),
51
- thread: pushNotificationThread,
51
+ thread: v.optional(pushNotificationThread),
52
52
  threadId: string.required(),
53
53
  }),
54
54
  event: v.literal('EMAIL_RECEIVED'),
@@ -202,49 +202,6 @@ export declare const marcoZero: {
202
202
  readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
203
203
  }, undefined>, undefined>;
204
204
  }, undefined>;
205
- insertFromPushNotification: import("valibot").ObjectSchema<{
206
- readonly thread: import("valibot").ObjectSchema<{
207
- 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>;
208
- readonly flagged: import("valibot").BooleanSchema<undefined>;
209
- readonly hasAttachments: import("valibot").BooleanSchema<undefined>;
210
- 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>;
211
- readonly labelIdList: import("valibot").StringSchema<undefined>;
212
- readonly latestMessageDate: import("valibot").NumberSchema<undefined>;
213
- readonly latestMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
214
- readonly messageCount: import("valibot").NumberSchema<undefined>;
215
- readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
216
- 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>;
217
- readonly attachments: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
218
- readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
219
- 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
- readonly mimeType: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
221
- readonly size: import("valibot").NumberSchema<undefined>;
222
- readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
223
- }, undefined>, undefined>;
224
- readonly envelopeDate: import("valibot").NumberSchema<undefined>;
225
- readonly envelopeSubject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
226
- 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>;
227
- readonly previewText: import("valibot").StringSchema<undefined>;
228
- readonly recipients: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
229
- readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
230
- 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>;
231
- readonly name: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
232
- readonly threadMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
233
- readonly type: import("valibot").PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
234
- }, undefined>, undefined>;
235
- readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
236
- readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
237
- readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
238
- }, undefined>, undefined>;
239
- readonly previewText: import("valibot").StringSchema<undefined>;
240
- readonly seen: import("valibot").BooleanSchema<undefined>;
241
- readonly senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
242
- readonly senderName: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
243
- readonly subject: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
244
- readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
245
- readonly words: import("valibot").StringSchema<undefined>;
246
- }, undefined>;
247
- }, undefined>;
248
205
  removeLabel: import("valibot").ObjectSchema<{
249
206
  readonly accounts: import("valibot").RecordSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, import("valibot").ObjectSchema<{
250
207
  readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
@@ -649,93 +606,6 @@ export declare const marcoZero: {
649
606
  }, {
650
607
  userId: string;
651
608
  }, unknown>;
652
- readonly insertFromPushNotification: import("@rocicorp/zero").MutatorDefinition<{
653
- thread: {
654
- accountId: string;
655
- flagged: boolean;
656
- hasAttachments: boolean;
657
- id: string;
658
- labelIdList: string;
659
- latestMessageDate: number;
660
- latestMessageId: string;
661
- messageCount: number;
662
- messages: {
663
- accountId: string;
664
- attachments: {
665
- fileName: string;
666
- id: string;
667
- mimeType: string;
668
- size: number;
669
- threadMessageId: string;
670
- }[];
671
- envelopeDate: number;
672
- envelopeSubject: string | null;
673
- id: string;
674
- previewText: string;
675
- recipients: {
676
- emailAddress: string;
677
- id: string;
678
- name: string | null;
679
- threadMessageId: string;
680
- type: "bcc" | "cc" | "to" | "replyTo";
681
- }[];
682
- senderEmail: string;
683
- senderName: string | null;
684
- threadId: string;
685
- }[];
686
- previewText: string;
687
- seen: boolean;
688
- senderEmail: string;
689
- senderName: string | null;
690
- subject: string | null;
691
- userId: string;
692
- words: string;
693
- };
694
- }, {
695
- thread: {
696
- accountId: string;
697
- flagged: boolean;
698
- hasAttachments: boolean;
699
- id: string;
700
- labelIdList: string;
701
- latestMessageDate: number;
702
- latestMessageId: string;
703
- messageCount: number;
704
- messages: {
705
- accountId: string;
706
- attachments: {
707
- fileName: string;
708
- id: string;
709
- mimeType: string;
710
- size: number;
711
- threadMessageId: string;
712
- }[];
713
- envelopeDate: number;
714
- envelopeSubject: string | null;
715
- id: string;
716
- previewText: string;
717
- recipients: {
718
- emailAddress: string;
719
- id: string;
720
- name: string | null;
721
- threadMessageId: string;
722
- type: "bcc" | "cc" | "to" | "replyTo";
723
- }[];
724
- senderEmail: string;
725
- senderName: string | null;
726
- threadId: string;
727
- }[];
728
- previewText: string;
729
- seen: boolean;
730
- senderEmail: string;
731
- senderName: string | null;
732
- subject: string | null;
733
- userId: string;
734
- words: string;
735
- };
736
- }, {
737
- userId: string;
738
- }, unknown>;
739
609
  readonly removeLabel: import("@rocicorp/zero").MutatorDefinition<{
740
610
  accounts: {
741
611
  [x: string]: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMZ,CAAA"}
@@ -202,49 +202,6 @@ export declare const mutatorSchemas: {
202
202
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
203
203
  }, undefined>, undefined>;
204
204
  }, undefined>;
205
- insertFromPushNotification: v.ObjectSchema<{
206
- readonly thread: v.ObjectSchema<{
207
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
208
- readonly flagged: v.BooleanSchema<undefined>;
209
- readonly hasAttachments: v.BooleanSchema<undefined>;
210
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
211
- readonly labelIdList: v.StringSchema<undefined>;
212
- readonly latestMessageDate: v.NumberSchema<undefined>;
213
- readonly latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
214
- readonly messageCount: v.NumberSchema<undefined>;
215
- readonly messages: v.ArraySchema<v.ObjectSchema<{
216
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
217
- readonly attachments: v.ArraySchema<v.ObjectSchema<{
218
- readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
219
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
220
- readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
221
- readonly size: v.NumberSchema<undefined>;
222
- readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
223
- }, undefined>, undefined>;
224
- readonly envelopeDate: v.NumberSchema<undefined>;
225
- readonly envelopeSubject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
226
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
227
- readonly previewText: v.StringSchema<undefined>;
228
- readonly recipients: v.ArraySchema<v.ObjectSchema<{
229
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
230
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
231
- readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
232
- readonly threadMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
233
- readonly type: v.PicklistSchema<readonly ["bcc", "cc", "to", "replyTo"], undefined>;
234
- }, undefined>, undefined>;
235
- readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
236
- readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
237
- readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
238
- }, undefined>, undefined>;
239
- readonly previewText: v.StringSchema<undefined>;
240
- readonly seen: v.BooleanSchema<undefined>;
241
- readonly senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
242
- readonly senderName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
243
- readonly subject: v.NullableSchema<v.StringSchema<undefined>, undefined>;
244
- readonly userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
245
- readonly words: v.StringSchema<undefined>;
246
- }, undefined>;
247
- }, undefined>;
248
205
  removeLabel: v.ObjectSchema<{
249
206
  readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
250
207
  readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../src/zero/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAqE5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6I1B,CAAA"}
1
+ {"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../src/zero/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAqE5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0I1B,CAAA"}
@@ -163,9 +163,6 @@ export const mutatorSchemas = {
163
163
  thread: {
164
164
  addLabel: threadChangeLabelSchema,
165
165
  delete: baseThreadSchema,
166
- insertFromPushNotification: v.object({
167
- thread: marcoSchemas.pushNotifications.schemas.thread,
168
- }),
169
166
  removeLabel: threadChangeLabelSchema,
170
167
  setArchive: baseThreadSchema,
171
168
  setFlagged: v.object({
@@ -307,91 +307,6 @@ export declare const mutators: import("@rocicorp/zero").MutatorRegistry<{
307
307
  };
308
308
  };
309
309
  }, Context, unknown>;
310
- readonly insertFromPushNotification: import("@rocicorp/zero").MutatorDefinition<{
311
- thread: {
312
- accountId: string;
313
- flagged: boolean;
314
- hasAttachments: boolean;
315
- id: string;
316
- labelIdList: string;
317
- latestMessageDate: number;
318
- latestMessageId: string;
319
- messageCount: number;
320
- messages: {
321
- accountId: string;
322
- attachments: {
323
- fileName: string;
324
- id: string;
325
- mimeType: string;
326
- size: number;
327
- threadMessageId: string;
328
- }[];
329
- envelopeDate: number;
330
- envelopeSubject: string | null;
331
- id: string;
332
- previewText: string;
333
- recipients: {
334
- emailAddress: string;
335
- id: string;
336
- name: string | null;
337
- threadMessageId: string;
338
- type: "bcc" | "cc" | "to" | "replyTo";
339
- }[];
340
- senderEmail: string;
341
- senderName: string | null;
342
- threadId: string;
343
- }[];
344
- previewText: string;
345
- seen: boolean;
346
- senderEmail: string;
347
- senderName: string | null;
348
- subject: string | null;
349
- userId: string;
350
- words: string;
351
- };
352
- }, {
353
- thread: {
354
- accountId: string;
355
- flagged: boolean;
356
- hasAttachments: boolean;
357
- id: string;
358
- labelIdList: string;
359
- latestMessageDate: number;
360
- latestMessageId: string;
361
- messageCount: number;
362
- messages: {
363
- accountId: string;
364
- attachments: {
365
- fileName: string;
366
- id: string;
367
- mimeType: string;
368
- size: number;
369
- threadMessageId: string;
370
- }[];
371
- envelopeDate: number;
372
- envelopeSubject: string | null;
373
- id: string;
374
- previewText: string;
375
- recipients: {
376
- emailAddress: string;
377
- id: string;
378
- name: string | null;
379
- threadMessageId: string;
380
- type: "bcc" | "cc" | "to" | "replyTo";
381
- }[];
382
- senderEmail: string;
383
- senderName: string | null;
384
- threadId: string;
385
- }[];
386
- previewText: string;
387
- seen: boolean;
388
- senderEmail: string;
389
- senderName: string | null;
390
- subject: string | null;
391
- userId: string;
392
- words: string;
393
- };
394
- }, Context, unknown>;
395
310
  readonly removeLabel: import("@rocicorp/zero").MutatorDefinition<{
396
311
  accounts: {
397
312
  [x: string]: {
@@ -1 +1 @@
1
- {"version":3,"file":"mutators.d.ts","sourceRoot":"","sources":["../../src/zero/mutators.ts"],"names":[],"mappings":"AASA,KAAK,OAAO,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAyGjC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0iBnB,CAAA"}
@@ -390,75 +390,6 @@ export const mutators = defineMutators({
390
390
  }
391
391
  }
392
392
  }),
393
- insertFromPushNotification: defineMutator(mutatorSchemas.thread.insertFromPushNotification, async ({ tx, args: { thread } }) => {
394
- const labelIds = threadsUtils.parseLabelIdList(thread.labelIdList);
395
- await tx.mutate.thread.insert({
396
- accountId: thread.accountId,
397
- flagged: thread.flagged,
398
- hasAttachments: thread.hasAttachments,
399
- id: thread.id,
400
- labelIdList: thread.labelIdList,
401
- latestMessageDate: thread.latestMessageDate,
402
- latestMessageId: thread.latestMessageId,
403
- messageCount: thread.messageCount,
404
- previewText: thread.previewText,
405
- seen: thread.seen,
406
- senderEmail: thread.senderEmail,
407
- senderName: thread.senderName ?? undefined,
408
- subject: thread.subject ?? undefined,
409
- userId: thread.userId,
410
- words: thread.words,
411
- });
412
- for (const message of thread.messages) {
413
- await tx.mutate.threadMessage.insert({
414
- accountId: message.accountId,
415
- envelopeDate: message.envelopeDate,
416
- envelopeSubject: message.envelopeSubject ?? undefined,
417
- id: message.id,
418
- previewText: message.previewText,
419
- senderEmail: message.senderEmail,
420
- senderName: message.senderName ?? undefined,
421
- threadId: message.threadId,
422
- });
423
- for (const recipient of message.recipients) {
424
- await tx.mutate.threadMessageRecipient.insert({
425
- emailAddress: recipient.emailAddress,
426
- id: recipient.id,
427
- name: recipient.name ?? undefined,
428
- threadMessageId: recipient.threadMessageId,
429
- type: recipient.type,
430
- });
431
- }
432
- for (const attachment of message.attachments) {
433
- await tx.mutate.threadMessageAttachment.insert({
434
- fileName: attachment.fileName,
435
- id: attachment.id,
436
- mimeType: attachment.mimeType,
437
- size: attachment.size,
438
- threadMessageId: attachment.threadMessageId,
439
- });
440
- }
441
- const baseTimestamp = Date.now();
442
- for (const [index, labelId] of labelIds.entries()) {
443
- await tx.mutate.threadLabel.insert({
444
- accountId: thread.accountId,
445
- labelId,
446
- lastSyncedAt: 0,
447
- threadId: thread.id,
448
- threadMessageId: message.id,
449
- uid: -(baseTimestamp + index),
450
- uidValidity: 0,
451
- });
452
- }
453
- }
454
- for (const labelId of labelIds) {
455
- await tx.mutate.threadByLabel.insert({
456
- labelId,
457
- latestMessageDate: thread.latestMessageDate,
458
- threadId: thread.id,
459
- });
460
- }
461
- }),
462
393
  removeLabel: defineMutator(mutatorSchemas.thread.removeLabel, async ({ tx, args }) => {
463
394
  for (const [accountId, { threadIds }] of Object.entries(args.accounts)) {
464
395
  const label = await tx.run(zql.accountLabel.where('accountId', accountId).where('path', args.labelPath).one());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.517",
3
+ "version": "2.0.519",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",