@marcoappio/marco-config 2.0.511 → 2.0.513
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.
- package/dist/types/Zero.d.ts +12 -0
- package/dist/types/Zero.d.ts.map +1 -1
- package/dist/zero/index.d.ts +510 -249
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/index.js +2 -0
- package/dist/zero/mutatorSchemas.d.ts +263 -0
- package/dist/zero/mutatorSchemas.d.ts.map +1 -0
- package/dist/zero/mutatorSchemas.js +176 -0
- package/dist/zero/mutators.d.ts +83 -83
- package/dist/zero/mutators.d.ts.map +1 -1
- package/dist/zero/mutators.js +33 -167
- package/dist/zero/queries.d.ts +83 -83
- package/dist/zero/queries.d.ts.map +1 -1
- package/dist/zero/queries.js +1 -1
- package/dist/zero/schema.d.ts +83 -93
- package/dist/zero/schema.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/zero/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"
|
|
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"}
|
package/dist/zero/index.js
CHANGED
|
@@ -0,0 +1,263 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,176 @@
|
|
|
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
|
+
};
|