@marcoappio/marco-config 2.0.513 → 2.0.514

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.
@@ -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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atorSchemas, mutators } from './mutators';
3
2
  import { queries } from './queries';
4
3
  import { schema, tables } from './schema';
5
4
  export const marcoZero = {
@@ -1,6 +1,268 @@
1
+ import * as v from 'valibot';
1
2
  type Context = {
2
3
  userId: string;
3
4
  };
5
+ export declare const mutatorSchemas: {
6
+ account: {
7
+ createAccount: v.ObjectSchema<{
8
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
9
+ readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
10
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
11
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
12
+ }, undefined>;
13
+ createAlias: v.ObjectSchema<{
14
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
+ readonly alias: v.ObjectSchema<{
16
+ readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
17
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
18
+ readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
19
+ }, undefined>;
20
+ }, undefined>;
21
+ deleteAccount: v.ObjectSchema<{
22
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
23
+ }, undefined>;
24
+ deleteAlias: v.ObjectSchema<{
25
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
26
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
27
+ }, undefined>;
28
+ setAliasName: v.ObjectSchema<{
29
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
30
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
31
+ readonly displayName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
32
+ }, undefined>;
33
+ setAliasPrimary: v.ObjectSchema<{
34
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
35
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
36
+ }, undefined>;
37
+ setConnectionConfigImapRaw: v.ObjectSchema<{
38
+ readonly connectionConfig: v.ObjectSchema<{
39
+ readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
40
+ readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
41
+ readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
42
+ readonly imapSocketType: v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
43
+ readonly imapUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
44
+ readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
45
+ readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
46
+ readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
47
+ readonly smtpSocketType: v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
48
+ readonly smtpUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
49
+ }, undefined>;
50
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
51
+ }, undefined>;
52
+ setConnectionConfigOauth: v.ObjectSchema<{
53
+ readonly connectionConfig: v.ObjectSchema<{
54
+ readonly code: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
55
+ readonly provider: v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
56
+ readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
57
+ }, undefined>;
58
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
59
+ }, undefined>;
60
+ setSettings: v.ObjectSchema<{
61
+ readonly color: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
62
+ readonly displayName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
63
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
64
+ }, undefined>;
65
+ };
66
+ draft: {
67
+ cancelSend: v.ObjectSchema<{
68
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
69
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
70
+ }, undefined>;
71
+ createAttachment: v.ObjectSchema<{
72
+ readonly attachment: v.ObjectSchema<{
73
+ readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
74
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
75
+ readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
76
+ readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
77
+ readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
78
+ }, undefined>;
79
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
80
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
81
+ }, undefined>;
82
+ createDraft: v.ObjectSchema<{
83
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
84
+ readonly attachments: v.ArraySchema<v.ObjectSchema<{
85
+ readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
86
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
87
+ readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
88
+ readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
89
+ readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
90
+ }, undefined>, undefined>;
91
+ readonly body: v.ObjectSchema<{
92
+ readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
93
+ readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
94
+ readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
95
+ readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
96
+ readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
97
+ }, undefined>;
98
+ readonly error: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
99
+ readonly from: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
100
+ readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
101
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
102
+ readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
103
+ readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
104
+ readonly status: v.PicklistSchema<readonly ["DRAFT", "SEND_REQUESTED", "SEND_CONFIRMED", "SEND_FAILED"], undefined>;
105
+ readonly type: v.PicklistSchema<readonly ["NEW", "REPLY", "FORWARD"], undefined>;
106
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
107
+ }, undefined>;
108
+ deleteAttachment: v.ObjectSchema<{
109
+ readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
110
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
111
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
112
+ }, undefined>;
113
+ deleteDraft: v.ObjectSchema<{
114
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
115
+ }, undefined>;
116
+ scheduleSend: v.UnionSchema<[v.ObjectSchema<{
117
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
118
+ readonly kind: v.LiteralSchema<"IMMEDIATE", undefined>;
119
+ readonly undoMs: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
120
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
121
+ }, undefined>, v.ObjectSchema<{
122
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
123
+ readonly kind: v.LiteralSchema<"SCHEDULED", undefined>;
124
+ readonly scheduledFor: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
125
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
126
+ }, undefined>], undefined>;
127
+ setContent: v.ObjectSchema<{
128
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
129
+ readonly patch: v.ArraySchema<v.ObjectSchema<{
130
+ readonly index: v.NumberSchema<undefined>;
131
+ readonly type: v.UnionSchema<[v.LiteralSchema<"INSERTION", undefined>, v.LiteralSchema<"DELETION", undefined>], undefined>;
132
+ readonly value: v.StringSchema<undefined>;
133
+ }, undefined>, undefined>;
134
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
135
+ }, undefined>;
136
+ setEnvelope: v.ObjectSchema<{
137
+ readonly envelope: Omit<v.ObjectSchema<{
138
+ readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
139
+ readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
140
+ readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
141
+ readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
142
+ readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
143
+ }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
144
+ readonly entries: Omit<{
145
+ readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
146
+ readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
147
+ readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
148
+ readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
149
+ readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
150
+ }, "content">;
151
+ readonly '~standard': v.StandardProps<{
152
+ bcc: string[];
153
+ cc: string[];
154
+ to: string[];
155
+ subject: string | null;
156
+ }, {
157
+ bcc: string[];
158
+ cc: string[];
159
+ to: string[];
160
+ subject: string | null;
161
+ }>;
162
+ readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
163
+ bcc: string[];
164
+ cc: string[];
165
+ to: string[];
166
+ subject: string | null;
167
+ }, v.StringIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.ArrayIssue | v.NonOptionalIssue>;
168
+ readonly '~types'?: {
169
+ readonly input: {
170
+ bcc: string[];
171
+ cc: string[];
172
+ to: string[];
173
+ subject: string | null;
174
+ };
175
+ readonly output: {
176
+ bcc: string[];
177
+ cc: string[];
178
+ to: string[];
179
+ subject: string | null;
180
+ };
181
+ readonly issue: v.StringIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.ArrayIssue | v.NonOptionalIssue;
182
+ } | undefined;
183
+ };
184
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
185
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
186
+ }, undefined>;
187
+ setFrom: v.ObjectSchema<{
188
+ readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
189
+ readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
190
+ readonly from: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
191
+ readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
192
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
193
+ readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
194
+ }, undefined>;
195
+ };
196
+ thread: {
197
+ addLabel: v.ObjectSchema<{
198
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
199
+ readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
200
+ }, undefined>, undefined>;
201
+ readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
202
+ }, undefined>;
203
+ delete: v.ObjectSchema<{
204
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
205
+ readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
206
+ }, undefined>, undefined>;
207
+ }, undefined>;
208
+ removeLabel: v.ObjectSchema<{
209
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
210
+ readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
211
+ }, undefined>, undefined>;
212
+ readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
213
+ }, undefined>;
214
+ setArchive: v.ObjectSchema<{
215
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
216
+ readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
217
+ }, undefined>, undefined>;
218
+ }, undefined>;
219
+ setFlagged: v.ObjectSchema<{
220
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
221
+ readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
222
+ }, undefined>, undefined>;
223
+ readonly flagged: v.BooleanSchema<undefined>;
224
+ }, undefined>;
225
+ setInbox: v.ObjectSchema<{
226
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
227
+ readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
228
+ }, undefined>, undefined>;
229
+ }, undefined>;
230
+ setSeen: v.ObjectSchema<{
231
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
232
+ readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
233
+ }, undefined>, undefined>;
234
+ readonly seen: v.BooleanSchema<undefined>;
235
+ }, undefined>;
236
+ setSpam: v.ObjectSchema<{
237
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
238
+ readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
239
+ }, undefined>, undefined>;
240
+ }, undefined>;
241
+ setTrash: v.ObjectSchema<{
242
+ readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
243
+ readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
244
+ }, undefined>, undefined>;
245
+ }, undefined>;
246
+ };
247
+ user: {
248
+ deleteSettingsPushNotificationToken: v.ObjectSchema<{
249
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
250
+ readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
251
+ }, undefined>;
252
+ setSettingsName: v.ObjectSchema<{
253
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
254
+ readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
255
+ }, undefined>;
256
+ setSettingsPushNotificationToken: v.ObjectSchema<{
257
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
258
+ readonly pushNotificationToken: v.ObjectSchema<{
259
+ readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
260
+ readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
261
+ readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
262
+ }, undefined>;
263
+ }, undefined>;
264
+ };
265
+ };
4
266
  export declare const mutators: import("@rocicorp/zero").MutatorRegistry<{
5
267
  readonly account: {
6
268
  readonly createAccount: import("@rocicorp/zero").MutatorDefinition<{
@@ -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"}
@@ -1,11 +1,185 @@
1
1
  import { createBuilder, defineMutators, defineMutatorWithType } from '@rocicorp/zero';
2
- import { MutationError } from '../types';
2
+ import * as v from 'valibot';
3
+ import { marcoSchemas } from '../schemas';
4
+ import { DRAFT_ATTACHMENT_UPLOAD_STATUSES, DRAFT_STATUSES, DRAFT_TYPES, MutationError } from '../types';
3
5
  import { stringPatch } from '../utils';
4
6
  import { threadsUtils } from '../utils/threads';
5
- import { mutatorSchemas } from '../zero/mutatorSchemas';
6
7
  import { schema } from '../zero/schema';
7
8
  const zql = createBuilder(schema);
8
9
  const defineMutator = defineMutatorWithType();
10
+ const accountAliasSchema = v.object({
11
+ emailAddress: marcoSchemas.string.email(),
12
+ id: marcoSchemas.string.required(),
13
+ name: marcoSchemas.string.nullable(),
14
+ });
15
+ const accountsSchema = v.record(marcoSchemas.string.required(), v.object({
16
+ threadIds: v.array(marcoSchemas.string.required()),
17
+ }));
18
+ const baseThreadSchema = v.object({
19
+ accounts: accountsSchema,
20
+ });
21
+ const threadChangeLabelSchema = v.object({
22
+ accounts: accountsSchema,
23
+ labelPath: marcoSchemas.string.required(),
24
+ });
25
+ const draftBodySchema = v.object({
26
+ bcc: v.array(marcoSchemas.string.email()),
27
+ cc: v.array(marcoSchemas.string.email()),
28
+ content: v.pipe(v.string(), v.maxLength(384000)),
29
+ subject: marcoSchemas.string.nullable(),
30
+ to: v.array(marcoSchemas.string.email()),
31
+ });
32
+ const draftAttachmentSchema = v.object({
33
+ fileName: marcoSchemas.string.required(),
34
+ id: marcoSchemas.string.required(),
35
+ mimeType: marcoSchemas.string.required(),
36
+ status: v.picklist(DRAFT_ATTACHMENT_UPLOAD_STATUSES),
37
+ totalSize: marcoSchemas.number.positiveInteger(),
38
+ });
39
+ const userPushNotificationTokenSchema = v.object({
40
+ createdAt: marcoSchemas.number.positiveInteger(),
41
+ id: marcoSchemas.string.required(),
42
+ token: marcoSchemas.string.required(),
43
+ });
44
+ export const mutatorSchemas = {
45
+ account: {
46
+ createAccount: v.object({
47
+ aliasId: marcoSchemas.string.required(),
48
+ color: marcoSchemas.string.required(),
49
+ emailAddress: marcoSchemas.string.email(),
50
+ id: marcoSchemas.string.required(),
51
+ }),
52
+ createAlias: v.object({
53
+ accountId: marcoSchemas.string.required(),
54
+ alias: accountAliasSchema,
55
+ }),
56
+ deleteAccount: v.object({
57
+ id: marcoSchemas.string.required(),
58
+ }),
59
+ deleteAlias: v.object({
60
+ accountId: marcoSchemas.string.required(),
61
+ aliasId: marcoSchemas.string.required(),
62
+ }),
63
+ setAliasName: v.object({
64
+ accountId: marcoSchemas.string.required(),
65
+ aliasId: marcoSchemas.string.required(),
66
+ displayName: marcoSchemas.string.nullable(),
67
+ }),
68
+ setAliasPrimary: v.object({
69
+ accountId: marcoSchemas.string.required(),
70
+ aliasId: marcoSchemas.string.required(),
71
+ }),
72
+ setConnectionConfigImapRaw: v.object({
73
+ connectionConfig: marcoSchemas.emailAccount.connectionConfigImapRaw(),
74
+ id: marcoSchemas.string.required(),
75
+ }),
76
+ setConnectionConfigOauth: v.object({
77
+ connectionConfig: marcoSchemas.emailAccount.connectionConfigOauth(),
78
+ id: marcoSchemas.string.required(),
79
+ }),
80
+ setSettings: v.object({
81
+ color: v.optional(marcoSchemas.string.nullable()),
82
+ displayName: v.optional(marcoSchemas.string.nullable()),
83
+ id: marcoSchemas.string.required(),
84
+ }),
85
+ },
86
+ draft: {
87
+ cancelSend: v.object({
88
+ id: marcoSchemas.string.required(),
89
+ updatedAt: marcoSchemas.number.positiveInteger(),
90
+ }),
91
+ createAttachment: v.object({
92
+ attachment: draftAttachmentSchema,
93
+ id: marcoSchemas.string.required(),
94
+ updatedAt: marcoSchemas.number.positiveInteger(),
95
+ }),
96
+ createDraft: v.object({
97
+ accountId: marcoSchemas.string.required(),
98
+ attachments: v.array(draftAttachmentSchema),
99
+ body: draftBodySchema,
100
+ error: marcoSchemas.string.nullable(),
101
+ from: marcoSchemas.string.email(),
102
+ fromName: marcoSchemas.string.nullable(),
103
+ id: marcoSchemas.string.required(),
104
+ referencedMessageId: marcoSchemas.string.nullable(),
105
+ scheduledFor: v.nullable(marcoSchemas.number.positiveInteger()),
106
+ status: v.picklist(DRAFT_STATUSES),
107
+ type: v.picklist(DRAFT_TYPES),
108
+ updatedAt: marcoSchemas.number.positiveInteger(),
109
+ }),
110
+ deleteAttachment: v.object({
111
+ attachmentId: marcoSchemas.string.required(),
112
+ id: marcoSchemas.string.required(),
113
+ updatedAt: marcoSchemas.number.positiveInteger(),
114
+ }),
115
+ deleteDraft: v.object({
116
+ id: marcoSchemas.string.required(),
117
+ }),
118
+ scheduleSend: v.union([
119
+ v.object({
120
+ id: marcoSchemas.string.required(),
121
+ kind: v.literal('IMMEDIATE'),
122
+ undoMs: marcoSchemas.number.positiveInteger(),
123
+ updatedAt: marcoSchemas.number.positiveInteger(),
124
+ }),
125
+ v.object({
126
+ id: marcoSchemas.string.required(),
127
+ kind: v.literal('SCHEDULED'),
128
+ scheduledFor: marcoSchemas.number.positiveInteger(),
129
+ updatedAt: marcoSchemas.number.positiveInteger(),
130
+ }),
131
+ ]),
132
+ setContent: v.object({
133
+ id: marcoSchemas.string.required(),
134
+ patch: marcoSchemas.drafts.contentPatch.patch(),
135
+ updatedAt: marcoSchemas.number.positiveInteger(),
136
+ }),
137
+ setEnvelope: v.object({
138
+ envelope: v.omit(draftBodySchema, ['content']),
139
+ id: marcoSchemas.string.required(),
140
+ updatedAt: marcoSchemas.number.positiveInteger(),
141
+ }),
142
+ setFrom: v.object({
143
+ accountId: marcoSchemas.string.required(),
144
+ aliasId: marcoSchemas.string.required(),
145
+ from: marcoSchemas.string.email(),
146
+ fromName: marcoSchemas.string.nullable(),
147
+ id: marcoSchemas.string.required(),
148
+ updatedAt: marcoSchemas.number.positiveInteger(),
149
+ }),
150
+ },
151
+ thread: {
152
+ addLabel: threadChangeLabelSchema,
153
+ delete: baseThreadSchema,
154
+ removeLabel: threadChangeLabelSchema,
155
+ setArchive: baseThreadSchema,
156
+ setFlagged: v.object({
157
+ accounts: accountsSchema,
158
+ flagged: v.boolean(),
159
+ }),
160
+ setInbox: baseThreadSchema,
161
+ setSeen: v.object({
162
+ accounts: accountsSchema,
163
+ seen: v.boolean(),
164
+ }),
165
+ setSpam: baseThreadSchema,
166
+ setTrash: baseThreadSchema,
167
+ },
168
+ user: {
169
+ deleteSettingsPushNotificationToken: v.object({
170
+ id: marcoSchemas.string.required(),
171
+ token: marcoSchemas.string.required(),
172
+ }),
173
+ setSettingsName: v.object({
174
+ id: marcoSchemas.string.required(),
175
+ name: marcoSchemas.string.nullable(),
176
+ }),
177
+ setSettingsPushNotificationToken: v.object({
178
+ id: marcoSchemas.string.required(),
179
+ pushNotificationToken: userPushNotificationTokenSchema,
180
+ }),
181
+ },
182
+ };
9
183
  const buildLabelIdList = (x) => (x.length === 0 ? '' : ` ${[...new Set(x)].join(' ')} `);
10
184
  const setSystemLabel = async (tx, builder, threadId, targetSpecialUse) => {
11
185
  const thread = await tx.run(builder.thread.where('id', threadId).one());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.513",
3
+ "version": "2.0.514",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",
@@ -1,263 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const mutatorSchemas: {
3
- account: {
4
- createAccount: v.ObjectSchema<{
5
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
6
- readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
8
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
9
- }, undefined>;
10
- createAlias: v.ObjectSchema<{
11
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
12
- readonly alias: v.ObjectSchema<{
13
- readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
14
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
15
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
16
- }, undefined>;
17
- }, undefined>;
18
- deleteAccount: v.ObjectSchema<{
19
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
20
- }, undefined>;
21
- deleteAlias: v.ObjectSchema<{
22
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
23
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
24
- }, undefined>;
25
- setAliasName: v.ObjectSchema<{
26
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
27
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
28
- readonly displayName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
29
- }, undefined>;
30
- setAliasPrimary: v.ObjectSchema<{
31
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
32
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
33
- }, undefined>;
34
- setConnectionConfigImapRaw: v.ObjectSchema<{
35
- readonly connectionConfig: v.ObjectSchema<{
36
- readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
37
- readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
38
- readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
39
- readonly imapSocketType: v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
40
- readonly imapUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
41
- readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
42
- readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
43
- readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
44
- readonly smtpSocketType: v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
45
- readonly smtpUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
46
- }, undefined>;
47
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
48
- }, undefined>;
49
- setConnectionConfigOauth: v.ObjectSchema<{
50
- readonly connectionConfig: v.ObjectSchema<{
51
- readonly code: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
52
- readonly provider: v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
53
- readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
54
- }, undefined>;
55
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
56
- }, undefined>;
57
- setSettings: v.ObjectSchema<{
58
- readonly color: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
59
- readonly displayName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
60
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
61
- }, undefined>;
62
- };
63
- draft: {
64
- cancelSend: v.ObjectSchema<{
65
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
66
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
67
- }, undefined>;
68
- createAttachment: v.ObjectSchema<{
69
- readonly attachment: v.ObjectSchema<{
70
- readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
71
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
72
- readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
73
- readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
74
- readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
75
- }, undefined>;
76
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
77
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
78
- }, undefined>;
79
- createDraft: v.ObjectSchema<{
80
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
81
- readonly attachments: v.ArraySchema<v.ObjectSchema<{
82
- readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
83
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
84
- readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
85
- readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
86
- readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
87
- }, undefined>, undefined>;
88
- readonly body: v.ObjectSchema<{
89
- readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
90
- readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
91
- readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
92
- readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
93
- readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
94
- }, undefined>;
95
- readonly error: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
96
- readonly from: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
97
- readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
98
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
99
- readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
100
- readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
101
- readonly status: v.PicklistSchema<readonly ["DRAFT", "SEND_REQUESTED", "SEND_CONFIRMED", "SEND_FAILED"], undefined>;
102
- readonly type: v.PicklistSchema<readonly ["NEW", "REPLY", "FORWARD"], undefined>;
103
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
104
- }, undefined>;
105
- deleteAttachment: v.ObjectSchema<{
106
- readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
107
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
108
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
109
- }, undefined>;
110
- deleteDraft: v.ObjectSchema<{
111
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
112
- }, undefined>;
113
- scheduleSend: v.UnionSchema<[v.ObjectSchema<{
114
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
115
- readonly kind: v.LiteralSchema<"IMMEDIATE", undefined>;
116
- readonly undoMs: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
117
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
118
- }, undefined>, v.ObjectSchema<{
119
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
120
- readonly kind: v.LiteralSchema<"SCHEDULED", undefined>;
121
- readonly scheduledFor: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
122
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
123
- }, undefined>], undefined>;
124
- setContent: v.ObjectSchema<{
125
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
126
- readonly patch: v.ArraySchema<v.ObjectSchema<{
127
- readonly index: v.NumberSchema<undefined>;
128
- readonly type: v.UnionSchema<[v.LiteralSchema<"INSERTION", undefined>, v.LiteralSchema<"DELETION", undefined>], undefined>;
129
- readonly value: v.StringSchema<undefined>;
130
- }, undefined>, undefined>;
131
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
132
- }, undefined>;
133
- setEnvelope: v.ObjectSchema<{
134
- readonly envelope: Omit<v.ObjectSchema<{
135
- readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
136
- readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
137
- readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
138
- readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
139
- readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
140
- }, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
141
- readonly entries: Omit<{
142
- readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
143
- readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
144
- readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
145
- readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
146
- readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
147
- }, "content">;
148
- readonly '~standard': v.StandardProps<{
149
- bcc: string[];
150
- cc: string[];
151
- to: string[];
152
- subject: string | null;
153
- }, {
154
- bcc: string[];
155
- cc: string[];
156
- to: string[];
157
- subject: string | null;
158
- }>;
159
- readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
160
- bcc: string[];
161
- cc: string[];
162
- to: string[];
163
- subject: string | null;
164
- }, v.StringIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.ArrayIssue | v.NonOptionalIssue>;
165
- readonly '~types'?: {
166
- readonly input: {
167
- bcc: string[];
168
- cc: string[];
169
- to: string[];
170
- subject: string | null;
171
- };
172
- readonly output: {
173
- bcc: string[];
174
- cc: string[];
175
- to: string[];
176
- subject: string | null;
177
- };
178
- readonly issue: v.StringIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.ArrayIssue | v.NonOptionalIssue;
179
- } | undefined;
180
- };
181
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
182
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
183
- }, undefined>;
184
- setFrom: v.ObjectSchema<{
185
- readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
186
- readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
187
- readonly from: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
188
- readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
189
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
190
- readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
191
- }, undefined>;
192
- };
193
- thread: {
194
- addLabel: v.ObjectSchema<{
195
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
196
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
197
- }, undefined>, undefined>;
198
- readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
199
- }, undefined>;
200
- delete: v.ObjectSchema<{
201
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
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
- }, undefined>, undefined>;
204
- }, undefined>;
205
- removeLabel: v.ObjectSchema<{
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<{
207
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
208
- }, undefined>, undefined>;
209
- readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
210
- }, undefined>;
211
- setArchive: v.ObjectSchema<{
212
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
213
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
214
- }, undefined>, undefined>;
215
- }, undefined>;
216
- setFlagged: v.ObjectSchema<{
217
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
218
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
219
- }, undefined>, undefined>;
220
- readonly flagged: v.BooleanSchema<undefined>;
221
- }, undefined>;
222
- setInbox: v.ObjectSchema<{
223
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
224
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
225
- }, undefined>, undefined>;
226
- }, undefined>;
227
- setSeen: v.ObjectSchema<{
228
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
229
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
230
- }, undefined>, undefined>;
231
- readonly seen: v.BooleanSchema<undefined>;
232
- }, undefined>;
233
- setSpam: v.ObjectSchema<{
234
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
235
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
236
- }, undefined>, undefined>;
237
- }, undefined>;
238
- setTrash: v.ObjectSchema<{
239
- readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
240
- readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
241
- }, undefined>, undefined>;
242
- }, undefined>;
243
- };
244
- user: {
245
- deleteSettingsPushNotificationToken: v.ObjectSchema<{
246
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
247
- readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
248
- }, undefined>;
249
- setSettingsName: v.ObjectSchema<{
250
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
251
- readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
252
- }, undefined>;
253
- setSettingsPushNotificationToken: v.ObjectSchema<{
254
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
255
- readonly pushNotificationToken: v.ObjectSchema<{
256
- readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
257
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
258
- readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
259
- }, undefined>;
260
- }, undefined>;
261
- };
262
- };
263
- //# sourceMappingURL=mutatorSchemas.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mutatorSchemas.d.ts","sourceRoot":"","sources":["../../src/zero/mutatorSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiD5B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0I1B,CAAA"}
@@ -1,176 +0,0 @@
1
- import * as v from 'valibot';
2
- import { marcoSchemas } from '../schemas';
3
- import { DRAFT_ATTACHMENT_UPLOAD_STATUSES, DRAFT_STATUSES, DRAFT_TYPES } from '../types';
4
- const accountAliasSchema = v.object({
5
- emailAddress: marcoSchemas.string.email(),
6
- id: marcoSchemas.string.required(),
7
- name: marcoSchemas.string.nullable(),
8
- });
9
- const accountsSchema = v.record(marcoSchemas.string.required(), v.object({
10
- threadIds: v.array(marcoSchemas.string.required()),
11
- }));
12
- const baseThreadSchema = v.object({
13
- accounts: accountsSchema,
14
- });
15
- const threadChangeLabelSchema = v.object({
16
- accounts: accountsSchema,
17
- labelPath: marcoSchemas.string.required(),
18
- });
19
- const draftBodySchema = v.object({
20
- bcc: v.array(marcoSchemas.string.email()),
21
- cc: v.array(marcoSchemas.string.email()),
22
- content: v.pipe(v.string(), v.maxLength(384000)),
23
- subject: marcoSchemas.string.nullable(),
24
- to: v.array(marcoSchemas.string.email()),
25
- });
26
- const draftAttachmentSchema = v.object({
27
- fileName: marcoSchemas.string.required(),
28
- id: marcoSchemas.string.required(),
29
- mimeType: marcoSchemas.string.required(),
30
- status: v.picklist(DRAFT_ATTACHMENT_UPLOAD_STATUSES),
31
- totalSize: marcoSchemas.number.positiveInteger(),
32
- });
33
- const userPushNotificationTokenSchema = v.object({
34
- createdAt: marcoSchemas.number.positiveInteger(),
35
- id: marcoSchemas.string.required(),
36
- token: marcoSchemas.string.required(),
37
- });
38
- export const mutatorSchemas = {
39
- account: {
40
- createAccount: v.object({
41
- aliasId: marcoSchemas.string.required(),
42
- color: marcoSchemas.string.required(),
43
- emailAddress: marcoSchemas.string.email(),
44
- id: marcoSchemas.string.required(),
45
- }),
46
- createAlias: v.object({
47
- accountId: marcoSchemas.string.required(),
48
- alias: accountAliasSchema,
49
- }),
50
- deleteAccount: v.object({
51
- id: marcoSchemas.string.required(),
52
- }),
53
- deleteAlias: v.object({
54
- accountId: marcoSchemas.string.required(),
55
- aliasId: marcoSchemas.string.required(),
56
- }),
57
- setAliasName: v.object({
58
- accountId: marcoSchemas.string.required(),
59
- aliasId: marcoSchemas.string.required(),
60
- displayName: marcoSchemas.string.nullable(),
61
- }),
62
- setAliasPrimary: v.object({
63
- accountId: marcoSchemas.string.required(),
64
- aliasId: marcoSchemas.string.required(),
65
- }),
66
- setConnectionConfigImapRaw: v.object({
67
- connectionConfig: marcoSchemas.emailAccount.connectionConfigImapRaw(),
68
- id: marcoSchemas.string.required(),
69
- }),
70
- setConnectionConfigOauth: v.object({
71
- connectionConfig: marcoSchemas.emailAccount.connectionConfigOauth(),
72
- id: marcoSchemas.string.required(),
73
- }),
74
- setSettings: v.object({
75
- color: v.optional(marcoSchemas.string.nullable()),
76
- displayName: v.optional(marcoSchemas.string.nullable()),
77
- id: marcoSchemas.string.required(),
78
- }),
79
- },
80
- draft: {
81
- cancelSend: v.object({
82
- id: marcoSchemas.string.required(),
83
- updatedAt: marcoSchemas.number.positiveInteger(),
84
- }),
85
- createAttachment: v.object({
86
- attachment: draftAttachmentSchema,
87
- id: marcoSchemas.string.required(),
88
- updatedAt: marcoSchemas.number.positiveInteger(),
89
- }),
90
- createDraft: v.object({
91
- accountId: marcoSchemas.string.required(),
92
- attachments: v.array(draftAttachmentSchema),
93
- body: draftBodySchema,
94
- error: marcoSchemas.string.nullable(),
95
- from: marcoSchemas.string.email(),
96
- fromName: marcoSchemas.string.nullable(),
97
- id: marcoSchemas.string.required(),
98
- referencedMessageId: marcoSchemas.string.nullable(),
99
- scheduledFor: v.nullable(marcoSchemas.number.positiveInteger()),
100
- status: v.picklist(DRAFT_STATUSES),
101
- type: v.picklist(DRAFT_TYPES),
102
- updatedAt: marcoSchemas.number.positiveInteger(),
103
- }),
104
- deleteAttachment: v.object({
105
- attachmentId: marcoSchemas.string.required(),
106
- id: marcoSchemas.string.required(),
107
- updatedAt: marcoSchemas.number.positiveInteger(),
108
- }),
109
- deleteDraft: v.object({
110
- id: marcoSchemas.string.required(),
111
- }),
112
- scheduleSend: v.union([
113
- v.object({
114
- id: marcoSchemas.string.required(),
115
- kind: v.literal('IMMEDIATE'),
116
- undoMs: marcoSchemas.number.positiveInteger(),
117
- updatedAt: marcoSchemas.number.positiveInteger(),
118
- }),
119
- v.object({
120
- id: marcoSchemas.string.required(),
121
- kind: v.literal('SCHEDULED'),
122
- scheduledFor: marcoSchemas.number.positiveInteger(),
123
- updatedAt: marcoSchemas.number.positiveInteger(),
124
- }),
125
- ]),
126
- setContent: v.object({
127
- id: marcoSchemas.string.required(),
128
- patch: marcoSchemas.drafts.contentPatch.patch(),
129
- updatedAt: marcoSchemas.number.positiveInteger(),
130
- }),
131
- setEnvelope: v.object({
132
- envelope: v.omit(draftBodySchema, ['content']),
133
- id: marcoSchemas.string.required(),
134
- updatedAt: marcoSchemas.number.positiveInteger(),
135
- }),
136
- setFrom: v.object({
137
- accountId: marcoSchemas.string.required(),
138
- aliasId: marcoSchemas.string.required(),
139
- from: marcoSchemas.string.email(),
140
- fromName: marcoSchemas.string.nullable(),
141
- id: marcoSchemas.string.required(),
142
- updatedAt: marcoSchemas.number.positiveInteger(),
143
- }),
144
- },
145
- thread: {
146
- addLabel: threadChangeLabelSchema,
147
- delete: baseThreadSchema,
148
- removeLabel: threadChangeLabelSchema,
149
- setArchive: baseThreadSchema,
150
- setFlagged: v.object({
151
- accounts: accountsSchema,
152
- flagged: v.boolean(),
153
- }),
154
- setInbox: baseThreadSchema,
155
- setSeen: v.object({
156
- accounts: accountsSchema,
157
- seen: v.boolean(),
158
- }),
159
- setSpam: baseThreadSchema,
160
- setTrash: baseThreadSchema,
161
- },
162
- user: {
163
- deleteSettingsPushNotificationToken: v.object({
164
- id: marcoSchemas.string.required(),
165
- token: marcoSchemas.string.required(),
166
- }),
167
- setSettingsName: v.object({
168
- id: marcoSchemas.string.required(),
169
- name: marcoSchemas.string.nullable(),
170
- }),
171
- setSettingsPushNotificationToken: v.object({
172
- id: marcoSchemas.string.required(),
173
- pushNotificationToken: userPushNotificationTokenSchema,
174
- }),
175
- },
176
- };